Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to determine Maximum Transmission Unit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to determine Maximum Transmission Unit
Authored by: murali1080 on Feb 07, '06 11:06:24AM

Wouldn't command line tool, ifconfig, do the same? Why do we need a new script?



[ Reply to This | # ]
A script to determine Maximum Transmission Unit
Authored by: kaih on Feb 07, '06 01:45:44PM

This script doesn't set your MTU, rather it determines what the maximum ethernet frame size is that you can use, without fragmentation.
Setting the MTU is then left up to you.

Now, it's worth noting that setting the MTU to the biggest value it can be isn't always the best setting.
For instance, on an ADSL connection, all the heavy lifting is done by an ATM network and ATM cells are 53 bytes, so if you're on ADSL, you might get better performance by setting your MTU to the biggest value it can be that is a multiple of 53 - which, if you can use 1500 byte frames, make your MTU 1484 bytes and then you're using a whole multiple of ATM cells on the backbone network for each ethernet frame you send.

---
k:.



[ Reply to This | # ]
A script to determine Maximum Transmission Unit
Authored by: codewhore on Feb 14, '06 05:48:41AM
Short answer, yes.

Idun:~ timo$ ifconfig
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...

And to modify MTU on interface en0 to size of 1436

Idun:~ timo$ ifconfig en0 MTU 1436


[ Reply to This | # ]