WO2022156423A1 - Data transmission method and apparatus - Google Patents

Data transmission method and apparatus Download PDF

Info

Publication number
WO2022156423A1
WO2022156423A1 PCT/CN2021/137236 CN2021137236W WO2022156423A1 WO 2022156423 A1 WO2022156423 A1 WO 2022156423A1 CN 2021137236 W CN2021137236 W CN 2021137236W WO 2022156423 A1 WO2022156423 A1 WO 2022156423A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
plane network
user plane
instruction
user
Prior art date
Application number
PCT/CN2021/137236
Other languages
French (fr)
Chinese (zh)
Inventor
彭涛
余舟毅
花荣荣
王晓凯
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022156423A1 publication Critical patent/WO2022156423A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements

Abstract

Disclosed are a data transmission method and apparatus, relating to the field of communications. The method comprises: after obtaining a first instruction, a control plane network element skipping the step of sending a deletion instruction to a first user plane network element, and sending a user table entry to a second user plane network element according to the first instruction, wherein the deletion instruction is used for instructing the first user plane network element to delete a user table entry on the first user plane network element. Compared with the fact that a user table entry stored by a first user plane network element is deleted when a second user plane network element is notified by a control plane network element to process a data packet of a user, in the method provided in the present application, a terminal device accesses an interface corresponding to a first user plane network element, and a data packet sent by a terminal to a server is received by the first user plane network element; and after a control plane network element sends a user table entry to a second user plane network element, a user table entry in the first user plane network element is not deleted, and the first user plane network element can send the data packet to the server according to the user table entry, thereby avoiding the loss of user-side traffic.

Description

一种数据传输方法及装置A data transmission method and device
本申请要求于2021年1月21日提交国家知识产权局、申请号为202110082610.0、申请名称为“一种数据传输方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110082610.0 and the application title "A method and device for data transmission" submitted to the State Intellectual Property Office on January 21, 2021, the entire contents of which are incorporated herein by reference middle.
技术领域technical field
本申请涉及通信领域,尤其涉及一种数据传输方法及装置。The present application relates to the field of communications, and in particular, to a data transmission method and device.
背景技术Background technique
在用户利用终端设备通过网络访问服务器的过程中,宽带网络网关(broadband network gateway,BNG)用于完成用户认证、接入控制、流量调度等功能。随着层出不穷的各种互联网业务,为了提高BNG的带宽以及处理用户会话数的能力,可以采用软件定义网络(software defined network,SDN)技术和网络功能虚拟化(network function virtualization,NFV)技术将BNG划分为控制面网元和用户面网元,控制面网元用于实现BNG的控制功能,用户面网元用于实现BNG的封装和转发数据功能,从而实现了控制功能与转发功能的解耦,以及软件与硬件的解耦,提高了部署BNG的灵活性和可扩展性。In the process of a user using a terminal device to access the server through the network, a broadband network gateway (BNG) is used to complete functions such as user authentication, access control, and traffic scheduling. With the endless variety of Internet services, in order to improve the bandwidth of BNG and the ability to handle the number of user sessions, software defined network (SDN) technology and network function virtualization (NFV) technology can be used to convert BNG It is divided into control plane NEs and user plane NEs. Control plane NEs are used to implement BNG control functions, and user plane NEs are used to implement BNG encapsulation and data forwarding functions, thereby realizing the decoupling of control functions and forwarding functions. , and the decoupling of software and hardware, improving the flexibility and scalability of BNG deployment.
通常,一个控制面网元可以管理多个用户面网元。如果用户的优先级改变了,控制面网元可以将处理用户的数据包的第一用户面网元调整为第二用户面网元。但是,控制面网元通知第二用户面网元处理用户的数据包,还没有完全建立处理用户的数据包的机制时,删除了第一用户面网元存储的用户表项,导致第一用户面网元和第二用户面网元均无法处理用户的数据包,出现数据包丢包的现象。因此,如何避免数据传输过程中数据包丢包是目前亟需解决的问题。Usually, one control plane network element can manage multiple user plane network elements. If the priority of the user is changed, the control plane network element may adjust the first user plane network element that processes the user's data packet to the second user plane network element. However, the control plane network element notifies the second user plane network element to process the user's data packet, and when the mechanism for processing the user's data packet has not been fully established, the user entry stored in the first user plane network element is deleted, causing the first user Neither the plane network element nor the second user plane network element can process the user's data packets, and packet loss occurs. Therefore, how to avoid packet loss during data transmission is an urgent problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
本申请提供一种数据传输方法及装置,解决了数据传输过程中数据包丢包的问题。The present application provides a data transmission method and device, which solve the problem of packet loss during data transmission.
为达到上述目的,本申请采用如下技术方案:To achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供一种数据传输方法,应用于通信网络,该通信网络包括第一用户面网元、第二用户面网元和控制面网元,控制面网元分别连接第一用户面网元和第二用户面网元,该方法由控制面网元执行,该方法包括:控制面网元获得第一指令后,跳过向第一用户面网元发出删除指令的步骤,并依据第一指令向第二用户面网元发送用户表项。其中,上述的第一指令用于指示将终端设备的用户表项从第一用户面网元切换到第二用户面网元;上述的删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项;上述的用户表项可以用于用户面网元校验终端设备向服务器发送的数据包。由于第一用户面网元和第二用户面网元均维护有用户表项,在终端设备接入了第一用户面网元对应的接口,但还未接入第二用户面网元对应的接口的状态下,终端设备向服务器发送的数据包和服务器向终端设备发送的数据包都可以由第一用户面网元进行转发,避免了数据传输过程 中数据包丢包。In a first aspect, the present application provides a data transmission method, which is applied to a communication network. The communication network includes a first user plane network element, a second user plane network element, and a control plane network element, and the control plane network elements are respectively connected to the first user. A plane network element and a second user plane network element, the method is executed by a control plane network element, and the method includes: after the control plane network element obtains the first instruction, skipping the step of sending 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. The above-mentioned 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 above-mentioned deletion instruction is used to instruct the first user plane network element to delete the first user. User entry on the plane network element; the above user entry can be used for the user plane network element to verify the data packets sent by the terminal device to the server. Since both the first user plane network element and the second user plane network element maintain user entries, the terminal device has accessed the interface corresponding to the first user plane network element, but has not yet accessed the interface corresponding to the second user plane network element. In the interface state, both the data packets sent by the terminal device to the server and the data packets sent by the server to the terminal device can be forwarded by the first user plane network element, which avoids packet loss during data transmission.
在一种示例中,切换网元通过第一接口建立了与第一用户面网元的第一隧道,终端设备接入了第一用户面网元对应的接口,但还未接入第二用户面网元对应的接口,终端设备向服务器发送的数据包是由终端设备通过第一隧道发往了第一用户面网元,且第一用户面网元根据用户表项发往了服务器。服务器向终端设备发送的数据包是由服务器根据第一用户路由发往了第一用户面网元,第一用户面网元通过第一隧道发往了终端设备,第一用户路由是由第一用户面网元发布的。In an example, the handover network element establishes a first tunnel with the first user plane network element through the first interface, and the terminal device accesses the interface corresponding to the first user plane network element, but has not yet connected to the second user The interface corresponding to the plane network element, the data packet sent by the terminal device to the server is sent by the terminal device to the first user plane network element through the first tunnel, and the first user plane network element is sent to the server according to the user entry. The data packet sent by the server to the terminal device is sent by the server to the first user plane network element according to the first user route, the first user plane network element is sent to the terminal device through the first tunnel, and the first user route is sent by the first user plane network element. Published by user plane NEs.
在一种可能的实现方式中,上述的通信网络还可以包括切换网元和决策网元,决策网元分别连接控制面网元和切换网元,在控制面网元依据第一指令向第二用户面网元发送用户表项后,该数据传输方法还可以包括:控制面网元通知决策网元向切换网元发送第二指令,该第二指令指示切换网元将终端设备接入第二用户面网元对应的接口。例如,控制面网元发送第一指令的响应消息至决策网元,以便决策网元在接收到该响应消息后,发送第二指令至切换网元,以便切换网元依据该第二指令将终端设备接入第二用户面网元对应的接口,该第二指令是依据服务等级协议和/或通信网络的负载情况确定的。由于第二用户面网元维护有用户表项,在终端设备接入第二用户面网元对应的接口后,终端设备向服务器发送的数据包可以由第二用户面网元进行转发,避免了数据传输过程中用户侧的数据包丢包;服务器向终端设备发送的数据包可以由第一用户面网元进行转发,避免了数据传输过程中网络侧的数据包丢包。In a possible implementation manner, the above-mentioned communication network may further include a switching network element and a decision-making network element, the decision-making network element is respectively connected to the control plane network element and the switching network element, and the control plane network element sends the second instruction to the second network element according to the first instruction. After the user plane network element sends the user entry, the data transmission method may further include: the control plane network element notifies the decision network element to send a second instruction to the switching network element, where the second instruction instructs the switching network element to connect the terminal device to the second The interface corresponding to the user plane NE. For example, the control plane network element sends a response message of the first command to the decision-making network element, so that the decision-making network element sends a second command to the switching network element after receiving the response message, so that the switching network element sends the terminal according to the second command. The device accesses the interface corresponding to the second user plane network element, and the second instruction is determined according to the service level agreement and/or the load condition of the communication network. Since the second user plane network element maintains user entries, after the terminal device accesses 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 the need for Data packets on the user side during data transmission are lost; data packets sent by the server to the terminal device can be forwarded by the first user plane network element, which avoids packet loss on the network side during data transmission.
在一种示例中,切换网元通过第二接口建立了与第二用户面网元的第二隧道,第二用户面网元接收到控制面网元发送的用户表项,终端设备接入了第二接口,终端设备向服务器发送的数据包是由终端设备通过第二隧道发往了第二用户面网元,且第二用户面网元根据用户表项发往了服务器。In an 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 the user entry sent by the control plane network element, and the terminal device accesses the In the second interface, the data packet sent by the terminal device to the server is sent by the terminal device to the second user plane network element through the second tunnel, and the second user plane network element is sent to the server according to the user entry.
在另一种示例中,第二用户面网元接收到用户表项,终端设备接入了第二用户面网元对应的接口,但第二用户面网元还未向外发布路由,服务器向终端设备发送的数据包是由服务器根据第一用户路由发往了第一用户面网元,第一用户面网元通过第一隧道发往了终端设备。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, but the second user plane network element has not advertised routes to the outside world, and the server sends The data packet sent by the terminal device is sent by the server to the first user plane network element according to the first user route, and the first user plane network element is sent to the terminal device through the first tunnel.
在另一种可能的实现方式中,在控制面网元通知决策网元发送第二指令后,该数据传输方法还可以包括:控制面网元向第二用户面网元发送路由发布指令。该路由发布指令指示第二用户面网元发布到终端设备的路由,示例的,该路由发布指令可以指示第二用户面网元向服务器发布用户路由,该用户路由用于服务器确定服务器向终端设备发送的数据包的转发路径。In another possible implementation manner, 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 sends a route announcement instruction to the second user plane network element. The route issuing instruction instructs the second user plane network element to issue a route to the terminal device. For example, the route issuing instruction may instruct the second user plane network element to issue a user route to the server, and the user route is used by the server to determine the server to the terminal device. Forwarding path for sent packets.
在一种示例中,第二用户面网元接收到控制面网元发送的用户表项,终端设备接入了第二接口,且第二用户面网元向服务器发布了第二用户路由,终端设备向服务器发送的数据包是由终端设备通过第二隧道发往了第二用户面网元,且第二用户面网元根据用户表项发往了服务器,服务器向终端设备发送的数据包是由服务器发往了第二用户面网元,第二用户面网元通过第二隧道发往了终端设备,从而完成了数据传输过程中的用户面网元切换,且在用户面网元的切换过程中避免了用户侧和网络侧的数据包丢包。In an example, the second user plane network element receives the user entry sent by the control plane network element, the terminal device accesses the second interface, and the second user plane network element advertises the second user route to the server, and the terminal device accesses the second interface. The data packet sent by the device to the server is sent by the terminal device to the second user plane network element through the second tunnel, and the second user plane network element is sent to the server according to the user entry, and the data packet sent by the server to the terminal device is It is sent by the server to the second user plane network element, and the second user plane network element is sent to the terminal device through the second tunnel, thus completing the user plane network element switching in the data transmission process, and the switching of the user plane network element in the data transmission process is completed. During the process, data packet loss on the user side and the network side is avoided.
在另一种可能的实现方式中,在控制面网元通知决策网元发送第二指令后,该数据传输方法还可以包括:控制面网元向第一用户面网元发出删除指令。在第一用户面网元接收 到控制面网元发送的删除指令后,第一用户面网元删除其存储的用户表项,减少了第一用户面网元所需要的维护的数据,有利于降低通信网络的负载,提高通信网络的数据传输效率。In another possible implementation manner, 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 sends a deletion instruction to the first user plane network element. After the first user plane network element receives the deletion instruction sent by the control plane network element, the first user plane network element deletes the stored user entry, which reduces the maintenance data required by the first user plane network element, which is beneficial to Reduce the load of the communication network and improve the data transmission efficiency of the communication network.
第二方面,本申请提供一种数据传输方法,应用于通信网络,该通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,控制面网元分别连接决策网元、第一用户面网元和第二用户面网元,决策网元与切换网元连接,该方法由决策网元执行,该方法包括:决策网元依据服务等级协议和/或通信网络的负载情况生成第一指令并向控制面网元发送;在决策网元接收到第一指令的响应消息后,生成第二指令并向切换网元发送。上述的第一指令用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元,上述的响应消息表征控制面网元已将用户表项发往了第二用户面网元,上述的第二指令用于指示切换网元将终端设备接入第二用户面网元对应的接口。In a second aspect, the present application provides a data transmission method, which is applied to a communication network, where 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 plane network element is respectively 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 the method includes: the decision network element is based on the service level. The protocol and/or the load situation of the communication network generates the first instruction and sends it to the control plane network element; after the decision network element receives the response message of the first instruction, it generates the second instruction and sends it to the handover network element. The above-mentioned 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, and the above response message indicates that the control plane network element has sent the user entry. To the second user plane network element, the above-mentioned second instruction is used to instruct the switching network element to connect the terminal device to the interface corresponding to the second user plane network element.
在一种可能的情形下,第二用户面网元接收到控制面网元发送的用户表项,终端设备未接入第二用户面网元对应的接口,终端设备向服务器发送的数据包由第一用户面网元进行封装和转发。In a possible situation, the second user plane network element receives the user entry sent by the control plane network element, the terminal device does not access the interface corresponding to the second user plane network element, and the data packet sent by the terminal device to the server is The first user plane network element performs encapsulation and forwarding.
在另一种可能的情形下,第二用户面网元接收到控制面网元发送的用户表项,且终端设备接入了第二用户面网元对应的接口,终端设备向服务器发送的数据包由第二用户面网元进行封装和转发,使得终端设备向服务器发送的数据包不会因为用户面网元的切换而丢失,避免了用户侧流量丢包。In another possible situation, the second user plane network element receives the user entry sent by the control plane network element, and the terminal device accesses the interface corresponding to the second user plane network element, and the data sent by the terminal device to the server The packets 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, thereby avoiding packet loss of user-side traffic.
在一种可能的实现方式中,该数据传输方法还可以包括:决策网元生成第三指令并在预设的定时器超时后向切换网元发送,该第三指令指示切换网元断开终端设备与第一用户面网元对应的接口的连接。例如,该预设的定时器是可以是一个进程,或计时组件;超时时间可以设置为10秒、5秒等。In a possible implementation manner, the data transmission method may further include: the decision-making network element generates a third instruction and sends it to the switching network element after a preset timer expires, the third instruction instructing the switching network element to disconnect the terminal The connection between the device and the interface corresponding to 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, or the like.
在一种示例中,第三指令可以合并在第二指令中,例如,合并后的第二指令指示切换网元将通信设备接入第二接口,并在达到定时器超时(例如,5秒、8秒、10秒等)后,删除通信设备与第一接口的绑定。In one example, the third instruction may be combined with the second instruction, for example, the combined second instruction instructs the switching network element to connect the communication device to the second interface, and when the timer expires (for example, 5 seconds, After 8 seconds, 10 seconds, etc.), the binding between the communication device and the first interface is deleted.
第三方面,本申请提供一种通信数据传输方法,应用于通信网络,通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,控制面网元分别连接决策网元、第一用户面网元和第二用户面网元,决策网元与切换网元连接,该数据传输方法包括:决策网元依据服务等级协议和/或通信网络的负载情况生成第一指令并向控制面网元发送,该第一指令可以用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元;控制面网元获得第一指令,跳过向第一用户面网元发出删除指令的步骤,并依据第一指令向第二用户面网元发送用户表项,该删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项;在依据第一指令发送用户表项至第二用户面网元后,控制面网元还向决策网元发送响应消息,该响应消息表征控制面网元已将用户表项发往了第二用户面网元;决策网元在接收到响应消息后,决策网元生成第二指令并向切换网元发送,该第二指令用于指示切换网元将终端设备接入第二用户面网元对应的接口;切换网元依据该第二指令将终端设备接入第二用户面网元对应的接口。In a third aspect, the present application provides a communication data transmission method, which is 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 plane network element is respectively 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, and the data transmission method includes: the decision network element is based on the service level agreement and/or the communication network element The load situation generates a first instruction and sends it to the control plane network element, where 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 obtains the first instruction, skips the step of sending 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, and the deletion instruction is used to instruct the first user The plane network element deletes the user entry on the first user plane network element; 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, the response message Indicates that the control plane network element has sent the user entry to the second user plane network element; after the decision network element receives the response message, the decision network element generates a second instruction and sends it to the handover network element. The second instruction is used for The switching network element is instructed 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.
在一种可能的实现方式中,在控制面网元通知决策网元发送第二指令后,该数据传输方法还包括:控制面网元向第二用户面网元发送路由发布指令,路由发布指令指示第二用 户面网元发布到终端设备的路由。In a possible implementation manner, after the control plane network element notifies the decision network element to send the second instruction, the data transmission method further includes: the control plane network element sends a route release instruction to the second user plane network element, and the route release instruction Indicates the route that the second user plane network element advertises to the terminal device.
在另一种可能的实现方式中,在控制面网元通知决策网元发送第二指令后,该数据传输方法还包括:控制面网元向第一用户面网元发出删除指令。In another possible implementation manner, after the control plane network element notifies the decision network element to send the second instruction, the data transmission method further includes: the control plane network element sends a deletion instruction to the first user plane network element.
在另一种可能的实现方式中,该数据传输方法还包括:决策网元生成第三指令并在预设的定时器超时后向切换网元发送,该第三指令指示切换网元断开终端设备与第一用户面对应的接口的连接。In another possible implementation manner, the data transmission method further includes: the decision-making network element generates a third instruction and sends it to the switching network element after a preset timer expires, the third instruction instructing the switching network element to disconnect the terminal The connection between the device and the interface corresponding to the first user plane.
第四方面,本申请提供一种通信网络,该通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,控制面网元分别连接决策网元、第一用户面网元和第二用户面网元,决策网元与切换网元连接。决策网元用于依据服务等级协议和/或通信网络的负载情况生成第一指令,以及,向控制面网元发送第一指令,第一指令用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元。控制面网元用于获得第一指令,跳过向第一用户面网元发出删除指令的步骤,并依据第一指令向第二用户面网元发送用户表项,删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项;在依据第一指令发送用户表项至第二用户面网元后,控制面网元还用于向决策网元发送响应消息,响应消息表征控制面网元已将用户表项发往了第二用户面网元。决策网元还用于在接收到响应消息后,生成第二指令并向切换网元发送,该第二指令用于指示切换网元将终端设备接入第二用户面网元对应的接口。切换网元用于依据第二指令将终端设备接入第二用户面网元对应的接口。In a fourth aspect, the present application provides 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, and the control plane network elements are respectively connected to make decisions. The network element, the first user plane network element and the second user plane network element, and the decision network element are connected to the handover network element. The decision network element is used to generate the first instruction according to the service level agreement and/or the load situation of the communication network, and to send the first instruction to the control plane network element, where the first instruction is used to instruct the control plane network element to change the user table of the terminal device. The item is switched from the first user plane network element to the second user plane network element. The control plane network element is used to obtain the first instruction, skip the step of sending 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, and the deletion instruction is used to instruct the first user plane network element. The user plane network element deletes the user entry on the first user plane network element; after sending the user entry to the second user plane network element according to the first instruction, the control plane network element is further configured to send a response message to the decision 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 decision network element is further configured to generate and send a second instruction to the switching network element after receiving the response message, where the second instruction is used to instruct the switching network element to connect the terminal device to the interface corresponding to the second user plane network element. The switching network element is used for connecting the terminal device to the interface corresponding to the second user plane network element according to the second instruction.
在一种可能的实现方式中,控制面网元还用于向第二用户面网元发送路由发布指令,路由发布指令指示第二用户面网元发布到终端设备的路由。In a possible implementation manner, the control plane network element is further configured to send a route advertisement instruction to the second user plane network element, where the route advertisement instruction instructs the second user plane network element to publish a route to the terminal device.
在另一种可能的实现方式中,控制面网元还用于向第一用户面网元发出删除指令。In another possible implementation manner, the control plane network element is further configured to send a deletion instruction to the first user plane network element.
在另一种可能的实现方式中,决策网元还用于生成第三指令,该第三指令指示切换网元断开终端设备与第一用户面对应的接口的连接;决策网元还用于在预设的定时器超时后向切换网元发送第三指令。In another possible implementation manner, the decision-making network element is further configured to generate a third instruction, where the third instruction instructs the switching network element to disconnect the connection between the terminal device and the interface corresponding to the first user plane; the decision-making network element also uses After the preset timer times out, a third instruction is sent to the switching network element.
第五方面,本申请提供一种通信装置,有益效果可以参见第一方面中任一方面的描述,此处不再赘述。所述通信装置具有实现上述第一方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,该通信装置应用于通信网络,所述通信网络包括第一用户面网元、第二用户面网元和控制面网元,所述控制面网元分别连接所述第一用户面网元和所述第二用户面网元,所述通信装置用于执行所述控制面网元的功能,所述通信装置包括:收发模块和处理模块。收发模块用于获得第一指令,该第一指令用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元;处理模块用于跳过向第一用户面网元发出删除指令的步骤,并依据第一指令向第二用户面网元发送用户表项,该删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项。In a fifth aspect, the present application provides a communication device, and the beneficial effects can be found in the description of any aspect of the first aspect, which will not be repeated here. The communication device has the functionality to implement the behavior in the method instance of any one of the above-mentioned first aspects. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In a possible design, the communication device is applied to a communication network, and the communication network includes a first user plane network element, a second user plane network element, and a control plane network element, and the control plane network elements are respectively connected to the first user plane network element. A user plane network element and the second user plane network element, the communication device is configured to execute the function of the control plane network element, and the communication device includes: a transceiver module and a processing module. The transceiver module is used to obtain a first instruction, where 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 processing module is used to skip to the user plane network element. The first user plane network element sends a deletion instruction, and sends a user entry to the second user plane network element according to the first instruction, and the deletion instruction is used to instruct the first user plane network element to delete the first user plane network element. User table entry.
在一种可能的实现方式中,通信网络还包括切换网元和决策网元,决策网元分别连接控制面网元和切换网元。收发模块还用于通知决策网元向切换网元发送第二指令,该第二指令指示切换网元将终端设备接入第二用户面网元对应的接口。In a possible implementation manner, the communication network further includes a handover network element and a decision network element, and the decision network element is respectively connected to the control plane network element and the handover network element. The transceiver module is further configured to notify the decision network element to send a second instruction to the switching network element, where the second instruction instructs the switching network element to connect the terminal device to the interface corresponding to the second user plane network element.
在另一种可能的实现方式中,收发模块还用于向第二用户面网元发送路由发布指令, 该路由发布指令指示第二用户面网元发布到终端设备的路由。In another possible implementation manner, the transceiver module is further configured to send a route advertisement instruction to the second user plane network element, where the route advertisement instruction instructs the second user plane network element to publish a route to the terminal device.
在另一种可能的实现方式中,收发模块还用于向第一用户面网元发出删除指令。In another possible implementation manner, the transceiver module is further configured to send a deletion instruction to the first user plane network element.
第六方面,本申请提供一种通信装置,有益效果可以参见第二方面中任一方面的描述,此处不再赘述。所述通信装置具有实现上述第二方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,该通信装置应用于通信网络,通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,控制面网元分别连接决策网元、第一用户面网元和第二用户面网元,该通信装置用于实现上述决策网元的功能,该通信装置包括:收发模块和处理模块。处理模块用于依据服务等级协议和/或通信网络的负载情况生成第一指令,该第一指令用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元;收发模块用于向控制面网元发送第一指令;收发模块还用于在收发模块接收到第一指令的响应消息后,生成第二指令,该响应消息表征控制面网元已将用户表项发往了第二用户面网元,该第二指令用于指示切换网元将终端设备接入第二用户面网元对应的接口;收发模块还用于向切换网元发送第二指令。In a sixth aspect, the present application provides a communication device, and the beneficial effects can be found in the description of any aspect of the second aspect, which will not be repeated here. The communication device has the functionality to implement the behavior in the method instance of any one of the above-mentioned second aspects. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In a possible design, the communication device is 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 elements are respectively Connecting the decision network element, the first user plane network element and the second user plane network element, the communication device is used to realize the functions of the above decision network element, and the communication device includes: a transceiver module and a processing module. The processing module is configured to generate a first instruction according to the service level agreement and/or the load condition of the communication network, 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 a user plane network element; the transceiver module is configured to send a first instruction to a control plane network element; the transceiver module is further configured to generate a second instruction after the transceiver module receives a response message for the first instruction, the response message representing the control plane network element The user entry has been sent to the second user plane network element, and the second instruction is used to instruct the switching network element to connect the terminal device to the interface corresponding to the second user plane network element; the transceiver module is also used to send the switching network element second order.
在一种可能的实现方式中,处理模块还用于生成第三指令,该第三指令指示切换网元断开终端设备与第一用户面网元对应的接口的连接;收发模块还用于在预设的定时器超时后向切换网元发送第三指令。In a possible implementation manner, the processing module is further configured to generate a third instruction, where the third instruction instructs the switching network element to disconnect the connection between the terminal device and the interface corresponding to the first user plane network element; the transceiver module is further configured to After the preset timer times out, a third instruction is sent to the switching network element.
第七方面,本申请提供一种网络设备,该网络设备包括:处理器和存储器,存储器用于存储计算机指令,当处理器执行该指令时,以使网络设备执行第一方面和第一方面中任一种可能实现方式,或第二方面和第二方面中任一种可能实现方式,或第三方面和第三方面中任一种可能实现方式的数据传输方法的操作步骤。In a seventh aspect, the present application provides a network device, the network device includes: a processor and a memory, the memory is used for storing computer instructions, when the processor executes the instructions, so that the network device executes the first aspect and the first aspect. Any one possible implementation manner, or any one possible implementation manner of the second aspect and the second aspect, or any one possible implementation manner of the third aspect and the third aspect, the operation steps of the data transmission method.
第八方面,本申请提供一种计算机可读存储介质,存储介质中存储有计算机程序或指令,当计算机程序或指令被网络设备执行时,实现第一方面和第一方面中任一种可能实现方式,或第二方面和第二方面中任一种可能实现方式,或第三方面和第三方面中任一种可能实现方式的数据传输方法的操作步骤。In an eighth aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed by a network device, any one of the first aspect and the first aspect may be implemented. or any one of the possible implementations of the second aspect and the second aspect, or the operation steps of the data transmission method of the third aspect and any one of the possible implementations of the third aspect.
第九方面,本申请提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算设备执行第一方面和第一方面中任一种可能实现方式,或第二方面和第二方面中任一种可能实现方式,或第三方面和第三方面中任一种可能实现方式的数据传输方法的操作步骤。In a ninth aspect, the present application provides a computer program product that, when the computer program product runs on a computer, enables a computing device to perform any one of the possible implementations of the first aspect and the first aspect, or the second aspect and the second aspect Any one of the possible implementations, or the operation steps of the data transmission method of any one of the third aspect and any one of the possible implementations of the third aspect.
第十方面,本申请提供一种芯片,包括存储器和处理器,存储器用于存储计算机指令,处理器用于从存储器中调用并运行该计算机指令,以执行上述第一方面及其第一方面任意可能的实现方式中的方法,或第二方面和第二方面中任一种可能实现方式,或第三方面和第三方面中任一种可能实现方式的数据传输方法的操作步骤。In a tenth aspect, the present application provides a chip, including a memory and a processor, the memory is used for storing computer instructions, and the processor is used for calling and running the computer instructions from the memory, so as to execute the above-mentioned first aspect and any possibility of the first aspect. The method in the implementation manner of the above, or any one of the possible implementation manners of the second aspect and the second aspect, or the operation steps of the data transmission method in any one of the third aspect and any possible implementation manner of the third aspect.
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。On the basis of the implementation manners provided by the above aspects, the present application may further combine to provide more implementation manners.
附图说明Description of drawings
图1为本申请实施例提供的一种通信网络的结构示意图;1 is a schematic structural diagram of a communication network according to an embodiment of the present application;
图2为本申请实施例提供的另一种通信网络的结构示意图;FIG. 2 is a schematic structural diagram of another communication network provided by an embodiment of the present application;
图3为本申请实施例提供的一种数据传输方法的流程示意图;3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application;
图4为本申请实施例提供的一种用户面网元的示意图;FIG. 4 is a schematic diagram of a user plane network element according to an embodiment of the present application;
图5为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 5 is a schematic flowchart of another data transmission method provided by an embodiment of the present application;
图6为本申请实施例提供的另一种数据传输方法的流程示意图;6 is a schematic flowchart of another data transmission method provided by an embodiment of the present application;
图7为本申请实施例提供的一种数据传输的效果示意图;FIG. 7 is a schematic diagram of an effect of data transmission provided by an embodiment of the present application;
图8为本申请实施例提供的另一种数据传输方法的流程示意图;FIG. 8 is a schematic flowchart of another data transmission method provided by an embodiment of the present application;
图9为本申请实施例提供的一种通信装置的结构示意图;FIG. 9 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图10为本申请实施例提供的一种网络设备的结构示意图。FIG. 10 is a schematic structural diagram of a network device according to an embodiment of the application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图1为本申请实施例提供的一种通信网络的结构示意图,通信网络包括至少一个终端(如图1中所示出的终端111~116)和服务器130。终端可以通过网络访问服务器130。网络可以是互联网服务提供商(internet service provider,ISP)网络。ISP是指向广大用户提供互联网接入业务、信息业务和增值业务的运营商,ISP网络可以包括至少一个网络设备(如图1中所示出的网络设备122和网络设备123)。FIG. 1 is a schematic structural diagram of a communication network provided by an embodiment of the present application. The communication network includes at least one terminal (terminals 111 to 116 as shown in FIG. 1 ) and a server 130 . The terminal can access the server 130 through the network. The network may 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 large number of users. The ISP network may include at least one network device (such as network device 122 and network device 123 as shown in FIG. 1 ).
终端(terminal)也可以称为终端设备、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。A terminal (terminal) may also be called a terminal device, a user equipment (UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), and the like.
在一些实施例中,终端可以是手机(如图1中所示出的终端111和终端116)、平板电脑(如图1中所示出的终端112)、带无线收发功能的电脑(如图1中所示出的终端113)、个人通信业务(personal communication service,PCS)电话(如图1中所示出的终端114)、台式计算机(如图1中所示出的终端115)、虚拟现实(Virtual Reality,VR)终端设备、增强现实(Augmented Reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。In some embodiments, the terminal may be a mobile phone (the terminal 111 and the terminal 116 as shown in FIG. 1 ), a tablet computer (the terminal 112 as shown in FIG. 1 ), a computer with a wireless transceiving function (as shown in FIG. 1 ) 1), personal communication service (PCS) phone (terminal 114 as shown in FIG. 1), desktop computer (terminal 115 as shown in FIG. 1), virtual Reality (Virtual Reality, VR) terminal equipment, Augmented Reality (AR) terminal equipment, wireless terminal in industrial control (industrial control), wireless terminal in unmanned driving (self driving), remote surgery (remote medical surgery) ), wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. Wait.
在另一些实施例中,终端还可以是家庭网关。家庭网关例如可以是光网络终端(optical network terminal,ONT)。示例的,如图1中所示的网络设备121可以是光网络终端。光网络终端可以将PC、手机等用户设备接入互联网。家庭网关可以传输以下业务的数据:上网业务(如交互式网络电视业务,其包括家庭网关支持视频点播、直播业务及远程教育等),网上游戏业务(例如游戏终端通过家庭网关开展游戏业务),互联网协议(internet protocol,IP)电话,可视电话和视频监控业务等。又如,家庭网关还可以实现远程网络上的家庭控制和安全服务管理。示例的,拥有家庭网关的用户可以在工作或外出期间,访问家庭网关覆盖的区域的自动化照明、供热和安全系统等。本申请的实施例对终端所采用的具体技术和具体设备形态不做限定。In other embodiments, the terminal may also be a home gateway. The home gateway may be, for example, an optical network terminal (optical network terminal, ONT). Illustratively, the network device 121 as shown in FIG. 1 may be an optical network terminal. Optical network terminals can connect user equipment such as PCs and mobile phones to the Internet. The home gateway can transmit data of the following services: Internet access services (such as interactive network TV services, including home gateways supporting video on demand, live broadcast services, and distance education, etc.), online game services (for example, game terminals conduct game services through the home gateway), Internet Protocol (Internet Protocol, IP) telephony, video telephony and video surveillance services, etc. For another example, the home gateway can also implement home control and security service management on a remote network. For example, a user who owns a home gateway can access automated lighting, heating and security systems, etc. in the area covered by the home gateway during work or outing. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal.
网络设备可以是路由转发设备,例如,路由转发设备可以是路由器或交换机(如图1所示出的网络设备123),其可以是核心路由器(core router,CR),边缘路由器(provider edge,PE)等。网络设备还可以是BNG或宽带远程接入服务器(Broadband Remote Access Server, BRAS)等。The network device may be a routing and forwarding device, for example, the routing and forwarding device may be a router or a switch (the network device 123 shown in FIG. 1 ), which may be a core router (core router, CR), an edge router (provider edge, PE) )Wait. The network device may also be a BNG or a broadband remote access server (Broadband Remote Access Server, BRAS).
终端可以利用网络设备访问服务器。例如,如图1所示出的房间中,第一用户可以利用终端111,采样无线宽带(wireless-fidelity,WIFI)技术与网络设备121建立通信连接,以便终端111发送数据包至服务器130。又如,如图1所示所示出的篮球场中,第二用户还可以利用终端116,采样移动通信技术与无线接入网设备(radio access network,RAN)(图中未示出)建立通信连接,访问服务器130。The terminal can use the network device to access the server. For example, in the room shown in FIG. 1 , the first user may use the terminal 111 to establish a communication connection with the network device 121 using the wireless-fidelity (WIFI) technology, so that the terminal 111 sends data packets to the server 130 . For another example, in the basketball court shown in FIG. 1 , the second user may also use the terminal 116 to establish a sampling mobile communication technology with a radio access network (RAN) (not shown in the figure). Communication connection, access server 130.
服务器130可以是应用服务器或认证授权服务器。服务器130可以提供视频服务、游戏服务、消息服务、音乐服务、认证授权服务等。在一种示例中,可以将多个服务的功能集成在服务器130上,例如,游戏服务和音乐服务可以部署在服务器130上。在另一种示例中,还可以是服务器130上集成了部分服务的功能,例如,服务器130上部署了游戏服务的部分服务和视频服务的部分服务。服务器130还可以利用虚拟化技术提供多个虚拟机,由虚拟机提供各项服务。本申请实施例对服务的部署形态不予限定。Server 130 may be an application server or an authentication and authorization server. The server 130 may provide video services, game services, message services, music services, authentication and authorization services, and the like. In one example, the functionality of multiple services may be integrated on server 130 , for example, game services and music services may be deployed on server 130 . In another example, the server 130 may also integrate the functions of some services, for example, some services of the game service and some services of the video service are deployed on the server 130 . The server 130 may also provide a plurality of virtual machines by using the virtualization technology, and the virtual machines provide various services. The embodiment of the present application does not limit the deployment form of the service.
网络设备通过无线或有线方式与服务器130连接。图1只是示意图,该通信网络中还可以包括其它设备,在图1中未画出。本申请的实施例对该通信网络中包括的终端设备、网络设备和服务器的数量不做限定。The network device is connected with the server 130 in a wireless or wired manner. FIG. 1 is only a schematic diagram, and the communication network may also include other devices, which are not shown in FIG. 1 . The embodiments of the present application do not limit the number of terminal devices, network devices, and servers included in the communication network.
为了提高BNG的带宽以及处理用户会话数的能力,ISP提供的网络设备可以采用SDN和NFV技术进行虚拟化,得到多个虚拟化的网元。图2为本申请实施例提供的另一种通信网络的结构示意图,如图2所示,该通信网络包括接入网元210、切换网元220、至少两个用户面网元(如图2所示出的第一用户面网元231、第二用户面网元232和第三用户面网元233)、控制面网元240、决策网元250和认证网元260。In order to improve the bandwidth of the BNG and the ability to handle the number of user sessions, the network equipment provided by the ISP can be virtualized using SDN and NFV technologies to obtain multiple virtualized network elements. FIG. 2 is a schematic structural diagram of another communication network provided by an embodiment of the present application. As shown in FIG. 2 , the communication network includes an access network element 210, a switching network element 220, and at least two user plane network elements (as shown in FIG. 2 ). The illustrated first user plane network element 231, second user plane network element 232 and third user plane network element 233), control plane network element 240, decision network element 250 and authentication network element 260.
接入网元210用于实现接入网(access network,AN)设备提供的功能,其可以将多个终端的数据报文汇聚在ISP提供的汇聚路由器上。在一些示例中,AN设备可以是有线设备,例如,ONT。在另一些示例中,AN设备可以是无线设备,例如,基站。The access network element 210 is used to implement a function provided by an access network (access network, AN) device, which can aggregate data packets of multiple terminals on an aggregation router provided by an ISP. In some examples, the AN device may be a wired device, eg, an ONT. In other examples, the AN device may be a wireless device, eg, a base station.
切换网元220用于实现汇聚路由器提供的功能。对汇聚路由器上的物理端口(interface)进行虚拟化可以获得多个接口(subinterface),该接口用于建立与用户面网元的通信隧道。该通信隧道可以是虚拟局域网(virtual local area network,VLAN)隧道,虚拟扩展局域网(virtual extensible local area network,VXLAN)隧道,或虚拟专用网络(virtual private network,VPN)隧道等。示例的,如图2所示出的三个接口:第一接口221、第二接口222和第三接口223。切换网元220通过这三个接口建立与部署在BNG上的用户面网元的通信隧道。具体的,切换网元220通过第一接口221建立与第一用户面网元231通信的第一隧道V1,通过第二接口222建立与第二用户面网元232通信的第二隧道V2,通过第三接口223建立与第三用户面网元233通信的第三隧道V3。The switching network element 220 is used to implement the functions provided by the aggregation router. Virtualizing a physical port (interface) on the aggregation router can obtain multiple subinterfaces, which are used to establish communication tunnels with user plane network elements. The communication tunnel may be a virtual local area network (virtual local area network, VLAN) tunnel, a virtual extensible local area network (VXLAN) tunnel, or a virtual private network (virtual private network, VPN) tunnel, and the like. For example, there are three interfaces shown in FIG. 2 : a first interface 221 , a second interface 222 and a third interface 223 . The switching network element 220 establishes a communication tunnel with the user plane network element deployed on the BNG through these three interfaces. Specifically, the switching network element 220 establishes a first tunnel V1 to communicate with the first user plane network element 231 through the first interface 221 , and establishes a second tunnel V2 to communicate with the second user plane network element 232 through the second interface 222 . The third interface 223 establishes a third tunnel V3 for communication with the third user plane network element 233 .
在一些实施例中,第一隧道V1可以用于传输第一用户的数据包,第二隧道V2可以用于传输第二用户的数据包,第三隧道V3可以作为第一用户和第二用户的备用通信隧道。如图1所示,第一用户可以是指从网络设备121接入网络的所有用户,第二用户可以是指使用终端116接入网络的用户。In some embodiments, the first tunnel V1 can be used to transmit the data packets of the first user, the second tunnel V2 can be used to transmit the data packets of the second user, and the third tunnel V3 can be used as the data packets of the first user and the second user. Alternate communication tunnel. As shown in FIG. 1 , the first user may refer to all users accessing the network from the network device 121 , and the second user may refer to the user who uses the terminal 116 to access the network.
用户面网元用于实现BNG或虚拟宽带网络网关(virtual broadband network gateway,vBNG)提供的数据封装和转发功能。示例的,图2所示出的第一用户面网元231可以根据控制面网元240发送的网络信息生成用户表项,该用户表项可以包括第一用户使用的终 端111的IP信息、网络设备121的媒体访问控制(media access control,MAC)地址等。User plane network elements are used to implement data encapsulation and forwarding functions provided by BNG or virtual broadband network gateway (vBNG). Illustratively, the first user plane network element 231 shown in FIG. 2 may generate a user entry according to the network information sent by the control plane network element 240, and the user entry may include the IP information of the terminal 111 used by the first user, the network A media access control (media access control, MAC) address of the device 121, and the like.
在一种可能的设计中,部署用户面网元的网络设备与服务器之间可以存在至少一个路由转发设备,用户面网元将数据包进行封装和转发,并有路由转发设备进行再次转发到达服务器。In a possible design, there may be at least one routing and forwarding device between the network device where the user plane network element is deployed and the server. The user plane network element encapsulates and forwards the data packets, and there is a routing and forwarding device for re-forwarding to the server. .
在另一种可能的设计中,部署用户面网元的网络设备与服务器之间还可以不存在路由转发设备。例如,部署用户面网元的网络设备与服务器通过物理介质连接,部署用户面网元的网络设备向服务器发送数据。In another possible design, there may be no routing forwarding device between the network device where the user plane network element is deployed and the server. For example, the network device deploying the user plane network element is connected to the server through a physical medium, and the network device deploying the user plane network element sends data to the server.
控制面网元240用于实现BNG或vBNG提供的控制功能。示例的,控制面网元可以控制各种网络协议的运行,例如,开放最短路径优先(open shortest path first,OSPF)、地址解析协议(address resolution protocol,ARP)、生成树协议(spanning tree protocol,STP)等。在一些示例中,控制面网元还可以提供用户面网元封装数据和转发数据所需的网络信息和用户表项。The control plane network element 240 is used to implement the control function provided by the BNG or the vBNG. Illustratively, control plane network elements can control the operation of various network protocols, such as open shortest path first (OSPF), address resolution protocol (ARP), spanning tree protocol (spanning tree protocol, STP) etc. In some examples, the control plane network element may also provide network information and user entries required by the user plane network element to encapsulate data and forward data.
例如,将多台宽带远程接入服务器(broadband remote access server,BRAS)上的用户管理功能抽取出来,并将多台BRAS的用户管理功能进行集中,获得控制面(control plane,CP);将每台BRAS上保留的转发功能作为用户面(user plane,UP)。For example, the user management functions on multiple broadband remote access servers (BRAS) are extracted, and the user management functions of multiple BRASs are centralized to obtain a control plane (CP); The forwarding function reserved on the BRAS is used as the user plane (UP).
在第一种可能的设计中,UP可以是传统硬件网络设备,称为物理用户面(physic user plane,pUP)。In a first possible design, the UP can be a traditional hardware network device called the physical user plane (pUP).
在第二种可能的设计中,CP和UP可以是虚拟网元,例如,UP作为虚拟网元部署在X86服务器上,可以称为虚拟用户面(virtual user plane,vUP);又如,CP运行在X86服务器上,可以称为虚拟宽带网络网关控制平面(virtual broadband network gateway control plane,vBNG-CP),一个vBNG-CP可以管理多个pUP和vUP。In the second possible design, the CP and the UP can be virtual network elements. For example, the UP is deployed as a virtual network element on an X86 server, which can be called a virtual user plane (vUP); in another example, the CP runs On an X86 server, it can be called a virtual broadband network gateway control plane (vBNG-CP). One vBNG-CP can manage multiple pUPs and vUPs.
CP可以实现上述控制面网元的功能,例如,拨号协议管理、用户面管理、用户管理、地址管理和认证管理等。The CP can implement the functions of the above-mentioned control plane network elements, such as dialing protocol management, user plane management, user management, address management, and authentication management.
UP可以实现上述用户面网元的功能,例如,访问列表控制、路由管理、标签管理、转发管理和服务质量(quality of service,QoS)管理等。The UP can implement the functions of the above-mentioned user plane network elements, for example, access list control, routing management, label management, forwarding management, and quality of service (quality of service, QoS) management.
决策网元250可以包括SDN网元,SDN网元用于实现SDN控制器提供的功能,其可以实现SDN的流量控制功能。关于SDN控制器的具体功能和实现可以参考现有技术的阐述,本申请不予赘述。The decision-making network element 250 may include an SDN network element, and the SDN network element is used to implement the function provided by the SDN controller, which may implement the flow control function of the SDN. For the specific functions and implementation of the SDN controller, reference may be made to the description in the prior art, which will not be repeated in this application.
决策网元250还可以包括迁移网元,迁移网元用于实现用户面切换功能(user-plane selection funtion,USF)组件的功能,其可以接收控制面网元240发送的对应用户的接入线路信息。例如,该接入线路信息包括用户接入网络的接入网络设备(如,交换机或光线路终端)的标识(identity document,ID),用户使用的终端所处的VLAN信息,以及接入网络设备上的逻辑接口信息(如,接口的VLAN信息)等。The decision-making network element 250 may further include a migration network element, and the migration network element is used to implement the function of a user-plane selection function (USF) component, which can receive the access line of the corresponding user sent by the control plane network element 240 information. For example, the access line information includes the identification (identity document, ID) of the access network device (eg, switch or optical line terminal) used by the user to access the network, the VLAN information where the terminal used by the user is located, and the access network device Logical interface information on the interface (eg, VLAN information of the interface), etc.
作为一种可选的实施方式,控制面网元、SDN网元和迁移网元可以分别设置在不同的物理网络设备上,也可以设置在同一个物理网络设备上。本申请对SDN网元、决策网元和控制面网元的具体部署形态和部署位置不做限定。As an optional implementation manner, the control plane network element, the SDN network element, and the migration network element may be respectively set on different physical network devices, or may be set on the same physical network device. This application does not limit the specific deployment forms and deployment locations of the SDN network elements, the decision-making network elements, and the control plane network elements.
认证网元260用于实现认证服务器(radius server)提供的功能,例如,认证网元260可以实现用户拨号的验证和安全认证等功能。The authentication network element 260 is used to implement functions provided by an authentication server (radius server). For example, the authentication network element 260 can implement functions such as user dial-up verification and security authentication.
例如,如图2所示,第一用户通过终端发送拨号协议报文至接入网元210,并由切换 网元220通过第一隧道转发至第一用户面网元231,第一用户面网元231将该拨号协议报文发送到控制面网元240,认证网元260接收到控制面网元240转发的拨号协议报文后进行验证,确认该第一用户为合法用户,允许该终端设备上线。For example, as shown in FIG. 2, the first user sends a dial-up protocol packet to the access network element 210 through the terminal, and the switching network element 220 forwards it to the first user plane network element 231 through the first tunnel, and the first user plane network element 231. Element 231 sends the dial-up protocol message to the control plane network element 240, and the authentication network element 260 receives the dial-up protocol message forwarded by the control plane network element 240 and verifies it, confirms that the first user is a legitimate user, and allows the terminal device online.
图1和图2只是本申请实施例提供的示意图,该通信网络中还可以包括其它终端、网络设备和网元,在图1和图2中未画出。本申请的实施例对该通信网络中包括的网络设备、终端和网元的数量不做限定。FIG. 1 and FIG. 2 are only schematic diagrams provided by the embodiments of the present application, and the communication network may also include other terminals, network devices, and network elements, which are not shown in FIG. 1 and FIG. 2 . The embodiments of the present application do not limit the number of network devices, terminals, and network elements included in the communication network.
在目前的技术方案中,为了实现通信设备的数据传输和迁移,在通信设备接入切换网元的第一接口的状态下,即第一用户使用的通信设备通过第一隧道访问服务器,而通信设备还未从第一接口切换至第二接口时,第一用户面网元中的用户表项已经被删除,导致第一用户面网元无法继续使用用户表项来校验来自通信设备的数据包,第一用户面网元不会转发该数据包;且,由于终端还未接入第二接口,第二用户面网元无法接收到来自通信设备的数据包,导致服务器无法接收到来自通信设备的数据包,即用户侧流量丢失。In the current technical solution, in order to realize the data transmission and migration of the communication device, when the communication device is connected to the first interface of the switching network element, that is, the communication device used by the first user accesses the server through the first tunnel, and the communication When the device has not switched from the first interface to the second interface, the user entry in the first user plane network element has been deleted, so that the first user plane network element cannot continue to use the user entry to verify the data from the communication device packet, the first user plane network element will not forward the data packet; and, because the terminal has not yet connected to the second interface, the second user plane network element cannot receive the data packet from the communication device, so the server cannot receive the data packet from the communication device. The data packets of the device, that is, the user-side traffic is lost.
本申请实施例所述的通信设备可以是图1所示出的终端111~终端116和网络设备121中的任意一个。The communication device described in this embodiment of the present application may be any one of the terminals 111 to 116 and the network device 121 shown in FIG. 1 .
为了避免用户侧流量丢失和至少解决背景技术提出的不足,本申请实施例提供一种数据传输方法,该方法应用于通信网络,该方法包括:控制面网元获得第一指令后,跳过向第一用户面网元发出删除指令的步骤,并依据第一指令向第二用户面网元发送用户表项,该删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项。该第一指令用于指示控制面网元将终端设备的用户表项从第一用户面网元切换到第二用户面网元,该删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项,该用户表项用于校验通信设备向服务器发送的数据包。In order to avoid traffic loss on the user side and at least solve the deficiencies proposed in the background art, an embodiment of the present application provides a data transmission method, the method is applied to a communication network, and the method includes: after the control plane network element obtains the first instruction, skipping to The first user plane network element sends a deletion instruction, and sends a user entry to the second user plane network element according to the first instruction, and the deletion instruction is used to instruct the first user plane network element to delete the first user plane network element. User table entry. 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, and the deletion instruction is used to instruct the first user plane network element to delete the first user User entry on the plane network element, the user entry is used to verify the data packet sent by the communication device to the server.
本申请实施例提供的数据传输方法,由于第一用户面网元维护有用户表项,在通信设备接入第一接口的状态下,通信设备发送给服务器的数据包是由通信设备通过第一隧道发往了第一用户面网元,并由第一用户面网元根据用户表项将该数据包发往了服务器;服务器发送给通信设备的数据包是由服务器根据第一用户路由发往了第一用户面网元,并由第一用户面网元通过第一隧道发往了通信设备,该第一用户路由是由第一用户面网元发布的。亦即是说,在通信设备接入第一接口的状态下,第一用户面网元可以接收通信设备通过第一隧道发送的数据包;而控制面网元发送用户表项给第二用户面网元后,还未删除第一用户面网元维护的用户表项,第一用户面网元可以根据用户表项将该数据包发送至服务器,避免了用户侧流量丢失。In the data transmission method provided by this embodiment of the present application, since the first user plane network element maintains user entries, in the state that the communication device is connected to the first interface, the data packet sent by the communication device to the server is sent by the communication device through the first interface. The tunnel is sent to the first user plane network element, and the first user plane network element sends the data packet to the server according to the user entry; the data packet sent by the server to the communication device is sent by the server according to the first user route. The first user plane network element is sent to the communication device through the first tunnel by the first user plane network element, and the first user route is advertised 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 the control plane network element sends the user entry to the second user plane. After the network element is installed, the user table entry maintained by the first user plane network element has not been deleted, and the first user plane network element can send the data packet to the server according to the user table entry, thereby avoiding user-side traffic loss.
接下来,如图3所示,图3为本申请实施例提供的一种数据传输方法的流程示意图。在这里以图2所示出的通信网络包含的网元为例进行说明。假设通信设备接入了切换网元的第一接口,第一用户使用通信设备通过第一隧道接入网络,本申请实施例提供的数据传输方法包括以下步骤。Next, as shown in FIG. 3 , FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. Here, the network elements included in the communication network shown in FIG. 2 are used as an example for description. Assuming that the communication device is connected to the first interface of the switching network element, and the first user uses the communication device to access the network through the first tunnel, the data transmission method provided by the embodiment of the present application includes the following steps.
S301、通信设备向控制面网元发送用户拨号协议报文。S301. The communication device sends a user dialing protocol message to a control plane network element.
在一些实施例中,该用户拨号协议报文可以是基于动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)的扩展选项头(extension option header)实现用户认证的协议报文,即IPoE报文。In some embodiments, the user dialing protocol message may be a protocol message that implements user authentication based on an extension option header (extension option header) of the Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP), that is, an IPoE message.
在另一些实施例中,该用户拨号协议报文还可以是以太网上的点对点协议 (point-to-point protocol over ethernet,PPPoE)报文。In other embodiments, the user dialing protocol message may also be a point-to-point protocol over ethernet (point-to-point protocol over ethernet, PPPoE) message.
可以理解的,通信设备发送至服务器的数据报文或数据包可以经过接入网元的转发。例如,接入网元可以部署在ONT上,通信设备可以是台式计算机,台式计算机发送的数据包通过ONT和其他网络设备发送至服务器。虽然图2所示出的接入网元210并未在图3中画出,但是本领域技术人员应知,通信设备发送至服务器的数据报文或数据包都是可以由接入网元转发的。It can be understood that the data packet or data packet sent by the communication device to the server may be forwarded by the access network element. For example, the access network element can be deployed on the ONT, the communication device can be a desktop computer, and the data packets sent by the desktop computer are sent to the server through the ONT and other network devices. Although the access network element 210 shown in FIG. 2 is not shown in FIG. 3, those skilled in the art should know that the data packets or data packets sent by the communication device to the server can be forwarded by the access network element of.
在一种可能的情形中,通信设备发送至控制面网元的用户拨号协议报文可以是通信设备发送到接入网元,并由接入网元通过第一隧道向第一用户面网元发送该用户拨号协议报文,再由第一用户面网元向控制面网元发送的。In a possible situation, the user dialing protocol packet sent by the communication device to the control plane network element may be sent by the communication device to the access network element, and the access network element sends the message to the first user plane network element through the first tunnel. The user dialing protocol message is sent, and then sent by the first user plane network element to the control plane network element.
S302、控制面网元解析用户拨号协议报文获得用户账号。S302, the network element of the control plane parses the user dialing protocol packet to obtain the user account.
例如,该用户账号可以是用户名、用户标识(identity document,ID)等。示例的,该用户账号指示使用通信设备的用户为第一用户。For example, the user account may be a user name, a user identification (identity document, ID), and the like. Exemplarily, the user account indicates that the user who uses the communication device is the first user.
S303、控制面网元向认证网元发送用户账号。S303. The control plane network element sends the user account to the authentication network element.
该认证网元维护有每个用户账号的服务等级协议(service-level agreement,SLA)映射关系。SLA映射关系表征用户账号及其对应的SLA信息的对应关系。SLA信息可以包括分配给用户的最小带宽、用户带宽极限、单台服务器能同时服务的用户数目、拨入访问可用性和用户的流量优先权等。The authentication network element maintains a service-level agreement (SLA) mapping relationship of each user account. The SLA mapping relationship represents the correspondence between user accounts and their corresponding SLA information. SLA information can include the minimum bandwidth allocated to users, user bandwidth limits, the number of users that a single server can serve simultaneously, dial-in access availability, and user traffic priorities.
S304、认证网元向控制面网元发送与用户账号关联的SLA信息。S304. The authentication network element sends the SLA information associated with the user account to the control plane network element.
例如,认证网元可以在SLA映射关系中查找该用户账号对应的SLA信息,并将该SLA信息发送至控制面网元。示例的,该SLA信息包括第一用户的流量优先权,该流量优先权指示第一用户所使用的通信设备与访问的服务器(如图1所示出的服务器130)之间的数据包转发优先级。For example, the authentication network element may 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. Exemplarily, the SLA information includes the traffic priority of the first user, and the traffic priority indicates the priority of data packet forwarding between the communication device used by the first user and the accessed server (the server 130 shown in FIG. 1 ). class.
S305、控制面网元向决策网元转发SLA信息。S305. The control plane network element forwards the SLA information to the decision network element.
S306、决策网元向控制面网元发送第一指令。S306. The decision network element sends a first instruction to the control plane network element.
该第一指令指示转发通信设备与服务器之间的数据包的目标用户面网元。本实施例中,假设该第一指令指示目标用户面网元为第二用户面网元。The first instruction indicates a target user plane network element that forwards the data packet between the communication device and the server. In this embodiment, it is assumed that the first instruction indicates that the target user plane network element is the second user plane network element.
在第一种可能的设计中,决策网元维护有SLA信息与用户面网元的等级的对应关系。决策网元依据从控制面网元接收到的SLA信息和控制面网元生成第一指令。示例的,如图4所示,第一用户面网元的传输等级为第一等级,第二用户面网元和第三用户面网元的传输等级为第二等级。例如,传输等级可以是由第一用户的付费信息决定的,该付费信息可以是第一用户在计费周期内支付给ISP的付费金额,在ISP的计费周期更新后,付费信息指示第一用户在新的计费周期内的付费金额增加,认证网元更新了第一用户的SLA信息,决策网元确定更新后第一用户使用的通信设备对应的用户面网元更新为第二等级,则第一指令指示第一用户的目标用户面网元可以是处于第二等级中的任意一个用户面网元,如图4所示出的第二用户面网元和第三用户面网元。又如,付费信息指示第一用户在新的计费周期内的付费金额减少,则决策网元更新为等级比第一等级低的用户面网元。In the first possible design, the decision-making network element maintains the corresponding relationship between the SLA information and the level of the user plane network element. The decision network element generates the first instruction according to the SLA information received from the control plane network element and the control plane network element. Exemplarily, as shown in FIG. 4 , the transmission level of the first user plane network element is the first level, and the transmission levels of the second user plane network element and the third user plane network element are the second level. For example, the transmission level may be determined by the payment information of the first user, and the payment information may be the payment amount paid by the first user to the ISP during the billing cycle. After the billing cycle of the ISP is updated, the payment information indicates that the first user The amount paid by the user in the new billing cycle increases, the authentication network element updates the SLA information of the first user, and the decision network element determines that the user plane network element corresponding to the communication device used by the first user after the update is updated to the second level, The first instruction indicates that the target user plane network element of the first user may be any user plane network element in the second level, such as the second user plane network element and the third user plane network element as shown in FIG. 4 . For another example, the payment information indicates that the payment amount of the first user in the new charging period is reduced, and the decision-making network element is updated to a user plane network element with a lower level than the first level.
在第二种可能的设计中,决策网元还维护有通信网络中每个用户面网元的负载信息,该负载信息可以用于决策网元确定用户面网元是否处于过负载状态和用户面网元的时延信息等。决策网元依据通信网络的负载情况生成第一指令。例如,该负载信息可以包括用 户面网元的最大传输带宽、占用带宽和剩余带宽等信息,如图4所示,第一用户面网元的最大传输带宽为50兆比特,占用带宽为30兆比特,剩余带宽为20兆比特;第二用户面网元的最大传输带宽为100兆比特,占用带宽为10兆比特,剩余带宽为90兆比特;和第三用户面网元的最大传输带宽为100兆比特,占用带宽为70兆比特,剩余带宽为30兆比特。假设通信设备所需要的带宽为30兆比特,在一种实施例中,如使用“按需分配”的原则,第一指令指示第一用户的目标用户面网元为第三用户面网元;在另一种实施例中,如使用“最优性能”的原则,第一指令指示第一用户的目标用户面网元为第二用户面网元。In the second possible design, the decision network element also maintains the load information of each user plane network element in the communication network, and the load information can be used by the decision network element to determine whether the user plane network element is in an overloaded state and the user plane Delay information of network elements, etc. The decision-making network element generates the first instruction according to the load condition of the communication network. For example, the load information may include information such as the maximum transmission bandwidth, occupied bandwidth, and remaining bandwidth of the user plane network element. As shown in FIG. 4 , the maximum transmission bandwidth of the first user plane network element is 50 megabits, and the occupied bandwidth is 30 megabits. bit, the remaining bandwidth is 20 megabits; the maximum transmission bandwidth of the second user plane network element is 100 megabits, the occupied bandwidth is 10 megabits, and the remaining bandwidth is 90 megabits; and the maximum transmission bandwidth of the third user plane network element is 100 megabits, the occupied bandwidth is 70 megabits, and the remaining bandwidth is 30 megabits. Assuming that the bandwidth required by the communication device is 30 megabits, in an embodiment, if the principle of "assignment on demand" is used, the first instruction indicates that the target user plane network element of the first user is the third user plane network element; In another embodiment, using the principle of "optimal performance", the first instruction indicates that the target user plane network element of the first user is the second user plane network element.
在第三种可能的设计中,第一指令是决策网元依据第一用户的SLA信息和通信网络的负载情况生成的。例如,在ISP的计费周期更新后,第一用户的目标用户面网元调整为第二等级的用户面网元,由于第二等级的用户面网元中第二用户面网元的剩余带宽较大,则第一指令指示第一用户的目标用户面网元为第二用户面网元。In a third possible design, the first instruction is generated by the decision-making network element according to the SLA information of the first user and the load situation of the communication network. For example, after the billing cycle of the ISP is updated, the target user plane network element of the first user is adjusted to the user plane network element of the second level. Due to the remaining bandwidth of the second user plane network element in the user plane network element of the second level If the value is larger, the first instruction indicates that the target user plane network element of the first user is the second user plane network element.
上述示例仅为本申请提供的可能的实施方式,不代表对本申请的限定,例如,通信设备生成数据包时,决策网元还可以根据当前时间确定通信设备传输数据包的用户面网元。The above examples are only possible implementations provided by the present application, and do not represent limitations to the present application. For example, when a communication device generates a data packet, the decision-making network element may also determine the user plane network element of the communication device to transmit the data packet according to the current time.
S307、控制面网元根据第一指令向第二用户面网元发送用户表项。S307. The control plane network element sends the user entry to the second user plane network element according to the first instruction.
用户表项包括用户的用户信息,例如,该用户信息可以是第一用户所使用的通信设备的IP信息和MAC地址等。The user entry includes user information of the user, for example, the user information may be the IP information and MAC address of the communication device used by the first user.
用户表项可以用于校验通信设备发送至服务器的数据包。例如,第二用户面网元根据用户表项校验来自通信设备的数据包是否为合法用户发送的数据包,若来自通信设备的数据包是合法数据包,则第二用户面网元封装和转发该数据包。The user table entry can be used to verify the data packets sent by the communication device to the server. For example, the second user plane network element verifies whether the data packet from the communication device is a data packet sent by a legitimate user according to the user entry. If the data packet from the communication device is a legal data packet, the second user plane network element encapsulates and Forward the packet.
用户表项可以是控制面网元根据其维护的合法用户的用户信息生成的。例如,控制面网元中维护有合法用户的用户信息,若控制面网元接收到决策网元发送的第一指令,且控制面网元确认使用通信设备的第一用户为合法用户,则控制面网元发送用户表项至第二用户面网元,第二用户面网元可以根据用户表项校验来自通信设备的数据包是否合法。The user entry may be generated by the control plane network element according to the user information of the legitimate user maintained by the network element. For example, the user information of the legal user is maintained in the control plane network element. If the control plane network element receives the first instruction sent by the decision network element, and the control plane network element confirms that the first user using the communication device is a legal user, the control plane network element will control the The plane network element sends the user entry to the second user plane network element, and the second user plane network element can verify whether the data packet from the communication device is legal according to the user entry.
请继续参见图3,在第一条件下,即第二用户面网元接收到控制面网元发送的用户表项,通信设备接入了第一接口,但通信设备未接入第二接口的状态下,本申请实施例提供的数据传输方法还包括以下步骤。Please continue to refer to FIG. 3, under the first condition, that is, the second user plane network element receives the user entry sent by the control plane network element, the communication device is connected to the first interface, but the communication device is not connected to the second interface. In the state, the data transmission method provided by the embodiment of the present application further includes the following steps.
S308、通信设备向切换网元发送第一数据包。S308. The communication device sends the first data packet to the switching network element.
在本文中,第一数据包是指通信设备向服务器发送的数据包。Herein, the first data packet refers to a data packet sent by the communication device to the server.
S309、切换网元通过第一隧道向第一用户面网元发送第一数据包。S309. The switching network element sends the first data packet to the first user plane network element through the first tunnel.
由于在第一条件下,第一用户面网元还维护有第一用户的用户表项,切换网元可以通过第一隧道向第一用户面网元发送第一数据包,使得第一用户面网元可以依据该用户表项对第一数据包进行校验,并在校验成功后将第一数据包进行封装和转发。Because under the first condition, the first user plane network element also maintains the user 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 The network element may verify the first data packet according to the user entry, and encapsulate and forward the first data packet after the verification is successful.
S310、第一用户面网元向服务器发送第一数据包。S310. The first user plane network element sends a first data packet to the server.
因此,在第二用户面网元接收到控制面网元发送的用户表项、通信设备接入了第一接口但未接入第二接口的状态下,由于第一用户面网元维护有第一用户的用户表项,第一用户面网元可以利用第一隧道,继续接收来自通信设备的第一数据包(用户侧流量),第一用户面网元还可以根据用户表项确定该第一数据包为合法用户发送的数据包时,将该第一用户面网元发送到服务器,避免在数据传输过程中用户侧流量丢包。Therefore, when the second user plane network element receives the user entry sent by the control plane network element, and the communication device accesses the first interface but not the second interface, the first user plane network element maintains the first interface. A user entry of a user, the first user plane network element can use the first tunnel to continue to receive the first data packet (user side traffic) from the communication device, and the first user plane network element can also determine the first data packet according to the user entry. When a data packet is a data packet sent by a legitimate user, the first user plane network element is sent to the server to avoid packet loss on the user side during data transmission.
在一种可能的情形中,第二用户面网元接收到用户表项后,还可以发送一个响应消息 至控制面网元,以便控制面网元在接收到该响应消息后,通知决策网元启动接口切换的进程,该响应消息表征控制面网元已将用户表项发往了第二用户面网元。In a possible situation, after receiving the user entry, the second user plane network element may also send a response message to the control plane network element, so that the control plane network element notifies the decision network element after receiving the response message The interface switching process is started, and the response message indicates that the control plane network element has sent the user entry to the second user plane network element.
在目前的技术方案中,虽然第二用户面网元存储有控制面网元发送的第一用户的用户表项,但是第二用户面网元还未向服务器发布用户路由,使得服务器向通信设备发送数据包(网络侧流量)时,还是发送给第一用户面网元,而通信设备已经与第一隧道对应的第一接口断开,使得服务器发送给第一用户面网元的数据包无法传输到通信设备,导致网络侧流量丢包。In the current technical solution, although the second user plane network element stores the user entry of the first user sent by the control plane network element, the second user plane network element has not advertised the user route to the server, so that the server sends the communication device to the communication device. When sending data packets (network-side traffic), it is still sent to the first user plane network element, but the communication device has been disconnected from the first interface corresponding to the first tunnel, so that the data packets sent by the server to the first user plane network element cannot be It is transmitted to the communication device, resulting in packet loss on the network side.
在本申请实施例提供的数据传输方法中,第二用户面网元接收到控制面网元发送的用户表项后,通信设备还与第一接口连接,如图3所示,本申请实施例提供的数据传输方法还可以包括以下步骤。In the data transmission method provided by the embodiment of the present application, after the second user plane network element receives the user entry sent by the control plane network element, the communication device is further connected to the first interface, as shown in FIG. 3 , the embodiment of the present application The provided data transmission method may further include the following steps.
S311、第一用户面网元接收服务器发送的第二数据包。S311. The first user plane network element receives the second data packet sent by the server.
在本文中,第二数据包是指服务器向通信设备发送的数据包。Herein, the second data packet refers to a data packet sent by the server to the communication device.
S312、第一用户面网元向切换网元发送第二数据包。S312: The first user plane network element sends a second data packet to the switching network element.
该第二数据包是第一用户面网元通过第一隧道发送到切换网元的。The second data packet is sent by the first user plane network element to the switching network element through the first tunnel.
S313、切换网元向通信设备转发第二数据包。S313. The switching network element forwards the second data packet to the communication device.
由于第一用户面网元中还维护有第一用户的用户表项,服务器维护有第一用户面网元发布的第一用户路由,且切换网元还未删除通信设备与第一接口的绑定,服务器发送给通信设备的第二数据包依然由第一用户面网元进行封装和转发至切换网元,并由切换网元将服务器发送的第二数据包发送至通信设备,避免了服务器发送给通信设备的第二数据包的丢失,即,避免了在数据传输过程中网络侧流量的丢包。Because the first user plane network element also maintains the user entry of the first user, the server maintains the first user route advertised by the first user plane network element, and the switching network element has not yet deleted 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 second data packet sent by the server is sent by the switching network element to the communication device, avoiding the need for the server to The loss of the second data packet sent to the communication device, that is, the loss of the network-side traffic during the data transmission process is avoided.
为了实现通过第二用户面网元转发的数据包,本申请实施例提供一种可能的实施例,如图5所示,在第二用户面网元接收到控制面网元发送的用户表项后,通信设备接入了第一接口,但未接入第二接口的状态下,本申请实施例提供的数据传输方法还包括以下步骤。In order to realize the data packets forwarded by the second user plane network element, this embodiment of the present application provides a possible example. As shown in FIG. 5 , the second user plane network element receives the user entry sent by the control plane network element. After that, in a state where the communication device is connected to the first interface but not connected to the second interface, the data transmission method provided by the embodiment of the present application further includes the following steps.
S314、决策网元向切换网元发送第二指令。S314. The decision network element sends a second instruction to the switching network element.
决策网元依据第一用户的服务等级协议和/或通信网络的负载情况生成第二指令。例如,第二指令可以是控制面网元接收到决策网元发送的响应消息后,根据服务等级协议和通信网络的负载情况生成的。The decision-making network element generates the second instruction according to the service level agreement of the first user and/or the load condition of the communication network. For example, the second instruction may be generated according to the service level agreement and the load situation of the communication network after the control plane network element receives the response message sent by the decision network element.
第二指令是与第一指令对应的接口切换指令。例如,若第一指令指示第一用户的目标用户面网元为第二用户面网元,则第二指令指示通信设备接入第二隧道对应的第二接口。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, the second instruction instructs the communication device to access the second interface corresponding to the second tunnel.
又如,若第一指令指示第一用户的目标用户面网元为第三用户面网元,则第二指令指示通信设备接入第三隧道对应的第三接口。For another example, if the first instruction indicates that the target user plane network element of the first user is the third user plane network element, the second instruction instructs the communication device to access the third interface corresponding to the third tunnel.
在一种示例中,决策网元还维护有每个用户面网元对应的接口信息,该接口信息包括接口所在的物理端口以及接口的地址信息,示例的,假设上述接口同属于一个物理端口(如路由器的LAN口),则接口及其对应的地址信息如下表1所示。In an example, the decision-making network element also maintains interface information corresponding to each user plane network element, and the interface information includes the physical port where the interface is located and the address information of the interface. For example, it is assumed that the above-mentioned interfaces belong to the same physical port ( For example, the LAN port of the router), the interface and its corresponding address information are shown in Table 1 below.
表1Table 1
用户面网元序号User plane NE serial number 接口序号Interface serial number 地址信息Address information
第一用户面网元The first user plane network element 第一接口first interface 192.168.1.0/24192.168.1.0/24
第二用户面网元Second User Plane NE 第二接口second interface 192.168.2.0/24192.168.2.0/24
第三用户面网元third user plane network element 第三接口third interface 192.168.3.0/24192.168.3.0/24
本申请实施例以第二指令指示通信设备接入第二隧道对应的第二接口为例进行说明,但在另一种示例中,第二指令还可以指示切换网元将通信设备接入第二接口的一定时间(例如,5秒、8秒、10秒等)后,删除通信设备与第一接口的绑定。This embodiment of the present application is described by taking the second instruction instructing the communication device to access the second interface corresponding to the second tunnel as an example, but in another example, the second instruction may also instruct the switching network element to connect the communication device to the second interface. After a certain time (for example, 5 seconds, 8 seconds, 10 seconds, etc.) of the interface, the binding of the communication device to the first interface is deleted.
S315、切换网元依据第二指令将通信设备接入第二接口。S315. The switching network element connects the communication device to the second interface according to the second instruction.
例如,切换网元接收到第二指令后,依据第二指令确定第二接口的地址信息为“192.168.2.0/24”,并将第一用户的接口(例如,通信设备的VLAN口)绑定在该地址信息。For example, after receiving the second instruction, the switching network element determines that the address information of the second interface is "192.168.2.0/24" according to the second instruction, and binds the interface of the first user (for example, the VLAN port of the communication device) information at that address.
在第二用户面网元接收到控制面网元发送的用户表项,且通信设备接入了第二接口的状态下,如图5所示,在上述的S315之后,本申请实施例提供的数据传输方法还包括以下步骤。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 second interface, as shown in FIG. 5 , after the above S315, the embodiment of the present application provides The data transmission method further includes the following steps.
S316、通信设备向切换网元发送第一数据包。S316. The communication device sends the first data packet to the switching network element.
S317、切换网元通过第二隧道向第二用户面网元发送第一数据包。S317. The switching network element sends the first data packet to the second user plane network element through the second tunnel.
第二用户面网元可以依据该用户表项对第一数据包进行校验,并在校验成功后将第一数据包进行封装和转发。The second user plane network element may verify the first data packet according to the user entry, and encapsulate and forward the first data packet after the verification is successful.
S318、第二用户面网元向服务器发送第一数据包。S318. The second user plane network element sends the first data packet to the server.
在通信设备未接入第二接口的状态下,通信设备发送的第一数据包由第一用户面网元进行封装和转发;在通信设备接入了第二接口的状态下,通信设备发送的第一数据包由第二用户面网元进行封装和转发,使得通信设备发送给服务器的第一数据包不会因为用户面网元的切换而丢失,避免了用户侧流量丢包。由于第二用户面网元未向服务器发布用户路由,服务器发送给通信设备的第二数据包依然由第一用户面网元进行转发,避免了网络侧流量丢包,具体过程请参考上述S311~S313的相关阐述,此处不予赘述。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 The first data packet is encapsulated and forwarded by the second user plane network element, so that the first data packet sent by the communication device to the server will not be lost due to switching of the user plane network element, thereby avoiding user-side traffic packet loss. Since the second user plane NE does not advertise the user route to the server, the second data packet sent by the server to the communication device is still forwarded by the first user plane NE to avoid packet loss on the network side. For the specific process, please refer to the above S311~ The related description of S313 will not be repeated here.
在数据传输过程中,为了将转发第二数据包的用户面网元切换为第二用户面网元,控制面网元可以控制第二用户面网元向服务器发布用户路由,从而在用户面网元的切换过程中,避免网络侧流量丢包,这里以图5所示出的服务器通过转发设备与用户面网元进行通信为例说明。如图6所示,在上述的S318之后,本申请实施例提供的数据传输方法还包括以下步骤。In the data transmission process, 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 publish the user route to the server, so that the user plane network element can be used in the user plane network element. During the switching process of the element, to avoid packet loss on the network side, the server shown in FIG. 5 communicates with the user plane network element through the forwarding device as an example for illustration. As shown in FIG. 6 , after the above-mentioned S318, the data transmission method provided by the embodiment of the present application further includes the following steps.
S319、控制面网元向第二用户面网元发送路由发布指令。S319. The control plane network element sends a route advertisement instruction to the second user plane network element.
该路由发布指令可以是控制面网元与决策网元进行交互后,确认通信设备接入第二接口后发出的。示例的,在切换网元将通信设备接入第二接口后,切换网元可以发送一个响应信息(该响应信息指示通信设备接入了第二接口)给决策网元,以便决策网元在接收到该响应信息后与控制面网元交互,并由控制面网元发送路由发布指令。The route issuing instruction may be issued after the control plane network element interacts with the decision-making network element and confirms that the communication device is connected to the second interface. Exemplarily, after the switching network element connects the communication device to the second interface, the switching network element may send a response message (the response information indicates that the communication device has accessed the second interface) to the decision-making network element, so that the decision-making network element receives the second interface. After receiving the response information, it interacts with the network element of the control plane, and the network element of the control plane sends a route advertisement instruction.
该路由发布指令指示第二用户面网元发布到终端设备的路由。例如,该路由发布指令可以指示第二用户面网元向转发设备发布用户路由,该用户路由用于服务器确定第二数据包的转发路径。The route advertisement instruction instructs the second user plane network element to publish the route to the terminal device. For example, the route publishing instruction may instruct the second user plane network element to publish the user route to the forwarding device, where the user route is used by the server to determine the forwarding path of the second data packet.
S320、第二用户面网元依据路由发布指令向转发设备发布第二用户路由。S320. The second user plane network element publishes the second user route to the forwarding device according to the route publishing instruction.
该第二用户路由指示服务器确定第二数据包的转发路径。例如,该第二用户路由指示服务器将第二数据包发往第二用户面网元。The second user route instructs the server to determine the forwarding path of 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.
该转发设备可以是具有路由转发功能的设备,例如,路由器、交换机、服务器等。The forwarding device may be a device with a routing and forwarding function, such as a router, a switch, a server, and the like.
S321、服务器根据第二用户路由向第二用户面网元发送第二数据包。S321. The server sends the second data packet to the second user plane network element according to the second user route.
例如,在第二用户路由指示第二数据包由第二用户面网元进行封装和转发的状态下, 服务器根据用户路由将第二数据包发送至转发设备,并由转发设备将第二数据包转发至第二用户面网元。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 sends the second data packet to the forwarding device. Forwarded to the second user plane network element.
S322、第二用户面网元通过第二隧道向切换网元转发第二数据包。S322. The second user plane network element forwards the second data packet to the switching network element through the second tunnel.
示例的,由于切换网元通过第二接口建立了与第二用户面网元的第二隧道,且第二数据包中包括第一用户所使用的通信设备的地址信息,第二用户面网元可以根据该地址信息将第二数据包通过第二隧道发送至切换网元。Exemplarily, 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 The second data packet may be sent to the switching network element through the second tunnel according to the address information.
S323、切换网元向通信设备转发第二数据包。S323. The switching network element forwards the second data packet to the communication device.
由于通信设备接入了第二接口,切换网元通过第二隧道接收到第二数据包后,可以依据第二数据包中的地址信息将该第二数据包发送到通信设备。Because the communication device is connected to the second interface, after receiving the second data packet through the second tunnel, the switching network element can send the second data packet to the communication device according to the address information in the second data packet.
传统的技术方案中,在切换网元将通信设备从第一接口切换至第二接口,且第二用户面网元接收到控制面网元发送的用户表项的状态下,第二用户面网元可能还未发送新的用户路由(第二用户路由),服务器依旧根据原始的用户路由(第一用户路由)发送第二数据包,而第一用户路由指示第二数据包由第一用户面网元进行封装和转发,但是,切换网元已经删除了通信设备和第一接口的绑定,导致第一用户面网元无法将第二数据包发送到通信设备,发生网络侧流量丢包。In the traditional technical solution, 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 entry sent by the control plane network element, the second user plane network element The 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), and the first user route indicates that the second data packet is sent by the first user plane. The network element performs encapsulation and forwarding, but the switching network element has deleted the binding between the communication device and the first interface, so that the first user plane network element cannot send the second data packet to the communication device, resulting in packet loss on the network side.
相比之下,本申请实施例提供的数据传输方法,由于通信设备在接入第二接口的状态下,切换网元还未删除通信设备与第一接口的绑定,第一用户面网元可以继续接收服务器依据第一用户路由发送的第二数据包,第一用户面网元还可以依据第二数据包中的目的地址将第二数据包发送至通信设备;控制面网元还向第二用户面网元发送路由发布指令发送至第二用户面网元,以便第二用户面网元向转发设备发布第二用户路由后,第二数据包的转发网元从第一用户面网元切换至第二用户面网元,避免了网络侧流量丢包。In contrast, in the data transmission method provided by the embodiment of the present application, since the communication device is in the state of accessing the second interface, the switching network element has not yet deleted the binding between the communication device and the first interface, and the first user plane network element The second data packet sent by the server according to the route of the first user can continue to be received, and 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 the second data packet to the first user. The second user plane network element sends a route advertisement 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 is sent from the first user plane network element Switching to the second user plane NE avoids packet loss on the network side.
在第二数据包切换至第二用户面网元进行转发的状态下,通信设备发送至服务器的第一数据包是由第二用户面网元转发的,具体过程请参考上述S316~S318的相关阐述,不予赘述。In the state where 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 the specific process, please refer to the above S316-S318 related Explanation will not be repeated.
为了减少通信网络的负载,如图6所示,在切换网元将通信设备接入了第二接口,第二用户面网元向服务器发布了第二用户路由,且转发设备的路由表收敛的状态下,如图5所示,本申请实施例提供的数据传输方法还包括以下步骤。In order to reduce the load of the communication network, as shown in Figure 6, when the switching network element connects the communication device to the second interface, the second user plane network element advertises the second user route to the server, and the routing table of the forwarding device converges. In the state, as shown in FIG. 5 , the data transmission method provided by the embodiment of the present application further includes the following steps.
S324、控制面网元向第一用户面网元发出删除指令。S324. The control plane network element sends a deletion instruction to the first user plane network element.
该删除指令用于指示第一用户面网元删除所述第一用户面网元上的所述用户表项。The deletion instruction is used to instruct the first user plane network element to delete the user entry on the first user plane network element.
路由表收敛指通信网络的拓扑结构发生变化后,路由表从重新建立到发送再到学习直至稳定,并通告通信网络中所有相关设备都得知该变化的过程,也就是网络拓扑变化引起的通过重新计算路由而发现替代路由的行为。Routing table convergence refers to the process that after the topology of the communication network changes, the routing table is re-established, sent, learned, and stabilized, and all related devices in the communication network are notified of the change. The behavior of recomputing routes to discover alternative routes.
在本申请实施例提供的数据传输方法中,转发设备的路由表收敛为第二数据包的转发网元从第一用户面网元切换到第二用户面网元后,转发设备重新建立了服务器与第二用户面网元的数据传输路径的行为。In the data transmission method provided in the embodiment of the present application, after the routing table of the forwarding device converges to the switching of the forwarding network element of the second data packet from the first user plane network element to the second user plane network element, the forwarding device re-establishes the server Behavior of the data transmission path with the second user plane network element.
S325、第一用户面网元依据删除指令删除第一用户面网元存储的用户表项。S325: The first user plane network element deletes the user entry stored in the first user plane network element according to the deletion instruction.
第一用户面网元删除其存储的用户表项,减少了第一用户面网元所需要的维护的数据,有利于降低通信网络的负载,提高通信网络的数据传输效率。The first user plane network element deletes the stored user entry, which reduces the maintenance data required by the first user plane network element, which is beneficial to reduce the load of the communication network and improve the data transmission efficiency of the communication network.
为了避免通信设备接收到其他设备发送的无效数据,如带有病毒的数据包,请继续参 见图6,本申请实施例提供的数据传输方法还包括以下步骤。In order to prevent the communication device from receiving invalid data sent by other devices, such as data packets with viruses, please continue to refer to FIG. 6 , the data transmission method provided by the embodiment of the present application further includes the following steps.
S326、决策网元生成第三指令。S326. The decision network element generates a third instruction.
该第三指令指示切换网元断开通信设备与第一用户面网元对应的接口的连接。The third instruction instructs the switching network element to disconnect the communication device from the interface corresponding to the first user plane network element.
该第三指令是依据第一用户的服务等级协议和/或通信网络的负载情况确定的,其是与第一指令对应的接口切换指令。例如,在通信设备接入第一用户面网元的状态下,若第一指令指示第一用户的目标用户面网元为第二用户面网元,则第三指令指示通信设备断开第一隧道对应的第一接口。The third instruction is determined according to the service level agreement of the first user and/or the load condition of the communication network, and is an interface switching instruction corresponding to the first instruction. For example, when the communication device is connected to the first user plane network element, if the first instruction indicates that the target user plane network element of the first user is the second user plane network element, the third instruction instructs the communication device to disconnect the first user plane network element. The first interface corresponding to the tunnel.
S327、决策网元在预设的定时器超时后向切换网元发送第三指令。S327: The decision network element sends a third instruction to the switching network element after the preset timer expires.
上述的定时器可以是在决策网元向切换网元发送第二指令的时间开始计时,例如,5秒、10秒等,在达到预设时间后,决策网元向切换网元发送第三指令。The above-mentioned timer may start timing at the time when the decision-making network element sends the second instruction to the switching network element, for example, 5 seconds, 10 seconds, etc., after reaching the preset time, the decision-making network element sends the third instruction to the switching network element. .
作为一种可能的实现方式,决策网元包括迁移网元和SDN网元,针对于上述的S326和S327,其可以包括:迁移网元依据第一用户的服务等级协议和/或通信网络的负载情况生成第三指令,迁移网元在预设的定时器超时后向SDN网元发送第三指令,SDN网元向切换网元发送第三指令。As a possible implementation manner, the decision-making network element includes a migration network element and an SDN network element. For the above S326 and S327, it may include: the migration network element is based on the service level agreement of the first user and/or the load of the communication network In the case of generating a third instruction, the migration network element sends the third instruction to the SDN network element after the preset timer expires, and the SDN network element sends the third instruction to the switching network element.
S328、切换网元依据第三指令断开通信设备与第一接口的连接。S328. The switching network element disconnects the communication device from the first interface according to the third instruction.
第二指令和第三指令都是与第一指令对应的接口切换指令,本申请提供的上述实施例是将第二指令作为接口接入指令,将第三指令作为接口断开指令进行说明和阐述,在另一种示例中,第三指令可以合并在第二指令中,例如,合并后的第二指令指示切换网元将通信设备接入第二接口,并在一定时间(例如,5秒、8秒、10秒等)后,删除通信设备与第一接口的绑定。Both the second command and the third command are interface switching commands corresponding to the first command. In the above-mentioned embodiments provided in this application, the second command is used as the interface access command, and the third command is used as the interface disconnection command for description and elaboration. , in another example, the third instruction can be combined with the second instruction, for example, the combined second instruction instructs the switching network element to connect the communication device to the second interface, and within a certain time (for example, 5 seconds, After 8 seconds, 10 seconds, etc.), the binding between the communication device and the first interface is deleted.
为了避免网络侧流量丢包,本申请实施例还提供另一种可能的实现方式,即将通信设备接入切换网元的所有接口,并为通信设备设置免校验进程,该免校验进程指示通信设备对来自任何用户面网元的数据包都不进行校验,则服务器发送的第二数据包可以通过通信网络中的任意一个用户面网元进行转发,通信设备可以接收到任意一个用户面网元发送的数据包,也就避免了数据传输过程中的网络侧流量丢包。In order to avoid packet loss on the network side, the embodiment of the present application also provides another possible implementation manner, that is, the communication device is connected to all interfaces of the switching network element, and a verification-free process is set for the communication device, and the verification-free process indicates The communication device does not verify the data packets from any user plane network element, then the second data packet sent by the server can be forwarded by any user plane network element in the communication network, and the communication device can receive any user plane network element. The data packets sent by the network element also avoid packet loss on the network side during the data transmission process.
为了便于理解本申请的上述实施例提供的数据传输方法,在图2提供的通信网络的基础上,提供一种数据传输示意,如图7所示,其中实线箭头代表通信设备发送至服务器的数据包(第一数据包)的传输路径,虚线箭头代表服务器发送至通信设备的数据包(第二数据包)的传输路径,本申请的数据传输过程包括多种状态。In order to facilitate the understanding of the data transmission method provided by the above-mentioned embodiments of the present application, on the basis of the communication network provided in FIG. 2, a schematic diagram of data transmission is provided, as shown in FIG. The transmission path of the data packet (the first data packet), the dashed arrow represents the transmission path of the data packet (the second data packet) sent by the server to the communication device, and the data transmission process of this application includes various states.
第一种状态,即,在第二用户面网元接收到控制面网元发送的用户表项,通信设备接入了第一接口,但未接入第二接口的状态,如图7中的(a)所示,第一数据包和第二数据包都是经由第一用户面网元进行转发。具体过程请参考上述S308~S313的相关阐述,此处不予赘述。The first state, that is, 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 connected to the second interface, as shown in Figure 7 As shown in (a), both the first data packet and the second data packet are forwarded via the first user plane network element. For the specific process, please refer to the relevant descriptions of S308 to S313 above, which will not be repeated here.
第二种状态,即,在第二用户面网元接收到控制面网元发送的用户表项,通信设备接入了第二接口,第二用户面网元还未向外发布第二用户路由的状态,如图7中的(b)所示,第一数据包经由第二用户面网元进行转发,具体过程请参考上述S314~S318的相关阐述;第二数据包经由第一用户面网元进行转发,具体过程请参考上述S311~S313的相关阐述。The second state, that is, the second user plane network element receives the user entry sent by the control plane network element, the communication device is connected to the second interface, and the second user plane network element has not yet advertised the second user route. As shown in (b) in Figure 7, the first data packet is forwarded via the second user plane network element. For the specific process, please refer to the relevant explanations in the above S314 to S318; the second data packet is transmitted through the first user plane network element. For the specific process, please refer to the relevant descriptions of the above S311-S313.
第三种状态,即,在第二用户面网元接收到控制面网元发送的用户表项,通信设备接 入了第二接口,且第二用户面网元向外发布了第二用户路由的状态,如图7中的(c)所示,第一数据包和第二数据包都是经由第二用户面网元进行转发。具体过程请参考上述S316~S318和S321~S323的相关阐述,此处不予赘述。The third state, that is, the second user plane network element receives the user entry sent by the control plane network element, the communication device accesses the second interface, and the second user plane network element advertises the second user route to the outside world state, as shown in (c) in FIG. 7 , both the first data packet and the second data packet are forwarded via the second user plane network element. For the specific process, please refer to the relevant descriptions of the above S316-S318 and S321-S323, which will not be repeated here.
使用本申请实施例提供的数据传输方法,在数据传输过程中,无论是处于上述第一种状态~第三种状态中的任一种,第一数据包和第二数据包都有用户面网元进行转发,避免了用户侧流量丢包和网络侧流量丢包。Using the data transmission method provided by the embodiment of the present application, during the data transmission process, no matter in any of the above-mentioned first state to third state, the first data packet and the second data packet have a user plane network. Element forwarding, avoiding user-side traffic packet loss and network-side traffic packet loss.
上述实施例仅为本申请提供的一种可能的具体实现方式,不代表对本申请的限定,这里以图2所示出的控制面网元、第一用户面网元和第二用户面网元为例,如图8所示,图8为本申请实施例提供的另一种数据传输方法的流程示意图,该数据传输方法可以包括以下步骤。The above embodiment is only a possible specific implementation manner provided by the present application, and does not represent a limitation to the present application. Here, the control plane network element, the first user plane network element and the second user plane network element shown in FIG. 2 are used. For example, as shown in FIG. 8 , FIG. 8 is a schematic flowchart of another data transmission method provided by an embodiment of the present application, and the data transmission method may include the following steps.
S810、控制面网元获得第一指令。S810. The control plane network element obtains the first instruction.
在一种可能的情形下,该第一指令是依据第一用户的服务等级协议和/或通信网络的负载情况确定的,该用户表项用于校验终端设备向服务器发送的数据包,关于第一指令和用户表项的相关内容请参考上述S306~S307的相关阐述,不予赘述。In a possible situation, the first instruction is determined according to the service level agreement of the first user and/or the load of the communication network, and the user entry is used to verify the data packet sent by the terminal device to the server. For the relevant content of the first command and the user entry, please refer to the relevant descriptions of the above S306 to S307, which will not be repeated.
在另一种可能的情形下,该第一指令还可以是控制面网元为了维护第一用户面网元所生成的,例如,控制面网元确定第一用户面网元的工作时间较长,则生成第一指令,并发送用户表项至第二用户面网元,以将转发终端设备和服务器之间的数据包的用户面切换为第二用户面网元。In another possible situation, the first instruction may also be generated by the control plane network element in order to maintain the first user plane network element. For example, the control plane network element determines that the working time of the first user plane network element is relatively long. , the first instruction is generated, and the user entry is sent to the second user plane network element, so as to switch the user plane that forwards the data packets between the terminal device and the server to the second user plane network element.
作为一种可选的实现方式,该第一指令还可以是运营人员根据ISP网络的管理需求发出的,例如,该管理需求可以是关闭部署第一用户面网元的网络设备等。As an optional implementation manner, the first instruction may also be issued by the operator according to the management requirement of the ISP network, for example, the management requirement may be to shut down the network device on which the first user plane network element is deployed.
在上述的S810之后,控制面网元跳过向第一用户面网元发出删除指令的的步骤,执行S820。After the above S810, the control plane network element skips the step of sending a deletion instruction to the first user plane network element, and executes S820.
S820、控制面网元依据第一指令向第二用户面网元发送用户表项。S820. The control plane network element sends the user entry to the second user plane network element according to the first instruction.
上述的删除指令用于指示第一用户面网元删除第一用户面网元上的用户表项。The above deletion instruction is used to instruct the first user plane network element to delete the user entry on the first user plane network element.
在第一种可能的情形中,“控制面网元跳过向第一用户面网元发出删除指令”的含义可以理解为控制面网元在通信网络处于第一状态时,不向第一用户面网元发送删除指令。例如,该第一状态可以是控制面网元向第二用户面网元发送了用户表项,但终端设备未接入第二用户面网元对应的接口。In the first possible situation, the meaning of "the control plane network element skips sending the deletion instruction to the first user plane network element" can be understood as the control plane network element does not send the first user a message when the communication network is in the first state The plane network element sends a delete command. For example, the first state may be that the control plane network element sends the user entry to the second user plane network element, but the terminal device does not access the interface corresponding to the second user plane network element.
在第二种可能的情形中,“控制面网元跳过向第一用户面网元发出删除指令”的含义还可以理解为,控制面网元在通信网络从第一状态切换为第二状态后,控制面网元向第一用户面网元发送删除指令。例如,第二状态可以是控制面网元向第二用户面网元发送了用户表项,且确认终端设备接入了第二用户面对应的接口。又如,第二状态还可以是控制面网元确认终端设备发送给服务器的数据包由第二用户面网元进行转发,且第二用户面网元向外发布路由。又如,这里以服务器通过转发设备与用户面网元进行通信为例进行说明,第二状态还可以是控制面网元确认终端设备发送给服务器的数据包由第二用户面网元进行转发,第二用户面网元向外发布路由,且转发设备的路由表收敛。关于路由表收敛的内容请参考上述S324的相关阐述,不予赘述。In the second possible situation, the meaning of "the control plane network element skips sending the deletion instruction to the first user plane network element" can also be understood as that the control plane network element switches from the first state to the second state in the communication network Then, the control plane network element sends a deletion instruction to the first user plane network element. For example, the second state may be that the control plane network element sends the 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. For another example, the second state may also be that the control plane network element confirms that the data packet sent by the terminal device to the server is forwarded by the second user plane network element, and the second user plane network element advertises routes to the outside. For another example, the communication between the server and the user plane network element through the forwarding device is used as an example for description. The second state may also be that the control plane network element confirms that the data packet sent by the terminal device to the server is forwarded by the second user plane network element. The second user plane network element advertises routes to the outside, and the routing table of the forwarding device converges. For the content of the routing table convergence, please refer to the relevant description of the above S324, which will not be repeated.
在第三种可能的情形中,“控制面网元跳过向第一用户面网元发出删除指令”的含义还可以理解为,控制面网元在通信网络处于任意状态下,都不向第一用户面网元发送删除指 令。In the third possible situation, the meaning of "the control plane network element skips sending the deletion instruction to the first user plane network element" can also be understood as that the control plane network element does not send the third A user plane network element sends a delete instruction.
本申请实施例提供的数据传输方法,在通信设备接入了第一用户面网元对应的接口的状态下,第一用户面网元可以接收通信设备发送的数据包;而控制面网元发送用户表项到第二用户面网元的状态下,跳过了删除第一用户面网元维护的用户表项,使得第一用户面网元可以根据用户表项将该数据包发送至服务器,避免了用户侧流量丢失。In the data transmission method provided by the embodiment of the present application, in the state that the communication device is connected to the interface corresponding to the first user plane network element, the first user plane network element can receive the data packet sent by the communication device; and the control plane network element sends the data packet. When the user entry is in the state of the second user plane network element, the deletion of the user entry 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 entry. The traffic loss on the user side is avoided.
另外,由于服务器维护有第一用户面网元发布的第一用户路由,且通信设备还接入了第一用户面网元对应的接口,服务器根据第一用户路由向通信设备发送的第二数据包依然由第一用户面网元进行封装和转发,在切换网元接收到第一用户面网元转发的第二数据包后,切换网元向通信设备发送该第二数据包,避免了网络侧流量的丢包。In addition, since the server maintains the first user route advertised by the first user plane network element, and the communication device also accesses the interface corresponding to the first user plane network element, the server sends the second data to the communication device according to the first user route The packet 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, avoiding network Packet loss of side traffic.
可以理解的是,为了实现上述实施例中功能,网络设备包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to implement the functions in the foregoing embodiments, the network device includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the units and method steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software-driven hardware depends on the specific application scenarios and design constraints of the technical solution.
图9为本申请实施例提供的一种通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中网络设备或各个网元的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该通信装置900可以是如图1所示的网络设备121~网络设备123中的任意一个,也可以是服务器130,还可以是应用于网络设备的模块(如芯片)。FIG. 9 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application. These communication apparatuses can be used to implement the functions of the network device or each network element in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiment of the present application, the communication device 900 may be any one of the network devices 121 to 123 shown in FIG. 1 , the server 130 , or a module (such as a chip) applied to the network device. ).
如图9所示,通信装置900包括处理模块910和收发模块920。通信装置900用于实现上述图3、图5、图6或图8中所示的方法实施例中各个网元的功能。As shown in FIG. 9 , the communication apparatus 900 includes a processing module 910 and a transceiver module 920 . The communication apparatus 900 is configured to implement the functions of each network element in the method embodiment shown in FIG. 3 , FIG. 5 , FIG. 6 or FIG. 8 .
当通信装置900用于实现图3所示的方法实施例中控制面网元的功能时:收发模块920用于执行上述的S303、S305、S307;处理模块910用于执行上述的S302。When the communication device 900 is used to implement the function of the control plane network element in the method embodiment shown in FIG. 3 : the transceiver module 920 is used to execute the above S303, S305 and S307; the processing module 910 is used to execute the above S302.
当通信装置900用于实现图3所示的方法实施例中决策网元的功能时:收发模块920用于执行上述的S306。When the communication apparatus 900 is used to implement the function of the decision-making network element in the method embodiment shown in FIG. 3 , the transceiver module 920 is used to execute the above-mentioned S306.
上述步骤还在图5和图6中执行,后续不再赘述。The above steps are also performed in FIG. 5 and FIG. 6 , which will not be repeated in the following.
当通信装置900用于实现图5所示的方法实施例中控制面网元的功能时:收发模块920还用于执行上述的S314。When the communication apparatus 900 is used to implement the function of the control plane network element in the method embodiment shown in FIG. 5 , the transceiver module 920 is further configured to perform the above-mentioned S314.
当通信装置900用于实现图6所示的方法实施例中控制面网元的功能时:收发模块920用于执行上述的S319和S324。When the communication apparatus 900 is used to implement the function of the network element of the control plane in the method embodiment shown in FIG. 6 : the transceiver module 920 is used to execute the above-mentioned S319 and S324.
当通信装置900用于实现图6所示的方法实施例中决策网元的功能时:处理模块910还用于执行上述的S326,收发模块920还用于执行上述的S327。When the communication apparatus 900 is used to implement the function of the decision-making network element in the method embodiment shown in FIG. 6 , the processing module 910 is further configured to perform the above S326, and the transceiver module 920 is further configured to perform the above S327.
当通信装置900用于实现图8所示的方法实施例中控制面网元的功能时:处理模块910还用于执行上述的S810,收发模块920用于执行上述的S820。When the communication apparatus 900 is used to implement the function of the control plane network element in the method embodiment shown in FIG. 8 , the processing module 910 is further configured to execute the above S810, and the transceiver module 920 is configured to execute the above S820.
有关上述处理模块910和收发模块920更详细的描述可以直接参考上述图3、图5、图6或图8所示的方法实施例中相关描述直接得到,这里不加赘述。More detailed descriptions of the above processing module 910 and the transceiver module 920 can be obtained directly by referring to the relevant descriptions in the method embodiments shown in FIG. 3 , FIG. 5 , FIG. 6 or FIG. 8 , and details are not repeated here.
在一些情况下,通信装置900还可以实现上述切换网元、第一用户面网元、第二用户面网元、通信设备、转发设备和服务器的功能,具体描述可以直接参考上述图3、图5、图6或图8所示的方法实施例中相关描述直接得到,这里不加赘述。In some cases, the communication apparatus 900 may also implement the functions of the switching network element, the first user plane network element, the second user plane network element, the communication device, the forwarding device, and the server. 5. Relevant descriptions in the method embodiment shown in FIG. 6 or FIG. 8 can be obtained directly, and details are not repeated here.
图10为本申请实施例提供的一种网络设备的结构示意图,该网络设备1000包括处理 器1010和通信接口1020。处理器1010和通信接口1020之间相互耦合。可以理解的是,通信接口1020可以为收发器或输入输出接口。可选的,网络设备1000还可以包括存储器1030,用于存储处理器1010执行的指令或存储处理器1010运行指令所需要的输入数据或存储处理器1010运行指令后产生的数据。FIG. 10 is a schematic structural diagram of a network device according to an embodiment of the present 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 can be 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 input data required by the processor 1010 to run the instructions or data generated after the processor 1010 runs the instructions.
当网络设备1000用于实现图3、图5、图6或图8所示的方法时,处理器1010用于执行上述处理模块910的功能,通信接口1020用于执行上述收发模块920的功能。When the network device 1000 is used to implement the method shown in FIG. 3 , FIG. 5 , FIG. 6 or FIG. 8 , the processor 1010 is used to perform the function of the above-mentioned processing module 910 , and the communication interface 1020 is used to perform the function of the above-mentioned transceiver module 920 .
本申请实施例中不限定上述通信接口1020、处理器1010以及存储器1030之间的具体连接介质。本申请实施例在图10中以通信接口1020、处理器1010以及存储器1030之间通过总线1040连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 1020 , the processor 1010 , and the memory 1030 is not limited in the embodiments of the present application. In the embodiment of the present application, the communication interface 1020, the processor 1010, and the memory 1030 are connected through a bus 1040 in FIG. 10. The bus is represented by a thick line in FIG. 10, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
存储器1030可用于存储软件程序及模块,如本申请实施例所提供的数据传输方法对应的程序指令/模块,处理器1010通过执行存储在存储器1030内的软件程序及模块,从而执行各种功能应用以及数据处理。该通信接口1020可用于与其他设备进行信令或数据的通信。在本申请中该网络设备1000可以具有多个通信接口1020。The memory 1030 may be used to store software programs and modules, such as program instructions/modules corresponding to the data transmission methods provided in the embodiments of the present application. The processor 1010 executes various functional applications by executing the software programs and modules stored in the memory 1030. and data processing. The communication interface 1020 can be used for signaling or data communication with other devices. The network device 1000 may have multiple communication interfaces 1020 in this application.
其中,上述的存储器可以是但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Wherein, the above-mentioned memory may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), can Erasable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), Electrical Erasable Programmable Read-Only Memory (EEPROM), etc.
上述的处理器可以是一种集成电路芯片,具有信号处理能力。该处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above-mentioned processor may be an integrated circuit chip with signal processing capability. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、PROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于网络设备或终端设备中。当然,处理器和存储介质也可以作为分立组件存在于网络设备或终端设备中。The method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, PROM, EPROM, EEPROM, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium well known in the art . An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in a network device or in an end device. Of course, the processor and the storage medium may also exist in the network device or the terminal device as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令 可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part 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 the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media. The usable medium can be a magnetic medium, such as a floppy disk, a hard disk, and a magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (solid state drive). , SSD).
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, if there is no special description or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the contextual objects are in an "or" relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the sequence numbers of the above processes does not imply the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic.

Claims (16)

  1. 一种数据传输方法,其特征在于,应用于通信网络,所述通信网络包括第一用户面网元、第二用户面网元和控制面网元,所述控制面网元分别连接所述第一用户面网元和所述第二用户面网元,所述方法由所述控制面网元执行,所述方法包括:A data transmission method, characterized in that it is applied to a communication network, wherein the communication network includes a first user plane network element, a second user plane network element and a control plane network element, the control plane network elements are respectively connected to the first user plane network element. A user plane network element and the second user plane network element, the method is performed by the control plane network element, and the method includes:
    所述控制面网元获得第一指令,所述第一指令用于指示所述控制面网元将终端设备的用户表项从所述第一用户面网元切换到所述第二用户面网元;The control plane network element obtains a first instruction, where 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 Yuan;
    所述控制面网元跳过向所述第一用户面网元发出删除指令的步骤,并依据所述第一指令向所述第二用户面网元发送所述用户表项,所述删除指令用于指示所述第一用户面网元删除所述第一用户面网元上的所述用户表项。The control plane network element skips the step of sending a deletion instruction to the first user plane network element, and sends the user entry to the second user plane network element according to the first instruction, and the deletion instruction It is used to instruct the first user plane network element to delete the user entry on the first user plane network element.
  2. 根据权利要求1所述的方法,其特征在于,所述通信网络还包括切换网元和决策网元,所述决策网元分别连接所述控制面网元和所述切换网元,在所述控制面网元依据所述第一指令向所述第二用户面网元发送所述用户表项后,所述方法还包括:The method according to claim 1, wherein the communication network further comprises a handover network element and a decision-making network element, the decision-making network element is respectively connected to the control plane network element and the handover network element, and the decision network element is connected to the control plane network element and the handover network element respectively. After the control plane network element sends the user entry to the second user plane network element according to the first instruction, the method further includes:
    所述控制面网元通知所述决策网元向所述切换网元发送第二指令,所述第二指令指示所述切换网元将所述终端设备接入所述第二用户面网元对应的接口。The control plane network element notifies the decision network element to send a second instruction to the switching network element, where the second instruction instructs the switching network element to connect the terminal device to the second user plane network element corresponding to the Interface.
  3. 根据权利要求2所述的方法,其特征在于,在所述控制面网元通知所述决策网元发送所述第二指令后,所述方法还包括:The method according to claim 2, wherein after the control plane network element notifies the decision network element to send the second instruction, the method further comprises:
    所述控制面网元向所述第二用户面网元发送路由发布指令,所述路由发布指令指示所述第二用户面网元发布到所述终端设备的路由。The control plane network element sends a route advertisement instruction to the second user plane network element, where the route advertisement instruction instructs the second user plane network element to publish a route to the terminal device.
  4. 根据权利要求2或3所述的方法,其特征在于,在所述控制面网元通知所述决策网元发送所述第二指令后,所述方法还包括:The method according to claim 2 or 3, wherein after the control plane network element notifies the decision network element to send the second instruction, the method further comprises:
    所述控制面网元向所述第一用户面网元发出所述删除指令。The control plane network element sends the deletion instruction to the first user plane network element.
  5. 一种数据传输方法,其特征在于,应用于通信网络,所述通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,所述控制面网元分别连接所述决策网元、所述第一用户面网元和所述第二用户面网元,所述决策网元与所述切换网元连接,所述方法由所述决策网元执行,所述方法包括:A data transmission method, characterized in that it is applied to a communication network, wherein 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 The plane network element is respectively 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, and the method is performed by the decision network element. meta-execution, the method includes:
    所述决策网元依据服务等级协议和/或所述通信网络的负载情况生成第一指令,所述第一指令用于指示所述控制面网元将终端设备的用户表项从所述第一用户面网元切换到所述第二用户面网元;The decision-making network element generates a first instruction according to the service level agreement and/or the load condition of the communication network, where the first instruction is used to instruct the control plane network element to change the user entry of the terminal device from the first instruction. switching the user plane network element to the second user plane network element;
    所述决策网元向所述控制面网元发送所述第一指令;sending, by the decision network element, the first instruction to the control plane network element;
    在所述决策网元接收到所述第一指令的响应消息后,生成第二指令,所述响应消息表征所述控制面网元已将所述用户表项发往了所述第二用户面网元,所述第二指令用于指示所述切换网元将所述终端设备接入第二用户面网元对应的接口;After the decision-making network element receives the response message of the first instruction, a second instruction is generated, and the response message indicates that the control plane network element has sent the user entry to the second user plane a network element, where the second instruction is used to instruct the switching network element to access the terminal device to the interface corresponding to the second user plane network element;
    所述决策网元向所述切换网元发送所述第二指令。The decision network element sends the second instruction to the handover network element.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    所述决策网元生成第三指令,所述第三指令指示所述切换网元断开所述终端设备与所述第一用户面网元对应的接口的连接;generating, by the decision-making network element, a third instruction, where the third instruction instructs the switching network element to disconnect the terminal device from the interface corresponding to the first user plane network element;
    所述决策网元在预设的定时器超时后向所述切换网元发送所述第三指令。The decision-making network element sends the third instruction to the switching network element after a preset timer expires.
  7. 一种通信数据传输方法,其特征在于,应用于通信网络,所述通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,所述控制面网元分别连 接所述决策网元、所述第一用户面网元和所述第二用户面网元,所述决策网元与所述切换网元连接,所述方法包括:A communication data transmission method, characterized by being applied to a communication network, the communication network comprising 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 The control plane network element is respectively 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, and the method includes:
    所述决策网元,依据服务等级协议和/或所述通信网络的负载情况生成第一指令,以及,向所述控制面网元发送所述第一指令,所述第一指令用于指示所述控制面网元将终端设备的用户表项从所述第一用户面网元切换到所述第二用户面网元;The decision-making network element generates a first instruction according to the service level agreement and/or the load condition of the communication network, and sends the first instruction to the control plane network element, where the first instruction is used to indicate the the control plane network element switches 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 obtains the first instruction, skips the step of sending a deletion instruction to the first user plane network element, and sends the second user plane network element according to the first instruction User entry, the deletion instruction is used to instruct the first user plane network element to delete the user entry on the first user plane network element; after sending the user entry to the user interface according to the first instruction After the second user plane network element, send a response message to the decision-making network element, where the response message indicates that the control plane network element has sent the user entry to the second user plane network element;
    所述决策网元在接收到所述响应消息后,所述决策网元生成第二指令,向所述切换网元发送所述第二指令,所述第二指令用于指示所述切换网元将所述终端设备接入第二用户面网元对应的接口;After the decision-making network element receives the response message, the decision-making network element generates a second instruction, and sends the second instruction to the switching network element, where the second instruction is used to instruct the switching network element connecting 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.
  8. 根据权利要求7所述的方法,其特征在于,在所述控制面网元通知所述决策网元发送所述第二指令后,所述方法还包括:The method according to claim 7, wherein after the control plane network element notifies the decision network element to send the second instruction, the method further comprises:
    所述控制面网元向所述第二用户面网元发送路由发布指令,所述路由发布指令指示所述第二用户面网元发布到所述终端设备的路由。The control plane network element sends a route advertisement instruction to the second user plane network element, where the route advertisement instruction instructs the second user plane network element to publish a route to the terminal device.
  9. 根据权利要求7所述的方法,其特征在于,在所述控制面网元通知所述决策网元发送所述第二指令后,所述方法还包括:The method according to claim 7, wherein after the control plane network element notifies the decision network element to send the second instruction, the method further comprises:
    所述控制面网元向所述第一用户面网元发出所述删除指令。The control plane network element sends the deletion instruction to the first user plane network element.
  10. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    所述决策网元生成第三指令,所述第三指令指示所述切换网元断开所述终端设备与所述第一用户面对应的接口的连接;generating, by the decision network element, a third instruction, where the third instruction instructs the switching network element to disconnect the terminal device from the interface corresponding to the first user plane;
    所述决策网元在预设的定时器超时后向所述切换网元发送所述第三指令。The decision-making network element sends the third instruction to the switching network element after a preset timer expires.
  11. 一种通信网络,其特征在于,所述通信网络包括第一用户面网元、第二用户面网元、控制面网元、决策网元和切换网元,所述控制面网元分别连接所述决策网元、所述第一用户面网元和所述第二用户面网元,所述决策网元与所述切换网元连接;A communication network, characterized in that 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, and the control plane network elements are respectively connected to the the decision-making network element, the first user plane network element and the second user plane network element, the decision-making network element is connected to the handover network element;
    所述决策网元,用于依据服务等级协议和/或所述通信网络的负载情况生成第一指令,以及,向所述控制面网元发送所述第一指令,所述第一指令用于指示所述控制面网元将终端设备的用户表项从所述第一用户面网元切换到所述第二用户面网元;The decision-making network element is configured to generate a first instruction according to the service level agreement and/or the load condition of the communication network, and send the first instruction to the control plane network element, where the first instruction is used for instructing 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 is configured to obtain the first instruction, skip the step of sending a deletion instruction to the first user plane network element, and send the second user plane network element according to the first instruction For the user entry, the deletion instruction is used to instruct the first user plane network element to delete the user entry on the first user plane network element; after sending the user entry according to the first instruction After the entry is sent to the second user plane network element, the control plane network element is further configured to send a response message to the decision-making network element, where the response message indicates that the control plane network element has sent the user entry to the second user plane network element;
    所述决策网元,还用于在接收到所述响应消息后,生成第二指令,向所述切换网元发送所述第二指令,所述第二指令用于指示所述切换网元将所述终端设备接入第二用户面网 元对应的接口;The decision-making network element is further configured to generate a second instruction after receiving the response message, and send the second instruction to the switching network element, where the second instruction is used to instruct the switching network element to The terminal device accesses the interface corresponding to the second user plane network element;
    所述切换网元,用于依据所述第二指令将所述终端设备接入第二用户面网元对应的接口。The switching network element is configured to access the terminal device to the interface corresponding to the second user plane network element according to the second instruction.
  12. 根据权利要求11所述的通信网络,其特征在于,所述控制面网元,还用于向所述第二用户面网元发送路由发布指令,所述路由发布指令指示所述第二用户面网元发布到所述终端设备的路由。The communication network according to claim 11, wherein the control plane network element is further configured to send a route advertisement instruction to the second user plane network element, wherein the route advertisement instruction instructs the second user plane The route advertised by the network element to the terminal device.
  13. 根据权利要求11所述的通信网络,其特征在于,所述控制面网元,还用于向所述第一用户面网元发出所述删除指令。The communication network according to claim 11, wherein the control plane network element is further configured to send the deletion instruction to the first user plane network element.
  14. 根据权利要求11所述的通信网络,其特征在于,所述决策网元,还用于生成第三指令,所述第三指令指示所述切换网元断开所述终端设备与所述第一用户面对应的接口的连接;The communication network according to claim 11, wherein the decision-making network element is further configured to generate a third instruction, wherein the third instruction instructs the switching network element to disconnect the terminal device from the first The connection of the interface corresponding to the user plane;
    所述决策网元,还用于在预设的定时器超时后向所述切换网元发送所述第三指令。The decision-making network element is further configured to send the third instruction to the switching network element after a preset timer expires.
  15. 一种网络设备,其特征在于,包括:处理器和存储器,所述存储器用于存储计算机指令,当所述处理器执行该指令时,以使所述网络设备执行权利要求1-10中任一项所述的方法。A network device, characterized by comprising: a processor and a memory, the memory being used to store computer instructions, when the processor executes the instructions, the network device executes any one of claims 1-10 method described in item.
  16. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被网络设备执行时,实现权利要求1-10中任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program or instruction is stored in the storage medium, and when the computer program or instruction is executed by a network device, any one of claims 1-10 is implemented. method.
PCT/CN2021/137236 2021-01-21 2021-12-10 Data transmission method and apparatus WO2022156423A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110082610.0A CN114884875A (en) 2021-01-21 2021-01-21 Data transmission method and device
CN202110082610.0 2021-01-21

Publications (1)

Publication Number Publication Date
WO2022156423A1 true WO2022156423A1 (en) 2022-07-28

Family

ID=82548449

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137236 WO2022156423A1 (en) 2021-01-21 2021-12-10 Data transmission method and apparatus

Country Status (2)

Country Link
CN (1) CN114884875A (en)
WO (1) WO2022156423A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017214850A1 (en) * 2016-06-14 2017-12-21 华为技术有限公司 User context acquisition and lookup method, and related device
CN109150767A (en) * 2017-06-16 2019-01-04 华为技术有限公司 A kind of data packet sending method, device and equipment
CN109672549A (en) * 2017-10-16 2019-04-23 中兴通讯股份有限公司 Management method and device, gateway control veil member, communication system and storage medium
CN109691179A (en) * 2017-03-22 2019-04-26 华为技术有限公司 A kind of conversation shift method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017214850A1 (en) * 2016-06-14 2017-12-21 华为技术有限公司 User context acquisition and lookup method, and related device
CN109691179A (en) * 2017-03-22 2019-04-26 华为技术有限公司 A kind of conversation shift method and apparatus
CN109150767A (en) * 2017-06-16 2019-01-04 华为技术有限公司 A kind of data packet sending method, device and equipment
CN109672549A (en) * 2017-10-16 2019-04-23 中兴通讯股份有限公司 Management method and device, gateway control veil member, communication system and storage medium

Also Published As

Publication number Publication date
CN114884875A (en) 2022-08-09

Similar Documents

Publication Publication Date Title
US8971335B2 (en) System and method for creating a transitive optimized flow path
EP3151510B1 (en) Mac (l2) level authentication, security and policy control
EP3151509B1 (en) Enhanced evpn mac route advertisement having mac (l2) level authentication, security and policy control
USRE46195E1 (en) Multipath transmission control protocol proxy
CN107786613B (en) Broadband remote access server BRAS forwarding implementation method and device
US8077619B2 (en) Method for aggregating data traffic over an access domain and nodes therefor
US8325733B2 (en) Method and system for layer 2 manipulator and forwarder
US9998298B2 (en) Data transmission method, apparatus, and computer storage medium
US11824685B2 (en) Method for implementing GRE tunnel, access point and gateway
JP2008538885A (en) Method for managing service bindings on an access domain and access node
US20220408332A1 (en) Method for advertising route, network element, system, and device
CN108206772A (en) A kind of dispatching method, system and controller
WO2021218627A1 (en) Communication method and related device
US9154447B2 (en) System and method for stitching Ethernet networks
WO2022156423A1 (en) Data transmission method and apparatus
CN104410576A (en) Mixed type condition policy routing system and method
JP2013544453A (en) Pseudowire providing an in-band control channel with offset
JP7486597B2 (en) Dial-up packet processing method, network element, system, and network device
WO2021185253A1 (en) Dialing message processing method, network elements, system, and network device
JP6057345B2 (en) User terminal accommodating apparatus and method thereof
JP5624112B2 (en) Quality of service control in wireless local area networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21920797

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21920797

Country of ref document: EP

Kind code of ref document: A1