Computer Network Tutorial: Ethernet, PPP, HDLC, Frame Relay, ATM

beginner
25 min

Computer Network Tutorial: Ethernet, PPP, HDLC, Frame Relay, ATM

Welcome to our in-depth guide on computer network protocols! Today, we'll be exploring some essential network protocols that form the backbone of modern data communication. Let's dive right in!

Ethernet šŸŽÆ

Ethernet is a widely-used wired networking technology that connects devices in Local Area Networks (LANs).

How does Ethernet work?

Ethernet uses the Carrier Sense Multiple Access with Collision Detection (CSMA/CD) method to manage data transmission on the network. Each device listens before transmitting to avoid collisions, and if a collision occurs, the devices retransmit after a random delay.

šŸ“ Note: Ethernet supports both half-duplex (simplex) and full-duplex (full-duplex allows simultaneous transmission and reception) data transfer.

Ethernet Frames

Each Ethernet frame consists of:

  1. Preamble: Synchronization sequence (64 bits) to help receiving devices lock onto the data stream.
  2. Start Frame Delimiter (SFD): Signals the start of the frame.
  3. Destination MAC Address: The intended receiver's MAC (Media Access Control) address.
  4. Source MAC Address: The sender's MAC address.
  5. Type (Length): Indicates the type or length of the data in the frame.
  6. Data: Carries the payload (up to 1500 bytes).
  7. Frame Check Sequence (FCS): Error-checking code to ensure the frame's integrity.

Example Ethernet Frame

Preamble: 11111010 10101010 10101010 10101010 SFD: 10101011 Destination MAC Address: xx:xx:xx:xx:xx:xx Source MAC Address: yy:yy:yy:yy:yy:yy Type (Length): 0800 (IPv4 packet) Data: IPv4 packet (up to 1500 bytes) FCS: 00000000 00000000

Point-to-Point Protocol (PPP) šŸ“

PPP is a protocol used for point-to-point connections, such as between dial-up modems or between routers.

PPP Components

  1. Link Control Protocol (LCP): Establishes, configures, and tests the point-to-point connection.
  2. Network Control Protocol (NCP): Configures network layer parameters, such as IP address and subnet mask.
  3. Internet Protocol Control Protocol (IPCP): Configures IP parameters, such as IP address and subnet mask.

PPP Encapsulation

PPP encapsulates network layer protocols, such as IPv4 or IPv6, inside its own frames, which consist of:

  1. Link Control Field: Contains flags and error-checking data.
  2. Protocol Field: Identifies the encapsulated protocol, such as IPv4 or IPv6.
  3. Protocol Data Unit (PDU): The encapsulated network layer packet.
  4. Frame Check Sequence (FCS): Error-checking code to ensure the frame's integrity.

High-Level Data Link Control (HDLC) šŸ’”

HDLC is an older data link protocol, similar to PPP, used for point-to-point connections.

HDLC Frames

HDLC frames consist of:

  1. Flag: Synchronization sequence (01111110) to help receiving devices lock onto the data stream.
  2. Address: Identifies the frame's direction (I: Information frame, S: Supervisory frame, P: P Poll frame, or U: Unnumbered frame).
  3. Control: Contains flags and error-checking data.
  4. Information: Carries the payload.
  5. CRC (Cyclic Redundancy Check): Error-checking code to ensure the frame's integrity.
  6. Flag: Synchronization sequence (01111110) to help receiving devices lock onto the data stream.

Frame Relay āœ…

Frame Relay is a packet-switched data link technology used for WANs.

Frame Relay Concepts

  1. Data Link Connection Identifier (DLCI): Identifies the virtual circuit between devices.
  2. Discard Eligibility (DE): Determines the order of dropped frames during congestion.
  3. Forward Explicit Congestion Notification (FECN) and Backward Explicit Congestion Notification (BECN): Signals congestion to the sender.

Frame Relay Frame

Frame Relay frames consist of:

  1. Flag: Synchronization sequence (01111110) to help receiving devices lock onto the data stream.
  2. DLCI: Identifies the virtual circuit.
  3. Explicit Congestion Notification (ECN): Signals congestion to the receiver.
  4. Data: Carries the payload.
  5. Frame Check Sequence (FCS): Error-checking code to ensure the frame's integrity.
  6. Flag: Synchronization sequence (01111110) to help receiving devices lock onto the data stream.

Asynchronous Transfer Mode (ATM) šŸŽÆ

ATM is a high-speed data link technology used for both LANs and WANs.

ATM Concepts

  1. Cell: Fixed-size (53 bytes) packets used for data transfer.
  2. Virtual Path Identifier (VPI): Identifies the virtual path, a bundle of virtual channels.
  3. Virtual Channel Identifier (VCI): Identifies the virtual channel within a virtual path.

ATM Cell Structure

ATM cells consist of:

  1. Header: Contains flags, VPI, VCI, and payload type.
  2. Payload: Carries the payload data.
  3. CRC: Error-checking code to ensure the cell's integrity.
  4. Trailer: Contains flags and padding to ensure the cell's alignment.

Quiz šŸ’”

Quick Quiz
Question 1 of 1

What is the purpose of the Destination MAC Address in an Ethernet frame?