2

I'm reading a text (possibly outdated) and it states that large amounts of Layer 2 broadcast can degrade the performance of the workstations on the network - due to CPU interrupts.

Is it possible for the network card to handle the interrupt? Or does the OS always have to get involved?

2 Answers 2

2

A broadcast must be passed to the upper layers in order to evaluate it to see if it is relevant for the host, and that needs to be handled in software.

Broadcasts do have an effect on host performance, but not as much as before since we now have faster and multi-core CPUs. Broadcasts also use, possibly unnecessarily, bandwidth, but we also have faster networks. Faster processors and faster networks could also mean more broadcasts, too.

It is still a very good practice to limit the size of the broadcast domain. It used to be, "Switch where you can, route where you must." That is no longer strictly true, and an emerging best practice is to use layer-3 switches, instead of layer-2 switches, as access switches. This eliminates problems with things like spanning tree, and allows more granular layer-3 security features. Very few thing we use today depend on hosts being on the same layer-2 network; we live in a layer-3 world.

1
  • One problem can be that PCs handle the broadcasts fine but other devices like printers with low-power CPUs struggle. Commented Jan 7, 2017 at 22:34
1

Network stack offloading provides a mechanism for the NIC hardware to handle the partial or full stack. Broadcasts are CPU-interrupt wasteful without offloading as the stack needs to process the packet to determine the destination IP is not its own. With offloading, this can be done without involving the CPU.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.