Multiple Access Control (MAC) protocols
Kinds of MAC protocols
coordinates transmissions from different stations in order to minimize/avoid collisions
- Channel Partitioning MAC protocols
- Random Access MAC protocols
- “Taking turns” MAC protocols
Channel Partitioning Mac protocols
TDM (Time Division Multiplexing): channel divided into N time slots, one per user; ineffificient with low duty cycle users and at light load.
- FDM (Frequency Division Multiplexing): frequency subdivided.
- Other examples include Code Division Multiple Access (CDMA)
- GSM, Used for mobile phones

Random Access protocols
A node transmits at random at full channel data rate R.
- If two or more nodes “collide”, they retransmit at random time
- The random access MAC protocol specifies how to detect collisions and how to recover from them
- E.g. Slotted Aloha, ALOHA, CSMA ...
CSMA - Carrier Sense Multiple Access
- Listen before transmit, if the channel is busy, defer transmission.
- If collision happens, the entire transmission time is wasted.
- Collision detection is easy in wired LANs (eg, Ethernet): can measure signal strength on the line, or code violations, or compare tx and receive signals
- Collision detection cannot be done in wireless LANs (the receiver is shut off while transmitting, to avoid damaging it with excess power)

- Use IP address - Drive the packet to destination network
- 48 bit Mac address - burnt in the Ethernet card ROM and is unique
- Use ARP (Address resolution Protocol) to resolve MAC address to IP address and run on network layer

ARP
- Each IP node (Host, Router) on the LAN has ARP module and Table (aka ARP cache)
- ARP Table: IP/MAC address mappings for some LAN nodes E.g.
- <>
< ………………………….. > - TTL (Time To Live): timer, typically 20 min
Hub
Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces
Bridge
Link layer device
- stores and forwards Ethernet frames
- examines frame header and selectively forwards frame based on MAC dest address
- when frame is to be forwarded on segment, uses CSMA/CD to access segment
Bridge vs router
- Both are store-and-forward devices, but Routers are Network Layer devices (examine network layer headers) and Bridges are Link Layer devices
- Routers maintain routing tables and implement routing algorithms, bridges maintain filtering tables and implement filtering, learning and spanning tree algorithms


0 意見:
張貼意見