Lec09 Ethernet Switching
Lec09 Ethernet Switching
INTRODUCTION
LAN technologies
Data Encapsulation
IEEE 802.3 data encapsulation includes the following:
1. Ethernet frame - This is the internal structure of the Ethernet frame.
2. Ethernet Addressing - The Ethernet frame includes both a source and
destination MAC address to deliver the Ethernet frame from Ethernet
NIC to Ethernet NIC on the same LAN.
3. Ethernet Error detection - The Ethernet frame includes a frame check
sequence (FCS) trailer used for error detection.
Ethernet Frames
MAC Sublayer
Media Access
• The IEEE 802.3 MAC sublayer includes the specifications for different
Ethernet communications standards over various types of media including
copper and fiber.
• Legacy Ethernet using a bus topology or hubs, is a shared, half-duplex
medium. Ethernet over a half-duplex medium uses a contention-based
access method, carrier sense multiple access/collision detection
(CSMA/CD) to ensure that only one device is transmitting at a time.
CSMA/CD allows multiple devices to share the same half-duplex medium
and detects a collision when more than one device attempts to transmit
simultaneously. It also provides a back-off algorithm for retransmission.
• Ethernet LANs of today use switches that operate in full-duplex. Full-
duplex communications with Ethernet switches do not require access
control through CSMA/CD.
Ethernet Frames
Ethernet Frame Fields
• The minimum Ethernet frame size is 64 bytes and the maximum is 1518 bytes.
The preamble field is not included when describing the size of the frame.
• Any frame less than 64 bytes in length is considered a “collision fragment” or
“runt frame” and is automatically discarded. Frames with more than 1500
bytes of data are considered “jumbo” or “baby giant frames”.
• If the size of a transmitted frame is less than the minimum, or greater than the
maximum, the receiving device drops the frame. Dropped frames are likely to
be the result of collisions or other unwanted signals. They are considered
invalid. Jumbo frames are usually supported by most Fast Ethernet and Gigabit
Ethernet switches and NICs.
Ethernet MAC Addresses
MAC Address and Hexadecimal
Note: If the source MAC address does exist in the table but on a different
port, the switch treats this as a new entry. The entry is replaced using the
same MAC address but with the more current port number.
The MAC Address Table
Switch Learning and Forwarding (Contd.)
Find the Destination MAC Address (Forward)
If the destination MAC address is a unicast address, the switch will look for a
match between the destination MAC address of the frame and an entry in its
MAC address table. If the destination MAC address is in the table, it will
forward the frame out the specified port. If the destination MAC address is
not in the table, the switch will forward the frame out all ports except the
incoming port. This is called an unknown unicast.
Method Description
•Frames are stored in queues that are linked to specific incoming and outgoing
ports.
•A frame is transmitted to the outgoing port only when all the frames ahead in the
Port-based queue have been successfully transmitted.
memory •It is possible for a single frame to delay the transmission of all the frames in
memory because of a busy destination port.
•This delay occurs even if the other frames could be transmitted to open destination
ports.
•Deposits all frames into a common memory buffer shared by all switch ports and
the amount of buffer memory required by a port is dynamically allocated.
Shared
•The frames in the buffer are dynamically linked to the destination port enabling a
memory
packet to be received on one port and then transmitted on another port, without
moving it to a different queue.
• Shared memory buffering also results in larger frames that can be
transmitted with fewer dropped frames. This is important with asymmetric
switching which allows for different data rates on different ports.
Therefore, more bandwidth can be dedicated to certain ports (e.g., server
port).
Switch Speeds and Forwarding Methods
Duplex and Speed Settings
Two of the most basic settings on a switch are the bandwidth (“speed”)
and duplex settings for each individual switch port. It is critical that the
duplex and bandwidth settings match between the switch port and the
connected devices.