Hi Mohit,

In which case to calculate the total amount of traffic sent over an LSP you 
should sum the counts of all IP and MPLS FIB entries that use/pint-to the LSP; 
i.e. those that have the output label of the LSP.

/neale

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Gupta, Mohit via 
lists.fd.io <mohgupta=ciena....@lists.fd.io>
Date: Tuesday, 11 October 2022 at 01:25
To: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] Combined statistics for all traffic mapped to a MPLS LSP 
path
Hi Neale,

Thanks for your response.
We can install the LSP by configuring MPLS FIB and IP FIB. The detailed 
instructions are given concisely in
https://wiki.fd.io/view/VPP/MPLS_FIB<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.fd.io%2Fview%2FVPP%2FMPLS_FIB&data=05%7C01%7Cneale%40graphiant.com%7Cf1c6e1d385b04788145e08daaacb1c34%7C162101cdceb34e62ab2e3abc7aeede47%7C0%7C0%7C638010087047424430%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=IWiflLWZxVhezidnXbaEeNPrzIGvO3%2Fjj8eFXrg6bgs%3D&reserved=0>

Brief instructions on installing a LSP is as under :

1.       Configure Ingress LER to add a mpls label on incoming packets 
belonging to a FEC :

ip route add 1.1.1.1/32 via 10.10.10.10 GigE0/0/0 out-labels 33



2.       Configure transit/egress LSR to do one of following :

1)       Pop the label and perform an IPv[46] lookup in a specified table

2)       Pop the label and forward via a specified next-hop (this is 
penultimate-hop-pop, PHP)

3)       Swap the label and forward via a specified next-hop.

These can be programmed respectively by:

1)       mpls local-label 33 eos ip4-lookup-in-table X

2)       mpls local-label 33 [eos] via 10.10.10.10 GigE0/0/0

3)       mpls local-label 33 [eos] via 10.10.10.10 GigE0/0/0 out-labels 66


Regards,
Mohit

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Neale Ranns
Sent: Friday, October 7, 2022 2:43 AM
To: vpp-dev@lists.fd.io
Subject: [**EXTERNAL**] Re: [vpp-dev] Combined statistics for all traffic 
mapped to a MPLS LSP path

Hi Mohit,

VPP doesn’t have a single object with stats that represents an LSP in its broad 
sense. You’ll have to combine the states from the objects that use/point-to the 
LSP (or rather use the out-going label value of the LSP) – for example IP or 
MPLS FIB entries, or MPLS tunnel interfaces, etc.

If you tell me how you install the LSP in VPP I can help further.

/neale

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> on behalf of Gupta, Mohit via 
lists.fd.io 
<mohgupta=ciena....@lists.fd.io<mailto:mohgupta=ciena....@lists.fd.io>>
Date: Thursday, 6 October 2022 at 21:17
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: [vpp-dev] Combined statistics for all traffic mapped to a MPLS LSP path
Hi Team,

I need to fetch all Rx/Tx statistics for all traffic that goes over a MPLS 
Label switched path, whether it is OAM/L2VPN/L3VPN etc.
Basically, we are creating a MPLS LSP using RSVP-TE.  Later other l2vpn/l3vpn 
services are enabled and mapped to the LSP.
We have MPLS tunnels in VPP for pseudowires, which can be used to fetch stats 
for l2vpn services.
I am looking for a way to fetch all the combined statistics for a given LSP 
path, irrespective of the service, mapped to it.
Is there a VPP construct or a segment in VPP enabling to fetch those stats.

Regards,
Mohit
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21987): https://lists.fd.io/g/vpp-dev/message/21987
Mute This Topic: https://lists.fd.io/mt/94154561/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to