Difference between revisions of "LAN Switches"

From Ever changing code
Jump to navigation Jump to search
Line 1: Line 1:
Switching also know as frame forwarding methods:
= Switching also know as frame forwarding methods =
*'''Store-and-forward switching''' - switch receives the entire frame, and computes CRC. IF CRC is valid, the switch looks up the destination address which determines the outgoing interface. The frame is then forwarded
*'''Store-and-forward switching''' - switch receives the entire frame, and computes CRC. IF CRC is valid, the switch looks up the destination address which determines the outgoing interface. The frame is then forwarded
*'''Cut-through switching''' - switch forwards the frame before it is entirely received. At the minimum the destination address of the frame must be read before the frame can be forwarded
*'''Cut-through switching''' - switch forwards the frame before it is entirely received. At the minimum the destination address of the frame must be read before the frame can be forwarded
Line 6: Line 6:


Some switches are configured to perform cut-through switching on a per-port basis until a user-defined error threshold is reached and then they automatically change to store-and-forward. When the error rate falls below the threshold, the port automatically changes back to cut-through switching.
Some switches are configured to perform cut-through switching on a per-port basis until a user-defined error threshold is reached and then they automatically change to store-and-forward. When the error rate falls below the threshold, the port automatically changes back to cut-through switching.
= Methods of memory buffering =
*'''Port-based Memory Buffering''' - 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 of it in the queue have been successfully transmitted. 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.
*'''Shared Memory Buffering''' - deposits all frames into a common memory buffer that all the ports on the switch share. The amount of buffer memory required by a port is dynamically allocated. The frames in the buffer are linked dynamically to the destination port. This allows the packet to be received on one port and then transmitted on another port, without moving it to a different queue.

Revision as of 19:43, 24 October 2014

Switching also know as frame forwarding methods

  • Store-and-forward switching - switch receives the entire frame, and computes CRC. IF CRC is valid, the switch looks up the destination address which determines the outgoing interface. The frame is then forwarded
  • Cut-through switching - switch forwards the frame before it is entirely received. At the minimum the destination address of the frame must be read before the frame can be forwarded
    • Fast-forward switching - immediately forwards a packet after reading the destination address. Latency is measured from the first bit received to the first bit transmitted
    • Fragment-free switching - the switch stores the first 64 bytes of the frame before forwarding, the reason to read the first 64 bytes is most network errors and collisions occur during the first 64 bytes

Some switches are configured to perform cut-through switching on a per-port basis until a user-defined error threshold is reached and then they automatically change to store-and-forward. When the error rate falls below the threshold, the port automatically changes back to cut-through switching.

Methods of memory buffering

  • Port-based Memory Buffering - 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 of it in the queue have been successfully transmitted. 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.
  • Shared Memory Buffering - deposits all frames into a common memory buffer that all the ports on the switch share. The amount of buffer memory required by a port is dynamically allocated. The frames in the buffer are linked dynamically to the destination port. This allows the packet to be received on one port and then transmitted on another port, without moving it to a different queue.