[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closing TCP connections



>
> From:  Christopher Clark <[email protected]>
> To:    [email protected]
> Subject: Closing TCP connections
> Date:  Fri, 27 Mar 1998 15:39:33 GMT
>
> Hello
> 
> Using the standard one way TCP implementation, I have the below code to
> simulate many TCP connections being initiated over time from a set of
> source hosts to a set of sinks. I am concerned that I may not be causing
> connections to be closed properly, meaning that if I run a larger
> simulation, the maximum number of connections from source to sink will be
> reached - is this possible? 

my guess is that by creating a new tcp src/sink pair for each connection
you would probably run out of port #s or something.  Did you try?

> If I use FullTCP, what would cause a FIN packet to be sent?

Whenever you execute:

	$tcpfull close

There is one other way, and that is if you set the "close_on_empty_" flag,
when the tcp completes its transfer of the bytes covered in an "advance"
operation, the tcp will close its connection.

- K