5 ms·
> you cannot selectively use mtu's depending on routes You absolutely can. Assume a single network port on the server. On BSD, it looks something like this:
by toast0 5y ago
> you cannot selectively use mtu's depending on routes
You absolutely can. Assume a single network port on the server.
On BSD, it looks something like this:
ifconfig foo 10.x.y.z/24 mtu 9000
route add default 10.x.y.1 -mtu 1500
route add 10.0.0.0/8 10.x.y.1
Linux has a mss attribute on routes which should work similarly.
Roll your own IPV6 version, but radvd can sort of maybe offer network routes I think, so it might be slightly easier to config it that way.
- r1ch 5y agoDoing this requires fragmenting at the IP level, which is notoriously unreliable over the internet. The other option is to send PMTU exceeded messages telling the sender to drop their MTU for the path, adding significant overhead for every new connection (assuming the sender even listens to such messages).
- toast0 5y agoHow so? In my example, the default route has a MTU of 1500 and the localnet route has a MTU of whatever the interface is (9000 in this example) When you send a packet, the destination route is looked up to determine the MTU. If you send to the internet, you'll get small packets (not IP fragments), and 10. will get large packets.
- r1ch 5y agoThat works fine for locally generated traffic which has knowledge of the routes. For hosts going through a router, they have no idea what the outbound link MTU is, requiring PMTU discovery or messing with TCP MSS.
- toast0 5y agoThe claim I replied to was that you couldn't run one MTU for some routes and one for other routes. You absolutely can. But running your default route at 9000 is ill-advised as you mention. If your datacenter routes aren't simply rfc1918 addresses, it would be harder to set the end host routes, and the effort to get larger packets on the wire might not be worth the rather small benefits.