How to Calculate Link Utilization During a Broadcast Storm

broadcastswitch

Assume 3 switches connected in a ring topology forming a loop.
If STP is disabled, a single broadcast packet is going to create a broadcast storm.

If i assume a broadcast packet size to be 100bytes and all the links to be 100Mbytes per sec, how can i quantify/calculate how much of the bandwidth is being utilized because of this packet storm? To avoid complications lets assume there are no other traffic. Just a single broadcast packet that got in and the switches.

edit:i do not necessaryily need to measure it in the network. I was looking at an equation that can estimate it based on the link speed, transmission delay etc

Best Answer

It depends on several factors.

IF there is only a single ring (eg. each switch is connected to exactly two switches using exactly one cable to each switch) and the source is connected to one of the switches then if you do a broadcast storm (destination MAC FF:FF:FF:FF:FF:FF) and if you would constantly be flooding frames from the source then it would utilize all of the links to the full capacity in both directions (it's full duplex).

If you would for example only send one frame and let it circulate, the utilization would depend on how quickly a switch can forward that frame. Then you'd need to sum up the forwarding, propagation, serialization and other delays in the entire loop and that often would that one (actually two, one in each direction) frame arrive on each particular interface. Then based on the frame size you would simply calculate the utilization.

But remember, utilization is always a function of time, there is no such thing as instant utilization.

So to answer the formula question: utilization of each single link in one particular direction = (num_frames * frame_size / sum_of_all_delays_in_the_path) / capacity_of_the_link