Delivery and Routing of IP Packets

Slides:



Advertisements
Similar presentations
Delivery and Forwarding of
Advertisements

1 Chapter 22 Network layer Delivery, Forwarding and Routing.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
ECE 4110 – Internetwork Programming TCP/IP Protocol (cont’d)
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Routing and Routing Protocols Introduction to Static Routing.
IP Routing: an Introduction. Quiz
Delivery, Forwarding, and Routing
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Routing. 2 Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing.
Copyright © Lopamudra Roychoudhuri
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
10/8/2015CST Computer Networks1 IP Routing CST 415.
Delivery, Forwarding, and Routing of IP Packets
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2003 Chapter 6 Delivery and Routing of IP Packets.
Chapter 6 Delivery and Forwarding of IP Packets
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 6 Delivery and Routing of IP Packets.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Delivery, Forwarding, and Routing of IP Packets
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer: 19.1 Internetworks 19.2 Addressing Classful, Classless addressing, NAT 19.3 Routing.
Routing and Routing Protocols
Internet Protocol: Routing IP Datagrams Chapter 8.
TCP/IPTCP/IP Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Configuration for routing example
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Chapter 11 User Datagram Protocol
Chapter 6 Delivery & Forwarding of IP Packets
Network Layer, and Logical Addresses
Network layer Jarkom Dasar – Week 6 Aisyatul Karima, 2012.
Routing and Routing Protocols: Routing Static
Forwarding and Routing IP Packets
PART IV Network Layer.
COMP 3270 Computer Networks
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Chapter 6 – Routing.
Chapter 6 Delivery & Forwarding of IP Packets
Introduction to Networking
Chapter 6 Delivery & Forwarding of IP Packets
5 Network Layer Part II Computer Networks Tutun Juhana
Net 323 D: Networks Protocols
IP Forwarding Relates to Lab 3.
Chapter 6 Delivery & Forwarding of IP Packets
Unit 2: IP addressing (Contd.). Delivery and routing of packets
Delivery, Forwarding, and Routing
Routing and Routing Protocols: Routing Static
Delivery and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Chapter 2: Static Routing
Delivery, Forwarding, and Routing of IP Packets
Delivery and Forwarding of
Chapter 10 IGMP Prof. Choong Seon HONG.
Net 323 D: Networks Protocols
Delivery, Forwarding, and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
Example 9 (Continued) 1. The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network.
Figure 6.11 Configuration for Example 4
Delivery, Forwarding, and Routing of IP Packets
Chapter 6 Delivery & Forwarding of IP Packets
Presentation transcript:

Delivery and Routing of IP Packets Prof. Choong Seon HONG

Introduction Delivery Routing Meaning the physical forwarding of the packets Connectionless and connection-oriented services Direct and indirect delivery Routing Related to finding the route (next hop) for a datagram

6.1 Connection-oriented versus Connectionless Services Packet delivery in network layer Connection-oriented protocol Using same path The decision about the route of a sequence of packets with the same source and destination addresses can be made only once, when the connection is established Connectionless protocol Dealing with each packet independently Packets may not travel the same path to their destination IP protocol

6.2 Direct versus Indirect Delivery Two methods delivering a packet to its final destination Direct Indirect Direct delivery The final destination of the packet is a host to the same physical network as the deliverer or the delivery is between the last router and the destination host Decision making whether delivery is direct or not Extracting the network address of the destination packet (setting the hostid part to all 0s) Then, comparing the addresses of the network to which it is connected

Direct versus Indirect Delivery (cont’d)

Direct versus Indirect Delivery (cont’d) The destination host is not on the same network as the deliverer The packet goes from router to router until finding the final destination Using ARP to find the next physical address Mapping between the IP address of next router and the physical address of the next router

Direct versus Indirect Delivery (cont’d)

6.3 Routing methods Routing table Next-hop Routing Used to find the route to the final destination Next-hop Routing The routing table holds only the address of the next hop instead of holding information about the complete route

Routing methods (cont’d)

Routing methods (cont’d) Network-Specific Routing Having only one entry to define the address of network itself

Routing methods (cont’d) Host-Specific Routing Host addresses in the routing table Giving to administrator more control over routing Ex) if the administrator wants all packets arriving for host B delivered to router R3 instead of R1, one single entry in the routing table of host A can explicitly define the route

Routing methods (cont’d)

Routing methods (cont’d) Default routing Instead of listing all networks in the entire Internet , host A can just have one entry called the default (network address 0.0.0.0)

6.4 Static versus Dynamic Routing Static routing table Containing information entered manually Cannot update automatically when there is a change in the internet Used in small internet that does not change very much, or in an experimental internet for troubleshooting Dynamic routing table is updated periodically using one of the dynamic routing protocols such RIP, OSPF, or BGP Updating the routing table corresponding to shutdown of a router or breaking of a link

6.5 Routing Module and Routing Table Design When looking for the route, The router must first check for direct delivery Then host-specific delivery Then network-specific delivery Finally, default delivery The operation of the routing module and table The routing module receiving an IP packet from the IP processing module The routing module consulting the routing table to find the best route for the packet The packet to be sent to the fragmentation

Routing Module and Routing Table Design (cont’d)

Routing Module and Routing Table Design (cont’d) Organized in hierarchical scheme Direct-delivery entries first Host-specific delivery entries next Network-specific entries next The default delivery entry lat Seven fields that the routing table has Mask, destination address, next-hop address, flags, reference-count, use, and interface Flags U The router is up and running. G The destination is in another network. H Host-specific address. D Added by redirection. M Modified by redirection.

Routing Module and Routing Table Design (cont’d) Mask Defining the mask applied to the destination IP address of the packet to find the network or subnetwork address of the destination In host-specific and default routing, the mask is 255.255.255.255 In unsubnetted network, the mask is the default mask for the class (255.0.0.0, 255.255.0.0, or 255.255.255.0) Destination address Defining either the destination host address (host-specific : netid + hostid )or destination network address (network-specific : netid) Nexthop address Defining the address of the next-hop router to which the packet should be delivered

Routing Module and Routing Table Design (cont’d) Flags U (Up) : indicating the router’s running G (Gateway) : meaning that the destination is another network H (Host-specific) : indicating that the entry in the destination is a host-specific address D (Added by redirection) : indicating that routing information for this destination has been added to the host routing table by a redirection message from ICMP M (Modified by redirection) : indicating that routing information for this destination has been modified by a redirection message from ICMP Reference count : giving the number of users that are using this route at any moment Use : showing the number of packets transmitted through this router for the corresponding destination Interface : showing the name of the interface

Routing Module and Routing Table Design (cont’d) module receiving an IP packet from the IP processing module 1. for each entry in the routing table 1. Apply the mask to packet destination address 2. If (the result matches the value in the destination field) 1. If (the G flag is present) 1. Use the next-hop entry in the table as next-hop address 2. If ( the G flag is missing) 1. Use packet destination address (direct delivery) 3. Send packet to fragmentation module with next-hop address 4. Stop 2. If no match is found, send an ICMP error message 3. Stop

Examples Giving some examples of routing by router R1

Examples (cont’d) Routing table for router R1

Examples (cont’d) Example 1 Router R1 Receives 500 packets for destination 192.16.7.14; algorithm applies the masks row by row to the destination address until a match is found Direct delivery 192.16.7.14 & 255.0.0.0  192.0.0.0 no match 192.16.7.14 & 255.255.255.224  192.16.7.0 no match 192.16.7.14 & 255.255.255.224  192.16.7.0 no match 2. Host-specific 192.16.7.14 & 255.255.255.224  192.16.7.14 no match 3. Network specific a. 192.16.7.14 & 255.255.255.0  192.16.7.0 match

Examples (cont’d) sending packet through interface m0 along with the next-hop IP address (111.15.17.32) to the fragmentation module for further processing Incrementing the use field by 500 and the reference count field by 1

Examples (cont’d) Example 2 Direct delivery - Router R1 Receives 100 packets for destination 193.14.5.176; the algorithm applies the masks row by row to the destination address until a match is found Direct delivery a. 193.14.5.176 & 255.0.0.0  193.0.0.0 no match b. 193.14.5.176 & 255.255.255.224  193.14.5.160 match Sending packet through interface m2 along with the next-hop IP address (193.14.5.176) to the fragmentation module for further processing Incrementing the use field by 100 and the reference count field by 1

Examples (cont’d) Example 3 Router R1 Receives 20 packets for destination 200.34.12.34; the algorithm applies the masks row by row to the destination address until a match is found Direct delivery 200.34.12.34 & 255.0.0.0  200.0.0.0 no match 200.34.12.34 & 255.255.255.224  200.34.12.32 no match 200.34.12.34 & 255.255.255.224  200.34.12.32 no match 2. Host-specific 200.34.12.34 & 255.255.255.224  200.34.12.32 no match 3. Network specific 200.34.12.34 & 255.255.255.0  200.34.12.0 no match 4. Default a. 200.34.12.34 & 0.0.0.0  0.0.0.0 match

Examples (cont’d) sending packet through interface m0 along with the next-hop IP address (111.30.31.18) to the fragmentation module for further processing Incrementing the use field by 20 and the reference count field by 1

Examples (cont’d) Example 4

Examples (cont’d) Mask Destination Next Hop I.

Examples (cont’d) Example 5

Examples (cont’d) Mask Destination Next Hop I. ----------------------------------------------------------------------------- 255.255.255.0 80.4.5.0 201.4.10.3 m1 or 200.8.4.12 or m2 ------------------------------------------------------------------------------ 255.255.255.0 80.4.6.0 201.4.10.3 m1 or 200.4.8.12 or m2 ------------------------------------------------------------------------------- 0.0.0.0 0.0.0.0 ???????????? m0

Examples (cont’d) The routing table for router R1 is given below. Draw its topology Mask Destination Next Hop I. 255.255.0.0 110.70.0.0 - m0 255.255.0.0 180.14.0.0 - m2 255.255.0.0 190.17.0.0 - m1 255.255.0.0 130.4.0.0 190.17.6.5 m1 255.255.0.0 140.6.0.0 180.14.2.5 m2 0.0.0.0 0.0.0.0 110.70.4.6 m0

Examples (cont’d)

6.6 Classless Addressing : CIDR Routing Table Size The number of routing table entries will increase Hierarchical Routing To solve the problem of gigantic routing tables Geographical routing Extension of hierarchical routing to include geographical routing For example, a block to North America, a block to Europe, a block to Asia, a block to Africa, and so on. The routers of ISPs outside of Europe will have only one entry for packets to Europe in their routing tables

Classless Addressing : CIDR (cont’d) Routing Table Search Algorithms In classful addressing, each address has self-contained information that facilitates routing table searching. : ex) dividing 3 buckets (A, B, C) In classless addressing, there is no self-contained information in the destination address to facilitate routing table searching. : ex) using longest match method - from the longest prefix(/32)