ECE 4450:427/527 - Computer Networks Spring 2017

Slides:



Advertisements
Similar presentations
Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Fall 2008.
Advertisements

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.
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.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
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.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
1 Chapter 8 Local Area Networks - Internetworking.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
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 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
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
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
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.
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.1: Internetworking Dr. Nghi Tran.
Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
5: DataLink Layer5-1 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r Multi-tier design provides.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
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.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
3. INTERNETWORKING (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 18 February
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.
Chapter 3 Part 1 Switching and Bridging
Ethernet switches and IP routers
Chapter 16– Connecting LANs
Chapter 3 Part 3 Switching and Bridging
Chapter 3: Packet Switching (overview)
CS 3700 Networks and Distributed Systems
Link Layer 5.1 Introduction and services
Networking Devices.
Advanced Computer Networks
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
MAC Addresses and ARP 32-bit IP address:
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
Switching and Forwarding Bridges and Extended LANs
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
Chapter 3 Part 3 Switching and Bridging
Hubs Hubs are essentially physical-layer repeaters:
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
EEC-484/584 Computer Networks
Chapter 6 The Link Layer and LANs
Communication Networks NETW 501
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Dr. Rocky K. C. Chang 23 February 2004
PRESENTATION COMPUTER NETWORKS
EEC-484/584 Computer Networks
Chapter 3 Part 3 Switching and Bridging
Chapter 15. Connecting Devices
LAN switching and Bridges
Packet Switching Outline Store-and-Forward Switches
Chapter 5 Data Link Layer – Hub, Switch
Virtual LAN (VLAN).
Presentation transcript:

ECE 4450:427/527 - Computer Networks Spring 2017 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.1: Internetworking Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Internetworking: Discussions Up to now, we have learned how to Connect one node to another Connect one node to an existing network, e.g. Ethernet “Last-mile” link: Connect to a modest number of node together: Ethernet 1024 nodes, point-to-point: 2 nodes Next, we will learn how to build networks of global scale: How to interconnect different types of links and networks: Internetworking Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Internetworking: Discussions For Internetworking, we shall look at few sub-problems: Interconnect links of the same type: Switches We consider an important of class switch: Bridges to interconnect Ethernet segments. We also look a way to interconnect disparate networks and links: Gateways, or now mostly known as routers. We shall focus on the IP Once we are able to interconnect a whole lot of links and networks with switches and routers, we will look at a way to find a suitable path, or route through a network: Paths that are efficient, loop free, etc.: Routing Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Internetworking: Our Goal Understanding the functions of switches, bridges and routers Discussing Internet Protocol (IP) for interconnecting networks Understanding the concept of routing Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switch A mechanism that allows us to interconnect links to form a large network A multi-input, multi-output device which transfers packets/frames from an input to one or more outputs How about Hub/Repeater? Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switching Topology A switch implements a star topology Switches are MIMO devices Ports are numbered Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Properties Even though a switch has a fixed number of inputs and outputs, which limits the number of hosts that can be connected to a single switch, large networks can be built by interconnecting a number of switches Adding a new host to the network by connecting it to a switch does not necessarily mean that the hosts already connected will get worse performance from the network Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Properties The last claim cannot be made for the shared media network (discussed in Chapter 2) It is impossible for two hosts on the same Ethernet to transmit continuously at 10Mbps because they share the same transmission medium Every host on a switched network has its own link to the switch So it may be entirely possible for many hosts to transmit at the full link speed (bandwidth) provided that the switch is designed with enough aggregate capacity Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Primary Job A switch’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 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switches Link-layer device: smarter than hubs, take active role store, forward Ethernet frames examine incoming frame’s MAC address, selectively forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment transparent plug-and-play, self-learning Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

switch with six interfaces Properties Allows multiple simultaneous transmissions A hosts have dedicated, direct connection to switch switches buffer packets Ethernet protocol used on each incoming link, but no collisions; full duplex each link is its own collision domain switching: A-to-A’ and B-to-B’ simultaneously, without collisions not possible with dumb hub C’ B 1 2 6 3 4 5 C B’ A’ switch with six interfaces (1,2,3,4,5,6) Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Example: Institutional Network mail server to external network web server router IP subnet Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switching and Forwarding How does a 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 A third approach source routing is less common Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Datagram/Connectionless Assumptions Each host has a globally unique address, i.e. MAC There is some way to identify the input and output ports of each switch We can use numbers We can use names Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Datagram/Connectionless Datagrams 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 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Datagram/Connectionless No dedicated connection between communicating hosts: Packets may follow independent paths to the destination Packets are sent to the switch at any time (no contention) Source is not aware of the state of the destination Less prone to switch failures if alternative paths exist Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Example An example network To decide how to forward a packet, a switch consults a forwarding table (sometimes called a routing table) Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Forwarding Table Destination Port ------------------------------------- A 3 B 0 C 3 D 3 E 2 F 1 G 0 H 0 Forwarding Table for Switch 2 Entry: MAC address of host, port/interface to reach host: looks like a routing table! Q: how are entries created, maintained in switch table? Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switch: Self-Learning Source: A Dest: A’ A A A’ switch learns which hosts can be reached through which interfaces when frame received, switch “learns” location of sender: incoming LAN segment records sender/location pair in switch table C’ B 1 2 6 3 4 5 C B’ MAC addr interface A’ A 1 Switch table (initially empty) Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Switch: Frame Filtering/Forwarding When frame received: 1. record link associated with sending host 2. index switch table using MAC dest address 3. if entry found for destination then { if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood forward on all but the interface on which the frame arrived Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Self-Learning/Forwarding Example Source: A Dest: A’ Frame destination unknown: A A A’ flood C’ B Destination A location known: selective send 1 2 6 3 A A’ A A’ A A’ A A’ A A’ 4 5 MAC addr Port TTL C A 1 Forwarding table (initially empty) A’ A A’ 4 B’ A’ Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Interconnecting Switches switches can be connected together D E F S2 S4 S3 H I G S1 A B C Q: sending from A to G - how does S1 know to forward frame destined to F via S4 and S3? A: self learning! (works exactly the same as in single-switch case!) Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Multi-Switch Forwarding Tables Suppose C sends frame to I, I responds to C S4 1 S1 2 S3 S2 A F D I B C G H E Q: show switch tables and packet forwarding in S1, S2, S3, S4 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Datagram/Connectionless: Summary Characteristics of Connectionless (Datagram) Network A host can send a packet anywhere at any time, since any packet that turns up at the switch can be immediately forwarded (assuming a correctly populated forwarding table) When a host sends a packet, it has no way of knowing if the network is capable of delivering it or if the destination host is even up and running Each packet is forwarded independently of previous packets that might have been sent to the same destination. Thus two successive packets from host A to host B may follow completely different paths A switch or link failure might not have any serious effect on communication if it is possible to find an alternate route around the failure and update the forwarding table accordingly Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Virtual Circuit 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 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Virtual Circuit (VC) Switching Two-stage process Connection setup Data Transfer Establish “connection state” in each of the switches between the source and destination hosts The connection state for single connection consists of an entry in the “VC table” in each switch through which the connection passes Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

VC Table One entry in the VC table on a single switch contains Incoming VC identifier (VCI) (identifies the connection per link) Outgoing VC identifier (VCI) (possibly different that the incoming) Incoming interface (different than the VC Identifier, similar to a port) Outgoing interface (different than the VC identifier, similar to a port) The semantics for one such entry is If a packet arrives on the designated incoming interface and that packet contains the designated VCI value in its header, then the packet should be sent out the specified outgoing interface with the specified outgoing VCI value first having been placed in its header Incoming Interface Incoming VC Outgoing Interface Outgoing VC 2 5 1 11 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

VC Connection Setup Permanent VC (PVC): Administrator sets up a permanent connection and configures VC table Switched VC (SVC): The host signals to the switches in order to establish a VC, dynamically. Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

PVC Let’s assume that a network administrator wants to 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 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

PVC 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 So the switch 1 will have an entry in the VC table Incoming Interface Incoming VC Outgoing Interface Outgoing VC 2 5 1 11 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

PVC Example Switch 1 Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI 2 5 1 11 Switch 2 Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI 3 11 2 7 Switch 3 Incoming Interface Incoming VCI Outgoing Interface Outgoing VCI 7 1 4 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Data Transfer Stage Dr. Nghi Tran (ECE-University of Akron)

SVC Example A sends setup msg to switch 1 indicating the address of B Switch 1 setups incoming/outgoing interfaces and VCIs Connection setup msg is forwarded like a datagram to switch 2 Switch 2 repeats the setup process Once data stage is over, connection is torn down Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

SVC: Observations Delay? Overhead (in terms of address)? A switch/link failure? How to get set up message to B? Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Bridges Bridges are special switches that interconnect Ethernet networks Act as simple nodes on each Ethernet What is Forwarding Table for this Bridge? Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Problem with Flooding Dr. Nghi Tran (ECE-University of Akron)

Why Loop? Solution How does an extended LAN come to have a loop in it? Network is managed by more than one administrator For example, it spans multiple departments in an organization It is possible that no single person knows the entire configuration of the network A bridge that closes a loop might be added without anyone knowing Loops are built into the network to provide redundancy in case of failures Solution Distributed Spanning Tree Algorithm Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Preliminaries on Graph Graph G(V, E) : Collection of vertices and edges V: Set of vertices E: Set of edges, e(x, y) = 1, if x, y connected, 0 otherwise Path: sequence of vertices with an edge between subsequent vertices (can be defined as sequence of edges as well) V1 V3 V2 V4 V5 V6 Path: {V1, V3, V4} Vertex Edge Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Connected Graph A graph is said to be connected, if there is a path from any node to any other node V3 V3 V1 V1 V4 V4 V2 V2 V5 V5 V6 V6 Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

(A)Cyclic Graph Cycle: a path with the same first and last vertex Cyclic graph: A graph that contains at least one cycle Acyclic graph: A graph with no cycles Tree: An acyclic connected graph (spanning tree, spans all vertices) Forest: A disconnected acyclic graph (a graph with many trees) V3 V3 V1 V1 V4 V4 V5 V5 V6 V6 Cyclic graph Tree Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Mapping Extended LAN to Graph Think of the extended LAN as being represented by a graph that possibly has loops (cycles) A spanning tree is a sub-graph of this graph that covers all the vertices but contains no cycles Spanning tree keeps all the vertices of the original graph but throws out some of the edges Example of (a) a cyclic graph; (b) a corresponding spanning tree. Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Mapping Extended LAN to Graph Bridges and LANs become vertices, ports become edges Goal: Make a tree that spans only LANs (red vertices): Spanning Tree Algorithm A B C B3 B5 B7 K D B2 E F B1 H G B6 B4 J I Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Spanning Tree Algorithm Each bridge has a unique identifier Pick bridge with smallest ID, make it the root of the tree D E F B1 H G Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Spanning Tree Algorithm Compute shortest path (in terms of hops) from each bridge to root A B C B3 B5 B7 K D B2 E F B1 H G B6 B4 J I Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Spanning Tree Algorithm Each LAN remains connected to the bridge with shortest path to the root. In case of a tie use smallest ID A B C B3 B5 B7 K D B2 E F B1 H G B6 B4 J I Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527

Distributed Spanning Tree: Message Exchange Initially, all bridges consider themselves as roots Broadcast on all ports ID, root bridge, and distance to root If bridge hears a message from another bridge with smaller ID it adjusts root/distance, and forwards Ex., Let (Y, d, X) denote (root, distance, bridge ID) B3 receives (B2, 0, B2) B3 accepts B2 as root B3 adds one on its distance to B2, and fwds to B5 (B2, 1, B3) B2 accepts B1 as root and updates B3 with (B1, 1, B2) B5 accepts B1 as root and updates B3 with (B1, 1, B3) B3 accepts B1 as root, and note that both B2, B5 are closer to root in both ports. Hence, B3 blocks all ports Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527