Giter Club home page Giter Club logo

massdhclient's People

Contributors

steffenschumacher avatar stsmrvestas avatar

Watchers

 avatar

Forkers

tony19911010

massdhclient's Issues

Backoff algorithm

Is your feature request related to a problem? Please describe.
When roc-compliant clients fail to obtain addresses, they implement a backoff algorithm to ensure they do not DoS the DHCP server in cases where it is experiencing a high load. Without this, our client would do the same.

Describe the solution you'd like
Each failed attempt by a DHCP client to either request or renew a lease, must increment a counter, which can be used to derive a backoff delay, until next attempt is done. Furthermore, the time of the last failed attempt must also be stored, so that the precise time of the next attempt can be calculated. The formula must be 0.5+log(failed_attempts)*20 to find how many seconds to wait until the next attempt.

Describe alternatives you've considered
Static and random algorithms produce undesired side effects

Additional context
N/A

Client ARP test

Is your feature request related to a problem? Please describe.
If the offered address is being used by some host which can/will not respond to an ICMP probe from the DHCP server the client will currently use the offered address unaware of the potential issue

Describe the solution you'd like
On receiving a DHCP offer, the client must perform an arp get for the offered IP address and wait ~100 ms for a reply, before requesting the address from the DHCP server. If a response is unexpectedly seen, the client must issue a DHCPDECLINE to the DHCP server.

Describe alternatives you've considered
Using both ICMP from the server would work in cases where the holder of the IP has a route to the DHCP server, and is configured to respond to ICMP, however neither will always be the case.

Additional context
This is required to be rfc compliant..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.