From: "Kristiadi Himawan" Date: Tue, 31 Aug 2004 03:38:52 +0000 Subject: [LARTC] HTB.init for zebra BGP Message-Id: <011401c48f0c$092f97b0$15a02bca@gsd03> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0111_01C48F46.B57912F0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0111_01C48F46.B57912F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have successfully shape bandwidth using htb.init using ip address , = but when i try to shape zebra BGP using their ip address and BGP port it = can't match the class for BGP and always get the default class. Here's my htb.init script in the bridge : #eth0-2:50.bgp RATE=3D128kbit RULE=3D192.168.192.163 RULE=3D192.168.199.22 RULE=3D*:179 #eth1-2:50.bgp RATE=3D128kbit RULE=3D192.168.192.163, RULE=3D192.168.199.22, RULE=3D*:179, And here's the tcpdump result for the traffic : 09:57:36.875357 192.168.199.22.1843 > 192.168.192.163.179: P 1280098168:1280098187(19) ack 1407875708 win 34752 : BGP (KEEPALIVE) (DF) [tos 0x2,ECT] 09:57:36.875730 192.168.192.163.179 > 192.168.199.22.1843: . ack 19 win = 5792 (DF) 09:57:37.166515 192.168.192.163.179 > 192.168.199.22.1843: P 1:20(19) = ack 19 win 5792 : BGP (KEEPALIVE) (DF) = [tos 0x2,ECT] 09:57:37.166543 192.168.199.22.1843 > 192.168.192.163.179: . ack 20 win 34752 (DF) 09:58:36.876202 192.168.199.22.1843 > 192.168.192.163.179: P 19:38(19) = ack 20 win 34752 : BGP (KEEPALIVE) = (DF) [tos 0x2,ECT] 09:58:36.876477 192.168.192.163.179 > 192.168.199.22.1843: . ack 38 win = 5792 (DF) 09:58:37.174566 192.168.192.163.179 > 192.168.199.22.1843: P 20:39(19) = ack 38 win 5792 : BGP (KEEPALIVE) (DF) [tos 0x2,ECT] 09:58:37.174589 192.168.199.22.1843 > 192.168.192.163.179: . ack 39 win 34752 (DF) 09:59:36.877134 192.168.199.22.1843 > 192.168.192.163.179: P 38:57(19) = ack 39 win 34752 : BGP (KEEPALIVE) = (DF) [tos 0x2,ECT] 09:59:36.877456 192.168.192.163.179 > 192.168.199.22.1843: . ack 57 win = 5792 (DF) 09:59:37.181463 192.168.192.163.179 > 192.168.199.22.1843: P 39:58(19) = ack 57 win 5792 : BGP (KEEPALIVE) (DF) [tos 0x2,ECT] Any idea how to overcome this? ------=_NextPart_000_0111_01C48F46.B57912F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,

I have successfully shape bandwidth using htb.init using = ip=20 address , but
when i try to shape zebra BGP using their ip address = and BGP=20 port it can't
match the class for BGP and always get the default=20 class.

Here's my htb.init script in the bridge=20 :

#eth0-2:50.bgp
RATE=3D128kbit
RULE=3D192.168.192.163
RU= LE=3D192.168.199.22
RULE=3D*:179

#eth1-2:50.bgp
RATE=3D128kb= it
RULE=3D192.168.192.163,
RULE=3D192.168.199.22,
RULE=3D*:179,<= BR>
And=20 here's the tcpdump result for the traffic :

09:57:36.875357=20 192.168.199.22.1843 > 192.168.192.163.179: = P
1280098168:1280098187(19) ack=20 1407875708 win 34752 <nop,nop,timestamp
58101584 523141495>: = BGP=20 (KEEPALIVE) (DF) [tos 0x2,ECT]
09:57:36.875730 192.168.192.163.179 = >=20 192.168.199.22.1843: . ack 19 win 5792
<nop,nop,timestamp = 523201215=20 58101584> (DF)
09:57:37.166515 192.168.192.163.179 >=20 192.168.199.22.1843: P 1:20(19) ack 19
win 5792 <nop,nop,timestamp = 523201505 58101584>: BGP (KEEPALIVE) (DF) = [tos
0x2,ECT]
09:57:37.166543=20 192.168.199.22.1843 > 192.168.192.163.179: . ack 20 win
34752=20 <nop,nop,timestamp 58101875 523201505> (DF)
09:58:36.876202=20 192.168.199.22.1843 > 192.168.192.163.179: P 19:38(19) ack
20 win = 34752=20 <nop,nop,timestamp 58161594 523201505>: BGP (KEEPALIVE) = (DF)
[tos=20 0x2,ECT]
09:58:36.876477 192.168.192.163.179 > = 192.168.199.22.1843: . ack=20 38 win 5792
<nop,nop,timestamp 523261218 58161594>=20 (DF)
09:58:37.174566 192.168.192.163.179 > 192.168.199.22.1843: P=20 20:39(19) ack
38 win 5792 <nop,nop,timestamp 523261516 = 58161594>: BGP=20 (KEEPALIVE) (DF)
[tos 0x2,ECT]
09:58:37.174589 192.168.199.22.1843 = >=20 192.168.192.163.179: . ack 39 win
34752 <nop,nop,timestamp = 58161892=20 523261516> (DF)
09:59:36.877134 192.168.199.22.1843 >=20 192.168.192.163.179: P 38:57(19) ack
39 win 34752 = <nop,nop,timestamp=20 58221604 523261516>: BGP (KEEPALIVE) (DF)
[tos = 0x2,ECT]
09:59:36.877456=20 192.168.192.163.179 > 192.168.199.22.1843: . ack 57 win=20 5792
<nop,nop,timestamp 523321222 58221604> = (DF)
09:59:37.181463=20 192.168.192.163.179 > 192.168.199.22.1843: P 39:58(19) ack
57 win = 5792=20 <nop,nop,timestamp 523321526 58221604>: BGP (KEEPALIVE) = (DF)
[tos=20 0x2,ECT]

Any idea how to overcome this?
------=_NextPart_000_0111_01C48F46.B57912F0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/