Bridges, LANs and the Cisco IOS

Slides:



Advertisements
Similar presentations
Network Layer Delivery Forwarding and Routing
Advertisements

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.
Virtual Trunk Protocol
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Fall 2008.
1 Hyades Command Routing Message flow and data translation.
Chapter 1: Introduction to Scaling Networks
Local Area Networks - Internetworking
PP Test Review Sections 6-1 to 6-6
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 The OSI Model and the TCP/IP.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts –
Chapter 20 Network Layer: Internet Protocol
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 10 Routing Fundamentals and Subnets.
1 12/18/ :21 Chapter 12Bridges1 Rivier College CS575: Advanced LANs Chapter 12: Bridges.
Essential Cell Biology
Connecting LANs, Backbone Networks, and Virtual LANs
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
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.
Part 2: Preventing Loops in the Network
Connecting LANs: Section Figure 15.1 Five categories of connecting devices.
CS 4700 / CS 5700 Network Fundamentals Lecture 7: Bridging (From Hub to Switch by Way of Tree) Revised 1/14/13.
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:
Internetworking Different networks –Different bit rates –Frame lengths –Protocols.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
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.
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)
1 Computer Networks LAN Bridges and Switches. 2 Where are we?
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Connecting LANs, Backbone Networks, and Virtual LANs
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
LAN Overview (part 2) CSE 3213 Fall April 2017.
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
1 LAN switching and Bridges. 2 Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent bridges.
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Ethernet (LAN switching)
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs.
M. Veeraraghavan (originals by J. Liebeherr) 1 Need for Routing in Ethernet switched networks What do bridges do if some LANs are reachable only in multiple.
M. Veeraraghavan (originals by J. Liebeherr) 1 Internetworking Bridges Routing with Bridges * * Reading material is EL 536 textbook (sections 14.1 and.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Ethernet switches and IP routers
Bridging.
Chapter 3 Part 1 Switching and Bridging
LAN switching and Bridges
LAN switching and Bridges
Chapter 6 The Link Layer and LANs
LAN switching and Bridges
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
LAN switching and Bridges
Presentation transcript:

Bridges, LANs and the Cisco IOS Chapter 3 Bridges, LANs and the Cisco IOS

Devices for Interconnecting Networks Ethernet Ethernet Ethernet Repeater Router Bridge Token- X.25 ring Network Gateway

Repeaters Used to interconnect multiple Ethernet segments Merely extends the baseband cable Amplifies all signals including collisions Repeater

Bridges Interconnect multiple LANs, possibly of different types Bridges operate at the Data Link Layer (Layer 2) Require routing if paths are not unique

Routers Routers operate at the Network Layer (Layer 3) Interconnect different subnetworks

Gateways The term “Gateway” is used with different meanings in different contexts “Gateway” is a generic term for routers (Level 3) “Gateway” is also used for a device that interconnects different Layer 3 networks and which performs translation of protocols (“Multi-protocol router”) SNA: System Network Architecture

Bridges Interconnect multiple LANs. Pass frames to a different LAN if the destination is not on the local LAN. A single bridge may connect to more than two LANs LAN 1 Bridge LAN 2

Why Bridges ? Bridges allow to have multiple small LANs instead of one single LAN, which increases reliability throughput security geography Transparent bridges are not seen by hosts. A frame is simply copied to the destination network. No change in the header and data section.

Bridge Function – an Example Frames to Host1 to Host 10 are accepted and repeated on LAN A Frames to Host11 to Host 20 are accepted and repeated on LAN B ... LAN A LAN B Host1 Host2 Host10 Host11 Host12 Host20 Bridge

Filtering Database of a Bridge MAC addresses of the hosts are stored in a filtering database in the bridge. Elements of each entry of the filtering database The destination MAC address The bridge port where frames for this destination MAC address should be forwarded to The age of this entry The filtering database could be set statically. In an IEEE 802.1d bridge, the filtering database is maintained automatically by an address learning process.

Address Learning Process When a frame is received, its source MAC address and the incoming port are updated in the bridge’s filtering database. The default age of a new entry is 300 sec.

Address Learning – an Example Consider the following packets: <Src=A, Dest=F>, <Src=C, Dest=A>, <Src=E, Dest=C> What have the bridges learned?

Bridge Operations A bridge makes forwarding decisions by filtering database lookups. If an entry is found, the bridge forwards the frame to the network segment indicated by the entry. Otherwise, flooding is used. The frame is copied to all active ports except the incoming port.

Forwarding conditions Forward a MAC frame if and only if The receiving port is in a forwarding state The transmitting port is in a forwarding state Either the filtering database indicates the port number for the destination MAC address or no such entry is present (in which case all ports are eligible transmission ports) Do not transmit on port on which frame was received The maximum service data unit size supported by the LAN to which the transmitting port is connected is not exceeded.

Need for Routing when some LANs are reachable only in multiple hops When the path between two LANs is not unique

Routing with Bridges Three principal approaches can be found: Fixed Routing Source Routing Spanning Tree Routing (transparent bridges) Fixed routing is used in many commercial products. The other two are standardized by IEEE 802: Source routing is standardized by the token ring (802.5) committee. Spanning tree is standardized by the 802.1 committee. We only discuss the spanning tree routing in detail.

Danger of Loops Address learning and forwarding scheme may cause serious problems when there is a loop. Assume host 1 sends a frame to host x (not shown). There is no entry in Bridge 1 and Bridge 2’s filtering database. Bridges 1 and 2 both receive the frame on LAN B, and learn that host 1 is on LAN B, correctly add the entry for Host 1 in their filtering database, and Forward the frame to LAN A using flooding since there is no entry for host x. Then, each bridge will receive the same frame forwarded by the other bridge, and will incorrectly change the filtering database entry to indicate that host 1 is on LAN A. This process will repeat indefinitely, which leads to a broadcast storm.

Spanning Trees The solution to the loop problem is to remove loops. IEEE 802.1 has an algorithm that builds and maintains a spanning tree in a dynamic environment. Bridges exchange messages, Configuration Bridge Protocol Data Unit (Configuration BPDUs), to configure the bridge and build the tree. Modified by M. Veeraraghavan and S. Mao (original by J. Liebeherr)

Bridge ID Each bridge has a unique identifier (8 bytes): Bridge ID = <priority level + MAC address> Priority level = 2 bytes A bridge has several MAC addresses (one for each port), but only one ID using the MAC address of the lowest numbered bridge port (port 1) Each port within a bridge has a unique identifier (port ID). 0:0:1:2:3:5 51:24:68:1f:3:4 Bridge 2 3 1 Priority: 0x12:41 fe:64:96:12:1:3 Bridge ID = 12:41:fe:64:96:12:1:3

Root bridge of a network Root Bridge: The bridge with the lowest identifier is the root of the spanning tree. Bridge 3 with ID 0:1:34:1:21:56:19:87 1 LAN A Bridge 2 with ID 6:4:55:4:21:56:19:87 1 LAN B 2 1 Bridge 1 with ID 4:1:21:1:21:56:19:87 Root bridge is bridge 3, since it has the smallest ID.

For each bridge Root Port: Each bridge has a root port which identifies the next hop from a bridge to the root. Root Path Cost: the cost of the min-cost path to the root. Example on previous slide, for bridge 1: The root port is port 2 since it leads to the root bridge (bridge 3) The root path cost is 1 since bridge 1 is one hop away from the root bridge (I.e., bridge 3). Note: We assume that “cost” of a path is the number of “hops”. This “cost” can be set to different values when designing the network.

For each LAN Designated Bridge, Designated Port: Single bridge on a LAN that provides the minimal cost path to the root for this LAN, and the port on this minimal cost path. If two bridges have the same cost, select the one with highest priority (lower bridge ID) If the min-cost bridge has two or more ports on the LAN, select the port with the lowest identifier Example on slide 20: For LAN A, the designated bridge is bridge 3 since it is the root bridge itself; the designated port is port 1. For LAN B, the designated bridge is bridge 1 since this is closer to the root bridge than bridge 2. The designated port is port 1.

Designated bridge/port Even though each LAN is the entity that has a designated bridge/designated port, it is each bridge that determines whether or not it is the designated bridge for the LAN on each of its ports, because a LAN is a group of hosts, there is no centralized control over a LAN. Example: Bridge 1 in the example on slide 20 determines whether it is the designated bridge for LAN A (to which its port 2 is connected) and for LAN B (to which its port 1 is connected).

Spanning Tree Algorithm Step 1. Determine the root bridge of the whole network. Step 2. For all other bridges determine root ports. Step 3. For all bridges, determine which of the bridge ports are designated ports for their corresponding LANs. The spanning tree consists of all the root ports and the designated ports. These ports are all set to the “forwarding state,” while all other ports are in a “blocked state.”

Determine the Spanning Tree Bridges determines the spanning tree in a “distributed manner” by using BPDUs. Elect a single bridge as the root bridge. Each bridge can determine: a root port, the port that gives the best path to the root. And the corresponding root path cost Each bridge determines whether it is a designated bridge, for the LANs connected to each of its ports. The designated bridge will forward packets towards the root bridge. Select ports to be included in the spanning tree. Root ports and designated ports It takes a period of time for the network to converge.

Configuration BPDUs Set to 0 Set to 0 Set to 0 size in bytes Set to 0 Set to 0 2 protocol identifier Set to 0 1 version lsb is "topology change bit (TC bit)" 1 message type 1 flags ID of root 8 root ID Cost of the path from the bridge 4 Cost sending this message to the root 8 bridge ID 2 port ID ID of bridge sending this message message age port ID of the port on which this maximum age message is transmitted hello time Time between BPDUs from the root forward delay Max. age of this time since root sent a (default: 1sec) BPDU before it is message on Ignore this field discarded which this message is based

Short form notation for BPDUs Each bridge sends out BPDUs that contain the following information: root ID cost bridge ID/port ID root bridge (what the sender thinks it is) root path cost for sending bridge Identifies sending bridge Identifies port on which this BPDU is sent

Ordering of Messages We can order BPDU messages with the following ordering relation ““: If (R1 < R2) M1  M2 elseif ((R1 == R2) and (C1 < C2)) elseif ((R1 == R2) and (C1 == C2) and (B1 < B2)) M1  M2 ID R1 C1 ID B1 ID R2 C2 ID B2

Determine the Root Bridge Initially, each bridge assumes itself is the root bridge. Each bridge B sends BPDUs of this form on its LANs: Each bridge looks at the BPDUs received on all its ports and its own transmitted BPDUs. Root bridge is the smallest received root ID that has been received so far (Whenever a smaller ID arrives, the root is updated). B B

Calculate the Root Path Cost Determine the Root Port At this time: Bridge B has a belief of who the root is, say R. Bridge B determines the Root Path Cost (Cost) as follows: If B = R : Cost = 0. If B  R: Cost = {Smallest Cost in any of BPDUs that were received from R} + 1 B’s root port is the port from which B received the lowest cost path to R (in terms of relation ““). Knowing R and Cost, B can generate its BPDU (but will not necessarily send it out): R Cost B

If the bridge is the designated bridge for any of the LANs connected to its ports … B has generated its BPDU B will send this BPDU on one of its ports, say port x, only if its BPDU is lower (via relation ““) than any BPDU that B received from port x. In this case, B also assumes that it is the designated bridge for the LAN to which the port connects. R Cost B

Select Ports for the Spanning Tree Bridge B has calculated the root bridge for the network, its root port, root path cost, and whether it is the designated bridge for each of its LANs. Now B can decide which ports are in the spanning tree: B’s root port is part of the spanning tree All ports for which B is the designated bridge are part of the spanning tree. B’s ports that are in the spanning tree will forward packets (forwarding state) B’s ports that are not in the spanning tree will block packets (blocking state)

Build the Spanning Tree Consider the network on the right. Assume that the bridges have calculated the designated ports (D) and the root ports (R) as indicated. What is the spanning tree?

Adapt to Changes Bridges continually exchange BPDU’s according to the rules we just discussed. This allows the bridges to adapt to changes to the topology. Whenever a BPDU arrives on a port, say port x, bridge B determines: Can B become the designated bridge for the LAN that port x is attached to? Can port x become the root port?

Example 1 A Bridge with ID 18 The lowest messages received on its 4 ports are shown in the figure. Then What is the root? -- the bridge with ID12 What is the Root Path Cost? -- 85 +1 = 86 What is the root port? -- Port 2 What is 18’s configuration BPDU? -- 12.86.18 For which LAN (port), if any, is B the designated bridge? -- For Ports 1,3, 4 Bridge 18 Port 1 Port 2 Port 4 Port 3 12.93.51 12.85.47 15.31.27 81.0.81

Example 2 (Practice) A bridge with ID 3, the lowest messages received on its five ports are shown. What is the root? What is the Root Path Cost? What is the root port ? What is 3’s configuration BPDU? For which LAN (port), if any, is B the designated bridge ?

Example 2 (Solution) A bridge with ID 3, the lowest messages received on its five ports are shown. What is the root? Bridge 41 What is the Root Path Cost? 13 What is the root port ? Port 4 What is 3’s configuration BPDU? 41.13.3 For which LAN (port), if any, is B the designated bridge ? 1,2,5

Network Example The ID’s of the bridges are 1,2,3,4,5 and the port ID’s are as indicated in the figure. The bridges run the spanning tree algorithm. Assume that the root cost path is the number of hops. Assume an initial state. Show which messages are exchanged until the tree is built.

Interesting case 1 If two min-cost BPDUs received at a bridge on two different ports are equal in the root ID, root path cost and sending bridge ID, and the root ID is the smallest of the root Ids on all previously received BPDUs, then the designated ports for the LANs corresponding to the two ports on which the two BPDUs are received are compared. The smaller one of these (which will have the higher priority) will be chosen. The port on the bridge receiving these BPDUs which is on the LAN of this selected designated port is the root port of the bridge.

Example Bridge 2 receives two BPDUs [1,0,1] on both its ports 3 and 4 The designated port for LAN A is port 1 on bridge 1 The designated port for LAN B is port 2 on bridge 1 Since port 1 is lower than port 2, it has higher priority. Hence port 4 is the root port. LAN A Port 4 Port 1 Bridge 2 Bridge 1 Port 3 Port 2 LAN B

Interesting case 2 Furthermore, if even the designated ports of the LANs corresponding to the ports on which a bridge receives the same BPDUs are the same, then look at the port numbers on the bridge itself at which these BPDUs are received and select the lower one to be the root port.

Example Ports 4 and 2 of bridge 2 are on LAN A. They will both receive BPDU [1,0,1] from bridge 1. The designated port for LAN A is port 1 on bridge 1. So even the designated ports are the same. Hence choose between ports 2 and 4 by selecting the lower one, which is port 2 as the root port. LAN A Port 2 Port 4 Port 1 Bridge 2 Bridge 1 Port 3 Port 2 LAN B

Priority Two bridge identifiers when compared numerically, the lesser number shall denote the bridge of the higher priority. Is it possible for two bridges to have the same priority? Is it possible for two bridges to have the same bridge ID?

Configure a Bridge or Router Higher layer functions for the configuration and management tasks are needed. Cisco Internet Operating System (IOS) is the most widely deployed network system software.

Cisco IOS Delivers network services such as operations, administration, and maintenance of the network platforms and Internet applications. Supports a broad range of platforms and many networking protocol families. Enables network applications on the network platforms.

Cisco IOS Configuration Modes Cisco IOS provides different ways to configure and maintain a Cisco device. Cisco IOS command-line interface (CLI) is the primary user interface. There are six different configuration modes in CLI.