Multiprotocol label switching (MPLS) is a method for setting up dedicated paths across networks without relying on the typical routing process.
After reading this article you will be able to:
Related Content
Subscribe to theNET, Cloudflare's monthly recap of the Internet's most popular insights!
Copy article link
Multiprotocol label switching (MPLS) is a technique for setting up long-range network connections, first developed in the 1990s. The public Internet functions by forwarding packets from one router to the next until the packets reach their destination. MLPS, on the other hand, sends packets along predetermined network paths. Ideally, the result is that routers do not have to decide where to forward each packet, and packets take the same path every time. The result is highly reliable network paths that can connect far-flung branch locations within a corporate wide area network (WAN).
Consider the process of planning a long drive. Instead of identifying which towns and cities one must drive through in order to reach the destination, it is usually more efficient to identify the roads that go in the correct direction. Similarly, MPLS identifies paths — network "roads" — rather than a series of intermediary destinations.
MPLS is considered to operate at OSI layer "2.5", below the network layer (layer 3) and above the data link layer (layer 2).
Anything sent from one computer to another over the Internet is divided up into smaller pieces called packets, instead of getting sent all at once. For example, this webpage was sent to your computer or device in a series of packets that your device reassembled and then displayed. Each packet has an attached header that contains information about where the packet is from and where it is going, including its destination IP address (like the address on a piece of mail).
For a packet to reach its intended destination, routers have to forward it from one network to the next until it finally arrives at the network that contains its destination IP address. That network will then forward the packet to that address and the associated device.
Before routers can forward a packet to its final IP address, they must first determine where the packet needs to go. Routers do this by referencing and maintaining a routing table, which tells them how to forward each packet. Each router examines the packet's headers, consults its internal routing table, and forwards the packet to the next network. A router in the next network goes through the same process, and the process repeats until the packet arrives at its destination.
This approach to routing works well for most purposes; most of the Internet runs using IP addresses and routing tables. However, some users or organizations want their data to travel over paths they can directly control. This is particularly the case when organizations need to ensure reliable connectivity to their internal network at different branch offices, campuses, retail locations, or other remote locations.
In typical Internet routing, each individual router makes decisions independently based on its own internal routing table. Even if two packets come from the same place and are going to the same destination, they may take different network paths if a router updates its routing table after the first packet passes through. However, with MPLS, packets take the same path every time.
In a network that uses MPLS, each packet is assigned to a class called a forwarding equivalence class (FEC). The network paths that packets can take are called label-switched paths (LSP). A packet's class (FEC) determines which path (LSP) the packet will be assigned to. Packets with the same FEC follow the same LSP.
Each packet has one or more labels attached, and all labels are contained in an MPLS header, which is added on top of all the other headers attached to a packet. FECs are listed within each packet's labels. Routers do not examine the packet's other headers; they can essentially ignore the IP header. Instead, they examine the packet's label and direct the packet to the right LSP.
Because MPLS-supporting routers only need to see the MPLS labels attached to a given packet, MPLS can work with almost any protocol (hence the name "multiprotocol"). It does not matter how the rest of the packet is formatted, as long as the router can read the MPLS labels at the front of the packet.
MPLS can be "private" in the sense that only one organization uses certain MPLS paths. However, MPLS does not encrypt traffic. If packets are intercepted along the paths, they can be read. A virtual private network (VPN) does provide encryption and is one method for keeping network connections truly private. But whether a VPN or some other security service is used, MPLS is not secure by default.
Cost: MPLS is more expensive than regular Internet service.
Long setup time: Setting up complicated dedicated paths across one or more large networks takes time. LSPs have to be manually configured by the MPLS vendor or by the organization using MPLS. This makes it difficult for organizations to scale up their networks quickly.
Complexity: MPLS is usually a managed service offered by Internet service providers (ISPs). Since ISPs have different coverage areas, this makes MPLS a region-specific service, and it has to be negotiated with multiple different providers for WANs that span a country or the globe.
Lack of encryption: MPLS is not encrypted; any attacker that intercepts packets on MPLS paths can read them in plaintext. Encryption has to be set up separately.
Cloud challenges: Organizations that rely on cloud services may not be able to set up direct network connections to their cloud servers, as they do not have access to the specific servers where their data and applications live.
MPLS has often been used to set up wide area networks (WANs) for branch networking, connecting various locations to a central headquarters or data center. Branch networks built with MPLS allow spread-out branch offices, restaurants, or campuses to exchange information and access the applications they need.
However, WANs built on MPLS are costly, complex, and difficult to scale up. And because routes are predetermined, network traffic must often be backhauled to central locations, resulting in network bottlenecks and inefficiencies. Many corporate WANs are undergoing a process of network modernization to better support cloud computing, remote work, and the use of Internet of Things (IoT) devices.
To replace MPLS, some organizations adopt managed software-defined WAN (SD-WAN) services, which are often more flexible and less expensive. Others are turning to secure access service edge (SASE) vendors for even better support for the cloud and hybrid work, with security built in instead of tacked on.
Cloudflare Magic WAN replaces or augments MPLS connections with a cloud-based network that is easy to set up and does not rely on expensive hardware appliances. Learn more about Magic WAN.
杀鸡取卵是什么生肖 | 63岁属什么生肖 | 一般细菌培养及鉴定是检查什么 | 五行什么生木 | 不什么其烦 |
k是什么 | 泌尿感染是什么原因引起的 | 老年人喝什么奶粉好 | 心动过速吃什么药最好 | hds是什么意思 |
肚子下面是什么部位 | 人流需要准备什么东西 | 凝血五项是检查什么病 | 血脂厚有什么症状 | 太岁是什么 |
敦促的意思是什么 | 玉米须泡水喝有什么功效 | 胃酸是什么酸 | 尖斌卡引是什么意思 | 什么药能提高免疫力 |
老年人适合吃什么水果hcv7jop4ns7r.cn | 处级是什么级别hcv9jop8ns0r.cn | 酒精胶是粘什么的hcv8jop7ns2r.cn | 脚底疼是什么原因hcv8jop2ns3r.cn | chevy是什么车hcv9jop0ns8r.cn |
腋下属于什么科hcv9jop5ns1r.cn | 74是什么意思hcv9jop6ns2r.cn | 红斑狼疮吃什么药最好onlinewuye.com | 这什么情况hcv7jop4ns6r.cn | 净身出户什么意思travellingsim.com |
煤气罐为什么会爆炸hcv8jop5ns5r.cn | 什么的心情hcv9jop3ns4r.cn | 护发素什么牌子好hcv9jop3ns9r.cn | 排骨焖什么好吃hcv8jop1ns0r.cn | 水饮是什么意思hcv7jop6ns2r.cn |
吃什么可以让胸部变大sanhestory.com | 梦见骨灰盒是什么征兆luyiluode.com | 胃反酸是什么原因hcv8jop7ns5r.cn | 背部疼痛是什么原因引起的hcv7jop9ns9r.cn | 支气管哮喘吃什么药weuuu.com |