Beruflich Dokumente
Kultur Dokumente
uhrung R
uckblick Aussicht/Erweiterbarkeit
Split-Access-Routing und
Priorisierung auf Linux-Basis
Oluf Lorenzen
axxeo GmbH
Januar 2010
Gliederung
1 Installationsumfeld
2 Ist-Zustand
3 Soll-Zustand
4 Durchfuhrung
Split-Access-Routing
Priorisierung
HTB
Selektierung
Token-Bucket
5 Ruckblick
6 Aussicht/Erweiterbarkeit
Oluf Lorenzen axxeo GmbH
Split-Access-Routing und Priorisierung auf Linux-Basis
Installationsumfeld Ist-Zustand Soll-Zustand Durchf
uhrung R
uckblick Aussicht/Erweiterbarkeit
Installationsumfeld
4 Mitarbeiter
Linux-Server fur Geschaftskunden
als Gateway ins Internet
Spam- und Viren-Scan
Routing und VPN
Ist-Zustand
2Mbit SDSL
4 Arbeitsplatze, 2
Server
Wartung via SSH
geringer HTTP-Trac
2Mbit SDSL
5-7 Arbeitsplatze, 2
Server
Wartung via SSH
viel (HTTP-)Trac
Soll-Zustand
auf Debian basierte Losung
LARTC (Linux Advanced Routing & Trac
Control)
tc
Arbeit bei Netzwerkauslastung moglich
Nutzung einer zweiten Anbindung
Split-Access-Routing
Split-Access-Routing
LARTC
2 Routing-Tabellen
eine Default-Route fur jede Tabelle
modizierte normale Default-Route
Aufteilung des Verkehrs von eins zu eins
Priorisierung
Priorisierung
tc-Befehle:
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 4 : 0 : 0 u32 d i v i s o r 1
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 u32 match u8 0 x11 0 x f f a t
9 o f f s e t a t 0 mask 0 f 0 0 s h i f t 6 e a t l i n k 4 : 0 : 0
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 4 : 0 : 1 u32 h t 4 : 0 : 0
match u16 0 x35 0 x f f f f a t 2 c l a s s i d 1 : 1
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 5 : 0 : 0 u32 d i v i s o r 1
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 u32 match u8 0 x6 0 x f f a t 9
match u16 0 x0 0 x f e 0 0 a t 2 o f f s e t a t 0 mask 0 f 0 0 s h i f t 6 e a t l i n k 5 : 0 : 0
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 5 : 0 : 1 u32 h t 5 : 0 : 0
match u16 0 x50 0 x f f f f a t 2 c l a s s i d 1 : 1
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 6 : 0 : 0 u32 d i v i s o r 1
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 u32 match u8 0 x6 0 x f f a t 9
match u8 0 x10 0 x10 a t 1 o f f s e t a t 0 mask 0 f 0 0 s h i f t 6 e a t l i n k 6 : 0 : 0
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 6 : 0 : 1 u32 h t 6 : 0 : 0
match u16 0 x16 0 x f f f f a t 0 c l a s s i d 1 : 2
t c f i l t e r add dev e t h 1 p a r e n t 1 : 0 p r o t o c o l a l l p r i o 1 h a n d l e 7 : 0 : 0 u32 d i v i s o r 1
Priorisierung
tcng-Script:
dev " e t h 1 " f
egress f
class ( < $interactive in ) >
i p t o s d e l a y == 1 && t c p s p o r t == 22
<
if
if ip len 256 && t c p s p o r t == 2 2 ;
htb ( ) f
c l a s s ( r a t e 200 kbps , c e i l 200 kbps ) f
$ i n t e r a c t i v e i n = c l a s s ( r a t e 50 kbps , c e i l 100 kbps ) fsfq ;g;
$ o t h e r = c l a s s ( r a t e 100 kbps , c e i l 140 kbps ) f s f q ; g ;
gggg
HTB
Trac-Kategorisierung
HTB
HTB
HTB
HTB
Token-Bucket
HTB
HTB
HTB
Ruckblick
Keine automatische Umstellung der Leitung
Verschiebung der Zeitplanung
lange Informationssuche
Wegfall der automatischen Routing-Anderung
Erweiterung