EE 122: Switching and Forwarding Kevin Lai September 23, 2002.

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.
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Congestion Control Computer Science Division Department of Electrical Engineering and Computer.
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.
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.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
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.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Switch and Router Architectures Computer Science Division Department of Electrical Engineering.
1 Switching and Forwarding Bridges and Extended LANs.
EE 4272Spring, 2003 Chapter 11. ATM and Frame Relay Overview of ATM Protocol Architecture ATM Logical Connections ATM Cells ATM Service Categories ATM.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 14 Introduction to Networks and the Internet.
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Connecting LANs, Backbone Networks, and Virtual LANs
Computer Networks Switching Professor Hui Zhang
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
29-Aug-154/598N: Computer Networks Switching and Forwarding Outline –Store-and-Forward Switches.
Introduction to Network Layer. Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using bridges? –No!
Review of Networking Concepts Part 1: Switching 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.
Virtual Circuit Network. Network Layer 2 Network layer r transport segment from sending to receiving host r network layer protocols in every host, router.
CPS 356: Introduction to Computer Networks Lecture 7: Switching technologies Ch 2.8.2, 3.1, 3.4 Xiaowei Yang
7-1 Last time □ Wireless link-layer ♦ Introduction Wireless hosts, base stations, wireless links ♦ Characteristics of wireless links Signal strength, interference,
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Network Layer introduction.
ECE 466 Switching Networks. ECE 466 A communication network provides a scalable solution to connect a large number of end systems Communication Networks.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Instructor: Joe McCarthy (based on Prof. Fukuda’s slides)
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.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Professor: Munehiro Fukuda.
Computer Networks with Internet Technology William Stallings
Chapter Overview Bridging Switching Routing.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
Lecture # 03 Switching Course Instructor: Engr. Sana Ziafat.
Unit III Bandwidth Utilization: Multiplexing and Spectrum Spreading In practical life the bandwidth available of links is limited. The proper utilization.
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.
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
3. INTERNETWORKING (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 18 February
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.
The Network Layer.
INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723
Chapter 3 Part 3 Switching and Bridging
Chapter 3: Packet Switching (overview)
Chapter 4 Network Layer All material copyright
Whirlwind Tour Of Lectures So Far
EE 122: Lecture 19 (Asynchronous Transfer Mode - ATM)
Networking Devices.
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
Switching and Forwarding Bridges and Extended LANs
CS4470 Computer Networking Protocols
Chapter 3 Part 3 Switching and Bridging
Chapter 4-1 Network layer
Hubs Hubs are essentially physical-layer repeaters:
Network Core and QoS.
Network Layer I have learned from life no matter how far you go
EE 122: Lecture 7 Ion Stoica September 18, 2001.
Chapter 3 Part 3 Switching and Bridging
Packet Switching Outline Store-and-Forward Switches
Virtual LAN (VLAN).
Network Core and QoS.
Presentation transcript:

EE 122: Switching and Forwarding Kevin Lai September 23, 2002

Direct Link Network Review  Data link layer presents a single media (e.g., single wire) network model  Problem and solutions -Framing character stuffing, byte counting, bit stuffing, clocked framing -Error detection parity, checksum, CRC -Reliability stop and go, sliding window -solutions also apply to similar problems in higher layers problems can not be completely solved at data link layer only implemented in data link layer as optimization

Limitations of Direct Link Networks  distance -distance increases propagation delay -large propagation delay causes large coordination delay -e.g., Ethernet collision detection requires 2*prop_delay  number of hosts -More hosts increases the probability of collisions -collisions decrease efficiency of link  bandwidth -bandwidth of link is shared among all connected nodes  single media type -different media (e.g., fiber, Ethernet, wireless) have different tradeoffs for performance, cost, etc.

Direct Link Networks v.s. Switching Direct Link NetworkSwitched Network Single link n links SwitchEmulates clique

Definitions  switch (aka bridge) -does switching -operates at data link layer -router also does switching, but at network layer  switching consists of -forwarding read data from input links, decide which output link to forward on, and ¢ examine packet header or incoming circuit, and ¢ look up in forwarding table transmit it on one of the output links (unicast) -routing how the switch/router builds up its forwarding table

Properties  spans larger physical area than direct link network (DLN) -can connect multiple switches together  supports more hosts than DLN -hosts on separate links can transmit at same time  higher aggregate bandwidth than DLN -approaches (n/2)*b instead of b, n = number of switched links, b = bandwidth of one link  supports more than one media type -more expensive for bridge than router

Bridge/Router Comparison  Router interconnects different link layer protocols more easily Ethernet b ATM SONET Ethernet b ATM SONET E-to-8 E-to-A E-to-S O(n 2 ) converters n = different link types Ethernet b ATM SONET Ethernet b ATM SONET Switch Router O(n) converters E-to-IPIP-to-E 8-to-IP S-to-IP A-to-IP IP-to-8 IP-to-S IP-to-A E-to-E

Forwarding Techniques  packet switching -aka [packet|datagram|connectionless] [switching|forwarding]  source routing  virtual circuit switching -aka virtual circuit forwarding  circuit switching  despite names, all ways for switch to decide which output port to forward data

Packet Switching  Data is separated into packets  Each packet is forwarded independently of previous packets -packets between two hosts can follow different paths  On link failure, adjoining switches select new route and continue forwarding packets  Statistical multiplexing -any one host may use 100% of a link’s bandwidth

Statistical Multiplexing v.s. Resource Reservations  Reserve explicit amount of resources (e.g., bandwidth) -get exactly that amount  Statistical multiplexing: get whatever is available S H9 H0 10Mb/s / 10Mb/s... Statistical Multiplexing Resource Reservations AdvantageProblem 10Mb/s S H9 H0 congestion, packet loss... 10Mb/s S H9 H0... 1Mb/s 10Mb/s 1Mb/s S H9 H0... 1Mb/s 10Mb/s 0Mb/s 10Mb/s / 10Mb/s 1Mb/s / 10Mb/s low utilization

Packet Switching Operation  Each switch maintains a forwarding table -forwarding entry: (address, output port)  Upon packet arrival -input port forwards the packet to the output port whose address matches packet’s destination address exact match  longest prefix match -forwarding entry: (address prefix, output port) -forward packet to the output port whose address matches packet’s destination address in the longest number of bits 2 12.xxx.xxx.xxx xxx.xxx

Packet Switching Properties  Expensive forwarding -forwarding table size depends on number of different destinations -must lookup in forwarding table for every packet  Robust -link and router failure may be transparent for end-hosts  High bandwidth utilization -statistical multiplexing  No service guarantees -Network allows hosts to send more packets than available bandwidth  congestion  dropped packets

Source Routing  Each packet specifies the sequence of routers, or alternatively the sequence of output ports, from source to destination source

Source Routing (cont’d)  Gives the source control of the path  Not scalable -Packet overhead proportional to the number of routers -Typically, require variable header length which is harder to implement  Hard for source to have complete information  Loose source routing  sender specifies only a subset of routers along the path

Virtual Circuit (VC) Switching  Packets not switched independently -establish virtual circuit before sending data  Forwarding table entry -(input port, input VCI, output port, output VCI) -VCI – Virtual Circuit Identifier  Each packet carries a VCI in its header  Upon a packet arrival at interface i -Input port uses i and the packet’s VCI v to find the routing entry (i, v, i’, v’) -Replaces v with v’ in the packet header -Forwards packet to output port i’

VC Forwarding: Example …… 114 …… … 3 … in out in-VCI 11 out-VCI … … 5 …… 73 …… … 2 … in out in-VCIout-VCI … … 11 7 …… 14 …… … 1 … in out in-VCIout-VCI … … 7 1 source destination

VC Forwarding (cont’d)  A signaling protocol is required to set up the state for each VC in the routing table -A source needs to wait for one RTT (round trip time) before sending the first data packet  Can provide per-VC QoS -When we set the VC, we can also reserve bandwidth and buffer resources along the path

Virtual Circuit Switching Properties  Less expensive forwarding -forwarding table size depends on number of different circuits -must lookup in forwarding table for every packet  Much higher delay for short flows -1 RTT delay for connection setup  Less Robust -end host must spend 1 RTT to establish new connection after link and router failure  Flexible service guarantees -either statistical multiplexing or resource reservations

Circuit Switching  Packets not switched independently -establish circuit before sending data  Circuit is a dedicated path from source to destination -e.g., old style telephone switchboard, where establishing circuit means connecting wires in all the switches along path -e.g., modern dense wave division multiplexing (DWDM) form of optical networking, where establishing circuit means reserving an optical wavelength in all switches along path  No forwarding table

Circuit Switching Properties  Cheap forwarding -no table lookup  Much higher delay for short flows -1 RTT delay for connection setup  Less robust -end host must spend 1 RTT to establish new connection after link and router failure  Must use resource reservations

Forwarding Comparison pure packet switching virtual circuit switching circuit switching forwarding cost highlownone bandwidth utilization highflexiblelow resource reservations noneflexibleyes robustnesshighlow

Routing  Update forwarding/routing tables  Manual configuration -simple, error prone, work for administrator  Learning bridges -all that is needed for single bridge  Spanning Tree -necessary for multiple bridges  Described in internetworking section -Distance Vector -Link State

Learning Bridges HostPort AB AB AB HostPort A1 CA CA

Learning Bridge Problem B0 B1 B2 B3 H0 H1 HostPort HostPort HostPort HostPort H1H0 H1H0 H1H0 HostPort H10 HostPort H11 HostPort H12 H0 H1H0 HostPort H10 HostPort H11 H0 H1H0

Spanning Tree B0 B1 B2 B3 H0 H1 HostPort H12 HostPort H11 HostPort H10 HostPort H RootDistPort B00- H1H0 RootDist B30 RootDist B20 “As if. I am” “Uh, no. B0/1 is.” RootDist B11 “I’m root” “B1/1 is root” RootDist B12 RootDist B02 “B1/2 is root” “Get out. I am.”“Cha. B0/3 is.” RootDistPort B10- RootDistPort B012

Summary  Switching -overcome limitations of direct link networks  Forwarding techniques -packet switching -source routing -virtual circuit switching -circuit switching  Routing techniques