If you do a ifconfig eth0 you get some info about the eth0 nic
eth0 Link encap:Ethernet HWaddr 00:02:B3:63:EF:43 inet addr:x.x.x.x Bcast:x.x.x.x Mask:x.x.x.x UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1166 errors:0 dropped:0 overruns:0 frame:0 TX packets:268 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:104255 (101.8 Kb) TX bytes:19936 (19.4 Kb) Interrupt:5 Base address:0x2000
I wounder about RX bytes and TX bytes, what does it mean, how does it collect its data How often does it zero the counters, every boot, hour or somethings else?. Is the information reliable
Thanks
Tronn
On Wednesday 19 March 2008 08:37:21 Tronn Wærdahl wrote:
If you do a ifconfig eth0 you get some info about the eth0 nic
eth0 Link encap:Ethernet HWaddr 00:02:B3:63:EF:43 inet addr:x.x.x.x Bcast:x.x.x.x Mask:x.x.x.x UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1166 errors:0 dropped:0 overruns:0 frame:0 TX packets:268 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:104255 (101.8 Kb) TX bytes:19936 (19.4 Kb) Interrupt:5 Base address:0x2000
I wounder about RX bytes and TX bytes, what does it mean, how does it collect its data
RX= received, TX = transmitted.
How often does it zero the counters, every boot, hour or somethings else?. Is the information reliable
As far as I know, it zeros on boot. And yes, it is reliable. However, 'transmitted' will include checksums etc., so won't match exactly to a file length. Not an expert explanation, but adequate, I think :-)
Anne
On Wednesday 19 March 2008, Anne Wilson wrote:
On Wednesday 19 March 2008 08:37:21 Tronn Wærdahl wrote:
...
I wounder about RX bytes and TX bytes, what does it mean, how does it collect its data
RX= received, TX = transmitted.
How often does it zero the counters, every boot, hour or somethings else?. Is the information reliable
As far as I know, it zeros on boot.
On interface-bring-up actually :-) (not that far away).
And yes, it is reliable. However, 'transmitted' will include checksums etc.
Yes, this is bytes on ethernet level, not aware of higher levels (like tcp/ip).
Also, these counters are wrapping counters (32-bit on i386 (wraps every now and then), 64-bit on x86_64 ("never" wraps)).
/Peter
, so won't match exactly to a file length. Not an expert explanation, but adequate, I think :-)
Anne