Hi,
>>> Addtionally, how to check who resevered labels from Label Switching Database (LSD)?
If you want to check which protocol allocated a specific label, you can just use "show route label X", e.g. below label is allocated by RSVP:
lab@vmx2_re> show route label 299856
mpls.0: 17 destinations, 17 routes (17 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
299856 *[RSVP/7/1] 5d 14:16:25, metric 1
> to 12.23.23.2 via ge-0/0/1.0, label-switched-path to_vmx5_around_the_world
If on the other hand you want to get an overall picture regarding the amount of labels each protocol is able to allocate and has allocated, the following command might be helpful:
lab@vmx2_re> show mpls label usage
Label space Total Available Applications
LSI 69609 69609 (100.00%) BGP/LDP VPLS with no-tunnel-services, BGP L3VPN with vrf-table-label
Block 199936 199936 (100.00%) BGP/LDP VPLS with tunnel-services, BGP L2VPN
Dynamic 487936 487930 (100.00%) RSVP, LDP, PW, L3VPN, RSVP-P2MP, LDP-P2MP, MVPN, EVPN, BGP
Static 48576 48576 (100.00%) Static LSP, Static PW