Layer 2 functionality – bridging and switching BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.

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

Topic 7 Local Area Networks (LAN)
Chabot College Chapter 2 Review Questions Semester IIIELEC Semester III ELEC
Lab Practical 2 Study about different types of Networking Device
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.
Chapter 8: Local Area Networks: Internetworking. 2 Objectives List the reasons for interconnecting multiple local area network segments and interconnecting.
1 I.S Introduction to Telecommunication in Business Chapter 6 Network Hardware Components Dr. Jan Clark FALL, 2002.
1 Fall 2005 Extending LANs Qutaibah Malluhi CSE Department Qatar University Repeaters, Hubs, Bridges, Fiber Modems, and Switches.
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
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.
CSCI 4550/8556 Computer Networks Comer, Chapter 11: Extending LANs: Fiber Modems, Repeaters, Bridges and Switches.
Internetworking School of Business Eastern Illinois University © Abdou Illia, Spring 2007 (Week 4, Tuesday 1/30/2007)
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
1 Chapter 8 Local Area Networks - Internetworking.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
1 Chapter 8 Local Area Networks - Internetworking Data Communications and Computer Networks: A Business User’s Approach.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
COMPUTER NETWORKS.
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
Network Hardware for Expanding Network. Expanding Networks When do we need expansion:  Network cable is full of data movements  Printing tasks needs.
Chapter 11 Extending LANs: Fiber Modems, Repeaters, Bridges, & Switches Hub Bridge Switch.
1. 2 Overview Shared Ethernet works extremely well under ideal conditions. When the number of devices trying to access the network is low, the number.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
Semester 1 Module 8 Ethernet Switching Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 4: Managing LAN Traffic
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
Common Devices Used In Computer Networks
Brierley 1 Module 4 Module 4 Introduction to LAN Switching.
Connectivity Devices Hakim S. ADICHE, MSc
Repeaters and Hubs Repeaters: simplest type of connectivity devices that regenerate a digital signal Operate in Physical layer Cannot improve or correct.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
Mr. Mark Welton.  A computer network, or simply a network, is a collection of computers and other hardware interconnected by communication channels.
Chapter 6 – Connectivity Devices
Module 8: Ethernet Switching
Chapter Overview Bridging Switching Routing.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
LAN Devices  Purposes: Dividing the network into subnets Dividing the network into subnets Joining two networks together Joining two networks together.
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.
Cisco 3 - Switching Perrine. J Page 16/4/2016 Chapter 4 Switches The performance of shared-medium Ethernet is affected by several factors: data frame broadcast.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
1 Chapter 8 Local Area Networks - Internetworking.
STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.
NET 324 D Networks and Communication Department Lec1 : Network Devices.
Computer Networks. Internetworking Devices Network Interface Card (NIC) Repeaters HUB Bridge Switch Router.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Chapter 11 Extending LANs 1. Distance limitations of LANs 2. Connecting multiple LANs together 3. Repeaters 4. Bridges 5. Filtering frame 6. Bridged network.
CCNA Guide to Cisco Networking Chapter 2: Network Devices.
Star Topology Star Networks are one of the most common network topologies. consists of one central switch, hub or computer, which acts as a conduit to.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs.
Data Communications & Computer Networks, Second Edition1 Chapter 8 Local Area Networks: Internetworking.
Networks Network Components. Learning Objectives Describe different media for transmitting data and their carrying capabilities. Explain the different.
Extending LANs using Repeaters, Bridges, and Switches.
Internetworking School of Business Eastern Illinois University © Abdou Illia, Spring 2016 (February 3, 2016)
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
Computer Communication and Networking Lecture # 4 by Zainab Malik 1.
+ Lecture#2: Ethernet Asma ALOsaimi. + Objectives In this chapter, you will learn to: Describe the operation of the Ethernet sublayers. Identify the major.
CHAPTER -II NETWORKING COMPONENTS CPIS 371 Computer Network 1 (Updated on 3/11/2013)
Lec # 25 Computer Network Muhammad Waseem Iqbal. Learn about the Internetworking Devices – Repeaters – Hubs – Switches – Bridges – Routers.
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Introduction to Networks v6.0
Network Hardware for Expanding Network
Networking Devices.
Chapter 3 Computer Networking Hardware
Chapter 4 Data Link Layer Switching
Connecting Networks Repeater: physical layer Bridge: data link layer
Data Link Issues Relates to Lab 2.
CS4470 Computer Networking Protocols
Connectors, Repeaters, Hubs, Bridges, Switches, Routers, NIC’s
Presentation transcript:

Layer 2 functionality – bridging and switching BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013

Overview Layer 2 functionality Error detection Bridges Broadcast and collision domains How bridges work Types of bridges Switches Types of switches Buffering

Layer 2 functionality Layer 1 functionality simply addresses the transmission of modulated signals over the media Layer 2 functionality begins to incorporate aspects of network management Recognition of frame formats MAC addressing Some error checking

Layer 2 functionality Recall from Lecture 2 on the OSI model NIC is both logical and physical boundary between layers 1 and 2 Converts bits to frames and vice versa Error detection in bit to frame conversion Error detection in media access (NIC converting bits to frames) defined at layer 2

Layer 2 Errors Interference can cause: Random data to appear Transmitted data to be lost or to be corrupted in some manner Digital and analog transmission is susceptible to interference Bits may be altered, lost, or the sequence of bits might be rearranged – this creates errors in the message

Layer 2 Errors There are three basic data link layer error detection technologies 1) Parity bits and parity checking 2) Checksum 3) Cyclic redundancy check (CRC)

Parity bits and parity checking Most basic error check Sending node adds a bit to each character (typically 7 bits / character in RS-232) Two types of parity 1) Even 2) Odd

Parity bits and parity checking Example: Using EVEN parity – the sender sets the parity bit to either 1 or 0 whichever makes the total number of 1 bits (including parity) even If character is , the parity bit is set to ____ Receiver checks the parity

Checksum The sender treats data as sequence of binary integers and computes the sum Receiver checks the sum Data in BinaryChecksum Value Total9

Cyclic redundancy check (CRC) We’ll say this is the most complex layer 2 error checking technique Software algorithm to determine whether or not data were received correctly Simple to implement, easy to analyze, and effective in detecting common errors Does not verify integrity of sender, just correctness eckhttp://en.wikipedia.org/wiki/Cyclic_redundancy_ch eck

Higher Layer Switches We are discussing layer 2 functionality using specific hardware examples Distinctions between modern network hardware blurring Modern networking devices don’t work neatly and exclusively at single layer of OSI Higher layer switches also work at layers 3 (network) and 4 (transport) of OSI Perform advanced filtering, performance analysis, and security

Bridging Technique used to connect networks at data link layer Hubs connect networks at ______________ Adding another hub is analogous to adding more ports to an existing hub or extending a bus topology network All packets forwarded to all devices on network No management capabilities

Bridging A bridge is a physical device Computer with two NICs Special device with two ports

Bridging Incorporates concept of basic management via frame filtering If LAN segment is congested Break LAN into 2 segments and bridge them together

Frame/Packet filtering Layer 2 devices read MAC source and destination address of all frames Can’t go any higher in OSI Can’t read or interpret data in payload Bridge discards frame and does not forward if receiver is located on same segment as sender Bridge copies frame and forwards it to the appropriate segment if receiver is on separate segment

Bridges and concept of collision domain Collision Domain Add hub to LAN Add device to port on existing hub Separate segments of a bridged LAN form two separate collision domains Improve performance by reducing collisions

Bridges and concept of broadcast domain Broadcast Domain Unicast Multicast

Bridges and concept of broadcast domain Standard way to locate device Broadcast message asking for IP address

Bridges and concept of broadcast domain Bridges do NOT create separate broadcast domains Bridge relays broadcasts to both segments of bridged LAN Important conceptual idea: A shared broadcast domain is needed for devices to remain part of same LAN or subnet

Adaptive / Transparent Bridging Learn locations of computers on different segments Store information in a table that might contain: MAC address, NetBIOS name, segment ID Starts with no information in the table Create table of devices on each segment

Adaptive / Transparent Bridging Bridge performs 2 calculations when frame arrives 1) Examine source / destination MAC address and add source address to list 2) Forward frame if needed

How a bridge works

Bridges learn computer locations quickly Computers tend to be fairly active The longer the bridge is run without rebooting, the more efficient the operation Permits simultaneous use of each segment Can optimize performance (parallelism)

How a bridge works To improve performance computers that communicate often should be located on same segment Why? (think about locality of reference…)

Spanning Tree Algorithm (STA) STAs are frame forwarding decision algorithms If a cycle of bridges/switches is present, broadcast will cycle infinitely (infinite loop) STA prevents infinite loops Protocol selects single forwarding path on LAN Detect circular patterns and modify way devices work together Routers DO NOT forward broadcasts

Discuss 3 bridging functions 1) Local Bridge 2) Translation Bridge 3) Remote Bridge

Local Bridge Standard device used to connect network segments of the same type ( use the same data link protocols or LAN technology ) For example, Ethernet Very simple Does not modify data in headers, just reads the MAC address and either passes the frame on or discards it

Translation Bridge Device used to connect network segments of different types ( use different data link protocols or LAN technology ) For example, Ethernet to token ring More complicated Strips frame from packets received from one type LAN segment and repackages them in frame suitable for other LAN segment Recall frame formats are different depending on the underlying data link protocols (LAN technologies used)

Translation Bridge Ethernet Frame AB CDEFG A = Preamble (7 B) B = Start of Frame Delimiter (1 B) C = Destination Address (6 B) D = Source Address (6 B) E = Ethertype / length (2 B) F = Data and Pad (46 – 1500 B) G = Frame Check (4 B) AB CDEF G HI A = Preamble (8 B) B = Start Delimiter (1 B) C = Frame Control (1 B) D = Destination Address (6 B) E = Source Address (6 B) F = Data (variable) G = Frame Check (4 B) H = End Delimiter (4 b) I = End of Frame Sequence (12 b) FDDI Frame

Remote Bridge Device used to connect network segments at distant locations using some type of WAN link For example, connect two remote Ethernet segments using a leased telephone line Could function as either local or translation bridge, but main purpose is to limit traffic on WAN link

Switching Data link functionality fundamental to LANs A switch generally replaces a bridge in modern switched Ethernet networking Allow multiple users to exchange information simultaneously without slowing each other down Promotes parallelism

Switching Allow different nodes to communicate directly with each other Physically resembles a hub Important conceptual issue: Hub simulates shared media with bus topology functionality Switch simulates a bridged LAN with one computer per segment

Switching Forward data out a single port Recall how this is different from a hub Physical star topology can support: Logical star Logical bus Logical ring Functionally, these logical topologies are quite different!

Switching

Functionally converts a shared network medium to a dedicated network medium Creates a separate collision domain for two devices communicating along a dedicated path Forward broadcasts to all ports Do NOT forward multicast or unicast to all ports No device on the switched network receives packets that are addressed to other devices

Legacy Ethernet (Hub example) Physical Star / Logical Bus Before switching, Ethernet supported only half duplex transmission Hub forwards electrical signals on all ports, so only one node can use the media at a time – each node communicates directly with all other nodes on the network. The hub is just a conduit or connection point that links the nodes together (functionally a bus). Node 4 sends a message destined for Node 3, the hub forwards the packets out all ports, effectively tying up the media and preventing simultaneous (full duplex) communication Node 3 will receive the frames, read the MAC address and “accept” the message All other nodes will also receive the frames, but will read the MAC address and discard the message – as the MAC address is associated with Node 3 N 1 N 4N 5N 6 N 3N 2 Hub

Switched Ethernet (Switch example) Physical Star / Logical Star With switching, Ethernet supports full duplex transmission Each node communicates directly with the switch, as opposed to directly with the other nodes on the LAN. Information travels from node to switch and from switch to node simultaneously. Node 4 sends a message destined for Node 3 to the switch. At the same time, Node 2 can send message destined for Node 3 to the switch. The switch will only forward the message out the port connected directly to Node 3. Node 3 could be communicating with other nodes at the same time Switches provide a collision free environment. Each node has a dedicated connection to itself N 1 N 4N 5N 6 N 3N 2 Switch

Simplified switch example How it works The switch contains a lookup table that maps the MAC address to a specific output port Ports 4, 5, 6 MAC addressOutgoing Port E3-21-OK-8P-00-0CPort 1 F4-34-IJ-8L-00-0CPort 2 The switch “knows” A6-43-IK-0P (Node 4) is attached to Port 4. If Node 4 is sending a message to E3-21-OK-8P-00-0C (Node 1), the switch knows the message must be sent out Port 1 N 1 N 4N 5N 6 N 3N 2 Switch Ports 1, 2, 3 E3-21-OK-8P-00-0C Port 1 Port 2 A6-43-IK-0P Port 4

Switching If a new node is added to a switch, how does the switch add the new MAC address to its lookup table?

Switching Another advantage of switches is that each device / node attached to a switch has dedicated full bandwidth of the LAN Example

Switching on Enterprise networks What are the implications associated with replacing the backbone switch with a backbone router with respect to the broadcast domain? How would you describe the backbone design you see in this figure?

Switch functionality 1) Cut Through 2) Store and forward

Cut Through Switches Forwards frame immediately by reading MAC destination address in frame header No additional processing (no error checking) – forwards packets out appropriate destination port w/o delay Doesn’t wait for entire message stream to arrive before forwarding Relatively inexpensive

Store and Forward Switches Waits for entire message stream to arrive before forwarding to destination While in memory, switch performs basic layer 2 error checking on frames Requires buffering to store frames Can be shared memory buffer ( shared by all ports on switch ) Can be bus architecture memory ( individual memory buffers for each port )

Buffer Say our bridge buffer holds six frames LAN link 100Mbps: Incoming frames Satellite or leased link 1.5 Mbps: outgoing frames 3 frames are currently buffered Buffer is full, additional frames are dropped and must eventually be resent Frames arrive, but buffer is full

Summary Layer 2 functionality Error detection Bridging Broadcast and collision domains How bridges work Types of bridges Switching Types of switches Buffering