10/8/2015CST 415 - Computer Networks1 IP Routing CST 415.

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

IP Forwarding Relates to Lab 3.
1 Chapter 22 Network layer Delivery, Forwarding and Routing.
Routing Basics By Craig Lindstrom. Overview Routing Process Routing Process Default Routing Default Routing Static Routing Static Routing Dynamic Routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Routing Fundamentals and Subnetting
CS335 Networking & Network Administration Tuesday, May 11, 2010.
IP Routing: an Introduction. Quiz
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
Institute of Technology Sligo - Dept of Computing Chapter 11 Layer 3 Protocols Paul Flynn.
1 Version 3.0 Module 10 Routing Fundamentals and Subnetting.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Each computer and router interface maintains an ARP table for Layer 2 communication The ARP table is only effective for the broadcast domain (or LAN)
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
1 Chapter 6 – Internet Protocol: Connectionless Datagram Delivery 6.3 Internet Architecture and Philosophy Chapters are about this layer NETWORK.
Chapter 4: Managing LAN Traffic
1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Routing and Routing Protocols Routing Protocols Overview.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
1 Chapter Overview Routing Principles. Understanding Routing--important Routing refers to the process of taking a packet from one device and sending it.
IP Forwarding.
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 6 Delivery and Routing of IP Packets.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Delivery, Forwarding, and Routing of IP Packets
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI Network Layer Network Fundamentals – Chapter 5.
CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
Internet Protocol: Routing IP Datagrams Chapter 8.
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 10 Routing Fundamentals and Subnets.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Layer 3: Protocols Honolulu Community College Cisco Academy Training Center Semester 1 Version
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
ROUTING.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Working at a Small-to-Medium Business or ISP – Chapter 6
Chapter 6 Delivery & Forwarding of IP Packets
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Chapter 6 Delivery & Forwarding of IP Packets
Net 323: NETWORK Protocols
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Delivery and Routing of IP Packets
Delivery and Routing of IP Packets
IP : Internet Protocol Surasak Sanguanpong
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Routing Fundamentals and Subnets
Working at a Small-to-Medium Business or ISP – Chapter 6
Delivery, Forwarding, and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
IP Forwarding Relates to Lab 3.
Network Fundamentals – Chapter 5
Presentation transcript:

10/8/2015CST Computer Networks1 IP Routing CST 415

10/8/2015CST Computer Networks2 Topics Problem Definition Packet Delivery Table Driven Routing Next Hop Routing Default and Host Specific Routes Routing Algorithm

10/8/2015CST Computer Networks3 Question… ARP resolves IP addresses to physical addresses. How can a packet be addressed to go to a destination that is not on the same network segment? How can a packet be addressed to go to a destination that is on a “very distant” network?

10/8/2015CST Computer Networks4 Problem Definition The Internet is an abstraction away from the physical network. The IP layer sits on top the MAC/Physical layers. Packets are routed between IP peers. It is these IP peers that make up the Internet.

10/8/2015CST Computer Networks5 Problem Definition Packets need to be routed from the originating host to a router (for Internet based delivery). The router needs to move the packet across to a separate network, possibly of a different technology and conforming to different policies. Networks need to internally route packets using a homogeneous technology.

10/8/2015CST Computer Networks6 Problem Definition – The Players From host to router: Typically static route tables. These tables may be updated dynamically via ICMP. ICMP – Internet Control Messaging Protocol. ICMP allows routers to talk back to host computers for reporting packet transmission problems.

10/8/2015CST Computer Networks7 Problem Definition – The Players From “subnet” router to “subnet” router: Routing tables dynamically updated “at the whim” of the subnet connection controlling router. EGP – Exterior Gateway Protocol BGP – Boundary Gateway Protocol. BGP allows a primary subnet router to negotiate services with other primary subnet routers. BGP allows a router to “hide” the details of it’s network. When we trace a route to a network, but the host cannot be resolved, it is BGP that is protecting the identity of it’s internal networks and nodes.

10/8/2015CST Computer Networks8 Problem Definition – The Players From “internal subnet” router to “internal subnet” router (host computers need not apply): Routing tables dynamically updated based on the routing protocol supported by the internal network. IGP – Interior Gateway Protocol RIP – Routing Information Protocol. OSPF – Open Shortest Path First Protocol. Internal networks will speak either RIP or OSPF. They will not typically speak both. In either case, routing information is exchanged using these protocols.

10/8/2015CST Computer Networks9 Packet Delivery Internet Protocol – Defines unreliable, connectionless delivery of packets. –Unreliable – send it and forget it. –Connectionless – the route of the packet will be defined “on-the-fly” by the network itself (e.g. routers between the source and destination).

10/8/2015CST Computer Networks10 Packet Delivery The physical machines that make up the Internet IP web fall into two categories – Hosts and Routers. Hosts and Routers both must be capable of originating an IP packet. Routers must implement forwarding algorithms. Hosts are not required to forward packets.

10/8/2015CST Computer Networks11 Packet Delivery Two types of packet delivery need to be considered: 1.Direct Delivery – The packet is delivered directly to a peer machine located on the same physical network. 2.Indirect Delivery – The packet is delivered to an intermediary (router). –The intermediary is responsible for passing the packet along to the packets destination. –The intermediary will deliver the packet either directly or indirectly.

10/8/2015CST Computer Networks12 Operations involved in IP routing.

10/8/2015CST Computer Networks13 Packet Delivery The MAC layer will pass the IP packet up to the IP layer (based on the packet type field in the MAC header. The IP layer looks at the IP address and determines the destination of the packet. –The network address of the IP address is inspected. –If the network address is the same as the network address of the router, the packet is delivered directly. –If the network address is different than the address of the router, the packet is delivered indirectly.

10/8/2015CST Computer Networks14 Packet Delivery Question of the day: How does a router know where to send a packet given any particular IP address?

10/8/2015CST Computer Networks15 Table Driven Routing The router contains a table of network address associations (n,r) –n : IP address of the destination network –r : IP address of the next router When a packet arrives at the router, this table is consulted. The packet is sent along to the next router based on the table look-up.

10/8/2015CST Computer Networks16 Next Hop Routing In the IP routing table, keep the associations of network address and router. Only keep router associations for routers that can be reached across a single network connection.

10/8/2015CST Computer Networks17

10/8/2015CST Computer Networks18 Next Hop Routing Only the network address is maintained in the routing table. All traffic destined for a specific network will take the same path. Only the final router along the path can determine if a host actually exist. “To” and “From” paths may not be the same.

10/8/2015CST Computer Networks19 Default Routes Each network is assigned a default router. IP packets destined for networks not in the routing table will be sent to this router.

10/8/2015CST Computer Networks20 Host Specific Routes Allow administrative ability to pre- determine a specific route between two host machines.

10/8/2015CST Computer Networks21 Routing Algorithm The ultimate source and ultimate destination IP addresses are never altered. However, the IP layer selects a new IP address for packet delivery based on the network the packet is ultimately destined for. To send the packet along without changing the ultimate addresses in the packet (see IP packet format) –IP sends the packet to the MAC layer along with the “next hop” destination IP. –The MAC layer forms the physical packet using the “next hop” IP address to look up the physical address.

10/8/2015CST Computer Networks22 Routing Algorithm

10/8/2015CST Computer Networks23 Routing Algorithm (1) The router receives the IP packet from the Link Layer. (2) The router validates the IP header. Note that IP reassembly is not done, except on IP fragments to be queued for local delivery in step (4). (3) The router performs most of the processing of any IP options. Some IP options require additional processing after the routing decision has been made. (4) The router examines the destination IP address of the IP datagram to determine how it should continue to process the IP datagram. There are three possibilities: o The IP datagram is destined for the router, and should be queued for local delivery, doing reassembly if needed. o The IP datagram is not destined for the router, and should be queued for forwarding. o The IP datagram should be queued for forwarding, but (a copy) must also be queued for local delivery.

10/8/2015CST Computer Networks24 Routing Algorithm (5) The forwarder determines the next hop IP address for the packet, usually by looking up the packet's destination in the router's routing table. This procedure also decides which network interface should be used to send the packet. (6) The forwarder verifies that forwarding the packet is permitted. The source and destination addresses should be valid. If the router supports administrative constraints on forwarding, those constraints must be satisfied. (7) The forwarder decrements (by at least one) and checks the packet's TTL. (8) The forwarder performs any IP option processing that could not be completed in step 3. (9) The forwarder performs any necessary IP fragmentation. Since this step occurs after outbound interface selection (step 5), all fragments of the same datagram will be transmitted out the same interface.

10/8/2015CST Computer Networks25 Routing Algorithm (10) The forwarder determines the Link Layer address of the packet's next hop. The mechanisms for doing this are Link Layer- dependent. (11) The forwarder encapsulates the IP datagram (or each of the fragments thereof) in an appropriate Link Layer frame and queues it for output on the interface selected in step 5. (12) The forwarder sends an ICMP redirect if necessary.