Chapter 3 Part 3 Switching and Bridging

Slides:



Advertisements
Similar presentations
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
Advertisements

What's inside a router? We have yet to consider the switching function of a router - the actual transfer of datagrams from a router's incoming links to.
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.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
Network Layer4-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from incoming.
8.1 Chapter 8 Switching Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 15.
12-1 Last time □ BGP policy □ Broadcast / multicast routing ♦ Spanning trees Source-based, group-shared, center-based ♦ Reverse path forwarding, pruning.
4: Network Layer4b-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from.
Chapter 4 Queuing, Datagrams, and Addressing
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All material copyright
Network Layer —— the core of networking. The Network Core  mesh of interconnected routers  the fundamental question: how is data transferred through.
CS 1652 The slides are adapted from the publisher’s material All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Jack Lange.
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
1 John Magee 24 February 2014 CS 280: Network Layer: Virtual Circuits / Datagram Networks and What’s inside a Router? Most slides adapted from Kurose and.
Router Architecture Overview
Delivery, Forwarding, and Routing of IP Packets
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.
Forwarding.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
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.
3. INTERNETWORKING (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 18 February
1 Kyung Hee University Chapter 8 Switching. 2 Kyung Hee University Switching  Switching  Switches are devices capable of creating temporary connections.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
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.
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
Chapter 4: 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
Chapter 4: Network Layer
Chapter 4 Introduction to Network Layer
Chapter 8 Switching Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Scaling the Network: The Internet Protocol
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Network Layer Goals: Overview:
CS4470 Computer Networking Protocols
EEC-484/584 Computer Networks
Chapter 4: Network Layer
SWITCHING Switched Network Circuit-Switched Network Datagram Networks
Chapter 3 Part 3 Switching and Bridging
CS 1652 The slides are adapted from the publisher’s material
Chapter 4-1 Network layer
What’s “Inside” a Router?
Chapter 4 Introduction to Network Layer
EEC-484/584 Computer Networks
Bridges and Extended LANs
Data Communication Networks
Network Layer I have learned from life no matter how far you go
October 26th, 2010 CS1652/Telcom2310 Jack Lange
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.
CSCD 330 Network Programming Winter 2019 Lecture 13 Network Layer
Scaling the Network: The Internet Protocol
Chapter 4: Network Layer
Packet Switching Outline Store-and-Forward Switches
ECE 4450:427/527 - Computer Networks Spring 2017
Virtual LAN (VLAN).
Chapter 4: Network Layer
Presentation transcript:

Chapter 3 Part 3 Switching and Bridging Networking CS 3470, Section 1

The University of Adelaide, School of Computer Science 3 April 2019 Forwarding A switching device’s primary job is to receive incoming packets on one of its links and to transmit them on some other link This function is referred as switching and forwarding According to OSI architecture this is the main function of the network layer Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 3 April 2019 Forwarding How does the switch decide which output port to place each packet on? It looks at the header of the packet for an identifier that it uses to make the decision Two common approaches Datagram or Connectionless approach Virtual circuit or Connection-oriented approach Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 3 April 2019 Forwarding Assumptions Each host has a globally unique address There is some way to identify the input and output ports of each switch We can use numbers We can use names Chapter 2 — Instructions: Language of the Computer

Datagram / Connectionless Approach The University of Adelaide, School of Computer Science 3 April 2019 Datagram / Connectionless Approach Key Idea Every packet contains enough information to enable any switch to decide how to get it to destination Every packet contains the complete destination address Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 3 April 2019 Datagram / Connectionless Approach An example network To decide how to forward a packet, a switch consults a forwarding table (sometimes called a routing table) Copyright © 2010, Elsevier Inc. All rights Reserved Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 3 April 2019 Datagram / Connectionless Approach Destination Port ----------------------------------- A 3 B 0 C 3 D 3 E 2 F 1 G 0 H 0 Forwarding Table for Switch 2 Copyright © 2010, Elsevier Inc. All rights Reserved Chapter 2 — Instructions: Language of the Computer

Virtual Circuit Switching The University of Adelaide, School of Computer Science 3 April 2019 Virtual Circuit Switching Virtual Circuit Switching Widely used technique for packet switching Uses the concept of virtual circuit (VC) Also called a connection-oriented model First set up a virtual connection from the source host to the destination host and then send the data Chapter 2 — Instructions: Language of the Computer

Virtual Circuit Switching Three-stage process Connection setup Send data Teardown Each switch contains a VC table Virtual Circuit Identifier (VCI) for incoming connection (also carried in header of packets) Incoming interface of packet for this VC Outgoing interface where the packet should be sent

Virtual Circuit Switching VCIs are not global in the switch network Link local scope – only has significance on given link VCI and interface uniquely define the virtual connection Outgoing packets may use a different VCI Virtual Circuits can be established before the circuit is needed or on demand

Virtual Circuit Switching Two types: Permanent Virtual Circuit (PVC) Network administrator configures the state Switched Virtual Circuit (SVC) Setup and teardown performed by the host requiring the circuit at the time of use

Virtual circuit summary Call setup, teardown for each call before data can flow Each packet carries VC identifier (not destination host ID) Every router on source-destination path maintains “state” for each passing connection transport-layer connection only involved two end systems Link, router resources (bandwidth, buffers) may be allocated to VC to get circuit-like performance

Virtual Circuit Switching Example The University of Adelaide, School of Computer Science 3 April 2019 Virtual Circuit Switching Example Manually create a new virtual connection from host A to host B First the administrator identifies a path through the network from A to B Copyright © 2010, Elsevier Inc. All rights Reserved Chapter 2 — Instructions: Language of the Computer

Virtual Circuit Switching Example The University of Adelaide, School of Computer Science 3 April 2019 Virtual Circuit Switching Example The administrator then picks a VCI value that is currently unused on each link for the connection For our example, Suppose the VCI value 5 is chosen for the link from host A to switch 1 11 is chosen for the link from switch 1 to switch 2 7 is chosen for the link from switch 2 to switch 3 Chapter 2 — Instructions: Language of the Computer

Virtual Circuit Switching Example The University of Adelaide, School of Computer Science 3 April 2019 Virtual Circuit Switching Example Incoming Interface Incoming VC Outgoing Interface Outgoing VC 2 5 1 11 Switch 1 Table Incoming Interface Incoming VC Outgoing Interface Outgoing VC 3 11 2 7 Switch 2 Table Copyright © 2010, Elsevier Inc. All rights Reserved Chapter 2 — Instructions: Language of the Computer

Virtual Circuit Switching Example The University of Adelaide, School of Computer Science 3 April 2019 Virtual Circuit Switching Example Incoming Interface Incoming VC Outgoing Interface Outgoing VC 7 1 4 What is the last VC going from Switch 3 to host B? Switch 3 Table Copyright © 2010, Elsevier Inc. All rights Reserved Chapter 2 — Instructions: Language of the Computer

Switched VC's: SVC Example Setting up the PVC's (no, not the plumbing pipe, a Permanent Virtual Circuit) in a large network, such as Qwest, can be overwhelming Most service providers use signaling of some sort to set up the VCs—even if they are PVCs Signaling for the PVC creation can be handled by the hosts or routers.

Virtual circuits: Signaling Protocols Used to setup, maintain teardown VC Used in ATM, frame-relay, X.25 Not as popular as packet switching in today’s Internet session transport network data link physical 6. Receive data session transport network data link physical 5. Data flow begins 4. Call connected 3. Accept call 1. Initiate call 2. incoming call

SVC Process Host A sends a setup message to switch 1 Contains the complete destination address of host B This message needs to make its way all through the network to host B so that every switch can update its VC table. Switch 1 receives the request Updates its VC table Sends it to switch 2 This continues until the request reaches host B But how?? Switches must know enough about network topology

SVC Process We have completed ½ of the process Host B now sends an ACK back to A This behaves the same as the original setup request Each switch receives the message Updates the VC tables Forwards the message on Every switch now knows the properties of the VC when the message reaches host A.

SVC Process When A (or B) is done with the connection, it sends a teardown message to the channel, say to switch 1 Switch 1 forwards the packet to switch 2 and removes the VC entry for host A Switch 2 does the same, etc. When the teardown message has reached host b, the connection has been removed.

SVC Notes Takes 1 full RTT to set up the path Buffers are allocated in the switches as the connection is set up. Advanced sliding windows keep the remote nodes behaving Circuit setup requests are rejected if a node does not have enough buffers Hop-by-hop flow control.

Architecture Overview Two key functions for switches and routers: run switch/routing algorithms switching datagrams from incoming to outgoing link

Input Port Functions Decentralized switching: Physical layer: bit-level reception Data link layer: e.g., Ethernet Decentralized switching: given datagram dest., lookup output port using routing table in input port memory goal: complete input port processing at ‘line speed’ queuing: if datagrams arrive faster than forwarding rate into switch fabric

Input Port Queuing Fabric slower that input ports combined -> queueing may occur at input queues Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward queueing delay and loss due to input buffer overflow!

Three Types of Switching Fabrics

Switching Via Memory First generation packet switching devices: packet copied by system’s (single) CPU speed limited by memory bandwidth (2 bus crossings per datagram) Modern packet switching devices Input port processor performs lookup, copy into memory Cisco Catalyst 8500 Input Port Output Memory System Bus

Switching Via a Bus Datagram from input port memory to output port memory via a shared bus Bus contention: Switching speed limited by bus bandwidth 1 Gbps bus, Cisco 1900: sufficient speed for access and enterprise routers (not regional or backbone)

Switching via Crossbar Matrix of pathways that can be configured to connect any input port to any output port Biggest problem is that they require output port to accept packets from all inputs at once Implying each port has memory bandwidth equal to total switch throughput In reality, more complex designs

Self-Routing Design One of most scalable approaches of fabric design Rely on information in packet header to direct each packet to correct output “Self-routing header” is appended to packet by input port Extra header is removed after packet leaves the switch Book example: Banyan networks Cisco 12000: switches Gbps through the interconnection network

Output Ports Buffering required when datagrams arrive from fabric faster than the transmission rate Scheduling discipline chooses among queued datagrams for transmission

Output port queueing Buffering when arrival rate via switch exceeds output line speed Queuing (delay) and loss due to output port buffer overflow!