[Web10g-user] Fw: Statistics validation

hsirk hsirk_6 at yahoo.com
Wed Aug 6 20:26:04 EDT 2014



Resending ...bounced the first time.


On Wednesday, August 6, 2014 5:22 PM, hsirk <hsirk_6 at yahoo.com> wrote:
 


Hello,
I have been playing around with the web10g patch.
Back ported the web10g-v2.6.38 patch to centos6.5 (2.6.32-431).

Started validating the variables .  


So far i have queries about the below two stats.

1.

tcp_estats_update_segsend()
 stats->estats_vars.DataOctetsOut += len;

Based on the description of the variable,shouldn't the length be just the  
length of tcp data instead of the whole packet .(something line  seg - end_seg?)
VariableName:	DataOctetsOut
Scope:		RFC4898
ShortDescr:	Data Octets Out
Units:		octets
ProcType:	ZeroBasedCounter32
Description:	The number of octets of data contained in transmitted segments, including retransmitted data.  Note that this does not include TCP headers.
R/W:		read-only


2.void tcp_estats_update_rcvd(struct tcp_sock *tp, u32 seq)
    stats->estats_vars.ThruOctetsReceived += seq - tp->rcv_nxt 

Based on the definition shouldn't rcv_wup be used ( ie something like tp->rcv_wup - tp->seq )
cause AFAIK rcv_nxt  indicates data that is received but not yet acked.


VariableName:	ThruOctetsReceived
Scope:		RFC4898
ShortDescr:	Total throughput octets received
Units:		octets
ProcType:	ZeroBasedCounter32
Description:	The number of octets for which cumulative acknowledgments have been sent.  Note that this will be the sum of changes to tcpEStatsAppRcvNxt.
R/W:		read-only
If my understanding is wrong or i am just looking at the wrong doc :). Please point me to the right one.

Regards
Krishnan
PS: if you would like the ported rh6.5 patch . Do let me know i will be more than happy to share it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.psc.edu/pipermail/web10g-user/attachments/20140806/4af9dee6/attachment.html 


More information about the Web10g-user mailing list