DH

Koneksi vsat kami uplink 128 kbps dan download 2 mbps.  Uplink kami
rata-rata mentok, sedangkan downlink biasanya hanya mencapai 1 mbps.
Namun koneksi sudah terasa lambat.  Saya menduga lambatnya koneksi
disebabkan karena uplink yang penuh.  Saya bermaksud mengatur koneksi
uplink.

Setelah mencari-cari, saya dapatkan bacaan yang agak saya mengerti,

http://forums.gentoo.org/viewtopic-t-225863-highlight-htb.html

http://www.knowplace.org/pages/howtos/traffic_shaping_with_linux/examples.php

Kelas-kelas saya buat dengan ini :

# tc qdisc add dev eth1 root handle 1: htb default 30
# tc class add dev eth1 parent 1: classid 1:1 htb rate 120kbit burst 6k
# tc class add dev eth1 parent 1:1 classid 1:10 htb rate 120kbit burst 6k prio 1
# tc class add dev eth1 parent 1:1 classid 1:20 htb rate  60kbit burst 6k prio 2
# tc class add dev eth1 parent 1:1 classid 1:30 htb rate  30kbit burst 6k prio 3
# tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
# tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
# tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10

dan filter saya buat seperti berikut :

# tc filter add dev eth1 protocol ip parent 1: prio 1 u32\
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u16 0x0000 0xffc0 at 2 \
match u8 0x10 0xff at 33 \
flowid 1:10

# tc filter add dev eth1 protocol ip parent 1: prio 1 u32\
match ip dport 22 0xfffe flowid 1:10


Please jangan tanya kenapa saya bikin seperti di atas :).

Hasilnya :

gw # tc -s qdisc show dev eth1
qdisc htb 1: root r2q 10 default 30 direct_packets_stat 29635
 Sent 14440676 bytes 146427 pkt (dropped 46956, overlimits 168526 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 10: parent 1:10 limit 127p quantum 1514b perturb 10sec
 Sent 4971539 bytes 76724 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 8001: parent 1:20 limit 127p quantum 1514b perturb 10sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 8002: parent 1:30 limit 127p quantum 1514b perturb 10sec
 Sent 5876964 bytes 37072 pkt (dropped 46956, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
gw #

gw # tc filter show dev eth1
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:10
  match 00060000/00ff0000 at 8
  match 05000000/0f00ffc0 at 0
  match 00100000/00ff0000 at 32
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht
800 bkt 0 flowid 1:10
  match 00000016/0000fffe at 20
gw #


gw # tc -s class show dev eth1
class htb 1:10 parent 1:1 leaf 10: prio 1 rate 120000bit ceil
120000bit burst 6Kb cburst 1599b
 Sent 4627877 bytes 71393 pkt (dropped 0, overlimits 0 requeues 0)
 rate 46760bit 89pps backlog 0b 0p requeues 0
 lended: 71393 borrowed: 0 giants: 0
 tokens: 393183 ctokens: 97349

class htb 1:1 root rate 120000bit ceil 120000bit burst 6Kb cburst 1599b
 Sent 10784881 bytes 109668 pkt (dropped 0, overlimits 0 requeues 0)
 rate 77456bit 111pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 393183 ctokens: 97349

class htb 1:20 parent 1:1 leaf 8001: prio 2 rate 60000bit ceil
60000bit burst 6Kb cburst 1599b
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 800000 ctokens: 208333

class htb 1:30 parent 1:1 leaf 8002: prio 3 rate 30000bit ceil
30000bit burst 6Kb cburst 1599b
 Sent 6020195 bytes 39026 pkt (dropped 44897, overlimits 0 requeues 0)
 rate 25232bit 22pps backlog 0b 127p requeues 0
 lended: 38275 borrowed: 0 giants: 0
 tokens: 645850 ctokens: -537484

gw #

Setelah itu, saya tidak bisa mengakses webmail google dan yahoo.

Mohon pencerahannya

Terima kasih sebelumnya

br

tm

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke