Label to Route mapping, Label generation scalability

ldpmplsmpls-vpnrsvp

In MPLS enabled routers, is a unique label generated per Destination prefix in routing Table or is it per Next-hop in the routing table if not both, how is the mapping between unique labels and routing table entry ?
Also, if it is per Destination prefix, how sclable is it? As per my understanding maximum label value is 2^20 = 1048576. What if number of routing table entries is greater than 1048576?

Best Answer

is a unique label generated per Destination prefix in routing Table or is it per Next-hop in the routing table? ...i have seen customer scenarios approaching 1 million routes... But the MPLS doesn't have any common guidelines for label generation ? Is there not a common rule saying a unique label should be generated per Destination-prefix or per nexthop ? or is it just implementation specific?

There seems to be a little confusion. It's rather unlikely that someone would ever want to allocate a unique label per internet route. A well-designed MPLS network should allocate labels based on IGP prefixes that are bound to your BGP next-hops (ref RFC 3031, Section 4.6).

As such, I'm not really sure 1 Million labels in the LFIB is a serious MPLS design constraint today.