|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
PPPoE really slow speeds when connecting through DSL Modem?
Hi,
I'm running a Sun Microsystems Netra T105 SPARC box as a router/firewall/gateway/NAT. It's a 400MHz machine with 360MB RAM. Initially I tested it's routing capability with 100Mbps Ethernet and it was quite close to wire-speed however, I'm currenty using for my WAN needs for my ADSL Annex M line and unfortunately not getting anywhere near the speeds the line is capable of serving. My WAN speed should be 20Mbps downstream and 2Mbps upstream. My current rates are below 5Mbps downstream and 700kbps upstream. The modem I'm using is a Cisco 887VA which is both Annex M ADSL and VDSL compatible. I took my config for the OpenBSD server from here: http://adju.st/paper/openbsd-adsl-wlan-howto.html The reason I want to use the OpenBSD box as router/gateway/NAT/Firewall is that Cisco's keep crashing on me when loads get higher. Their NAT's don't really handle the stress of 1000+ connections (takes up more memory then the boxes have). The config that I'm running is here: ppp.conf Code:
default: set log Phase Chat IPCP CCP tun command set redial 15 0 set reconnect 15 10000 pppoe: set device "!/usr/sbin/pppoe -i hme0" disable acfcomp protocomp deny acfcomp set mtu max 1454 set speed sync enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname <authname> set authkey <key> add! default HISADDR # enable dns enable mssfixup Code:
options lock auth usehostname Code:
# Start PPPoE ahead of ntpd echo -n ' PPPoE' ppp -ddial pppoe sleep 20 Code:
MYADDR: !bg /sbin/pfctl -d Code:
MYADDR: !bg sh -c "/sbin/pfctl -e -f /etc/pf.conf" I was thinking of using the router for PPPoA with another public IP then routing that to my OpenBSD machine. Outside of that am totally stuck; I see people using PPPoE with VDSL2 even meaning that the higher speeds should be obtainable just how? Thanks. |
|
||||
Thanks for the response!
I did read the OpenBSD FAQ http://www.openbsd.org/faq/faq6.html#PPP but there isn't much information in it and pppd isn't even discussed and there isn't much info in the man pages either. It seems to be one of those fairly closed loop things which can be done in a few different ways but not documented that well. At present I'm looking here: http://un.geeig.net/openbsd-vdsl.html which I'm going to attempt. Again totally different way! Instead of using /etc/ppp/ppp.conf and a tunnel interface, the posting creates an interface /etc/pppoe.conf. Having gone through the FAQ I don't recall reading that anywhere though it might be in a place that I haven't looked yet. P.s. I know howto's aren't really fondly looked at but if you have no understanding initially of how things are done on a specific platform examples can help a lot with the learning process. Just like learning how to read |
|
||||
Specifically, I was referring to the pppoe(8) man page where it states (highlights mine):
Code:
Configuring the client involves setting up the configuration file for ppp(8). The following statements must be included in the file for the specified system (or ``default'' if no system is specified): set device "!/usr/sbin/pppoe" set mtu max 1492 set mru max 1492 set speed sync disable acfcomp protocomp deny acfcomp The set device line tells ppp to use the pppoe program for input and output instead of using a serial port or other network connection. The mtu and mru must be set to 1492 to leave room in the outgoing Ethernet packet for the pppoe headers. The set speed sync line tells ppp to use synchronous encoding for the packets sent between it and pppoe. According to RFC 2516, protocol compression, protocomp, is not recommended, so it is disabled, but not denied. On the other hand, address and control field compression, acfcomp, must be disabled and denied. |
|
||||
Well.... to get back to what people are using in modern times.
pppoe(8) is the older version (as far as config goes that I found). I do believe that this is the 'userland' process. I have now switched over to pppoe(4) which I think is the kernel based service which people are claiming is a lot faster. Unfortunately my speeds are still the same, and I'm not sure if low horsepower due to my CPU clock being at 400MHz however I do hope this helps someone if they need answers like me! Config is fairly simple: Code:
inet 0.0.0.0 255.255.255.255 NONE mtu 1492 \ pppoedev hme0 authproto chap \ authname <authname> authkey <authkey> \ up dest 0.0.0.1 !/sbin/route add default -ifp pppoe0 0.0.0.1 Code:
up mtu 1500 Hope this helps someone ....now to work out the speed issue |
|
||||
Ok I think I've figured out what needs to be changed however I'm not sure how to change it as OpenBSD 5.1 seems to use automatic buffering.
Following these postings: http://forums.whirlpool.net.au/archive/481579 http://forums.whirlpool.net.au/forum...s.cfm?t=116165 and taking the VDSL example from above some values in /etc/sysctl.conf need to be adjusted: Code:
net.inet.tcp.mssdflt=1452 net.inet.tcp.recvspace=131072 net.inet.tcp.sendspace=131072 net.inet.udp.recvspace=139264 net.inet.udp.sendspace=32768 So all I need to figure out now is how to adjust it or change the hard-limits - IF it can be done. |
|
||||
Did a quick test; I used PPPoA on the router and coupled it to the Netra. PPPoE wasn't the issue! (or could be related)
Turns out the amount of filtering done by Packet Filter was grinding the system down to a halt. I ended up taking out the NAT/PAT and PPPoE config but creating some PF rules to allow for OSPF, telnet (to the router) amongst other things. The speed was still only reaching round 4.5Mbps on the downstream with only routing, OSPF, PF (firewalling) active Well.... I swaped out the OpenBSD to using the plain old modem as router. Performance has increased by an enormous amount with speeds reaching in excess of 13Mbps downstream though now I don't have any firewall in place and NAT is NOT a solution for security!! however, I will try a Sun Fire V210 server soon and see if that makes a difference unless I manage to find some performance tweaks. Activating all the security features on the router will definitely kill it - I know for a fact as I have experience, unless you pay in excess of $10k for a modular carrier grade router expect performance to be quite poor even with business grade ones (like mine!). |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EU plan to spend billions on boosting broadband speeds | J65nko | News | 0 | 15th October 2011 09:48 PM |
Fluctuating connection speeds OBSD 4.7 | schh | OpenBSD General | 5 | 12th June 2011 11:02 PM |
pppoe | kaschei | OpenBSD General | 2 | 20th May 2009 01:14 AM |
PPPoE -> ADSL Router (Bridge) - Slow connect? | DraconianTimes | OpenBSD General | 0 | 31st December 2008 01:07 PM |
Modem PPPoE vs OpenBSD PPPoE | ryoken | OpenBSD Security | 13 | 15th June 2008 10:07 PM |