About this simulator
In packet switching a message is split into packets that travel hop by hop. Each router must receive a whole packet before forwarding it (store-and-forward), but different packets can be on different links at the same time. The Gantt-style diagram shows this pipelining and the formula that predicts the total delivery time.
How it works
- Each router must receive a whole packet before it forwards it (store-and-forward).
- While packet 2 is crossing link 1, packet 1 is already crossing link 2 — the links work in parallel.
- packets over links of rate finish after (ignoring propagation).
Formulas used
- (one big packet)
Worked example
A 15,000-byte message is cut into packets of 1,500 bytes and sent over links of 10 Mbps. Each packet needs per link, so the total is . Sending the whole message as a single packet would take — packet switching is faster here.
Enter these numbers in the simulator above to see every step.
When to use it
- Solving store-and-forward delay problems with N packets and K links.
- Understanding why smaller packets reduce end-to-end delay on multi-hop paths.
- Comparing packet switching with circuit switching and message switching.
Frequently asked questions
What is the formula for packet switching delay?
For equal packets of length crossing links of rate (ignoring propagation and queuing), the total time is .
What does store-and-forward mean?
A router receives the entire packet before it starts transmitting it on the next link. This adds one packet transmission time per hop but allows error checking.
Why is packet switching faster than sending one big message?
Because pipelining lets several links work at once: while one packet crosses link 2, the next is already crossing link 1.