dougthomas Moderator
Joined: 27 Jul 2005 Posts: 271 Location: Essex, UK
|
Posted: Sep 3rd, 2005 05:58 AM Post subject: Network Monitoring - Sockets in VB |
|
|
Hi all,
Any Networking Gurus out there?
I've been having a few problems with my LAN so downloaded a trial version of a Sniffer to see what was going on. I've basically got a 7 PC Infrastructure Network (3 - XP, 2 - 98 SE, 1 - ME and 1 Windows2000) with one of the XP machines acting as the Internet Gateway. 6 of the PCs are Wireless connected and the Gateway machine is connected to the Wireless Ethernet controller by a 100mbs wire.
On running the Sniffer from the Gateway machine, I noticed that each LAN packet was being sent and received twice which is puzzling me. On the grounds that the trial version Sniffer was time limited I set about writing my own (using promiscous sockets in VB6) and having done that I am still seeing all the packets duplicated. I can't see anyway in which I am just reporting them twice as I am event driven by the Socket (if anything, I would expect to miss packets!)
My question is basically, is that "normal"? I am trying to rationalise it by thinking that I am taking a packet off the network which isn't addressed to me so perhaps I'm putting it back on which would show up as two packets.
It seems to be irrespective of protocol (I'm monitoring IP, TCP, ICMP and UDP) Or is there a "feature" of Sockets that I have missed.
Any insights would be gratefully received.
Regards
Doug
PS I found the problem with the LAN, one of my Cats had disturbed the power lead which was causing electrical noise and making the Ethernet controller go on and off line !! (Perhaps I should have used CAT 5 wiring !!!!) |
|