Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.

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.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
© Jörg Liebeherr ECE 1545 Packet-Switched Networks.
15-744: Computer Networking L-3 Addressing/Forwarding.
1 Switching and Forwarding Bridges and Extended LANs.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
15-744: Computer Networking L-4 Routers. L -4; © Srinivasan Seshan, Routing How do routers process IP packets Forwarding lookup algorithms.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 13 Introduction to Networks and the Internet.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
1 Peter Steenkiste Departments of Computer Science and Electrical and Computer Engineering Networking, Spring 2008
15-744: Computer Networking
1 Switching and Forwarding Bridges and Extended LANs.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Lecture 7 – IP Addressing and Forwarding
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
29-Aug-154/598N: Computer Networks Switching and Forwarding Outline –Store-and-Forward Switches.
Univ. of TehranIntroduction to Computer Network1 Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser.
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
Courtesy: Nick McKeown, Stanford More on IP and Packet Forwarding Tahir Azim.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 18 Omar Meqdadi Department of Computer Science and Software Engineering University.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
1 Flow Identification Assume you want to guarantee some type of quality of service (minimum bandwidth, maximum end-to-end delay) to a user Before you do.
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Advance Computer Networking L-8 Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan.
Internet Protocol ECS 152B Ref: slides by J. Kurose and K. Ross.
CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer.
Computer Networking Lecture 9 – IP Addressing and Forwarding.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 7 - IP: Addressing and Forwarding.
Internet Protocol: Routing IP Datagrams Chapter 8.
Unit III Bandwidth Utilization: Multiplexing and Spectrum Spreading In practical life the bandwidth available of links is limited. The proper utilization.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CH. 8: SWITCHING & DATAGRAM NETWORKS 7.1.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
Packet Switch Architectures The following are (sometimes modified and rearranged slides) from an ACM Sigcomm 99 Tutorial by Nick McKeown and Balaji Prabhakar,
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Switching By, B. R. Chandavarkar, CSE Dept., NITK, Surathkal Ref: B. A. Forouzan, 5 th Edition.
Fall, 2001CS 6401 Switching and Routing Outline Routing overview Store-and-Forward switches Virtual circuits vs. Datagram switching.
Advanced Computer Networks
Chapter 3: Packet Switching (overview)
Scaling the Network Chapters 3-4 Part 2
Chapter 4 Network Layer All material copyright
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Packet Switching Datagram Approach Virtual Circuit Approach
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Switching and Forwarding Bridges and Extended LANs
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Network Layer I have learned from life no matter how far you go
EEC-484/584 Computer Networks
EE 122: Lecture 7 Ion Stoica September 18, 2001.
Introduction to Computer Networks
Chapter 3 Part 3 Switching and Bridging
IP Forwarding Relates to Lab 3.
Packet Switching Outline Store-and-Forward Switches
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Packet Switch Architectures
Presentation transcript:

Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 4: Packet forwarding

Univ. of TehranComputer Network2 Packet forwarding How do routers process IP packets How do they forward packets Assigned reading Section from “Computer Network: A System Approach”

Univ. of TehranComputer Network3 Forwarding vs. Routing Forwarding: the process of moving packets from input to output The forwarding table Lookup. How to populate the lookup table? Routing: process by which the forwarding table is built and maintained One or more routing protocols Procedures (algorithms) to convert routing into to forwarding table.

Univ. of TehranComputer Network4 Outline Alternative methods for packet forwarding IP packet routing

Univ. of TehranComputer Network5 Techniques for Forwarding Packets Source routing Packet carries path Table of virtual circuits Connection routed through network to setup state Packets forwarded using connection state Table of global addresses (IP) Routers keep next hop for destination Packets carry destination address

Univ. of TehranComputer Network6 Source Routing List entire path in packet Driving directions (north 3 hops, east, etc..) Router processing, one option Examine first step in directions Strip first step from packet Forward to step just stripped off Or the address can be implemented by a linked list in the packet header.

Univ. of TehranComputer Network7 Source Routing Example Receiver Packet 3,4,3 Sender R1 R2 R1 4,33

Univ. of TehranComputer Network8 Source Routing Advantages Switches can be very simple and fast Disadvantages Variable (unbounded) header size Sources must know or discover topology (e.g., failures) Typical use Machine room networks (Myprinet) Debugging and management

Univ. of TehranComputer Network9 Virtual Circuits/Tag Switching Use the telephone model virtual circuits Each flow is identified by a Virtual Circuits Identifier (VCI). Connection setup phase, Signaling Use other means to route setup request Each router allocates flow ID on local link Creates mapping of inbound flow ID/port to outbound flow ID/port Each packet carries connection ID Sent from source with 1 st hop connection ID Router processing Lookup flow ID – simple table lookup Replace flow ID with outgoing flow ID Forward to output port

Univ. of TehranComputer Network10 Virtual Circuits Examples Receiver Packet 1,5  3,7 Sender ,7  4, ,2  3,6 R2 R3 R In-portIn-VCIOut-portOut-VCI Lookup table for Switch R1

Univ. of TehranComputer Network11 Virtual Circuits Advantages More efficient lookup (simple table lookup) More flexible (different path for each flow) Can reserve bandwidth at connection setup Easier for hardware implementations Small per-packet header overhead small. Disadvantages Still need to route connection setup request More complex failure recovery – must recreate connection state Typical uses ATM – combined with fix sized cells MPLS – tag switching for IP networks

Univ. of TehranComputer Network12 IP Datagrams on Virtual Circuits Challenge – when to setup connections At bootup time – permanent virtual circuits (PVC) Large number of circuits For every packet transmission Connection setup is expensive For every connection What is a connection? How to route connectionless traffic?

Univ. of TehranComputer Network13 IP Datagrams on Virtual Circuits Traffic pattern Few long lived flows Flow – set of data packets from source to destination Large percentage of packet traffic Improving forwarding performance by using virtual circuits for these flows Other traffic uses normal IP forwarding

Univ. of TehranComputer Network14 Datagram Switching No connection setup phase since it is costly. Each packet is forwarded independently Sometimes called connectionless model Analogy: postal system Each switch maintains a forwarding (routing) table Receiver Packet R Sender R1 R2 R1 RR R  3 R  4 R  3 R

Univ. of TehranComputer Network15 Datagram Model There is no round trip time delay waiting for connection setup; a host can send data as soon as it is ready. Source host has no way of knowing if the network is capable of delivering a packet or if the destination host is even up. Since packets are treated independently, it is possible to route around link and node failures. Since every packet must carry the full address of the destination, the overhead per packet is higher.

Univ. of TehranComputer Network16 Global Addresses (IP) Each packet has destination address Each switch has forwarding table of destination  next hop At v and x: destination  east At w and y: destination  south At z: destination  north Distributed routing algorithm for calculating forwarding tables

Univ. of TehranComputer Network17 Router Table Size One entry for every host on the Internet 100M entries, doubling every year One entry for every LAN Every host on LAN shares prefix Still too many, doubling every year One entry for every organization Every host in organization shares prefix Requires careful address allocation

Univ. of TehranComputer Network18 Outline Alternative methods for packet forwarding IP packet routing Variable prefix match Routing protocols – distance vector

Univ. of TehranComputer Network19 Original IP Route Lookup Address classes A: 0 | 7 bit network | 24 bit host (16M each) B: 10 | 14 bit network | 16 bit host (64K) C: 110 | 21 bit network | 8 bit host (255) We need to keep only network address, 2 21 entries. Address would specify prefix for forwarding table Simple lookup

Univ. of TehranComputer Network20 Original IP Route Lookup – Example address Class B address – class + network is Lookup in forwarding table Prefix – part of address that really matters for routing Forwarding table contains List of class+network entries A few fixed prefix lengths (8/16/24) Large tables 2 Million class C networks

Univ. of TehranComputer Network21 CIDR Revisited Supernets Assign adjacent net addresses to same org Classless routing (CIDR) How does this help routing table? Combine routing table entries whenever all nodes with same prefix share same hop

Univ. of TehranComputer Network22 CIDR Illustration Provider is given / / / / /23 Provider

Univ. of TehranComputer Network23 Classless Addressing CIDR ABCD / /19 65/8 Classless: Class-based: Class A cover a large range of addresses Take part of address space for host addresses.

Univ. of TehranComputer Network24 Classless Addressing CIDR / / / / /24 Most specific route = “longest matching prefix”

Univ. of TehranComputer Network25 IP Lookup  Packets are forwarded to their destination based on their destination addresses.  Router must find the address of the next hop for each packet by finding the longest prefix matching with the packet destination address.

Univ. of TehranComputer Network26 Forwarding Datagrams “Network ID” uniquely identifies a physical network. All hosts and routers sharing a Network ID share the same physical network. Every network in Internet is connected to at least one router that can exchange packets with other routers

Univ. of TehranComputer Network27 Forwarding Algorithm If the datagram destination address is in the local network deliver packet over the interface else if the network address is in the forwarding table deliver packet to the corresponding next hop else deliver packet to the default router. For Class address there is exact matching For Classless address it is prefix matching.

Univ. of TehranComputer Network28 Forwarding Table 128.9/ / / / / /19 65/8 PrefixPort Next-hop R1 R2 R3 R e.g => Port 2 It is prefix matching in the table.

Univ. of TehranComputer Network29 Default Routing R1 R2R3R4R5 Default Routing Requires Routing Table Default Routing

Univ. of TehranComputer Network30 Inside a Router Forwarding Decision Forwarding Decision Forwarding Decision Forwarding Table Forwarding Table Forwarding Table Interconnect Output Scheduling

Univ. of TehranComputer Network31 Forwarding in an IP Router A higher level view from router perspective. Lookup packet DA in forwarding table. –If known, forward to correct port. –If unknown, drop packet. Decrement TTL, update header Checksum. Forward packet to outgoing interface. Transmit packet onto link.

Univ. of TehranComputer Network32 Global Addresses Advantages Stateless – simple error recovery Disadvantages Every switch knows about every destination Potentially large tables All packets to destination do not take same route

Univ. of TehranComputer Network33 Comparison Source RoutingGlobal Addresses Header SizeWorstOK – Large address Router Table SizeNone Number of networks (prefixes) Forward OverheadBest Prefix matching Virtual Circuits Best Number of circuits Pretty Good Setup OverheadNone Error RecoveryTell all hostsTell all routers Connection Setup Tell all routers and Tear down circuit and re-route

Univ. of TehranComputer Network34 Next Lecture: Routers How do you build a router Assigned reading [P+98] A 50 Gb/s IP Router