Packet Forwarding 2/22/2019 CS/ECE 438 - UIUC, Fall 2006.

Slides:



Advertisements
Similar presentations
Spring 2003CS 4611 Switching and Forwarding Outline Store-and-Forward Switches Bridges and Extended LANs Cell Switching Segmentation and Reassembly.
Advertisements

Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 7 – February 2, 2010.
5: DataLink Layer5-1 Asynchronous Transfer Mode: ATM r 1990’s/00 standard for high-speed (155Mbps to 622 Mbps and higher) Broadband Integrated Service.
1 Switching and Forwarding Bridges and Extended LANs.
1 Chapter 3 Switching and Forwarding Outline 3.1 Switching and Forwarding 3.2 Bridges and LAN Switches 3.3 Cell Switching (ATM) 3.4 Implementation and.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
1 Asynchronous Transfer Mode (ATM) Cell Switching Connection-oriented packet-switched network Used in both WAN and LAN settings Signaling (connection setup)
1 Fall 2005 Virtual Circuit Switching and ATM: Asynchronous Transfer Mode Qutaibah Malluhi CSE Department Qatar University.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 15 Introduction to Networks and the Internet.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
1 Switching and Forwarding Bridges and Extended LANs.
Asynchronous Transfer Mode (ATM). ATM By the mid 1980s, three types of communication networks had evolved. The telephone network carries voice calls,
EE 4272Spring, 2003 Chapter 11. ATM and Frame Relay Overview of ATM Protocol Architecture ATM Logical Connections ATM Cells ATM Service Categories ATM.
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.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Asynchronous Transfer Mode: ATM r 1980s/1990’s standard for high-speed (155Mbps to 622 Mbps and higher) Broadband Integrated Service Digital Network architecture.
CPS 356: Introduction to Computer Networks Lecture 7: Switching technologies Ch 2.8.2, 3.1, 3.4 Xiaowei Yang
CHAPTER #6  Introducti on to ATM. Contents  Introduction  ATM Cells  ATM Architecture  ATM Connections  Addressing and Signaling  IP over ATM.
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
Computer Networks with Internet Technology William Stallings
Chapter 14 Connection-Oriented Networking and ATM
ATM Technologies. Asynchronous Transfer Mode (ATM) Designed by phone companies Single technology meant to handle –Voice –Video –Data Intended as LAN or.
21-Dec-154/598N: Computer Networks Cell Switching (ATM) Connection-oriented packet-switched network Used in both WAN and LAN settings Signaling (connection.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
Virtual Circuit Networks Frame Relays. Background Frame Relay is a Virtual Circuit WAN that was designed in late 80s and early 90s. Prior to Frame Relays.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag Mohammadi Packet Switching.
Fall, 2001CS 6401 Switching and Routing Outline Routing overview Store-and-Forward switches Virtual circuits vs. Datagram switching.
1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.
CS380 Int. to Comp. Networks Switching – Part II1 Bridges and LAN Switches Q. What can be used to share data between two shared-media LAN’s? A.LAN switch.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Chapter 3 Part 1 Switching and Bridging
The Network Layer.
Chapter 3 Part 3 Switching and Bridging
Advanced Computer Networks
Chapter 9 Introduction To Data-Link Layer 9.# 1
Chapter 3: Packet Switching (overview)
Chapter 4 Network Layer All material copyright
Advanced Computer Networks
Asynchronous Transfer Mode
Chapter 4 Introduction to Network Layer
EE 122: Lecture 19 (Asynchronous Transfer Mode - ATM)
Advanced Computer Networks
Scaling the Network: The Internet Protocol
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Packet Switching Datagram Approach Virtual Circuit Approach
Switching and Forwarding Bridges and Extended LANs
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
Chapter 3 Part 3 Switching and Bridging
THE NETWORK LAYER.
Chapter 4 Introduction to Network Layer
Measured Capacity of an Ethernet: Myths and Reality
EEC-484/584 Computer Networks
Switching and Forwarding
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.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Chapter 3 Part 3 Switching and Bridging
Scaling the Network: The Internet Protocol
Packet Switching Outline Store-and-Forward Switches
Routing and the Network Layer (ref: Interconnections by Perlman
Presentation transcript:

Packet Forwarding 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Now Arriving at Layer 3 … although layer 2 switches and layer 3 routers are similar in many ways … and ATM/Virtual Circuits are used at layer 2 these days 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Network Layers and Routers Application Application Host Presentation Presentation Session Session Router Transport Transport Network Network Network Data Link Data Link Data Link Physical Physical Physical 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Router Design Switch Fabric Input Port Output Port Input Port 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding Forwarding Algorithm Three general types Consult packet header Consult forwarding tables Decide on output port Three general types Datagram forwarding Virtual Circuits Source Routing Differ by contents of header and tables 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Switching and Forwarding The task of specifying an appropriate output port for a packet Datagram Virtual Circuit Switching Source Routing Each packet contains enough information for a switch to determine the correct output port Later Building forwarding tables – routing. Packet Header Output Port Specification 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Datagrams Connectionless Each packet travels independently Switch Translates global address to output port Maintains table of translations Used in traditional data networks i.e., Internet 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Datagrams Host A Host B    Host G 3 1 3 1 3 1 Host C 2 2 2 Host D  Host F 3 1 Host E 2 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Routing Table Each switch maintains a routing table that translates a host name to an output port ’s Table ’s Table ’s Table ’s Table A 1 3 2 A A A B B B B C C C C   A G D E C B F   1 2 3 D D D D E E E E F F F F G G G G 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Datagrams A  E DATA E A sends:   A G D E C B F   1 2 3 C  F DATA F C sends: B  E DATA E B sends: F  G DATA G F sends: What happens to the last packet? A  H DATA H A sends: 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Datagrams Analogous to following signs Requires globally unique addresses Routing is decentralized A router follows global routing algorithms Two packets usually take the same path but… Each router can change its mind at any time 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Traceroute Example From HW1 solutions traceroute www.scott.aq traceroute to www.scott.aq (203.167.246.34), 30 hops max, 40 byte packets 1 uiuc-ewsl-vlan1.gw.uiuc.edu (130.126.160.1) 0.425 ms 0.213 ms 0.319 ms 2 … 13 ae-0-0.bbr1.Washington1.Level3.net (64.159.0.229) 21.946 ms as-2-0.bbr2.Washington1.Level3.net (209.247.10.130) 21.351 ms 21.280 ms 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Datagrams Advantages Disadvantages Routes around failures Can send traffic immediately Disadvantages Header requires full unique address Might not be possible to deliver packet Successive packets may not follow the same route Global address to path translations requires significant storage 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Connection oriented Requires explicit setup and teardown Packets follow established route Why support connections in a network? Useful for service notions Important for telephony Switch Translates virtual circuit ID on incoming link to virtual circuit ID on outgoing link Circuit Ids can be per-link or per-switch Used in ATM 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Virtual Circuits Packet header stores: Router stores: Virtual Circuit ID Router stores: Table of how to forward packets for each virtual circuit Note: VCID need not be global Assign a VCID to a circuit for each link-link pair 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Set up A virtual circuit identifier (VCI) is assigned to the circuit for each link it traverses VCI is locally significant <incoming port, incoming VCI> uniquely identifies VC Switch Maintains a translation table from <incoming port, incoming VCI> to <outgoing port, outgoing VCI> Permanent Virtual Circuits (PVC) Long-lived Switch Virtual Circuits (SVC) Uses signaling to establish VC 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits A simple example setup protocol Each host and switch maintains per-link local variable for VCI assignment When setup frame leaves host/switch Assign outgoing VCI Increment assignment counter port and circuit id combination is unique switches maintain translation table from incoming port/VCI pair to outgoing port/VCI pair 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Assumptions Circuits are simplex On a duplex link, the same VCI can be used for two circuits, one in each direction The same VCI can be used on different ports of the same switch At setup, the lowest available VCI is used 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Host A Host B Setup Message: Dest = E Host E VCI = ?    Host G 3 1 3 1 3 1 Host C Setup Message: Dest = E <0,0>  <1,?> 2 2 Setup Message: Dest = E 2 <3,0>  <2,?> Set up circuit: Host D A  E  Host F 3 1 Host E 2 <0,0>  <1,?> Setup Message: Dest = E 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Host A Host B ACK Message: VCI = 0 Host E VCI = 0    Host G 3 1 3 1 3 1 Host C <0,0>  <1,0> ACK Message: VCI = 0 2 2 ACK Message: VCI = 0 2 <3,0>  <2,0> Set up circuit: Host D A  E  Host F 3 1 Host E Host A VCI = 0 2 <0,0>  <1,0> ACK Message: VCI = 0 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Host A Host B 1 2 1    Host G 3 1 3 1 3 1 Host C 2 2 2 Set up circuits: Host D A  E  Host F 3 1 Host E C  F 2 G  E 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Table entries after AE connection is set 1 VCI OUT Port OUT VCI IN Port IN 2 3   A G D E C B F   1 2 3 Port IN VCI IN Port OUT VCI OUT  AE Port IN VCI IN Port OUT VCI OUT Port IN VCI IN Port OUT VCI OUT   2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Table entries after AE, CF, GE connection is set Port IN VCI IN Port OUT VCI OUT 1 3 VCI OUT Port OUT VCI IN Port IN 2 Port IN VCI IN Port OUT VCI OUT   Port IN VCI IN Port OUT VCI OUT  Port IN VCI IN Port OUT VCI OUT  2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Virtual Circuits Analogous to a game of following a sequence of clues Advantages Header (for a data packet) requires only virtual circuit ID Connection request contains global address Can reserve resources at setup time Disadvantages Typically must wait one RTT for setup Cannot dynamically avoid failures, must reestablish connection Global address path information still necessary for connection setup 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with source routing Packet header specifies directions One direction per switch Absolute Port name Next switch name Relative Turn clockwise 3 ports Switches may delete or rotate directions within packet headers No state stored at switch! 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Source Routing A  E DATA 1 A sends: 2   A G D E C B F   1 2 3 C  F DATA C sends: 3 2 B  E DATA B sends: 2 1 F  G DATA F sends: 2 3 What happens to the last packet? A  H DATA A sends: 1 2 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Forwarding with Source Routing Analogous to following directions Advantages Simple switches Fast and cheap Disadvantages Hosts must know entire topology Changes must propagate to all hosts Headers might get large 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Defined by the ATM Forum High-Level Overview Formed October 1991 Joint effort of the telephony and data network industry High-Level Overview Virtual circuit routing Fixed length frames (aka cells) Standard define 3 layers 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM CS AAL SAR ATM TC phys. PMD ATL Adaptation Layer (AAL) ATM Layer Convergence sub-layer (CS) supports different application service models Segmentation and reassembly (SAR) Supports variable-length frames ATM Layer Virtual circuits maintenance Cell header generation Flow control Physical Layer Transmission convergence (TC) Error detection, Framing Physical medium dependent (PMD) sublayer encoding SAR ATM phys. TC PMD 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Details Where is ATM used? What is ATM built on? Design Common in WANs Can also be used in LANs What is ATM built on? Typically implemented on SONET Design Connection establishment Signaling (Q.2931) Virtual circuits Virtual Paths Bundles of virtual circuits Share common route Optimizes forwarding 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Cells Cell specification 53-bytes 48-byte payload 1-byte CRC 4-byte header 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Why hierarchical connections? Setup Forwarding New virtual circuits can follow existing virtual path routes Forwarding Virtual Path Identifier (VPI) Used between switches Virtual Circuit Identifier (VCI) Used for last hop Routing around failures Need only change virtual path once for 64K virtual circuits 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Public Network Network A Network B 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Why fixed-length frames? Hardware Simpler processing for known frame sizes Parallelization of processing stages Is there an optimal length? Small cells High header-to-data overhead Large frames must be fragmented Large cells Low utilization for small messages 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Why short cells? Better queueing behavior Reduced granularity of preemption High priority cell waits for one cell Long cell: potentially long wait Short cell: limited wait Limits end-to-end jitter (variance in latency) Shorted store-and-forward delay Switches typically store whole frame, then forward Short cells enable first part of a fragmented frame to be sent while the rest is still arriving 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Queueing Behavior Example Consider 4KB vs. 53B cells, 100Mbps Link Preemption High priority cell arrives just as switch starts sending low-priority cell 4KB: high-priority cell must wait for 328s 53B: high priority cell must wait for 4s Queueing Two 4KB frames arrive simultaneously at time 0 4KB: link is idle until all data arrives at time 328s, 8KB left to send 53B: First 53B is sent at time 4s. At time 328s, 4KB left to send 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Rationale Why 53-byte cells? US wanted 64-bytes Digital encoding for voice 1 frame = 64Kbps (8-bit samples, 8Khz) Collect one sample per frame With 64-byte cells, no need for echo cancellation Latency – 1 cell = 6msec Not detectable by humans Europe wanted 32-byte Shorter distances, no need for echo cancellation Compromise – 48-bytes of data! Problems with 53-byte (48-bytes of data) cells Not a power of 2! 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM and LANs Comments ATM in a LAN Switched networks have better performance then shared media Shared media performance is increasing (100-MBps and Gigabit Ethernet) ATM in a LAN ATM doesn’t look like a traditional LAN Specifically, no native support for broadcast and multicast Solution Redesign protocols that require broadcast/multicast Make ATM behave more like a shared medium LAN Emulation (LANE) 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

Structure of LANE ATM network can have multiple Emulated LAN’s (ELAN’s) Each ELAN corresponds to a single network Networks do not have to be geographically oriented Hosts can move between buildings, but remain on the same network Access Control Lists (ACL’s) on LANE servers Control which hosts can join which ELAN’s 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Local Area Network Emulation (LANE) Host ELAN-A ELAN-B H Ethernet Switch ATM Switch H LANE LANE/Ethernet Adaptor Card H H H ATM Host H Ethernet Switch ATM Switch H LANE LANE/Ethernet Adaptor Card H H All same color hosts think they are on the same Ethernet H 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM Local Area Network Emulation (LANE) H Ethernet Switch ATM Switch H LANE/Ethernet Adaptor Card H H H H Ethernet Switch ATM Switch H LANE/Ethernet Adaptor Card H H All hosts think they are on the same Ethernet H 2/22/2019 CS/ECE 438 - UIUC, Fall 2006

ATM/LANE Protocol Layers Higher Layer Protocols (IP, ARP …) Higher Layer Protocols (IP, ARP …) Signaling and LANE Signaling and LANE Ethernet-like Interface AAL 5 AAL 5 ATM ATM ATM Physical PHY PHY Physical Host Switch Host 2/22/2019 CS/ECE 438 - UIUC, Fall 2006