? Computer Networks Unit 2
? Computer Networks Unit 2
🔹 1. Framing
Definition:
Framing is the process of dividing a continuous stream of bits into smaller, manageable units called
frames for data transmission. It ensures that the receiver can correctly detect the start and end of
each frame.
Framing Methods:
Byte Stuffing: Special bytes (e.g., FLAG, ESC) are used to mark frame boundaries. ESC is used
to differentiate between data and control characters.
Bit Stuffing: After every five consecutive 1s, a 0 is inserted. This avoids confusion with
control sequences.
A. Error Detection:
Detects whether an error has occurred during transmission.
Techniques:
Parity Bit: Adds 1 or 0 to make the number of 1s either even (even parity) or odd (odd
parity).
Checksum: The sender adds all the data units and sends the sum. The receiver re-computes
the sum to verify integrity.
CRC (Cyclic Redundancy Check): Uses polynomial division to generate a code; receiver
divides again to check for remainder.
B. Error Correction:
Hamming Code: Adds multiple redundant bits to data to detect and correct single-bit errors.
Ensures the sender does not overwhelm the receiver with data.
Elementary Protocols:
Noisy Channel Protocol: Sender resends frame if ACK is not received or NAK (negative
acknowledgment) is received.
Definition:
Allows multiple frames to be sent before needing acknowledgment.
mathematica
CopyEdit
↓ ↓ ↓
🔹 1. Channel Allocation
Definition:
Decides how devices share a common transmission medium.
ALOHA:
Slotted ALOHA: Time divided into slots → devices transmit at start of slot → fewer collisions.
CSMA/CA (Collision Avoidance): Used in Wi-Fi. Tries to avoid collision using RTS/CTS signals.
🔹 3. LAN Standards
Token Ring (IEEE 802.5): Uses a token passed between devices to grant permission to send
data.
Switch:
Bridge:
A bridge that learns which MAC addresses belong to which ports by inspecting incoming
frames.
Process:
arduino
CopyEdit
[Bridge 1 (Root)]
[Bridge 2]------[Bridge 3]
\___________/
🎯 Summary Keywords