Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to examine utilization of the TCP write buffer ?

Reply
Thread Tools Display Modes

How to examine utilization of the TCP write buffer ?

 
 
Richard Eich
Guest
Posts: n/a

 
      11-28-2006, 05:25 PM
Linux (SuSE 9.3 2.6.11 i686)

I've been trying to find a command or system call that will return
the current utilization level of the TCP write buffer.

Can anyone help?
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      11-28-2006, 08:37 PM

Richard Eich wrote:
> Linux (SuSE 9.3 2.6.11 i686)
>
> I've been trying to find a command or system call that will return
> the current utilization level of the TCP write buffer.
>
> Can anyone help?


What is your outer problem? What do you plan to do with this
information and why do you think you need it? (There's at least an 80%
chance this is not the actual information you need.)

DS

 
Reply With Quote
 
Maxim Yegorushkin
Guest
Posts: n/a

 
      12-01-2006, 08:33 AM

Richard Eich wrote:

> Linux (SuSE 9.3 2.6.11 i686)
>
> I've been trying to find a command or system call that will return
> the current utilization level of the TCP write buffer.


ioctl(SIOCOUTQ)

http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405

 
Reply With Quote
 
Richard Eich
Guest
Posts: n/a

 
      12-01-2006, 03:31 PM
(E-Mail Removed) wrote...
>
> Richard Eich wrote:
>
> > Linux (SuSE 9.3 2.6.11 i686)
> >
> > I've been trying to find a command or system call that will return
> > the current utilization level of the TCP write buffer.

>
> ioctl(SIOCOUTQ)
>
> http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405


Maxim,

Thank you very much. SIOCOUTQ isn't in Stevens -- I evidentally need
a more current reference.

Best,
RE
 
Reply With Quote
 
Casper H.S. Dik
Guest
Posts: n/a

 
      12-01-2006, 03:34 PM
Richard Eich <(E-Mail Removed)> writes:

>(E-Mail Removed) wrote...
>>
>> Richard Eich wrote:
>>
>> > Linux (SuSE 9.3 2.6.11 i686)
>> >
>> > I've been trying to find a command or system call that will return
>> > the current utilization level of the TCP write buffer.

>>
>> ioctl(SIOCOUTQ)
>>
>> http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405


>Maxim,


>Thank you very much. SIOCOUTQ isn't in Stevens -- I evidentally need
>a more current reference.


It's not very portable.....

I wonder what use you think this has.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
 
Reply With Quote
 
drhowarddrfine
Guest
Posts: n/a

 
      12-01-2006, 05:19 PM
Richard Eich wrote:
> (E-Mail Removed) wrote...
>> Richard Eich wrote:
>>
>>> Linux (SuSE 9.3 2.6.11 i686)
>>>
>>> I've been trying to find a command or system call that will return
>>> the current utilization level of the TCP write buffer.

>> ioctl(SIOCOUTQ)
>>
>> http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405

>
> Maxim,
>
> Thank you very much. SIOCOUTQ isn't in Stevens -- I evidentally need
> a more current reference.
>
> Best,
> RE

Stevens isn't current?
 
Reply With Quote
 
Maxim Yegorushkin
Guest
Posts: n/a

 
      12-01-2006, 05:21 PM

Casper H.S. Dik wrote:
> Richard Eich <(E-Mail Removed)> writes:
>
> >(E-Mail Removed) wrote...
> >>
> >> Richard Eich wrote:
> >>
> >> > Linux (SuSE 9.3 2.6.11 i686)
> >> >
> >> > I've been trying to find a command or system call that will return
> >> > the current utilization level of the TCP write buffer.
> >>
> >> ioctl(SIOCOUTQ)
> >>
> >> http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405

>
> >Maxim,

>
> >Thank you very much. SIOCOUTQ isn't in Stevens -- I evidentally need
> >a more current reference.

>
> It's not very portable.....


Casper, true, it is not portable.

Having noted the first line in the original question, I thought it was
all right to post a linux specific solution.

 
Reply With Quote
 
Maxim Yegorushkin
Guest
Posts: n/a

 
      12-01-2006, 05:30 PM

Richard Eich wrote:
> (E-Mail Removed) wrote...
> >
> > Richard Eich wrote:
> >
> > > Linux (SuSE 9.3 2.6.11 i686)
> > >
> > > I've been trying to find a command or system call that will return
> > > the current utilization level of the TCP write buffer.

> >
> > ioctl(SIOCOUTQ)
> >
> > http://www.linux-m32r.org/lxr/http/s...pv4/tcp.c#l405

>
> Maxim,
>
> Thank you very much. SIOCOUTQ isn't in Stevens -- I evidentally need
> a more current reference.


It's in man tcp(7).

You might also find interestion this tcp ioctl:

TCP_INFO
Used to collect information about this socket. The
kernel
returns a struct tcp_info as defined in the
file
/usr/include/linux/tcp.h. This option should not be
used in
code intended to be portable.

Some other interesting linux networking implementation details in man
articles netdevice(7), socket(7), ip(7), udp(7), unix(7).

 
Reply With Quote
 
Maxim Yegorushkin
Guest
Posts: n/a

 
      12-01-2006, 05:41 PM

Maxim Yegorushkin wrote:

> You might also find interestion this tcp ioctl:
>
> TCP_INFO


Mistake, it's getsockopt, not ioctl.

 
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
nc to examine vnc...etc.. traffic ? no-toppost@motz.invalid Linux Networking 0 07-15-2009 04:01 PM
nc to examine vnc...etc.. traffic ? no-toppost@motz.invalid Linux Networking 0 07-15-2009 03:46 PM
How to set Max UDP Receive Buffer Size and Max UDP Transmit Buffer Size under Windows 2000 and Windows 2003 ? msnews.microsoft.com Windows Networking 0 09-14-2005 07:20 PM
Network utilization 3-5% BT News Home Networking 4 03-28-2005 08:06 PM
bandwidth utilization Peter Halliday Linux Networking 3 02-12-2004 07:59 AM



1 2 3 4 5 6 7 8 9 10 11