[asterisk-dev] socket_read: Packet arrived out of order (expecting2, got 1)

Rich Adamson radamson at routers.com
Wed Mar 8 14:16:17 MST 2006


> > is this alarming?
> > or should i discard this and do not worry at them?
> 
> IAX2 is carried on UDP packets and they, by definition, are not required
> to arrive in order of transmission (or even arrive at at all) at the
> application layer. This differs from TCP packets, who are required to be
> presented to the application in order and with no gaps. It follows
> therefore that queueing and congestion on a larger network such as the
> Internet may cause the IAX frames to go astray. 

Correction... there is no requirement that tcp packets arrive in order
either. The tcp packets do have the information neessary for the IP stack
to put the packets back in order, and do a retransmission request for
any missing packets, but that's it.

In general terms, both udp and tcp packets are subjected to the exact
same out-of-order issues in any network, including the Internet.





More information about the asterisk-dev mailing list