A data transmission method and apparatus

By sending user entries directly to the second user plane network element from the control plane network element and switching interfaces, the problem of packet loss caused by changes in user priority is solved, and the reliability and efficiency of data transmission are improved.

CN114884875BActive Publication Date: 2026-12-04HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110082610.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-21
Publication Date
2026-12-04
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

When user priority changes, the mechanism for the control plane network element to notify the second user plane network element to process data packets is not fully established, leading to data packet loss.

Method used

The control plane network element skips sending the deletion command to the first user plane network element, directly sends the user table entry to the second user plane network element, and notifies the decision network element and the handover network element to perform interface handover, so as to ensure that data packets are not lost during the handover process.

Benefits of technology

By avoiding packet loss on both the user side and the network side during user plane network element handover, the reliability and efficiency of data transmission are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114884875B_ABST
    Figure CN114884875B_ABST
Patent Text Reader

Abstract

This application discloses a data transmission method and apparatus, relating to the field of communications. The method includes: after a control plane network element receives a first instruction, it skips the step of issuing a deletion instruction to a first user plane network element, and sends a user entry to a second user plane network element according to the first instruction. This deletion instruction instructs the first user plane network element to delete the user entry stored on its table. Compared to the method where the control plane network element notifies the second user plane network element to process user data packets, which deletes the user entry stored in the first user plane network element, the method provided in this application allows the terminal device to access the interface corresponding to the first user plane network element. Data packets sent from the terminal to the server are received by the first user plane network element. Furthermore, after the control plane network element sends the user entry to the second user plane network element, it has not yet deleted the user entry from the first user plane network element. The first user plane network element can then send the data packet to the server based on the user entry, thus avoiding user-side traffic loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a data transmission method and apparatus. Background Technology

[0002] During the process of users accessing servers via the network using terminal devices, the broadband network gateway (BNG) is used to perform functions such as user authentication, access control, and traffic scheduling. With the emergence of various internet services, in order to improve the bandwidth and user session handling capacity of the BNG, software-defined networking (SDN) and network function virtualization (NFV) technologies can be used to divide the BNG into control plane elements and user plane elements. The control plane elements are used to implement the BNG's control functions, while the user plane elements are used to implement the BNG's data encapsulation and forwarding functions. This decouples control and forwarding functions, as well as software and hardware, improving the flexibility and scalability of BNG deployment.

[0003] Typically, one control plane network element can manage multiple user plane network elements. If a user's priority changes, the control plane network element can reassign the first user plane network element to handle the user's data packets to the second user plane network element. However, if the control plane network element notifies the second user plane network element to handle the user's data packets, and before the mechanism for handling user data packets is fully established, the user entry stored in the first user plane network element is deleted. This results in both the first and second user plane network elements being unable to handle the user's data packets, leading to data packet loss. Therefore, how to avoid data packet loss during data transmission is a pressing problem that needs to be solved. Summary of the Invention

[0004] This application provides a data transmission method and apparatus that solves the problem of data packet loss during data transmission.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, this application provides a data transmission method applied to a communication network, which includes a first user plane network element, a second user plane network element, and a control plane network element. The control plane network element is connected to both the first and second user plane network elements. The method is executed by the control plane network element and includes: after receiving a first instruction, the control plane network element skips the step of issuing a deletion instruction to the first user plane network element and sends a user entry to the second user plane network element according to the first instruction. The first instruction is used to instruct the user entry of the terminal device to be switched from the first user plane network element to the second user plane network element; the deletion instruction is used to instruct the first user plane network element to delete the user entry on its own network; the user entry can be used by the user plane network element to verify data packets sent by the terminal device to the server. Since both the first and second user plane network elements maintain user entries, when the terminal device is connected to the interface corresponding to the first user plane network element but not yet connected to the interface corresponding to the second user plane network element, data packets sent by the terminal device to the server and data packets sent by the server to the terminal device can be forwarded by the first user plane network element, avoiding data packet loss during data transmission.

[0007] In one example, the switching network element establishes a first tunnel with the first user plane network element through a first interface. The terminal device connects to the interface corresponding to the first user plane network element, but has not yet connected to the interface corresponding to the second user plane network element. Data packets sent by the terminal device to the server are sent from the terminal device to the first user plane network element through the first tunnel, and the first user plane network element sends them to the server according to the user table entry. Data packets sent by the server to the terminal device are sent from the server to the first user plane network element according to the first user route, and the first user plane network element sends them to the terminal device through the first tunnel. The first user route is published by the first user plane network element.

[0008] In one possible implementation, the aforementioned communication network may further include a handover network element and a decision network element. The decision network element is connected to both the control plane network element and the handover network element. After the control plane network element sends a user entry to the second user plane network element according to the first instruction, the data transmission method may further include: the control plane network element instructing the decision network element to send a second instruction to the handover network element. This second instruction instructs the handover network element to connect the terminal device to the interface corresponding to the second user plane network element. For example, the control plane network element sends a response message of the first instruction to the decision network element, so that upon receiving the response message, the decision network element sends a second instruction to the handover network element, so that the handover network element connects the terminal device to the interface corresponding to the second user plane network element according to the second instruction. This second instruction is determined based on the service level agreement and / or the load conditions of the communication network. Since the second user plane network element maintains user entries, after the terminal device connects to the interface corresponding to the second user plane network element, the data packets sent by the terminal device to the server can be forwarded by the second user plane network element, avoiding data packet loss on the user side during data transmission; the data packets sent by the server to the terminal device can be forwarded by the first user plane network element, avoiding data packet loss on the network side during data transmission.

[0009] In one example, the switching network element establishes a second tunnel with the second user plane network element through the second interface. The second user plane network element receives user entries sent by the control plane network element. The terminal device accesses the second interface. The data packets sent by the terminal device to the server are sent by the terminal device to the second user plane network element through the second tunnel, and the second user plane network element sends them to the server according to the user entries.

[0010] In another example, the second user plane network element receives the user entry, and the terminal device accesses the interface corresponding to the second user plane network element. However, the second user plane network element has not yet advertised the route. The data packets sent by the server to the terminal device are sent by the server to the first user plane network element according to the first user route, and the first user plane network element sends the data packets to the terminal device through the first tunnel.

[0011] In another possible implementation, after the control plane network element notifies the decision network element to send the second instruction, the data transmission method may further include: the control plane network element sending a route publication instruction to the second user plane network element. This route publication instruction instructs the second user plane network element to publish routes to the terminal device. For example, the route publication instruction may instruct the second user plane network element to publish user routes to the server, which are used by the server to determine the forwarding path of data packets sent by the server to the terminal device.

[0012] In one example, the second user plane network element receives a user entry sent by the control plane network element, the terminal device accesses the second interface, and the second user plane network element publishes a second user route to the server. The data packets sent by the terminal device to the server are sent from the terminal device to the second user plane network element through the second tunnel, and the second user plane network element sends them to the server according to the user entry. The data packets sent by the server to the terminal device are sent from the server to the second user plane network element, and the second user plane network element sends them to the terminal device through the second tunnel. This completes the user plane network element handover during data transmission, and avoids data packet loss on the user side and the network side during the user plane network element handover process.

[0013] In another possible implementation, after the control plane network element notifies the decision network element to send a second instruction, the data transmission method may further include: the control plane network element issuing a deletion instruction to the first user plane network element. Upon receiving the deletion instruction from the control plane network element, the first user plane network element deletes its stored user table entries, reducing the amount of data that the first user plane network element needs to maintain, which helps to reduce the load on the communication network and improve the data transmission efficiency of the communication network.

[0014] Secondly, this application provides a data transmission method applied to a communication network, which includes a first user plane network element, a second user plane network element, a control plane network element, a decision network element, and a handover network element. The control plane network element is connected to the decision network element, the first user plane network element, and the second user plane network element. The decision network element is connected to the handover network element. The method is executed by the decision network element and includes: the decision network element generating a first instruction based on a service level agreement and / or the load of the communication network and sending it to the control plane network element; and after receiving a response message for the first instruction, the decision network element generating a second instruction and sending it to the handover network element. The first instruction is used to instruct the control plane network element to switch the user entry of the terminal device from the first user plane network element to the second user plane network element. The response message indicates that the control plane network element has sent the user entry to the second user plane network element. The second instruction is used to instruct the handover network element to connect the terminal device to the interface corresponding to the second user plane network element.

[0015] In one possible scenario, the second user plane network element receives a user entry sent by the control plane network element, but the terminal device is not connected to the interface corresponding to the second user plane network element. The data packets sent by the terminal device to the server are encapsulated and forwarded by the first user plane network element.

[0016] In another possible scenario, the second user plane network element receives the user entry sent by the control plane network element, and the terminal device connects to the interface corresponding to the second user plane network element. The data packets sent by the terminal device to the server are encapsulated and forwarded by the second user plane network element, so that the data packets sent by the terminal device to the server will not be lost due to the switching of the user plane network element, thus avoiding packet loss of user-side traffic.

[0017] In one possible implementation, the data transmission method may further include: a decision network element generating a third instruction and sending it to a switching network element after a preset timer expires; the third instruction instructs the switching network element to disconnect the interface between the terminal device and the first user plane network element. For example, the preset timer may be a process or a timing component; the timeout period may be set to 10 seconds, 5 seconds, etc.

[0018] In one example, the third instruction can be incorporated into the second instruction. For example, the incorporated second instruction instructs the switching network element to connect the communication device to the second interface and, after the timer expires (e.g., 5 seconds, 8 seconds, 10 seconds, etc.), to remove the binding between the communication device and the first interface.

[0019] Thirdly, this application provides a communication data transmission method applied to a communication network. The communication network includes a first user plane network element, a second user plane network element, a control plane network element, a decision network element, and a handover network element. The control plane network element is connected to the decision network element, the first user plane network element, and the second user plane network element. The decision network element is connected to the handover network element. The data transmission method includes: the decision network element generating a first instruction based on a service level agreement and / or the load condition of the communication network and sending it to the control plane network element. The first instruction can be used to instruct the control plane network element to switch the user entry of the terminal device from the first user plane network element to the second user plane network element; the control plane network element receiving the first instruction skips sending the instruction to the first user plane network element. The process involves deleting a user entry from the first user plane network element and sending the user entry to the second user plane network element according to the first instruction. After sending the user entry to the second user plane network element according to the first instruction, the control plane network element also sends a response message to the decision network element, indicating that the control plane network element has sent the user entry to the second user plane network element. Upon receiving the response message, the decision network element generates a second instruction and sends it to the switching network element. This second instruction instructs the switching network element to connect the terminal device to the interface corresponding to the second user plane network element. The switching network element connects the terminal device to the interface corresponding to the second user plane network element according to the second instruction.

[0020] In one possible implementation, after the control plane network element notifies the decision network element to send a second instruction, the data transmission method further includes: the control plane network element sending a route publication instruction to the second user plane network element, the route publication instruction instructing the second user plane network element to publish routes to the terminal device.

[0021] In another possible implementation, after the control plane network element notifies the decision network element to send a second instruction, the data transmission method further includes: the control plane network element issuing a deletion instruction to the first user plane network element.

[0022] In another possible implementation, the data transmission method further includes: the decision network element generating a third instruction and sending it to the switching network element after a preset timer expires, the third instruction instructing the switching network element to disconnect the terminal device from the interface corresponding to the first user plane.

[0023] Fourthly, this application provides a communication network including a first user plane network element, a second user plane network element, a control plane network element, a decision network element, and a handover network element. The control plane network element is connected to the decision network element, the first user plane network element, and the second user plane network element, respectively. The decision network element is connected to the handover network element. The decision network element is used to generate a first instruction based on the service level agreement and / or the load of the communication network, and to send the first instruction to the control plane network element. The first instruction is used to instruct the control plane network element to switch the user entries of the terminal device from the first user plane network element to the second user plane network element. The control plane network element is used to receive the first instruction, skip the step of issuing a deletion instruction to the first user plane network element, and send the user entries to the second user plane network element according to the first instruction. The deletion instruction is used to instruct the first user plane network element to delete the user entries on the first user plane network element. After sending the user entries to the second user plane network element according to the first instruction, the control plane network element is also used to send a response message to the decision network element. The response message indicates that the control plane network element has sent the user entries to the second user plane network element. The decision-making network element is also used to generate a second instruction and send it to the handover network element after receiving the response message. This second instruction instructs the handover network element to connect the terminal device to the interface corresponding to the second user plane network element. The handover network element then connects the terminal device to the interface corresponding to the second user plane network element according to the second instruction.

[0024] In one possible implementation, the control plane network element is also used to send a route advertising instruction to the second user plane network element, which instructs the second user plane network element to advertise routes to the terminal device.

[0025] In another possible implementation, the control plane network element is also used to issue a deletion command to the first user plane network element.

[0026] In another possible implementation, the decision network element is also used to generate a third instruction that instructs the switching network element to disconnect the terminal device from the interface corresponding to the first user plane; the decision network element is also used to send the third instruction to the switching network element after a preset timer expires.

[0027] Fifthly, this application provides a communication device, the beneficial effects of which can be found in the description of any of the first aspects, and will not be repeated here. The communication device has the function of implementing the behavior in the method examples of any of the first aspects. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function. In one possible design, the communication device is applied to a communication network including a first user plane network element, a second user plane network element, and a control plane network element. The control plane network element is connected to the first user plane network element and the second user plane network element respectively. The communication device is used to execute the function of the control plane network element. The communication device includes a transceiver module and a processing module. The transceiver module is used to obtain a first instruction, which instructs the control plane network element to switch the user entry of the terminal device from the first user plane network element to the second user plane network element. The processing module is used to skip the step of issuing a deletion instruction to the first user plane network element and send the user entry to the second user plane network element according to the first instruction, which instructs the first user plane network element to delete the user entry on the first user plane network element.

[0028] In one possible implementation, the communication network further includes a handover network element and a decision network element, with the decision network element connected to both the control plane network element and the handover network element. The transceiver module is also used to instruct the decision network element to send a second instruction to the handover network element, which instructs the handover network element to connect the terminal device to the interface corresponding to the second user plane network element.

[0029] In another possible implementation, the transceiver module is also used to send a route advertising instruction to the second user plane network element, which instructs the second user plane network element to advertise routes to the terminal device.

[0030] In another possible implementation, the transceiver module is also used to issue a deletion command to the first user plane network element.

[0031] Sixthly, this application provides a communication device, the beneficial effects of which can be found in the description of any of the second aspects, and will not be repeated here. The communication device has the function of implementing the behavior in the method examples of any of the second aspects. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function. In one possible design, the communication device is applied to a communication network, which includes a first user plane network element, a second user plane network element, a control plane network element, a decision network element, and a handover network element. The control plane network element is connected to the decision network element, the first user plane network element, and the second user plane network element. The communication device is used to implement the function of the decision network element, and the communication device includes a transceiver module and a processing module. The processing module generates a first instruction based on the service level agreement and / or the load of the communication network. This first instruction instructs the control plane network element to switch the user entry of the terminal device from the first user plane network element to the second user plane network element. The transceiver module sends the first instruction to the control plane network element. After receiving the response message of the first instruction, the transceiver module generates a second instruction. This response message indicates that the control plane network element has sent the user entry to the second user plane network element. This second instruction instructs the switching network element to connect the terminal device to the interface corresponding to the second user plane network element. The transceiver module also sends the second instruction to the switching network element.

[0032] In one possible implementation, the processing module is further configured to generate a third instruction that instructs the switching network element to disconnect the terminal device from the interface corresponding to the first user plane network element; the transceiver module is further configured to send the third instruction to the switching network element after a preset timer expires.

[0033] In a seventh aspect, this application provides a network device comprising: a processor and a memory, the memory being used to store computer instructions, which, when executed by the processor, cause the network device to perform operational steps of the data transmission method of the first aspect and any possible implementation thereof, or the second aspect and any possible implementation thereof, or the third aspect and any possible implementation thereof.

[0034] Eighthly, this application provides a computer-readable storage medium storing a computer program or instructions that, when executed by a network device, implement the operation steps of the data transmission method of the first aspect and any possible implementation of the first aspect, or the second aspect and any possible implementation of the second aspect, or the third aspect and any possible implementation of the third aspect.

[0035] Ninthly, this application provides a computer program product that, when run on a computer, causes a computing device to perform the operation steps of the data transmission method of the first aspect and any possible implementation thereof, or the second aspect and any possible implementation thereof, or the third aspect and any possible implementation thereof.

[0036] In a tenth aspect, this application provides a chip including a memory and a processor. The memory is used to store computer instructions, and the processor is used to call and execute the computer instructions from the memory to perform the operation steps of the data transmission method of the first aspect and any possible implementation thereof, or the second aspect and any possible implementation thereof, or the third aspect and any possible implementation thereof.

[0037] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0038] Figure 1 This application provides a schematic diagram of the structure of a communication network according to an embodiment of the present application.

[0039] Figure 2 This is a schematic diagram of another communication network structure provided in an embodiment of this application;

[0040] Figure 3 A flowchart illustrating a data transmission method provided in an embodiment of this application;

[0041] Figure 4 A schematic diagram of a user plane network element provided in an embodiment of this application;

[0042] Figure 5 A flowchart illustrating another data transmission method provided in an embodiment of this application;

[0043] Figure 6 A flowchart illustrating another data transmission method provided in an embodiment of this application;

[0044] Figure 7 This is a schematic diagram illustrating the effect of data transmission in an embodiment of this application.

[0045] Figure 8 A flowchart illustrating another data transmission method provided in an embodiment of this application;

[0046] Figure 9 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;

[0047] Figure 10This is a schematic diagram of the structure of a network device provided in an embodiment of this application. Detailed Implementation

[0048] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0049] Figure 1 This is a schematic diagram of a communication network provided in an embodiment of this application. The communication network includes at least one terminal (such as...). Figure 1 The terminals 111-116 and server 130 are shown in the diagram. The terminals can access server 130 via a network. The network can be an Internet Service Provider (ISP) network. An ISP is an operator that provides Internet access services, information services, and value-added services to a wide range of users. An ISP network may include at least one network device (such as...). Figure 1 Network devices 122 and 123 shown.

[0050] A terminal can also be called a terminal device, user equipment (UE), mobile station (MS), mobile terminal (MT), etc.

[0051] In some embodiments, the terminal may be a mobile phone (e.g., Figure 1 Terminals 111 and 116 shown), tablet computers (such as...) Figure 1 The terminal 112 shown), and a computer with wireless transceiver capabilities (such as...) Figure 1 The terminal 113 shown), Personal Communication Service (PCS) telephone (such as...) Figure 1 The terminal 114 shown), desktop computer (such as...) Figure 1 The terminal shown is 115, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, and so on.

[0052] In other embodiments, the terminal may also be a home gateway. A home gateway may, for example, be an optical network terminal (ONT). For example, ... Figure 1 The network device 121 shown can be an optical network terminal. An optical network terminal can connect user devices such as PCs and mobile phones to the Internet. The home gateway can transmit data for the following services: Internet access services (such as interactive network television services, including video-on-demand, live streaming, and distance education supported by the home gateway), online gaming services (e.g., gaming terminals running games through the home gateway), Internet Protocol (IP) telephony, video telephony, and video surveillance services. Furthermore, the home gateway can also enable remote home control and security service management on a network. For example, a user with a home gateway can access automated lighting, heating, and security systems in the area covered by the home gateway while at work or away from home. The embodiments of this application do not limit the specific technology or device form used in the terminal.

[0053] Network devices can be routing and forwarding devices, such as routers or switches (e.g.) Figure 1 The network devices shown (123) can be core routers (CR), provider edges (PE), etc. Network devices can also be BNGs or Broadband Remote Access Servers (BRAS), etc.

[0054] Terminals can access servers using network devices. For example, such as... Figure 1 In the room shown, the first user can use terminal 111 to establish a communication connection with network device 121 using wireless-fidelity (WIFI) technology, so that terminal 111 can send data packets to server 130. For example, ... Figure 1 In the basketball court shown, the second user can also use terminal 116 to establish a communication connection with the radio access network (RAN) equipment (not shown in the figure) using mobile communication technology and access server 130.

[0055] Server 130 can be an application server or an authentication and authorization server. Server 130 can provide video services, game services, messaging services, music services, authentication and authorization services, etc. In one example, the functions of multiple services can be integrated on server 130; for example, game services and music services can be deployed on server 130. In another example, the functions of some services can be integrated on server 130; for example, parts of a game service and parts of a video service can be deployed on server 130. Server 130 can also utilize virtualization technology to provide multiple virtual machines, which provide various services. This application embodiment does not limit the deployment form of the services.

[0056] Network devices connect to server 130 via wireless or wired means. Figure 1 This is just an illustration; the communication network may also include other devices. Figure 1 Not shown in the diagram. The embodiments of this application do not limit the number of terminal devices, network devices, and servers included in the communication network.

[0057] To improve the bandwidth and user session handling capacity of BNGs, network equipment provided by ISPs can be virtualized using SDN and NFV technologies to obtain multiple virtualized network elements. Figure 2 This is a schematic diagram of another communication network structure provided in an embodiment of this application, such as... Figure 2 As shown, the communication network includes access network element 210, handover network element 220, and at least two user plane network elements (such as...). Figure 2 The first user plane network element 231, the second user plane network element 232, the third user plane network element 233, the control plane network element 240, the decision network element 250, and the authentication network element 260 are shown.

[0058] Access network element 210 is used to implement the functions provided by access network (AN) devices, which can aggregate data packets from multiple terminals onto an aggregation router provided by the ISP. In some examples, the AN device can be a wired device, such as an ONT. In other examples, the AN device can be a wireless device, such as a base station.

[0059] Switching network element 220 is used to implement the functions provided by the aggregation router. Virtualizing the physical ports (interfaces) on the aggregation router can obtain multiple sub-interfaces, which are used to establish communication tunnels with user plane network elements. These communication tunnels can be Virtual Local Area Network (VLAN) tunnels, Virtual Extensible Local Area Network (VXLAN) tunnels, or Virtual Private Network (VPN) tunnels, etc. For example, ... Figure 2 The three interfaces shown are: first interface 221, second interface 222, and third interface 223. The switching network element 220 establishes communication tunnels with user plane network elements deployed on the BNG through these three interfaces. Specifically, the switching network element 220 establishes a first tunnel V1 for communication with the first user plane network element 231 through the first interface 221, a second tunnel V2 for communication with the second user plane network element 232 through the second interface 222, and a third tunnel V3 for communication with the third user plane network element 233 through the third interface 223.

[0060] In some embodiments, the first tunnel V1 can be used to transmit data packets of the first user, the second tunnel V2 can be used to transmit data packets of the second user, and the third tunnel V3 can serve as a backup communication tunnel for the first and second users. Figure 1 As shown, the first user can refer to all users who access the network from network device 121, and the second user can refer to users who access the network using terminal 116.

[0061] User plane network elements are used to implement the data encapsulation and forwarding functions provided by a BNG or virtual broadband network gateway (vBNG). For example, Figure 2 The first user plane network element 231 shown can generate user entries based on the network information sent by the control plane network element 240. The user entries may include the IP information of the terminal 111 used by the first user, the media access control (MAC) address of the network device 121, etc.

[0062] In one possible design, there can be at least one routing and forwarding device between the network device deploying the user plane network element and the server. The user plane network element encapsulates and forwards the data packets, and the routing and forwarding device forwards them again to the server.

[0063] In another possible design, there may be no routing or forwarding device between the network device deploying the user plane network element and the server. For example, the network device deploying the user plane network element may be connected to the server via a physical medium, and the network device deploying the user plane network element may send data to the server.

[0064] Control plane network element 240 is used to implement the control functions provided by BNG or vBNG. For example, control plane network elements can control the operation of various network protocols, such as Open Shortest Path First (OSPF), Address Resolution Protocol (ARP), and Spanning Tree Protocol (STP). In some examples, control plane network elements can also provide the network information and user entries required by user plane network elements for encapsulating and forwarding data.

[0065] For example, the user management functions on multiple broadband remote access servers (BRAS) can be extracted and centralized to obtain the control plane (CP); the forwarding functions retained on each BRAS can be used as the user plane (UP).

[0066] In the first possible design, the UP can be a traditional hardware network device, called the physical user plane (pUP).

[0067] In the second possible design, CP and UP can be virtual network elements. For example, UP can be deployed as a virtual network element on an x86 server and can be called a virtual user plane (vUP). Alternatively, CP can run on an x86 server and can be called a virtual broadband network gateway control plane (vBNG-CP). One vBNG-CP can manage multiple pUP and vUP.

[0068] CP can implement the functions of the aforementioned control plane network elements, such as dial-up protocol management, user plane management, user management, address management, and authentication management.

[0069] UP can implement the functions of the aforementioned user plane network elements, such as access list control, routing management, label management, forwarding management, and quality of service (QoS) management.

[0070] The decision network element 250 may include an SDN network element, which is used to implement the functions provided by the SDN controller, including SDN traffic control. For details regarding the specific functions and implementation of the SDN controller, please refer to existing technologies; this application will not elaborate further.

[0071] The decision network element 250 may also include a migration network element, which implements the functions of the user-plane selection function (USF) component. This migration network element can receive access line information for the corresponding user sent by the control plane network element 240. For example, this access line information includes the identity document (ID) of the access network device (e.g., a switch or optical line terminal) to which the user accesses the network, the VLAN information of the terminal used by the user, and the logical interface information (e.g., the VLAN information of the interface) on the access network device.

[0072] As an optional implementation, the control plane network element, SDN network element, and migration network element can be installed on different physical network devices or on the same physical network device. This application does not limit the specific deployment form and location of the SDN network element, decision network element, and control plane network element.

[0073] The authentication element 260 is used to implement the functions provided by the authentication server (radius server). For example, the authentication element 260 can implement functions such as user dial-up verification and security authentication.

[0074] For example, such as Figure 2 As shown, the first user sends a dialing protocol message to the access network element 210 through the terminal, and the handover network element 220 forwards it to the first user plane network element 231 through the first tunnel. The first user plane network element 231 sends the dialing protocol message to the control plane network element 240. After receiving the dialing protocol message forwarded by the control plane network element 240, the authentication network element 260 verifies it and confirms that the first user is a legitimate user, allowing the terminal device to go online.

[0075] Figure 1 and Figure 2 This is merely a schematic diagram provided in the embodiments of this application. The communication network may also include other terminals, network devices, and network elements. Figure 1 and Figure 2 Not shown in the diagram. The embodiments of this application do not limit the number of network devices, terminals, and network elements included in the communication network.

[0076] In the current technical solution, in order to realize data transmission and migration of communication equipment, when the communication equipment is connected to the first interface of the switching network element, that is, when the communication equipment used by the first user accesses the server through the first tunnel, but the communication equipment has not yet switched from the first interface to the second interface, the user entry in the first user plane network element has been deleted. As a result, the first user plane network element cannot continue to use the user entry to verify the data packet from the communication equipment, and the first user plane network element will not forward the data packet. Moreover, since the terminal has not yet connected to the second interface, the second user plane network element cannot receive the data packet from the communication equipment, which causes the server to be unable to receive the data packet from the communication equipment, that is, the user-side traffic is lost.

[0077] The communication device described in the embodiments of this application may be... Figure 1 Any one of the terminals 111 to 116 and network device 121 shown.

[0078] To avoid user-side traffic loss and at least address the shortcomings mentioned in the background art, this application provides a data transmission method applied to a communication network. The method includes: after receiving a first instruction, a control plane network element skips the step of issuing a deletion instruction to a first user plane network element, and sends a user entry to a second user plane network element according to the first instruction. The deletion instruction instructs the first user plane network element to delete the user entry on its table. The first instruction instructs the control plane network element to switch the user entry of the terminal device from the first user plane network element to the second user plane network element, and the deletion instruction instructs the first user plane network element to delete the user entry on its table. This user entry is used to verify data packets sent by the communication device to the server.

[0079] The data transmission method provided in this application embodiment, since the first user plane network element maintains user entries, when the communication device is connected to the first interface, the data packets sent by the communication device to the server are sent by the communication device to the first user plane network element through the first tunnel, and the first user plane network element sends the data packets to the server according to the user entries; the data packets sent by the server to the communication device are sent by the server to the first user plane network element according to the first user route, and the first user plane network element sends the data packets to the communication device through the first tunnel, where the first user route is published by the first user plane network element. That is to say, when the communication device is connected to the first interface, the first user plane network element can receive data packets sent by the communication device through the first tunnel; and after the control plane network element sends user entries to the second user plane network element, it has not yet deleted the user entries maintained by the first user plane network element, so the first user plane network element can send the data packets to the server according to the user entries, thus avoiding the loss of user-side traffic.

[0080] Next, as Figure 3 As shown, Figure 3This is a schematic flowchart illustrating a data transmission method provided in an embodiment of this application. Here, it is... Figure 2 The following explanation uses network elements within the illustrated communication network as an example. Assuming the communication device is connected to the first interface of the switching network element, and the first user accesses the network through the first tunnel using the communication device, the data transmission method provided in this embodiment includes the following steps.

[0081] S301. The communication equipment sends a user dialing protocol message to the control plane network element.

[0082] In some embodiments, the user dial-up protocol message can be a protocol message that implements user authentication based on the extension option header of the Dynamic Host Configuration Protocol (DHCP), i.e., an IPoE message.

[0083] In other embodiments, the user dial-up protocol message may also be a point-to-point protocol over Ethernet (PPPoE) message.

[0084] Understandably, data packets or messages sent by communication devices to the server can be forwarded through access network elements. For example, the access network element can be deployed on an ONT, and the communication device can be a desktop computer. Data packets sent by the desktop computer are then sent to the server through the ONT and other network devices. Although Figure 2 The access network element 210 shown is not in Figure 3 As shown in the diagram, those skilled in the art should know that data packets or data packages sent by communication devices to servers can be forwarded by access network elements.

[0085] In one possible scenario, the user dialing protocol message sent by the communication device to the control plane network element can be sent by the communication device to the access network element, and then sent by the access network element to the first user plane network element through the first tunnel, and then sent by the first user plane network element to the control plane network element.

[0086] S302. The control plane network element parses the user dial-up protocol message to obtain the user account.

[0087] For example, the user account can be a username, a user identifier (ID), etc. As an example, this user account indicates that the user using the communication device is the first user.

[0088] S303, The control plane network element sends the user account to the authentication network element.

[0089] This authentication network element maintains a service-level agreement (SLA) mapping relationship for each user account. The SLA mapping relationship represents the correspondence between user accounts and their corresponding SLA information. SLA information may include the minimum bandwidth allocated to the user, the user's bandwidth limit, the number of users that a single server can serve simultaneously, dial-in access availability, and the user's traffic priority, etc.

[0090] S304. The authentication network element sends SLA information associated with the user account to the control plane network element.

[0091] For example, the authentication network element can look up the SLA information corresponding to the user account in the SLA mapping relationship and send the SLA information to the control plane network element. For instance, this SLA information includes the traffic priority of the first user, which indicates the communication device used by the first user and the server accessed (such as...). Figure 1 The packet forwarding priority between servers 130 is shown.

[0092] S305. Control plane network elements forward SLA information to decision-making network elements.

[0093] S306. The decision network element sends the first instruction to the control plane network element.

[0094] The first instruction specifies the target user plane network element for forwarding data packets between the communication device and the server. In this embodiment, it is assumed that the first instruction specifies the second user plane network element as the target user plane network element.

[0095] In the first possible design, the decision network element maintains a mapping between SLA information and the levels of user plane network elements. The decision network element generates a first instruction based on the SLA information received from the control plane network element and the control plane network element's information. For example, such as... Figure 4 As shown, the transmission level of the first user plane network element is Level 1, and the transmission levels of the second and third user plane network elements are Level 2. For example, the transmission level can be determined by the first user's payment information, which could be the amount paid by the first user to the ISP during the billing cycle. After the ISP's billing cycle is updated, the payment information indicates that the first user's payment amount will increase in the new billing cycle. The authentication network element updates the first user's SLA information, and the decision network element determines that the user plane network element corresponding to the communication equipment used by the first user is updated to Level 2. Therefore, the first instruction instructs the first user's target user plane network element to be any user plane network element in Level 2, such as... Figure 4 The second and third user plane network elements are shown. For example, if payment information indicates that the first user's payment amount will decrease in the new billing cycle, the decision network element will be updated to a user plane network element with a lower level than the first user.

[0096] In the second possible design, the decision network element also maintains load information for each user plane network element in the communication network. This load information can be used by the decision network element to determine whether a user plane network element is overloaded and its latency information. The decision network element generates a first instruction based on the load status of the communication network. For example, this load information may include information such as the maximum transmission bandwidth, occupied bandwidth, and remaining bandwidth of the user plane network element. Figure 4 As shown, the first user plane network element has a maximum transmission bandwidth of 50 Mbps, a used bandwidth of 30 Mbps, and a remaining bandwidth of 20 Mbps; the second user plane network element has a maximum transmission bandwidth of 100 Mbps, a used bandwidth of 10 Mbps, and a remaining bandwidth of 90 Mbps; and the third user plane network element has a maximum transmission bandwidth of 100 Mbps, a used bandwidth of 70 Mbps, and a remaining bandwidth of 30 Mbps. Assuming the communication device requires 30 Mbps of bandwidth, in one embodiment, using the principle of "on-demand allocation," the first instruction instructs the first user's target user plane network element to be the third user plane network element; in another embodiment, using the principle of "optimal performance," the first instruction instructs the first user's target user plane network element to be the second user plane network element.

[0097] In the third possible design, the first instruction is generated by the decision network element based on the SLA information of the first user and the load of the communication network. For example, after the ISP's billing cycle is updated, the target user plane network element of the first user is adjusted to the second-level user plane network element. Since the second-level user plane network element has a larger remaining bandwidth, the first instruction instructs the first user's target user plane network element to be the second-level user plane network element.

[0098] The above examples are merely possible implementations provided by this application and do not represent a limitation of this application. For example, when a communication device generates a data packet, the decision network element can also determine the user plane network element that the communication device transmits the data packet based on the current time.

[0099] S307. The control plane network element sends user entries to the second user plane network element according to the first instruction.

[0100] User entries include user information, such as the IP address and MAC address of the communication device used by the first user.

[0101] User entries can be used to verify data packets sent from communication devices to servers. For example, the second user plane network element verifies whether a data packet from the communication device is sent by a legitimate user based on the user entry. If the data packet from the communication device is a legitimate data packet, the second user plane network element encapsulates and forwards the data packet.

[0102] User entries can be generated by control plane network elements based on the user information of legitimate users they maintain. For example, if a control plane network element maintains user information of legitimate users, and if the control plane network element receives a first instruction from a decision network element, and the control plane network element confirms that the first user using the communication equipment is a legitimate user, then the control plane network element sends user entries to the second user plane network element. The second user plane network element can then verify the legitimacy of data packets from the communication equipment based on the user entries.

[0103] Please continue reading Figure 3 Under the first condition, that is, when the second user plane network element receives the user table entry sent by the control plane network element, and the communication device is connected to the first interface but not to the second interface, the data transmission method provided in this application embodiment further includes the following steps.

[0104] S308. The communication equipment sends the first data packet to the switching network element.

[0105] In this article, the first data packet refers to the data packet sent by the communication device to the server.

[0106] S309. The switching network element sends the first data packet to the first user plane network element through the first tunnel.

[0107] Under the first condition, the first user plane network element also maintains the user table entry of the first user. The switching network element can send the first data packet to the first user plane network element through the first tunnel, so that the first user plane network element can verify the first data packet according to the user table entry, and encapsulate and forward the first data packet after successful verification.

[0108] S310, The first user plane network element sends the first data packet to the server.

[0109] Therefore, when the second user plane network element receives the user entry sent by the control plane network element and the communication device is connected to the first interface but not the second interface, since the first user plane network element maintains the user entry of the first user, the first user plane network element can continue to receive the first data packet (user-side traffic) from the communication device using the first tunnel. The first user plane network element can also send the first user plane network element to the server when it determines that the first data packet is a data packet sent by a legitimate user based on the user entry, thus avoiding packet loss of user-side traffic during data transmission.

[0110] In one possible scenario, after receiving the user entry, the second user plane network element can also send a response message to the control plane network element. Upon receiving the response message, the control plane network element can notify the decision network element to initiate the interface switching process. The response message indicates that the control plane network element has sent the user entry to the second user plane network element.

[0111] In the current technical solution, although the second user plane network element stores the user table entries of the first user sent by the control plane network element, the second user plane network element has not yet published user routes to the server. As a result, when the server sends data packets (network-side traffic) to the communication device, it still sends them to the first user plane network element. However, the communication device has already disconnected from the first interface corresponding to the first tunnel, so the data packets sent by the server to the first user plane network element cannot be transmitted to the communication device, resulting in network-side traffic packet loss.

[0112] In the data transmission method provided in this application embodiment, after the second user plane network element receives the user entry sent by the control plane network element, the communication device is also connected to the first interface, such as... Figure 3 As shown, the data transmission method provided in this application embodiment may further include the following steps.

[0113] S311, The first user plane network element receives the second data packet sent by the server.

[0114] In this article, the second data packet refers to the data packet sent by the server to the communication device.

[0115] S312, The first user plane network element sends the second data packet to the switching network element.

[0116] The second data packet is sent from the first user plane network element to the switching network element through the first tunnel.

[0117] S313, Switch network element to forward the second data packet to communication equipment.

[0118] Since the first user plane network element still maintains the user table entry for the first user, and the server maintains the first user route published by the first user plane network element, and the switching network element has not yet removed the binding between the communication device and the first interface, the second data packet sent by the server to the communication device is still encapsulated and forwarded to the switching network element by the first user plane network element, and the switching network element sends the second data packet sent by the server to the communication device, thus avoiding the loss of the second data packet sent by the server to the communication device, that is, avoiding packet loss of network-side traffic during data transmission.

[0119] To enable data packets forwarded via the second user plane network element, this application provides a possible implementation, such as... Figure 5 As shown, after the second user plane network element receives the user table entry sent by the control plane network element, the communication device connects to the first interface but does not connect to the second interface. In this case, the data transmission method provided in this application embodiment further includes the following steps.

[0120] S314. The decision-making network element sends a second instruction to the switching network element.

[0121] The decision-making network element generates a second instruction based on the service level agreement (SLA) of the first user and / or the load condition of the communication network. For example, the second instruction may be generated by the control plane network element after receiving a response message from the decision-making network element, based on the SLA and the load condition of the communication network.

[0122] The second instruction is an interface switching instruction corresponding to the first instruction. For example, if the first instruction indicates that the target user plane network element of the first user is the second user plane network element, then the second instruction indicates that the communication device accesses the second interface corresponding to the second tunnel.

[0123] For example, if the first instruction indicates that the target user plane network element of the first user is the third user plane network element, then the second instruction indicates that the communication device accesses the third interface corresponding to the third tunnel.

[0124] In one example, the decision network element also maintains the interface information corresponding to each user plane network element. This interface information includes the physical port where the interface is located and the address information of the interface. For example, assuming that the above interfaces belong to the same physical port (such as the LAN port of a router), the interface and its corresponding address information are shown in Table 1 below.

[0125] Table 1

[0126] User plane network element serial number Interface serial number Address Information First User Plane Network Element First Interface 192.168.1.0 / 24 Second User Plane Network Element Second interface 192.168.2.0 / 24 Third User Plane Network Element Third interface 192.168.3.0 / 24

[0127] This application embodiment uses the example of the second instruction instructing the communication device to access the second interface corresponding to the second tunnel. However, in another example, the second instruction may also instruct the switching network element to delete the binding between the communication device and the first interface after a certain period of time (e.g., 5 seconds, 8 seconds, 10 seconds, etc.) when the communication device is connected to the second interface.

[0128] S315. The switching network element connects the communication equipment to the second interface according to the second instruction.

[0129] For example, after receiving the second instruction, the switching network element determines the address information of the second interface as "192.168.2.0 / 24" based on the second instruction, and binds the interface of the first user (e.g., the VLAN port of the communication device) to the address information.

[0130] When the second user plane network element receives the user table entry sent by the control plane network element, and the communication equipment is connected to the second interface, such as Figure 5 As shown, after S315 above, the data transmission method provided in this application embodiment further includes the following steps.

[0131] S316. The communication equipment sends the first data packet to the switching network element.

[0132] S317. The switching network element sends the first data packet to the second user plane network element through the second tunnel.

[0133] The second user plane network element can verify the first data packet based on the user table entry, and encapsulate and forward the first data packet after successful verification.

[0134] S318, the second user plane network element sends the first data packet to the server.

[0135] When the communication device is not connected to the second interface, the first data packet sent by the communication device is encapsulated and forwarded by the first user plane network element. When the communication device is connected to the second interface, the first data packet sent by the communication device is encapsulated and forwarded by the second user plane network element. This ensures that the first data packet sent by the communication device to the server is not lost due to the switching of user plane network elements, thus avoiding packet loss on the user side. Since the second user plane network element does not advertise user routes to the server, the second data packet sent by the server to the communication device is still forwarded by the first user plane network element, avoiding packet loss on the network side. For details, please refer to the relevant descriptions in S311 to S313 above, which will not be repeated here.

[0136] During data transmission, in order to switch the user plane network element forwarding the second data packet to the second user plane network element, the control plane network element can control the second user plane network element to advertise user routes to the server. This avoids network-side packet loss during the user plane network element switching process. Here, we take... Figure 5 The example shown illustrates how the server communicates with user plane network elements via a forwarding device. Figure 6 As shown, after S318 described above, the data transmission method provided in this application embodiment further includes the following steps.

[0137] S319. The control plane network element sends a route publication instruction to the second user plane network element.

[0138] The route announcement command can be issued by the control plane network element after interaction with the decision network element and confirmation that the communication device has accessed the second interface. For example, after the switching network element connects the communication device to the second interface, the switching network element can send a response message (indicating that the communication device has accessed the second interface) to the decision network element. Upon receiving the response message, the decision network element can interact with the control plane network element, which will then send the route announcement command.

[0139] This route publishing instruction instructs the second user plane network element to publish routes to the terminal device. For example, this route publishing instruction can instruct the second user plane network element to publish user routes to forwarding devices, which are used by the server to determine the forwarding path of the second data packet.

[0140] S320: The second user plane network element publishes the second user route to the forwarding device according to the route publication instruction.

[0141] The second user route instructs the server to determine the forwarding path for the second data packet. For example, the second user route instructs the server to send the second data packet to the second user plane network element.

[0142] The forwarding device can be a device with routing forwarding capabilities, such as a router, switch, or server.

[0143] S321. The server sends the second data packet to the second user plane network element according to the second user route.

[0144] For example, when the second user route indicates that the second data packet is encapsulated and forwarded by the second user plane network element, the server sends the second data packet to the forwarding device according to the user route, and the forwarding device forwards the second data packet to the second user plane network element.

[0145] S322. The second user plane network element forwards the second data packet to the handover network element through the second tunnel.

[0146] For example, since the switching network element establishes a second tunnel with the second user plane network element through the second interface, and the second data packet includes the address information of the communication device used by the first user, the second user plane network element can send the second data packet to the switching network element through the second tunnel according to the address information.

[0147] S323, Switch network element to forward the second data packet to communication equipment.

[0148] Since the communication equipment is connected to the second interface, after the switching network element receives the second data packet through the second tunnel, it can send the second data packet to the communication equipment based on the address information in the second data packet.

[0149] In traditional technical solutions, when the switching network element switches the communication device from the first interface to the second interface, and the second user plane network element receives the user table entry sent by the control plane network element, the second user plane network element may not have sent a new user route (second user route). The server still sends the second data packet according to the original user route (first user route). The first user route instructs the first user plane network element to encapsulate and forward the second data packet. However, the switching network element has already removed the binding between the communication device and the first interface, causing the first user plane network element to be unable to send the second data packet to the communication device, resulting in network-side traffic packet loss.

[0150] In contrast, the data transmission method provided in this application embodiment allows the first user plane network element to continue receiving the second data packet sent by the server according to the first user route, since the communication device is connected to the second interface and the switching network element has not yet removed the binding between the communication device and the first interface. The first user plane network element can also send the second data packet to the communication device according to the destination address in the second data packet. The control plane network element also sends a route publishing instruction to the second user plane network element so that after the second user plane network element publishes the second user route to the forwarding device, the forwarding network element of the second data packet switches from the first user plane network element to the second user plane network element, thus avoiding network-side traffic packet loss.

[0151] When the second data packet is switched to the second user plane network element for forwarding, the first data packet sent by the communication device to the server is forwarded by the second user plane network element. For details, please refer to the relevant descriptions in S316 to S318 above, which will not be repeated here.

[0152] To reduce the load on communication networks, such as Figure 6 As shown, when the switching network element connects the communication device to the second interface, the second user plane network element publishes the second user route to the server, and the routing table of the forwarding device converges, as follows: Figure 5 As shown, the data transmission method provided in this application embodiment further includes the following steps.

[0153] S324. The control plane network element sends a deletion command to the first user plane network element.

[0154] The deletion instruction is used to instruct the first user plane network element to delete the user table entry on the first user plane network element.

[0155] Routing table convergence refers to the process by which, after a change in the topology of a communication network, the routing table goes through a process of rebuilding, sending, learning, and stabilizing, and then notifying all relevant devices in the communication network of the change. In other words, it is the behavior of discovering alternative routes by recalculating routes caused by changes in network topology.

[0156] In the data transmission method provided in this application embodiment, after the routing table of the forwarding device converges to the second data packet, the forwarding network element switches from the first user plane network element to the second user plane network element, and the forwarding device re-establishes the data transmission path between the server and the second user plane network element.

[0157] S325. The first user plane network element deletes the user table entries stored in the first user plane network element according to the deletion instruction.

[0158] The deletion of user table entries by the first user plane network element reduces the amount of data that the first user plane network element needs to maintain, which helps to reduce the load on the communication network and improve the data transmission efficiency of the communication network.

[0159] To avoid communication devices receiving invalid data from other devices, such as data packets containing viruses, please continue reading. Figure 6 The data transmission method provided in this application embodiment also includes the following steps.

[0160] S326, Decision network element generates third instruction.

[0161] The third instruction instructs the switching network element to disconnect the communication device from the interface corresponding to the first user plane network element.

[0162] The third instruction is determined based on the service level agreement of the first user and / or the load of the communication network, and it is an interface switching instruction corresponding to the first instruction. For example, if the first instruction indicates that the target user plane network element of the first user is the second user plane network element when the communication device is connected to the first user plane network element, then the third instruction instructs the communication device to disconnect the first interface corresponding to the first tunnel.

[0163] S327. The decision network element sends a third instruction to the switching network element after the preset timer expires.

[0164] The aforementioned timer can start counting when the decision network element sends the second instruction to the switching network element, for example, 5 seconds, 10 seconds, etc. After the preset time is reached, the decision network element sends the third instruction to the switching network element.

[0165] As one possible implementation, the decision network element includes a migration network element and an SDN network element. Regarding the above-mentioned S326 and S327, it may include: the migration network element generating a third instruction based on the service level agreement of the first user and / or the load of the communication network; the migration network element sending the third instruction to the SDN network element after a preset timer expires; and the SDN network element sending the third instruction to the switching network element.

[0166] S328. The switching network element disconnects the communication device from the first interface according to the third instruction.

[0167] The second and third instructions are both interface switching instructions corresponding to the first instruction. The above embodiments provided in this application use the second instruction as an interface access instruction and the third instruction as an interface disconnection instruction for explanation and description. In another example, the third instruction can be merged into the second instruction. For example, the merged second instruction instructs the switching network element to connect the communication device to the second interface and, after a certain period of time (e.g., 5 seconds, 8 seconds, 10 seconds, etc.), to delete the binding between the communication device and the first interface.

[0168] To avoid network-side traffic packet loss, this application embodiment also provides another possible implementation method, which is to connect the communication device to all interfaces of the switching network element and set up an verification-free process for the communication device. This verification-free process instructs the communication device not to verify data packets from any user plane network element. Then, the second data packet sent by the server can be forwarded through any user plane network element in the communication network, and the communication device can receive data packets sent by any user plane network element, thus avoiding network-side traffic packet loss during data transmission.

[0169] To facilitate understanding of the data transmission method provided in the above embodiments of this application, in Figure 2 Based on the provided communication network, a data transmission illustration is provided, such as... Figure 7 As shown, the solid arrow represents the transmission path of the data packet (first data packet) sent by the communication device to the server, and the dashed arrow represents the transmission path of the data packet (second data packet) sent by the server to the communication device. The data transmission process of this application includes multiple states.

[0170] The first state is when the second user plane network element receives the user table entry sent by the control plane network element, and the communication device has connected to the first interface but not to the second interface, such as... Figure 7 As shown in (a) above, both the first data packet and the second data packet are forwarded via the first user plane network element. For details, please refer to the relevant explanations in S308 to S313 above; they will not be repeated here.

[0171] The second state is when the second user plane network element receives the user entry sent by the control plane network element, the communication device accesses the second interface, but the second user plane network element has not yet advertised the second user route. For example... Figure 7 As shown in (b), the first data packet is forwarded via the second user plane network element. For details, please refer to the relevant descriptions in S314 to S318 above. The second data packet is forwarded via the first user plane network element. For details, please refer to the relevant descriptions in S311 to S313 above.

[0172] The third state occurs when the second user plane network element receives a user entry from the control plane network element, the communication device accesses the second interface, and the second user plane network element publishes the status of the second user route, such as... Figure 7 As shown in (c), both the first and second data packets are forwarded via the second user plane network element. For details, please refer to the relevant explanations in S316-S318 and S321-S323 above; they will not be repeated here.

[0173] Using the data transmission method provided in this application embodiment, during data transmission, regardless of whether it is in any of the first to third states mentioned above, the first data packet and the second data packet are forwarded by user plane network elements, thus avoiding packet loss on the user side and network side.

[0174] The above embodiments are merely one possible specific implementation provided by this application and do not represent a limitation of this application. Figure 2 Taking the control plane network element, the first user plane network element, and the second user plane network element shown as examples, such as... Figure 8 As shown, Figure 8 This is a flowchart illustrating another data transmission method provided in an embodiment of this application. The data transmission method may include the following steps.

[0175] S810, the control plane network element receives the first instruction.

[0176] In one possible scenario, the first instruction is determined based on the service level agreement of the first user and / or the load of the communication network. The user entry is used to verify the data packets sent by the terminal device to the server. For details regarding the first instruction and the user entry, please refer to the relevant descriptions in S306 to S307 above, which will not be repeated here.

[0177] In another possible scenario, the first instruction may be generated by the control plane network element to maintain the first user plane network element. For example, if the control plane network element determines that the first user plane network element has been working for a long time, it generates the first instruction and sends the user entry to the second user plane network element to switch the user plane of the data packets between the forwarding terminal device and the server to the second user plane network element.

[0178] As an alternative implementation, the first instruction can also be issued by the operator based on the management needs of the ISP network. For example, the management need could be to shut down the network equipment that deploys the first user plane network element.

[0179] After S810 described above, the control plane network element skips the step of issuing a deletion command to the first user plane network element and executes S820.

[0180] S820: The control plane network element sends user entries to the second user plane network element according to the first instruction.

[0181] The aforementioned deletion instruction is used to instruct the first user plane network element to delete the user table entry on the first user plane network element.

[0182] In the first possible scenario, "the control plane network element skips sending a deletion command to the first user plane network element" can be understood as the control plane network element not sending a deletion command to the first user plane network element when the communication network is in a first state. For example, this first state could be that the control plane network element sends a user entry to the second user plane network element, but the terminal device has not connected to the interface corresponding to the second user plane network element.

[0183] In the second possible scenario, "the control plane network element skips issuing a deletion command to the first user plane network element" can also be understood as the control plane network element sending a deletion command to the first user plane network element after the communication network switches from the first state to the second state. For example, the second state could be that the control plane network element sends a user entry to the second user plane network element and confirms that the terminal device has accessed the interface corresponding to the second user plane. Alternatively, the second state could be that the control plane network element confirms that the data packets sent by the terminal device to the server are forwarded by the second user plane network element, and that the second user plane network element advertises routes externally. Furthermore, taking the example of the server communicating with the user plane network element through a forwarding device, the second state could also be that the control plane network element confirms that the data packets sent by the terminal device to the server are forwarded by the second user plane network element, the second user plane network element advertises routes externally, and the routing table of the forwarding device converges. For details on routing table convergence, please refer to the relevant explanation in S324 above, which will not be repeated here.

[0184] In the third possible scenario, the meaning of "the control plane network element skips sending a deletion command to the first user plane network element" can also be understood as the control plane network element not sending a deletion command to the first user plane network element regardless of the state of the communication network.

[0185] The data transmission method provided in this application embodiment allows the first user plane network element to receive data packets sent by the communication device when the communication device is connected to the interface corresponding to the first user plane network element. When the control plane network element sends user entries to the second user plane network element, the deletion of user entries maintained by the first user plane network element is skipped, so that the first user plane network element can send the data packet to the server according to the user entries, thus avoiding the loss of user-side traffic.

[0186] In addition, since the server maintains the first user route published by the first user plane network element, and the communication device is also connected to the interface corresponding to the first user plane network element, the second data packet sent by the server to the communication device according to the first user route is still encapsulated and forwarded by the first user plane network element. After the switching network element receives the second data packet forwarded by the first user plane network element, the switching network element sends the second data packet to the communication device, thus avoiding packet loss of network side traffic.

[0187] It is understood that, in order to achieve the functions in the above embodiments, the network device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0188] Figure 9 This is a schematic diagram of a communication device provided in an embodiment of this application. These communication devices can be used to implement the functions of network devices or various network elements in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the communication device 900 can be as follows: Figure 1 Any one of the network devices 121 to 123 shown can be a server 130, or a module (such as a chip) applied to a network device.

[0189] like Figure 9 As shown, the communication device 900 includes a processing module 910 and a transceiver module 920. The communication device 900 is used to implement the above-mentioned... Figure 3 , Figure 5 , Figure 6 or Figure 8 The method embodiments shown illustrate the functions of each network element.

[0190] When the communication device 900 is used to implement Figure 3 In the method embodiment shown, when controlling the function of the network element: the transceiver module 920 is used to execute the above-mentioned S303, S305, and S307; the processing module 910 is used to execute the above-mentioned S302.

[0191] When the communication device 900 is used to implement Figure 3 In the method embodiment shown, the function of the decision network element is as follows: the transceiver module 920 is used to execute the above-mentioned S306.

[0192] The above steps are still in progress. Figure 5 and Figure 6 The process will be executed in the middle, and will not be elaborated further.

[0193] When the communication device 900 is used to implement Figure 5 In the method embodiment shown, when controlling the function of the control plane network element, the transceiver module 920 is also used to execute the above-mentioned S314.

[0194] When the communication device 900 is used to implement Figure 6 In the method embodiment shown, when controlling the function of the network element, the transceiver module 920 is used to execute the above-described S319 and S324.

[0195] When the communication device 900 is used to implement Figure 6 In the method embodiment shown, the function of the decision network element is as follows: the processing module 910 is also used to execute the above-mentioned S326, and the transceiver module 920 is also used to execute the above-mentioned S327.

[0196] When the communication device 900 is used to implement Figure 8 In the method embodiment shown, when controlling the function of the network element: the processing module 910 is also used to execute the above-mentioned S810, and the transceiver module 920 is used to execute the above-mentioned S820.

[0197] For a more detailed description of the processing module 910 and the transceiver module 920, please refer directly to the above. Figure 3 , Figure 5 , Figure 6 or Figure 8 The relevant descriptions in the method embodiments shown are directly obtained and will not be repeated here.

[0198] In some cases, the communication device 900 can also perform the functions of the aforementioned switching network element, first user plane network element, second user plane network element, communication equipment, forwarding equipment, and server. For detailed descriptions, please refer directly to the above. Figure 3 , Figure 5 , Figure 6 or Figure 8 The relevant descriptions in the method embodiments shown are directly obtained and will not be repeated here.

[0199] Figure 10 This is a schematic diagram of a network device 1000 provided in an embodiment of this application. The network device 1000 includes a processor 1010 and a communication interface 1020. The processor 1010 and the communication interface 1020 are coupled to each other. It is understood that the communication interface 1020 can be a transceiver or an input / output interface. Optionally, the network device 1000 may further include a memory 1030 for storing instructions executed by the processor 1010, or storing input data required by the processor 1010 to execute instructions, or storing data generated after the processor 1010 executes instructions.

[0200] When network device 1000 is used to implement Figure 3 , Figure 5 , Figure 6 or Figure 8 In the method shown, the processor 1010 is used to execute the functions of the processing module 910, and the communication interface 1020 is used to execute the functions of the transceiver module 920.

[0201] This application embodiment does not limit the specific connection medium between the communication interface 1020, processor 1010, and memory 1030. This application embodiment... Figure 10The communication interface 1020, processor 1010, and memory 1030 are connected via a bus 1040. Figure 10 The connections between other components are shown in bold and are for illustrative purposes only, not as limiting information. The bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0202] The memory 1030 can be used to store software programs and modules, such as the program instructions / modules corresponding to the data transmission method provided in this application embodiment. The processor 1010 executes the software programs and modules stored in the memory 1030 to perform various functional applications and data processing. The communication interface 1020 can be used to communicate with other devices for signaling or data. In this application, the network device 1000 may have multiple communication interfaces 1020.

[0203] The aforementioned memory may be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.

[0204] The aforementioned processor can be an integrated circuit chip with signal processing capabilities. This processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0205] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, PROM, EPROM, EEPROM, registers, hard disk, portable hard disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Furthermore, the ASIC can reside in a network device or terminal device. Alternatively, the processor and storage medium can exist as discrete components in the network device or terminal device.

[0206] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).

[0207] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0208] The terms "first," "second," and "third," etc., used in this application specification, claims, and the aforementioned drawings are used to distinguish different objects, not to define a specific order.

[0209] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0210] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0211] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers described above does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.