End-to-End Communication

Similar documents
IP - The Internet Protocol

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network Layer Functions

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Network Layer/IP Protocols

ECE 4450:427/527 - Computer Networks Spring 2017

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

IP Addresses. IP Addresses

IPv4. Christian Grothoff.

The Internet Protocol (IP)

Internetworking Part 2

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

ECE 158A: Lecture 7. Fall 2015

Design Considerations : Computer Networking. Outline. Challenge 1: Address Formats. Challenge. How to determine split of functionality

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Internet Protocol (IP)

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Router Architecture Overview

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

Network Layer: Internet Protocol

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

Internet Technology 3/23/2016

Lecture 8. Network Layer (cont d) Network Layer 1-1

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Network Layer: Control/data plane, addressing, routers

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

Vorlesung Kommunikationsnetze

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Chapter 18. Introduction to Network Layer

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Lecture 3. The Network Layer (cont d) Network Layer 1-1

TCP /IP Fundamentals Mr. Cantu

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

ECE 461 Internetworking Fall Quiz 1

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

b. Suppose the two packets are to be forwarded to two different output ports. Is it

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Internetworking Part 2

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

Chapter 4 Network Layer

CS118 Discussion, Week 6. Taqi

EE-311 Data Communication & Networks

CSCI Computer Networks Fall 2016

C14a: Internetworks and The Internet

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

The Interconnection Structure of. The Internet. EECC694 - Shaaban

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Chapter 4: Network Layer

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Tutorial 9. SOLUTION Since the number of supported interfaces is different for each subnet, this is a Variable- Length Subnet Masking (VLSM) problem.

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

CSC 401 Data and Computer Communications Networks

internet technologies and standards

Information Network Systems The network layer. Stephan Sigg

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

EEC-484/584 Computer Networks

TCP/IP Protocol Suite

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Chapter 7. Local Area Network Communications Protocols

Master Course Computer Networks IN2097

IP Address Assignment

Chapter 5 Network Layer

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Chapter Motivation For Internetworking

Chapter 4 Network Layer

Module 4. Planning the Addressing Structure

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

IP Addressing Week 6. Module : Computer Networks Lecturer: Lucy White Office : 324

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Position of IP and other network-layer protocols in TCP/IP protocol suite

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

Lecture 8 Network Layer: Logical addressing

Planning for Information Network

IP Addressing. Introductory material. An entire module devoted to IP addresses. Pedro Brandão (PhD) University of Évora

Networking: Network Layer

Transcription:

End-to-End Communication Goal: Interconnect multiple LANs. Why? Diverse LANs speak different languages need to make them talk to each other Management flexibility global vs. local Internet Problems: How to choose paths (routing)? How to regulate flow (congestion control)? not too much, not too little How to provide service quality (QoS control)?

Route set-up: circuit-switched...... A 2...... A 3...... A...... 2 1 2 1 3 4 3 0000 1111 0000 1111 1111 0000 connection set up B connection set-up message: signaling route selection: routing subsystem different from route set-up subsystem source tag A inserted into look-up table on-demand look-up table deletion upon termination

Route set-up: packet-switched dispense with connection set-up signaling each packet: autonomous entity Source routing: packet contains path information A,C,...,B drawback: header length increases with path length not good for fast packet handling Destination-based forwarding: determine output port by destination address source address ignored same destination, same path: at any node Internet packet switching any problems with ignoring source address?

Internet Protocol (IP) Goals: interconnect diverse LANs into one logical entity implement best-effort service no assurances ( what you get is what you get ) simplicity is key IP represents: common language for carrying out non-lan-specific conversations technical definition of Internet functionality and design philosophy simple core / complex edge called end-to-end paradigm

Reliability over best-effort Internet: simplifies router design but increases complexity of end stations (e.g., PCs, PDAs) implement ARQ at sender/receiver router does not carry out ARQ LAN / WAN A Unreliable Medium B "Black Box"

IP packet format: 4 4 8 16 version header length TOS total length fragmentation identifier flags fragment offset TTL protocol header checksum source address destination address options (if any) Header length: in 4 byte (word) units. TOS (type-of-service): Partially used. 4 bytes used for fragmentation. TTL (time-to-live): Prevent cycling (default 64). Protocol: demultiplexing key (TCP 6, UDP 17).

Fragmentation and reassembly: LAN has maximum transmission unit (MTU): maximum frame size e.g., Ethernet 1500 B, WLAN 2313 B potential size mismatch problem (IP 64 kb) may happen multiple times hopping from LAN to LAN Solution: fragment IP packet when needed, maintain sequencing information, then reassemble at destination. assign unique fragmentation ID set 3rd flag bit if fragmentation in progress sequence fragments using offset in units of 8 bytes

Example: IP fragmentation (Ethernet MTU) IP datagram (original) H Payload 20 4000 fragment 1 fragment 2 fragment 3 H Payload H Payload H Payload 20 1480 20 1480 20 1040 fragment ID: 900 flag bit (3rd): 1 fragment offset: 0 fragment ID: 900 flag bit (3rd): 1 fragment offset: 185 fragment ID: 900 flag bit (3rd): 0 fragment offset: 370

Note: Each fragment is an independent IP packet. Destination discards all fragments of an IP packet if one is lost. all for one, one for all set 2nd flag bit to disable fragmentation TCP: Negotiate at start-up TCP segment (packet) size based on MTU tries to prevent fragmentation

IP address format: 7 24 Class A 0 Network ID Host ID 14 16 Class B 1 0 Network ID Host ID 21 8 Class C 1 1 0 Network ID Host ID 28 Class D 1 1 1 0 Multicast Address Dotted decimal notation: 10000000 00001011 00000011 00011111 128.11.3.31 Symbolic name to IP address translation: domain name server (DNS).

Hierarchical organization: 2-level network and host Each interface (NIC) has an IP address; single host can have multiple IP addresses. single-homed vs. multi-homed Running out of IP addresses... or not? should Purdue get a class B address? how about your start-up company? what about Purdue s Biology Dept.? what about the Math Dept.?

Waste of address space: typical organization: network of networks not too many hosts (class B: 64K) Solution: subnetting subdivide host ID into subnetwork ID and host ID 14 16 Class B 1 0 Network ID Host ID Subnet Mask 24 8 1 1 1 1 1 1 1... 1 1 1 1 1 0 0 0... 0 0 14 8 8 1 0 Network ID Subnet ID Host ID To determine subnet ID: AND IP address and subnet mask already know if class A, B, C, or D 3-level hierarchy

Forwarding and address resolution: Subnet ID 128.10.2.0 128.10.3.0 128.10.4.0 Subnet Mask 255.255.255.0 255.255.255.0 255.255.255.0 Next Hop Interface 0 Interface 1 128.10.4.250 Either destination host is connected on a shared LAN, or not (additional IP hop needed). reachable by LAN address forwarding if not, network address (IP) forwarding

Table look-up I ( where to ): For each entry, compute SubnetID = DestAddr AND SubnetMask. Compare SubnetID with SubnetID. Take forwarding action (LAN or IP). Remaining task: translate destination or next hop IP address into LAN address must be done in either case address resolution protocol (ARP)

Table look-up II ( what s your LAN name ): If ARP table contains entry, using LAN address link layer can take over forwarding task. ultimately everything is LAN network layer: virtual If ARP table does not contain entry, broadcast ARP Request packet with destination IP address. e.g., Ethernet broadcast address (all 1 s) Upon receiving ARP response, update ARP table. Dynamically maintain ARP table: use timer for each entry (15 min) to invalidate entries. aging (standard caching technique)

Subnetting only goes so far. depts. within Purdue share same class B address what about your start-up company? only 2 21 class C addresses available

Other approaches to solve address depletion problem: IPv6 128 bits (who wants it?) not used much Classless (vs. classful) IP addressing variable length subnetting that is, a.b.c.d/x (x: mask length) e.g., 128.10.0.0/16, 128.210.0.0/16, 204.52.32.0/20 used in inter-domain routing CIDR (classless inter-domain routing) de facto global Internet addressing standard

Dynamically assigned IP addresses share an IP address pool reusable e.g., DHCP (dynamic host configuration protocol) used by access ISPs, enterprises, etc. Network address translation (NAT) dynamically assigned + address translation private vs. public IP address private: Internet routers discard them e.g., 192.168.0.0 is private useful for home networks, small businesses

NATP variant of NAT: use src port numbers as address bits e.g.: 192.168.10.10 and 192.168.10.11 map to 128.10.27.10 but 192.168.10.10 maps to 128.10.26.10:6001 and 192.168.10.11 maps to 128.10.26.10:6002 what about source port numbers?

Ex.: SOHO (small office/home office) now: home networking DHCP & NAT ISP cable/telephone 0000 1111 0000 1111 0000 1111 0000 1111 cable/dsl NAT & DHCP modem gateway 0000 1111 dyn IP 0000 1111 192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5 dynamic IP address provided by ISP is shared through NAT IANA (Internet Assigned Numbers Authority) non-routable: e.g., 192.168.0.0/16, 10.0.0.0/8

CIDR and dynamically assigned IP addresses with NAPT significant increase of Internet s effective address space saved the day (for now)! perception: no pressing need for IPv6 can one run a web server behind at NATP box? other limitations?