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

Similar documents
C13a: Packet Switching

CISC 7332X T6. C12a: LAN Switching. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 11/13/2018 CUNY Brooklyn College

L2: Bandwidth and Latency. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

L1: Introduction. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

L9: Bridges and LAN Switches. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Switching / Forwarding

L3: Building Direct Link Networks I. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

L5: Building Direct Link Networks III. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Programming Internet with Socket API. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Internetworking: Global Internet and MPLS. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

End-to-End Protocols: UDP and TCP. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

C14b: Classless Intradomain Routing

C13b: Routing Problem and Algorithms

Internetworking Part 1

Transition to IPv6. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

ECE 4450:427/527 - Computer Networks Spring 2017

Programming Ethernet with Socket API. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

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

Switching and Forwarding

Programming Ethernet with Socket API. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

CSCI Computer Networks

INTRODUCTORY COMPUTER

C14a: Internetworks and The Internet

HW3 and Quiz. P14, P24, P26, P27, P28, P31, P37, P43, P46, P55, due at 3:00pm with both soft and hard copies, 11/11/2013 (Monday) TCP), 20 mins

Computer Networks. Instructor: Niklas Carlsson

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

CS4700/CS5700 Fundaments of Computer Networks

Chapter 4. Advanced Internetworking. 4.3 MPLS 4.4 Mobile IP

Computer Networks. Southeast University 东南大学止于至善. Nanjing, Jiangsu China. June 3 rd 23 rd, 2013

Wide area networks: packet switching and congestion

Key Network-Layer Functions

Routing in packet-switching networks

UNIVERSITY OF NEBRASKA AT OMAHA Computer Science 3550 Communication Networks

CS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University

A closer look at network structure:

Switching and Forwarding - continued

Switching and Forwarding - continued

Switching CHAPTER 8. Solutions to Review Questions and Exercises. Review Questions

LAN Interconnection and Other Link Layer Protocols

Transport Layer Overview

UNIT- 2 Physical Layer and Overview of PL Switching

IT4405 Computer Networks (Compulsory)

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

CSCI4211: Introduction to Computer Networks Fall 2017 Homework Assignment 2

JAMES F. KUROSE AND KEITH W. ROSS

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

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

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

Chapter 4. Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, sl April 2009.

Copyright 2010, Elsevier Inc. All rights Reserved

Switching and bridging

Reliable Data Transfer

CS 43: Computer Networks. 20: The Network Layer November 5, 2018

CS 457 Networking and the Internet. Network Overview (cont d) 8/29/16. Circuit Switching (e.g., Phone Network) Fall 2016 Indrajit Ray

More on Link Layer. Recap of Last Class. Interconnecting Nodes in LAN (Local-Area Network) Interconnecting with Hubs. Computer Networks 9/21/2009

Computer Networks. Dr. Abdel Ilah ALshbatat Dept. of Communication and Computer Engineering Faculty of Engineering Tafila Technical University

Chapter 4 Network Layer

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

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

Packe k t e S w S it w ching

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Lecture 1: Introduction & Overview

CSC 401 Data and Computer Communications Networks

CS 3516: Computer Networks

Digital Communication Networks

COMP9332 Network Routing & Switching

Intro. to Computer Network

Lecture 7. Network Layer. Network Layer 1-1

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

CSCI Computer Networks

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Intro. to Computer Network

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

Data Networks. Lecture 1: Introduction. September 4, 2008

of-service Support on the Internet

CSE3213 Computer Network I

Next Steps Spring 2011 Lecture #18. Multi-hop Networks. Network Reliability. Have: digital point-to-point. Want: many interconnected points

CSEN 503 Introduction to Communication Networks

Welcome to CS 340 Introduction to Computer Networking

Introduction to Communications Part One: Physical Layer Switching

Chapter 3 Packet Switching

Web Protocols and Practice

CH. 3 IP FORWARDING AND ROUTING

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

Basics of datacommunication

CNT 4004: Computer Networks I. Tentative Syllabus

Master Course Computer Networks IN2097

Subject Data Communication. Subject Code 15CS46. Module 2 (Part 2) Multiplexing and Switching

Review of Topology and Access Techniques / Switching Concepts

ECE 333: Introduction to Communication Networks Fall 2001

15-441: Computer Networks Homework 1

Switching and Forwarding

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

BROADBAND AND HIGH SPEED NETWORKS

Transcription:

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

Acknowledgements Some pictures used in this presentation were obtained from the Internet The instructor used the following references Larry L. Peterson and Bruce S. Davie, Computer Networks: A Systems Approach, 5th Edition, Elsevier, 2011 Andrew S. Tanenbaum, Computer Networks, 5th Edition, Prentice- Hall, 2010 James F. Kurose and Keith W. Ross, Computer Networking: A Top- Down Approach, 5th Ed., Addison Wesley, 2009 Larry L. Peterson s (http://www.cs.princeton.edu/~llp/) Computer Networks class web site 9/14/2016 CSCI 445 Fall 2016 2

Review Computer networks General purpose Cost-effective network sharing Fair network link allocation Robust connectivity Direct link networks Smallest network Issues Encoding Framing Error detection and correction Reliable delivery Media access control Example Ethernet Limitation Size of networks: size of an Ethernet? 3

Lecture Outline Scalable networks Switching Datagram switching Virtual Circuit Source routing 4

Switches 9/14/2016 CSCI 445 Fall 2016 5

Switches Special node that forwards packets/frames Multiple-input-multiple-output devices Forward packets/frames from input port to output port Switches can connect to each others Each link runs data link protocol (layer 2 switches) Output port selected based on destination address in packet/frame header Provide high aggregate throughput 9/14/2016 CSCI 445 Fall 2016 6

Switched Networks Direct link network Direct link network Direct link network Direct link network Q: how does a switch decide on which output port to place a frame? 7

How does a switch decide on which output port to place a frame? Think about how telephone networks (circuit-switched networks) work How switching (data forwarding) is performed? A physical circuit is established someone has to help you. Someone = a real person or a computer The circuit is dedicated to one connection Each link can be shared(multiplex) a fixed number of connections (TDM or FDM) (from http://www.wchm-tx.org) (from http://www.privateline.com) Computer networks are packet switched networks Data are divided into frames/packets Still, one has to decide which port to forward a frame/packet 8

Packet-switched Networks Data are divided and sent using packets A packet has a header and trailer which contain control information Store-and-forward Each packet is passed from node to node along somepath through the network At each node, the entire packet is received, stored briefly, and then forwarded to the next node Statistical multiplexing No capacity is allocated for packets header Pay load (data) trailer A packet 9

Switching Approaches Datagram switching Connectionless model Virtual circuit switching Connection-oriented model Source routing Common properties Switches have identifiable ports Hosts/nodes are identifiable 10

Datagram Packet Switching Network nodes process each packet independently Two consecutively-sent packets can take different routes. Implications: A sequence of packets can be received in a different order than they were sent Each packet header must contain full address of the destination Example of networks using packet switching Extended Ethernet LAN The Internet Protocol 11

Example 1 2 3 1 2 3 1 2 1 2 3 1 2 1 3 2 3 1 2 12

Datagram Switching Each switch maintains a forwarding table Frame header contains the identifier of destination node Forward packets/frames based on the table Example: if frame header indicates its destination is node B, forward to port 0 done by looking up the table Forwarding/Routing Table for Switch 2 13

Exercise L8-1 Forwarding/Routing Table for Switch 2 Construct the forwarding tables for otherswitches (switches 1 & 3) 14

Datagram Switching: Discussion Each node maintains a forwarding table No connection setup Hosts/switches sends/forwards packets independently Hosts/switches do not know if the network can deliver a packet to its destination A switch/link failure might not be catastrophic Find an alternate route and update forwarding table 15

Virtual Circuit Switching Connection-oriented model Connection setup establish virtual circuit (VC) Data transfer subsequent packets follow same circuit Tear down VC Each switch maintains a VC table An entry (row) in VC table must have VCI: identify connection at this switch withina link a different VCI will be used for outgoing packets Incoming interface, e.g., a port for receiving packets Outgoing interface, e.g., a port for forwarding packets Frame header contains VC number (VCI value) of next linkalong a VC 16

Virtual Circuit Switching: Example Example: host A host B Switches needed? switches 1, 2, and 3 Network do not explicitly maintain global information about virtual circuits Two planned virtual circuits in red dashed line and blue dotted line 17

Virtual Circuit Switching: Example: VC Table Setup phase (could be performed manually for a network administrator) permanent VC Establish VC table for each switch Example: Switch 1 When host A sends out a frame, it places the VCI (i.e. 5) of next link into the frame header Switch 1 looks up an entry based on both incoming interface (i.e., 2) and the VCI (i.e., 5) in the frame header to determine outgoing port (i.e., 1) and VCI (i.e., 11) The scope of VCI values is links Unused VCI value on the link (Host A to Switch 1) VCI can be duplicated on different link VCI 11 VCI s 5 & 11 are VCI 5 part of one single VC Virtual circuit table entry for switch 1 18

Virtual Circuit Switching: Example: VC Table Virtual circuit table entry for switch 1 VCI 11 VCI 5 VCI 7 VCI 4 19

Virtual Circuit Switching: Example Host A sends a frame to host B Switch 1 7 Why 11? 7 4 4 20

Exercise L8-2 Construct Virtual Circuit (VC) table entry for all the switches on the Virtual Circuit for both red and blue Virtual Circuits List VC tables for switches 1, 2, 3, and 4. You may make necessary assumptions. Switch 4 21

Virtual Circuit Switching: Connection Setup Connection setup Permanent virtual circuit (PVC): manual configured unmanageable for great number of nodes Switched virtual circuit (SVC): automatically configured via signaling A process similar to datagram model 22

Virtual Circuit: Discussion Connection setup takes 1 RTT minimally VCI number typically needs less memory space. Perpacket overhead is less than that of the datagram model Need VC re-setup in case of a connection failure Possible to allocate network resources during VC setup 9/14/2016 CSCI 445 Fall 2016 23

Comparison of Datagram and Virtual Circuit Virtual Circuit Need connection setup Typically wait full RTT for connection setup before sending first data packet. 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. In datagram switching: forwarding table contains entries for every host large table more memory, slow lookup Delivery assurance or failure If a switch or a link in a connection fails, the connection is broken and a new one needs to be established. Connection setup provides an opportunity to reserve resources Quality of Service (QoS) Datagram No connection setup There is no RTT delay waiting for connection setup; a host can send data as soon as it is ready. Since every packet must carry the full address of the destination, the overhead per packet is higher than for the connection-oriented model. In virtual circuit switching: VC table contains only circuits to be used smaller table less memory, fast lookup Delivery assurance or failure 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 packets are treated independently, it is possible to route around link and node failures difficult to satisfy QoS 24

Source Routing Source host knows network topology to deliver a packet/frame Source host places output ports of each switch along the route into the frame header Example: Host A sends a frame to host B Ordered list of outputs of switches in header Rotate the list at next switch 25

Exercise L8-3 Assume source routing presented in previous slide is used, show headers of a frame leaves from Host H and arrives at Host D at each switches along the path 26

Summary Switches scalable networks Datagram switching Virtual circuit switching Source routing Q: Example in practice? Ethernet 27