Ethernet LAN Switching

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

Certainly, let's dive into detailed definitions and descriptions for each of the

key topics in Ethernet LAN switching:

### 1. **Ethernet Basics:**


- **Frame Structure:**
- **Preamble:** A sequence of 7 bytes at the beginning of an Ethernet frame
used for synchronization between sender and receiver.
- **Destination and Source MAC Addresses:** Identifiers for the devices, each
spanning 6 bytes.
- **EtherType/Length Field:** 2 bytes indicating the type of payload or the
length of the frame.
- **Data:** Payload of the frame, containing the actual information.
- **Frame Check Sequence (FCS):** 4 bytes for error checking.

- **Frame Types:**
- **Ethernet II (DIX):** Most common frame type, using EtherType to identify
the upper-layer protocol.
- **IEEE 802.3:** Uses a Length field instead of EtherType, commonly used in
IEEE 802.3 networks.

### 2. **Introduction to LAN Switching:**


- **Switching Modes:**
- **Cut-Through Switching:**
- Forwards frames as soon as it reads the destination MAC address.
- Low latency but may forward corrupted frames.

- **Store-and-Forward Switching:**
- Verifies the entire frame for errors before forwarding.
- Higher latency but minimizes forwarding of corrupted frames.

- **Buffering:**
- Buffers store frames during times of congestion, preventing packet loss.
- Different switch architectures use various buffering strategies.

### 3. **Key Characteristics of LAN Switching:**


- **MAC Address Learning:**
- **Dynamic Learning:**
- Switches dynamically build and maintain a MAC address table.
- Aging timers remove stale entries.

- **Static Configuration:**
- Administrators can manually configure MAC addresses to port mappings.

- **Forwarding Decision:**
- Switches make forwarding decisions based on MAC addresses.
- The switch consults its MAC address table to determine the egress port.

### 4. **How LAN Switching Works:**


- **Broadcast and Collision Domains:**
- **Collision Domains:**
- Each switch port represents a separate collision domain.
- Full-duplex communication eliminates collisions.

- **Broadcast Domains:**
- Each switch port creates a separate broadcast domain.
- VLANs further segment broadcast domains.

- **VLAN Operation:**
- **IEEE 802.1Q:**
- Adds a VLAN tag to frames for trunking between switches.
- Allows the extension of VLANs across multiple switches.

### 5. **Benefits of LAN Switching:**


- **Full-Duplex Communication:**
- Simultaneous communication in both directions, eliminating collisions.

- **Micro-Segmentation:**
- Each switch port operates as a separate micro-segment.
- Reduces contention and improves network efficiency.

- **Efficient Bandwidth Utilization:**


- Multiple devices can transmit simultaneously.
- Optimizes network bandwidth.

### 6. **Types of LAN Switching:**


- **Fragment-Free Switching:**
- Switch reads the first 64 bytes of a frame to ensure it doesn't contain a
collision.
- Strikes a balance between latency and error prevention.

### 7. **Managed vs. Unmanaged Switches:**


- **Managed Switch Features:**
- **VLAN Support:**
- Allows logical segmentation of the network.
- Enhances security and performance.

- **Quality of Service (QoS):**


- Prioritizes certain types of traffic for better performance.
- Differentiated services code points (DSCP) are often used.

### 8. **Quality of Service (QoS):**


- **Traffic Classification:**
- Identifying and categorizing different types of traffic.
- Often based on protocols, IP addresses, or port numbers.

- **Queuing Mechanisms:**
- **Weighted Fair Queuing (WFQ):**
- Assigns weights to different flows for fair resource allocation.
- Helps in congestion management.

### 9. **Link Aggregation (EtherChannel):**


- **Configuration:**
- **Static EtherChannel:**
- Manual configuration of aggregated links.
- Load balancing is achieved through link aggregation.

- **LACP:**
- Dynamic negotiation and management of aggregated links.
- Provides redundancy and increased bandwidth.

### 10. **Spanning Tree Protocol (STP):**


- **Root Bridge Election:**
- **Bridge ID:**
- Composed of priority value and MAC address.
- Determines the root bridge.

- **BPDU (Bridge Protocol Data Unit):**


- Exchange of BPDUs helps in root bridge election and loop prevention.
### 11. **Port Security:**
- **MAC Address Limiting:**
- **Violation Modes:**
- **Shutdown:**
- Shuts down the port upon a security violation.
- **Restrict:**
- Limits the number of allowed MAC addresses without shutting down the
port.

Certainly! Let's explore the journey of a packet in an Ethernet LAN switching


environment:

1. **Data Generation:**
- The process begins with a device, such as a computer or server, generating
data. This data could be in the form of a file, a request for a web page, or any
other form of digital information.

2. **Segmentation (if needed):**


- If the data is substantial and needs to be transmitted over the network, it
may be segmented into smaller units called packets. Each packet is assigned a
sequence number for proper reassembly at the destination.

3. **Encapsulation:**
- The packet is then encapsulated with headers and trailers. In the case of
Ethernet LAN, the data is encapsulated into an Ethernet frame.

- **Ethernet Frame Header:**


- Includes the destination and source MAC addresses.
- Type/Length field indicating the type of payload (IPv4, IPv6, etc.).

- **Payload:**
- The actual data being transmitted.

- **Frame Check Sequence (FCS):**


- Error-checking information.

- **Preamble:**
- Helps in synchronization between sender and receiver.

4. **MAC Address Learning:**


- Before the packet is sent, the source MAC address is learned by the Ethernet
switch. The switch updates its MAC address table associating the source MAC address
with the port through which the packet arrived.

5. **Forwarding Decision:**
- The switch examines the destination MAC address in the Ethernet frame and
consults its MAC address table to determine the appropriate egress port for
forwarding. If the destination MAC address is not in the table, the switch floods
the frame to all ports except the one it came from.

6. **Transmission on the LAN:**


- The switch forwards the frame to the destination device's port, effectively
sending the packet to the intended recipient.

7. **VLAN Tagging (if applicable):**


- If the network is configured with VLANs, the switch adds VLAN tags to the
frame to segregate traffic into different virtual LANs.
8. **Propagation through the LAN:**
- The frame propagates through the local area network, passing through switches
and reaching the destination device.

9. **De-encapsulation:**
- Upon reaching the destination device, the frame is de-encapsulated, revealing
the original packet.

10. **Delivery to the Destination:**


- The packet is delivered to the appropriate application or protocol at the
destination device based on the information in the payload.

11. **Acknowledgment (if required):**


- Depending on the protocol used (e.g., TCP), an acknowledgment may be sent back
to the source device, confirming successful receipt of the packet.

12. **End of Journey:**


- The packet has now completed its journey through the Ethernet LAN, from source
to destination, passing through switches and potentially traversing VLANs.

Understanding the journey of a packet in an Ethernet LAN switching environment is


crucial for comprehending how data flows through a network and how switches play a
key role in forwarding packets to their intended destinations.

You might also like