+ All Categories
Home > Documents > Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC...

Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC...

Date post: 06-Aug-2020
Category:
Upload: others
View: 6 times
Download: 0 times
Share this document with a friend
35
Medium Access Control CSCI345 Chapter 4 Michael Hutt New York Institute of Technology
Transcript
Page 1: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Medium Access Control

CSCI345 Chapter 4

Michael Hutt New York Institute of Technology

Page 2: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

The Data Link Layer

Page 3: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Logical Link Control (LLC)

l  IEEE 802.2 Standard

l  RFC 1042

l  Provides three service options l  Unreliable datagram service l  Acknowledged datagram service l  Reliable connection-oriented service

Page 4: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Medium Access Control (MAC) l  Layer 2 addressing (MAC address or physical

address)

l  Channel access control mechanisms for multiaccess channels

l  Determines who goes next on a multiaccess channel

Page 5: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Multiple Access Protocols l  Pure Aloha

l  Transmit whenever data is available to be sent l  Does not listen before transmitting l  Listen to find out if frame was destroyed (collision)

l  Slotted Aloha l  Forces all workstations to agree on time slots l  Can’t start sending in the middle of a time slot l  Improves throughput to 2x of pure Aloha

Page 6: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Multiple Access Protocols… l  Persistent Carrier Sense Multiple Access

l  First listen to see if anyone else is transmitting l  If collision detected wait random amount of time and start

over l  Propagation delay can have on performance

l  Nonpersistent CSMA l  Listen first, if no one is sending, begin sending l  If channel is busy, wait a random period before listening

again l  Better channel utilization, but longer delay

Page 7: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Multiple Access Protocols… l  CSMA with Collision Detect

l  CSMA/CD l  Terminate transmission immediately upon detecting a

collision l  Basis for Ethernet l  Need to transmit for 2T, where T is the propagation delay

between the 2 farthest workstations l  Transmitting stations must constantly monitor the channel

(receive) for collisions - inherently half-duplex

Page 8: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Wireless LAN Protocols l  Can’t use CSMA since we need to detect interference at the

receiver l  Can’t reliably detect all transmissions due to range of radios l  Multiple Access with Collision Avoidance (MACA)

l  Force a short transmission from the receiver so stations around the receiver avoid transmitting

l  A sends RTS frame to B. B replies with CTS l  Stations close to A hear the RTS l  Stations close to B hear the CTS l  MACAW (MACA for Wireless)

l  Added CSMA for transmitters, and ACKs

Page 9: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet

•  Ethernet Cabling •  Manchester Encoding •  The Ethernet MAC Sublayer Protocol •  The Binary Exponential Backoff Algorithm •  Ethernet Performance •  Switched Ethernet •  Data Link Layer Switching •  Virtual LANs

Page 10: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet Cabling

Page 11: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Manchester Encoding

Page 12: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet MAC Sublayer Protocol

Page 13: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet MAC Sublayer Protocol… l  Ethernet II (DIX)

l  Used for IP

l  802.3 (Raw) - no type field

l  802.3 with 802.2

l  802.3 with 802.2 SNAP l  Used for IP, Appletalk, CDP and other proprietary protocols

Page 14: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet MAC Sublayer Protocol…

Page 15: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Binary Exponential Backoff Algorithm

l  After n collisions wait somewhere between 0 and 2^n-1 time slots

l  Time slot = 51.2µsec (time it takes to transmit 512 bits)

l  After 16 collisions failure is reported to higher layers

Page 16: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ethernet Performance

Page 17: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Bus Topology

Page 18: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Bridging

Page 19: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Spanning-Tree Protocol

Page 20: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Bridges

l  Store and forward l  Buffers the frame and checks the CRC, then

forwards to destination port

l  Cut Through l  DA MAC address appears first. Forward frame

immediately to destination port. No CRC check.

Page 21: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Bridges…

Page 22: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Layer 2 Switch

Page 23: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Switched Ethernet

l  Multiport bridge

l  Each port is in its own collision domain

l  Ports can now operate full duplex

l  Switch disables collision detection in full duplex mode

Page 24: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Network Devices

l  Repeaters - L1 l  Hubs - L1 l  Bridges/Layer 2 Switches – L2 l  Routers/Layer 3 Switches - L3/L4 l  Gateways - L4/L7

Page 25: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Network Devices…

Hub

Bridge Layer 2 Switch

Layer 2 Switch

Router

Firewall

Internet

172.16.1.0/24

192.168.1.16/28 192.168.1.17

192.168.1.18

192.168.1.19

172.16.1.1

172.16.1.2

e0

e1

80:ee:73:12:34:56

00:00:0C:12:34:56

00:00:0C:AB:CD:EF

00:00:0C:1A:2B:3C

64:76:BA:12:34:56

Page 26: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Virtual LANs

Page 27: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

802.1Q

Page 28: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

802.1Q…

Page 29: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Wireless LANs

l  IEEE 802.11 Standard l  802.11a - 5 GHz, 54 Mbps (Net Bit Rate) l  802.11b - 2.4 GHz, 11 Mbps l  802.11g - 2.4 GHz, 54 Mbps l  802.11n - 5 GHz and/or 2.4 GHz, 600 Mbps

Page 30: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

The 802.11 Protocol Stack

Page 31: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

The 802.11 MAC Sublayer Protocol

a)  the hidden station problem b)  the exposed station problem

Page 32: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

The 802.11 MAC Sublayer Protocol…

Page 33: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

The 802.11 Frame Structure

Page 34: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Wi-Fi Security

l  WEP - no longer secure

l  WPA (TKIP) l  8/27/09 “Computer scientists in Japan say they've

developed a way to break the WPA encryption system used in wireless routers in about one minute. “

l  WPA2 (AES)

Page 35: Medium Access Control - Hutt Systems · Medium Access Control (MAC) ! Layer 2 addressing (MAC address or physical address) ! Channel access control mechanisms for multiaccess channels

Ad Hoc Networks

l  Firechat l  opengarden.com/firechat


Recommended