Networking Forums

Networking Forums > Computer Networking > Linux Networking > Timeout too long if no network

Reply
Thread Tools Display Modes

Timeout too long if no network

 
 
tns1
Guest
Posts: n/a

 
      09-13-2003, 04:16 AM
I have a 2.4.18 kernel based system that I use in two configurations. In
the first, the system boots up connected to a LAN, and gets an IP via
DHCP and mounts a remote filesystem. In the second scenario, the system
boots with no LAN connection, and mounts its own filesystem from disk.

It works for both right now, but it takes 2 minutes or so to boot up
without the LAN. The problem is there are two long timeouts at "Sending
dhcp requests ....." and "Reopening network devices.....".

Is there a way to shorten these timeouts to 10secs or so, or at least
turn networking on and off easily via some config file?

I noticed there are quite a few network related options:
#/sbin/sysctl -a

 
Reply With Quote
 
 
 
 
tns1
Guest
Posts: n/a

 
      09-13-2003, 07:08 PM


tns1 wrote:

> I have a 2.4.18 kernel based system that I use in two configurations. In
> the first, the system boots up connected to a LAN, and gets an IP via
> DHCP and mounts a remote filesystem. In the second scenario, the system
> boots with no LAN connection, and mounts its own filesystem from disk.
>
> It works for both right now, but it takes 2 minutes or so to boot up
> without the LAN. The problem is there are two long timeouts at "Sending
> dhcp requests ....." and "Reopening network devices.....".
>
> Is there a way to shorten these timeouts to 10secs or so, or at least
> turn networking on and off easily via some config file?
>
> I noticed there are quite a few network related options:
> #/sbin/sysctl -a
>

Also when the LAN is present, there is a long wait for:
"Looking up port of RPC 100005/1 ...."
This looks like another unnecessarily long timeout.

 
Reply With Quote
 
Daniel Stirnimann
Guest
Posts: n/a

 
      09-13-2003, 09:07 PM
> Is there a way to shorten these timeouts

Hi,

I use Debian and always got annoyed too by the few seconds wasted for
dhcp to finish. Well on my laptop it's just a few seconds and not minutes
;-)
On debian the package dhcp-client [1] is installed by default. Replacing
dhcp-client with pump [2] seems to have helped a little. However, I
disabled the automatic network configuration for the interface eth0 and
created a simple script which I placed in /etc/init.d/pumpeth0.sh in the
end.

--- Script: pumpeth0.sh ---
#!/bin/sh
/sbin/pump -i eth0 >/dev/null 2>&1 &
echo "Backgrounding DHCP configuration for interface eth0"

To complete you just have to make the appropriate symlinks in /etc/rcX.d/

Regards,

Daniel


[1] http://www.isc.org
[2] This is the DHCP/BOOTP client written by RedHat.
 
Reply With Quote
 
tns1
Guest
Posts: n/a

 
      09-15-2003, 05:13 PM


Daniel Stirnimann wrote:
>>Is there a way to shorten these timeouts

>
> On debian the package dhcp-client [1] is installed by default. Replacing
> dhcp-client with pump [2] seems to have helped a little. However, I
> disabled the automatic network configuration for the interface eth0
>

Where specifically did you disable this?

I was hoping I could leave everything enabled and just shorten the
delays (timeouts) by some ifconfig parameter or conf file entry.

 
Reply With Quote
 
Daniel Stirnimann
Guest
Posts: n/a

 
      09-15-2003, 06:55 PM
> Where specifically did you disable this?

I just commented the two eth0 entries in /etc/network/interfaces out.
This is debian specific and propably different on other linux
distributions.

> I was hoping I could leave everything enabled and just shorten the
> delays (timeouts) by some ifconfig parameter or conf file entry.


You have to look in the dhcp client configuration file.
For pump you can define the timeout in /etc/pump.conf

There is propably a similar setting for the dhcp client you are using.

Regards,
Daniel
 
Reply With Quote
 
tns1
Guest
Posts: n/a

 
      09-17-2003, 09:18 PM

>Long delay during "Sending dhcp requests ....."
>Also when the LAN is present, there is a long wait for:
>"Looking up port of RPC 100005/1 ...."


>>I was hoping I could leave everything enabled and just shorten the
>>delays (timeouts) by some ifconfig parameter or conf file entry.

>
> You have to look in the dhcp client configuration file.
> For pump you can define the timeout in /etc/pump.conf


After long and tedious greps, I found the DHCP timeout in (surprise)
ipconfig.h . There are a bunch of timeout constants, but it looks like
the defaults are set to 2 reopens, 6 tries with exponential backoff that
roughly doubles the timeout each try. This looks like a worst case
network configuration. I should be able to trim this way back and still
get a connection with:
CONF_OPEN_RETRIES can be lowered from 2 to 1
CONF_SEND_RETRIES can be lowered from 6 to 3

Sadly, these are only changed by re-compiling. I'll get to it later.

Finding the RPC timeout has proven too convoluted for me to follow.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure ARP-Request-Timeout? (NOT Cache-Timeout!) Mario lzteM Linux Networking 0 07-28-2008 09:41 AM
Network Authentication Timeout Mikey_N Windows Networking 1 06-18-2005 02:56 PM
Network timeout setting Guoping Jiang Linux Networking 1 11-27-2003 07:24 AM
Timeout For ARP Requests To Invalid IP Takes Too Long Aaron Manning Linux Networking 3 09-12-2003 01:58 PM
changing network timeout Robbie Windows Networking 0 08-12-2003 06:08 AM



1 2 3 4 5 6 7 8 9 10 11