Data transmission method and device
By obtaining the operating status in the edge devices of the operator network and switching to the pre-device path, the problem of long-term service switching when P device is abnormal is solved, and fast service traffic transmission is achieved, reducing the probability of packet loss and inter-domain routing convergence is achieved. time.
Patent Information
- Application Number
- CN202310632198.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
When deploying a network, P devices cannot configure the next hop separation, resulting in a long service switching process when P devices or the links connected to it occur, resulting in a high probability of packet loss in service traffic, affecting the end-to-end service experience .
In the edge device of the operator network, obtain the operating status and when an abnormality occurs in the backbone device or its connected link, directly switch the tunnel to the preset alternate path, update the inter-domain route based on the alternate path, and separate through the next hop The technology only updates the next hop address of the inter-domain route, avoiding waiting for the intra-domain route to update.
It effectively shortens the time spent in the business switching process, reduces the probability of loss of business traffic packets, improves the end-to-end business experience, and optimizes the convergence time of inter-domain routing.
Smart Images

Figure CN119071220A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a data transmission method and device. Background Art
[0002] At present, when deploying a network, such as deploying China Unicom A / B network or China Mobile backbone network, CE dual-homing is usually configured, and PE devices are configured to support next-hop separation, so as to achieve rapid switching of routes. However, due to various reasons, these configurations cannot be performed on P devices. As a result, when an abnormality occurs on the P device or the link it connects to, the following process is required to complete the switching. This process includes the following multiple sub-processes that are executed in sequence: intra-domain routing perceives abnormalities, updates intra-domain routing, determines the best path for the tunnel based on the updated intra-domain routing, switches the tunnel to the best path, and updates inter-domain routing based on the best path. The process of updating intra-domain routing takes a long time, resulting in a long service switching process. Summary of the invention
[0003] The present application provides a data transmission method and device. The present application effectively shortens the time consumed in the service switching process and can effectively reduce the probability of packet loss in service traffic. The technical solution provided by the present application is as follows:
[0004] In the first aspect, the present application provides a data transmission method, which is applied to an edge device in an operator network. The method includes: obtaining the operating status of the operator network; when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal, switching the tunnel used by the operator network to a preset backup path; updating the inter-domain routing of the operator network based on the backup path; and forwarding service messages based on the updated inter-domain routing.
[0005] When the backbone equipment of the operator network or the link connected to it indicates an abnormality in the operating status, the tunnel used by the operator network is directly switched to a preset backup path. Since the backup route is a preset protection path and not a path determined based on the updated intra-domain route, the tunnel switching process can be executed without waiting for the intra-domain route to be updated, which effectively shortens the time spent on the service switching process, can effectively reduce the probability of packet loss in service traffic, achieve effective transmission of service traffic, and help improve end-to-end service experience.
[0006] When the operation status obtained by the PE device indicates that the backbone device of the operator network obtains an abnormality in the link to which it is connected, if the service message continues to be transmitted through the backbone device, it will cause the service message transmission to fail, such as the loss of data packets of the service message. At this time, in order to ensure the normal transmission of the service message, the method also includes: when the operation status indicates that the backbone device of the operator network or the link to which it is connected is abnormal, updating the intra-domain routing of the operator network.
[0007] Optionally, the method further includes: determining an update path for the tunnel based on the updated intra-domain routing; when the update path is different from the backup path, switching the tunnel to the update path; and updating the inter-domain routing of the operator network based on the update path. After the intra-domain routing is updated, the update path for the tunnel can be determined based on the updated intra-domain routing, and the tunnel can be switched from the backup path to the update path to ensure that the tunnel has better forwarding performance.
[0008] In one implementation, updating the inter-domain routing of the operator network includes: updating the next hop address of the inter-domain routing. For example, the end address of the update path can be obtained, and then the next hop address of the inter-domain routing is updated to the end address. Optionally, the inter-domain routing can be updated with the help of the next hop separation technology, that is, only the next hop address of the inter-domain routing is updated, without updating all the routes of the inter-domain routing, which can further shorten the convergence time of the inter-domain routing.
[0009] According to an abnormality in the backbone device or the link connected to it, switching the tunnel used by the operator network to a preset backup path can be regarded as a linkage function of the PE device. In one implementation, considering the factors affecting the convergence of inter-domain routing, the linkage function of the PE device can be set to be turned on or off according to the influence of the factor. Therefore, when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal, the tunnel used by the operator network is switched to the preset backup path, including: when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal, if the tunnel is in a linkage state with the link state, the tunnel used by the operator network is switched to the preset backup path.
[0010] In the second aspect, the present application provides a data transmission device, which is applied to an edge device in an operator network. The device includes: an acquisition module, which is used to obtain the operating status of the operator network; a switching module, which is used to switch the tunnel used by the operator network to a preset backup path when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal; an inter-domain routing update module, which is used to update the inter-domain routing of the operator network based on the backup path; and a transceiver module, which is used to forward service messages based on the updated inter-domain routing.
[0011] Optionally, the device further comprises: an intra-domain routing update module, configured to update the intra-domain routing of the operator network when the operation status indicates that a backbone device of the operator network or a link connected thereto is abnormal.
[0012] Optionally, the switching module is further used to determine the update path of the tunnel based on the updated intra-domain route. Correspondingly, the switching module is further used to switch the tunnel to the update path when the update path is different from the backup path. The inter-domain route update module is further used to update the inter-domain route of the operator network based on the update path.
[0013] Optionally, the inter-domain routing update module is specifically used to: update the next hop address of the inter-domain routing.
[0014] Optionally, the switching module is specifically used to: when the operating status indicates that the backbone equipment of the operator network or the link connected to it is abnormal, if the tunnel is in a linkage state with the link status and is turned on, switch the tunnel used by the operator network to a preset backup path.
[0015] In a third aspect, the present application provides a computing device including a memory and a processor, wherein the memory stores program instructions, and the processor runs the program instructions to execute the method provided in the first aspect of the present application and any possible implementation thereof.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium, and the computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device executes the method provided in the first aspect of the present application and any possible implementation thereof.
[0017] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect of the present application and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic diagram of a basic model of a network provided in an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of the dependency relationship between the IGP protocol, tunnel technology and the BGP protocol when using an MPLS tunnel for data transmission provided by an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a switching process provided in an embodiment of the present application;
[0021] Figure 4 is a flow chart of a data transmission method provided by an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a data transmission device provided in an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of another data transmission device provided in an embodiment of the present application;
[0024] Figure 7 It is a structural diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0026] To facilitate understanding, the technology and background involved in the embodiments of the present application are first explained below.
[0027] Border Gateway Protocol (BGP): It is a routing protocol for autonomous systems (AS) running on top of the Transmission Control Protocol (TCP). It is a distance vector routing protocol used to achieve route reachability between autonomous systems and select the best route. As the de facto Internet external routing protocol standard, BGP is widely used between Internet service providers (ISPs). The main function of the BGP system is to exchange network reachability information with other BGP systems. Network reachability information includes information about autonomous systems, which effectively constructs a topological map of the interconnection of autonomous systems. BGP is built on the experience of the Exterior Gateway Protocol (EGP). The Exterior Gateway Protocol provides a way for two adjacent routers located on the border of their respective domains to exchange messages and information.
[0028] BGP is divided into exterior border gateway protocol (EBGP) and interior border gateway protocol (IBGP) according to its operation mode.
[0029] BGP running between different ASs is called EBGP. EBGP can prevent loops between ASs. When a BGP device receives routes sent by an EBGP peer, it will discard the routes with the local AS number. Among the two network devices that establish an EBGP neighbor relationship, one is called a BGP device and the other is called an EBGP peer.
[0030] BGP running within the same AS is called IBGP. IBGP can prevent loops within the AS and ensure that all routers on the BGP routing path know how to forward data packets to the destination. IBGP stipulates that IBGP publishers are not allowed to pass prefixes learned from one IBGP neighbor to other IBGP neighbors. Therefore, in order to ensure connectivity between IBGP peers, a full-mesh relationship needs to be established between IBGP peers. Among them, among the two network devices that have established an IBGP neighbor relationship, one is a BGP device and the other is an IBGP peer.
[0031] Interior gateway protocol (IGP) is a protocol for exchanging routing information between gateways (such as hosts and routers) within an autonomous network. Routing information can be used by the Internet protocol (IP) or other network protocols to describe how routing transmission is performed. The Internet is divided into multiple domains or multiple autonomous systems. A domain is a collection of hosts and routers that use the same routing protocol and are managed by a single organization. IGP protocols include the open shortest path first (OSPF) routing protocol, the intermediate system-to-intermediate system (IS-IS) routing protocol, etc.
[0032] The difference between BGP and IGP is that BGP focuses not on discovering and calculating routes, but on controlling route propagation and selecting the best route. BGP transfers all the work of route discovery to the IGP protocol, and it itself focuses on route control. Therefore, BGP operation needs to rely on IGP.
[0033] Autonomous system: A small network unit in the Internet that has the right to independently decide which routing protocol should be used in the system. The network unit can be a simple network or a network group controlled by one or more ordinary network administrators. An autonomous system is sometimes also called a routing domain. An autonomous system is assigned a globally unique 16-bit number called an autonomous system number (ASN).
[0034] Routing between autonomous systems is called inter-domain routing, and routing within an autonomous system is called intra-domain routing. For example, BGP routing is inter-domain routing, and IGP routing is intra-domain routing.
[0035] Multi-protocol label switching (MPLS): It is a new generation of IP high-speed backbone network switching standard proposed by the Internet Engineering Task Force (IETF). MPLS assigns labels to network segments through the label distribution protocol (LDP), establishes a label forwarding table, and replaces three-layer routing forwarding with label forwarding, thereby improving data forwarding efficiency. When a packet enters the network, it is assigned a short label of fixed length and encapsulated with the packet. During the entire forwarding process, the switching node forwards only according to the label. MPLS seamlessly integrates the flexibility of IP routing technology and the simplicity of asynchronous transfer mode (ATM) label switching technology. MPLS adds a connection-oriented control plane to the connectionless IP network, adding management and operation means to the IP network. In IP networks, MPLS traffic engineering technology has become an important technology for managing network traffic, reducing congestion, and ensuring the quality of service (QoS) of IP networks. Therefore, the use of MPLS-based IP networks has become an important means for IP network operators to provide value-added services.
[0036] Virtual Private Network (VPN): A private network established on a public network. A virtual private network can establish a dedicated communication line between two or more corporate intranets located in different places connected to the Internet through a special encrypted communication protocol. The gateway of the virtual private network achieves remote access by encrypting data packets and converting the destination address of data packets. It is called a virtual network mainly because the connection between any two nodes in the entire network does not have the end-to-end physical link required by traditional private networks, but is a logical network built on the network platform provided by public network service providers (such as the Internet, ATM and frame relay, etc.), and user data is transmitted in the logical link. It covers the expansion of private networks that encapsulate, encrypt and authenticate links across shared networks or public networks. Virtual private networks mainly use tunneling technology, encryption and decryption technology, key management technology and user and device authentication technology. Virtual private networks are widely used in corporate networks, and they are understood as virtual internal corporate dedicated lines. There are many ways to classify virtual private networks, mainly by protocol. Virtual private networks can be implemented in many ways such as servers, hardware, and software. Virtual private networks are low-cost and easy to use.
[0037] BGP / MPLS IP VPN: Also commonly known as MPLS L3VPN, it is a layer 3 (L3) VPN. It uses BGP to publish VPN routes on the backbone network of the service provider (SP), and uses MPLS to forward VPN packets on the backbone network of the service provider. The service provider is also called an operator. The IP here refers to the IP packets carried by the VPN.
[0038] like Figure 1 As shown in Figure 1, the basic model of the current network consists of three parts: customer edge (CE) equipment, provider edge (PE) equipment, and provider (P) equipment. PE equipment and P equipment are only managed by SPs. CE equipment is only managed by users, unless users delegate management rights to SPs.
[0039] The interface of the CE device is directly connected to the network of the SP. A CE device can connect to multiple PEs belonging to the same or different operators. The CE device can be a router or a switch, or it can be a host. For example, when the CE device is a router, it can provide service access to users by connecting to one or more PE routers. The CE device is a user device and does not need to be aware of the existence of the public network and other private networks. Therefore, the CE device only needs to transmit the local private network route to the PE device. Generally, in BGP / MPLS IP VPN, the CE cannot "sense" the existence of the VPN and does not need to support MPLS.
[0040] PE devices are edge devices of the operator network. PE devices connect CE devices and P devices and are the most important network nodes. User traffic flows into the user network through PE devices, or flows to the backbone network through PE devices. One PE can access multiple CE devices, and multiple PE devices can be connected through P devices. In an MPLS network, all VPN processing occurs on PE, which places high requirements on PE performance.
[0041] P devices are backbone devices in the operator's network and are not directly connected to CE. P devices need to have basic forwarding capabilities. For example, P devices only need to have basic MPLS forwarding capabilities and do not need to maintain VPN information.
[0042] Tunneling technology is a way to transfer data between networks by using the infrastructure of the Internet. The data (or load) transferred by the tunnel can be data frames or packets of different protocols. The tunneling protocol re-encapsulates the data frames or packets of other protocols and sends them through the tunnel. The re-encapsulated frame header provides routing information to transmit the encapsulated load data through the Internet. The tunnel mentioned here is similar to a point-to-point connection. This method enables network services from many information sources to be transmitted through different tunnels in the same infrastructure. Tunneling technology uses a point-to-point communication protocol instead of a switching connection to connect data addresses through a routing network. Tunneling technology allows authorized mobile users or authorized users to access the enterprise network at any time and any place. Transmitting data through a tunnel has the following advantages: forcing the data stream to a specific address, hiding private network addresses, transmitting non-IP data packets on the IP network, and providing data security support.
[0043] Routing is the process of finding the routing table in the routing node based on the destination IP address of the message to obtain the next hop information of the message. The next hop information usually indicates the port number of the port that forwards the data packet.
[0044] The routing table is stored in routing nodes such as routers and is used to record routing forwarding information. The routing table stores the routes and metrics related to these routes, indicating the correspondence between the prefix item of the IP address and the next hop information. The prefix item of the IP address is the address part of the IP address that corresponds to its network part. The prefix item of the IP address is the network address of the IP address, which is used to indicate the network number of a network connected to the Internet. The routing table is a general term for the routing information base (RIB) and the forwarding information base (FIB). The RIB is used to make routing decisions, and the FIB is used to forward packets. Each forwarding item in the FIB table indicates which physical interface or logical interface of the router the message arriving at a certain network segment or a certain host should be sent through, and then it can reach the next router on the path, or it will not pass through other routers and be transmitted to the destination host in the directly connected network. The content stored in the FIB table is similar to that of the routing table, but it is also a supplement to the routing table. Its supplementary content includes the way to forward messages, determine the next hop of the message according to the destination address, and then determine the time consumption and routing type. The most important thing is of course the outbound interface information. After the routing table selects a route, it sends the activated route to the FIB table. When the packet reaches the router, it forwards it by looking up the FIB table.
[0045] Convergence refers to the process of all routers' routing tables becoming consistent. When all routers obtain complete and accurate network information, the network is converged. Convergence time refers to the time it takes routers to share network information, calculate the best path, and update the routing table. Routing protocols and router performance are generally evaluated based on convergence speed.
[0046] Bidirectional forwarding detection (BFD): A network protocol used to detect whether there is an abnormality between two forwarding points. BFD can provide millisecond-level detection and can realize rapid detection of the connection status between two forwarding points. BFD can be bound to the BGP neighbor relationship between the two forwarding points, which can realize rapid convergence of routes between the two forwarding points and ensure business continuity. In addition, BFD can use BFD packets to detect the connection status when the other end does not have the BFD protocol support capability, so that the BFD can be used for detection regardless of whether the other end has the BFD protocol support capability, ensuring that the use of BFD for detection has a wide range of applications. A bidirectional forwarding detection connection is established between two network devices, and the BFD connection is used to detect the connection status between the two network devices.
[0047] like Figure 1 As shown in Figure 1, when service traffic reaches the PE device at the entrance of the backbone network, the PE device needs to find the inter-domain route to guide the forwarding of service traffic. When using tunnel technology to forward service traffic, the establishment of inter-domain routes depends on the tunnel that carries the service, and the establishment of tunnels depends on the intra-domain routes of the bearer network. Figure 2 FIG. 1 is a schematic diagram of the dependency relationship between inter-domain routing, tunnel technology, and intra-domain routing when using an MPLS tunnel for data transmission provided by an embodiment of the present application. Figure 2 As shown, in the inter-domain routing table, the key is the IP address of the service traffic, and the encapsulation content is the tunnel label. In the tunnel table, the key is the tunnel label, and the path information is the outgoing interface information and the next hop information. In the intra-domain routing table, the key is the address of the bearer network, and the path information is the outgoing interface information and the next hop information. After receiving the service traffic, you can first search the inter-domain routing table according to the destination address of the service traffic to obtain the label of the tunnel used to forward the service traffic. Then, search the tunnel table according to the tunnel label to obtain the outgoing interface information and the next hop information of the service traffic in the tunnel. Then, according to the destination address of the tunnel, search the intra-domain routing table to determine the next hop information and outgoing interface of the service traffic in the self-made system.
[0048] At present, when deploying a network, for example, when some operators deploy a backbone network, they usually configure dual-homing of CEs and configure PE devices to support next-hop separation in order to achieve fast switching of routes. Figure 3As shown in the figure, when an abnormality occurs in the egress PE device PE3 or its downlink, the transmission path of the service traffic can be quickly switched from path 1 to path 2, and the switching time can be controlled in milliseconds or sub-seconds to ensure the smooth transmission of the service traffic. However, due to various reasons, these configurations cannot be performed on the P device. In this way, when the P device (such as Figure 3 When an abnormality occurs in the P1 device or the link connected to it, the following process is required to complete the switchover. This process includes the following multiple sub-processes that are executed in sequence: intra-domain routing perception of abnormalities, updating of intra-domain routing, determining the best path for the tunnel based on the updated intra-domain routing, switching the tunnel to the best path, and updating the inter-domain routing based on the best path. From the perception of abnormalities in the P device or the link connected to it to the completion of the update of the intra-domain routing, a long process of routing convergence and routing table delivery is required in between, which makes the process of updating the intra-domain routing time-consuming, resulting in a long service switching process. For example, the process usually takes seconds or tens of seconds, which leads to a high probability of packet loss in the service traffic, affecting the end-to-end service experience. In addition, since the time consumption of this process is usually strongly related to the number of routes and the number of routing nodes that need to be delivered, the impact is particularly obvious in large-scale networks.
[0049] To this end, an embodiment of the present application provides a data transmission method, which is applied to an edge device in an operator network. The method includes: obtaining the operating status of the operator network. When the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal, the tunnel used by the operator network is switched to a preset backup path. The inter-domain routing of the operator network is updated based on the backup path. The service message is forwarded based on the updated inter-domain routing.
[0050] In this way, when an abnormality occurs in the backbone equipment of the operator network or the link to which it is connected, the tunnel used by the operator network is directly switched to the preset backup path. Since the backup route is a preset protection path and not a path determined based on the updated intra-domain route, the tunnel switching process can be executed without waiting for the intra-domain route to be updated, effectively shortening the time spent on the service switching process, effectively reducing the probability of packet loss in service traffic, achieving effective transmission of service traffic, and helping to improve end-to-end service experience.
[0051] Please refer to the structural diagram of the implementation environment involved in the data transmission method provided in the embodiment of the present application. Figure 1 .like Figure 1 As shown, the implementation environment includes: CE equipment, PE equipment and P equipment.
[0052] Among them, the CE device is directly connected to the operator network. One CE device can connect to multiple PEs belonging to the same or different operators. The CE device is a user device and usually does not need to perceive the existence of the public network and other private networks. Therefore, the CE device only needs to transmit the local private network route to the PE device. For example, the CE device cannot perceive the existence of VPN and does not need to support MPLS. Optionally, the CE device can be a router or a switch, or it can be a host. Among them, the switch can be a layer 2 switch or a layer 3 switch, and the embodiments of the present application do not make specific limitations on this.
[0053] P devices are backbone devices in the operator's network. P devices are not directly connected to CE devices. P devices need to have basic forwarding capabilities. For example, P devices only need to have basic MPLS forwarding capabilities and do not need to maintain VPN information.
[0054] PE devices are edge devices of the operator network. PE devices connect CE devices and P devices and are the most important network nodes. User traffic flows into the user network through PE devices, or flows to the backbone network through PE devices. PE devices can be directly connected to CE devices, and multiple PE devices can be connected through P devices. Multiple PE devices can belong to the same ISP or different ISPs, which is not limited here. One PE device can access multiple CE devices. One CE device can also connect to multiple PE devices belonging to the same or different ISPs. In an MPLS network, all VPN processing occurs on the PE device, so the performance requirements of the PE device are relatively high. PE devices and P devices are only managed by the ISP, and CE devices are only managed by users, but user management of CE devices can also be implemented by the ISP. For example, when the user entrusts the management authority of CE to the ISP, CE is managed by the ISP. Optionally, the PE device can be a router (including traditional routers, virtual routers, etc.) or a switch (such as an L3 switch).
[0055] exist Figure 1 In the scenario shown, each network device is used for message forwarding. Through the forwarding operation of multiple network devices, data exchange between user terminals and operator networks, or data exchange between user terminals can be realized. For example, the data flow of the user terminal can be forwarded to the operator network through CE device → PE device → P device, and the data flow of the operator network can also be forwarded to the user terminal through P device → PE device → CE device.
[0056] In one implementation, the data transmission method provided in the embodiment of the present application can be implemented by running an executable program on a PE device. For example, the executable program of the data transmission method can be presented in the form of an application installation package. After the application installation package is installed in the PE device, the data transmission method can be implemented by running the executable program.
[0057] It should be understood that the above content is an exemplary description of the implementation scenario of the data transmission method provided in the embodiment of the present application, and does not constitute a limitation on the implementation scenario of the data transmission method. It is known to those skilled in the art that as business needs change, its implementation scenario can be adjusted according to application requirements. For example, the data transmission method provided in the embodiment of the present application can also be applied to other scenarios using inter-domain routing, intra-domain routing and tunneling technology for data transmission, which are not listed one by one in the embodiment of the present application.
[0058] The data transmission method provided in the embodiment of the present application is described below. Figure 4 As shown, the data transmission method includes the following steps:
[0059] Step 401: Obtain the operating status of the operator network.
[0060] The PE device can obtain the operating status of the operator network. In one implementation, the PE device can send a detection packet to the network device in the operator network, and determine the link status of the link between the PE device and the network device based on the feedback of the network device to the detection packet. For example, the PE device can send a detection packet to the next hop device recorded in the routing table entry according to the record in its routing table to detect whether the next hop is reachable, thereby obtaining the link status of the link between the PE device and the next hop device. For another example, the PE device can send a detection packet to the destination address recorded in the routing table entry according to the record in its routing table to detect whether the destination address is reachable, thereby obtaining the link status of the link between the PE device and the destination address.
[0061] Step 402: When the operation status indicates that a backbone device of the operator network or a link connected thereto is abnormal, the tunnel used by the operator network is switched to a preset backup path.
[0062] When the operating status obtained by the PE device indicates that the backbone device of the operator network or the link to which it is connected is abnormal, continuing to transmit business messages through the backbone device will result in failure of business message transmission, such as loss of data packets of business messages. At this time, in order to ensure the normal transmission of business messages, the tunnel used by the operator network can be switched to a preset backup path to transmit business messages through the backup path to ensure the normal transmission of business messages. Among them, the preset backup path can be a backup path pre-configured for the tunnel based on network deployment, and the backup path is a tunnel path that can ensure the normal transmission of business messages. The backbone device can be a P device in the operator network (such as Figure 3 The link connected to the backbone device can be an uplink directly connected to the backbone device (such as Figure 3 Link 1 in the Figure 3 3) The backbone device or the link connected to it is abnormal, which may be that the backbone device or the link connected to it is faulty, degraded, or has performance fluctuations.
[0063] When an abnormality occurs in the backbone equipment of the operator network or the link to which it is connected, the tunnel used by the operator network is directly switched to the preset backup path. Since the backup route is a preset protection path and not a path determined based on the updated intra-domain route, the tunnel switching process can be executed without waiting for the intra-domain route to be updated, which greatly improves the convergence performance of the tunnel and shortens the time consumed for tunnel convergence, thereby shortening the time consumed in the service switching process.
[0064] This step 402 can be regarded as a linkage function when an abnormality occurs in the backbone device or the link connected to it. Optionally, the linkage function can be a configurable function of the PE device. In one implementation, taking into account the factors that affect the convergence of inter-domain routing, the linkage function of the PE device can be set to be on or off according to the influence of the factor. For example, when the application requirement indicates that protection must be provided as soon as possible in the event of an abnormality, the linkage function of the PE device is set to be on. When the application requirement indicates that the tunnel does not need to use a backup path for transition in the event of an abnormality, the linkage function of the PE device is set to be off. For another example, when there is a faster protection mechanism for intra-domain routing, the linkage function of the PE device is set to be off.
[0065] When the linkage function of the PE device is turned on, the implementation process of step 402 includes: when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal, if the tunnel is in a linkage state with the link state, the tunnel used by the operator network is switched to a preset backup path.
[0066] Step 403: Update the inter-domain routing of the operator network based on the backup path.
[0067] After switching the tunnel used by the operator network to the preset backup path, the PE device can update the inter-domain routing of the operator network based on the backup path. In one implementation, updating the inter-domain routing of the operator network based on the backup path includes: updating the next hop address of the inter-domain routing based on the backup path. For example, the destination address using the backup path can be obtained, and then the next hop address of the inter-domain routing is refreshed to the destination address. Optionally, step 403 can update the inter-domain routing with the help of the next hop separation technology, that is, only the next hop address of the inter-domain routing is updated without updating all the routes of the inter-domain routing, which can further shorten the convergence time of the inter-domain routing.
[0068] Step 404: Forward the service message based on the updated inter-domain routing.
[0069] After the inter-domain route is updated based on the backup path, if the forwarding timing arrives, the PE device can forward the service message based on the updated inter-domain route.
[0070] Step 405: When the operation status indicates that the backbone device of the operator network or the link to which it is connected is abnormal, the intra-domain routing of the operator network is updated.
[0071] When the operating status obtained by the PE device indicates that the backbone device of the operator network has an abnormality in obtaining the link to which it is connected, if the service message continues to be transmitted through the backbone device, it will cause the service message transmission to fail, such as the loss of data packets of the service message. At this time, in order to ensure the normal transmission of the service message, the intra-domain routing of the operator network can be updated, so that the service message can be transmitted in the operator network based on the updated intra-domain routing. Among them, the backbone device can be a P device in the operator network (such as Figure 3 The link connected to the backbone device can be an uplink directly connected to the backbone device (such as Figure 3 Link 1 in the Figure 3 3) The backbone device or the link connected to it is abnormal, which may be that the backbone device or the link connected to it is faulty, degraded, or has performance fluctuations.
[0072] In one implementation, updating the intra-domain routing includes: performing routing calculation, generating a new routing table according to the calculation result, storing the new routing table in the control plane, and sending the new routing table to the forwarding plane. The performing routing calculation refers to performing routing calculation according to the routing optimization algorithm of the intra-domain routing itself, for example, calculating the shortest path used for forwarding according to the transmission cost.
[0073] It should be noted that step 405 and step 402 may be performed in parallel. For example, when the operation status indicates that the backbone device of the operator network or the link to which it is connected is abnormal, step 405 and step 402 may be performed simultaneously.
[0074] Step 406: Determine an update path for the tunnel based on the updated intra-domain routing.
[0075] After the intra-domain routing is updated, the path of the tunnel can be determined based on the updated intra-domain routing, and the path is the updated path of the tunnel. The updated path is the optimal path of the tunnel under the updated intra-domain routing.
[0076] Step 407: When the updated path is different from the standby path, the tunnel is switched to the updated path.
[0077] After determining the update path of the tunnel, the tunnel can be switched from the alternative path to the update path to ensure that the tunnel has better forwarding performance. At this time, the alternative path of the tunnel can be regarded as a transition path when an abnormality occurs in the backbone device or the link connected to it.
[0078] Step 408: Update the inter-domain routing of the operator network based on the updated path.
[0079] After switching the tunnel to the update path, the PE device can update the inter-domain routing of the operator network based on the update path. In one implementation, updating the inter-domain routing of the operator network based on the update path includes: updating the next hop address of the inter-domain routing based on the update path. For example, the end point address of the update path can be obtained, and then the next hop address of the inter-domain routing can be refreshed to the end point address. Optionally, step 408 can update the inter-domain routing with the help of the next hop separation technology, that is, only the next hop address of the inter-domain routing is updated, without updating all the routes of the inter-domain routing, which can further shorten the convergence time of the inter-domain routing.
[0080] It should be noted that steps 406 to 408 are optional steps. That is, after updating the intra-domain routing, it can be determined whether to update the path of the tunnel according to the updated intra-domain routing based on the application requirements. For example, when the application requirements indicate that the network performance requirements are high, the above steps 406 to 408 can be executed to ensure the forwarding performance of the tunnel using the updated path. For another example, when the application requirements indicate that the network performance requirements are low, since the backup path of the tunnel can still be used to transmit service messages when the intra-domain routing is updated, the above steps 406 to 408 may not be executed.
[0081] Step 409: Forward the service message based on the inter-domain route that has been updated again.
[0082] When executing steps 406 to 408, if the forwarding timing arrives, the PE device may forward the service message based on the inter-domain route that is updated again based on the updated path.
[0083] In summary, in the data transmission method provided in the embodiment of the present application, when the PE device indicates in the running state that the backbone device of the operator network or the link connected thereto is abnormal, the tunnel used by the operator network is directly switched to the preset backup path. Since the backup route is a preset protection path, not a path determined according to the updated intra-domain route, the process of switching the tunnel can be executed without waiting for the intra-domain route to complete the update, which effectively shortens the time consumed by the service switching process, can effectively reduce the probability of packet loss in the service traffic, realize the effective transmission of the service traffic, and help improve the end-to-end service experience. In addition, by using the next-hop separation technology, only the next-hop address of the inter-domain route is updated, without updating all the routes of the inter-domain route, which can further shorten the convergence time of the inter-domain route. For example, through the data transmission method provided in the embodiment of the present application, the switching time of the transmission path of the service traffic can be optimized from about 10 seconds to below the millisecond level, which can effectively reduce the packet loss time of the service message and ensure the effective transmission of the service message.
[0084] It should be noted that the sequence of steps of the data transmission method provided in the embodiment of the present application can be adjusted appropriately, and the steps can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a change within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.
[0085] The above describes the data transmission method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a data transmission device. The device is applied to an edge device in an operator network. Figure 5 Schematic diagram of a data transmission device provided in an embodiment of the present application. Figure 5 As shown in the following multiple modules, the Figure 5 The data transmission device shown can perform the above Figure 4 It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Figure 5 As shown, the data transmission device 50 may include:
[0086] The acquisition module 501 is used to acquire the operation status of the operator network.
[0087] The switching module 502 is used to switch the tunnel used by the operator network to a preset backup path when the operating status indicates that the backbone device of the operator network or the link connected to it is abnormal.
[0088] The inter-domain routing updating module 503 is used to update the inter-domain routing of the operator network based on the backup path.
[0089] The transceiver module 504 is used to forward the service message based on the updated inter-domain route.
[0090] Alternatively, if Figure 6 As shown, the device further includes: an intra-domain routing update module 505, which is used to update the intra-domain routing of the operator network when the operating status indicates that the backbone device of the operator network or the link connected thereto is abnormal.
[0091] Optionally, the switching module 502 is further used to determine the update path of the tunnel based on the updated intra-domain route. Accordingly, the switching module 502 is further used to switch the tunnel to the update path when the update path is different from the backup path. The inter-domain route updating module 503 is further used to update the inter-domain route of the operator network based on the update path.
[0092] Optionally, the inter-domain routing updating module 503 is specifically configured to update the next hop address of the inter-domain routing.
[0093] Optionally, the switching module 502 is specifically used to: when the operating status indicates that the backbone equipment of the operator network or the link connected to it is abnormal, if the tunnel is in a linkage state with the link state, switch the tunnel used by the operator network to a preset backup path.
[0094] In summary, in the data transmission method provided in the embodiment of the present application, when the PE device indicates in the running state that the backbone device of the operator network or the link connected thereto is abnormal, the tunnel used by the operator network is directly switched to the preset backup path. Since the backup route is a preset protection path, not a path determined according to the updated intra-domain route, the process of switching the tunnel can be executed without waiting for the intra-domain route to complete the update, which effectively shortens the time consumed by the service switching process, can effectively reduce the probability of packet loss in the service traffic, realize the effective transmission of the service traffic, and help improve the end-to-end service experience. In addition, by using the next-hop separation technology, only the next-hop address of the inter-domain route is updated, without updating all the routes of the inter-domain route, which can further shorten the convergence time of the inter-domain route. For example, through the data transmission method provided in the embodiment of the present application, the switching time of the transmission path of the service traffic can be optimized from about 10 seconds to below the millisecond level, which can effectively reduce the packet loss time of the service message and ensure the effective transmission of the service message.
[0095] It should be noted that, in other embodiments, any of the acquisition module 501, the switching module 502, the inter-domain routing update module 503, the transceiver module 504, and the intra-domain routing update module 505 can be used to execute any step in the data transmission method. The steps that the acquisition module 501, the switching module 502, the inter-domain routing update module 503, the transceiver module 504, and the intra-domain routing update module 505 are responsible for implementing can be specified as needed, and the acquisition module 501, the switching module 502, the inter-domain routing update module 503, the transceiver module 504, and the intra-domain routing update module 505 respectively implement different steps in the data transmission method to realize all functions of the data transmission device.
[0096] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding contents in the aforementioned method embodiments and will not be repeated here.
[0097] The embodiment of the present application provides a computing device, which is used to implement part or all of the functions of the data transmission method provided in the embodiment of the present application. Figure 7 Schematic diagram of a computing device provided in an embodiment of the present application. Figure 7 As shown, the computing device 700 includes a processor 701, a memory 702, a communication interface 703 and a bus 704. The processor 701, the memory 702 and the communication interface 703 are connected to each other through the bus 704.
[0098] Processor 701 may include a general processor and / or a dedicated hardware chip. A general processor may include: a central processing unit (CPU), a microprocessor or a graphics processing unit (GPU). The CPU is, for example, a single-core processor (single-CPU), or a multi-core processor (multi-CPU). A dedicated hardware chip is a hardware module for high-performance processing. A dedicated hardware chip includes at least one of a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or a network processor (NP). Processor 701 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, some or all of the functions of the data transmission method of the present application can be completed by the hardware integrated logic circuit in the processor 701 or instructions in the form of software.
[0099] The memory 702 is used to store computer programs, and the computer programs include an operating system 702a and executable codes (i.e., program instructions) 702b. The memory 702 is, for example, a read-only memory or other types of static storage devices that can store static information and instructions, or a random access memory or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory, a read-only optical disc or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a blue-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired executable code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. For example, the memory 702 is used to store an outbound port queue, etc. The memory 702 is, for example, independent and connected to the processor 701 via a bus 704. Or the memory 702 and the processor 701 are integrated together. The memory 702 can store executable code. When the executable code stored in the memory 702 is executed by the processor 701, the processor 701 is used to perform some or all functions of the data transmission method provided in the embodiment of the present application. For the implementation of the processor 701 to perform the process, please refer to the relevant description in the aforementioned embodiment. The memory 702 may also include software modules and data required for other running processes such as an operating system.
[0100] The communication interface 703 uses a transceiver module such as, but not limited to, a transceiver to achieve communication with other devices or communication networks. For example, the communication interface 703 can be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
[0101] The bus 704 is any type of communication bus for interconnecting the internal devices of the computing device (e.g., the memory 702, the processor 701, and the communication interface 703). For example, a system bus. The embodiment of the present application takes the interconnection of the above-mentioned devices inside the computing device through the bus 704 as an example. Optionally, the above-mentioned devices inside the computing device 700 can also be connected to each other in communication with each other using other connection methods other than the bus 704. For example, the above-mentioned devices inside the computing device 700 are interconnected through an internal logical interface.
[0102] It should be noted that the above-mentioned multiple devices can be respectively arranged on independent chips, or at least partially or completely arranged on the same chip. Whether to independently arrange each device on different chips or to integrate and arrange it on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above-mentioned devices. The descriptions of the processes corresponding to the above-mentioned figures have different focuses. For the parts not described in detail in a certain process, please refer to the relevant descriptions of other processes.
[0103] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product providing a program development platform includes one or more computer instructions, and when these computer program instructions are loaded and executed on a computing device, all or part of the functions of the data transmission method provided in the embodiments of the present application are implemented.
[0104] Furthermore, computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium stores computer program instructions that provide a program development platform.
[0105] An embodiment of the present application also provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are executed on a computing device, the computing device implements the data transmission method provided in the embodiment of the present application.
[0106] The embodiment of the present application also provides a computer program product including instructions. When the computer program product is executed on a computer, the computer implements the data transmission method provided by the embodiment of the present application.
[0107] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0108] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the original data and executable code involved in this application are all obtained with full authorization.
[0109] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless otherwise expressly defined.
[0110] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0111] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method is applied to an edge device in an operator network, and the method comprises: Obtaining the operating status of the operator network; When the operation status indicates that a backbone device of the operator network or a link connected thereto is abnormal, switching the tunnel used by the operator network to a preset backup path; Updating the inter-domain routing of the operator network based on the alternate path; Service packets are forwarded based on the updated inter-domain routes.
2. The method according to claim 1, characterized in that The method further comprises: When the operation status indicates that a backbone device of the operator network or a link connected thereto is abnormal, the intra-domain routing of the operator network is updated.
3. The method according to claim 2, characterized in that The method further comprises: Determining an update path of the tunnel based on the updated intra-domain routing; When the updated path is different from the standby path, switching the tunnel to the updated path; The inter-domain routing of the operator network is updated based on the update path.
4. The method according to any one of claims 1 to 3, characterized in that: The updating of the inter-domain routing of the operator network includes: Update the next hop address of the inter-domain route.
5. The method according to any one of claims 1 to 4, characterized in that: When the operation status indicates that a backbone device of the operator network or a link connected thereto is abnormal, switching the tunnel used by the operator network to a preset backup path includes: When the operating status indicates that an abnormality occurs in the backbone device of the operator network or a link connected thereto, if the tunnel is in a linkage state with the link status and is opened, the tunnel used by the operator network is switched to a preset backup path.
6. A data transmission device, characterized in that: The device is applied to an edge device in an operator network, and the device includes: An acquisition module, used to acquire the operating status of the operator network; A switching module, configured to switch the tunnel used by the operator network to a preset backup path when the operating status indicates that a backbone device of the operator network or a link connected thereto is abnormal; An inter-domain routing update module, configured to update the inter-domain routing of the operator network based on the backup path; The transceiver module is used to forward service messages based on the updated inter-domain routing.
7. The device according to claim 6, characterized in that The device also includes: The intra-domain routing update module is used to update the intra-domain routing of the operator network when the operating status indicates that the backbone device of the operator network or the link connected thereto is abnormal.
8. The device according to claim 7, characterized in that The switching module is further used to determine an update path of the tunnel based on the updated intra-domain routing; The switching module is further configured to switch the tunnel to the update path when the update path is different from the standby path; The inter-domain routing updating module is further configured to update the inter-domain routing of the operator network based on the updated path.
9. The device according to any one of claims 6 to 8, characterized in that: The inter-domain routing update module is specifically used for: Update the next hop address of the inter-domain route.
10. The device according to any one of claims 6 to 9, characterized in that: The switching module is specifically used for: When the operating status indicates that an abnormality occurs in the backbone device of the operator network or a link connected thereto, if the tunnel is in a linkage state with the link status and is opened, the tunnel used by the operator network is switched to a preset backup path.
11. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores program instructions, and the processor runs the program instructions to execute the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The method comprises program instructions, and when the program instructions are executed on a computing device, the computing device is caused to execute the method according to any one of claims 1 to 5.
