Re: Weird Internet routing / mtu setting / browser / packet fragmentation problem



On Wed, Jul 23, 2008 at 06:14:25PM +0100, j t wrote:
Hi all.

Does anyone here know how I can diagnose exactly where / why the
following problem occurs...?

I've got a typical adsl setup (in the UK) with my internal
(192.168.0.*) network behind a nat router. Everything works perfectly
(!) except for 1 problem, which is:

If I try to view http://www.osnews.com from any of my linux (current
debian lenny) boxen using iceweasel or epiphany, the page starts to
load but never finishes (the spinner spins for ever).

I'm baffled because the problem goes away if I do any one of the
following things:

a) I use "wget -p http://www.osnews.com"; instead of iceweasel or epiphany,
or
b) I change my workstation's mtu from 1500 to 1400
or
c) I get my adsl router to request a public ip address in the address
space 96.x.x.x or 97.x.x.x rather than 78.x.x.x (I can do this, since
my ISP provides various disparate dhcp ranges).
or
d) I use firefox under WinXP (yeuchh).

While I can get rid of the problem by doing any of these things, I
would prefer to be able to go to my ISP a say "Hey, your network's
broken, this one-line command (run from my linux machine) proves it's
broken". Does anyone know what that one-line command is? (I'm thinking
of some kind of "ping -s 1500" style thing, but I don't understand
enough about tcp/ip to know the exact answer)

Thanks for any help you can offer.

your modem/router (which ever terminates the pppoe link) should be
resetting the mtu on outgoing syn packets.

under linux, try tcpdumpt -pni eth0 host www.osnews.com
you will see what the mtu is being used

man ping

-s packetsize
Specifies the number of data bytes to be sent. The
default is 56, which translates into 64 ICMP data bytes when combined
with the 8 bytes
of ICMP header data.

-M hint
Select Path MTU Discovery strategy. hint may be
either do (prohibit fragmentation, even local one), want (do PMTU
discovery, fragment
locally when packet size is large), or dont (do not set DF
flag).

these are the two flags, set do not fragment and start at 1400 for the
packet size upto ?

have a google for adsl black hole detection



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



--
"I am mindful not only of preserving executive powers for myself, but of predecessors as well."

- George W. Bush
01/29/2001
Washington, DC

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: sshd hangs after SSH2_MSG_KEXINIT sent - Fedora Core 5 update
    ... For each network interface on both client and server set the MTU to 576, ... Only the first fragment has TCP port numbers. ... such devices should perform packet reassembly first so as to properly consider fragmented packets. ...
    (SSH)
  • Re: OID_TCP_TASK_OFFLOAD question
    ... Well, right, TCP packets will not fragment at sender because there is no ... you just send up to the MTU limit. ... a TCP segment usually fits in a single network packet at the ...
    (microsoft.public.development.device.drivers)
  • Re: MSS on router, why?
    ... The proper way to describe the ICMP packet which is supposed to be ... returned by a router which cannot forward the IP packet which is too ... Because ICMP was defined before Path MTU Discovery (1981 and 1990 ... fragmentation and try to use path MTU discovery, ...
    (comp.dcom.sys.cisco)
  • Re: Strange MTU Problem
    ... When I was just playing with the MTU and leaving the MRU and stuff alone, ... this is the largest sized packet you will transmit. ... As most serial connections are substantially faster than that, ...
    (comp.os.linux.networking)
  • Re: 6.2 mtu now limits size of incomming packet
    ... to accept a packet on an interface that is larger than the mtu on ... I'd like to see the ability to enforce interface MTU ... The networks that are apparently working fine are most likely misconfigured, ... Others have made a case for permitting an interface to accept as large a packet as it can, ...
    (freebsd-net)