Chap 5 Datalink Flashcards
(66 cards)
Link Layer
- providing reliable data transmission over a physical link between adjacent network nodes
- i.e two devices on the same (LAN).
- intermediary between the Network Layer and Physical Layer
Frame
- unit of data at the Link Layer
- encapsulate the data received from the Network Layer for transmission over the physical medium.
frame components
header, payload (data), and trailer
Media Access Control (MAC) Address
- unique identifier assigned to each network interface card (NIC) or network interface controller (NIC) within a network.
- typically expressed as a 12-digit hexadecimal number
- used for addressing and identifying devices at the Link Layer
Ethernet
- Link Layer protocol for wired (LANs).
- defines the standards for frame formatting, addressing, MAC, error detection (CRC), and collision detection (CSMA/CD)
Wi-Fi (IEEE 802.11)
A set of Link Layer protocols for wireless (WLANs) defined by the IEEE 802.11 standard.
govern wireless communication, including frame transmission, MAC addressing, channel access (CSMA/CA), and security mechanisms (WPA, WPA2, etc.).
Switch
- A network device operating at the Link Layer
- forwards data frames between network devices within the same LAN based on MAC addresses.
- use MAC address tables to learn and maintain the association between MAC addresses and the corresponding switch ports
Hub
- network device that operates at the physical layer
- forwards data received on one port to all other ports.
- Unlike switches, hubs do not have intelligence to filter/forward data based on MAC addresses.
NIC (Network Interface Card)
- hardware component installed in a device to connect it to a network.
- contain a physical layer interface (PHY) and a Link Layer interface (MAC)
- are assigned a unique MAC address.
Media Access Control (MAC) Sublayer
- A sublayer of the Link Layer responsible for controlling access to the physical medium
- implements protocols for media access control, collision detection, and error detection
Frame Addressing
- process of assigning source and destination MAC addresses to frames for communication between devices on the same network segment.
- Frames are addressed using the MAC address of the destination device.
Collision Domain
- network segment in which data collisions can occur.
- In Ethernet networks, each connected device and the connecting cables constitute a collision domain.
- Switches help reduce collision domains by providing dedicated communication paths between devices
Functions of the Link Layer
- Error Detection and Correction:
- Encapsulation: data into frames.
- Addressing:
- Media Access Control (MAC):
- Flow Control:
- Frame Handling:
Error Detection and Correction
- Data can be corrupted during transmission due to signal attenuation or noise, leading to transmission error.
- Error detection and correction are implemented at either the data link layer or the transport layer
Importance of Error Detection
- Disrupted communication:
- System malfunctions:
- Incorrect information:
- Improved Data Integrity:
- Reliable Communication:
- Reduced Errors:
- Faster Troubleshooting:
Factors Contributing to Error
- Electrical noise: Interference on cables.
- Radio Frequency (RF) interference:
- Hardware malfunctions:
- Software bugs:
Bit Error
- Also called a single bit error.
- only one bit in the data unit has been changed (e.g., a ‘0’ to ‘1’ or vice versa)
Burst Error
- two or more bits in the data have been changed.
- simultaneous alteration of multiple consecutive bits within a data unit.
- often occur due to channel noise or interference.
Error Detection (Redundancy)
To detect errors, extra bits, called redundant bits, are sent along with the data
Error Correction Handling
Error correction can be handled in two ways:
- The receiver can have the sender retransmit the entire data unit.
- The receiver can use an error correcting code which automatically corrects certain errors
Error Detection Techniques
- Vertical redundancy check (VRC) also known as parity check.
- Longitudinal redundancy check (LRC).
- Checksum.
- Cyclic redundancy check (CRC).
Benefits of Error Detection
- Improved Data Integrity:
- Reliable Communication:
- Reduced Errors:
- Faster Troubleshooting:
Vertical Redundancy Check (VRC)
- Also known as Parity Checking.
- involves adding an extra bit (parity bit) to each data unit.
- The parity bit is set to 1 or 0 based on whether the number of 1s in the data unit is odd or even
- The receiver checks the parity; a mismatch indicates an error
Performance of VRC
- Basic and easy to implement.
- Can only detect single-bit errors.
- Can detect burst errors only if the number of errors is odd.
- Identifies errors but doesn’t provide the capability to fix them; retransmission is needed