Advanced Computer Networks

Slides:



Advertisements
Similar presentations
CSCI-1680 Switching Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

Switching and Forwarding
Communication Networks Recitation 3 Bridges & Spanning trees.
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
Spring 2003CS 4611 Switching and Forwarding Outline Store-and-Forward Switches Bridges and Extended LANs Cell Switching Segmentation and Reassembly.
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 19 Introduction to Computer Networks.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
CSE 534 Fundamentals of Computer Networks Lecture 4: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised.
CS 4700 / CS 5700 Network Fundamentals Lecture 7: Bridging (From Hub to Switch by Way of Tree) Revised 1/14/13.
1 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
1 Switching and Forwarding Bridges and Extended LANs.
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 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
1 Switching and Forwarding Bridges and Extended LANs.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
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
17-LAN extensions: Fiber Modems, Repeaters, Bridges and Switches Dr. John P. Abraham Professor UTPA.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Semester 1 Module 8 Ethernet Switching Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.
Module 8: Ethernet Switching
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
1 Chapter 3 Internetworking Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Copyright © 2010, Elsevier Inc. All rights Reserved.
Bridges and Extended LANs
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Winter 2008CS244a Handout 111 CS244a: An Introduction to Computer Networks Handout 11: Interconnecting LANs Nick McKeown Professor of Electrical Engineering.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag Mohammadi Packet Switching.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.
CS380 Int. to Comp. Networks Switching – Part II1 Bridges and LAN Switches Q. What can be used to share data between two shared-media LAN’s? A.LAN switch.
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
Packet Switching Outline Store-and-Forward Switches
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
Spanning Tree Algorithm
: An Introduction to Computer Networks
Switching and Forwarding Bridges and Extended LANs
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
Intra-Domain Routing Jacob Strauss September 14, 2006.
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Measured Capacity of an Ethernet: Myths and Reality
Bridges and Extended LANs
LAN switching and Bridges
Switching and Forwarding
CS 4700 / CS 5700 Network Fundamentals
CS4470 Computer Networking Protocols
Dr. Rocky K. C. Chang 23 February 2004
LAN switching and Bridges
Packet Switching Outline Store-and-Forward Switches
ECE 4450:427/527 - Computer Networks Spring 2017
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
HWP2 – Application level query routing
Presentation transcript:

Advanced Computer Networks CS716 Advanced Computer Networks By Dr. Amir Qayyum 1

Lecture No. 15

Source Routing Packet header contains sequence of address/ports on path from source to destination One direction per switch: port, next switch; (absolute) Switches read, use, and then discard directions

Source Routing All forwarding/topology information required to switch a packet is provided by source host Used in some system area networks (SANs) Directions may be rotated instead of discarding

Data Transfer in Source Routing Analogous to following directions 2 Switch 2 Switch 1 3 1 3 1 data 1 3 2 data 1 3 data 3 1 Switch 3 2 data 1 3 Host A Host B 1 3 data 2 3 1 data 3 1

Source Routing Model Source host needs to know the correct and complete topology of the network Changes must propagate to all hosts Packet headers may be large and variable in size: the length is unpredictable

Can be used in datagram or virtual circuit networks Source Routing Model Each switch needs to correctly and efficiently manipulate the header information Rotation or stripping of address Pointer to current address Can be used in datagram or virtual circuit networks

Forwarding Performance Assume switch is General-purpose workstation With DMA support Multiple network adapters (NIC’s) Switching process Packet arrives on NIC 1 NIC 1 DMA’s packet into memory CPU looks at header, decides to send on NIC 2 NIC 2 DMA’s packet into NIC 2 memory Packet leaves via NIC 2

Implementation and Performance Packet arriving at interface 1 has to go on interface 2 Point of contention for packets: I/O and memory bus

Implementation and Performance The cost of processing small packets (parsing headers, deciding output port) dominates other restrictions Throughput = packets/sec x bits/packet Moving data from inputs to outputs in parallel may increase the aggregate throughput Potential bottlenecks I/O bus bandwidth Memory bus bandwidth Processor computing power

Bridges and Extended LANs

Building Extended LANs Traditional LAN Shared medium (e.g., Ethernet) Cheap, easy to administer Supports broadcast traffic Problem Want to scale LAN concept Larger geographic area (> O(1 km)) More hosts (> O(100)) But retain LAN-like functionality Solution: bridges

Bridges Connect two or more LANs with a bridge Transparently extends a LAN over multiple networks Accept & forward strategy (in promiscuous mode) Level 2 connection (does not add packet header) A Bridge B C X Y Z Port 1 Port 2

Bridges vs. Switches Switch Bridge Receive frame on input port Translate address to output port Forward frame Bridge Connect shared media All ports bidirectional Repeat subset of traffic Receive frame on one port Send on all other ports

Uses and Limitations of Bridges Extend LAN concept Limited scalability To O(1,000) hosts Not to global networks Not heterogeneous Some use of address, but No translation between frame formats

Learning Bridges Trivial algorithm Forward all frames on all (other) LAN’s Potentially heavy traffic & processing overhead Optimize by using address information “Learn” which hosts live on which LAN Maintain forwarding table Only forward when necessary (dest. not on same LAN) Reduces bridge workload

Learning Bridges Learn table entries based on source address Timeout entries to allow movement of hosts Table is an optimization; need not be complete Always forward broadcast frames Uses datagram or connectionless forwarding A Bridge B C X Y Z Port 1 Port 2 Host Port A 1 B 1 C 1 X 2 Y 2 Z 2

Learning Bridges Problem Solution: spanning tree C E D B2 B5 B B7 K F H B4 J B1 B6 G I Problem Redundancy (desirable to handle failures, but …) Makes extended LAN structure cyclic Frames may cycle forever Solution: spanning tree

Spanning Tree Subset of forwarding possibilities All LAN’s reachable, but Acyclic Bridges run a distributed algorithm to calculate the spanning tree Select which bridge actively forward Developed by Radia Perlman of DEC Now IEEE 802.1 specification Reconfigurable algorithm

Spanning Tree Concept LAN’s and bridges make a bipartite graph Ports are edges connecting LAN’s to bridges Spanning tree required Connect all LAN’s: all vertices of graph are covered Can leave out bridges: all edges may not be covered

Spanning Tree Algorithm Each bridge has a unique, totally-ordered identifier Select bridge with lowest ID as root bridge

Spanning Tree Algorithm Each bridge determines Direction of shortest path to root (preferred port) For each connected LAN, is it the designated bridge? Select bridge on each LAN closest to root as designated bridge Use ID (lowest) to break ties) Ports connecting LAN’s to designated bridges called designated ports

Spanning Tree Algorithm All designated bridges forward frames On all designated ports On preferred port (path leading to root) A B B3 LAN Designated port Preferred port Designated bridge C B5 D B7 B2 K E F B1 B2 G H B6 B4 I J

Distributed Spanning Tree Algorithm Bridges exchange configuration messages ID for bridge sending the message ID for what the sending bridge believes to be root bridge Distance (hops) from sending bridge to root bridge

Distributed Spanning Tree Algorithm Initially, each bridge believes it is the root Sends a configuration message, and checks if any received message is better than the current best message Each bridge records current best configuration message for each port

Distributed Spanning Tree Algorithm Bridges forward configuration messages outward from root bridge i.e., on all designated ports Bridge assumes it is designated bridge for a LAN until it learns otherwise A B B3 C B5 D B7 B2 K E F B1 G H B6 B4 I J

Algorithm Details In steady state, only designated bridges forward configuration messages Outward from root bridge, to all designated ports Until they learn they are not designated bridge

Algorithm Details In steady state, only root generates configuration messages periodically Timeout restarts algorithm (claiming “I am root …”) Although algorithm is reconfigureable, it is not possible to forward frames over alternative paths

Broadcast and Multicast Forward all broadcast/multicast frames to all preferred and designated ports Current practice Lets hosts decide whether or not to accept frame

Broadcast and Multicast Alternative: extend learning to handle groups Learn when no group members downstream Group members periodically identify themselves Accomplished by having each group member sending a frame to the bridge with group address in source field

Limitations of Bridges Do not scale Broadcast does not scale Spanning tree algorithm does not scale Do not accommodate heterogeneity Only supports networks with same address formats

Limitations of Bridges Caution: beware of transparency Frame drop because of bridge congestion Large and variable latency between two hosts Frames may reorder in extended LANs