Re: pause the NIC
From: wonder (dreams_at_to.com)
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.
> However, FreeBSD doesn't have similar thing...
> On Tue, 3 Aug 2004, Simon Barner wrote:
>>Date: 3 Aug 2004 23:17:50 GMT
>>From: Simon Barner <email@example.com>
>>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
>>echo -n \*;
>>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...