David Efflandt wrote:
> On Thu, 13 Nov 2003 20:40:46 +0000, Simon Dean <(E-Mail Removed)> wrote:
>
>>Seems I have a slight intermittent problem with outgoing connections.
>
> You really mean connections initiated from outside.
Dang. Ok.
>>I have a Linux router, connecting over an ADSL line, using the Linux
>>speedtouch user space driver (ie ppp0). The MTU for the ppp link is
>>1500, and largely causes no noticable problems.
>
> The mtu of the eth device that transports PPPoE should have default mtu
> 1500. But PPPoE itself has an 8-byte header, so its max mtu is 1492.
Well, I dont have an eth device... since its all handled through ppp. So
a server process operating on the linux server has no eth device as
such, it communicates through ppp0 to the rest of the world. The MTU is
assigned by the ISP and as assigned as 1500.
>>But the only time I've noticed a slowdown, is when Im trying to access
>>the computer from another ADSL connection.
>>
>>eg, my brother who is on AOL, the newsgroup server I run on my machine
>>is apallingly slow.
>
> What is the advertised speed (or actual test speeds) of your adsl. Note
> that your upload is smaller than download. So a server would be much
> slower than you can access internet from there.
512k inwards, 256k outwards. Of course, I dont expect the speed to be
blisteringly fast, but I dont expect my connections to freeze. I also
dont expect the connections to freeze when the MTU is at 1000, but work
fine at 576.
> MTU on your box doing pppoe should not be an issue unless your firewall
> is blocking mtu path discovery. Setting ppp0 mtu lower is not going to
> help.
The linux box is connected directly to the internet (through the ADSL
Speedtouch USB modem). Its actually a pppoa as opposed to pppoe, and
believe me from my tests, in this instance, setting the mtu lower on the
ppp0 link (pppoa link, the direct link to the internet) actually does
help. But agreed that it shouldn't help, because the machines should be
capable of doing path mtu discovery.
Which is the thing that confuses me. From the machine at work, if I ping
with a packet of size 1472, and set the do not fragment bit (in dos,
ping -f -l 1472 my.home.server) I get no warnings, and I get replies
back. So that seems to be OK.
> However, mtu may be an issue if any of your servers is on a LAN behind
> your pppoe box.
Nope. I dont have that setup.
> I forwarded port 25 to a LAN smtp server, and it had
> trouble receiving outside mail (timeout while waiting for data). Once I
> set the LAN nic of smtp server to match pppoe mtu, the mail flowed in.
I've seen that problem before. But with path mtu, that should never be a
problem, right?
> To determine max mtu do the following (to a host that responds to ping)
> from any of your Linux servers:
>
> ping -s 1472 -M do some.internet.host
-M doesn't appear to be a valid option. But 1472 appears fine.
[root@simtext sjdean]# ping -s 1472
www.google.com
PING
www.google.akadns.net (216.239.39.99): 1472 data bytes
1480 bytes from 216.239.39.99: icmp_seq=0 ttl=51 time=161.0 ms
1480 bytes from 216.239.39.99: icmp_seq=1 ttl=51 time=160.4 ms
1480 bytes from 216.239.39.99: icmp_seq=2 ttl=51 time=160.2 ms
> Or make -s smaller until you find the largest -s that does work, then add
> 28 to the -s get max mtu. Not sure what Windows ping switch is for "do
> not fragment".
That's -f.
Z:\>ping -f -l 1472 81.168.19.133
Pinging 81.168.19.133 with 1472 bytes of data:
Reply from 81.168.19.133: bytes=1472 time=159ms TTL=58
Reply from 81.168.19.133: bytes=1472 time=158ms TTL=58
> But you appear to be using a modem that requires a driver, instead of an
> ethernet modem, so it could be some other problem I would not be aware of.
Yes. I havent ruled that out.
Transferring files to my website, housed elsewhere on the internet, I
dont get such freezing in transfer. Certainly it appears that other
servers respond satisfactorily with acks.
08:45:52.150043 212.159.113.89.39822 > 213.232.100.35.ftp-data: .
70953:72401(14
48) ack 1 win 5792 <nop,nop,timestamp 100727315 7977408> [tos 0x8] (ttl
64, id 1
312)
08:45:52.212990 213.232.100.35.ftp-data > 212.159.113.89.39822: . ack
72401 win
63712 <nop,nop,timestamp 7977440 100727315> (DF) (ttl 58, id 26412)
08:45:52.213046 212.159.113.89.39822 > 213.232.100.35.ftp-data: P
72401:73849(14
48) ack 1 win 5792 <nop,nop,timestamp 100727321 7977440> [tos 0x8] (ttl
64, id 1
313)
08:45:52.213091 212.159.113.89.39822 > 213.232.100.35.ftp-data: .
73849:75297(14
48) ack 1 win 5792 <nop,nop,timestamp 100727321 7977440> [tos 0x8] (ttl
64, id 1
314)
(212.159.113.89 is mine)
So it could be a setup with the computer system at work (which is behind
a windows firewall). Although in that case, that doesn't explain the
other satisfactory non-freezing connections to other servers. Perhaps
there is something weird in the pppoa driver that's freezing when I talk
to another ADSL modem!
Cheers
Simon