Beruflich Dokumente
Kultur Dokumente
Outline
Best Effort Service Model Global Addressing Scheme ARP DHCP VPN ICMP
Winter 2012 MU CS 4850/7850
FTP
HTTP TCP
NV
TFTP
UDP
IP
NET 1 NET 2
NET n
IP Internet
Concatenation of Networks
Winter 2012
MU CS 4850/7850
Internetworking
What is IP
IP stands for Internet Protocol Key tool used today to build scalable, heterogeneous internetworks It runs on all the nodes in a collection of networks and defines the infrastructure that allows these nodes and networks to function as a single logical internetwork
Network layer
forwarding table
Service Model
Connectionless (datagram-based) Best-effort delivery (unreliable service)
packets are lost packets are delivered out of order duplicate copies of a packet are delivered packets can be delayed for a long time
0 Version 4 HLen Ident TTL Protocol SourceAddr DestinationAddr Options (variable) Data Pad (variable) 8 TOS Flags 16 19 Length Offset Checksum 31
Datagram format
Winter 2012
MU CS 4850/7850
Design decisions
fragment when necessary (if MTU < Datagram) try to avoid fragmentation at source host re-fragmentation is possible fragments are self-contained datagrams delay reassembly until destination host do not recover from lost fragments
Winter 2012
MU CS 4850/7850
Example
(a)
Rest of header
H1
R1 R1
R2 R2
R3 R3
H8
512 data bytes
(b)
ETH IP (1400)
FDDI IP (1400)
ETH IP (512)
Rest of header
ETH IP (512)
512 data bytes
ETH IP (376)
Start of header Ident = x 0 Offset = 128
Rest of header
376 data bytes
Global Addresses
IP address: 32-bit identifier for host, router interface Properties
globally unique hierarchical: network + host 4 Billion IP address, half are A type, is B type, and 1/8 is C type
16 Host 8 Host
Winter 2012
MU CS 4850/7850
Datagram Forwarding
Strategy
every datagram contains destinations address if connected to destination network, then forward to host if not directly connected, then forward to some router forwarding table maps network number into next hop each host has a default router each router maintains a forwarding table
Network Number 1 2 3 4 Next Hop R3 R1 interface 1 interface 0
Example (R2)
Winter 2012
MU CS 4850/7850
Example
Network 1 (Ethernet) H7 R3 H8
H1
H2
H3
Network 2 (Ethernet) R1
Network 4 (point-to-point)
R2 H4 Network 3 (FDDI)
H5
H6
Winter 2012
MU CS 4850/7850
10
TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min)
Winter 2012
MU CS 4850/7850
11
Address Translation
Map IP addresses into physical addresses
destination host next hop router
Techniques
encode physical address in host part of IP address (x) table-based
ARP
table of IP to physical address bindings broadcast request if IP address not in table target machine responds with its physical address table entries are discarded if not refreshed
MU CS 4850/7850 12
Winter 2012
ARP Protocol
A wants to send datagram to B, and A knows Bs IP address. Suppose Bs MAC address is not in As ARP table. A broadcasts ARP query packet, containing B's IP address all machines on LAN receive ARP query B receives ARP packet, replies to A with its (B's) MAC address
frame sent to As MAC address (unicast)
Winter 2012 MU CS 4850/7850 13
A caches (saves) IP-to-MAC address pair in its ARP table until information becomes old (times out) soft state: information that times out (goes away) unless refreshed
ARP is plug-and-play:
nodes create their ARP tables without intervention from net administrator
SourceHardwareAddr (bytes 0 3) SourceHardwareAddr (bytes 5) 4 SourceProtocolAddr (bytes 2 3) SourceProtocolAddr (bytes 1) 0 TargetHardwareAddr (bytes 1) 0
Winter 2012
MU CS 4850/7850
14
ARP Details
Request Format
HardwareType: type of physical network (e.g., Ethernet) ProtocolType: type of higher layer protocol (e.g., IP) HLEN & PLEN: length of physical and protocol addresses Operation: request or response Source/Target-Physical/Protocol addresses
Notes
table entries timeout in about 10 minutes always update table with source info when you are the target update table with source info if already have an entry (reset timeout) do not refresh table entries with source info otherwise
Winter 2012 MU CS 4850/7850 15
DHCP overview: host broadcasts DHCP discover msg DHCP server responds with DHCP offer msg host requests IP address: DHCP request msg DHCP server sends address: DHCP ack msg
Winter 2012 MU CS 4850/7850 16
Other networks
DHCP server
Host
Winter 2012
MU CS 4850/7850
17
L Physical links
M Virtual circuits
(b)
Winter 2012
MU CS 4850/7850
19
Tunneling
(virtual Point-to-Point link)
Network 1
R1
Internetwork
R2 10.0.0.1
Network 2
Winter 2012
MU CS 4850/7850
20
ICMP message: type, code plus first 8 bytes of IP datagram causing error
Winter 2012
MU CS 4850/7850
Internetworking
Summary
Best Effort Service Model Global Addressing Scheme ARP DHCP VPN ICMP
Winter 2012 MU CS 4850/7850
FTP
HTTP TCP
NV
TFTP
UDP
IP
NET 1 NET 2
NET n
22