2. Fragmentation and Reassembly

Slides:



Advertisements
Similar presentations
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 11 – February 16, 2010.
Spring 2003CS 4611 Routing Outline Algorithms Scalability.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Chapter 4 IP Routing Professor Rick Han University of Colorado at Boulder
CS Internetworking Slide Set 8. In this set... Addressing Datagram forwarding.
ECE544: Communication Networks-II, Spring 2007 D. Raychaudhuri Lecture 4,5 Includes teaching materials from L. Peterson.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Spring 2002CS 4611 Routing Outline Algorithms Scalability.
CSS432 Routing Textbook Ch 3.3
CS 6401 Routing, Routers, Switching Fabrics Outline Link state routing Link weights Router Design / Switching Fabrics.
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
1 Routing Outline Algorithms Scalability. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
CSS 432: Routing 1 CSS432 Routing Textbook Ch3.3 Professor: Munehiro Fukuda.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
23-Dec-154/598N: Computer Networks Overview 4.2: Routing Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
CSS432 Routing Textbook Ch3.3
TRANSPORT LAYER BY, Parthasarathy.g.
NAT – Network Address Translation
Scaling the Network Chapters 3-4 Part 2
Routing BY, P.B.SHANMATHI.
Routing and Switching Fabrics
Scaling the Network: The Internet Protocol
ICMP ICMP – Internet Control Message Protocol
3. Internetworking (part 3: IP)
CSCI-1680 Network Layer: Intra-domain Routing
THE NETWORK LAYER.
Intra-Domain Routing Jacob Strauss September 14, 2006.
ECE544: Communication Networks-II, Spring 2006
Advanced Computer Networks
Mid term grade distribution
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
ECE544: Communication Networks-II, Spring 2016
Intradomain Routing Outline Introduction to Routing
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.) Goal is to use this opportunity.
The University of Adelaide, School of Computer Science
Communication Networks
Advanced Computer Networks
Introduction to Computer Networks
Scaling the Network: The Internet Protocol
Tree Structured Internet(c. 1990)
Routing Outline Algorithms Scalability Spring 2003 CS 332.
Routing and Switching Fabrics
Presentation transcript:

2. Fragmentation and Reassembly Each network has some MTU Strategy fragment when necessary (MTU < Datagram) try to avoid fragmentation at source host re-fragmentation is possible fragments are self-contained datagrams use CS-PDU (not cells) for ATM delay reassembly until destination host do not recover from lost fragments 17-Jan-19 4/598N: Computer Networks

Example Ident = x Start of header Rest of header 1400 data bytes Offset = 0 Start of header Rest of header 1400 data bytes Ident = x Offset = 0 Start of header 1 Rest of header 512 data bytes Offset = 512 Offset = 1024 376 data bytes H1 R1 R2 R3 H8 ETH IP (1400) FDDI IP (1400) PPP IP (512) ETH IP (512) PPP IP (512) ETH IP (512) PPP IP (376) ETH IP (376) 17-Jan-19 4/598N: Computer Networks

3. Global Addresses Properties Dot Notation globally unique hierarchical: network + host Dot Notation 10.3.2.4 129.74.33.81 192.12.69.77 7 24 A: Network Host 14 16 B: 1 Network Host 21 8 C: 1 1 Network Host 17-Jan-19 4/598N: Computer Networks

Datagram Forwarding Strategy Example (R2) every datagram contains destination’s address if directly connected to destination network, then forward to host if not directly connected to destination network, 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 Example (R2) Network number Next 1 R3 2 R1 3 Interface 1 4 Interface 0 17-Jan-19 4/598N: Computer Networks

Map IP addresses into physical addresses Address Translation Map IP addresses into physical addresses destination host next hop router Techniques encode physical address in host part of IP address 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 17-Jan-19 4/598N: Computer Networks

ARP Details Request Format Notes 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 update table with source when you are the target update table if already have an entry do not refresh table entries upon reference 17-Jan-19 4/598N: Computer Networks

ARP Packet Format 8 16 31 Hardware type = 1 ProtocolT ype = 0x0800 8 16 31 Hardware type = 1 ProtocolT ype = 0x0800 HLen = 48 PLen = 32 Operation SourceHardwareAddr (bytes 0 –3) SourceHardwareAddr (bytes 4 –5) SourceProtocolAddr (bytes 0 –1) SourceProtocolAddr (bytes 2 –3) T argetHardwareAddr (bytes 0 –1) T argetHardwareAddr (bytes 2 -5) T argetProtocolAddr (bytes 0 -3) 17-Jan-19 4/598N: Computer Networks

Sample arp table in darwin arp -a Net to Media Table: IPv4 Device IP Address Mask Flags Phys Addr ------ -------------------- --------------- ----- --------------- eri0 eafs-e06.gw.nd.edu 255.255.255.255 00:d0:d3:3c:72:1c eri0 mailspool.helios.nd.edu 255.255.255.255 08:00:20:a1:8d:b6 eri0 penny.helios.nd.edu 255.255.255.255 08:00:20:9d:64:22 eri0 bubba.helios.nd.edu 255.255.255.255 08:00:20:92:5a:e4 eri0 yaya.helios.nd.edu 255.255.255.255 08:00:20:c4:05:c4 eri0 pinky.helios.nd.edu 255.255.255.255 08:00:20:a9:88:30 eri0 dagger.nd.edu 255.255.255.255 08:00:20:7a:4a:3e eri0 bind.nd.edu 255.255.255.255 08:00:20:8a:5f:cf eri0 license.nd.edu 255.255.255.255 08:00:20:86:2b:52 eri0 admissions.nd.edu 255.255.255.255 00:90:27:d5:f2:2f eri0 casper.helios.nd.edu 255.255.255.255 08:00:20:b1:f8:e1 17-Jan-19 4/598N: Computer Networks

4. Internet Control Message Protocol (ICMP) Echo (ping) Redirect (from router to source host) Destination unreachable (protocol, port, or host) TTL exceeded (so datagrams don’t cycle forever) Checksum failed Reassembly failed Cannot fragment 17-Jan-19 4/598N: Computer Networks

5. Virtual Private Networks (VPN) and tunnel Create a virtual network connecting different networks across the general Internet Connect ND campus in South Bend and London to make them look like a single LAN even though packets traverse general IP network Use IP tunneling or IP over IP Encapsulate IP packets inside other IP packets Extra overhead Host Host Router IP tunnel Router Host Host 17-Jan-19 4/598N: Computer Networks

Routing Outline Algorithms Scalability 17-Jan-19 4/598N: Computer Networks

Overview Forwarding vs Routing Network as a Graph forwarding: to select an output port based on destination address and routing table routing: process by which routing table is built Network as a Graph Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load 17-Jan-19 4/598N: Computer Networks

Technique 1: Distance Vector (RIP) Each node maintains a set of triples (Destination, Cost, NextHop) Exchange updates directly connected neighbors periodically (on the order of several seconds) whenever table changes (called triggered update) Each update is a list of pairs: (Destination, Cost) Update local table if receive a “better” route smaller cost came from next-hop Refresh existing routes; delete if they time out 17-Jan-19 4/598N: Computer Networks

Destination Cost NextHop Example B Destination Cost NextHop A 1 A C 1 C D 2 C E 2 A F 2 A G 3 A C A D E F G 17-Jan-19 4/598N: Computer Networks

Routing Loops Example 1 Example 2: count to infinity problem F detects that link to G has failed F sets distance to G to infinity and sends update to A A sets distance to G to infinity since it uses F to reach G A receives periodic update from C with 2-hop path to G A sets distance to G to 3 and sends update to F F decides it can reach G in 4 hops via A Example 2: count to infinity problem link from A to E fails A advertises distance of infinity to E B and C advertise a distance of 2 to E B decides it can reach E in 3 hops; advertises this to A A decides it can read E in 4 hops; advertises this to C C decides that it can reach E in 5 hops… 17-Jan-19 4/598N: Computer Networks

Loop-Breaking Heuristics Set infinity to 16 Split horizon Don’t send route updates to neighbor where your learnt the previous update from Split horizon with poison reverse Send a negative cost back to the neighbor Does not solve large loops Waiting can help, but increases convergence delay 17-Jan-19 4/598N: Computer Networks

Technique 2: Link State (OSPF) Strategy send to all nodes (not just neighbors) information about directly connected links (not entire routing table) Link State Packet (LSP) id of the node that created the LSP cost of link to each directly connected neighbor sequence number (SEQNO) time-to-live (TTL) for this packet 17-Jan-19 4/598N: Computer Networks

Link State (cont) Reliable flooding store most recent LSP from each node forward LSP to all nodes but one that sent it generate new LSP periodically increment SEQNO start SEQNO at 0 when reboot decrement TTL of each stored LSP discard when TTL=0 17-Jan-19 4/598N: Computer Networks

Route Calculation Dijkstra’s shortest path algorithm Let N denotes set of nodes in the graph l (i, j) denotes non-negative cost (weight) for edge (i, j) s denotes this node M denotes the set of nodes incorporated so far C(n) denotes cost of the path from s to node n M = {s} for each n in N - {s} C(n) = l(s, n) while (N != M) M = M union {w} such that C(w) is the minimum for all w in (N - M) for each n in (N - M) C(n) = MIN(C(n), C (w) + l(w, n )) 17-Jan-19 4/598N: Computer Networks

Original ARPANET metric Metrics Original ARPANET metric measures number of packets enqueued on each link took neither latency or bandwidth into consideration New ARPANET metric stamp each incoming packet with its arrival time (AT) record departure time (DT) when link-level ACK arrives, compute Delay = (DT - AT) + Transmit + Latency if timeout, reset DT to departure time for retransmission link cost = average delay over some time period Fine Tuning compressed dynamic range replaced Delay with link utilization 17-Jan-19 4/598N: Computer Networks