Enqueue state
Get incoming packet and allocate a queue to it.
Initialize VCi and auxVCi when first packet arrives to flowi.
- If there are no packets currently transmitted,
- extract the packet from the queue.
- calculate the packet transmission time.
- issue an interrupt at (simulation time + transmission time).
- Else
- keep the packet in the queue.
- calculate the tick step (Vtick).
- update queue’s VC and auxVC values.
- stamp packet with values.
- Return to the idle state.