Today, I learned about the MAC protocol.
Where is the link layer implemented?
- At each interface of hosts, routers, switches, access points
- Link layer implemented mainly in "adoptor" (aka network interface card NIC) or on a chip.
- e.g. Ethernet card (LAN), 802.11 card (WLAN)
- NIC implements link layer and physical layer
- Link layer is implemented in both
- NIC (hardware)
- Operating System (software)
Frame transmission from src to dst
- Sending Side:
- Rreceives datagram from Network layer
- Encapsulates datagram in a link frame (adds link header)
- Passes to Physical layer
- Receiving side:
- Receives frame from Physical layer
- Extracts datagram from frame (detaches Net header)
- Passes to network layer
Multiple access links, protocols
Two types of "links":
- Point-to-point: single sender, single receiver
- PPP link between a host and router using a switch
- PPP link between two routers
- Broadcast (shared wire or medium): multiple sender, receiver
- Old-fashioned Ethernet (Ethernet using hub device)
- HFC (Cable Internet)
- 802.11 wireless LAN
- Satellite
Shared vs Dedicated channel
Multiple access protocols
- Challenge: single shared broadcast channel for multiple nodes
- Two or more simultaneous transmissions by nodes: interference
- Collision if node receives two or more signals at the same time thus, all the frames invovled in the collision are corrupted, and the channel BW is wated during the collision interval.
- Multiple access protocol is a distributed algorithm that determines how nodes share channel.
- Not only data packets, but also communication about channel sharing must use channel itself!
- Challenge: no out-of-band channel for coordination
'Computer Science ๐ > Network Programming ๐ฐ๏ธ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
MAC Protocols (3) (0) | 2023.05.06 |
---|---|
MAC Protocols (2) (0) | 2023.05.04 |
TCP (2) (0) | 2023.05.02 |
TCP (1) (0) | 2023.04.29 |
UDP (0) | 2023.04.27 |