How to collect network information on LINUX platform

From: Benjamin Wang (zwang2_at_lucent.com)
Date: 05/30/05


Date: Mon, 30 May 2005 16:00:01 +0800

Hello,

I need to collect some network information about TCP, IP, UDP and SCTP on
linux platform. About IP, I need to collect such as number of packets
received , packets transmitted, bytes received, bytes transmitted, bad
packets received, packet transmit errors, received packets dropped and
transmit packets dropped.
About TCP and UDP, I need to collect the number of connection opens,
segments received and so on. About SCTP, I need to collect the number of
failed connection attempts, chunks received and so on.

I think i could get some of them from the file /proc/net/snmp. But for bytes
received and resets sent, I do not know how to get it. And I don't know how
to get information about SCTP.

Could you tell me how I can get those inforamtion? Also, could I get thost
information by ioctl()? how?

Thanks very much!



Relevant Pages

  • Re: WinXP and raw sockets ?
    ... IMHO they look for SCTP as TCP in service provider, ... > Arkady Frenkel wrote: ... There is no sending/receiving of TCP or UDP ... > Oh, I can btw send the SCTP packets, seems to work. ...
    (microsoft.public.win32.programmer.networks)
  • Re: WinXP and raw sockets ?
    ... Arkady Frenkel wrote: ... There is no sending/receiving of TCP or UDP packets.. ... Oh, I can btw send the SCTP packets, seems to work. ...
    (microsoft.public.win32.programmer.networks)
  • Re: UPD better than TCP in streaming video/audio ?
    ... > UDP gains speed over TCP because it carries no information that would ... it doesn't even know that packets were lost. ... which is perfect for UDP. ... > Finally, there's the possibility of multicast data - for instance, a live ...
    (microsoft.public.win32.programmer.networks)
  • Re: Linux equivalent for ioctlsocket(FIONREAD) on datagram sockets
    ... Imagine that fast CPU sends a burst of UDP ... spirit of UDP standard should do in that particular case? ... blocking a clling thread until the NIC hardware ... reads one or more packets from socket's send buffer freeing up space ...
    (comp.os.linux.development.apps)
  • Re: NTP and Firewall help needed.
    ... >>port 123 for udp and tcp. ... The action here is applied for packets that fall off ... > - ACCEPT any and all traffic coming from the localhost interface ...
    (comp.os.linux.setup)