I have a link between a host and a switch.
The link has a bandwidth & a latency. How to calculate the time of 2 packets(with size 1KB) to be transferred from Host A to Switch 1?
Here's the diagram(I am talking about the first link)
Note: I just want to calculate it manually for these values, I want to know the principles/laws of calculating these problems.
Quite roughly, the formula is:
Bottom line:
Notice that I converted all units to bytes and seconds, so calculations are meaningful.
This is more accurate for large packets. For small packets, real numbers are larger.
Formulas:
Frame Serialization Time = S/R
Link Media Delay = D/p
Queueing Delay = Q / R
Variable decoder:
Applying to your question:
I will only calculate information for the link between Host A and Switch 1: