erotel píše:Použil jsem IPSET,který pošle packet přímo do příslušné CLASSID v shaperu.O proti iptables (podle testů na stole) nárůst výkonu 20-25%.
rychle shapovani se pomoci TC dela pres hash table .... Netreba znackovat packety apod
erotel píše:Použil jsem IPSET,který pošle packet přímo do příslušné CLASSID v shaperu.O proti iptables (podle testů na stole) nárůst výkonu 20-25%.
Dalibor Toman píše:erotel píše:Použil jsem IPSET,který pošle packet přímo do příslušné CLASSID v shaperu.O proti iptables (podle testů na stole) nárůst výkonu 20-25%.
rychle shapovani se pomoci TC dela pres hash table .... Netreba znackovat packety apod
Kód: Vybrat vše
ipset create qos hash:net family inet6 skbinfo
ipset add qos $IP skbprio 1:$CLASSID
erotel píše:Dalibor Toman píše:erotel píše:Použil jsem IPSET,který pošle packet přímo do příslušné CLASSID v shaperu.O proti iptables (podle testů na stole) nárůst výkonu 20-25%.
rychle shapovani se pomoci TC dela pres hash table .... Netreba znackovat packety apod
Mohl by jsi mě trošku "nakopnout" správným směrem?
Kód: Vybrat vše
root@78-ipv6gw:~# ip6tables -t mangle -L --lin -v -n
Chain FORWARD (policy ACCEPT 3194 packets, 2310K bytes)
num pkts bytes target prot opt in out source destination
1 1801 2146K CLASSIFY all vlan1000 * ::/0 ::/0 CLASSIFY set 1:9000
2 1393 164K CLASSIFY all vlan0105 * ::/0 ::/0 CLASSIFY set 1:9000
3 1801 2146K SET all vlan1000 * ::/0 ::/0 map-set qos src map-prio
4 1393 164K SET all vlan0105 * ::/0 ::/0 map-set qos dst map-prio
Kód: Vybrat vše
skbinfo, skbmark, skbprio, skbqueue
All set types support the optional skbinfo extension. This extension allow to store the metainfo (firewall mark, tc class and hardware queue) with every entry and map it to packets by usage of SET netfilter target with --map-set option. skbmark option format: MARK or MARK/MASK, where MARK and MASK are 32bit hex numbers with 0x prefix. If only mark is specified mask 0xffffffff are used. skbprio option has tc class format: MAJOR:MINOR, where major and minor numbers are hex without 0x prefix. skbqueue option is just decimal number.
ipset create foo hash:ip skbinfo
ipset add foo skbmark 0x1111/0xff00ffff skbprio 1:10 skbqueue 10
whiteagle píše:Ahoj hoši, prosím zpátky k tématu.
Jak honíte provoz pres ten shaper?
Je to konektivita --> ccr --> x86 --> zpatky na ccr nebo jak?
diky v.