In computer networking, cut-through switching, also called cut-through forwarding

Use in Ethernet

When cut-through switching is used in Ethernet the switch is not able to verify the integrity of an incoming frame before forwarding it.

The technology was developed by Kalpana, the company that introduced the first Ethernet switch.

The primary advantage of cut-through Ethernet switches, compared to store-and-forward Ethernet switches, is lower latency.

Cut-through Ethernet switches can support an end-to-end network delay latency of about ten microseconds.

End-to-end application latencies below 3 microseconds require specialized hardware such as InfiniBand. Fragment free is a variation on cut-through switching that partially addresses this problem by assuring that collision fragments are not forwarded. Fragment free will hold the frame until the first 64 bytes are read from the source to detect a collision before forwarding. This is only useful if there is a chance of a collision on the source port.

The theory here is that frames that are damaged by collisions are often shorter than the minimum valid Ethernet frame size of 64 bytes. With a fragment-free buffer, the first 64 bytes of each frame update the source MAC and port if necessary, provide the destination MAC, and allow forwarding the frame. If the frame is less than 64 bytes, it is discarded. Frames that are smaller than 64 bytes are called runts; this is why fragment-free switching is sometimes called "runt-less" switching. Because the switch only ever buffers 64 bytes of each frame, fragment-free is a faster mode than store-and-forward, but there still exists a risk of forwarding bad frames.

There are certain scenarios that force a cut-through Ethernet switch to buffer the entire frame, acting like a store-and-forward Ethernet switch for that frame:

  • Speed: When the outgoing port is faster than the incoming port, the switch must buffer the entire frame received from the lower-speed port before the switch can start transmitting that frame out the high-speed port, to prevent underrun. (When the outgoing port is slower than the incoming port, the switch can perform cut-through switching and start transmitting that frame before it is entirely received, although it must still buffer most of the frame).
  • Congestion: When a cut-through switch decides a frame from one incoming port needs to go out through an outgoing port, but that outgoing port is already busy sending a frame from a second incoming port, the switch must buffer some or all of the frame from the first incoming port.

by the Exim mail transfer agent. When operating as a forwarder the onward connection can be made to the destination while the source connection is still open.

This permits data-time rejection (due, for example, to content-scanning) by the target MTA to be notified to the source MTA within the SMTP connection, rather than the traditional bounce message necessitated by the more usual store-and-forward operation.

Use in Bitcoin

Cut-through switching has been applied to make block-relay lower latency in Bitcoin. Low latency is critical for Bitcoin miners to reduce the rate at which their blocks are orphaned.

See also

  • Wire speed

References