[patch #9724] mDNS: add probe tiebreaking

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch #9724] mDNS: add probe tiebreaking

Jasper Verschueren
URL:
  <https://savannah.nongnu.org/patch/?9724>

                 Summary: mDNS: add probe tiebreaking
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jasperv
            Submitted on: Fri 16 Nov 2018 02:33:18 PM CET
                Category: apps
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

Hi All,

In the below patches you can find code to add the probe tiebreaking
functionality to mDNS. This is important for solving conflicts if a lot of
hosts power on at more or less the same time.

The basic functionality is:
During probing the probe messages that are received are evaluated against the
probe message we are sending out.
If they have the same probe question in them, we consult the authoritative
section of the message to find the answers to the probes. These are the RR's
the two probing hosts would like to use. We compare them in lexicographical
order and the lexicographical later host wins. The winner can ignore the probe
packet. The loser must wait one second. After one second the host retries with
the same names.
For a more detailed explanation see RFC6762 section 8.2.

Kind regards,
Jasper



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 16 Nov 2018 02:33:18 PM CET  Name:
0001-mDNS-split-probe-packet-definition-and-split-outpkt-.patch  Size: 11KiB  
By: jasperv

<http://savannah.nongnu.org/patch/download.php?file_id=45446>
-------------------------------------------------------
Date: Fri 16 Nov 2018 02:33:18 PM CET  Name:
0002-mDNS-probe-tiebreaking-added.patch  Size: 23KiB   By: jasperv

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

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9724>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[patch #9724] mDNS: add probe tiebreaking

Jasper Verschueren
Update of patch #9724 (project lwip):

                  Status:                    None => Done                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Applied, thanks!!!

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9724>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[patch #9724] mDNS: add probe tiebreaking

Jasper Verschueren
Follow-up Comment #2, patch #9724 (project lwip):

I just pulled the latest git HEAD. Could you check if you applied both
patches? I only found the first one.

The first patch contains a change to the current code.
The second patch is the extra functionality.

Thanks for checking!

If you have any comments on the code let me know.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9724>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[patch #9724] mDNS: add probe tiebreaking

Jasper Verschueren
Follow-up Comment #3, patch #9724 (project lwip):

Correct, I missed the second patch! Thanks for the reminder! Applied.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9724>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel