1 Peter Steenkiste Departments of Computer Science and Electrical and Computer Engineering 15-441 Networking, Spring 2008

Slides:



Advertisements
Similar presentations
CCNA3: Switching Basics and Intermediate Routing v3.0 CISCO NETWORKING ACADEMY PROGRAM Switching Concepts Introduction to Ethernet/802.3 LANs Introduction.
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.
Topic 7 Local Area Networks (LAN)
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
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.
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.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
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.
15-744: Computer Networking L-4 Routers. L -4; © Srinivasan Seshan, Routing How do routers process IP packets Forwarding lookup algorithms.
Computer Networking Lecture 7 – Bridging, Addressing and Forwarding Copyright ©, Carnegie Mellon University.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
CSE390 Advanced Computer Networks Lecture 7: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised Fall.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
COMS W COMS W Lecture 7. LAN Switching: Bridges & Spanning Tree Protocol.
LAN switching and Bridges
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)
Lecture 7 – IP Addressing and Forwarding
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
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
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.
Common Devices Used In Computer Networks
CS 640: Introduction to Computer Networks
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
CS 640: Computer Networks Aditya Akella Lecture 6 - Error/Flow Control & Intro to Switching and Medium Access Control.
Module 8: Ethernet Switching
CS 640: Introduction to Computer Networks
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
Computer Networking Lecture 9 – IP Addressing and Forwarding.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 7 - IP: Addressing and Forwarding.
Semester 3—LAN Switching Chapter 2 Objectives  By the end of this chapter we will be able to perform tasks related to: – Various LAN Communication Problems.
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.
CCNA Guide to Cisco Networking Chapter 2: Network Devices.
Ethernet. Ethernet standards milestones 1973: Ethernet Invented 1983: 10Mbps Ethernet 1985: 10Mbps Repeater 1990: 10BASE-T 1995: 100Mbps Ethernet 1998:
Univ. of TehranComputer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani.
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
Peter A. Steenkiste, SCS, CMU 1 Lecture 7 Datalink – Bridging and Switching Peter Steenkiste Departments of Computer Science and Electrical and Computer.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.
Chapter 3 Part 1 Switching and Bridging
Chapter 16– Connecting LANs
Instructor & Todd Lammle
Youngstown State University Cisco Regional Academy
Networking Devices.
Bridging.
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
Switching and Forwarding Bridges and Extended LANs
Chapter 3 Part 1 Switching and Bridging
Hubs Hubs are essentially physical-layer repeaters:
LAN switching and Bridges
Lecture 8 – Bridging, Addressing and Forwarding
LAN switching and Bridges
CS4470 Computer Networking Protocols
Lecture 7 – IP Addressing and Forwarding
Chapter 15. Connecting Devices
LAN switching and Bridges
Connecting Devices Hosts and networks do not normally operate in isolation Connecting devices connect hosts together to make a network or connect networks.
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Virtual LAN (VLAN).
Presentation transcript:

1 Peter Steenkiste Departments of Computer Science and Electrical and Computer Engineering Networking, Spring Computer Networking Lecture 8 – Switching and Bridging

2 Scale What breaks when we keep adding people to the same wire? 2 yak yak…

3 Scale What breaks when we keep adding people to the same wire? Only solution: split up the people onto multiple wires »But how can they talk to each other? 3 yak yak…

4 Problem: How to Connect LANs? When should these boxes forward packets between wires? How do you specify a destination? How does your packet find its way? 4 yak yak…

5 Outline Bridging Internetworks » Methods for packet forwarding 5

6 Building Larger LANs: Bridges Extend reach of a single shared medium Connect two or more “segments” by copying data frames between them »Only copy data when needed  key difference from repeaters/hubs »Reduce collision domain compared with single LAN »Separate segments can send at once  much greater bandwidth Challenge: learning which packets to copy across links 6 LAN 1LAN 2

7 Transparent Bridges Design goals: »Self-configuring without hardware or software changes »Bridge do not impact the operation of the individual LANs Three parts to making bridges transparent: 1) Forwarding frames 2) Learning addresses/host locations 3) Spanning tree algorithm 7

8 Frame Forwarding A machine with MAC Address lies in the direction of number port of the bridge For every packet, the bridge “looks up” the entry for the packets destination MAC address and forwards the packet on that port. »Other packets are broadcast – why? Timer is used to flush old entries C98900AA 2 MAC Address Port A21032C9A A323C B C Age Bridge 1 3 2

9 Learning Bridges Manually filling in bridge tables? »Time consuming, error-prone Keep track of source address of packets arriving on every link, showing what segment hosts are on »Fill in the forwarding table based on this information 9 host Bridge

10 Spanning Tree Bridges More complex topologies can provide redundancy. »But can also create loops. What is the problem with loops? Solution: spanning tree 10 host Bridge

11 Spanning Tree Protocol Overview Embed a tree that provides a single unique path to each destination: 1) Elect a single bridge as a root bridge 2) Each bridge calculates the distance of the shortest path to the root bridge 3) Each LAN identifies a designated bridge, the bridge closest to the root. It will forward packets to the root. 4) Each bridge determines a root port, which will be used to send packets to the root 5) Identify the ports that form the spanning tree 11

12 Spanning Tree Algorithm Steps Root of the spanning tree is the bridge with the lowest identifier. »All ports are part of tree Each bridge finds shortest path to the root. »Remembers port that is on the shortest path »Used to forward packets Select for each LAN the designated bridge that has the shortest path to the root. »Identifier as tie-breaker »Responsible for that LAN 12 B3 B7 B5 B2 B1 B4B

13 Spanning Tree Algorithm Each node sends configuration message to all neighbors. »Identifier of the sender »Id of the presumed root »Distance to the presumed root »E.g. B5 sends (B5, B5, 0) When B receive a message, it decide whether the solution is better than their local solution. »A root with a lower identifier? »Same root but lower distance? »Same root, distance but sender has lower identifier? After convergence, each bridge knows the root, distance to root, root port, and designated bridge for each LAN. 13 B3 B7 B5 B2 B1 B4B6

14 Spanning Tree Algorithm (part 2) Each bridge B can now select which of its ports make up the spanning tree: »B’s root port »All ports for which B is the designated bridge on the LAN Bridges can not configure their ports. »Forwarding state or blocked state, depending on whether the port is part of the spanning tree Root periodically sends configuration messages and bridges forward them over LANs they are responsible for. 14 B3 B7 B5 B2 B1 B4B6

15 Spanning Tree Algorithm Example Node B2: »Sends (B2, B2, 0) »Receives (B1, B1, 0) from B1 »Sends (B2, B1, 1) “up” »Continues the forwarding forever Node B1: »Will send notifications forever Node B7: »Sends (B7, B7, 0) »Receives (B1, B1, 0) from B1 »Sends (B7, B1, 1) “up” and “right” »Receives (B5, B5, 0) - ignored »Receives (B5, B1, 1) - better »Continues forwarding the B1 messages forever to the “right” 15 B3 B7 B5 B2 B1 B4B6

16 Ethernet Switches Bridges make it possible to increase LAN capacity. »Packets are no longer broadcasted - they are only forwarded on selected links »Adds a switching flavor to the broadcast LAN Ethernet switch is a special case of a bridge: each bridge port is connected to a single host. »Can make the link full duplex (really simple protocol!) »Simplifies the protocol and hardware used (only two stations on the link) – no longer full CSMA/CD »Can have different port speeds on the same switch –Unlike in a hub, packets can be stored –An alternative is to use cut through switching 16

17 Ethernet Evolution 17 Current Implementations Ethernet Conc.. Router Server WAN HUB Switch Switched solution Little use for collision domains 80% of traffic leaves the LAN Servers, routers 10 x station speed 10/100/1000 Mbps, 10gig coming: Copper, Fiber 95% of new LANs are Ethernet CSMA - Carrier Sense Multiple Access CD - Collision Detection WAN LAN Ethernet or A Local Area Network MAC addressing, non-routable BUS or Logical Bus topology Collision Domain, CSMA/CD Bridges and Repeaters for distance/capacity extension 1-10Mbps: coax, twisted pair (10BaseT) B/R Early Implementations

18 Ethernet in a campus network 18 Server 100 Mbps links 10 Mbps links Server 100 Mbps links 10 Mbps links Server 100 Mbps links 10 Mbps links Server Gigabit Ethernet links Server farm Department A Department B Department C Hub Ethernet switch Switch/router Today: x 10

19 Problem: Bridging Weaknesses Doesn’t handle incompatible LAN technologies » Is interoperable within 802.* standard How well does it scale? 19

20 Outline Bridging Internetworks »Methods for packet forwarding 20

21 What is an Internetwork? Multiple incompatible LANs can be physically connected by layer 3 switches called routers The connected networks are called an internetwork »The “Internet” is one (very big & successful) example of an internetwork 21 host LAN 1... host LAN 2... router WAN LAN 1 and LAN 2 might be completely different, totally incompatible LANs (e.g., Ethernet and ATM)

22 Logical Structure of Internet »Ad hoc interconnection of networks –No particular topology –Vastly different router & link capacities »Send packets from source to destination by hopping through networks –Router connect one network to another –Different paths to destination may exist 22 host router

23 Internet Protocol (IP) Hour Glass Model »Create abstraction layer that hides underlying technology from network application software »Make as minimal as possible »Allows range of current & future technologies »Can support many different types of applications 23 Network technology Network applications WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio...

24 Problem: Internetwork Design How do I designate a distant host? »Addressing / naming How do I send information to a distant host? »What gets sent? »What route should it take? Must support: »Heterogeneity LAN technologies »Scalability  ensure ability to grow to worldwide scale 24 host LAN 1... host LAN 2... router WAN

25 Getting to a Destination How do you get driving directions? Intersections  routers Roads  links/networks Roads change slowly 25

26 Forwarding Packets Table of virtual circuits »Connection routed through network to set up state »Packets forwarded using connection state Source routing »Packet carries path Table of global addresses (IP) »Routers keep next hop for destination »Packets carry destination address 26

27 Simplified Virtual Circuits Connection setup phase »Use other means to route setup request »Each router allocates flow ID on local link Each packet carries connection ID »Sent from source with 1 st hop connection ID Router processing »Lookup flow ID – simple table lookup »Replace flow ID with outgoing flow ID »Forward to output port 27

28 Simplified Virtual Circuits Example 28 Receiver Packet conn 5  3 Sender conn 5  conn 5  3 R2 R3 R1 5555

29 Virtual Circuits Advantages »Efficient lookup (simple table lookup) »Can reserve bandwidth at connection setup »Easier for hardware implementations Disadvantages »Still need to route connection setup request »More complex failure recovery – must recreate connection state Typical use  fast router implementations »ATM – combined with fix sized cells »MPLS – tag switching for IP networks 29

30 Source Routing List entire path in packet »Driving directions (north 3 hops, east, etc..) Router processing »Strip first step from packet »Examine next step in directions »Forward to next step 30

31 Source Routing Example 31 Receiver Packet R1, R2, R3, R Sender R2 R3 R1 R2, R3, R R3, RR

32 Source Routing Advantages »Switches can be very simple and fast Disadvantages »Variable (unbounded) header size »Sources must know or discover topology (e.g., failures) Typical uses »Ad-hoc networks (DSR) »Machine room networks (Myrinet) 32

33 Global Addresses (IP) Each packet has destination address Each router has forwarding table of destination  next hop »At v and x: destination  east »At w and y: destination  south »At z: destination  north Distributed routing algorithm for calculating forwarding tables 33

34 Global Address Example 34 Receiver Packet R Sender R2 R3 R1 RR R  3 R  4 R  3 R

35 Global Addresses Advantages »Stateless – simple error recovery Disadvantages »Every switch knows about every destination –Potentially large tables »All packets to destination take same route »Need routing protocol to fill table 35

36 Comparison 36 Source RoutingGlobal Addresses Header SizeWorstOK – Large address Router Table SizeNone Number of hosts (prefixes) Forward OverheadBest Prefix matching (Worst) Virtual Circuits Best Number of circuits Pretty Good Setup OverheadNone Error RecoveryTell all hostsTell all routers Connection Setup Tell all routers and Tear down circuit and re-route