lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #8446] LWIP IP Re-assembly timer optimization


From: Nirav
Subject: [lwip-devel] [patch #8446] LWIP IP Re-assembly timer optimization
Date: Mon, 05 May 2014 11:53:14 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?8446>

                 Summary: LWIP IP Re-assembly timer optimization
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: niravisneo
            Submitted on: Mon 05 May 2014 11:53:13 AM GMT
                Category: IPv4
                Priority: 6
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

This timer is used to check state of fragments of data which need to be
re-assembled.
If a timeout occurs the fragments are freed.

This timer was started with a periodicity of 1 sec.
But if there are no fragments to re-assemble still it was being queued and
its
expiry handler was executed.
The timeout value for each fragment is 3 sec.


Optimization:
1. Start the timer only when first fragment is added to re-assembly queue.
2. If no elements are present in the re-assembly queue do not queue timer.

Benefits:
1. The timer will execute only when there is a fragment in the queue.
2. This stops wakeup of the processor after every 1 sec


Note:
LWIP has 6 such timers which can be optimized.
viz.
IGMP, DNS, DHCP Fine , DHCP coarse, ARP, IPV6 re-assembly

If this IP Re-assembly patch is accepted and made a part of LWIP main stream
release I will send out other patches which optimize other timers.

Very Important : Dependency

https://savannah.nongnu.org/bugs/?41686

The above bug is open and it needs to be fixed to avoid crash on fragment
re-assembly



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 05 May 2014 11:53:13 AM GMT  Name:
IP-Reassembly-Timer-Optimization.patch  Size: 4kB   By: niravisneo

<http://savannah.nongnu.org/patch/download.php?file_id=31311>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8446>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]