Objectives
The simulator ticks each one as soon as the network meets it.
Set the LSR ID to the Loopback0 address on PE1, P and PE2 (mpls lsr-id).
Enable MPLS and MPLS LDP in the system view (mpls, then mpls ldp).
Enable mpls and mpls ldp on every core interface.
Check display mpls ldp session: every session is Operational.
Check display mpls lsp on PE1: the LSP to 3.3.3.3/32 has an outgoing label from P.
Check P: it pops the label for 3.3.3.3/32 (outgoing label 3, penultimate-hop popping).
From PE1, ping -a 1.1.1.1 3.3.3.3.
Before you start
Huawei needs mpls lsr-id before mpls, and MPLS enabled globally before it can be enabled on an interface. By default Huawei only builds LSPs for /32 host routes (lsp-trigger host), which is why loopbacks are /32. The egress router advertises implicit null (label 3), so the router before it pops the label.
Concept
MPLS labels and LDP
MPLS forwards packets by a short label instead of looking up the IP address at every hop. LDP gives each IGP prefix a label on every router and shares it with neighbors, building a label-switched path (LSP) through the core.