// JP opened flex table

Click to See Complete Forum and Search --> : network usage


kirannapit
March 9th, 2004, 06:10 AM
hi
i need help on how to obtain network statistoics,like, no of packets/sec,bandwith,packets send/received,network usage, etc and other details. What i have used is got the raw packets using WSAIoctl , with SIO_RCVALL option with appropriated headers (IP,TCP,UDP etc).
but how to go further, with packets,how to calculate no of packets/sec send and received,and other details, bandwith, where is n/w congestion,high traffic, etc. Depending on this i need to plot graph.
Also i do not want to use WinPcap Library or third party libs.
kiran

Mick
March 9th, 2004, 06:22 AM
Do you consider microsofts IpHlpApi (dll) to be a third party lib? If not then use the api calls to get your stats...

eg:
GetTcpStatistics(...)
GetUdpStatistics(...)
and so on and so forth.

Andreas Masur
March 9th, 2004, 07:12 AM
[Moved thread]

kirannapit
March 9th, 2004, 10:01 PM
I dont think IphlpApi is third party, infact i have used it also to find mac addresses. and other things. But do the functions to get statistics give network stats of overall, i mean of those concerned with routers and switches. Because my main aim is to find the traffic and congestion around central hubs(switches).
Also thanks for help, i d really look around with IphlpApi for the same.
kiran

Mick
March 9th, 2004, 10:07 PM
SNMP? I mean if you are going to poll routers/hubs <everything that supporst SNMP>

kirannapit
March 10th, 2004, 05:26 AM
yes,
will the whole windows snmp is supporting for the cause of mine , or partly i'll have to take support of Iphlpapi and partly that of snmp.
i.e if router or switch is not supporting snmp, what to do?
somebody told me ICMP will give u some results.
definately i am also opting for snmp, for other than that of router or switch monitoring.
kiran

Mick
March 10th, 2004, 05:49 AM
Originally posted by kirannapit
yes,
will the whole windows snmp is supporting for the cause of mine , or partly i'll have to take support of Iphlpapi and partly that of snmp.
i.e if router or switch is not supporting snmp, what to do?
somebody told me ICMP will give u some results.
definately i am also opting for snmp, for other than that of router or switch monitoring.
kiran

every router/bridge/term server I know of supports SNMP. But I have to give over on this, it's been 10 years since I worked the network management side (yea it was netview/openview/sunnet manager back then under UN*X) so i have not explored SNMP or SNMPv2 on the windoze side.

dass1z
May 24th, 2005, 11:58 PM
hi
i need help on how to obtain network statistoics,like, no of packets/sec,bandwith,packets send/received,network usage, etc and other details. What i have used is got the raw packets using WSAIoctl , with SIO_RCVALL option with appropriated headers (IP,TCP,UDP etc).
but how to go further, with packets,how to calculate no of packets/sec send and received,and other details, bandwith, where is n/w congestion,high traffic, etc. Depending on this i need to plot graph.
Also i do not want to use WinPcap Library or third party libs.
kiran

Hi Kiran,
even me facing the same problem i mean i got to plot the network usage on the Graph ( very simple one, just like we see in the task manager), can u help me if you found some solution
Thx
-dass

//JP added flex table