Due to the nature of the TC system in linux, it could be used to satisfy
your needs. Since any BW based queuing system needs to keep track of the
current BW being used you can piggy back on that for your needs.
Just build two BW based queues (BW greater then your anticipated flows) and
then classify the packets into the two queues and the use the TC command
to see the current queue utilization.
Check out http://www.lartc.org (once is comes back online) or google
for the 'Linux advanced Routing & Traffic Control HOWTO'
On Mon, Dec 26, 2005 at 08:49:13PM +0800, allen wrote:
> Hi All:
>=20
> I am trying to create 2 LSP in this example. I map two UDP traffic(from H=
ostA to HostB) to LSPs.
> The LSP1 is LER1->LSR1->LSR2->LER2 using label 1000 and the LSP2 is LER1-=
>LSR3->LER2 using label 2000.
> I want to monitor two LSP's load in LER2. Please tell me how can I measur=
e the load of LSPs.(using iptables?)
>=20
> Thanks for your attention.
>=20
> 192.168.102.0/24
> |
> 192.168.101.0/24 | 192.168.103.0/24
> | eth0---eth1 v eth1---eth0 |
> | 30 LSR1 30-----40 LSR2 40 |
> | / +------+ +-------+ \ |
> -> / \ <-
> / \
> +------eth0 eth0---20:eth1 50:eth1-----eth0 eth=
0-----+
> | HostA |-----| LER1 | | LER2 50-----60 =
HostB |
> +------.10 ^ 20-----20:eth2 40:eth2-----+ ^ +--=
------+
> | \ / |
> | \ / |
> 192.168.100.0/24 \ eth0----eth1 / 192.168.104.0=
/24
> X------30 LSR3 30-------X
> ^ +------+ ^
> | |
> | |
> 192.168.105.0/24 192.168.106.0/24
--=20
James R. Leu
jl...@mi...
|