Local Area Network Lesson 7 NETS2150/2850.

Slides:



Advertisements
Similar presentations
William Stallings Data and Computer Communications 7th Edition
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.
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.
5: DataLink Layer5-1 Mac Addressing, Ethernet, and Interconnections.
CSCI 465 D ata Communications and Networks Lecture 20 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Data and Computer Communications Chapter 15 – Local Area Network Overview.
Chapter 9 Local Area Network Technology
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.
5: DataLink Layer5-1 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram to destination IP subnet r MAC (or LAN or.
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.
Data Communications and Networking
EE 4272Spring, 2003 Chapter 13. Local Area Network Technology LAN Applications LAN Architecture  Protocol Architecture  Topologies  MAC Bus LANs Ring.
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.
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.
1 K. Salah Module 4.3: Repeaters, Bridges, & Switches Repeater Hub NIC Bridges Switches VLANs GbE.
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
Semester 1 Module 8 Ethernet Switching Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Chapter 6 High-Speed LANs Chapter 6 High-Speed LANs.
LAN Overview (part 2) CSE 3213 Fall April 2017.
Sistem Jaringan dan Komunikasi Data #6. LAN Architecture  topologies  transmission medium  layout  medium access control.
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 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:
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
1 CISCO NETWORKING ACADEMY PROGRAM (CNAP) SEMESTER 1/ MODULE 8 Ethernet Switching.
5: DataLink Layer5-1 Ethernet “dominant” wired LAN technology: r cheap $20 for 100Mbs! r first widely used LAN technology r Simpler, cheaper than token.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
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.
CSCI 465 D ata Communications and Networks Lecture 19 Martin van Bommel CSCI 465 Data Communications & Networks 1.
10/14/2015 2:14 AM1 LAN Overview (5.1) CSE 3213 Fall 2011.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 15 – Local Area Network Overview.
Data and Computer Communications
Module 8: Ethernet Switching
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.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
Data and Computer Communications Ninth Edition by William Stallings Data and Computer Communications, Ninth Edition by William Stallings, (c) Pearson Education.
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.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
Cisco Network Devices Chapter 6 powered by DJ 1. Chapter Objectives At the end of this Chapter you will be able to:  Identify and explain various Cisco.
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.
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.
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.
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.
Data and Computer Communications Eighth Edition by William Stallings Chapter 15 – Local Area Network Overview.
Lec # 25 Computer Network Muhammad Waseem Iqbal. Learn about the Internetworking Devices – Repeaters – Hubs – Switches – Bridges – Routers.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
Chapter 3 Part 1 Switching and Bridging
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
Mac Addressing, Ethernet, and Interconnections
Hubs Hubs are essentially physical-layer repeaters:
Data Link Issues Relates to Lab 2.
William Stallings Data and Computer Communications 7th Edition
18: Ethernet, Hubs, Bridges, Switches
Chapter 5 Data Link Layer – Hub, Switch
Presentation transcript:

Local Area Network Lesson 7 NETS2150/2850

Lesson Outline Common LAN topologies Logical Link Control sublayer Medium Access Control sublayer ARP protocol for IP  MAC map LAN interconnection devices

Topologies LAN topology refers to the ways end systems are interconnected Common topologies: Tree Bus Special case of tree Ring Star

LAN Topologies

Bus and Tree Transmission propagates throughout medium Heard by all stations Need to identify target station Each station has unique address Full duplex connection between station and tap Allows for simultaneous transmission and reception Need to regulate transmission To avoid collisions To avoid hogging Data in small frames (fragmentation!) Terminator absorbs frames at end of medium Prevent from being reflected into the channel

Frame Transmission on Bus LAN

Ring Topology Repeaters joined by point to point links in closed loop Receive data on one link and retransmit on another Links unidirectional Stations attach to repeaters Data in frames Circulate past all stations Destination recognizes address and copies frame Frame circulates back to source where it is removed MAC protocol determines when station can insert frame

Frame Transmission Ring LAN

Star Topology Each station connected directly to central node Usually via two point to point links Central node can broadcast Only one station can transmit at a time Or central node can act as frame switch More stations can transmit at a time

IEEE 802 v OSI RM

802 Layers - Physical Encoding/decoding Preamble generation/removal 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used to synchronise receiver, sender clock rates Bit transmission/reception Transmission medium and topology

802 Layers - Logical Link Control Based on HDLC Provides interface to higher levels Transmission of LLC PDU between two stations Flow and error control Must support multiaccess, shared LAN media Link access handled by MAC layer

LLC Services Unacknowledged connectionless service No handshake and no ack (unreliable) Connection mode service Use handshake and ack Acknowledged connectionless service No handshake but uses ack

Media Access Control Assembly of data into frame with address and error detection fields Disassembly of frame Address recognition Error detection Govern access to transmission medium

MAC Frame Format MAC layer receives data from LLC layer and adds: MAC control Destination MAC address (6-octet or 48-bit) Source MAC address CRC MAC layer detects errors and discards frames MAC broadcast address: FF FF FF FF FF FF16 LLC optionally retransmits unsuccessful frames

IEEE 802.3 MAC Frame Format Addresses: 6 octets Length Addresses: 6 octets if adapter receives frame with matching destination address, or with broadcast address, it passes data in frame to net-layer protocol otherwise, adapter discards frame Length: length of data field in octets, max frame size is 1518 octets (excluding preamble & SFD) CRC: checked at receiver, if error is detected, the frame is simply dropped (32-bit CRC)

MAC protocols Assume single shared broadcast channel Two or more simultaneous transmissions by nodes will cause interference only one node can send successfully at a time MAC protocol: distributed algorithm that determines how nodes share channel, i.e., determine when node can transmit

MAC Protocols: A taxonomy Three broad classes: Channel Partitioning or Reservation divide channel into smaller “pieces” (time slots, frequency, code) allocate a piece to node for exclusive use Random Access or Contention channel not divided, thus can’t avoid collisions Need to “recover” from collisions “Taking turns” or Round Robin tightly coordinate shared access to avoid collisions

Address Resolution Protocol (ARP) Even if you have the IP address of your destination, you need its MAC to get your data across a physical network So, we need a way to do this mapping ARP performs dynamic mapping between IP and MAC Any resolved mapping is stored in a host’s ARP cache

ARP operation McGraw-Hill The McGraw-Hill Companies, Inc., 2004

An ARP request is broadcast; an ARP reply is unicast. Note: An ARP request is broadcast; an ARP reply is unicast. An ARP reply is only generated by the destined node.

ARP Packet Format McGraw-Hill The McGraw-Hill Companies, Inc., 2004

Encapsulation of ARP Packet Length McGraw-Hill The McGraw-Hill Companies, Inc., 2004

Interconnecting LAN segments Hubs Bridges Switches

Hubs Hub acts as a repeater (physical layer device) When single station transmits, hub repeats signal on outgoing line to each station Limited to about 100 m Optical fibre may be used Max about 500 m Physically star, logically bus Transmission from any station received by all other stations Forms a single collision domain Two stations transmit at the same time  collision!!

Interconnecting with hubs Backbone hub interconnects LAN segments Extends max distance between stations But individual segments’ collision domain become one large collision domain when a node in CS and a node in EE transmit at same time  collision!! Can’t interconnect 10BaseT & 100BaseT

Bridges Link layer device (layer-2 device) stores and forwards Ethernet frames examines frame header and selectively forwards frame based on MAC dest address transparent stations are unaware of presence of bridges plug-and-play, self-learning bridges do not need to be configured

Bridges: traffic isolation Bridge installation breaks LAN into LAN segments bridges filter packets: same-LAN-segment frames not usually forwarded onto other LAN segments segments become separate collision domains bridge collision domain = hub = station LAN segment LAN segment LAN

Forwarding How to determine to which LAN segment to forward frame? Looks like a routing problem...

Self learning A bridge has a bridge table entry in bridge table: (Station MAC Address, Bridge Interface, Timestamp) stale entries in table dropped (TTL can be ~ 60 min) bridges learn which hosts can be reached through which interfaces when frame received, bridge “learns” location of sender: incoming LAN segment records sender/location pair in bridge table

Bridge example Suppose C sends frame to D and D replies back with frame to C. Bridge receives frame from from C updates bridge table, C is on interface/port 1 because D is not in table, bridge sends frame into interfaces 2 and 3 frame received by D

Bridge Learning: example C 1 D generates frame for C, and sends it bridge receives frame notes in bridge table that D is on interface 2 bridge knows C is on interface 1, so selectively forwards frame to interface 1

Interconnection without backbone Not recommended for two reasons: - single point of failure at Computer Science hub - all traffic between EE and SE must path over CS segment

Backbone configuration Recommended ! Note: A bridge does not change the physical (MAC) addresses in a frame.

Loop of Bridges

Spanning Tree Algorithm Address learning works for tree layout i.e. no closed loops (or cycles) But not for cyclic connected graph! Spanning Tree Algo. builds a network including all the nodes with selected links (i.e. edges) without closed loops Known as a spanning tree!

Spanning Tree for increased reliability, desirable to have redundant, alternative paths from source to dest but need to avoid cycles solution: organize bridges in a spanning tree by disabling subset of interfaces Disabled

Some bridge features Isolates collision domains resulting in higher total max throughput (i.e. amount of data transmitted within an interval) Transparent (“plug-and-play”): no configuration necessary

Routers vs. Bridges (1) both store-and-forward devices routers: network layer devices (examine network layer headers) bridges are link layer devices routers maintain routing tables, implement routing algorithms bridges maintain bridge tables, implement filtering, learning and spanning tree algorithms

Routers vs. Bridges (2) Bridges pros (+) and cons (-) + Bridge operation is simpler requiring less data unit processing + Bridge tables are self learning - All traffic confined to spanning tree, even when alternative bandwidth is available - Bridges do not offer protection from broadcast storms (i.e. forwarding of broadcast traffic)

Routers vs. Bridges (3) Routers + and - + arbitrary topologies can be supported, cycling is limited by TTL counters (and good routing protocols) + provide protection against broadcast storms - require IP address configuration (not plug and play) - require higher packet processing bridges do well in small (few hundred hosts) while routers used in large networks (thousands of hosts)

Ethernet Switches Essentially a multi-interface bridge layer 2 (frame) forwarding, filtering using LAN addresses Incoming frame from particular station switched to appropriate output line Unused lines can switch other traffic More than one station can transmit at a time Multiplying capacity of LAN

Shared Hub and Switch 

Types of Ethernet Switches Store-and-forward switch Accepts frame on input line Buffers it briefly, then forwards it to appropriate output line Error checking, boosts integrity of network Cut-through switch Takes advantage of dest address appearing at beginning of frame Switch begins repeating frame onto output line as soon as it recognizes dest address Highest possible throughput Risk of propagating bad frames Switch unable to check CRC prior to retransmission Netgear GS108UK GB Switch Latency ~ 10 µs for 64-byte frames Throughput 32 Mfps MAC database (8000 entries)

Ethernet Switch Benefits No change to attached stations to convert bus LAN or hub LAN to switched LAN For Ethernet LAN, each station uses Ethernet MAC protocol Each station has dedicated capacity equal to original LAN Assuming switch has sufficient capacity to keep up with all devices Switch scales easily Con: still has broadcast storm problem!

Subnetwork with layer-3 device! Solution: break up network into subnetworks connected by routers or layer-3 switch (faster!) Packet forwarding done in the hardware MAC broadcast frame limited to stations and switches contained within a single subnetwork

Typical Large LAN Organization Thousands to tens of thousands of stations Desktop systems links 10 Mbps to 100 Mbps Into layer 2 switch Wireless LAN connectivity available for mobile users Layer 3 switches at local network's core Form local backbone Interconnected at 1 Gbps Connect to layer 2 switches at 100 Mbps to 1 Gbps Servers connect directly to layer 2 or layer 3 switches at 1 Gbps

Typical Large LAN Organization Diagram

Summary comparison

Summary LAN topologies IEEE 802 reference model Types of MAC protocols Interconnection Devices Hubs, bridges, switches, routers Read Stallings chapter 15 Next: Specific MAC protocols