1

Temat: Qos na tplinku

Witam!
Chciałbym zrobić na tp-linku z openwrt qos z podziałem na usługi. Chcę jednak się obejść bez wrzucania gargoyle, które mi po prostu nie leży :] Za dużo bajzlu robi on imho w systemie i nic mnie w nim nie interesowaloby poza qos. Próbowałem qos-scripts, jednak nie otrzymałem oczekiwanych rezultatów: przy odpalonym p2p strony o wiele wolniej się otwierają, a o komfortowym graniu przez sieć można zapomnieć.
Konfiguracja:

root@OpenWrt:~# cat /etc/config/qos              
# QoS configuration for OpenWrt

# INTERFACES:
config interface wan
        option classgroup  "Default"
        option enabled      1
        option overhead     0
        option upload       512
        option download     7040

# RULES:
config 'classify'
        option 'target' 'Priority'
        option 'layer7' 'dns'

config 'classify'
        option 'target' 'Priority'
        option 'layer7' 'ntp'

config 'classify'
        option 'target' 'Priority'
        option 'layer7' 'http'

config 'classify'
        option 'proto' 'tcp'
        option 'ports' '80,443'
        option 'target' 'Priority'

config 'classify'
        option 'proto' 'tcp'
        option 'ports' '20,21'
        option 'target' 'Express'

config 'classify'
        option 'layer7' 'dayofdefeat-source'
        option 'target' 'Express'

config 'classify'
        option 'layer7' 'counterstrike-source'
        option 'target' 'Express'

config 'classify'
        option 'layer7' 'teamfortress2'
        option 'target' 'Express'

config 'classify'
        option 'layer7' 'halflife2-deathmatch'
        option 'target' 'Express'

config 'classify'
        option 'layer7' 'quake-halflife'
        option 'target' 'Express'

config 'classify'
        option 'target' 'Express'
        option 'layer7' 'teamspeak'

config 'classify'
        option 'target' 'Normal'
        option 'proto' 'tcp'
        option 'ports' '22'

config 'classify'
        option 'target' 'Normal'
        option 'proto' 'tcp'
        option 'ports' '25,110,143,220,465,583,993,995'

config 'classify'
        option 'target' 'Normal'
        option 'layer7' 'shoutcast'

config 'classify'
        option 'target' 'Bulk'
        option 'layer7' 'edonkey'

config 'classify'
        option 'target' 'Bulk'
        option 'layer7' 'bittorrent'

config 'classify'
        option 'target' 'Bulk'
        option 'layer7' 'soulseek'



config default
        option target       "Express"
        option proto        "udp"
        option pktsize      "-500"
config reclassify
        option target       "Priority"
        option proto        "icmp"
config default
        option target       "Bulk"
        option portrange    "1024-65535"
config reclassify
        option target       "Priority"
        option proto        "tcp"
        option pktsize      "-128"
        option mark         "!Bulk"
        option tcpflags     "SYN"
config reclassify
        option target       "Priority"
        option proto        "tcp"
        option pktsize      "-128"
        option mark             "!Bulk"
        option tcpflags     "ACK"


# Don't change the stuff below unless you
# really know what it means :)

config classgroup "Default"
        option classes      "Priority Express Normal Bulk"
        option default      "Normal"


config class "Priority"
        option packetsize  400
        option maxsize     400
        option avgrate     10
        option priority    20
config class "Priority_down"
        option packetsize  1000
        option avgrate     10


config class "Express"
        option packetsize  1000
        option maxsize     800
        option avgrate     50
        option priority    10

config class "Normal"
        option packetsize  1500
        option packetdelay 100
        option avgrate     10
        option priority    5
config class "Normal_down"
        option avgrate     20

config class "Bulk"
        option avgrate     1
        option packetdelay 200

Chciałem też sprawdzic skrypt rudy'ego z white russian, ale coś nie bardzo chce on działac na backfire.

2

Odp: Qos na tplinku

Całkowicie w takim razie zapomnij o qos-script i napisz to sam. Podręczników w sieci znajdziesz bez mała, tyle że ty później nie oznaczasz ruchu na podstawie IP tyko portów ew layer7 czy  czegoś podobnego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.