Data-Link Layer 1 Flashcards
Introduction
Differences between layers
Transport Layer: communication between applications
Network Layer: communication between source and destination
Link Layer: communication between nodes (routers and hosts)
Introduction
Nodes
Hosts and routers
Introduction
Data-Link Layer
- Communication between nodes
- Has responsibility of transferring datagram from one node to a physically adjacent node over a link
- 2-Layer Packet: frame encapsulates datagram
Introduction
Link
Communication channels that connect adjacent nodes along communication path
Introduction
Link Types
- Wired
- Wireless
- LANs
Introduction
Link-Layer: Context
- Datagrams are transferred by different protocols over different links (wifi, ethernet, …)
- Each link protocol provides different services (may not be reliable)
Introduction
Link Layer: Services
- Framing, link access
- Reliable delivery between adjacent nodes
- Flow control
- Error detection and correction
- Half-duplex and full-duplex
Introduction: Services
Framing, link access
- Encapsulates datagram into frame, adding header/trailer
- Controls channel access if shared medium
- “MAC address” in frame headers identifies source/dest
Introduction: Services
Flow Control
Pacing between adjacent sending and receiving nodes
Introduction: Services
Error detection and correction
- Errors caused by singal attentuation, noice
- Receiver detects errors and signals retransmission or drops frames
Introduction: Services
Half-duplex and full-duplex
With half-duplex, nodes at both ends of link can transmit, but not at same time
Introduction
Where is the link-layer implemented?
- In each and every host
- Uses network interface card (NIC) or on a chip
- Attaches into host’s system buses
- Combination of hardware, software, and firmware
Introduction
Interface Communication: Sender Side
- Encapsulates datagram in frame
- Adds error checking bits, reliable data transfer, flow control, etc.
Introduction
Interface Communication: Receiver Side
- Looks for errors, reliable data transfer, flow control, etc.
- Extracts datagram, passes to upper layer at receiving side
Introduction
Error Detection
Datagram: d data bits + EDC
EDC: error detection and correction bits, larger EDC yields better detection
D: data protected by error checking, may include header fields