0. Intro

Mostly in hardware

terms

two types of links

services provided in link layer

  1. Encapsulation: encapsulate the network-layer datagram in a link-layer frame before transmission over the link.
    1. Frame: consist of a number of header fields and a data field (contain the network-layer datagrame)
  2. Powerful Checksum: way more powerful than upper layer since it is in physical layer.
  3. Link access: how to coordinate the sending of different nodes (devices) to make sure the frames can go through the channel.

2. Checksum: CRC

2.1 CRC (cyclic redundancy check)

1) modulo-2 operation (XOR op):

→ essentially XOR operation

  1001
+ 1010
-------
  0011
  
  1001
- 1010
-------
  0011

2) structure