LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Network card Send and Recived packets (https://www.linuxquestions.org/questions/linux-kernel-70/network-card-send-and-recived-packets-512500/)

winxandlinx 12-21-2006 03:33 AM

Network card Send and Recived packets
 
Hi Everyone

i am using redhat version of linux

Is any script to monitor the Send and Recived packet

of my ethernet card

In windows it can be possible netstat -e

Sure it can be possible by Linux

Helping this issue will be greatly appricated

Thanks & Regards
winxandlinx

charleykadet 12-22-2006 12:38 PM

In linux netstat exist too.. for stats.. netstat -s

winxandlinx 12-24-2006 02:42 AM

Here where i can find exact tcp ip send

and recived pacs




netstat -s

Ip:
182616 total packets received
0 forwarded
0 incoming packets discarded
111082 incoming packets delivered
103083 requests sent out
46 fragments dropped after timeout
47094 reassemblies required
146 packets reassembled ok
23247 packet reassembles failed
Icmp:
3568 ICMP messages received
3409 input ICMP message failed.
ICMP input histogram:
destination unreachable: 3414
echo requests: 77
echo replies: 77
106 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 29
echo replies: 77
Tcp:
2490 active connections openings
747 passive connection openings
1 failed connection attempts
99 connection resets received
1 connections established
105685 segments received
88599 segments send out
118 segments retransmited
0 bad segments received.
9071 resets sent
Udp:
1807 packets received
22 packets to unknown port received.
0 packet receive errors
1832 packets sent
TcpExt:
34 resets received for embryonic SYN_RECV sockets
ArpFilter: 0
808 TCP sockets finished time wait in fast timer
1 packets rejects in established connections because of timestamp
3291 delayed acks sent
Quick ack mode was activated 413 times
632 packets directly queued to recvmsg prequeue.
1907 packets directly received from backlog
158806 packets directly received from prequeue
47970 packets header predicted
136 packets header predicted and directly queued to user
TCPPureAcks: 7409
TCPHPAcks: 10749
TCPRenoRecovery: 0
TCPSackRecovery: 1
TCPSACKReneging: 0
TCPFACKReorder: 0
TCPSACKReorder: 0
TCPRenoReorder: 0
TCPTSReorder: 0
TCPFullUndo: 0
TCPPartialUndo: 0
TCPDSACKUndo: 0
TCPLossUndo: 12
TCPLoss: 1
TCPLostRetransmit: 0
TCPRenoFailures: 0
TCPSackFailures: 7
TCPLossFailures: 4
TCPFastRetrans: 1
TCPForwardRetrans: 0
TCPSlowStartRetrans: 8
TCPTimeouts: 65
TCPRenoRecoveryFail: 0
TCPSackRecoveryFail: 0
TCPSchedulerFailed: 0
TCPRcvCollapsed: 0
TCPDSACKOldSent: 257
TCPDSACKOfoSent: 0
TCPDSACKRecv: 9
TCPDSACKOfoRecv: 0
TCPAbortOnSyn: 0
TCPAbortOnData: 109
TCPAbortOnClose: 71
TCPAbortOnMemory: 0
TCPAbortOnTimeout: 3
TCPAbortOnLinger: 0
TCPAbortFailed: 0
TCPMemoryPressures: 0

jacobselvin 12-24-2006 04:37 AM

Try using the Ethereal utility. I'm not sure whether it's available in the command prompt mode. But a GUI is available using which you can capture the the packets and print the details.


All times are GMT -5. The time now is 11:27 PM.