Commit f6cd3756 authored by Chia-chi Yeh's avatar Chia-chi Yeh Committed by Dmitry Shmidt
Browse files

ANDROID: net: Reorder incoming packets in PPPoLAC and PPPoPNS.



PPP handles packet loss but does not work with out of order packets.
This change performs reordering of incoming data packets within a
sliding window of one second. Since sequence number is optional,
receiving a packet without it will drop all queued packets.

Currently the logic is triggered by incoming packets, so queued
packets have to wait till another packet is arrived. It is done for
simplicity since no additional locks or threads are required. For
reliable protocols, a retransmission will kick it. For unreliable
protocols, queued packets just seem like packet loss. Time-critical
protocols might be broken, but they never work with queueing anyway.

Signed-off-by: default avatarChia-chi Yeh <chiachi@android.com>
parent 32f7ae96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment