View previous topic :: View next topic |
Author |
Message |
gigsvoo Just Arrived
Joined: 16 Aug 2002 Posts: 0
|
Posted: Wed Dec 11, 2002 9:20 am Post subject: PING to test |
|
|
Hi there,
This question seems to be over wimped, but I still have to ask.
In Windows, we can test the MTU package size by using:
C:\> ping -F -I nnnn nnn.nnn.nnn
(where n is numbers )
But, in UNIX/Linux, how do I do the same thing?
The reason being is I thought of can do the same thing similar to this article in Linux?
http://asia.cnet.com/itmanager/netadmin/0,39006400,39089320,00.htm
What do you think?
|
|
Back to top |
|
|
ShaolinTiger Forum Fanatic
Joined: 18 Apr 2002 Posts: 16777215 Location: Kuala Lumpur, Malaysia
|
Posted: Fri Dec 13, 2002 12:00 pm Post subject: |
|
|
You can check the performance with:
http://www.netperf.org/
eth0 Link encap:Ethernet HWaddr 00:08:C7:33:F3:A8
inet addr:192.168.1.3 Bcast:192.168.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3521270 errors:0 dropped:0 overruns:0 frame:0
TX packets:2930688 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:100
RX bytes:3866756450 (3.6 GiB) TX bytes:2179422397 (2.0 GiB)
Interrupt:5 Base address:0x2800
MTU is shown in ifconfig
Some info on optimising here:
http://www.webcom.com/~llarrow/mtumss.html
You can usually set it with ifconfig ethX mtu NNN
man ifconfig for more info.
Hope this is what you need
|
|
Back to top |
|
|
gigsvoo Just Arrived
Joined: 16 Aug 2002 Posts: 0
|
Posted: Mon Dec 16, 2002 3:11 am Post subject: |
|
|
I have been told that the best value for LAN is 1492, do you agree? Why?
|
|
Back to top |
|
|
Weaver Trusted SF Member
Joined: 04 Jan 2003 Posts: 0 Location: WI, USA
|
Posted: Sat Jan 04, 2003 6:53 am Post subject: |
|
|
Just out of curiosity, where did you hear that from? Did they say why?
-Weaver
|
|
Back to top |
|
|
gigsvoo Just Arrived
Joined: 16 Aug 2002 Posts: 0
|
Posted: Sun Jan 05, 2003 5:07 am Post subject: |
|
|
That is on ExtremeTech forum. Someone told me that this is the general working MTU size. But I do make a test and found that my environment work best in 1470.
|
|
Back to top |
|
|
max_blakk Just Arrived
Joined: 29 Oct 2002 Posts: 0 Location: South Wales UK
|
Posted: Sun Jan 05, 2003 3:24 pm Post subject: |
|
|
Try getting Hping for Linux very nice tool...
Hping www.hping.org/
You can have fun with friends with this, make um think they are being probed by Yahoo... (but be sure to test on your own machines first with a packet sniffer. Ethereal rocks at this... )
With the mtu I use 1460 1500 minus the standard packet header 40 bytes.
Also I have additional commented lines in my options file for a lower mtu for gaming. I get better latency and faster game play with around 552 mileage varies though.
hth
|
|
Back to top |
|
|
squidly Trusted SF Member
Joined: 07 Oct 2002 Posts: 16777215 Location: Umm.. I dont know.. somewhere
|
Posted: Sun Jan 05, 2003 8:18 pm Post subject: |
|
|
In general the twisted pair only makes the packed 1500 bites for each packet. Most OSes dont bother to play with the ethernet headder and let that be set and handeled by the card (if I rembemer correctly) and the 1460 MTU is the packet size minus the 40 bit headder.
That is generaly the size for ethernet. I'm still trying to figure out why they decided on such a small size for the packet though. Propibaly because of the expence of memory way back when (before memory was measured in KB ).
If you want to take down a network try playing with a small packet size like about 500 bites and then start pinging places. hping is a great tool.. Very usefull for playing with packets. Also check out fragrouter (I dont have a url for that but I know you can find it on google).
Check out RFC826 for more information on the ethernet protocols.
|
|
Back to top |
|
|
gigsvoo Just Arrived
Joined: 16 Aug 2002 Posts: 0
|
Posted: Mon Jan 06, 2003 3:42 am Post subject: |
|
|
OK, great xplanation guys thanks alot! But do your think that the MTU size works for me? I am running in a 10MBps LAN and connected thru a floor switch (actually is a hub coz some floors uses 100MBps but ours still 10Mbps), and connected to the backbone of ATM.
|
|
Back to top |
|
|
|