简体   繁体   中英

how does linux kernel process out-of-order tcp segment?

I'm devleoping a multi rx threads ethernet driver, but this may lead to potential issuse that delivery out-of-order packets to linux network stack. this issue has been verified on PPTP connection, because GRE has sequence number and will drop out-of-order packets. So, does TCP has an tcp reassembly queue or similar mechanism to process out-of-order segment.

TCP has a window buffer. As packets arrive they are cached until the next expected packet sequence number is received. When the next expected packet is received (and it's valid), it's passed onto the application for receiving in order.

see https://www.quora.com/How-does-TCP-handle-the-duplicate-segments-and-out-of-order-segments

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM