Packet Switching. Hongwei Zhang Nature seems to reach her ends by long circuitous routes.

Similar documents
HWP2 Application level query routing HWP1 Each peer knows about every other beacon B1 B3

Cell Switching (ATM) Commonly transmitted over SONET other physical layers possible. Variable vs Fixed-Length Packets

Switching and Forwarding - continued

Switching and Forwarding - continued

Switching and Forwarding

Research paper Measured Capacity of an Ethernet: Myths and Reality

Cell Format. Housekeeping. Segmentation and Reassembly AAL 3/4

Switching and Forwarding

Packet Switching - Asynchronous Transfer Mode. Introduction. Areas for Discussion. 3.3 Cell Switching (ATM) ATM - Introduction

Packet Switching. Guevara Noubir Fundamentals of Computer Networks. Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann

Packet Switching Techniques

Administrivia. Homework on class webpage If you are having problems following me in class (or doing the homework problems), please buy the textbook

Internetworking Part 1

CompSci 356: Computer Network Architectures. Lecture 7: Switching technologies Chapter 3.1. Xiaowei Yang

Chapter 3 Packet Switching

Switching and Forwarding Reading: Chapter 3 1/30/14 1

Asynchronous. nous Transfer Mode. Networks: ATM 1

ATM Technology in Detail. Objectives. Presentation Outline

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

Master Course Computer Networks IN2097

1997, Scott F. Midkiff 1

Lesson 3 Network technologies - Controlling

! Cell streams relating to different media types are multiplexed together on a statistical basis for transmission and switching.

ATM. Asynchronous Transfer Mode. these slides are based on USP ATM slides from Tereza Carvalho. ATM Networks Outline

Lecture 22 Overview. Last Lecture. This Lecture. Next Lecture. Internet Applications. ADSL, ATM Source: chapter 14

Asynchronous Transfer Mode (ATM) ATM concepts

BROADBAND AND HIGH SPEED NETWORKS

Module 10 Frame Relay and ATM

ATM networks. C. Pham Université de Pau et des Pays de l Adour LIUPPA Laboratory

Module 10 Frame Relay and ATM

Asynchronous Transfer Mode

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

CSCI Computer Networks

A T M. Cell Switched Technology. not SMDS. Defacto Standard Multimedia capable Use with SONET or SDH. Fixed Length - 53 bytes. DigiPoints Volume 1

Chapter 10. Circuits Switching and Packet Switching 10-1

ATM. Asynchronous Transfer Mode. (and some SDH) (Synchronous Digital Hierarchy)

Figure 10.1 Cell switching principles: (a) routing schematic; (b) VP routing; (c) VC routing.

Bandwidth-on-Demand up to very high speeds. Variety of physical layers using optical fibre, copper, wireless. 3BA33 D.Lewis

Outline. Circuit Switching. Circuit Switching : Introduction to Telecommunication Networks Lectures 13: Virtual Things

ATM Introduction. The Grand Unification 2005/03/11. (C) Herbert Haas

BROADBAND AND HIGH SPEED NETWORKS

DigiPoints Volume 1. Leader Guide. Module 12 Asynchronous Transfer Mode. Summary. Outcomes. Objectives. Prerequisites

ATM Networks. Raj Jain

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

CPEG 514. Lecture 11 Asynchronous Transfer Mode (ATM) CPEG 514

This Lecture. BUS Computer Facilities Network Management X.25. X.25 Packet Switch. Wide Area Network (WAN) Technologies. X.

ATM Logical Connections: VCC. ATM Logical Connections: VPC

Ch. 4 - WAN, Wide Area Networks

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Packet Switching. Packet Switching (CSE 573S) Packet Switching Methods. Packet Switching. Ken Wong Washington University

Telematics Chapter 7: MPLS

ATM Networks: An Overview

Copyright 2010, Elsevier Inc. All rights Reserved

Packet Switching. Packet Switching What Issues Will We Focus On? COMP Jasleen Kaur. September 2, Networked and Distributed Systems

Switching / Forwarding

ATM Asynchronous Transfer Mode revisited

ATM in TCP/IP environment: Adaptations and Effectiveness

Medium Access Protocols

Module 3. Wide Area Networking (WAN)

WAN Technologies (to interconnect IP routers) Mario Baldi

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Ethernet Switches (more)

L8: Packet Switching. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

The Network Layer and Routers

Virtual University of Pakistan. Describe the Hidden Node and Exposed Node problems in Standard? VUSR. [Larry L. Peterson]

ST.MOTHER THERESA ENGINEERING COLLEGE

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

Protocol Architecture (diag) Computer Networks. ATM Connection Relationships. ATM Logical Connections

CS610- Computer Network Solved Subjective From Midterm Papers

BROADBAND AND HIGH SPEED NETWORKS

Basic concept of ATM communication

William Stallings Data and Computer Communications 7 th Edition. Chapter 11 Asynchronous Transfer Mode

Switched Multimegabit Data Service (SMDS)

Switched Multimegabit Data Service

Explore some common protocols. Telephone network protocols. Traditional digital transmission. Digital Communications II

CSE 3214: Computer Network Protocols and Applications Network Layer

Introduction. ATM Technology. What is ATM? Agenda

Appendix 5 - ATM Technology in Detail

CMSC 417 Project Implementation of ATM Network Layer and Reliable ATM Adaptation Layer

Unit_2 The Telephone Network. Shikha Sharma RCET,Bhilai 1

Computer Facilities and Network Management BUS3150 Tutorial - Week 13

EEC-484/584 Computer Networks

CS/ECE 438: Communication Networks for Computers Spring 2018 Midterm Examination Online

Asynchronous Transfer Mode (ATM) Broadband ISDN (B-ISDN)

Communication Networks

Wireless Networks. Communication Networks

Router Construction. Workstation-Based. Switching Hardware Design Goals throughput (depends on traffic model) scalability (a function of n) Outline

COMP9332 Network Routing & Switching

Adaptation Problems and Solutions. MARCOM 97, Dipl.-Ing. Kai-Oliver Detken, BIBA Bremen, Germany, October the 16th, 1997

Distributed Queue Dual Bus

Computer Networks. ENGG st Semester, 2010 Hayden Kwok-Hay So

Network management and QoS provisioning - revise. When someone have to share the same resources is possible to consider two particular problems:

Lecture 03 Chapter 11 Asynchronous Transfer Mode

CISC452 Telecommunications Systems. Lesson 6 Frame Relay and ATM

CSE 461: Bridging LANs. Last Topic

Hubs. Interconnecting LANs. Q: Why not just one big LAN?

NETWORK PARADIGMS. Bandwidth (Mbps) ATM LANS Gigabit Ethernet ATM. Voice, Image, Video, Data. Fast Ethernet FDDI SMDS (DQDB)

Transcription:

Problem: not all networks are directly connected Limitations of directly connected networks: limit on the number of hosts supportable limit on the geographic span of the network Packet Switching Hongwei Zhang http://www.cs.wayne.edu/~hzhang Nature seems to reach her ends by long circuitous routes. --- Rudolph Lotze Acknowledgement: this lecture is partially based on the slides of Dr. Larry Peterson

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

Scalable Networks using switches Switch forwards packets from input port to output port port selected based on address in packet header T3 T3 STS-1 Input ports Switch T3 T3 STS-1 Output ports Advantages support large numbers of hosts (scalable bandwidth) cover large geographic area (tolerate latency)

Problem statement Given a multi-hop network where nodes may not be directly connected, how does a switch decide where (e.g., which output port) to forward each packet?

Source Routing 3 0 2 Switch 1 1 3 0 1 1 3 0 3 2 0 Switch 2 1 3 0 2 1 Host A 0 1 3 0 Switch 3 1 3 Host A - Host B 2 Host B

Virtual Circuit Switching Explicit connection setup (and tear-down) phase Subsequence packets follow same circuit Sometimes called connection-oriented model Analogy: phone call Each switch maintains a VC table 0 0 3 1 11 3 1 Switch 1 Switch 2 2 2 5 7 0 3 3 Switch 3 1 0 2 Host A 2 4 Host B Q: how does VC Switching differ from Circuit Switching?

Datagram Switching No connection setup phase Host D Each packet forwarded independently 3 Host C 0 2 Switch 1 1 Host E 2 Switch 2 3 1 Host F Sometimes called connectionless model Host A 0 Analogy: postal system Host G 0 Switch 3 1 3 Host B 2 Each switch maintains a forwarding (routing) table Host H

Example Tables Circuit Table (switch 1, port 2) 3 0 2 1 Host A VC In VC Out Port Out Switch 1 5 5 11 1 6 8 1 11 3 0 2 7 1 Switch 2 3 2 0 3 0 2 Switch 3 1 4 Forwarding Table (switch 1) Host B Host C 3 Host D 0 2 Host A Switch 1 1 3 Host E Address Port A 2 C 3 F 1 G 1 2 0 Host G Switch 2 1 0 1 3 2 Host H Switch 3 Host F Host B

Virtual Circuit Model (+) Connection setup provides an opportunity to reserve resources. (+) While the connection request contains the full address for destination, each data packet contains only a small identifier, making the per-packet header overhead small. (-) Typically wait full RTT for connection setup before sending first data packet. (-) If a switch or a link in a connection fails, the connection is broken and a new one needs to be established.

VC model: systems X.25 Buffer allocated during connection setup phase Circuit is rejected if a node does not have enough buffers at the time of connection setup Hop-by-hop flow control: sliding window protocol + flow control between each pair of nodes along a circuit Frame Relay: Permanent Virtual Circuit (PVC) => virtual private networks (VPNs) Basic QoS and congestion avoidance, but rather lightweight compared to X.25 and ATM Asynchronous Transfer Mode (ATM) GMPLS: Generalized Multi-Protocol Label Switching

Datagram Model (+) There is no round trip delay waiting for connection setup; a host can send data as soon as it is ready. (+) Since packets are treated independently, it is possible to route around link and node failures (-) 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 every packet must carry the full address of the destination, the overhead per packet is higher than for the connection-oriented model.

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

Bridges and Extended LANs LANs have physical limitations (e.g., 4 repeaters, 2500m) Connect two or more LANs with a bridge accept and forward strategy level 2 connection (does not add packet header) A B C Port 1 Bridge Port 2 X Y Z

Learning Bridges Do not forward when unnecessary Maintain forwarding table Host Port A B C A 1 Bridge Port 1 Port 2 X Y Z B 1 C 1 X 2 Y 2 Z 2 Learn table entries based on source address Table is an optimization; need not be complete Will learn a route to a node only after seeing a packet from the node Always forward broadcast frames

Spanning Tree Algorithm Problem: broadcast storm as a result of loops (because of the initial broadcast before learning the route to a node) Q: how? A B3 B C B5 B2 D B7 K E F B1 G H I B6 B4 J Bridges run a distributed spanning tree algorithm select which bridges actively forward developed by Radia Perlman (DEC) now IEEE 802.1 specification (a) (b)

Algorithm Overview Each bridge has unique id (e.g., B1, B2, B3) Basic approaches: Bridge with the smallest id becomes the root Each bridge computes the shortest path to the root break ties randomly (e.g., to enable freedom of load-balancing algorithms) On each LAN, the bridge closest to root becomes the designated bridge use id to break ties (Q: why not randomly?) A Each bridge forwards frames over each LAN for which it is the designated bridge C B2 B3 D B5 B7 B K E F Q: distributed algorithm? G B1 H I B6 B4 J

Algorithm Details Bridges exchange configuration messages id for what the sending bridge believes to be root bridge distance (hops) from sending bridge to root bridge id for bridge sending the message Initially, each bridge believes it is the root Each bridge records current best configuration message for each port Best: smallest <root id, hop length, own node id>

Algorithm Detail (contd.) When learn not root, stop generating config messages in steady state, only root generates configuration messages When learn not designated bridge for a port/lan, stop forwarding config. messages over that port/lan in steady state, only designated bridges forward config messages Root continues to periodically send config messages If any bridge does not receive config message after a period of time, it starts generating config messages claiming to be the root

Example For simplicity, assume synchrony across nodes (which is usually not the case in practice) Focus on how B3 behaves A Step 0: B1, B2, B5, B3 sets themselves as roots C B3 B5 B Step 1: B2 and B5 set B1 as roots; B3 sets B2 as B2 D B7 K root E F G I B6 B1 B4 H Step 2: B3 sets B1 as its root, and stops forwarding messages on both interfaces since B3 is not the designated bridge on LANs A and C J

Example (contd.) Q: What if B2 fail-stops? A B3 B C B5 B2 D B7 K E F B1 G H I B6 B4 J

Example (contd.) Q: What if B3 has another LAN attached? Ζ A B3 B C B5 B2 D B7 K E F B1 G H I B6 B4 J

Broadcast and Multicast Broadcast: simply forwarded to all the output ports specified in the spanning tree Multicast: same as broadcast; destination hosts decide whether to accept the received frames current practice Can we do better for multicast? Learn when no group members downstream Accomplished by having each member of group G send a frame to bridge multicast address with G in source field Proposed, but not yet implemented as of today

Limitations of Bridges Do not scale spanning tree algorithm does not scale: single level rather than hierarchical broadcast does not scale Do not accommodate heterogeneity Bridges use address field from frame headers, thus they only support networks with the same format for addresses E.g., Ethernet and ATM cannot directly communicate via basic bridges

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

Cell Switching (ATM) 1980s and early 1990s; embraced by telephone industry Used in both WAN and LAN settings Specified by ATM forum Connection-oriented (virtual circuit switching), packet-switched network Signaling (connection setup) Protocol: Q.2931 Packets are called cells: 5-byte header + 48-byte payload Commonly transmitted over SONET other physical layers possible

Variable vs. Fixed-Length Packets No Optimal Length => variable-length packet if small: high header-to-data overhead if large: low utilization for small messages Fixed-Length Easier to Switch in Hardware Simpler to implement Enables parallelism (since length is known and fixed)

Big vs. Small Packets Small Improves Queue behavior finer-grained preemption point for scheduling link maximum packet = 4KB link speed = 100Mbps transmission time = 4096 x 8/100 = 327.68us high priority packet may sit in the queue 327.68us in contrast, 53 x 8/100 = 4.24us for ATM near cut-through behavior two 4KB packets arrive at same time link idle for 327.68us while both arrive Because the switch must wait to receive the whole first packet before starting transmitting it at end of 327.68us, still have 8KB to transmit in contrast, can transmit first cell after 4.24us at end of 327.68us, just over 4KB left in queue

Big vs. Small (contd.) Small Reduces Latency (for voice) voice digitally encoded at 64KBps (8-bit samples at 8KHz) need full cell s worth of samples before sending cell example: 1000-byte cells implies 125ms per cell (too long) smaller latency implies no need for echo cancellers (since a very small latency feels like 0 latency ) ATM Compromise: 48 bytes US: would like it to be 64 bytes (has echo canceller, thus can afford large packets to reduce header-to-payload ratio Europe: advocates 32 bytes (no echo canceller, thus need small packet) Compromise: 48 = (32+64)/2

Cell Format User-Network Interface (UNI): host-to-switch format 4 8 16 3 1 8 384 (48 bytes) GFC VPI VCI Type CLP HEC (CRC-8) Payload GFC: Generic Flow Control (still being defined) VPI: Virtual Path Identifier VCI: Virtual Circuit Identifier Type: management, congestion control, AAL5 (later) CLP: Cell Loss Priority HEC: Header Error Check (CRC-8) Network-Network Interface (NNI): switch-to-switch format GFC becomes part of VPI field

Segmentation and Reassembly Accomplished by ATM Adaptation Layer (AAL) AAL AAL ATM ATM Two sublayers: Higher layer: Convergence Sublayer (CS) responsible for packaging the higher layer PDU with additional information required for the adaptation necessary for specific service types (e.g., bit rate, connection-oriented or connectionless) Lower layer: Segmentation and Reassembly (SAR)

Different types of AALs AAL 1 and 2 designed for applications that need guaranteed rate (e.g., voice, video) AAL 3/4 designed for data packet AAL 5 is an alternative standard for data packet

AAL 3/4 Convergence Sublayer Protocol Data Unit (CS-PDU) 8 8 16 < 64 KB 0 24 8 8 16 CPI Btag BASize User data Pad 0 Etag Len CPI: common part indicator (version field); not used yet Btag/Etag: beginning and ending tag (deal with cell corruption) BAsize: hint on amount of buffer space to allocate Length: size of whole PDU

SAR: Cell Format --- payload 40 2 4 10 352 (44 bytes) 6 10 ATM header Type SEQ MID Payload Length CRC-10 Type BOM: beginning of message COM: continuation of message EOM end of message SEQ: sequence number MID: multiplexing identifier Length: number of bytes of payload (from CS-PDU) in this cell; in bytes

Encapsulation & segmentation for AAL3/4 CS-PDU header User data CS-PDU trailer 44 bytes 44 bytes 44 bytes 44 bytes ATM header AAL header AAL trailer Cell payload Padding

AAL5 Simplifies the format of AAL ¾ CS-PDU Format < 64 KB 0 47 bytes 16 16 32 Data Pad Reserved Len CRC-32 Pad, so trailer always falls at end of ATM cell Len: size of PDU (data only); in bytes CRC-32 (detects missing or misordered cells) SAR: Cell Format --- payload end-of-pdu bit in Type field of ATM header Compared with AAL 3/4, AAL 5 does not provide an additional level of multiplexing onto one virtual circuit (which was achieved via MID in AAL¾)

Encapsulation & segmentation for AAL 5 Padding User data CS-PDU trailer 48 bytes 48 bytes 48 bytes ATM header Cell payload

Virtual path Public network Network A Network B Two-level hierarchy of virtual connections Virtual path (VP) Virtual circuit (VC) Switches in public network only maintains state about VPs, which is much fewer than the number of VCs Thus, improves systems scalability

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

A workstation used as a packet switch I/O bus CPU Interface 1 Interface 2 Main memory Interface 3 Flexible in trying out different routing/switching strategies Experimental systems (-) high switching overhead, and thus potentially low throughput

A 4 4 switch Control processor Input port Switch fabric Output port Input ports: switching logic control (e.g., which output ports to forward packets); usually do not buffer packets Switch fabric: forward packets from input ports to output ports; may have internal buffer space Output ports: buffering

Switch fabrics Shared bus Shared memory Crossbar

Switch fabrics (contd.) Self-routing fabric Input port Switch fabric Output port Banyan Network: switch elements in 1 st column looks at the most significant bit of output port number: 0 -> route packet to the top; 1 -> route to bottom 001 011 001 Original packet header (a) 110 111 011 Input port Switch fabric Output port (b) Self-routing header 110 111 Input port Switch fabric (c) Output port Batcher-Banyan Switch design: Batcher network first sorts packets (for parallel tx.), then the packets are sent to Banyan network

Outline Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation Discussion

Further reading Spanning tree algorithm R. Perlman, An algorithm for distributed computation of spanning trees in an extended LAN, 9 th Data Communication Symposium, 1985 Cell switching J. S. Turner, Design of an integrated services packet network, 9 th Data Communication Symposium, 1985 Switch design (e.g., impact of correlated traffic) J. N. Giacopelli et al., Sunshine: A high-performance self-routing broadband packet-switched architecture, IEEE Journal of Selected Areas in Communications (JSAC) 9(8):1289-1298, Oct. 1991

Further reading (contd.) Traffic modeling W. Leland, M. Taqqu, W. Lillinger, and D. Wilson, On the self-similar nature of Ethernet traffic, IEEE/ACM Transactions on Networking, 2:1-15, Feb. 1994 V. Paxson, S. Floyd, Wide-area traffic: The failure of Poisson modeling, ACM SIGCOMM 94

Summary Switching and Forwarding Bridges and Extended LANs Cell Switching Implementation

Assignment - Chapter 3 Exercise#2 Exercise 1 Hint: VCI should be unique for each (bidirectional) link Exercises 15 and 17 Exercise 21 Hint: for 21 (a), you can regard B1 as a simple repeater that would rebroadcast whatever messages it receive but does not generate any new message. TinyExam#2