quic-interop / quic-network-simulator

ns3-based network simulator for QUIC testing
Other
152 stars 45 forks source link

Say which packet was dropped #65

Closed larseggert closed 4 years ago

larseggert commented 4 years ago

Instead of simply logging "Dropping packet", it would be helpful if QNS logged some more details, such as direction (server->client or vice versa), ports, etc.

marten-seemann commented 4 years ago

What else (other than 2-tuples) would be helpful?

larseggert commented 4 years ago

Packet type?

marten-seemann commented 4 years ago

Makes sense. Would you mind contributing some code?

This is the function where we decide if a packet is dropped: https://github.com/marten-seemann/quic-network-simulator/blob/bb6c4fbf5ea106d678ed6307ee3d9039911d2659/sim/scenarios/drop-rate/drop-rate-error-model.cc#L23-L28