Hi,
By default, the label space type is per platform. Each interface allocates the same label number to the same FEC. In addition, R4 allocates outgoing labels to the received labeled packets. Because by default, split horizon is not enabled, which means that an LSR distributes labels to both upstream and downstream LDP peers.You can use the outbound peer split-horizon command to enable split horizon on an LSR to allow the LSR to distribute labels only to its upstream LDP peers.
https://support.huawei.com/hedex/hdx.do?docid=EDOC1100007335&id=outbound_peer_split-horizon&lang=en
Therefore, R4 will allocate the same label to the FEC for interface E0/0/0 and G0/0/0.
When AR2 receives two labels of the FEC 50.5.5.0/24, it checks the unicast route to obtain the next hop of 50.5.5.0/24 and compare it with the LDP address (sent when the LDP session is set up). The label sent from the next hop(R4) and can be directly used. The label sent by the non-next hop (R3) is used as the backup label because the device uses the Liberal Label Retention Mode by default.