You are not logged in.

#1 2015-01-26 05:46:56

rossboulet
Member
Registered: 2015-01-23
Posts: 47

MTU issue with IPv6

My ISP (AT&T UVerse) recently turned up IPV6 on my home router. In my quest to do some self education I started experimenting with it. On several machines I run at home, I went to the web site test-ipv6.com. On my Windows 7 machines, it works fine. On two Arch boxes, one the the tests fails. The test in question is the "Test IPv6 large packet". And points to an MTU size issue.

I have tried setting a udev rule to set a smaller MTU, and that seemed to do the trick on one of the Arch machines. On the other, the "ip a s" command seems to indicate the MTU is set to 1280 (I set it with a udev rule). But tracing the traffic with Wireshark (on an independent PC on a common hub to eliminate any possibility of TCP offloading issues) still shows frames being sent in excess of 1400 bytes.

Maybe I am misunderstanding how to set the MTU or what the setting is supposed to do. Any suggestions would be appreciated. I've tried it with both the current linux and linux-lts kernels.

Here are some output snippets:

[rossboulet@butters ~]$ ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 00:11:09:b6:15:b5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.69.115/24 brd 192.168.69.255 scope global enp0s11
       valid_lft forever preferred_lft forever
    inet6 2602:306:c45f:280:3bd4:e0a5:6dba:4ee/64 scope global noprefixroute dynamic 
       valid_lft 2591525sec preferred_lft 604325sec
    inet6 fe80::d21d:b5f3:5cc:b2dd/64 scope link 
       valid_lft forever preferred_lft forever


[rossboulet@butters ~]$ uname -a
Linux butters 3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:23:08 CET 2015 i686 GNU/Linux

[rossboulet@butters ~]$ cat /etc/udev/rules.d/10-network.rules 
ACTION=="add", SUBSYSTEM=="net", KERNEL=="et*", ATTR{mtu}="1280", ATTR{tx_queue_len}="1000"
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wl*", ATTR{mtu}="1280", ATTR{tx_queue_len}="1000"

And the text part of the trace:

[rossboulet@cartman 000]$ cat butters-eth.txt 
No.     Time           Source                Destination           Protocol Length Info                                                            SPort  DPort
   2399 1m 28.159173000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      94     42525→http [SYN] Seq=0 Win=28240 Len=0 MSS=1412 SACK_PERM=1 TSval=14890165 TSecr=0 WS=128 42525  80
   2400 1m 28.237862000s 2001:470:1f04:d63::2  2602:306:c45f:280:3bd4:e0a5:6dba:4ee TCP      94     http→42525 [SYN, ACK] Seq=0 Ack=1 Win=28160 Len=0 MSS=1420 SACK_PERM=1 TSval=182581037 TSecr=14890165 WS=128 80     42525
   2401 1m 28.237884000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      86     42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=0 TSval=14890189 TSecr=182581037 42525  80
   2402 1m 28.238552000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP segment of a reassembled PDU]                              42525  80
   2403 1m 28.238600000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  HTTP     658    GET /ip/?callback=?&size=1600&fill=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1  42525  80
   2406 1m 28.322798000s 2001:470:1f04:d63::2  2602:306:c45f:280:3bd4:e0a5:6dba:4ee TCP      98     [TCP Window Update] http→42525 [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSval=182581059 TSecr=14890189 SLE=1401 SRE=1973 80     42525
   2407 1m 28.340758000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14890220 TSecr=182581059 42525  80
   2408 1m 28.620835000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14890304 TSecr=182581059 42525  80
   2416 1m 29.180836000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14890472 TSecr=182581059 42525  80
   2470 1m 30.304053000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14890809 TSecr=182581059 42525  80
   2550 1m 32.547343000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14891482 TSecr=182581059 42525  80
   2591 1m 37.033827000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14892828 TSecr=182581059 42525  80
   2695 1m 46.006914000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14895520 TSecr=182581059 42525  80
   2969 2m  3.979774000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14900912 TSecr=182581059 42525  80
   3370 2m 39.871943000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14911680 TSecr=182581059 42525  80
   4808 3m 51.763169000s 2602:306:c45f:280:3bd4:e0a5:6dba:4ee 2001:470:1f04:d63::2  TCP      1486   [TCP Retransmission] 42525→http [ACK] Seq=1 Ack=1 Win=28288 Len=1400 TSval=14933248 TSecr=182581059 42525  80
[rossboulet@cartman 000]$

I really hate this damn machine,
I wish that they would sell it.
It never does just what I want,
But only what I tell it.    -Anonymous

Offline

Board footer

Powered by FluxBB