Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re: Re: Network Duplex speed test

by Preceptor (Chaplain)
on Oct 03, 2003 at 13:54 UTC ( #296244=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Network Duplex speed test
in thread Network Duplex speed test

The value of $datasize is deliberately larger than SIZE. This is because the mtu on ethernet (max transmission unit) is 1496 bytes. By setting the packet size larger, you are forcing fragmentation which means you're more likely to get a correct response (since at half duplex the frags tend to collides and thus don't reach the remote host).
I'd check it against a host you've deliberately set to half duplex, just to make sure it works if you've changed that behaviour.
Glad it proved useful though.


Comment on Re: Re: Re: Re: Re: Network Duplex speed test
Select or Download Code
Re: Re: Re: Re: Re: Re: Network Duplex speed test
by Anonymous Monk on Oct 03, 2003 at 16:14 UTC
    That's interesting. I couldn't get it to work at all at the lower size. Sorry, more specifically: I get "Unknown error at pingsniff.pl at line 132" (the recv call, for each call). When I upped the SIZE it started working. (didn't capitalize for emphasis, the constant is caps.) Hmm. Some kind of problem where the incoming packet is bigger than the maximum size anticipated. "Unknown error" is frustrating; doesn't tell enough about what happened. Well, thanks yet again for your help.
      In case anyone's interested, I modified the code to increase the size until those Unknown Errors go away. It works at 10268. I suspect this is something to do with recv() function itself wanting to reassemble the original 10240 bytes of data, as opposed to simply receiving a 1500-byte packet.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-22 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls