buglwIP - A Lightweight TCP/IP stack - Bugs: bug #44513, TCP slows down receiving due...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44513: TCP slows down receiving due packet reordering

Submitter:  Homyak <onlyslon>
Submitted:  Wed 11 Mar 2015 07:37:07 PM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Works For Me
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Thu 19 Mar 2015 07:25:39 PM UTC, comment #1: 

Works perfectly for me, I guess this is a pbuf leak or something like that in your port or application.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 11 Mar 2015 07:37:07 PM UTC, original submission:  

LwIP works as client and have problem then downloading files from cloudflare CDN's

Download file from  http://hsto.org/getpro/habr/post_images/f29/326/41a/f2932641ab2d5b2f480763d4aec8d5b0.png

LwIP starts receiving, then slowing down, and finally  stop receiving (without completing the download).
I save pcap file and observe  tcp segments  high reordering.
Linux stack correctly handle this situation.


I try git head & 1.4.1 with same result
I try with TCP_QUEUE_OOSEQ   and without


#define TCP_SND_BUF                     65535
#define MEMP_NUM_TCP_PCB                500
#define PBUF_POOL_SIZE                  20480
#define MEMP_NUM_TCP_SEG                10240

#define TCP_MSS                         1400
#define TCP_WND                         14000
#define LWIP_TCP_KEEPALIVE              1
#define TCP_KEEPINTVL_DEFAULT           15000UL
#define MEM_LIBC_MALLOC                 1
#define SO_REUSE                        1
#define PBUF_POOL_BUFSIZE             LWIP_MEM_ALIGN_SIZE(16384)
#define LWIP_TCP_KEEPALIVE              1
#define LWIP_TCP_TIMESTAMPS             1


Homyak <onlyslon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #33314:  cloudflare.pcap added by onlyslon (398KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by onlyslon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-19 goldsimon StatusNone Works For Me
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2015-03-11 onlyslon Attached File- Added cloudflare.pcap, #33314

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code