This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DHCP Client force IP renew.

Dear all,

We've developed a server application which could configure the IP Address using DHCP. The problem is that as the application is running as server it is not generating TCP/IP messages if no client connect, so after some time the DHCP server detects that one is using the address and then reuse the assigned IP address to others devices. To avoid this problem, the application should renew the IP Address, that is send a request to DHPC server asking for an IP Address. Is it possible configure the DHCP client to renew the IP address? And the valid time of and IP Address?

Thanks and Best Regards,

Joaquim Duran

 

  • Joaquim,

    Does this FAQ address a solution for the issue you're describing?

     

  • David,

    Thanks for your answer, we'll take into in account. In fact, the DHCP has a parameter which defines the interval of validity of the IP address that is assigned to the client. Once the interval has been exhausted, DSP/BIOS send a message to DHCP server to renew the IP address (already tested). If the DHCP server needs some network activity to avoid to close the wifi connection, this could be a good option. We hope that adjusting this parameters will fix the problem.

    Joaquim Duran

     

  • Dear all,

    Sorry for the inconveniences. In the previous messages I haven't explained the real problem, i was thinking that a wifi connections was closed but that's false. The problem is:

    We've a device based on C64X+ DSP connected to a Wi-fi client bridge, an HP Pro Curve M111 (http://www.hp.com/rnd/products/wireless/HP_ProCurve_M111_Client_Bridge/specs.htm), with IP Forwarding and Mac Clonning activated (this is needed to allow our device to access to a Radious server). The server provides DHCP to the devices that connect to the network, so our device is configured with DHCP. Also, our device acts as a server, waiting for incoming connections.

    The problem that appears is that the M111 is not accepting network traffic from our device if our device has no network traffic for 10 minutes. To avoid the problem, doing ping to the device there is enough to avoid M111 to drop packets but this is takes too bandwidth, for example a ping each minute should be enough. Said that, I've connected others devices (acquired to a provider) to M111 and the problem of drop packets is not present. These devices are also configured with DHCP, but examining the network traffic they send a DHCP package every 60 seconds, however our device doesn't.


    Here come the questions:

    1 - The M111 device is also provided by us to our clients so we could configure it. Have you any idea about the behaviour of M111?
    2 - Why isn't DSP/BIOS sending DHCP message every 60 seconds? Does this behavior could be activated to BIOS?
    3 - If, point 2, could not be implemented, I've read in the manual of NDK that I could access to interface directly, avoiding UDP, TCP and IP protocols, and create a package to be send to the network. Do you have any sample of how can I create by hand an Ethernet message?

    Tanks and Best Regards,
    Joaquim Duran

  • Hi Joaquim Duran,

    Joaquim Duran said:
    1 - The M111 device is also provided by us to our clients so we could configure it. Have you any idea about the behaviour of M111?

    I am not familiar with this device.

    Joaquim Duran said:
    2 - Why isn't DSP/BIOS sending DHCP message every 60 seconds? Does this behavior could be activated to BIOS?

    What is this message you are seeing?  Can you give me some more details?  Is it an ACK of sorts? Is it a request to renew the IP lease?

    Joaquim Duran said:
    3 - If, point 2, could not be implemented, I've read in the manual of NDK that I could access to interface directly, avoiding UDP, TCP and IP protocols, and create a package to be send to the network. Do you have any sample of how can I create by hand an Ethernet message?

    Yes, the NDK supports the creation of RAW Ethernet packets.  Please see section "A.17 Raw Ethernet Module" of the NDK Programmer's Guide (spru524_pg.pdf)

    Steve