5: Link Layer and Local Area Networks5c-1 Hubs, Bridges, and Switches r Used for extending LANs in terms of geographical coverage, number of nodes, administration.

Slides:



Advertisements
Similar presentations
Communication Networks Recitation 3 Bridges & Spanning trees.
Advertisements

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.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
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:
Comp 361, Spring 20056:Basic Wireless 1 Chapter 6: Basic Wireless (last updated 02/05/05) r A quick intro to CDMA r Basic
1 Data Link Layer Ethernet Bridges Token Ring. 2 Summary of MAC protocols What do you do with a shared media? Channel Partitioning: time, frequency or.
Hubs, Bridges and Switches
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.
Lecture 3#1#1 Chapter 3 Hubs, Bridges and Switches.
VLANs Port-based VLAN: switch ports grouped (by switch management software) so that single physical switch …… Switch(es) supporting VLAN capabilities can.
Lecture 3#1#1 Hubs, Bridges and Switches Lecture 3.
5: DataLink Layer – Ethernet, Hubs and Switches.
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
1 Introduction to Wireless Networks Michalis Faloutsos.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
5: DataLink Layer5a-1 Summary of MAC protocols r What do you do with a shared media? m Channel Partitioning, by time, frequency or code Time Division,Code.
Lecture 3#1#1 LAN Technologies Completing Lecture 2.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Chapter 5: The Data Link.
11/18/ /20/2003 Ethernet, Hubs/Bridges/Switches, Wireless November 19-20, 2003.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r LAN addresses and ARP r Ethernet Some slides are in courtesy of J.
5-1 Data Link Layer r What is Data Link Layer? r Wireless Networks m Wi-Fi (Wireless LAN) r Comparison with Ethernet.
1 ECE453 – Introduction to Computer Networks Lecture 8 – Multiple Access Control (II)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Point to Point protocol (PPP) Point to point, wired data link easier to manage than broadcast link: no Media Access Control Several Data Link Protocols:
Connecting LANs, Backbone Networks, and Virtual LANs
6: Wireless and Mobile Networks6-1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may.
Chapter 5 outline 5.1 Introduction and services
Hubs, Bridges, and Switches (oh my) r Used for extending LANs in terms of geographical coverage, number of nodes, administration capabilities, etc. r Differ.
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
1 Network Equipment Technologies Network Equipment Technologies.
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
Computer Networking Bridges/Switches, , PPP.
Chapter 5: The Data Link Layer
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Last time: r multiple access protocols and LANs r link layer addressing, ARP r specific link layer.
Link Layer: MAC Ilam University Dr. Mozafar Bag-Mohammadi.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
5: DataLink Layer 5a-1 18: Ethernet, Hubs, Bridges, Switches Last Modified: 10/27/2015 1:29:46 PM.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
5: DataLink Layer5c-1 Today r Assign Homework m Ch5 #1,4,5,7,11,12 Due Wednesday October 22 m Ch5 #13-16,18,20 Due Monday, October 27 r Project #2 due.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
Link Layer MAC Dr. Mozafar Bag-Mohammadi University of Ilam.
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
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.
CCNA3 Module 4 Brierley Module 4. CCNA3 Module 4 Brierley Topics LAN congestion and its effect on network performance Advantages of LAN segmentation in.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
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.
Lecture 3#1#1 Hubs, Bridges and Switches Lecture 3.
Lecture 3 #1#1 Hubs, Bridges and Switches Lecture 3.
Computer Communication Networks
Chapter 3 Part 1 Switching and Bridging
Link Layer 5.1 Introduction and services
Computer Communication Networks
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
Chapter 3 Part 1 Switching and Bridging
Point to Point Data Link Control
Hubs Hubs are essentially physical-layer repeaters:
Computer Communication & Networks
IEEE Wireless LAN wireless LANs: untethered (often mobile) networking
EEC-484/584 Computer Networks
Communication Networks NETW 501
CS4470 Computer Networking Protocols
Dr. Mozafar Bag-Mohammadi University of Ilam
EEC-484/584 Computer Networks
18: Ethernet, Hubs, Bridges, Switches
ECSE-4730: Computer Communication Networks (CCN)
Hubs, Bridges and Switches
Presentation transcript:

5: Link Layer and Local Area Networks5c-1 Hubs, Bridges, and Switches r Used for extending LANs in terms of geographical coverage, number of nodes, administration capabilities, etc. r Differ in regards to: m collision domain isolation m layer at which they operate r Different than routers m plug and play m don’t provide optimal routing of IP packets r Layer 2 and below components

5: Link Layer and Local Area Networks5c-2 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces r Hubs can be arranged in a hierarchy (or multi-tier design), with a backbone hub at its top

5: Link Layer and Local Area Networks5c-3 Hubs (more) r Each connected LAN is referred to as a LAN segment r Hubs do not isolate collision domains: a node may collide with any node residing at any segment in the LAN r Hub Advantages: m Simple, inexpensive device m Multi-tier provides graceful degradation: portions of the LAN continue to operate if one of the hubs malfunction m Extends maximum distance between node pairs (100m per Hub)

5: Link Layer and Local Area Networks5c-4 Hubs (more) r Hub Limitations: m Single collision domain results in no increase in max throughput; the multi-tier throughput same as the the single segment throughput m Individual LAN restrictions pose limits on the number of nodes in the same collision domain (thus, per Hub); and on the total allowed geographical coverage m Cannot connect different Ethernet types (e.g., 10BaseT and 100baseT)

5: Link Layer and Local Area Networks5c-5 Bridges r Link Layer devices: they operate on Ethernet frames (i.e. layer 2 devices), examining the frame header and selectively forwarding a frame base on its destination r Bridge isolates collision domains since it buffers frames r When a frame is to be forwarded on a segment, the bridge uses CSMA/CD to access the segment and transmit

5: Link Layer and Local Area Networks5c-6 Bridges (more) r Bridge advantages: m Isolates collision domains resulting in higher total max throughput, and does not limit the number of nodes nor geographical coverage m Can connect different types of Ethernet since it is a store and forward device m Transparent: no need for any change to hosts LAN adapters

5: Link Layer and Local Area Networks5c-7 Backbone Bridge

5: Link Layer and Local Area Networks5c-8 Interconnection Without Backbone r Not recommended for two reasons: - Single point of failure at Computer Science hub - All traffic between EE and SE must path over CS segment

5: Link Layer and Local Area Networks5c-9 Bridge Filtering r Bridges learn which hosts can be reached through which interfaces and maintain filtering tables r A filtering table entry: (Node LAN Address, Bridge Interface, Time Stamp) r Filtering procedure: if destination is on LAN on which frame was received then drop the frame else { lookup filtering table if entry found for destination then forward the frame on interface indicated; else flood; /* forward on all but the interface on which the frame arrived*/ }

5: Link Layer and Local Area Networks5c-10 Bridge Learning r When a frame is received, the bridge “learns” from the source address and updates its filtering table (Node LAN Address, Bridge Interface, Time Stamp) r Stale entries in the Filtering Table are dropped (TTL can be 60 minutes)

5: Link Layer and Local Area Networks5c-11 Bridges Spanning Tree r For increased reliability, it is desirable to have redundant, alternate paths from a source to a destination r With multiple simultaneous paths however, cycles result on which bridges may multiply and forward a frame forever r Solution is organizing the set of bridges in a spanning tree by disabling a subset of the interfaces in the bridges: Bridges talk to each other! Disabled

5: Link Layer and Local Area Networks5c-12 Bridges versus Routers r Both are store-and-forward devices, but Routers are Network Layer devices (examine network layer headers) and Bridges are Link Layer devices r Routers maintain routing tables and implement routing algorithms; bridges maintain filtering tables and implement filtering, learning and spanning tree algorithms

5: Link Layer and Local Area Networks5c-13 Routers versus Bridges r Bridges + and – + Bridge operation is simpler requiring less processing bandwidth (plug and play) - Topologies are restricted with bridges: a spanning tree must be built to avoid cycles - Bridges do not offer protection from broadcast storms (endless broadcasting by a host will be forwarded by a bridge)

5: Link Layer and Local Area Networks5c-14 Routers versus Bridges r Routers + and - + Arbitrary topologies can be supported, cycling is limited by TTL counters (and good routing prots) + Provide firewall protection against broadcast storms - Require IP address configuration (not plug and play) - Require higher processing bandwidth r Bridges do well in small (few hundred hosts) while routers are required in large networks (thousands of hosts)

5: Link Layer and Local Area Networks5c-15 Ethernet Switches r A new device came in 1990s r A switch is a device that incorporates bridge functions as well as point-to-point “dedicated connections” r A host attached to a switch via a dedicated point- to-point connection; will always sense the medium as idle; no collisions ever! r Ethernet Switches provide a combinations of shared/dedicated, 10/100/1000 Mbps connections

5: Link Layer and Local Area Networks5c-16 Ethernet Switches (more) r Some Ethernet switches support cut-through switching: frame forwarded immediately to destination without awaiting for assembly of the entire frame in the switch buffer; slight reduction in latency (rather than store-and-forward packet switching) r The cut-through switching will differ from store-and- forward switching only when the output buffer is empty r When output buffer is empty, there is no need to get the whole packet before sending it out in cut-through switching r Ethernet switches vary in size, with the largest ones incorporating a high bandwidth interconnection network

5: Link Layer and Local Area Networks5c-17 Ethernet Switches (more) Dedicated Shared

5: Link Layer and Local Area Networks5c-18 IEEE Wireless LAN r Wireless LANs are becoming popular for mobile Internet access r Applications: nomadic Internet access, portable computing, ad hoc networking (multihopping) r IEEE standards defines MAC protocol; unlicensed frequency spectrum bands: 900Mhz, 2.4Ghz r Basic Service Sets + Access Points  Distribution System r Like a bridged LAN (flat MAC address)

5: Link Layer and Local Area Networks5c-19 Ad Hoc Networks r IEEE stations can dynamically form a group without AP r Ad Hoc Network: no pre-existing infrastructure r Applications: “laptop” meeting in conference room, car, airport; interconnection of “personal” devices (see bluetooth.com); battelfield; pervasive computing (smart spaces) r IETF MANET (Mobile Ad hoc Networks) working group

5: Link Layer and Local Area Networks5c-20 IEEE MAC Protocol CSMA Protocol: - sense channel idle for DISF sec (Distributed Inter Frame Space) - transmit frame (no Collision Detection) - receiver returns ACK after SIFS (Short Inter Frame Space) -if channel sensed busy then binary backoff NAV: Network Allocation Vector (min time of deferral)

5: Link Layer and Local Area Networks5c-21 Hidden Terminal Effect r CSMA inefficient in presence of hidden terminals r Hidden terminals: A and B cannot hear each other because of obstacles or signal attenuation; so, their packets collide at B r Solution? CSMA/CA r CA = Collision Avoidance

5: Link Layer and Local Area Networks5c-22 Collision Avoidance: RTS-CTS exchange CTS “freezes” stations within range of receiver (but possibly hidden from transmitter); this prevents collisions by hidden station during data RTS and CTS are very short: collisions during data phase are thus very unlikely (the end result is similar to Collision Detection) Note: IEEE allows CSMA, CSMA/CA and “polling” from AP CTS: clear to send RTS: request to send

5: Link Layer and Local Area Networks5c-23 Point to Point Protocol (PPP) r Point to point, wired data link easier to manage than broadcast link: no Media Access Control r Several Data Link Protocols: PPP, HDLC, SDLC, Alternating Bit protocol, etc r PPP (Point to Point Protocol) is very popular: used in dial up connection between residential Host and ISP; on SONET/SDH connections, etc r PPP is extremely simple (the simplest in the Data Link protocol family) and very streamlined

5: Link Layer and Local Area Networks5c-24 PPP Requirements r Packet framing: encapsulation of IP packets r bit transparency: must carry any bit pattern in the data field of the network protocol r error detection (no correction) r multiple network layer protocols r connection liveness (detection of link failure) r Network Layer Address negotiation: Hosts/nodes across the link must learn/configure each other’s network address (e.g. IP address)

5: Link Layer and Local Area Networks5c-25 Not Provided by PPP r error correction/recovery r flow control r sequencing r multipoint links (e.g., polling)

5: Link Layer and Local Area Networks5c-26 PPP Data Frame r Flag: delimiter (framing) r Address: does nothing (only one option) r Control: does nothing; in the future possible multiple control fields r Protocol: upper layer to which frame must be delivered (e.g., PPP-LCP, IP, IPCP, etc)

5: Link Layer and Local Area Networks5c-27 Byte Stuffing r For “data transparency”, the data field must be allowed to include the pattern ; ie, this must not be interpreted as a flag r to alert the receiver, the transmitter “stuffs” an extra byte after each data byte r the receiver discards each followed by another , and continues data reception

5: Link Layer and Local Area Networks5c-28 PPP Data Control Protocol r PPP-LCP establishes/releases the PPP connection; negotiates options r Starts in DEAD state r Options: max frame length; authentication protocol r Once PPP link established, IPCP (Control Protocol) moves in (on top of PPP) to configure IP network addresses etc.