Hi!
ldp-tunneling over one-hop RSVP LSPs works as follows. Imagine two neighboring core routers, R1 and R2. R1 can be a PE (ingress or egress) or a P, it doesn't really matter. And the same for R2.
R1 and R2 are IGP neighbors, interconnected via ge-0/0/0.0. And there is an alternative multihop path to go from one to another.
R1# set protocols rsvp interface all link-protection
R1# set protocols ldp p2mp
R1# set protocols ldp interface all
R1# set protocols mpls label-switched-path ONE-HOP-R2 to <R2-LOOPBACK>
R1# set protocols mpls label-switched-path ONE-HOP-R2 ldp-tunneling
R1# set protocols mpls label-switched-path ONE-HOP-R2 link-protection
R1# set protocols mpls label-switched-path ONE-HOP-R2 primary DIRECT-R2
R1# set protocols path DIRECT-R2 <R2-GE-0> strict
AND THE SYMMETRICAL CONFIG IN R2. This creates a targeted LDP session between R1 and R2, and the forwarding path is protected by the RSVP LSP.
The link-protection is only needed if you want fast restoration. Otherwise you can live without it.
Please accept as solution and kudos if it helps
🙂</R2-GE-0></R2-LOOPBACK>