CPS 356: Introduction to Computer Networks Lecture 7: Switching technologies Ch 2.8.2, 3.1, 3.4 Xiaowei Yang

Slides:



Advertisements
Similar presentations
1 UNIT I (Contd..) High-Speed LANs. 2 Introduction Fast Ethernet and Gigabit Ethernet Fast Ethernet and Gigabit Ethernet Fibre Channel Fibre Channel High-speed.
Advertisements

CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Switching Concepts Introduction to Ethernet/802.3 LANs Introduction.
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
1 IK1500 Communication Systems IK1330 Lecture 3: Networking Anders Västberg
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
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.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
Service Providers & Data Link & Physical layers Week 4 Lecture 1.
CSE331: Introduction to Networks and Security Lecture 6 Fall 2002.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
COMPUTER NETWORKS.
Gursharan Singh Tatla Transport Layer 16-May
Connecting LANs, Backbone Networks, and Virtual LANs
Chapter 4 Queuing, Datagrams, and Addressing
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Chapter 6 High-Speed LANs Chapter 6 High-Speed LANs.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
Introduction to Network Layer. Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using bridges? –No!
Networks for Distributed Systems n network types n Connection-oriented and connectionless communication n switching technologies l circuit l packet.
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Ch. 16 High-Speed LANs The Emergence of High- Speed LANs Trends –Computing power of PCs has continued to grow. –MIS organizations recognize the.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 16.
S3C2 – LAN Switching Addressing LAN Problems. Congestion is Caused By Multitasking, Faster operating systems, More Web-based applications Client-Server.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
William Stallings Data and Computer Communications 7 th Edition Chapter 1 Data Communications and Networks Overview.
Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Professor: Munehiro Fukuda.
CCNA 3 Week 4 Switching Concepts. Copyright © 2005 University of Bolton Introduction Lan design has moved away from using shared media, hubs and repeaters.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 4 Switching Concepts.
Cisco 3 - Switching Perrine. J Page 16/4/2016 Chapter 4 Switches The performance of shared-medium Ethernet is affected by several factors: data frame broadcast.
Lecture Topics: 11/27 Networks Layered Model Ethernet IP.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Forwarding.
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.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
1 Switching and Forwarding Sections Connecting More Than Two Hosts Multi-access link: Ethernet, wireless –Single physical link, shared by multiple.
1 Multiple Access: Ethernet Section Point-to-Point vs. Broadcast Media Point-to-point –PPP for dial-up access –Point-to-point link between Ethernet.
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
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
Chapter 3 Part 1 Switching and Bridging
Chapter 3 Part 3 Switching and Bridging
Chapter 3: Packet Switching (overview)
Youngstown State University Cisco Regional Academy
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Network Layer.
Chapter 3 Part 1 Switching and Bridging
CS4470 Computer Networking Protocols
Chapter 3 Part 3 Switching and Bridging
Data Link Issues Relates to Lab 2.
Protocol layering and data
EE 122: Lecture 7 Ion Stoica September 18, 2001.
Chapter 3 Part 3 Switching and Bridging
Packet Switching Outline Store-and-Forward Switches
Protocol layering and data
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Virtual LAN (VLAN).
Presentation transcript:

CPS 356: Introduction to Computer Networks Lecture 7: Switching technologies Ch 2.8.2, 3.1, 3.4 Xiaowei Yang

Review: link layer functions Encoding – NRZ, NRZI, Manchester, 4B/5B Framing: bit, byte, time-synchronization Error detection – Parity bits, Internet checksum, CRC Reliable transmission – Stop-and-wait – Sliding window – Concurrent logical channels Media Access Control – Ethernet, Token Ring, Wifi (today)

Ethernet: Physical properties Sensing the line; if idle, sends signals 10Base5 CSMA/CD: Carrier Sense Multiple access with Collision Detection

Collision Domain Any host hears any other host – A single segment – Multiple segments connected by repeaters – Multiple segments connected by a hub

Transmitter Algorithm Begin: Wait until the line is idle and has data to send, the adaptor sends it, and listens to collision – If no, go back to Begin – else exponentially backoff randomly selects a k between [0,2 n -1], waits for k x 51.2 μs to try Begin again Gives up after n reaches 16

Collision detection An adaptor senses the signals on the line and compares it with its own – If same, no collision; otherwise, collision – Sends 32-bit jamming sequence after collision In the worst case, a sender needs to send 512 bits ( = 64B) to detection collision – Why?

One way delay is d A needs to send for 2d duration to detect collision 2d = 512 μs. On a 10Mps Ethernet, corresponds to 512 bits

The IEEE Baseband – Five physical segments between any two nodes – Four repeaters between the nodes. – Three of these physical segments can have connected node Each segment < 500m  Total < 2500m

Propagation delay for this maximum-extent Ethernet network is 25.6us 2*d = 512us (tolerating errors) Minimum Ethernet packet size is 512 bits (64B) – Header 14B, payload 46B, CRC 4B

Today Types of switching – Datagram – Virtual circuit – Source routing Switching hardware design

Packet switching Problem: single link networks have limited scale Ethernet < 1024 hosts, 2500 meters Wireless limited by radio ranges Point-to-point links connect only two nodes Packet switches enable packets to travel from one host to another without being directly connected A packet switch is a device with several inputs and outputs leading to and from the nodes that the switch interconnects

A star topology A switch has a limited number of inputs and outputs ports Switches can be connected to each other to build larger networks Adding a new host may not reduce the performance for other hosts – Not true for shared media networks – Why?

Switching A switch connects links Each link can be of different types A switch runs an appropriate link layer protocol Switching (or forwarding): receive incoming packets and send to different outgoing links

Switching technologies Problem: how does a switch decide on which output port to place each packet? Solution: look at the packet header and makes a decision – Connectionless: datagram – Connection oriented: virtual circuit – Source routing

Challenges Contention – Input rate exceeds output rate Multiple input ports may send to the same output port – Switches queue packets until contention disappears Congestion – When a switch runs out of buffer, it discards packets. – Too frequent packet loss is said to be congested

Datagram Every packet contains the destination address – A global unique identifier – Ethernet has 48-bit addresses A switch maintains a forwarding table that maps a packet to an output port

Switch 2’s forwarding table A3 B0 C3 D E F G H Q: how does a switch compute the table?

Features of datagram switching Connectionless: hosts can send anytime. No need to wait for connection to set up Unknown network state: not sure whether a packet can reach the destination Independent forwarding: packets may take different paths Robust to failures: a failure of a switch may not disrupt communications – Switches can re-compute forwarding tables

Virtual circuit switching Connection oriented – Set up a virtual circuit – Data transfer Connection setup phase – Set up connection state – A virtual circuit identifier, an incoming interface, an outgoing interface, and an outgoing virtual circuit identifier

Virtual circuit table (switch1) Incoming interface Incoming VCI Outgoing interface Outgoing VCI

Virtual circuit switching Algorithm: – If a packet arrives on the matching incoming port with the matching incoming VCI, it will be sent to the corresponding outgoing port with the corresponding VCI VCIs are link-local

How to setup connection state Administrator configured – Permanent virtual circuit (PVC) – Admin manually sets up VC tables – Does not suit large networks Signaling – A host sends messages to dynamically setup or tear down a VC

VC setup A host A sends a setup message to first hop switch, including the final destination address – Similar to a datagram packet The switch picks an unused VCI to identify the incoming connection, and fills part of the VC table – Why not let the host pick it? Every switch repeats the process until the packet reaches the destination B The destination B sends an ack to inform its upstream switch the VCI for the connection

Setup B IF VCI OFVCI 251 Setup B IF VCI OFVCI 3112 Setup B IF VCI OFVCI 071 Setup B IF VCI OFVCI 071 4

IF VCI OFVCI 251 IF VCI OFVCI 3112 IF VCI OFVCI ACK, 4 4 ACK,

Characteristics of VC switching Connection setup wait Data packets contain a small VCI, rather than the full destination addresses One switch failure tears down the entire connection Connection sets up require routing algorithms – Setup packet is forwarded using a datagram algorithm

VC allows resource reservation Buffers can be allocated during the setup phase to avoid congestion An example (X.25) – Buffers allocated during connection setup – Sliding window is run between pairs of nodes (hop-by-hop flow control) – Circuit is rejected if no more buffer

Quality of service (QoS) Connectionless network is difficult to allocate resources – Switches send packets independently – How to associate one packet with other packets? Virtual circuit can be used to provide different QoS – Allocate a fraction of link bandwidth to each circuit

Switching technologies Connectionless: datagram Connection oriented: virtual circuit Source routing

Source host provides all the information for packets to travel across the network – Packets carry output port numbers – Packets carry switch addresses – Variable header length

Handling source routing headers Rotation Stripping – No return path! Pointer

Loose or strict source routing Strict – Must visit every node on the path Loose – Waypoints rather than the complete route

Overview Types of switching – Datagram – Virtual circuit – Source routing Switching hardware design – How to build switches?

Software switch Packets cross the bus twice – Half of the memory bus speed 133Mhz, 64-bit wide I/O bus  4Gpbs Short packets reduce throughput – 1Mpps, 64 bytes packet – Throughput = 512 Mbps – Shared by 10 ports: 51.2Mbps

Hardware switches Ports communicate with the outside world – Eg, maintains VC tables Switching fabric is simple and fast

Performance bottlenecks Input port – Line speed: 2.48 Gbps 2.48x10 9 /(64x8) = 4.83 Mpps Buffering – Head of line blocking – May limit throughput to only 59% – Use output buffers or sophisticated buffer management algorithms to improve performance

Fabrics Shared bus – The workstation switch Shared memory – Input ports read packets to shared memory – Output ports read them out to links

Fabrics Cross bar – Each output ports need to accept from all input ports

Fabrics Self routing – a self-routing header added by the input port – Most scalable – Often built from 2x2 switching units

An example of self-routing 3-bit numbers are self-routing headers Multiple 2x2 switching elements – 0: upper output; 1: lower output

Summary Types of switching – Datagram Forwarding table Simple, difficult to have QoS – Virtual circuit Datagram for connection setup Smaller VC identifiers – Source routing Packets carry forwarding information Variable header length Switching hardware design – Shared bus, shared memory, cross-bar, self-routing Next lecture – How is forwarding table computed? – ATM network