Re: pause the NIC
From: wonder (dreams_at_to.com)
Date: 08/04/04
- Next message: wonder: "Re: ctrl+alt+backspace turns the computer off !"
- Previous message: Dariusz Kuliński / TaKeDa: "Re: pause the NIC"
- In reply to: Suihong Liang: "Re: pause the NIC"
- Next in thread: Suihong Liang: "Re: pause the NIC"
- Reply: Suihong Liang: "Re: pause the NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 04 Aug 2004 10:37:25 +0800
Suihong Liang wrote:
> Yeah right, TCP timeout guarantees that. My situation is that I am doing
> some testing, I need some repeatable & accurate control, so that I can
> enjoy some coffee while the machine does the work.
>
> In Linux, I could control a specific NIC using
> netif_stop_queue()/netif_start_queue() and the watchdog.
There certainly many ways to achieve the same goal, these functions are
not neccessary. The way I m using in BSD is trigger your IPF firewall
to do so by using a simple script and put it in the cron job or running
it in the background.
Cheers
Sam
>
> However, FreeBSD doesn't have similar thing...
>
> suihong
>
> On Tue, 3 Aug 2004, Simon Barner wrote:
>
>
>>Date: 3 Aug 2004 23:17:50 GMT
>>From: Simon Barner <barner@in.tum.de>
>>Newsgroups: comp.unix.bsd.freebsd.misc
>>Subject: Re: pause the NIC
>>
>>
>>>Oh sorry, didn't explain it clearly. I don't want to disrupt all the open
>>>connections, eg, a ssh session. ifconfig down will cause them failed.
>>
>>Really? I just tried the following shell script at the remote end, and
>>took my link down and the back up.
>>
>>while [ 1 ]; do
>>sleep 1;
>>echo -n \*;
>>done;
>>
>>After a while, all the missing * were displayed (probably this was due
>>to normal TCP retransmits).
>>
>>Of course, sooner or latter, the remote service will time out and terminate
>>the session. I see no way how you could influence that on your local machine.
>>
>>For ssh, setting "KeepAlive" to "No" could improve things...
>>
>>Simon
>>
>
>
- Next message: wonder: "Re: ctrl+alt+backspace turns the computer off !"
- Previous message: Dariusz Kuliński / TaKeDa: "Re: pause the NIC"
- In reply to: Suihong Liang: "Re: pause the NIC"
- Next in thread: Suihong Liang: "Re: pause the NIC"
- Reply: Suihong Liang: "Re: pause the NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]