netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4 kern: want to print TCP cwnd with every packet
@ 2006-05-06 14:19 George P Nychis
  2006-05-08 17:31 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: George P Nychis @ 2006-05-06 14:19 UTC (permalink / raw)
  To: netdev

Hi,

I'd like to print the TCP cwnd for the sender, with every packet before it is sent out.  This way i could plot the sender window over time to show TCP's behavior in certain conditions.

I see in tcp_input.c several places where i could print the current window, but i'd have to add code in multiple places.  I was wondering if there is any 1 place, right before a packet is sent out, that i could printk() tp->snd_cwnd

Thanks!
George


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.4 kern: want to print TCP cwnd with every packet
  2006-05-06 14:19 2.4 kern: want to print TCP cwnd with every packet George P Nychis
@ 2006-05-08 17:31 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2006-05-08 17:31 UTC (permalink / raw)
  To: George P Nychis; +Cc: netdev

On Sat, 6 May 2006 10:19:16 -0400 (EDT)
"George P Nychis" <gnychis@cmu.edu> wrote:

> Hi,
> 
> I'd like to print the TCP cwnd for the sender, with every packet before it is sent out.  This way i could plot the sender window over time to show TCP's behavior in certain conditions.
> 
> I see in tcp_input.c several places where i could print the current window, but i'd have to add code in multiple places.  I was wondering if there is any 1 place, right before a packet is sent out, that i could printk() tp->snd_cwnd
> 
> Thanks!
> George
> 
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Look at http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-08 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-06 14:19 2.4 kern: want to print TCP cwnd with every packet George P Nychis
2006-05-08 17:31 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).