Did you ever order something online from a distant retailer and then track the package as it makes strange and seemingly illogical stops all over the country?\nThat\u2019s similar to the way IP routing on the Internet works. When an internet router receives an IP packet, that packet carries no information beyond a destination IP address. There is no instruction on how that packet should get to its destination or how it should be treated along the way.\nEach router has to make an independent forwarding decision for each packet based solely on the packet\u2019s network-layer header. Thus, every time a packet arrives at a router, the router has to \u201cthink through\u201d where to send the packet next. The router does this by referring to complex routing tables.\nThe process is repeated at each hop along the route until the packet eventually reaches its destination. All of those hops and all of those individual routing decisions result in poor performance for time-sensitive applications like videoconferencing or voice over IP (VoIP).\nWhat is MPLS\nMulti-protocol label switching (MPLS), is a tried and true networking technology that has powered enterprise networks for over two decades. Unlike other network protocols that route traffic based on source and destination address, MPLS routes traffic based on predetermined \u201clabels\u201d.\u00a0\nBusinesses use MPLS to connect remote branch offices that require access to data or applications that reside in the organization's data center or company headquarters.\nHow MPLS works\nWith MPLS, the first time a packet enters the network, it\u2019s assigned to a specific forwarding class of service (CoS)\u2014also known as a forwarding equivalence class (FEC)--indicated by appending a short bit sequence (the label) to the packet. These classes are often indicative of the type of traffic they carry. For example, a business might label the classes real time (voice and video), mission critical (CRM, vertical app), and best effort (Internet, email). Each application would be placed in one of these classes.\nThe fastest, low-latency path would be reserved for real-time apps like voice and video, thereby ensuring that quality is high. Separating traffic based on performance is impossible to do with other routing protocols.\nThe key architectural point is that the labels provide a way to attach additional information to each packet above and beyond what the routers previously had to work with.\nIs MPLS Layer 2 or Layer 3?\nThere\u2019s been some confusion about whether MPLS is a Layer 2 or Layer 3 service. But MPLS doesn\u2019t fit neatly into the OSI seven-layer hierarchy, and is sometimes classified as Layer 2.5. In fact, one of the key benefits of MPLS is that it separates forwarding mechanisms from the underlying data-link service. In other words, MPLS can be used to create forwarding tables for any underlying protocol.\nSpecifically, MPLS routers establish a label-switched path (LSP), a pre-determined path to route traffic in an MPLS network, based on the criteria in the FEC. It is only after an LSP has been established that MPLS forwarding can occur. LSPs are unidirectional, which means that return traffic is sent over a different LSP.\nWhen an end user sends traffic into the MPLS network, an MPLS label is added by an ingress MPLS router that sits on the network edge. The MPLS Label consists of four sub-parts:\n\nThe Label\n\nThe label holds all of the information for MPLS routers to determine where the packet should be forwarded.\n\nExperimental\n\nExperimental bits are used for Quality of Service (QoS) to set the priority that the labeled packet should have.\n\nBottom-of-Stack\n\nThe Bottom-of-Stack tells MPLS routers if they are the last leg of the journey and there are no more labels to be concerned with.\u00a0 This usually means the router is an egress router.\n\nTime-To-Live\n\nThis identifies how many hops the packet can make before it is discarded.\nMPLS pros and cons\nThe benefits of MPLS are scalability, performance, better bandwidth utilization, reduced network congestion and a better end-user experience.\nMPLS itself does not provide encryption, but it is a virtual private network and, as such, is partitioned off from the public Internet. Therefore, MPLS is considered a secure transport mode. And it is not vulnerable to denial-of-service attacks, which might impact pure-IP-based networks.\nOn the negative side, an MPLS connection is much more expensive than a standard internet connection. In addition, MPLS was designed for organizations that have multiple remote branch offices that are geographically dispersed across the country or the world where the majority of traffic is backhauled to enterprise data centers. Today, businesses have re-directed much of their traffic so it\u2019s going to and from cloud providers instead, making MPLS suboptimal.\nMPLS networks and the cloud\nOnce businesses transition to the cloud, the MPLS-based hub-and spoke model becomes inefficient because it routes traffic through corporate headquarters (hubs), which act as central choke points. It is more efficient to send traffic directly to the cloud. Also, the increased use of cloud services, video and mobile apps has driven up bandwidth requirements, and MPLS services are difficult to scale on demand.\nMPLS was a great innovation for its time, but there are newer technologies that better address today\u2019s network architectures. Software-defined WANs (SD-WAN)\u00a0is architected with cloud connectivity in mind, which is why so many businesses have been replacing or augmenting their MPLS networks with SD-WAN.\nMPLS vs. SD-WAN\nSD-WAN is the application of Software Defined Networking (SDN) concepts to the WAN. This means the deployment of SD-WAN edge devices that apply rules and policies to send traffic along the best path.\nSD-WAN is a transport-agnostic overlay that can route any type of traffic, including MPLS. The advantage of SD-WAN is that an enterprise WAN-traffic architect can sit at a central point and easily apply policies across all WAN devices.\nBy contrast, with MPLS, predetermined routes need to be painstakingly provisioned and once the fixed circuits are up, making changes is not point-and-click.\nBut once an MPLS network is deployed, it delivers guaranteed performance for real-time traffic. SD-WAN can route traffic along the most efficient path, but once those IP packets hit the open Internet, there are no performance guarantees.\nSD-WAN is significantly less expensive to deploy and operate than MPLS. Lightyear's WAN connectivity pricing guide pegs the average monthly recurring cost of 100 Mbps MPLS connection at $1,277, where as SD-WAN at similar speeds only costs $300 per month on average. \u00a0\u00a0\nIs MPLS dead?\nMany network professionals look at MPLS and SD-WAN as an either-or proposition. There's strong momentum behind SD-WANs, and it's coming at MPLS's expense. MPLS usage dropped 24% from 2019 to 2020; in that same time period, the number of enterprises using some form of SD-WAN spiked from 18% to 43%, and interest was further driven by the need to connect datacenters to home workers during the COVID-19 pandemic.\nSo is SD-WAN inevitably going to kill MPLS? Network World's Zeuz Kerravala says the two technologies can coexist, with MPLS's role changing. Small and mid-size businesses can likely sunset MPLS and shift solely to an all-broadband WAN because many of them have moved to an all-cloud IT model.\nLarger enterprises, which may have sunk costs into MPLS networking, will likely take a hybrid approach, where they will keep MPLS for legacy apps that run on-net and then offload Internet traffic, like cloud, to the SD-WAN. Businesses already have hybrid compute, storage, and applications, so hybrid WAN networks won't be anything too strange.\nMPLS will continue to have a role connecting specific point-to-point locations, like large regional offices, retail facilities with point-of-sale systems, regional manufacturing facilities, and multiple data centers. MPLS is well suited for real-time applications like telepresence. And as Verizon (an MPLS provider, admittedly) points out, SD-WAN can actually help you get the most out of your MPLS connection. After all, SD-WAN's promise is that it dynamically routes network traffic in the most efficient way possible to meet your quality of service requirements for various applications, and it can certainly use your MPLS connection to do so.\nIn the end, enterprise WAN architects need to make a risk\/reward calculation between the reliable but expensive performance of MPLS vs. the cheaper but less reliable performance of the Internet. Improvements in other networking technologies and protocols have made internet traffic more reliable, but for some there will always be a place for the ultra-high-reliability of MPLS. Nobody wants to get caught in the cross-hairs when the CEO\u2019s monthly videoconference with branch office employees drops off mid-sentence, after all.