tnt Veteran
Joined: 27 Feb 2004 Posts: 1227
|
Posted: Sun Jun 12, 2005 11:49 pm Post subject: ADSL performance/features questions |
|
|
I've never used ADSL and now I wait to get one, so I have few questions about it.
1. Is it better to set up my network like this: Code: | my network (192.168.1.0/24)
||
\/
eth0 (192.168.1.100) of my gentoo server
||
\/
ppp0 (valid Internet IP) over eth1
||
\/
adsl modem (in bridge mode, I guess)
||
\/
Internet |
or like this Code: | my network (192.168.1.0/24)
||
\/
eth0 (192.168.1.100) of my gentoo server
||
\/
eth1 (192.168.2.100) with default gw 192.168.2.101
||
\/
adsl modem (192.168.2.101 in router mode, I guess)
||
\/
adsl modem (valid Internet IP with port forwarding for access to my gentoo server from Internet)
||
\/
Internet |
2. I've found out that some modems have iformations like this: Code: | Showtime Firmware Version: 3.27
Line State: SHOWTIME
Modulation: G.dmt
Annex Mode: ANNEX_A
Startup Attempts: 1
Max Tx Power: -38 dBm/Hz
CO Vendor: ALCATEL_NETWORK
Elaspsed Time: 0 days 12 hours 55 minutes 10 seconds
Downstream Upstream
SNR Margin 40.8 31.0 dB
Line Attenuation 25.4 16.0 dB
Errored Seconds 0 0
Loss of Signal 0 0
Loss of Frame 0 0
CRC Errors 0 0
Data Rate 768 192 kbps
Latency FAST FAST |
So, are these values OK, how to make it better (and/or any coments about them): Code: | Max Tx Power: -38 dBm/Hz
SNR Margin 40.8 31.0 dB
Line Attenuation 25.4 16.0 dB |
3. I've found that all iptables and tc stuff should be done with ppp0 and NOT with my eth2 (if I use that kind of setup). Here we are:
Code: | eth1 Link encap:Ethernet HWaddr 00:02:44:57:DF:99
inet addr:192.168.2.100 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1968332 errors:0 dropped:0 overruns:0 frame:0
TX packets:1817243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1699364446 (1620.6 Mb) TX bytes:291220243 (277.7 Mb)
Interrupt:18 Base address:0xa000
ppp0 Link encap:Point-to-Point Protocol
inet addr:111.111.111.134 P-t-P:111.111.111.135 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:1914156 errors:0 dropped:0 overruns:0 frame:0
TX packets:1763019 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1651640640 (1575.1 Mb) TX bytes:248869967 (237.3 Mb)
|
So, should I set txqueuelen a little bit bigger if I use some HTB - tc - stuff to shape my traffic? (I've saw somewhere that txqueuelen is set to 30 on ADSL lines)
Should I raise/lower txqueuelen for eth1 or it just doesn't metter?
How to discover optimal MTU for ppp0? Are there any rule of thumb?
Should I set the same MTU for eth1?
Should any tweaks and settings be made on the router (MTU, txqueuelen...) to satisfy (MTU, txqueuelen...) settings on ppp0?
Any addtional tweaks and tricks?
Thank you in advance... _________________ gentoo user |
|