TCP information

Deepak Jain deepak at ai.net
Thu Sep 18 11:23:26 PDT 2003


> These types of statistics aren't kept.
>
> Generally, they are used only by network researchers, who hack
> their stacks to get them.
>
> They usually do not make it into commercial product distributions
> for performance reasons, and because every byte added to a tcpcb
> structure is one byte less that can be used for something else.
> In practice, adding 134 bytes of statistics to a tcpcb would
> double its size and halve the number of simultaneous connections
> you would be able to support with the same amount of RAM in a
> given machine (as one example), if all of that memory had to
> come out of the same space, all other things being equal.

If the tcpcb struct were expanded/changed and the various increments were
added in the appropriate packet pushing code, this would work right? Is
there something non-obvious that one would need to worry about to undertake
such a project?

Thanks,

Deepak Jain
AiNET



More information about the freebsd-hackers mailing list