WO2021018242A1 - Data forwarding method, apparatus and system - Google Patents

Data forwarding method, apparatus and system Download PDF

Info

Publication number
WO2021018242A1
WO2021018242A1 PCT/CN2020/105821 CN2020105821W WO2021018242A1 WO 2021018242 A1 WO2021018242 A1 WO 2021018242A1 CN 2020105821 W CN2020105821 W CN 2020105821W WO 2021018242 A1 WO2021018242 A1 WO 2021018242A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
type
network element
interface
user plane
Prior art date
Application number
PCT/CN2020/105821
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 WO2021018242A1 publication Critical patent/WO2021018242A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Abstract

A data forwarding method, apparatus and system. The method comprises: after receiving a first data packet, a first user plane function network element firstly determining, according to a routing rule matching the first data packet, a first path type of a sending path used for forwarding the first data packet to other user plane function network elements, and the first path type comprises one or more of a loop interface type and a branch interface type; and the first user plane function network element then determining the sending path according to the first path type. When forwarding a data packet, a first user plane function network element can only forward the data packet by means of a transmission path of a specific path type, that is, when a certain transmission path is different from that of the specific path type, the first user plane function network element cannot forward the data packet from the transmission path, such that the problem of loop forwarding caused by the fact that a data packet is forwarded by means of all the transmission paths of a first user plane function network element can be avoided.

Description

一种数据转发方法、装置及系统Data forwarding method, device and system
相关申请的交叉引用Cross references to related applications
本申请要求在2019年07月30日提交中国专利局、申请号为201910696555.7、申请名称为“一种数据转发方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910696555.7, and the application name is "a data forwarding method, device, and system" on July 30, 2019. The entire content is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据转发方法、装置及系统。This application relates to the field of communication technology, and in particular to a data forwarding method, device and system.
背景技术Background technique
第五代移动通信系统局域网(5 th Generation local area network,5G LAN)服务是5G系统提供的一种服务,能够为属于同一LAN群组的终端提供互联网协议(internet protocol,IP)类型或者以太(ethernet)类型的私有通信。例如,某工厂中的设备组成一个LAN群组,属于这个LAN群组的设备之间可以相互发送以太数据包或者IP数据包。 Fifth-generation mobile communication system, a local area network (5 th Generation local area network, 5G LAN) service is a service provided by the system 5G, the terminal capable of belonging to the same group to provide Internet Protocol LAN (internet protocol, IP) or Ethernet type ( ethernet) type of private communication. For example, devices in a factory form a LAN group, and devices belonging to this LAN group can send Ethernet packets or IP packets to each other.
存在一种情况,构成5GLAN的多个用户面功能(user plane function,UPF)网元的组网架构可能是环形架构或者分支架构。这样,当在环形架构或者分支架构的5GLAN中发送广播数据时,可能会存在环路转发问题。There is a situation where the networking architecture of multiple user plane function (UPF) network elements constituting the 5GLAN may be a ring architecture or a branch architecture. In this way, when broadcast data is sent in a ring architecture or branch architecture 5GLAN, there may be a loop forwarding problem.
发明内容Summary of the invention
本申请实施例提供一种数据转发方法、装置及系统,用以解决环形架构或者分支架构的5GLAN中的环路转发问题。The embodiments of the present application provide a data forwarding method, device, and system to solve the loop forwarding problem in a 5G LAN with a ring architecture or a branch architecture.
第一方面,提供一种数据转发方法,在该方法中,第一用户面功能网元在接收第一数据包后,首先根据与该第一数据包匹配的路由规则,确定用于转发该第一数据包到其他用户面功能网元的发送路径的第一路径类型,该第一路径类型包括环路接口类型、分支接口类型中的一个或多个,然后,该第一用户面功能网元则根据该第一路径类型确定该发送路径。In a first aspect, a data forwarding method is provided. In this method, after receiving a first data packet, a first user plane function network element first determines to forward the first data packet according to a routing rule matching the first data packet. The first path type of the transmission path of a data packet to other user plane function network elements, the first path type includes one or more of loop interface type and branch interface type, and then, the first user plane function network element Then the sending path is determined according to the first path type.
在上述技术方案中,第一用户面功能网元在转发数据包时,只会将该数据包通过特定路径类型的传输路径转发,也就是说,当某一个传输路径与特定路径类型不同,则第一用户面功能网元不会从该传输路径转发该数据包,从而可以避免通过第一用户面功能网元的所有的传输路径转发数据包而造成的环路转发问题。In the above technical solution, when the first user plane function network element forwards a data packet, it will only forward the data packet through a transmission path of a specific path type, that is, when a certain transmission path is different from a specific path type, then The first user plane function network element does not forward the data packet from the transmission path, so that the loop forwarding problem caused by forwarding the data packet through all transmission paths of the first user plane function network element can be avoided.
在一种可能的设计中,当第一用户面功能网元从该第一用户面功能网元的至少一个传输路径中,确定路径类型为该第一路径类型的传输路径为该发送路径后,则通过该发送路径向其他用户面功能网元转发该第一数据包。In a possible design, after the first user plane function network element determines from at least one transmission path of the first user plane function network element that the transmission path whose path type is the first path type is the transmission path, Then, the first data packet is forwarded to other user plane function network elements through the transmission path.
在一种可能的设计中,当第一用户面功能网元确定该第一用户面功能网元的至少一个传输路径中不包括与该第一路径类型相同的传输路径,则第一用户面功能网元确定不转发该第一数据包。In a possible design, when the first user plane function network element determines that at least one transmission path of the first user plane function network element does not include a transmission path of the same type as the first path, the first user plane function The network element determines not to forward the first data packet.
在上述技术方案中,若第一用户面功能网元能够从第一用户面功能网元的至少一个传 输路径中确定与第一路径类型相同的传输路径,则通过该传输路径转发该数据包,否则,则不转发该数据包,从而可以避免通过第一用户面功能网元的所有的传输路径转发数据包而造成的环路转发问题。In the above technical solution, if the first user plane function network element can determine a transmission path of the same type as the first path from at least one transmission path of the first user plane function network element, the data packet is forwarded through the transmission path, Otherwise, the data packet is not forwarded, thereby avoiding the loop forwarding problem caused by forwarding the data packet through all transmission paths of the first user plane function network element.
在一种可能的设计中,该路由规则包括用于检测第一数据包的报文检测规则PDR或用于转发第一数据包的转发行为规则FAR。In a possible design, the routing rule includes a packet detection rule PDR for detecting the first data packet or a forwarding behavior rule FAR for forwarding the first data packet.
在上述方案中,第一数据包可以为目的地址为广播地址的数据包。由于目的地址为广播地址的数据包在转发过程中,出现环路转发的问题概率较大,因此,可以将该转发方法使用在目的地址为广播地址的数据包的转发场景中。In the above solution, the first data packet may be a data packet whose destination address is a broadcast address. Since the data packet whose destination address is the broadcast address has a higher probability of loop forwarding during the forwarding process, this forwarding method can be used in the forwarding scenario of the data packet whose destination address is the broadcast address.
在一种可能的设计中,该第一用户面功能网元可以首先根据路由规则中的PDR确定第一用户面功能网元接收该第一数据包的接收路径的第二路径类型,然后,根据该第二路径类型及预设的传输规则,确定该第一路径类型。In a possible design, the first user plane function network element may first determine the second path type of the receiving path for the first user plane function network element to receive the first data packet according to the PDR in the routing rule, and then, according to The second path type and the preset transmission rule determine the first path type.
在上述技术方案中,可以在第一用户面功能网元中存储预设的传输规则,从而可以通过PDR和预设的传输规则,提供了一种确定第一路径类型的方式。In the above technical solution, the preset transmission rule can be stored in the first user plane function network element, so that a method for determining the first path type can be provided through the PDR and the preset transmission rule.
在一种可能的设计中,若该PDR中包括接收路径的路径类型参数,则第一用户面功能网元根据该接收路径的路径类型参数的取值,确定该第二路径类型;或,In a possible design, if the PDR includes the path type parameter of the receiving path, the first user plane function network element determines the second path type according to the value of the path type parameter of the receiving path; or,
若该PDR中包括接收路径的隧道信息参数,则该第一用户面功能网元根据该接收路径的隧道信息参数的取值及该第一用户面功能网元的至少一个传输路径的路径类型,确定该第二路径类型。If the PDR includes the tunnel information parameter of the receiving path, the first user plane function network element is based on the value of the tunnel information parameter of the receiving path and the path type of at least one transmission path of the first user plane function network element, Determine the second path type.
在上述技术方案中,可以根据PDR中携带的参数的不同,采用不同的方式确定第二路径类型,可以增加方案的灵活性。In the above technical solution, the second path type can be determined in different ways according to different parameters carried in the PDR, which can increase the flexibility of the solution.
在一种可能的设计中,该预设的传输规则包括:In a possible design, the preset transmission rule includes:
若该接收路径的路径类型为该环路接口类型,则该发送路径的路径类型为该分支接口类型,以及,若该接收路径的路径类型为分支接口类型,则该发送路径的路径类型为该分支接口类型和该环路接口类型。If the path type of the receiving path is the loop interface type, the path type of the sending path is the branch interface type, and if the path type of the receiving path is the branch interface type, then the path type of the sending path is the The branch interface type and the loop interface type.
上述预设的传输规则只是一种示例,本领域技术人员也可以设置其他的传输规则,在此不作限制。The foregoing preset transmission rule is only an example, and those skilled in the art can also set other transmission rules, which are not limited here.
在一种可能的设计中,该第一用户面功能网元可以根据该路由规则中的FAR包括的发送路径的路径类型参数的取值,确定该第一路径类型。In a possible design, the first user plane function network element may determine the first path type according to the value of the path type parameter of the transmission path included in the FAR in the routing rule.
在上述技术方案中,第一用户面功能网元可以直接根据FAR中的参数确定第一路径类型,实现方式简单。In the above technical solution, the first user plane function network element can directly determine the first path type according to the parameters in the FAR, and the implementation method is simple.
在一种可能的设计中,该第一用户面功能网元可以从会话管理功能网元接收用于指示该第一用户面功能网元的至少一个传输路径的路径类型的第一指示。In a possible design, the first user plane function network element may receive a first indication for indicating the path type of at least one transmission path of the first user plane function network element from the session management function network element.
在上述技术方案中,该第一用户面功能网元的至少一个传输路径的路径类型是通过会话管理功能网元指示的,可以保证该至少一个传输路径的路径类型的准确性。In the above technical solution, the path type of the at least one transmission path of the first user plane function network element is indicated by the session management function network element, which can ensure the accuracy of the path type of the at least one transmission path.
在一种可能的设计中,该路由规则可以是该第一用户面功能网元从会话管理功能网元接收的。In a possible design, the routing rule may be received by the first user plane function network element from the session management function network element.
第二方面,提供一种数据转发方法,在该方法中,会话管理功能网元首先根据第一用户面功能网元的传输路径的路径类型以及预设的传输规则,生成与该第一用户面功能网元对应的一组路由规则,该传输路径的路径类型包括环路接口类型、分支接口类型中的一个或多个,该预设的传输规则包括若接收路径的路径类型为环路接口类型,则发送路径的路 径类型为分支接口类型,以及,若接收路径的路径类型为分支接口类型,则发送路径的路径类型为分支接口类型和环路接口类型。然后,该会话管理功能网元则将该一组路由规则发送给该第一用户面功能网元。In a second aspect, a data forwarding method is provided. In the method, a session management function network element first generates a data forwarding method based on the path type of the transmission path of the first user plane function network element and a preset transmission rule. A set of routing rules corresponding to the functional network element, the path type of the transmission path includes one or more of the loop interface type and the branch interface type, and the preset transmission rule includes if the path type of the receiving path is the loop interface type , The path type of the sending path is the branch interface type, and if the path type of the receiving path is the branch interface type, the path type of the sending path is the branch interface type and the loop interface type. Then, the session management function network element sends the set of routing rules to the first user plane function network element.
在上述技术方案中,会话管理功能网元在生成与第一用户面功能网元的路由规则时,已经考虑了该第一用户功能网元的每个传输路径的路径类型,例如,当第一用户面功能网元中的某一个传输路径的路径类型是环路接口类型,则与该传输路径对应的路由规则将指示将从该传输路径接收的数据包通过分支接口类型的传输路径转发,而不用通过环路接口类型的传输路径进行转发,这样,可以避免通过第一用户面功能网元的所有的传输路径转发数据包而造成的环路转发问题。In the above technical solution, when the session management function network element generates the routing rule with the first user plane function network element, it has considered the path type of each transmission path of the first user function network element, for example, when the first user function network element If the path type of a certain transmission path in the user plane function network element is the loop interface type, the routing rule corresponding to the transmission path will instruct the data packet received from the transmission path to be forwarded through the branch interface type transmission path, and There is no need to forward through the transmission path of the loop interface type. In this way, the problem of loop forwarding caused by forwarding data packets through all transmission paths of the first user plane function network element can be avoided.
在一种可能的设计中,一组路由规则包括用于检测第一数据包的报文检测规则PDR和用于转发该第一数据包的转发行为规则FAR。In a possible design, a set of routing rules includes a packet detection rule PDR for detecting the first data packet and a forwarding behavior rule FAR for forwarding the first data packet.
在一种可能的设计中,会话管理功能网元生成的与所述第一用户面功能网元对应的一组路由规则,可以包括但不限于如下两种方式:In a possible design, a set of routing rules corresponding to the first user plane function network element generated by the session management function network element may include but not limited to the following two methods:
第一种方式:The first way:
该一组路由规则包括,第一PDR,该第一PDR用于检测从第一N19路径接收的第一数据包,该第一用户面功能网元的传输路径包括该第一N19路径;以及,The set of routing rules includes a first PDR for detecting a first data packet received from a first N19 path, and the transmission path of the first user plane function network element includes the first N19 path; and,
与该第一PDR关联的第一FAR,该第一FAR包括第二N19路径的隧道信息,该第一用户面功能网元的传输路径包括该第二N19路径。A first FAR associated with the first PDR, where the first FAR includes tunnel information of a second N19 path, and the transmission path of the first user plane function network element includes the second N19 path.
具体来讲,若该第一N19路径的路径类型为环路接口类型,则该第二N19路径为该第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若该第一N19路径的路径类型为分支接口类型,则该第二N19路径为该第一用户面功能网元的传输路径中除该第一N19路径之外的其他N19路径。Specifically, if the path type of the first N19 path is a loop interface type, then the second N19 path is an N19 path whose path type is a branch interface type in the transmission path of the first user plane function network element. The path type of the first N19 path is a branch interface type, and the second N19 path is a N19 path other than the first N19 path in the transmission path of the first user plane function network element.
第二种方式:The second way:
该一组路由规则包括,第一PDR,该第一PDR用于检测从第一N19路径接收的该第一数据包,该第一用户面功能网元所包括的传输路径包括该第一N19路径;以及,The set of routing rules includes a first PDR for detecting the first data packet received from a first N19 path, and the transmission path included in the first user plane function network element includes the first N19 path ;as well as,
与该第一PDR关联的第一FAR,该第一FAR用于将该第一数据包转发到该第一用户面功能网元的内部接口,该第一FAR中包括传出接口的路径类型参数,其中,该传出接口的路径类型参数包括该环路接口类型或该分支接口类型;以及,A first FAR associated with the first PDR, the first FAR is used to forward the first data packet to the internal interface of the first user plane function network element, and the first FAR includes the path type parameter of the outgoing interface , Wherein the path type parameter of the outgoing interface includes the loop interface type or the branch interface type; and,
第二PDR,该第二PDR用于检测从该内部接口接收的该第一数据包,该第二PDR中包括传入接口的路径类型参数;以及,A second PDR, the second PDR is used to detect the first data packet received from the internal interface, and the second PDR includes the path type parameter of the incoming interface; and,
与该第二PDR关联的第二FAR,该第二FAR包括第二N19路径的隧道信息,该第一用户面功能网元的传输路径包括该第二N19路径,该第二N19路径是路径类型为该环路接口类型、该分支接口类型的传输路径中的一个或多个。A second FAR associated with the second PDR, the second FAR includes the tunnel information of the second N19 path, the transmission path of the first user plane function network element includes the second N19 path, and the second N19 path is a path type It is one or more of the transmission path of the loop interface type and the branch interface type.
具体来讲,若该第一N19路径的路径类型为环路接口类型,该传出接口的路径类型参数的取值为环路接口类型,若该第一N19路径的路径类型为分支接口类型,则该传出接口的路径类型参数的取值分支接口类型;以及,Specifically, if the path type of the first N19 path is a loop interface type, the value of the path type parameter of the outgoing interface is a loop interface type, and if the path type of the first N19 path is a branch interface type, Then the value of the path type parameter of the outgoing interface branch interface type; and,
若该传入接口的路径类型参数为环路接口类型,则该第二N19路径为该第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若该传入接口的路径类型参数为分支接口类型,则该第二N19路径为该第一用户面功能网元的传输路径中除该第一N19路径之外的其他N19路径。If the path type parameter of the incoming interface is a loop interface type, the second N19 path is the N19 path of the transmission path of the first user plane function network element whose path type is the branch interface type. The path type parameter is the branch interface type, and the second N19 path is the N19 path other than the first N19 path in the transmission path of the first user plane function network element.
在上述技术方案中,会话管理功能网元可以通过多种方式确定与第一用户面功能网元对应的一组路由规则,可以增加方案的灵活性。In the above technical solution, the session management function network element can determine a set of routing rules corresponding to the first user plane function network element in multiple ways, which can increase the flexibility of the solution.
在一种可能的设计中,该会话管理功能网元可以根据5G局域网LAN群组的用户面的网络拓扑接口,确定该第一用户面功能网元的传输路径的路径类型,该第一用户面功能网元属于所述5GLAN群组。In a possible design, the session management function network element may determine the path type of the transmission path of the first user plane function network element according to the network topology interface of the user plane of the 5G local area network LAN group, and the first user plane The functional network element belongs to the 5GLAN group.
在上述技术方案中,提供了一种会话管理功能网元确定传输路径的路径类型的方案。In the above technical solution, a solution is provided in which a session management function network element determines the path type of the transmission path.
第三方面,提供一种通信装置,该通信装置包括处理器,用于实现上述第一方面中第一用户面功能网元所执行的方法。该通信装置还可以包括存储器,用于存储程序指令和数据。该存储器与该处理器耦合,该处理器可以调用并执行该存储器中存储的程序指令,用于实现上述第一方面中第一用户面功能网元所执行的任意一种方法。该通信装置还可以包括收发器,该收发器用于该通信装置与其它设备进行通信。示例性地,该其它设备为会话管理功能网元。In a third aspect, a communication device is provided. The communication device includes a processor for implementing the method executed by the first user plane function network element in the first aspect. The communication device may also include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor can call and execute the program instructions stored in the memory to implement any method executed by the first user plane function network element in the first aspect. The communication device may also include a transceiver, and the transceiver is used for the communication device to communicate with other devices. Exemplarily, the other device is a network element with a session management function.
第四方面,本申请实施例提供一种通信装置,包括:收发单元,用于接收第一数据包;处理单元,用于根据与所述第一数据包匹配的路由规则,确定发送路径的第一路径类型,所述第一路径类型包括环路接口类型、分支接口类型中的一个或多个,所述发送路径用于转发所述第一数据包到其他用户面功能网元;以及,根据所述第一路径类型确定所述发送路径。In a fourth aspect, an embodiment of the present application provides a communication device, including: a transceiving unit, configured to receive a first data packet; and a processing unit, configured to determine the first transmission path according to a routing rule matching the first data packet A path type, the first path type includes one or more of a loop interface type and a branch interface type, and the transmission path is used to forward the first data packet to other user plane function network elements; and, according to The first path type determines the transmission path.
此外,第四方面所提供的通信装置可用于执行第一方面中第一用户面功能网元对应的方法,第四方面所提供的通信装置中未详尽描述的实现方式可参见前述实施例,此处不再赘述。In addition, the communication device provided in the fourth aspect can be used to execute the method corresponding to the first user plane function network element in the first aspect. For the implementation manners not described in detail in the communication device provided in the fourth aspect, refer to the foregoing embodiments. I won't repeat it here.
第五方面,提供一种通信装置,该通信装置包括处理器,用于实现上述第二方面中会话管理功能网元所执行的方法。该通信装置还可以包括存储器,用于存储程序指令和数据。该存储器与该处理器耦合,该处理器可以调用并执行该存储器中存储的程序指令,用于实现上述第二方面中会话管理功能网元所执行的任意一种方法。该通信装置还可以包括收发器,该收发器用于该通信装置与其它设备进行通信。示例性地,该其它设备为第一用户面功能网元。In a fifth aspect, a communication device is provided. The communication device includes a processor for implementing the method executed by the network element with the session management function in the second aspect. The communication device may also include a memory for storing program instructions and data. The memory is coupled with the processor, and the processor can call and execute program instructions stored in the memory to implement any method executed by the session management function network element in the second aspect. The communication device may also include a transceiver, and the transceiver is used for the communication device to communicate with other devices. Exemplarily, the other device is a first user plane function network element.
第六方面,本申请实施例提供一种通信装置,包括:处理单元,用于根据第一用户面功能网元的传输路径的路径类型以及预设的传输规则,生成与所述第一用户面功能网元对应的一组路由规则,所述传输路径的路径类型包括环路接口类型、分支接口类型中的一个或多个,所述预设的传输规则包括若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路径类型为所述分支接口类型和所述环路接口类型;收发单元,用于将所述一组路由规则发送给所述第一用户面功能网元。In a sixth aspect, an embodiment of the present application provides a communication device, including: a processing unit, configured to generate a connection with the first user plane according to the path type of the transmission path of the first user plane function network element and a preset transmission rule A set of routing rules corresponding to functional network elements, the path type of the transmission path includes one or more of a loop interface type and a branch interface type, and the preset transmission rule includes if the path type of the receiving path is The loop interface type, the path type of the transmission path is the branch interface type, and, if the path type of the receiving path is the branch interface type, the path type of the transmission path is the branch interface The type and the type of the loop interface; the transceiver unit is configured to send the set of routing rules to the first user plane function network element.
此外,第六方面所提供的通信装置可用于执行第二方面中会话管理功能网元对应的方法,第六方面所提供的通信装置中未详尽描述的实现方式可参见前述实施例,此处不再赘述。In addition, the communication device provided in the sixth aspect can be used to execute the method corresponding to the session management function network element in the second aspect. For the implementation modes not described in detail in the communication device provided in the sixth aspect, please refer to the foregoing embodiments. Repeat it again.
第七方面,本申请实施例中还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行第一方面中第一用户面功能网元或第二方面中会话管理功能网元执行的方法。In a seventh aspect, an embodiment of the present application also provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the first user plane function network element in the first aspect or the session in the second aspect The method of management function network element execution.
第八方面,本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上 运行时,使得计算机执行第一方面中第一用户面功能网元或第二方面中会话管理功能网元执行的方法。In an eighth aspect, the embodiments of the present application also provide a computer program product, including instructions, which when run on a computer, cause the computer to execute the first user plane function network element in the first aspect or the session management function in the second aspect The method performed by the network element.
第九方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现第一方面中第一用户面功能网元或第二方面中会话管理功能网元执行的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a ninth aspect, an embodiment of the present application provides a chip system. The chip system includes a processor and may also include a memory for implementing the first user plane function network element in the first aspect or the session management function network element in the second aspect. Meta implementation method. The chip system can be composed of chips, or can include chips and other discrete devices.
第十方面,本申请实施例提供了一种通信系统,所述系统包括第三方面以及第五方面所述的通信装置,或包括第四方面以及第六方面的通信装置。In a tenth aspect, an embodiment of the present application provides a communication system. The system includes the communication device described in the third aspect and the fifth aspect, or includes the communication device described in the fourth aspect and the sixth aspect.
上述第三方面至第十方面及其实现方式的有益效果可以参考对第一方面的方法及其实现方式或第一方面的方法及其实现方式的有益效果的描述。For the beneficial effects of the aforementioned third to tenth aspects and their implementation manners, reference may be made to the description of the method and implementation manners of the first aspect or the beneficial effects of the method and implementation manners of the first aspect.
附图说明Description of the drawings
图1为本申请适用的通信系统的一种示例的网络架构图;Figure 1 is a network architecture diagram of an example of a communication system to which this application applies;
图2为本申请适用的一种具体的网络架构示意图;Figure 2 is a schematic diagram of a specific network architecture applicable to this application;
图3A为本申请实施例的应用场景的一种示例的示意图;3A is a schematic diagram of an example of an application scenario of an embodiment of the application;
图3B为本申请实施例的应用场景的另一种示例的示意图;3B is a schematic diagram of another example of an application scenario of an embodiment of the application;
图4A为UPF网元内部转发流程的一种示例的流程图;FIG. 4A is a flowchart of an example of the forwarding process within the UPF network element;
图4B为UPF网元内部转发流程的另一种示例的流程图;4B is a flowchart of another example of the internal forwarding process of the UPF network element;
图5为本申请实施例中提供的数据转发方法的一种示例的流程图;FIG. 5 is a flowchart of an example of a data forwarding method provided in an embodiment of this application;
图6为本申请实施例中提供的数据转发方法的另一种示例的流程图;FIG. 6 is a flowchart of another example of a data forwarding method provided in an embodiment of this application;
图7为本申请实施例中提供的一种通信装置的结构示意图;FIG. 7 is a schematic structural diagram of a communication device provided in an embodiment of this application;
图8为本申请实施例中提供的另一种通信装置的结构示意图;FIG. 8 is a schematic structural diagram of another communication device provided in an embodiment of this application;
图9为本申请实施例中提供的另一种通信装置的结构示意图;FIG. 9 is a schematic structural diagram of another communication device provided in an embodiment of this application;
图10为本申请实施例中提供的另一种通信装置的结构示意图;FIG. 10 is a schematic structural diagram of another communication device provided in an embodiment of this application;
图11为本申请实施例提供的一种通信系统的示意性框图。FIG. 11 is a schematic block diagram of a communication system provided by an embodiment of this application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合说明书附图以及具体的实施方式对本申请实施例中的技术方案进行详细的说明。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementations.
请参考图1,为本申请适用的通信系统的一种示例的网络架构图。该网络架构中的网元包括终端、接入网(access network,AN)、核心网(Core)以及数据网络(data network,DN)。其中,接入网可以为无线接入网(radio access network,RAN)。在该网络架构中,终端、AN和Core是构成该网络架构的主要部分。对于AN和Core中的网元来说,从逻辑上可以分为用户面和控制面两部分,控制面负责移动网络的管理,用户面负责业务数据的传输。例如,在图1所示的网络架构中,NG2参考点位于RAN控制面和Core控制面之间,NG3参考点位于RAN用户面和Core用户面之间,NG6参考点位于Core用户面和DN之间。Please refer to FIG. 1, which is a network architecture diagram of an example of a communication system applicable to this application. The network elements in the network architecture include a terminal, an access network (AN), a core network (Core), and a data network (DN). The access network may be a radio access network (radio access network, RAN). In this network architecture, terminal, AN and Core are the main parts of this network architecture. For the network elements in AN and Core, they can be logically divided into user plane and control plane. The control plane is responsible for the management of the mobile network, and the user plane is responsible for the transmission of business data. For example, in the network architecture shown in Figure 1, the NG2 reference point is between the RAN control plane and the Core control plane, the NG3 reference point is between the RAN user plane and the Core user plane, and the NG6 reference point is between the Core user plane and the DN. between.
在图1所述的网络架构中,终端,又称之为终端设备(terminal equipment)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等,终端是一种具有无线收发功能的设备,是移动用户与网络交互的入口,能够提供基本 的计算能力,和存储能力,并向用户显示业务窗口、接收用户的输入操作。在5G通信系统中,终端会采用新空口技术与AN建立信号连接和数据连接,从而传输控制信号和业务数据到网络。In the network architecture described in Figure 1, the terminal is also called terminal equipment (terminal equipment), user equipment (UE), mobile station (MS), mobile terminal (mobile terminal, MT), etc. , A terminal is a device with wireless transceiving function, which is the portal for mobile users to interact with the network. It can provide basic computing capabilities and storage capabilities, display business windows to users, and receive user input operations. In the 5G communication system, the terminal will use the new air interface technology to establish a signal connection and data connection with the AN to transmit control signals and service data to the network.
终端可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。例如,该终端可以包括移动电话(或称为“蜂窝”电话),具有移动终端的计算机,便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,智能穿戴式设备等。例如,个人通信业务(personal communication service,PCS)电话、无绳电话、会话发起协议(session initiation protocol,SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、等设备。Terminals can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; they can also be deployed on the water (such as ships, etc.); they can also be deployed in the air (such as airplanes, balloons, and satellites, etc.). For example, the terminal may include a mobile phone (or "cellular" phone), a computer with a mobile terminal, portable, pocket-sized, handheld, computer-built or vehicle-mounted mobile devices, smart wearable devices, and so on. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (personal digital assistants, etc.) PDA), and other equipment.
或者,终端还可以包括受限设备,例如功耗较低的设备,或存储能力有限的设备,或计算能力有限的设备等。例如包括条码、射频识别(radio frequency identification,RFID)、传感器、全球定位系统(global positioning system,GPS)、激光扫描器等信息传感设备。Alternatively, the terminal may also include restricted devices, such as devices with low power consumption, or devices with limited storage capabilities, or devices with limited computing capabilities. Examples include barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), laser scanners and other information sensing equipment.
作为示例而非限定,在本申请实施例中,智能穿戴式设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。智能穿戴式设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。智能穿戴式设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义智能穿戴式设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能头盔、智能首饰等。As an example and not a limitation, in the embodiments of this application, smart wearable devices are the general term for using wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes Wait. A smart wearable device is a portable device that is directly worn on the body or integrated into the user's clothes or accessories. Smart wearable devices are not only a hardware device, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, smart wearable devices include full-featured, large-sized, complete or partial functions that can be realized without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, and need to cooperate with other devices such as smart phones. Use, such as various smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
或者,该终端还可以是虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(driverless)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。Alternatively, the terminal can also be a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in driverless, and a remote Wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, and smart homes Wireless terminals in
在图1所示的网络架构中,AN类似于传统通信网络里面的(无线)接入网((radio)access network,(R)AN)设备,例如包括基站(例如,接入点),部署在靠近终端的位置,为特定区域的授权用户提供入网功能,并能够根据用户的级别、业务的需求等确定不同质量的传输隧道来传输用户数据。AN能够管理并合理利用自身的资源,按需为终端提供接入服务,并负责把控制信号和业务数据在终端和Core之间转发。In the network architecture shown in Figure 1, AN is similar to the (radio) access network ((radio) access network, (R) AN) equipment in a traditional communication network, for example, it includes a base station (for example, an access point), and is deployed In a location close to the terminal, the network access function is provided for authorized users in a specific area, and transmission tunnels of different quality can be determined according to the user's level and service requirements to transmit user data. AN can manage and reasonably use its own resources, provide access services for terminals on demand, and be responsible for forwarding control signals and business data between the terminal and the Core.
在图1所示的网络架构中,Core负责维护移动网络的签约数据、管理移动网络的网元,并为终端提供会话管理、移动性管理、策略管理、安全认证等功能。例如,在终端附着的时候,为终端提供入网认证;在终端有业务请求时,为终端分配网络资源;在终端移动的时候,为终端更新网络资源;在终端空闲的时候,为终端提供快恢复机制;在终端去附着的时候,为终端释放网络资源;在终端有业务数据时,为终端提供数据路由功能,如转发上行数据到DN,或者从DN接收下行数据并转发到AN。In the network architecture shown in Figure 1, the Core is responsible for maintaining mobile network subscription data, managing the network elements of the mobile network, and providing the terminal with functions such as session management, mobility management, policy management, and security authentication. For example, when the terminal is attached, the terminal is provided with network access authentication; when the terminal has a service request, the terminal is allocated network resources; when the terminal is moving, the terminal is updated with network resources; when the terminal is idle, the terminal is provided with fast recovery Mechanism: When the terminal is detached, it releases network resources for the terminal; when the terminal has service data, it provides the terminal with data routing functions, such as forwarding uplink data to DN, or receiving downlink data from DN and forwarding to AN.
在图1所示的网络架构中,DN是为用户提供业务服务的数据网络。实际通信过程中,客户端通常位于终端,服务端通常位于DN。DN可以是私有网络,如局域网,也可以是不受运营商管控的外部网络,如Internet,还可以是运营商共同部署的专有网络,如提供IP多媒体网络子系统(IP multimedia core network subsystem,IMS)服务的网络。In the network architecture shown in Figure 1, DN is a data network that provides business services to users. In the actual communication process, the client is usually located at the terminal, and the server is usually located at the DN. The DN can be a private network, such as a local area network, or an external network that is not under the control of operators, such as the Internet, or a private network jointly deployed by operators, such as providing IP multimedia core network subsystem, IMS) service network.
请参考图2,为本申请适用的一种具体的网络架构示意图。该网络架构为5G网络架构。该5G架构中的网元包括终端、无线接入网(radio access network,RAN)和数据网络(data network,DN),图2中以终端为用户设备(user equipment,UE)为例。此外,该网络架构还包括核心网网元,核心网网元包括UPF网元和控制面功能网元。具体地,控制面功能网元包括但不限于接入和移动性管理功能(access and mobility management function,AMF)网元、SMF网元、认证服务器功能(authentication server function,AUSF)网元、应用功能(application function,AF)网元、统一数据管理(unified data management,UDM)网元、策略控制功能(policy control function,PCF)网元、网络开放功能网元(network exposure function,NEF)网元、NF存储库功能(NF repository function,NRF)网元和网络切片选择功能(network slice selection function,NSSF)网元。Please refer to FIG. 2, which is a schematic diagram of a specific network architecture applicable to this application. The network architecture is a 5G network architecture. The network elements in the 5G architecture include a terminal, a radio access network (RAN), and a data network (DN). In FIG. 2, the terminal is a user equipment (UE) as an example. In addition, the network architecture also includes core network elements, which include UPF network elements and control plane function network elements. Specifically, control plane function network elements include, but are not limited to, access and mobility management function (AMF) network elements, SMF network elements, authentication server function (authentication server function, AUSF) network elements, and application functions (application function, AF) network element, unified data management (unified data management, UDM) network element, policy control function (PCF) network element, network exposure function (NEF) network element, NF repository function (NF repository function, NRF) network element and network slice selection function (network slice selection function, NSSF) network element.
需要说明的是,在传统的核心网架构中,控制面功能网元之间采用点对点通信方式,即控制面功能网元之间的接口通信采用一套特定的消息,接口两端的控制面功能网元仅能使用这套特定的消息进行通信。而在5G核心网架构中,控制面采用服务化架构,即控制面功能网元之间的交互采用服务调用的方式,控制面功能网元会向其他控制面功能网元开放服务,供其他控制面功能网元调用。It should be noted that in the traditional core network architecture, the control plane functional network elements adopt a point-to-point communication method, that is, the interface communication between the control plane functional network elements adopts a set of specific messages, and the control plane functional network at both ends of the interface Yuan can only communicate using this specific set of messages. In the 5G core network architecture, the control plane adopts a service-oriented architecture, that is, the interaction between control plane functional network elements adopts the method of service invocation, and the control plane functional network element will open services to other control plane functional network elements for other control Face function network element call.
下面对图2所示的网络架构中各网元的功能进行详细介绍。由于UE、(R)AN以及DN的功能在图1所示网络架构的相关描述中已经介绍过,下面重点介绍各个核心网网元的功能。The function of each network element in the network architecture shown in FIG. 2 is described in detail below. Since the functions of UE, (R)AN, and DN have been introduced in the related description of the network architecture shown in FIG. 1, the following focuses on the functions of each core network element.
所述UPF网元是用户面的功能网元,主要负责连接外部网络,其包括了长期演进(long term evolution,LTE)的服务网关(serving gateway,SGW)和分组数据网网关(packet data networkgateway,PDN-GW)的相关功能。具体地,UPF可以根据SMF的路由规则执行用户数据包转发,如上行数据发送到DN或其他UPF;下行数据转发到其他UPF或者RAN。The UPF network element is a functional network element of the user plane, which is mainly responsible for connecting to external networks. It includes a long term evolution (LTE) serving gateway (SGW) and a packet data network gateway (packet data network gateway, PDN-GW) related functions. Specifically, the UPF can perform user data packet forwarding according to the routing rules of the SMF, for example, uplink data is sent to a DN or other UPF; downlink data is forwarded to another UPF or RAN.
所述AMF网元负责UE的接入管理和移动性管理,例如负责UE的状态维护、UE的可达性管理、非移动性管理接入层(mobility management non-access-stratum,MM NAS)消息的转发、会话管理(session management,SM)N2消息的转发。在实际应用中,AMF网元可实现LTE网络框架中MME里的移动性管理功能,还可实现接入管理功能。The AMF network element is responsible for the access management and mobility management of the UE, for example, the status maintenance of the UE, the reachability management of the UE, and the non-mobility management non-access-stratum (MM NAS) message The forwarding of session management (SM) N2 messages. In practical applications, the AMF network element can implement the mobility management function in the MME in the LTE network framework, as well as the access management function.
所述SMF网元负责会话管理,为UE的会话分配资源、释放资源;其中资源包括会话服务质量(quality of service,QoS)、会话路径、路由规则等。The SMF network element is responsible for session management, allocating resources for UE sessions, and releasing resources; the resources include session quality of service (QoS), session paths, routing rules, etc.
所述AUSF网元用于执行UE的安全认证。The AUSF network element is used to perform security authentication of the UE.
所述AF网元可以是第三方的应用控制平台,也可以是运营商部署的设备,所述AF网元可以为多个应用服务器提供服务。The AF network element may be a third-party application control platform, or a device deployed by an operator, and the AF network element may provide services for multiple application servers.
所述UDM网元可存储UE的签约信息。The UDM network element can store the subscription information of the UE.
所述PCF网元用于进行用户策略管理,类似于LTE中的策略与计费规则功能(policy and charging rules function,PCRF)网元,主要负责策略授权、服务质量以及计费规则的生成,并将相应规则通过SMF网元生成路由规则,下发至UPF网元,完成相应策略及规则的安装。The PCF network element is used for user policy management, similar to the policy and charging rules function (PCRF) network element in LTE, and is mainly responsible for the generation of policy authorization, service quality and charging rules, and The corresponding rules are generated through the SMF network element to generate routing rules and sent to the UPF network element to complete the installation of the corresponding policies and rules.
所述NEF网元用于以北向应用程序编程接口(application programming interface,API)的方式向第三方开放网络功能。The NEF network element is used to open network functions to third parties in the form of a northbound application programming interface (API).
所述NRF网元用于为其他网元提供网络功能实体信息的存储和选择功能。The NRF network element is used to provide storage and selection functions of network function entity information for other network elements.
所述NSSF网元用于为UE选择网络切片。The NSSF network element is used to select a network slice for the UE.
在图2所示的网络架构中SMF网元还用于对该群组中的UE进行局域网通信的管理。In the network architecture shown in FIG. 2, the SMF network element is also used to manage the local area network communication of the UE in the group.
其中,图2所示的网络架构中,与本申请有关的网元主要包括:UPF和SMF。Among them, in the network architecture shown in FIG. 2, the network elements related to this application mainly include: UPF and SMF.
下面,介绍本申请的应用场景。本申请主要应用于5G系统提供5GLAN服务的场景中。The following describes the application scenarios of this application. This application is mainly used in scenarios where 5G systems provide 5GLAN services.
请参考图3A,为本申请所涉及的5GLAN服务的用户面架构的一种示例的示意图。其中,UPF1~UPF4属于一个5GLAN。UE1~UE4分别通过一个RAN与5GLAN中的一个UPF网元连接。在图3A中,UE1与UPF1连接,UE2与UPF2连接,UE3和UPF3连接,UE4和UPF4连接,从而通过UPF网元接入到对应的5GLAN的用户面(user plane,UP)。5GLAN的用户面可以通过N6接口与DN之中现存的LAN相互通信。或者,5GLAN的用户面也可以通过该5GLAN中的各个UPF(例如UPF1~UPF4)之间的N19连接,关联不同UE的协议数据单元(protocol data unit session,PDU)会话(session),实现UE之间的私有通信。在图3A中,UPF1分别与UPF2和UPF4连接,UPF3分别与UPF2和UPF4连接,从而UPF1~UPF4构成一个环形架构。Please refer to FIG. 3A, which is a schematic diagram of an example of the user plane architecture of the 5GLAN service involved in this application. Among them, UPF1 to UPF4 belong to a 5GLAN. UE1 to UE4 are respectively connected to a UPF network element in the 5GLAN through a RAN. In FIG. 3A, UE1 is connected to UPF1, UE2 is connected to UPF2, UE3 is connected to UPF3, and UE4 is connected to UPF4, thereby accessing the corresponding user plane (UP) of the 5GLAN through the UPF network element. The user plane of 5GLAN can communicate with the existing LAN in the DN through the N6 interface. Alternatively, the user plane of the 5GLAN can also associate the protocol data unit (protocol data unit session, PDU) session (session) of different UEs through the N19 connection between each UPF (for example, UPF1 to UPF4) in the 5GLAN, so as to realize the UE's Private communication between. In Figure 3A, UPF1 is connected to UPF2 and UPF4, respectively, and UPF3 is connected to UPF2 and UPF4, respectively, so that UPF1 to UPF4 form a ring architecture.
请参考图3B,为本申请所涉及的5GLAN服务的用户面架构的另一种示例的示意图。与图3A不同的是,在图3B中,UPF1~UPF3构成一个环形架构,UPF4仅与UPF2连接,UPF4可以理解为UPF2的分支,从而UPF1~UPF4构成一个分支架构。Please refer to FIG. 3B, which is a schematic diagram of another example of the user plane architecture of the 5GLAN service involved in this application. The difference from FIG. 3A is that in FIG. 3B, UPF1 to UPF3 constitute a ring architecture, UPF4 is only connected to UPF2, and UPF4 can be understood as a branch of UPF2, and thus UPF1 to UPF4 constitute a branch architecture.
图3A和图3B中的UPF、RAN以及UE的数量只是举例,在实际应用中,本申请提供的5GLAN服务的用户面架构可以为更多个终端提供服务,且可以包括更多的UPF。此外,在如图3A和图3B所示的5GLAN服务的用户面架构中,尽管示出了UPF、UE以及DN,但5GLAN服务的用户面架构可以并不限于包括上述内容。例如,还可以包括SMF网元、PCF网元、用于承载虚拟化网络功能的设备、无线中继设备等。这些对于本领域普通技术人员而言是显而易见的,在此不一一详述。The numbers of UPF, RAN, and UE in FIG. 3A and FIG. 3B are just examples. In practical applications, the user plane architecture of the 5GLAN service provided by this application can provide services for more terminals and can include more UPFs. In addition, in the user plane architecture of the 5GLAN service as shown in FIG. 3A and FIG. 3B, although UPF, UE, and DN are shown, the user plane architecture of the 5GLAN service may not be limited to include the above content. For example, it may also include SMF network elements, PCF network elements, devices for carrying virtualized network functions, wireless relay devices, and so on. These are obvious to those of ordinary skill in the art, and will not be detailed here.
需要说明的是,本申请中的技术术语“5GLAN”,可以与“5G LAN-类型(type)服务”、“5G LAN-虚拟网络(virtual network,VN)”或者“5G VN”互换使用。It should be noted that the technical term "5GLAN" in this application can be used interchangeably with "5G LAN-type service", "5G LAN-virtual network (VN)" or "5G VN".
为了便于本领域技术人员理解本申请实施例的方案,下面对本申请所涉及的技术术语进行说明。To facilitate those skilled in the art to understand the solutions of the embodiments of the present application, the technical terms involved in the present application are described below.
1)N4会话,包括UE级别的N4会话和组(group)级别的N4会话。1) N4 sessions, including UE-level N4 sessions and group-level N4 sessions.
N4会话是由SMF网元在UPF网元上创建的。The N4 session is created by the SMF network element on the UPF network element.
作为一种示例,SMF网元可以在创建UE的协议数据单元(protocol data unit,PDU)会话(session)时,指示UPF网元创建与PDU会话对应的N4会话,也可以称为UE级别的N4会话(在本申请中UE级别的N4会话和与PDU会话对应的N4会话可以互换使用)。例如,在图3B中,UE1通过RAN1与UPF1连接,则SMF可以在创建UE1的PDU会话时,指示UPF1创建与UE1的PDU会话对应的N4会话。UE级别的N4会话中的路由规则可以用来检测并转发与此UE相关的数据。当SMF接收到删除该UE的PDU会话请求时,则触发UPF网元删除与该PDU会话对应的N4会话。As an example, the SMF network element may instruct the UPF network element to create an N4 session corresponding to the PDU session when creating a protocol data unit (PDU) session (session) of the UE, which may also be referred to as a UE-level N4 session. Session (in this application, the UE-level N4 session and the N4 session corresponding to the PDU session can be used interchangeably). For example, in FIG. 3B, UE1 is connected to UPF1 through RAN1, and SMF can instruct UPF1 to create an N4 session corresponding to the PDU session of UE1 when creating a PDU session of UE1. The routing rules in the UE-level N4 session can be used to detect and forward data related to this UE. When the SMF receives the request to delete the PDU session of the UE, it triggers the UPF network element to delete the N4 session corresponding to the PDU session.
为方便说明,在下文中将与PDU会话对应的N4会话通过“UE的标识”进行区分,例如,与UE1的PDU会话对应的N4会话可以称为UE1的N4会话,以此类推。For the convenience of description, the N4 session corresponding to the PDU session is distinguished by the “identity of the UE” in the following. For example, the N4 session corresponding to the PDU session of UE1 may be referred to as the N4 session of UE1, and so on.
为了支持在5GLAN服务中不同UPF网元之间的通信和UPF网元和DN之间的通信,SMF网元还需要在提供5GLAN服务的每个UPF网元为对应的5G VN组(或5GLAN)创建组级别的N4会话,该组级别的N4会话中的路由规则用来检测属于该5G VN组中的任 意一个UE的数据(可以理解为属于该5G VN组的数据)以及转发属于该5G VN组的数据,其中,转发属于该5G VN组的数据可以包括跨UPF网元(在一个5GLAN组的不同的UPF网元)进行转发,或者通过N6隧道进行转发或者本地转发。在本申请中群组对应的N4会话和隧道对应的N4会话可以理解为是组级别的N4会话。例如,在图3A中,UE1~UE4属于一个5GLAN,则SMF网元在每个UPF网元为此5GLAN创建一个组级别的N4会话。SMF网元在创建第一个建立到该5GLAN的PDU会话时,创建与该5GLAN对应的组级别的N4会话,以及在释放最后一个到该5GLAN的PDU会话时,删除与该5GLAN对应的组级别的N4会话。In order to support the communication between different UPF network elements and the communication between UPF network elements and DN in the 5GLAN service, the SMF network element also needs to be a corresponding 5G VN group (or 5GLAN) for each UPF network element that provides 5GLAN services. Create a group-level N4 session. The routing rules in the group-level N4 session are used to detect the data belonging to any UE in the 5G VN group (which can be understood as the data belonging to the 5G VN group) and forward the data belonging to the 5G VN Group data, where forwarding data belonging to the 5G VN group may include forwarding across UPF network elements (different UPF network elements in a 5G LAN group), or forwarding through an N6 tunnel or locally. In this application, the N4 session corresponding to the group and the N4 session corresponding to the tunnel can be understood as N4 sessions at the group level. For example, in FIG. 3A, UE1 to UE4 belong to a 5GLAN, and the SMF network element creates a group-level N4 session for this 5GLAN in each UPF network element. When the SMF network element creates the first PDU session to the 5GLAN, it creates a group-level N4 session corresponding to the 5GLAN, and when it releases the last PDU session to the 5GLAN, deletes the group level corresponding to the 5GLAN N4 session.
一个UPF网元可以包括一个或多个与PDU会话对应的N4会话,例如,多个UE与同一个UPF网元连接,则该UPF网元需创建与每个UE的PDU会话对应的N4会话。以及,一个UPF网元可以包括一个或多个组级别的N4会话。本申请不对N4会话的数量进行限制。A UPF network element may include one or more N4 sessions corresponding to PDU sessions. For example, if multiple UEs are connected to the same UPF network element, the UPF network element needs to create an N4 session corresponding to each UE's PDU session. And, one UPF network element may include one or more group-level N4 sessions. This application does not limit the number of N4 sessions.
2)路由规则,在N4会话的上下文中,用于检测数据包和转发数据包,包括上行链路报文检测规则(uplink packet detection rule,UL PDR)及与UL PDR关联的上行链路转发行为规则(UL forward action rule,UL FAR),下行链路报文检测规则(downlink PDR,DL PDR)及与DL PDR关联的DL FAR。其中,PDR(UL PDR和DL PDR)用于检测从外部传入UPF网元的数据或从UPF网元的内部接口转发的数据,FAR(UL FAR和DL FAR)用于指示UPF网元为检测到的数据执行转发,复制,缓冲,丢弃,通知等行为。SMF网元在指示UPF创建N4会话时,会为N4会话设置对应的路由规则。从外部传入的数据,可以理解为UPF网元通过GTP-U隧道或N6接口接收的数据。2) Routing rules, used to detect and forward data packets in the context of N4 sessions, including uplink packet detection rule (UL PDR) and uplink forwarding behavior associated with UL PDR Rules (UL forward action rule, UL FAR), downlink packet detection rules (downlink PDR, DL PDR), and DL FAR associated with DL PDR. Among them, PDR (UL PDR and DL PDR) is used to detect the data transmitted from the outside to the UPF network element or the data forwarded from the internal interface of the UPF network element, and FAR (UL FAR and DL FAR) is used to indicate that the UPF network element is detecting The received data is forwarded, copied, buffered, discarded, notified, etc. When the SMF network element instructs UPF to create an N4 session, it will set corresponding routing rules for the N4 session. The incoming data from the outside can be understood as the data received by the UPF network element through the GTP-U tunnel or the N6 interface.
针对与PDU会话对应的N4会话:For the N4 session corresponding to the PDU session:
UL PDR具体包括源接口参数,隧道信息参数。UL PDR specifically includes source interface parameters and tunnel information parameters.
与UL PDR关联的UL FAR包括目标接口参数,用于将与UL PDR匹配的数据包传入到目标接口。SMF将该目标接口参数的取值设置为UPF的内部接口对应的值(例如,为“5GLAN internal”)。可以理解为,与PDU会话对应的N4会话中的UL FAR用于将与该N4会话中的UL PDR匹配的数据包本地转发到UPF的内部接口。The UL FAR associated with the UL PDR includes target interface parameters, which are used to transmit data packets matching the UL PDR to the target interface. SMF sets the value of the target interface parameter to the value corresponding to the internal interface of the UPF (for example, "5GLAN internal"). It can be understood that the UL FAR in the N4 session corresponding to the PDU session is used to locally forward the data packet matching the UL PDR in the N4 session to the internal interface of the UPF.
DL PDR具体包括源接口参数,过滤器参数。The DL PDR specifically includes source interface parameters and filter parameters.
与DL PDR关联的DL FAR包括目标接口参数和/或外部隧道的参数,用于将与DL PDR匹配的数据包传出到目标接口。SMF网元将该目标接口参数的取值设置为“access side”或“core side”,以及外部隧道的参数的取值设置PDU会话的隧道信息(例如PDU会话在AN或UPF网元上的隧道头GTP-U TEID)。可以理解为,与PDU会话对应的N4会话中的DL FAR用于将与该N4会话中的DL PDR匹配的数据包传出到指定的PDU会话隧道。The DL FAR associated with the DL PDR includes target interface parameters and/or external tunnel parameters, and is used to transmit data packets matching the DL PDR to the target interface. The SMF network element sets the value of the target interface parameter to "access side" or "core side", and the value of the external tunnel parameter sets the tunnel information of the PDU session (for example, the tunnel of the PDU session on the AN or UPF network element Head GTP-U TEID). It can be understood that the DL FAR in the N4 session corresponding to the PDU session is used to transmit data packets matching the DL PDR in the N4 session to the designated PDU session tunnel.
针对组级别的N4会话:For group-level N4 sessions:
UL PDR具体包括源接口参数,过滤器参数。UL PDR specifically includes source interface parameters and filter parameters.
与UL PDR关联的UL FAR包括目标接口参数和/或外部隧道的参数,用于将与UL PDR匹配的数据包转发到该目标接口。SMF将该目标接口参数的取值设置为“core side”,以及外部隧道的参数的取值设置为N19隧道的信息(例如,与该UPF连接的对端UPF的隧道头GTP-U TEID)。可以理解为,该与组级别的N4会话中的UL FAR用于将与组级别的N4会话中的UL PDR匹配的数据包转发到该UPF与其他UPF连接的N19隧道。The UL FAR associated with the UL PDR includes target interface parameters and/or external tunnel parameters, and is used to forward data packets matching the UL PDR to the target interface. The SMF sets the value of the target interface parameter to "core side", and the value of the external tunnel parameter to the information of the N19 tunnel (for example, the tunnel header GTP-U TEID of the opposite UPF connected to the UPF). It can be understood that the UL FAR in the N4 session with the group level is used to forward data packets matching the UL PDR in the N4 session at the group level to the N19 tunnel connecting the UPF and other UPFs.
DL PDR具体包括源接口参数和/或隧道信息参数。The DL PDR specifically includes source interface parameters and/or tunnel information parameters.
与DL PDR关联的DL FAR包括目标接口参数,用于将与DL PDR匹配的数据包传出到目标接口。SMF该的目标接口参数的取值设置为UPF的内部接口对应的值(例如为“5GLAN internal”)。可以理解为,组级别的N4会话中的DL FAR用于将与组级别的N4会话中的DL PDR匹配的数据包本地转发到UPF的内部接口。The DL FAR associated with the DL PDR includes target interface parameters, which are used to transmit data packets matching the DL PDR to the target interface. The value of the target interface parameter of the SMF is set to the value corresponding to the internal interface of the UPF (for example, "5GLAN internal"). It can be understood that the DL FAR in the N4 session at the group level is used to locally forward data packets matching the DL PDR in the N4 session at the group level to the internal interface of the UPF.
3)数据包与PDR的匹配过程。3) The matching process between the data packet and the PDR.
当UPF网元接收一个数据包后,则会检测数据包,确定该数据包与PDR匹配(或者,可以称为将该数据包成功匹配到PDR,或者可以称为PDR成功匹配到数据包)。具体包括下述四种匹配过程:After the UPF network element receives a data packet, it will detect the data packet and determine that the data packet matches the PDR (or, it can be said that the data packet is successfully matched to the PDR, or it can be said that the PDR is successfully matched to the data packet). Specifically include the following four matching processes:
(1)根据传入数据包的PDU会话隧道信息,传入数据包的接口信息检测数据包,如果传入数据包的PDU会话隧道信息,传入数据包的接口信息,与与PDU会话对应的N4会话的UL PDR中的相应参数一一匹配,则该与PDU会话对应的N4会话的UL PDR成功匹配到该传入的数据包。(1) According to the PDU session tunnel information of the incoming data packet, the interface information of the incoming data packet detects the data packet, if the PDU session tunnel information of the incoming data packet, the interface information of the incoming data packet, and the corresponding PDU session The corresponding parameters in the UL PDR of the N4 session are matched one by one, and the UL PDR of the N4 session corresponding to the PDU session is successfully matched to the incoming data packet.
(2)根据传入数据包的接口信息,数据包的包头信息检测数据包,如果传入数据包的接口信息,数据包的包头信息,与与PDU会话对应的N4会话的DL PDR中的相应参数一一匹配,则该与PDU会话对应的N4会话的DL PDR成功匹配到传入的数据包。(2) Detect the data packet according to the interface information of the incoming data packet, the header information of the data packet, if the interface information of the incoming data packet, the header information of the data packet, and the corresponding in the DL PDR of the N4 session corresponding to the PDU session If the parameters are matched one by one, the DL PDR of the N4 session corresponding to the PDU session is successfully matched to the incoming data packet.
(3)根据传入数据包的接口信息,数据包的包头信息检测数据包。如果传入数据包的接口信息,数据包的包头信息与组级别的N4会话的UL PDR中的相应参数一一匹配,则该与组级别的N4会话的UL PDR成功匹配到传入数据包。(3) Detect the data packet based on the interface information of the incoming data packet and the header information of the data packet. If the interface information of the incoming data packet, the header information of the data packet and the corresponding parameters in the UL PDR of the group-level N4 session match one by one, the UL PDR of the group-level N4 session is successfully matched to the incoming data packet .
(4)根据传入数据包的接口信息,和/或传入数据包的N19隧道信息检测数据包。如果传入数据包的接口信息,和/或传入数据包的隧道信息,与组级别的N4会话的DL PDR中的相应参数一一匹配,则该与组级别的N4会话的DL PDR成功匹配到传入数据包。(4) Detect the data packet according to the interface information of the incoming data packet and/or the N19 tunnel information of the incoming data packet. If the interface information of the incoming data packet and/or the tunnel information of the incoming data packet match the corresponding parameters in the DL PDR of the group-level N4 session, the DL PDR of the group-level N4 session is successful Match to the incoming packet.
在具体实施过程中,UPF网元执行上述四种匹配过程中的其中一种或多种,以将该数据包匹配到PDR。In a specific implementation process, the UPF network element executes one or more of the above four matching processes to match the data packet to the PDR.
4)基于N4会话中的PDR和FAR转发数据包的流程。4) The process of forwarding data packets based on PDR and FAR in the N4 session.
请参考图4A~图4B,为基于PDR和FAR转发数据包的示意图。图4A和图4B中包括UPF1和UPF2,其中,UE1~UE2分别与UPF1连接,UE3与UPF2连接,UE1~UE3为一个5G VN组(group1)。UPF1中包括UE1的N4会话、UE2的N4会话以及group1的N4会话。Please refer to Figures 4A to 4B, which are schematic diagrams of forwarding data packets based on PDR and FAR. Figures 4A and 4B include UPF1 and UPF2. Among them, UE1 to UE2 are respectively connected to UPF1, UE3 is connected to UPF2, and UE1 to UE3 are a 5G VN group (group1). UPF1 includes the N4 session of UE1, the N4 session of UE2, and the N4 session of group1.
第一种转发流程,请参考图4A,为UPF网元内部转发流程:The first forwarding process, please refer to Figure 4A, which is the internal forwarding process of the UPF network element:
(1)UE1通过UE1的PDU会话发送数据包1。(1) UE1 sends data packet 1 through the PDU session of UE1.
(2)UPF1接收该数据包1,执行数据包与PDR的匹配过程,检测到该数据包1与UE1的N4会话的UL PDR匹配。(2) UPF1 receives the data packet 1, executes the matching process between the data packet and the PDR, and detects that the data packet 1 matches the UL PDR of the N4 session of UE1.
(3)UPF1获取与UE1的N4会话的UL PDR相关联的UL FAR,确定该FAR的目标接口为UPF1的内部接口,则将该数据包发送到UPF1的内部接口。(3) UPF1 obtains the UL FAR associated with the UL PDR of the N4 session of UE1, determines that the target interface of the FAR is the internal interface of UPF1, and sends the data packet to the internal interface of UPF1.
(4)UPF1接收通过内部接口传输的数据包,执行数据包与PDR的匹配过程,检测到该数据包与UE2的N4会话的DL PDR匹配。(4) UPF1 receives the data packet transmitted through the internal interface, performs the matching process between the data packet and the PDR, and detects that the data packet matches the DL and PDR of the N4 session of UE2.
(5)UPF1获取与UE2的N4会话的DL PDR相关联的DL FAR,确定UE2的PDU会话的隧道信息,则将该数据包发送到该UE2的PDU会话中,以使UE2通过该UE2的PDU会话接收该数据包。(5) UPF1 obtains the DL FAR associated with the DL PDR of the N4 session of UE2, determines the tunnel information of the PDU session of UE2, and sends the data packet to the PDU session of UE2 so that UE2 can pass the PDU of UE2 The session receives the packet.
第二种转发流程,请参考图4B,为跨UPF网元的转发流程:The second forwarding process, please refer to Figure 4B, which is the forwarding process across UPF network elements:
(1)UE1通过UE1的PDU会话发送数据包2。(1) UE1 sends data packet 2 through the PDU session of UE1.
(2)UPF1接收该数据包2,执行数据包与PDR的匹配过程,检测到该数据包2与UE1的N4会话的UL PDR匹配。(2) UPF1 receives the data packet 2, performs the matching process between the data packet and the PDR, and detects that the data packet 2 matches the UL PDR of the N4 session of the UE1.
(3)UPF1获取与UE1的N4会话的UL PDR相关联的UL FAR,确定该FAR的目标接口为UPF1的内部接口,则将该数据包2发送到UPF1的内部接口。(3) UPF1 obtains the UL FAR associated with the UL PDR of the N4 session of UE1, determines that the target interface of the FAR is the internal interface of UPF1, and sends the data packet 2 to the internal interface of UPF1.
(4)UPF1接收通过内部接口传输的数据包2,执行数据包2与PDR的匹配过程,检测到该数据包2与group1的N4会话的UL PDR匹配。(4) UPF1 receives data packet 2 transmitted through the internal interface, executes the matching process between data packet 2 and PDR, and detects that the data packet 2 matches the UL PDR of the N4 session of group1.
(5)UPF1获取与group1的N4会话的UL PDR相关联的UL FAR,确定UPF1和UPF2之间的N19隧道,则将该数据包2通过N19隧道发送给UPF2。(5) UPF1 obtains the UL FAR associated with the UL PDR of the N4 session of group1, determines the N19 tunnel between UPF1 and UPF2, and sends the data packet 2 to UPF2 through the N19 tunnel.
(6)UPF2接收通过N19隧道发送的数据包2,执行数据包2与PDR的匹配过程,检测该数据包2与group1的N4会话的DL PDR匹配。(6) UPF2 receives the data packet 2 sent through the N19 tunnel, executes the matching process between the data packet 2 and the PDR, and detects that the data packet 2 matches the DL and PDR of the N4 session of group1.
(7)UPF2获取与group1的N4会话的DL PDR相关联的DL FAR,确定该FAR的目标接口为UPF2的内部接口,则将该数据包2发送到UPF2的内部接口。(7) UPF2 obtains the DL FAR associated with the DL PDR of the N4 session of group1, determines that the target interface of the FAR is the internal interface of UPF2, and sends the data packet 2 to the internal interface of UPF2.
(8)UPF2接收通过内部接口传输的数据包2,执行数据包2与PDR的匹配过程,检测到该数据包2与UE3的N4会话的DL PDR匹配。(8) UPF2 receives the data packet 2 transmitted through the internal interface, performs the matching process between the data packet 2 and the PDR, and detects that the data packet 2 matches the DL and PDR of the N4 session of the UE3.
(9)UPF2获取与UE3的N4会话的DL PDR相关联的DL FAR,确定UE3的PDU会话的隧道信息,则将该数据包2发送到该UE3的PDU会话中,以使UE3通过该UE3的PDU会话接收该数据包2。(9) UPF2 obtains the DL FAR associated with the DL PDR of the N4 session of UE3, determines the tunnel information of the PDU session of UE3, and sends the packet 2 to the PDU session of UE3 so that UE3 can pass the UE3’s PDU session. The PDU session receives the data packet 2.
5)UPF的内部接口,是UPF网元中的虚拟端口或特定端口,用于UPF网元本地转发接收的数据包。其中,本地转发到UPF网元的内部接口,指UPF网元在内部接口重新接收该数据包,以使该数据包再次由UPF网元检测,从而分类匹配到相应的路由规则,转发到正确的路径。在重新检测之前,UPF网元可以为数据包解封外部隧道头。可选地,还可以为数据包重新封装上新的外部隧道头信息,新的隧道信息可以包括在路由规则的FAR中,或由UPF网元根据FAR中的转发指示信息生成。5) The internal interface of the UPF is a virtual port or a specific port in the UPF network element, which is used for the UPF network element to locally forward the received data packet. Among them, local forwarding to the internal interface of the UPF network element means that the UPF network element re-receives the data packet on the internal interface so that the data packet is detected by the UPF network element again, so that the classification matches the corresponding routing rule and forwards it to the correct path. Before rechecking, the UPF network element can decapsulate the external tunnel header for the data packet. Optionally, the data packet may be re-encapsulated with new external tunnel header information. The new tunnel information may be included in the FAR of the routing rule, or generated by the UPF network element according to the forwarding indication information in the FAR.
6)在本申请的描述中,“多个”是指两个或两个以上,鉴于此,本申请实施例中也可以将“多个”理解为“至少两个”。“至少一个”,可理解为一个或多个,例如理解为一个、两个或更多个。例如,包括至少一个,是指包括一个、两个或更多个,而且不限制包括的是哪几个,例如,包括A、B和C中的至少一个,那么包括的可以是A、B、C、A和B、A和C、B和C、或A和B和C。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。本申请实施例中的术语“系统”和“网络”可被互换使用。6) In the description of this application, "multiple" means two or more than two. In view of this, "multiple" can also be understood as "at least two" in the embodiments of this application. "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one refers to including one, two or more, and does not limit which ones are included. For example, including at least one of A, B, and C, then the included can be A, B, C, A and B, A and C, B and C, or A and B and C. "And/or" describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. In addition, the character "/", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship. The terms "system" and "network" in the embodiments of this application can be used interchangeably.
除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。Unless otherwise stated, the ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority, or importance of multiple objects.
此外,本申请实施例描述的5GLAN服务的用户面架构是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the user plane architecture of the 5GLAN service described in the embodiments of this application is to illustrate the technical solutions of the embodiments of this application more clearly, and does not constitute a limitation to the technical solutions provided in the embodiments of this application. Those of ordinary skill in the art will know that, With the evolution of the network architecture, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
下面介绍本申请实施例所涉及的技术特征。The technical features involved in the embodiments of this application are described below.
采用广播方式发送数据,是通信系统中会使用的一种数据发送方式。在5GLAN中, 可以根据业务需求,在5GLAN的用户面以广播方式发送数据,或者可以理解为在5GLAN的用户面传输广播数据。Sending data by broadcasting is a data sending method used in communication systems. In a 5G LAN, data can be sent in a broadcast manner on the user plane of the 5G LAN according to service requirements, or it can be understood as the transmission of broadcast data on the user plane of the 5G LAN.
以图3B所示的应用场景,对广播数据在5GLAN的用户面的传输过程进行说明。The application scenario shown in FIG. 3B is used to describe the transmission process of broadcast data on the user plane of the 5GLAN.
假设UPF1首先接收到广播数据,然后通过N19接口,将该广播数据发送给下一跳UPF,即UPF2和UPF3。为了使得该5GLAN中的所有的UPF均接收到该广播数据,则下一跳UPF在接收到该广播数据后,继续转发该广播数据,从而UPF2将广播数据发送到与其连接的下一跳UPF,即UPF3,UPF3也将该广播数据发送到与其连接的下一跳UPF,即UPF2和UPF4。这样,UPF2和UPF3会再次接收到该广播数据,然后继续转发给下一跳UPF,从而将该广播数据转发给UPF1,导致环路转发问题。Assume that UPF1 first receives the broadcast data, and then sends the broadcast data to the next hop UPF, namely UPF2 and UPF3 through the N19 interface. In order to make all UPFs in the 5GLAN receive the broadcast data, the next hop UPF will continue to forward the broadcast data after receiving the broadcast data, so that UPF2 will send the broadcast data to the next hop UPF connected to it. That is, UPF3 and UPF3 also send the broadcast data to the next hop UPF connected to it, namely UPF2 and UPF4. In this way, UPF2 and UPF3 will receive the broadcast data again, and then continue to forward it to the next hop UPF, thereby forwarding the broadcast data to UPF1, causing loop forwarding problems.
鉴于此,本申请实施例提供一种数据转发方法,用以解决环形架构或者分支架构的5GLAN中的环路转发问题。In view of this, an embodiment of the present application provides a data forwarding method to solve the loop forwarding problem in a 5G LAN with a ring architecture or a branch architecture.
下面将分两个实施例(即实施例一和实施例二)对本申请提供的一种数据转发方法进行介绍。其中,实施例一和实施例二的主要区别在于确定用于转发广播数据的接口的执行主体不同。在实施例一中,是由UPF网元确定用于转发广播数据的接口;而在实施例二中,是由SMF网元确定用于转发广播数据的接口。In the following, a data forwarding method provided in this application will be introduced in two embodiments (ie, Embodiment 1 and Embodiment 2). Among them, the main difference between the first embodiment and the second embodiment is that the execution subject of determining the interface for forwarding broadcast data is different. In the first embodiment, the UPF network element determines the interface used to forward the broadcast data; and in the second embodiment, the SMF network element determines the interface used to forward the broadcast data.
需要说明的是,在本申请实施例中,会话管理功能网元为SMF网元,第一用户面功能网元为UPF网元。其中,第一用户面功能网元可以为如图3A或图3B中所示的多个UPF网元中的一个UPF网元。另外,UPF网元、SMF网元在实际应用中可以作为独立的物理功能实体或者逻辑功能实体,在此不作限制。It should be noted that, in this embodiment of the application, the session management function network element is an SMF network element, and the first user plane function network element is a UPF network element. The first user plane function network element may be one of the multiple UPF network elements shown in FIG. 3A or FIG. 3B. In addition, the UPF network element and the SMF network element can be used as independent physical function entities or logical function entities in practical applications, and there is no restriction here.
实施例一Example one
请参考图5,为本申请实施例提供的一种数据转发方法的流程图,该流程图的描述如下:Please refer to FIG. 5, which is a flowchart of a data forwarding method provided by an embodiment of this application. The description of the flowchart is as follows:
S501、SMF网元确定UPF网元之间的N19接口的路径类型。S501. The SMF network element determines the path type of the N19 interface between UPF network elements.
在本申请实施例中,UPF网元之间的N19接口的路径类型包括但不限于如下两种类型。In the embodiment of this application, the path types of the N19 interface between UPF network elements include but are not limited to the following two types.
第一种类型,环路接口类型。The first type is the loop interface type.
作为一种示例,在图3A中,UPF1~UPF4形成一个环形,则UPF1~UPF4中任意两个UPF网元之间的N19接口(例如,UPF1和UPF2之间的N19接口,UPF2和UPF3之间的N19接口等)的路径类型为环路接口类型。As an example, in Figure 3A, UPF1 ~ UPF4 form a ring, then the N19 interface between any two UPF network elements in UPF1 ~ UPF4 (for example, the N19 interface between UPF1 and UPF2, and between UPF2 and UPF3 The path type of the N19 interface, etc.) is the loop interface type.
作为另一种示例,在图3B中,UPF1~UPF3形成一个环形,则UPF1~UPF3中任意两个UPF网元之间的N19接口的路径类型为环路接口类型。As another example, in FIG. 3B, UPF1 to UPF3 form a ring, and the path type of the N19 interface between any two UPF network elements in UPF1 to UPF3 is a loop interface type.
可以理解为,形成环形的多个UPF网元中,任意两个相邻的UPF网元之间的N19接口的路径类型为环路接口类型。It can be understood that, among the multiple UPF network elements forming a ring, the path type of the N19 interface between any two adjacent UPF network elements is a loop interface type.
第二种类型,分支接口类型。The second type is the branch interface type.
作为一种示例,在图3B中,UPF4仅与UPF2连接,UPF4没有与其他的UPF网元形成环形,因此,UPF4可以理解为由UPF1~UPF3所形成的环形的一个分支,从而,UPF4与其连接的UPF网元(即UPF2)之间的N19接口的路径类型为分支接口类型。As an example, in Figure 3B, UPF4 is only connected to UPF2, and UPF4 does not form a ring with other UPF network elements. Therefore, UPF4 can be understood as a branch of the ring formed by UPF1 to UPF3, and thus UPF4 is connected to it The path type of the N19 interface between the UPF network elements (ie UPF2) is the branch interface type.
可以理解为,分支UPF网元与其连接的UPF网元之间的N19接口的路径类型为分支接口类型。It can be understood that the path type of the N19 interface between the branch UPF network element and the UPF network element connected to it is the branch interface type.
在一种可能的实施方式中,SMF网元可以根据其所管理的5GLAN的网络拓扑结构, 确定该5GLAN中UPF网元之间的N19接口的路径类型。In a possible implementation manner, the SMF network element may determine the path type of the N19 interface between the UPF network elements in the 5GLAN according to the network topology structure of the 5GLAN managed by the SMF network element.
具体来讲,SMF网元获取为5GLAN中的终端设备服务的所有UPF,即所有成员UE的PDU会话的锚点UPF,然后,根据这些UPF两两之间是否存在N19隧道或者在部署上是否存在物理连接,确定5GLAN用户面的网络拓扑结构。当然,SMF网元也可以通过其他方式获取该5GLAN的网络拓扑结构,在此不作限制。Specifically, the SMF network element obtains all UPFs that serve the terminal devices in the 5GLAN, that is, the anchor UPF of the PDU session of all member UEs, and then, according to whether there is an N19 tunnel between these UPFs or whether there is a deployment The physical connection determines the network topology of the 5GLAN user plane. Of course, the SMF network element can also obtain the network topology of the 5GLAN in other ways, which is not limited here.
然后,SMF网元则根据获取的网络拓扑结构,确定该5GLAN中各个UPF网元之间的N19接口的路径类型。作为一种示例,SMF网元可以首先确定该5GLAN中形成环形的多个UPF网元,则形成该环形的相邻UPF网元之间的N19接口的路径类型为环路接口类型。然后,确定未形成环形的剩余的UPF网元为分支UPF网元,则该分支UPF网元与其连接的UPF网元之间的N19接口的路径类型为分支接口类型。以SMF网元获取的网络拓扑结构如图3B所示,由于UPF1~UPF3形成一个环形,则UPF1和UPF2之间的N19接口、UPF1和UPF3之间的N19接口以及UPF2和UPF3之间的N19接口的路径类型均为环路接口类型;由于UPF4未形成环形,且UPF4与UPF3连接,则UPF3与UPF4之间的N19接口的路径类型为分支接口类型。Then, the SMF network element determines the path type of the N19 interface between the UPF network elements in the 5GLAN according to the acquired network topology. As an example, the SMF network element may first determine the multiple UPF network elements forming a ring in the 5GLAN, and then the path type of the N19 interface between adjacent UPF network elements forming the ring is a loop interface type. Then, it is determined that the remaining UPF network elements that do not form a ring are branch UPF network elements, and the path type of the N19 interface between the branch UPF network element and the UPF network element connected to it is the branch interface type. The network topology obtained by SMF network elements is shown in Figure 3B. Since UPF1~UPF3 form a ring, the N19 interface between UPF1 and UPF2, the N19 interface between UPF1 and UPF3, and the N19 interface between UPF2 and UPF3 The path types are all loop interface types; because UPF4 does not form a ring and UPF4 is connected to UPF3, the path type of the N19 interface between UPF3 and UPF4 is a branch interface type.
为方便说明,在下文中,将UPF1和UPF2之间的N19接口标记为N19 A接口,将UPF2和UPF3之间的N19接口标记为N19 B接口,将UPF1和UPF3之间的N19接口标记为N19 C接口,将UPF3和UPF4之间的N19接口标记为N19 D接口。For the convenience of description, in the following, the N19 interface between UPF1 and UPF2 is marked as N19 A interface, the N19 interface between UPF2 and UPF3 is marked as N19 B interface, and the N19 interface between UPF1 and UPF3 is marked as N19 C Interface, mark the N19 interface between UPF3 and UPF4 as N19 D interface.
需要说明的是,在本申请实施例中以N19接口的路径类型分为两种,且分别为环路接口类型和分支接口类型为例进行说明,但不应理解其是对本申请实施例中的方法的限制,也就是说,在其他实施例中,N19接口的路径类型可以不止两种,以及N19接口的路径类型的名称也可以是其他名称,在此不作限制。It should be noted that in the embodiment of this application, the path type of the N19 interface is divided into two types, and the loop interface type and the branch interface type are respectively taken as examples for description, but it should not be understood that they are a reference to the embodiment of this application. The limitation of the method, that is, in other embodiments, the path type of the N19 interface can be more than two, and the name of the path type of the N19 interface can also be other names, which is not limited here.
S502、SMF网元向该5GLAN的每个UPF网元发送指示,该5GLAN的每个UPF网元接收该指示。S502. The SMF network element sends an instruction to each UPF network element of the 5GLAN, and each UPF network element of the 5GLAN receives the instruction.
在本申请实施例中,该指示用于指示UPF网元之间的N19接口的路径类型,该指示中包括N19接口的标识以及该N19接口的路径类型。当SMF网元确定该5GLAN中各个UPF网元之间的N19接口的路径类型后,则向该5GLAN中的每个UPF网元发送该指示。为方便说明,以SMF网元向第一UPF网元发送第一指示为例,可以理解为,第一UPF网元为该SMF网元管理的5GLAN所包括的其中一个UPF网元,例如,第一UPF网元为图3B所示的UPF1~UPF4中的任意一个UPF,在本申请实施例中,以第一UPF网元为UPF1为例。In the embodiment of the present application, the indication is used to indicate the path type of the N19 interface between UPF network elements, and the indication includes the identifier of the N19 interface and the path type of the N19 interface. After the SMF network element determines the path type of the N19 interface between each UPF network element in the 5GLAN, it sends the indication to each UPF network element in the 5GLAN. For the convenience of description, taking the SMF network element sending the first instruction to the first UPF network element as an example, it can be understood that the first UPF network element is one of the UPF network elements included in the 5GLAN managed by the SMF network element, for example, the first UPF network element A UPF network element is any one of UPF1 to UPF4 shown in FIG. 3B. In the embodiment of the present application, the first UPF network element is UPF1 as an example.
下面,对第一指示进行说明。在本申请实施例中,该第一指示可以包括但不限于如下三种情况:Next, the first instruction will be described. In the embodiment of the present application, the first indication may include but is not limited to the following three situations:
第一种情况:The first situation:
该第一指示用于指示与该5GLAN中的一个UPF网元相关联的N19接口的路径类型。在这种情况下,SMF网元可以根据该5GLAN包括的UPF网元个数,生成与每个UPF网元对应的指示,然后将生成的多个指示发送给对应的UPF网元。例如,在图3B中,包括4个UPF网元,则SMF网元可以生成4个指示,分别为第一指示、第二指示、第三指示以及第四指示。其中,第一指示用于指示与UPF1相关联的N19接口的路径类型,即包括N19 A接口和N19 C接口的路径类型;第二指示用于指示与UPF2相关联的N19接口的路径类型,即包括N19 A接口和N19 B接口的路径类型;第三指示用于指示与UPF3相关联 的N19接口的路径类型,即包括N19 B接口、N19 C接口以及N19 D接口的路径类型;第四指示用于指示与UPF4相关联的N19接口的路径类型,即包括N19 D接口的路径类型。然后,SMF网元分别将该第一指示~第四指示发送给对应的UPF网元,例如,将第一指示发送给UPF1,将第二指示发送给UPF2,以此类推。由于一个指示中只有与一个UPF相关联的N19接口的路径类型,从而可以减少不同指示中的冗余信息,可以减少每个指示所占用的资源。The first indication is used to indicate the path type of the N19 interface associated with a UPF network element in the 5GLAN. In this case, the SMF network element may generate an indication corresponding to each UPF network element according to the number of UPF network elements included in the 5GLAN, and then send the generated multiple indications to the corresponding UPF network element. For example, in FIG. 3B, including 4 UPF network elements, the SMF network element can generate 4 indications, which are the first indication, the second indication, the third indication, and the fourth indication, respectively. Among them, the first indication is used to indicate the path type of the N19 interface associated with UPF1, that is, the path type including the N19 A interface and the N19 C interface; the second indication is used to indicate the path type of the N19 interface associated with UPF2, that is Including the path types of the N19 A interface and the N19 B interface; the third indicator is used to indicate the path type of the N19 interface associated with UPF3, that is, the path type including the N19 B interface, the N19 C interface, and the N19 D interface; the fourth indicator is used To indicate the path type of the N19 interface associated with UPF4, that is, the path type including the N19 D interface. Then, the SMF network element sends the first instruction to the fourth instruction to the corresponding UPF network element, for example, the first instruction is sent to UPF1, the second instruction is sent to UPF2, and so on. Since there is only a path type of the N19 interface associated with one UPF in an indication, redundant information in different indications can be reduced, and resources occupied by each indication can be reduced.
在这种情况下,也可以将与每个UPF网元对应的指示(例如第一指示~第四指示)理解为同一个指示,该指示用于指示与该UPF网元相关联的N19接口的路径类型,但由于SMF网元将该指示发送给不同的UPF网元,因此,根据该指示发送的对象不同,将该指示区分为第一指示~第四指示。在图5中以SMF网元发送第一指示~第四指示为例进行说明。In this case, the indications corresponding to each UPF network element (for example, the first indication to the fourth indication) can also be understood as the same indication, and the indication is used to indicate the status of the N19 interface associated with the UPF network element. Path type, but because the SMF network element sends the instruction to different UPF network elements, the instruction is divided into the first instruction to the fourth instruction according to different objects of the instruction sent. In FIG. 5, the SMF network element sends the first instruction to the fourth instruction as an example for description.
第二种情况:The second case:
为了进一步简化每个指示所占用的资源,该第一指示可以仅用于指示路径类型为环路接口类型的接口,这样,该第一指示未指示的接口则为分支接口类型。在这种情况下,该第一指示中可以仅包括环路接口类型的接口的标识。例如,第一指示用于指示与UPF1相关联的N19接口中属于环路接口类型的接口,即该第一指示中包括N19 A接口和N19 C接口的标识。同理,第二指示用于指示与UPF2相关联的N19接口中属于环路接口类型的接口,即第二指示包括N19 A接口和N19 B接口的标识;第三指示用于指示与UPF3相关联的N19接口中属于环路接口类型的接口,由于与UPF3关联的N19接口中,N19 D接口为分支接口类型,则该第三指示中仅包括N19 B接口和N19 C接口的标识。In order to further simplify the resources occupied by each indication, the first indication may only be used to indicate the interface whose path type is the loop interface type, so that the interface not indicated by the first indication is the branch interface type. In this case, the first indication may only include the identifier of the interface of the loop interface type. For example, the first indication is used to indicate an interface belonging to the loop interface type among the N19 interfaces associated with UPF1, that is, the first indication includes the identifiers of the N19 A interface and the N19 C interface. In the same way, the second indication is used to indicate the interface of the loop interface type among the N19 interfaces associated with UPF2, that is, the second indication includes the identifiers of the N19 A interface and the N19 B interface; the third indication is used to indicate the association with UPF3 The N19 interface belongs to the loop interface type of the interface. Since the N19 D interface is a branch interface type among the N19 interfaces associated with UPF3, the third indication only includes the identifications of the N19 B interface and the N19 C interface.
当然,该第一指示也可以仅用于指示路径类型为分支接口类型的接口,具体指示方式与前述第一指示仅用于指示环路接口类型的接口相似,在此不再赘述。Of course, the first indication may also be used only to indicate the interface whose path type is the branch interface type. The specific indication method is similar to the interface whose first indication is only used to indicate the loop interface type, and will not be repeated here.
在这种情况下,该N19接口的标识可以是编号或者N19接口的隧道信息参数等,在此不作限制。In this case, the identification of the N19 interface may be a number or tunnel information parameters of the N19 interface, etc., which is not limited here.
第三种情况:The third situation:
该第一指示用于指示某一个或多个N19接口的路径类型。例如,该第一指示用于指示一个N19接口的路径类型,则该第一指示中包括其所指示的N19接口的隧道信息以及该N19接口的路径类型。当UPF网元接收该第一指示后,可以根据该第一指示中携带的N19接口的隧道信息,确定SMF网元指示的N19接口是否为与该UPF网元关联的N19接口。在这种情况下,可以理解为,第一指示中所指示的N19接口与该第一指示的接收方之间不一定具有关联关系,例如,第一指示中可以指示N19A接口的路径类型和N19D接口的路径类型,SMF网元可以将第一指示发送给UPF1,UPF1接收该第一指示后,确定其中一个N19接口的隧道信息与N19A接口的隧道信息相同,则根据该第一指示确定N19A接口的路径类型,而另外一个N19接口的隧道信息与UPF1中的其他N19接口均不相同,从而忽略该第一指示中与该N19接口相关的信息。The first indication is used to indicate the path type of one or more N19 interfaces. For example, the first indication is used to indicate the path type of an N19 interface, and the first indication includes the tunnel information of the N19 interface indicated by it and the path type of the N19 interface. After the UPF network element receives the first indication, it can determine whether the N19 interface indicated by the SMF network element is the N19 interface associated with the UPF network element according to the tunnel information of the N19 interface carried in the first indication. In this case, it can be understood that the N19 interface indicated in the first instruction does not necessarily have an association relationship with the recipient of the first instruction. For example, the first instruction may indicate the path type of the N19A interface and the N19D interface. The path type of the interface. The SMF network element can send the first instruction to UPF1. After receiving the first instruction, UPF1 determines that the tunnel information of one of the N19 interfaces is the same as the tunnel information of the N19A interface, and then determines the N19A interface according to the first instruction The tunnel information of another N19 interface is different from other N19 interfaces in UPF1, so the information related to the N19 interface in the first instruction is ignored.
在本申请实施例中,SMF网元发送该第一指示的方式可以包括但不限于如下两种。In the embodiment of the present application, the manner in which the SMF network element sends the first indication may include but is not limited to the following two.
第一种发送方式,第一指示携带在N4会话的创建请求(或者N4消息)中发送。In the first sending mode, the first instruction is carried in the N4 session creation request (or N4 message) and sent.
SMF网元在N4会话的创建过程中,将第一指示发送给第一UPF网元。作为一种示例,SMF网元接收终端发送的PDU会话创建请求后,则向与该PDU会话锚定的UPF网元发送第一指示,例如,SMF网元确定该终端的会话在第一UPF网元锚定,则SMF网元向第 一UPF网元发送N4会话创建请求,并将该第一指示携带在N4会话创建请求中。During the creation of the N4 session, the SMF network element sends the first indication to the first UPF network element. As an example, after receiving the PDU session creation request sent by the terminal, the SMF network element sends a first indication to the UPF network element anchored to the PDU session. For example, the SMF network element determines that the session of the terminal is on the first UPF network. If the element is anchored, the SMF network element sends an N4 session creation request to the first UPF network element, and carries the first indication in the N4 session creation request.
在本申请实施例中,该N4会话创建请求包括该5G LAN的组级别的N4会话的创建请求。具体来讲,SMF网元可以在发送给第一UPF网元的用于创建组级别的N4会话的创建请求中,通过一个或多个信元(information element,IE),向第一UPF网元指示N19接口的路径类型。例如,可以在创建请求增加扩展IE,并通过该扩展IE的扩展值来指示与该第一UPF网元关联的N19接口的路径类型。In the embodiment of the present application, the N4 session creation request includes the group-level N4 session creation request of the 5G LAN. Specifically, the SMF network element may send to the first UPF network element the creation request for creating a group-level N4 session, through one or more information elements (IE), to the first UPF network element Indicates the path type of the N19 interface. For example, an extension IE may be added to the creation request, and the extension value of the extension IE may be used to indicate the path type of the N19 interface associated with the first UPF network element.
第二种发送方式,第一指示携带在N4会话的修改请求(或者N4消息)中发送。In the second sending mode, the first indication is carried in the N4 session modification request (or N4 message) and sent.
SMF网元也可以在N4会话的修改过程中,将第一指示发送给第一UPF网元。例如,SMF网元在确定需要对N4会话进行修改后(例如,接收到PCF网元发送的N4会话修改请求或者5GLAN用户面的网络拓扑结构发生改变),则向对应的UPF网元发送该第一指示。该第一指示在N4会话修改请求中的携带方式与第一中发送方式中相似,在此不再赘述。The SMF network element may also send the first indication to the first UPF network element during the modification process of the N4 session. For example, after the SMF network element determines that the N4 session needs to be modified (for example, it receives the N4 session modification request sent by the PCF network element or the network topology of the 5GLAN user plane is changed), it sends the second to the corresponding UPF network element. One instruction. The manner in which the first indication is carried in the N4 session modification request is similar to that in the first sending manner, and will not be repeated here.
第一UPF网元接收该第一指示后,则可以根据该第一指示确定与该UPF网元相关联的N19接口的路径类型。After receiving the first indication, the first UPF network element may determine the path type of the N19 interface associated with the UPF network element according to the first indication.
S503、SMF网元生成与该5GLAN的每个UPF网元对应的路由规则。S503. The SMF network element generates a routing rule corresponding to each UPF network element of the 5GLAN.
在本申请实施例中,该路由规则用于指示将检测到的广播数据转发到N19接口,或者,可以理解为将目的地址为广播地址(例如广播MAC地址或者广播IP地址(FFFFFF))转发到N19接口。为方便说明,下面以SMF网元生成与第一UPF网元对应的路由规则为例。In the embodiment of the present application, the routing rule is used to instruct the detected broadcast data to be forwarded to the N19 interface, or it can be understood as the destination address being a broadcast address (for example, a broadcast MAC address or a broadcast IP address (FFFFFF)). N19 interface. For convenience of description, the following takes the SMF network element to generate a routing rule corresponding to the first UPF network element as an example.
需要说明的是,与第一UPF网元对应的路由规则可以理解为该第一UPF网元中与5GLAN相关的UE级别和组级别的N4会话的路由规则,或者可以理解为该路由规则属于匹配到广播数据的PDR所在的N4会话。It should be noted that the routing rule corresponding to the first UPF network element can be understood as the routing rule of the UE-level and group-level N4 sessions related to the 5GLAN in the first UPF network element, or can be understood as the routing rule belongs to matching To the N4 session where the PDR of the broadcast data is located.
在本申请实施例中,广播数据可以是从终端设备的PDU会话传入的,也可以是由核心网侧发送的,从而根据广播数据的不同来源,将该路由规则分为如下两种。In the embodiment of the present application, the broadcast data may be transmitted from the PDU session of the terminal device or sent by the core network side, so that the routing rules are divided into the following two types according to different sources of the broadcast data.
第一种路由规则,与第一UPF网元对应的路由规则包括检测从终端设备的PDU会话传入的广播数据,并转发其到第一UPF网元上所有的N19接口的PDR、FAR。在这种情况下,SMF网元需要针对每个终端设备的N4会话以及组级别的N4会话分别生成如下UL PDR和UL FAR。The first type of routing rule, the routing rule corresponding to the first UPF network element includes detecting broadcast data incoming from the PDU session of the terminal device, and forwarding it to the PDR and FAR of all N19 interfaces on the first UPF network element. In this case, the SMF network element needs to generate the following UL PDR and UL FAR respectively for the N4 session of each terminal device and the N4 session of the group level.
针对每个终端设备的N4会话:N4 session for each terminal device:
UL PDR:源接口参数设置为“access side”或“core side”,隧道信息参数设置为UE的PDU会话在第一UPF网元侧的隧道头信息,还有关联的FAR的规则标识(Rule ID);UL PDR: The source interface parameter is set to "access side" or "core side", the tunnel information parameter is set to the tunnel header information of the UE's PDU session on the side of the first UPF network element, and the rule ID of the associated FAR (Rule ID) );
UL FAR:目标接口参数设置为第一UPF网元的内部接口对应的值(例如,为“5GLAN internal”),以及设置传出接口的路径类型参数为非环路接口类型(或者可以理解为分支接口类型)。UL FAR: The target interface parameter is set to the value corresponding to the internal interface of the first UPF network element (for example, "5GLAN internal"), and the path type parameter of the outgoing interface is set to non-loop interface type (or can be understood as branch Interface Type).
例如,SMF网元接收到UE1和UE2发送的PDU会话创建请求后,确定与UE1和UE2锚定的UPF网元为图3B所示的UPF1,则SMF网元可以分别为UE1生成与UE1的PDU会话对应的第一UL PDR和第一UL FAR,以及,为UE2生成与UE2的PDU会话对应的第二UL PDR和第二UL FAR。其中,第一UL PDR和第二UL PDR中均包括源接口参数、隧道信息参数以及Rule ID,在第一UL PDR中,该源接口参数设置为“access side”或“core side”,该隧道信息参数设置为UE1的PDU会话在UPF1的隧道头信息;在第二UL PDR中,该源接口参数设置为“access side”或“core side”,该隧道信息参数设置为UE2的PDU 会话在UPF1的隧道头信息。For example, after the SMF network element receives the PDU session creation request sent by UE1 and UE2, it determines that the UPF network element anchored to UE1 and UE2 is UPF1 shown in Figure 3B, and the SMF network element can generate PDUs with UE1 for UE1. The first UL PDR and the first UL FAR corresponding to the session, and the second UL PDR and the second UL FAR corresponding to the PDU session of the UE2 are generated for the UE2. Among them, the first UL PDR and the second UL PDR both include source interface parameters, tunnel information parameters, and Rule ID. In the first UL PDR, the source interface parameters are set to "access side" or "core side", and the tunnel The information parameter is set to the tunnel header information of UE1's PDU session in UPF1; in the second UL PDR, the source interface parameter is set to "access side" or "core side", and the tunnel information parameter is set to UE2's PDU session in UPF1 The tunnel header information.
第一UL FAR和第二UL FAR中均包括目标接口参数以及传出接口的路径类型参数,而且,每个参数在第一UL FAR和第二UL FAR中的取值相同,目标接口参数可以均设置为“5GLAN internal”,传出接口的路径类型参数均设置为非环路接口类型。在这种情况下,也可以只设置一个UL FAR,与UPF1锚定的所有UE均使用该UL FAR。Both the first UL FAR and the second UL FAR include the target interface parameter and the path type parameter of the outgoing interface, and each parameter has the same value in the first UL FAR and the second UL FAR, and the target interface parameters can be equal Set to "5GLAN internal", the path type parameters of the outgoing interface are all set to non-loop interface type. In this case, it is also possible to set only one UL FAR, and all UEs anchored to UPF1 use this UL FAR.
针对组级别的N4会话,包括如下两种形式:For group-level N4 sessions, there are two forms:
第一种形式:The first form:
UL PDR:源接口参数设置为第一UPF网元的内部接口对应的值,以太过滤器参数中的目标地址设置为广播地址,设置传入接口的路径类型参数为非环路接口类型,还有关联的FAR的Rule ID;UL PDR: The source interface parameter is set to the value corresponding to the internal interface of the first UPF network element, the destination address in the Ethernet filter parameter is set to the broadcast address, the path type parameter of the incoming interface is set to the non-loop interface type, and Rule ID of the associated FAR;
UL FAR:目标接口参数设置为“core side”。UL FAR: The target interface parameter is set to "core side".
例如,SMF网元接收到UE1和UE2发送的PDU会话创建请求后,确定UE1和UE2属于5GLAN组1,则SMF网元生成与5GLAN组1对应的UL PDR和UL FAR。其中,UL PDR和UL FAR中的参数如第一种形式所述,在此不再赘述。需要说明的是,若SMF网元确定UE1和UE2分别属于不同的5GLAN组,例如,UE1属于5GLAN组1,UE2属于5GLAN组2,则SMF网元分别为5GLAN组1和5GLAN组2生成对应的UL PDR和UL FAR。For example, after the SMF network element receives the PDU session creation request sent by UE1 and UE2, and determines that UE1 and UE2 belong to 5GLAN group 1, the SMF network element generates UL PDR and UL FAR corresponding to 5GLAN group 1. Among them, the parameters in UL PDR and UL FAR are as described in the first form, and will not be repeated here. It should be noted that if the SMF network element determines that UE1 and UE2 belong to different 5GLAN groups, for example, UE1 belongs to 5GLAN group 1, and UE2 belongs to 5GLAN group 2, then the SMF network element generates corresponding 5GLAN group 1 and 5GLAN group 2 respectively. UL PDR and UL FAR.
第二种形式:The second form:
与第一种形式不同的是,在UL FAR中,还可以设置传出接口的路径类型参数,例如,将该传出接口的路径类型参数设置为所有(ALL)或者设置为环路接口类型以及分支接口类型。Different from the first form, in UL FAR, you can also set the path type parameter of the outgoing interface, for example, set the path type parameter of the outgoing interface to all (ALL) or set the loop interface type and Branch interface type.
第二种路由规则,与第一UPF网元对应的路由规则包括检测从一个N19接口传入的广播数据,并转发其到第一UPF网元上对应的N19接口的PDR、FAR。在这种情况下,SMF网元需要在组级别的N4会话中生成如下DL PDR和DL FAR:The second type of routing rule, the routing rule corresponding to the first UPF network element, includes detecting the incoming broadcast data from an N19 interface and forwarding it to the PDR and FAR of the corresponding N19 interface on the first UPF network element. In this case, the SMF network element needs to generate the following DL PDR and DL FAR in the N4 session at the group level:
第一种形式:The first form:
DL PDR:源接口参数设置为“core side”,以太过滤器参数中的目标地址设置为广播地址,隧道信息参数的取值设置为N19接口的信息(例如,与对端UPF网元连接的该第一UPF网元的隧道头GTP-U TEID),还有关联的FAR的Rule ID;DL PDR: The source interface parameter is set to "core side", the destination address in the Ethernet filter parameter is set to the broadcast address, and the value of the tunnel information parameter is set to the information of the N19 interface (for example, the one connected to the opposite UPF network element). The tunnel header GTP-U TEID of the first UPF network element, and the Rule ID of the associated FAR;
DL FAR:目标接口参数设置为“core side”;DL FAR: The target interface parameter is set to "core side";
例如,当第一UPF网元为图3B所示的UPF1时,SMF网元确定UPF1包括2个N19接口,分别为N19 A接口和N19 C接口,则SMF网元可以为UPF1生成两个DL PDR以及与每个DL PDR分别对应的DL FAR,其中,第一个DL PDR用于检测通过N19 A接口接收的广播数据,第二个DL PDR用于检测通过N19 C接口接收的广播数据,且第一个DL PDR中的隧道信息参数的取值为N19 A接口的信息,即UPF1网元的GTP-U TEID;第二个DL PDR中的隧道信息参数的取值为N19 C接口的信息,即UPF1网元的GTP-U TEID。在这种情况下,与第一个DL PDR关联的DL FAR和与第二个DL PDR关联的DL FAR中的目标接口的参数的取值均设置为“core side”。For example, when the first UPF network element is UPF1 as shown in Figure 3B, the SMF network element determines that UPF1 includes two N19 interfaces, namely N19 A interface and N19 C interface, then the SMF network element can generate two DL PDRs for UPF1 And the DL FAR corresponding to each DL PDR, where the first DL PDR is used to detect the broadcast data received through the N19 A interface, and the second DL PDR is used to detect the broadcast data received through the N19 C interface. The value of the tunnel information parameter in one DL PDR is the information of the N19 interface A, that is, the GTP-U TEID of the UPF1 network element; the value of the tunnel information parameter in the second DL PDR is the information of the N19 C interface, that is GTP-U TEID of UPF1 network element. In this case, the values of the target interface parameters in the DL FAR associated with the first DL PDR and the DL FAR associated with the second DL PDR are both set to "core side".
需要说明的是,在这种形式下,由于DL PDR中不包括传入接口的类型,则UPF网元可以根据DL PDR中的隧道信息参数和UPF网元根据第一指示确定并保存在本地的N19接口的路径类型,确定传入接口的类型,例如,UPF1判断第一个DL PDR中的隧道信息 为N19A接口的隧道信息,而N19A接口的路径类型为环路接口类型,从而确定传入接口的类型为环路接口类型,采用相同的方式判断第二个DL PDR对应的传入接口的类型为环路接口类型。然后,UPF网元根据传输规则(如果数据从环路接口类型的接口接收,则只向分支接口类型的接口转发,如果数据从分支接口类型的接口接收,则向其他分支接口类型的接口和环路接口类型的接口转发),确定传出接口的类型。例如,确定与第一个PDR对应的DL FAR的传出接口为非环路接口类型,以及,与第二个PDR对应的DL FAR的传出接口为非环路接口类型。It should be noted that in this form, since the DL PDR does not include the type of the incoming interface, the UPF network element can determine and save it locally according to the tunnel information parameters in the DL PDR and the UPF network element according to the first instruction. The path type of the N19 interface determines the type of the incoming interface. For example, UPF1 determines that the tunnel information in the first DL PDR is the tunnel information of the N19A interface, and the path type of the N19A interface is the loop interface type to determine the incoming interface The type of is the loop interface type, and the same method is used to determine the type of the incoming interface corresponding to the second DL PDR as the loop interface type. Then, UPF network element according to the transmission rules (if the data is received from the interface of the loop interface type, it is only forwarded to the interface of the branch interface type, if the data is received from the interface of the branch interface type, it is forwarded to the interface and ring of other branch interface types. Interface forwarding), determine the type of outgoing interface. For example, it is determined that the outgoing interface of the DL FAR corresponding to the first PDR is a non-loop interface type, and the outgoing interface of the DL FAR corresponding to the second PDR is a non-loop interface type.
第二种形式:The second form:
与第一种形式不同的是,在DL PDR中,除包括第一种形式的内容之外,还包括传入接口的路径类型参数,该传入接口的路径类型参数可以为环路接口类型或者非环路接口类型。Different from the first form, in DL PDR, in addition to the content of the first form, it also includes the path type parameter of the incoming interface. The path type parameter of the incoming interface can be a loop interface type or Non-loop interface type.
例如,UPF1包括2个N19接口,分别为N19 A接口和N19 C接口,则SMF网元可以为UPF1生成两个DL PDR以及与每个DL PDR分别对应的DL FAR,其中,每个DL PDR除包括第一种形式中DL PDR的内容之外,还包括传入接口的类型,由于N19A接口和N19C接口均为环路接口类型,因此,每个DL PDR中传入接口的类型设置为环路接口类型。在这种形式下,UPF网元可以根据前述传输规则,确定传出接口的类型。例如,确定与第一个PDR对应的DL FAR的传出接口为非环路接口类型,以及,与第二个PDR对应的DL FAR的传出接口为非环路接口类型。For example, UPF1 includes two N19 interfaces, namely N19 A interface and N19 C interface. The SMF network element can generate two DL PDRs and a DL FAR corresponding to each DL PDR for UPF1, where each DL PDR is divided by In addition to the content of DL PDR in the first form, it also includes the type of incoming interface. Since both N19A and N19C interfaces are loop interface types, the type of incoming interface in each DL PDR is set to loop Interface Type. In this form, the UPF network element can determine the type of outgoing interface according to the aforementioned transmission rules. For example, it is determined that the outgoing interface of the DL FAR corresponding to the first PDR is a non-loop interface type, and the outgoing interface of the DL FAR corresponding to the second PDR is a non-loop interface type.
作为一种示例,可以在PDR的源接口参数中增加一个字段(例如一个比特),通过该字段来指示传入接口的路径类型,其中“0”表示环路接口类型,“1”表示非环路接口类型。As an example, a field (such as a bit) can be added to the source interface parameter of the PDR to indicate the path type of the incoming interface, where "0" indicates the loop interface type, and "1" indicates the non-loop Road interface type.
在这种形式下,UPF网元直接从DL PDR中获取传入接口的类型。In this form, the UPF network element directly obtains the type of the incoming interface from the DL PDR.
第三种形式:The third form:
与第一种形式不同的是,在DL FAR中,除包括第一种形式的内容之外,还包括传出接口的路径类型参数,该传出接口的路径类型参数可以为ALL或者非环路接口类型。The difference from the first form is that in DL FAR, in addition to the content of the first form, it also includes the path type parameter of the outgoing interface. The path type parameter of the outgoing interface can be ALL or non-loop. Interface Type.
例如,当第一UPF网元为图3B所示的UPF1时,SMF网元还可以在第一个PDR的FAR的传出接口参数中设置非环形值,由于N19 A接口为环路接口类型,则根据前述传输规则,将该与第一个PDR对应的DL FAR的传出接口参数中设置非环路接口类型。同理,SMF网元在与第二个PDR对应的DL FAR的传出接口参数中设置非环路接口类型。For example, when the first UPF network element is UPF1 shown in Figure 3B, the SMF network element can also set the non-ring value in the outgoing interface parameter of the FAR of the first PDR. Since the N19 A interface is a loop interface type, Then, according to the foregoing transmission rule, the non-loop interface type is set in the outgoing interface parameter of the DL FAR corresponding to the first PDR. In the same way, the SMF network element sets the non-loop interface type in the outgoing interface parameter of the DL FAR corresponding to the second PDR.
作为一种示例,可以在FAR的目标接口参数中增加一个字段(例如一个比特),通过该字段来指示传出接口的路径类型,其中“0”表示ALL,“1”表示非环路接口类型。As an example, a field (such as a bit) can be added to the target interface parameter of FAR to indicate the path type of the outgoing interface, where "0" means ALL, and "1" means non-loop interface type .
第四种形式:The fourth form:
DL PDR:源接口参数设置为“core side”,过滤器参数中的目标地址设置为广播地址,隧道信息参数的取值设置为N19接口的信息(例如,与对端UPF网元连接的该第一UPF网元的隧道头GTP-U TEID),还有关联的FAR的Rule ID;DL PDR: The source interface parameter is set to "core side", the destination address in the filter parameter is set to the broadcast address, and the value of the tunnel information parameter is set to the information of the N19 interface (for example, the first one connected to the opposite UPF network element) The tunnel header GTP-U TEID of a UPF network element, and the Rule ID of the associated FAR;
DL FAR:目标接口参数设置为UPF的内部接口对应的值(例如,为“5GLAN internal”),还包括传出接口的路径类型参数,例如,该传出接口的路径类型参数可以为环路接口类型或者非环路接口类型。具体来讲,该传出接口的路径类型参数的取值可以是SMF网元根据传入该广播数据的N19接口确定的。例如,广播数据从N19A接口传入,N19A接口的路径类型为环路接口类型,则该传出接口的路径类型参数设置为环路接口类型。DL FAR: The target interface parameter is set to the value corresponding to the internal interface of UPF (for example, "5GLAN internal"), and also includes the path type parameter of the outgoing interface. For example, the path type parameter of the outgoing interface can be a loop interface Type or non-loop interface type. Specifically, the value of the path type parameter of the outgoing interface may be determined by the SMF network element according to the N19 interface that receives the broadcast data. For example, if broadcast data comes in from the N19A interface, and the path type of the N19A interface is the loop interface type, the path type parameter of the outgoing interface is set to the loop interface type.
在这种形式下,SMF网元还需要在组级别的N4会话中生成如下UL PDR和UL FAR:In this form, the SMF network element also needs to generate the following UL PDR and UL FAR in the group-level N4 session:
UL PDR:源接口参数设置为第一UPF网元的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,还有关联的FAR的Rule ID;可选的,还包括传入该广播数据的内部接口的路径类型参数,例如,广播数据从环路接口类型的内部接口传入,则该路径类型参数设置为环路接口类型;UL PDR: The source interface parameter is set to the value corresponding to the internal interface of the first UPF network element, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR; optional, also includes the incoming The path type parameter of the internal interface of the broadcast data. For example, if the broadcast data is transmitted from the internal interface of the loop interface type, the path type parameter is set to the loop interface type;
UL FAR:目标接口参数设置为“core side”,可选的,还包括传出接口的路径类型参数,传出接口的路径类型参数设置为非环路接口类型。SMF网元可以根据前述传输规则进行设置。该组级别的N4会话中的UL PDR和UL FAR,和前述第一种路由规则中的组级别的N4会话中的路由规则相似,在此不再赘述。UL FAR: The target interface parameter is set to "core side", optionally, it also includes the path type parameter of the outgoing interface, and the path type parameter of the outgoing interface is set to the non-loop interface type. The SMF network element can be set according to the aforementioned transmission rules. The UL PDR and UL FAR in the group-level N4 session are similar to the routing rules in the group-level N4 session in the first type of routing rule described above, and will not be repeated here.
需要说明的是,SMF可以采用上述相同的方式,生成与该5GLAN中的其他UPF对应的路由规则,在此不再赘述。It should be noted that the SMF can use the same manner as described above to generate routing rules corresponding to other UPFs in the 5GLAN, which will not be repeated here.
S504、SMF网元向该5GLAN的每个UPF网元分别发送与其对应的配置信息,每个UPF网元接收与该UPF网元对应的配置信息。S504. The SMF network element sends configuration information corresponding to each UPF network element of the 5GLAN, and each UPF network element receives configuration information corresponding to the UPF network element.
在本申请实施例中,该配置信息包括N4会话的标识以及与该UPF网元对应的路由规则。当SMF网元生成与每个UPF网元对应的路由规则后,则将与每个UPF网元对应的路由规则分别发送给对应的UPF网元。UPF网元在接收该路由规则后,则将该路由规则配置在对应的N4会话中。在一种示例中,该配置消息可以为N4消息。In the embodiment of the present application, the configuration information includes the identifier of the N4 session and the routing rule corresponding to the UPF network element. After the SMF network element generates the routing rule corresponding to each UPF network element, the routing rule corresponding to each UPF network element is sent to the corresponding UPF network element. After receiving the routing rule, the UPF network element configures the routing rule in the corresponding N4 session. In an example, the configuration message may be an N4 message.
为便于说明,在图5中,以第一配置信息~第四配置信息来标记SMF网元发送给不同的UPF网元的配置信息,例如,将SMF网元向第一UPF网元发送的配置信息标记为第一配置信息,该第一配置信息中包括N4会话的标识以及与第一UPF网元对应的路由规则;将SMF网元向第二UPF网元发送的配置信息标记为第二配置信息,该第二配置信息中包括N4会话的标识以及与该第二UPF网元对应的路由规则,以此类推。For ease of description, in FIG. 5, the first configuration information to the fourth configuration information are used to mark the configuration information sent by the SMF network element to different UPF network elements, for example, the configuration sent from the SMF network element to the first UPF network element The information is marked as the first configuration information, and the first configuration information includes the identifier of the N4 session and the routing rule corresponding to the first UPF network element; the configuration information sent by the SMF network element to the second UPF network element is marked as the second configuration Information, the second configuration information includes the identifier of the N4 session and the routing rule corresponding to the second UPF network element, and so on.
需要说明的是,若该配置信息中指示的FAR在N4会话中已经存在,则该UPF网元可以直接将该配置信息中指示的PDR与已经存在的FAR关联,将该配置信息中指示的PDR的FAR ID参数设置为该已经存在的FAR的规则标识(rule ID)。It should be noted that if the FAR indicated in the configuration information already exists in the N4 session, the UPF network element can directly associate the PDR indicated in the configuration information with the existing FAR, and the PDR indicated in the configuration information The FAR ID parameter is set to the rule ID (rule ID) of the existing FAR.
S505、第一UE通过第一UE的PDU会话发送第一数据包,第一UPF网元接收通过该PDU会话发送的第一数据包。S505: The first UE sends the first data packet through the PDU session of the first UE, and the first UPF network element receives the first data packet sent through the PDU session.
在本申请实施例中,该第一数据包的目的地址为广播地址,UPF网元通过PDU会话隧道接收该第一数据包,第一UE可以为与UPF1网元锚定的UE,例如UE1。In the embodiment of the present application, the destination address of the first data packet is a broadcast address, and the UPF network element receives the first data packet through a PDU session tunnel. The first UE may be a UE anchored to the UPF1 network element, such as UE1.
S506、第一UPF网元确定该第一数据包与第一UE的N4会话的UL PDR匹配,转发到UPF的内部接口。S506: The first UPF network element determines that the first data packet matches the UL PDR of the N4 session of the first UE, and forwards it to the internal interface of the UPF.
第一UPF网元接收该第一数据包后,执行第一数据包与PDR的匹配过程,检测到该第一数据包与第一UE的N4会话的UL PDR匹配,通过对应的UL FAR转发到第一UPF网元的内部接口。After receiving the first data packet, the first UPF network element executes the matching process between the first data packet and the PDR, detects that the first data packet matches the UL PDR of the N4 session of the first UE, and forwards it to the corresponding UL FAR The internal interface of the first UPF network element.
S507、第一UPF网元通过内部接口接收该第一数据包,执行数据包与PDR的匹配过程,检测到该第一数据包与第一UPF网元所在的5GLAN的组级别的N4会话的UL PDR匹配。S507. The first UPF network element receives the first data packet through the internal interface, performs a matching process between the data packet and the PDR, and detects the UL of the N4 session of the first data packet and the group level of the 5GLAN where the first UPF network element is located. PDR match.
S508、第一UPF网元根据与UL PDR匹配的UL FAR确定用于转发该第一数据包的第一接口。S508. The first UPF network element determines a first interface for forwarding the first data packet according to the UL FAR matched with the UL PDR.
当第一UPF网元确定该第一数据包与第一UPF网元的组级别的N4会话的UL PDR匹配后,则可以根据与该UL PDR关联的UL FAR确定用于转发该第一数据包的第一接口。 在本申请实施例中,针对组级别的N4会话,SMF网元可以在第一UPF网元中配置不同形式的路由规则,从而根据SMF网元在第一UPF网元中配置的不同形式的路由规则,第一UPF网元根据UL FAR确定用于转发该第一数据包的目标接口的方式可以包括但不限于如下几种方式。When the first UPF network element determines that the first data packet matches the UL PDR of the N4 session at the group level of the first UPF network element, it can determine to forward the first data packet according to the UL FAR associated with the UL PDR The first interface. In the embodiment of this application, for group-level N4 sessions, the SMF network element can configure different forms of routing rules in the first UPF network element, so as to configure different forms of routing in the first UPF network element according to the SMF network element According to the rule, the manner in which the first UPF network element determines the target interface for forwarding the first data packet according to the UL FAR may include but is not limited to the following manners.
第一种方式,针对步骤S503中组级别的N4会话的路由规则的第一种形式:The first way is the first form of the routing rule for the group-level N4 session in step S503:
第一UPF网元通过与该第一数据包匹配的组级别N4会话中的UL PDR中的传入接口的路径类型参数以及传输规则,确定第一接口。The first UPF network element determines the first interface according to the path type parameter and the transmission rule of the incoming interface in the UL PDR in the group-level N4 session that matches the first data packet.
作为一种示例,与组级别的N4会话对应的UL FAR中,目标接口参数为“core side”,从而,第一UPF网元确定目标接口为N19接口。如图3B所示的5GLAN中,若通过所有的N19接口转发目的地址为广播地址的第一数据包时,会存在环路转发的问题,因此,在本申请实施例中,当第一UPF网元确定通过N19接口转发目的地址为广播地址的第一数据包时,还需要对N19接口进行筛选,确定出实际用于转发该第一数据包的第一接口。As an example, in the UL FAR corresponding to the N4 session at the group level, the target interface parameter is "core side", so the first UPF network element determines that the target interface is the N19 interface. In the 5GLAN shown in Figure 3B, if the first data packet whose destination address is the broadcast address is forwarded through all N19 interfaces, there will be a loop forwarding problem. Therefore, in the embodiment of the present application, when the first UPF network When the meta determines to forward the first data packet whose destination address is the broadcast address through the N19 interface, it also needs to filter the N19 interface to determine the first interface that is actually used to forward the first data packet.
然后,第一UPF网元根据组级别的N4会话的UL PDR中传入接口的路径类型参数以及前述传输规则,确定实际用于转发该第一数据包的N19接口。例如,该UL PDR中传入接口的路径类型为非环路接口类型,则转发该第一数据包的N19接口的路径类型为所有类型的N19接口,从而,第一UPF网元确定实际用于转发该第一数据包的第一接口为与第一UPF网元关联的所有的N19接口,由于与第一UPF网元关联的N19接口为N19A接口和N19C接口,则第一UPF网元确定第一接口为N19A接口和N19C接口。Then, the first UPF network element determines the N19 interface that is actually used to forward the first data packet according to the path type parameter of the incoming interface in the UL PDR of the group-level N4 session and the foregoing transmission rule. For example, if the path type of the incoming interface in the UL PDR is a non-loop interface type, the path type of the N19 interface that forwards the first data packet is all types of N19 interfaces, so that the first UPF network element determines that it is actually used The first interface for forwarding the first data packet is all the N19 interfaces associated with the first UPF network element. Since the N19 interfaces associated with the first UPF network element are the N19A interface and the N19C interface, the first UPF network element determines the first One interface is N19A interface and N19C interface.
第二种方式,针对步骤S503中组级别的N4会话的路由规则的第二种形式:The second method is the second form of the routing rule for the group-level N4 session in step S503:
第一UPF网元根据与组级别的N4会话对应的UL FAR中的传出接口的路径类型参数,确定第一接口。The first UPF network element determines the first interface according to the path type parameter of the outgoing interface in the UL FAR corresponding to the group-level N4 session.
作为一种示例,第一UPF网元确定该UL FAR中传出接口的路径类型参数设置为所有(ALL)或者设置为环路接口类型以及分支接口类型,与第一UPF网元关联的N19接口为N19A接口和N19C接口,从而第一UPF网元确定实际用于转发该第一数据包的第一接口为N19A接口和N19C接口。As an example, the first UPF network element determines that the path type parameter of the outgoing interface in the UL FAR is set to all (ALL) or set to the loop interface type and branch interface type, and the N19 interface associated with the first UPF network element Are the N19A interface and the N19C interface, so the first UPF network element determines that the first interface actually used to forward the first data packet is the N19A interface and the N19C interface.
S509、第一UPF网元生成第二数据包。S509. The first UPF network element generates a second data packet.
在本申请实施例中,该第二数据包是通过复制该第一数据包得到的。当第一UPF网元在转发数据到目标接口时,执行数据包的复制流程,复制该第一数据包,从而得到该第二数据包。In the embodiment of the present application, the second data packet is obtained by copying the first data packet. When the first UPF network element is forwarding data to the target interface, it executes the data packet copying process to copy the first data packet to obtain the second data packet.
在本申请实施例中,第一UPF网元可以包括但不限于如下两种方式复制该第一数据包。In the embodiment of the present application, the first UPF network element may include, but is not limited to, the following two ways to copy the first data packet.
第一种复制方式:The first copy method:
SMF网元在为组级别的N4会话设置对应的路由规则时,可以在与UL PDR相关联的UL FAR中设置用于复制数据包的复制标签,这样,第一UPF网元检测到数据包匹配到组级别的N4会话的UL PDR后,则可以根据与该UL PDR关联的UL FAR中的复制标签,触发执行数据包的复制流程,复制该第一数据包。When the SMF network element sets the corresponding routing rules for the group-level N4 session, it can set the copy label for copying the data packet in the UL FAR associated with the UL PDR, so that the first UPF network element detects that the data packet matches After reaching the UL PDR of the N4 session at the group level, the first data packet can be copied according to the copy tag in the UL FAR associated with the UL PDR to trigger the execution of the data packet copy process.
第二种复制方式:The second copy method:
每个UPF网元在转发广播数据到目标接口时,触发UPF网元的复制功能,执行数据包的复制流程,复制该第一数据包。When each UPF network element forwards broadcast data to the target interface, it triggers the copy function of the UPF network element, executes the data packet copy process, and copies the first data packet.
另外,需要说明的是,第一UPF网元复制该第一数据包的数量与第一接口的数量相同。具体来讲,当第一UPF网元确定用于转发该第一数据包的第一接口后,则可以根据该第一 接口的数量复制该第一数据包。例如,第一UPF网元为图3B所示的UPF1时,第一接口的数量为2个,则UPF1可以将第一数据包复制两份。In addition, it should be noted that the number of copies of the first data packet by the first UPF network element is the same as the number of the first interface. Specifically, after the first UPF network element determines the first interface for forwarding the first data packet, it may copy the first data packet according to the number of the first interfaces. For example, when the first UPF network element is UPF1 as shown in FIG. 3B, and the number of first interfaces is two, then UPF1 can duplicate the first data packet in two copies.
S510、第一UPF网元向第二UPF网元发送第二数据包以及向第三UPF网元发送第二数据包,第二UPF网元和第三UPF网元接收该第二数据包。S510. The first UPF network element sends a second data packet to the second UPF network element and sends a second data packet to the third UPF network element, and the second UPF network element and the third UPF network element receive the second data packet.
在本申请实施例中,该第二UPF网元和第三UPF网元分别为与不同的第一接口连接的UPF网元。例如,第一接口为N19 A接口和N19 C接口,则第二UPF网元和第三UPF网元分别为UPF2和UPF3,作为一种示例,第二UPF网元为UPF3,第三UPF网元为UPF2。In the embodiment of the present application, the second UPF network element and the third UPF network element are respectively UPF network elements connected to different first interfaces. For example, if the first interface is the N19 A interface and the N19 C interface, the second UPF network element and the third UPF network element are UPF2 and UPF3, respectively. As an example, the second UPF network element is UPF3, and the third UPF network element For UPF2.
S511、第二UPF网元执行数据包与PDR的匹配过程,检测到该第二数据包与组级别的N4会话的DL PDR匹配。S511. The second UPF network element performs a matching process between the data packet and the PDR, and detects that the second data packet matches the DL PDR of the N4 session at the group level.
在本申请实施例中,根据第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则的不同,本申请实施例中的方法后续的执行步骤不同。若第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S503中第二种路由规则的第一种形式~第三种形式,则本申请实施例中的方法执行步骤S514~步骤S518,若第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S503中第二种路由规则的第四种形式,则本申请实施例中的方法执行步骤S512~步骤S518。也就是说,步骤S512~步骤S513为可选步骤,因此,在图5中这两个步骤用虚线表示。In the embodiment of the present application, according to the different routing rules configured in the second UPF network element for detecting the broadcast data incoming from the N19 interface, the subsequent execution steps of the method in the embodiment of the present application are different. If the routing rule configured in the second UPF network element for detecting the broadcast data incoming from the N19 interface is the first to third forms of the second routing rule in step S503, then the The method executes steps S514 to S518. If the routing rule configured in the second UPF network element for detecting broadcast data incoming from the N19 interface is the fourth form of the second routing rule in step S503, then this application is implemented The method in the example executes step S512 to step S518. That is to say, step S512 to step S513 are optional steps. Therefore, these two steps are represented by dotted lines in FIG. 5.
S512、第二UPF网元将该第二数据包发送到第二UPF网元的内部接口。S512. The second UPF network element sends the second data packet to the internal interface of the second UPF network element.
与第二数据包匹配的DL PDR对应的DL FAR中,目标接口参数为UPF的内部接口对应的值,则第二UPF网元将该第二数据包发送到第二UPF网元的内部接口,同时,还可以传输非环形指示,该非环形指示用于指示传入该第二数据包的接口为非环路接口。In the DL FAR corresponding to the DL PDR that matches the second data packet, if the target interface parameter is a value corresponding to the internal interface of the UPF, the second UPF network element sends the second data packet to the internal interface of the second UPF network element, At the same time, a non-ring indication can also be transmitted, and the non-ring indication is used to indicate that the interface through which the second data packet is received is a non-loop interface.
S513、第二UPF网元通过内部接口接收该第二数据包,执行数据包与PDR的匹配过程,检测到该第二数据包与组级别的N4会话的UL PDR匹配。S513. The second UPF network element receives the second data packet through an internal interface, performs a matching process between the data packet and the PDR, and detects that the second data packet matches the UL PDR of the group-level N4 session.
需要说明的是,该UL PDR即步骤S503中第四种形式中的UL PDR。It should be noted that the UL PDR is the UL PDR in the fourth form in step S503.
S514、第二UPF网元确定用于转发该第二数据包的第二接口。S514: The second UPF network element determines a second interface for forwarding the second data packet.
当第二UPF网元确定该第二数据包与第二UPF网元的组级别的N4会话的PDR匹配后,则可以根据传输规则,或者关联的FAR中的指示,确定用于转发该第二数据包的第二接口。When the second UPF network element determines that the second data packet matches the PDR of the group-level N4 session of the second UPF network element, it can determine to forward the second data packet according to the transmission rule or the indication in the associated FAR. The second interface of the packet.
若第二数据包是通过内部接口接收的,也就是说,步骤S512中,第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S503中第四种形式。在这种情况下,第二UPF网元确定第二接口的方式可以包括但不限于如下两种。具体来讲,当与第二数据包匹配的组级别的N4会话的UL PDR中包括传入广播数据的N19接口的路径类型参数,则第二UPF网元根据传输规则和该传入广播数据的N19接口的路径类型参数确定第二接口;当与第二数据包匹配的组级别的N4会话的UL PDR对应的UL FAR中包括传出接口的路径类型参数,则第二UPF网元根据该传出接口的路径类型参数确定该第二接口。具体实现过程与步骤S508中相似,在此不再赘述。If the second data packet is received through the internal interface, that is to say, in step S512, the routing rule configured in the second UPF network element to detect the incoming broadcast data from the N19 interface is the fourth form in step S503 . In this case, the manner in which the second UPF network element determines the second interface may include but is not limited to the following two. Specifically, when the UL PDR of the N4 session at the group level that matches the second data packet includes the path type parameter of the N19 interface of the incoming broadcast data, the second UPF network element is based on the transmission rule and the incoming broadcast data. The path type parameter of the N19 interface determines the second interface; when the UL FAR corresponding to the UL PDR of the group-level N4 session that matches the second data packet includes the path type parameter of the outgoing interface, the second UPF network element transmits The path type parameter of the outbound interface determines the second interface. The specific implementation process is similar to that in step S508, and will not be repeated here.
若第二数据包是从N19接口接收的,也就是说,步骤S512中,第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S503中第二种路由规则的第一种形式~第三种形式。在这种情况下,第二UPF网元确定第二接口的方式可以包括但不限于如下两种。If the second data packet is received from the N19 interface, that is, in step S512, the routing rule configured in the second UPF network element for detecting the broadcast data incoming from the N19 interface is the second type of routing in step S503 The first form ~ the third form of rules. In this case, the manner in which the second UPF network element determines the second interface may include but is not limited to the following two.
第一种确定方式,对应步骤S503中第二种路由规则中的第一种形式:The first determination method corresponds to the first form in the second routing rule in step S503:
第二UPF网元首先根据该DL PDR中的隧道信息参数的取值,以及步骤S502发送的第二指示,确定传入接口的接口类型。The second UPF network element first determines the interface type of the incoming interface according to the value of the tunnel information parameter in the DL PDR and the second instruction sent in step S502.
具体来讲,第二UPF网元获取与该第二数据包匹配的DL PDR中的隧道信息参数的取值,例如该隧道信息参数的取值为第二UPF网元GTP-U TEID,则第二UPF网元确定该第二数据包是通过第一UPF网元与第二UPF网元之间的N19接口接收的。然后,根据SMF网元发送的第二指示,确定第一UPF网元与第二UPF网元之间的N19接口的路径类型是分支接口类型或者环路接口类型。Specifically, the second UPF network element obtains the value of the tunnel information parameter in the DL PDR that matches the second data packet. For example, if the value of the tunnel information parameter is the second UPF network element GTP-U TEID, then the first The second UPF network element determines that the second data packet is received through the N19 interface between the first UPF network element and the second UPF network element. Then, according to the second instruction sent by the SMF network element, it is determined that the path type of the N19 interface between the first UPF network element and the second UPF network element is the branch interface type or the loop interface type.
例如,UPF3确定与第二数据包匹配的DL PDR中的隧道信息参数为UPF3的GTP-U TEID,则UPF3确定第二数据包的传入接口为UPF3与UPF1之间的N19接口,即N19 C接口。然后,根据第二指示中指示的与UPF3相关联的N19接口的路径类型,例如,该第二指示为“N19 B接口的路径类型为环路接口类型、N19 C接口的路径类型为环路接口类型,以及,N19 D接口的路径类型为分支接口类型”,确定该第二数据包的传入接口的路径类型为环路接口类型。For example, if UPF3 determines that the tunnel information parameter in the DL PDR that matches the second data packet is the GTP-U TEID of UPF3, then UPF3 determines that the incoming interface of the second data packet is the N19 interface between UPF3 and UPF1, that is, N19 C interface. Then, according to the path type of the N19 interface associated with UPF3 indicated in the second indication, for example, the second indication is "N19 The path type of the B interface is a loop interface type, and the path type of the N19 C interface is a loop interface. Type, and N19 The path type of the D interface is the branch interface type", and the path type of the incoming interface of the second data packet is determined to be the loop interface type.
然后,第二UPF网元根据传入接口的路径类型以及传输规则,确定传出接口类型。该过程与步骤S508中相似,在此不再赘述。从而,第二UPF网元则从与其相关联的多个N19接口中确定与传出接口类型相匹配的N19接口为第二接口。例如,UPF3确定传入该第二数据包的N19接口为环路接口类型,则根据该转发规则可知,确定传出接口的类型为分支接口类型。与UPF3相关联的N19接口包括N19 B接口、N19 C接口以及N19 D接口,其中,接口的类型为分支接口类型的N19接口为N19 D接口,从而UPF3确定N19 D接口为用于转发该第二数据包的第二接口。Then, the second UPF network element determines the type of the outgoing interface according to the path type of the incoming interface and the transmission rule. This process is similar to that in step S508, and will not be repeated here. Therefore, the second UPF network element determines that the N19 interface matching the outgoing interface type is the second interface from the multiple N19 interfaces associated with it. For example, if UPF3 determines that the N19 interface of the incoming second data packet is of the loop interface type, it can be known according to the forwarding rule that the type of the outgoing interface is determined to be the branch interface type. The N19 interface associated with UPF3 includes the N19 B interface, the N19 C interface, and the N19 D interface. The N19 interface whose interface type is the branch interface type is the N19 D interface, so UPF3 determines that the N19 D interface is used to forward the second interface. The second interface of the packet.
第二种确定方式,对应步骤S503中第二种路由规则中的第二种形式:The second determination method corresponds to the second form in the second routing rule in step S503:
第二UPF网元根据与第二数据包匹配的DL PDR中的传入接口的路径类型参数的取值,确定传入接口的接口类型。若该DL PDR中传入接口的路径类型的取值为环形值,则确定传入接口的类型为环路接口类型,若该DL PDR中传入接口的路径类型的取值为非环形值,则确定传入接口的类型为分支接口类型。The second UPF network element determines the interface type of the incoming interface according to the value of the path type parameter of the incoming interface in the DL PDR that matches the second data packet. If the path type of the incoming interface in the DL PDR is a circular value, then the type of the incoming interface is determined to be a loop interface type. If the path type of the incoming interface in the DL PDR is a non-circular value, It is determined that the type of the incoming interface is the branch interface type.
例如,通过DL PDR的源接口参数中的一个字段来指示接口的路径类型,其中“0”表示环形值,“1”表示非环形值。当UPF3检测到与该第二数据包匹配的DL PDR后,则确定该DL PDR的源接口参数中该字段的取值是否为“0”,若为0,则UPF3确定传入接口的类型为分支接口类型,否则,确定传入接口的类型为环路接口类型。For example, a field in the source interface parameter of DL PDR is used to indicate the path type of the interface, where "0" represents a circular value, and "1" represents a non-circular value. When UPF3 detects the DL PDR that matches the second data packet, it determines whether the value of this field in the source interface parameter of the DL PDR is "0". If it is 0, UPF3 determines that the type of the incoming interface is Branch interface type, otherwise, determine the type of incoming interface as loop interface type.
然后,第二UPF网元根据传入接口的路径类型以及传输规则,确定传出接口类型。具体过程与第一种确定方式中相似,在此不再赘述。Then, the second UPF network element determines the type of the outgoing interface according to the path type of the incoming interface and the transmission rule. The specific process is similar to that in the first determination method, and will not be repeated here.
第三种确定方式,对应步骤S503中第二种路由规则中的第三种形式:The third determination method corresponds to the third form in the second routing rule in step S503:
第二UPF网元根据与第二数据包匹配的DL PDR对应的DL FAR中的传出接口的路径类型参数的取值,确定第二接口。若该DL FAR中传出接口的路径类型参数的取值为所有,则确定传出接口的类型为环路接口类型或分支接口类型,若该DL FAR中传出接口的路径类型参数的取值为非环形值,则确定传出接口的类型为分支接口类型。然后,第二UPF网元则从与其关联的多个N19接口中确定与传出接口的类型匹配的N19接口为第二接口。The second UPF network element determines the second interface according to the value of the path type parameter of the outgoing interface in the DL FAR corresponding to the DL PDR matching the second data packet. If the value of the path type parameter of the outgoing interface in the DL FAR is all, the type of the outgoing interface is determined to be loop interface type or branch interface type, if the value of the path type parameter of the outgoing interface in the DL FAR If it is a non-circular value, it is determined that the type of the outgoing interface is the branch interface type. Then, the second UPF network element determines from the multiple N19 interfaces associated with it that the N19 interface matching the type of the outgoing interface is the second interface.
例如,通过DL FAR的目标接口参数中的一个字段来指示接口的路径类型,其中“0”表示所有,“1”表示非环形值。当UPF3检测到与该第二数据包匹配的DL PDR后,则确定与该DL PDR对应DL FAR中,该字段的取值是否为“0”,若为0,则UPF3确定传出接口 的类型为环路接口类型或分支接口类型,否则,确定传出接口的类型为分支接口类型。例如,UPF3确定传出接口的类型为分支接口类型,而与UPF3相关联的N19接口中只有N19 D接口为分支接口类型,从而UPF3确定N19 D接口为用于转发该第二数据包的第二接口。For example, a field in the target interface parameter of DL FAR is used to indicate the path type of the interface, where "0" means all, and "1" means a non-ring value. When UPF3 detects the DL PDR that matches the second data packet, it determines whether the value of this field in the DL FAR corresponding to the DL PDR is "0", if it is 0, UPF3 determines the type of outgoing interface It is the loop interface type or the branch interface type. Otherwise, the type of the outgoing interface is determined to be the branch interface type. For example, UPF3 determines that the type of the outgoing interface is the branch interface type, and among the N19 interfaces associated with UPF3, only the N19 D interface is the branch interface type, so UPF3 determines that the N19 D interface is the second one used to forward the second data packet. interface.
S515、第三UPF网元确定不转发该第二数据包。S515. The third UPF network element determines not to forward the second data packet.
当第三UPF网元接收到该第二数据包后,也需要执行步骤S512~步骤S515的步骤,在此不再赘述。在本申请实施例中,由于UPF2确定用于转发该第二数据包的N19接口的类型为分支接口类型,而与UPF2相关联的N19接口中没有分支接口类型的N19接口,因此,UPF2确定不用转发该第二数据包。After the third UPF network element receives the second data packet, it also needs to perform steps S512 to S515, which will not be repeated here. In the embodiment of this application, because UPF2 determines that the type of the N19 interface used to forward the second data packet is the branch interface type, and there is no N19 interface of the branch interface type among the N19 interfaces associated with UPF2, UPF2 determines that it is not used Forward the second data packet.
S516、第二UPF网元生成第三数据包。S516: The second UPF network element generates a third data packet.
S517、第二UPF网元发送第三数据包,第四UPF网元接收该第三数据包。S517. The second UPF network element sends a third data packet, and the fourth UPF network element receives the third data packet.
在本申请实施例中,该第二UPF网元为与第二接口连接的UPF网元,例如,该第二接口为N19 D接口,则该第四UPF网元为UPF4。In the embodiment of the present application, the second UPF network element is a UPF network element connected to a second interface. For example, if the second interface is an N19 D interface, the fourth UPF network element is UPF4.
S518、第四UPF网元确定不转发该第三数据包。S518. The fourth UPF network element determines not to forward the third data packet.
当第四UPF网元接收该第三数据包后,执行与前述第二UPF网元相似的处理过程(即步骤S512~步骤S514、步骤S516以及步骤S517),在此不再赘述。After the fourth UPF network element receives the third data packet, it executes a similar processing procedure as the foregoing second UPF network element (ie, steps S512 to S514, step S516, and step S517), which will not be repeated here.
作为一种示例,UPF4确定用于转发该第三数据包的第三接口的类型为环形接口类型,或者是与传入接口不同的其他的分支接口类型的接口。由于UPF4没有其他的分支接口类型的接口,也没有环形接口类型的接口,因此,UPF4确定不转发该第三数据包。As an example, UPF4 determines that the type of the third interface used to forward the third data packet is a ring interface type, or an interface of another branch interface type different from the incoming interface. Because UPF4 has no other branch interface type interface, and no ring interface type interface, UPF4 determines not to forward the third data packet.
在上述技术方案中,当UPF网元接收到广播数据后,可以根据SMF网元设置的N19接口的路径类型(例如为环路接口类型或者分支接口类型)以及对应的路由规则,确定用于转发该广播数据的接口的类型,然后根据确定出的用于转发该广播数据的接口的类型,来决定通过哪些接口转发该广播数据,这样,可以避免通过所有的接口转发广播数据而造成的环路转发问题。In the above technical solution, after the UPF network element receives the broadcast data, it can be determined to be used for forwarding according to the path type of the N19 interface set by the SMF network element (for example, loop interface type or branch interface type) and corresponding routing rules. The type of the interface for the broadcast data, and then according to the determined type of interface for forwarding the broadcast data, to determine which interface to forward the broadcast data through, so that loops caused by forwarding broadcast data through all interfaces can be avoided Forwarding problems.
在图5所示的实施例中,对从终端设备的PDU会话中传入的广播数据的转发过程进行了说明。在实际使用过程中,广播数据也可以是从N19接口中传入的。当广播数据从与第一UPF网元关联的N19接口传入,则第一UPF网元的执行过程与图5所示的实施例中的第二UPF网元的执行过程相似,在此不再赘述。In the embodiment shown in FIG. 5, the process of forwarding broadcast data incoming from the PDU session of the terminal device is described. In actual use, broadcast data can also be passed in from the N19 interface. When broadcast data comes in from the N19 interface associated with the first UPF network element, the execution process of the first UPF network element is similar to the execution process of the second UPF network element in the embodiment shown in FIG. 5, and will not be repeated here. Repeat.
实施例二Example two
请参考图6,为本申请实施例提供的数据转发方法的另一种示例的流程图,该流程图的描述如下:Please refer to FIG. 6, which is a flowchart of another example of the data forwarding method provided in this embodiment of the application. The description of the flowchart is as follows:
S601、SMF网元确定UPF网元之间的N19接口的路径类型。S601. The SMF network element determines the path type of the N19 interface between the UPF network elements.
步骤S601与步骤S501相似,在此不再赘述。Step S601 is similar to step S501 and will not be repeated here.
S602、SMF网元生成与该5GLAN的每个UPF网元对应的路由规则。S602. The SMF network element generates a routing rule corresponding to each UPF network element of the 5GLAN.
在本申请实施例中,该路由规则用于指示将检测到的广播数据转发到N19接口,或者,可以理解为将目的地址为广播地址(例如广播MAC地址或者广播IP地址(FFFFFF))转发到N19接口。为方便说明,下面以SMF网元生成与第一UPF网元对应的路由规则为例,第一UPF网元可以理解为该5GALN中的任意一个UPF网元。In the embodiment of the present application, the routing rule is used to instruct the detected broadcast data to be forwarded to the N19 interface, or it can be understood as the destination address being a broadcast address (for example, a broadcast MAC address or a broadcast IP address (FFFFFF)). N19 interface. For the convenience of description, the following takes the SMF network element to generate a routing rule corresponding to the first UPF network element as an example. The first UPF network element can be understood as any UPF network element in the 5GALN.
在本申请实施例中,广播数据可以是从终端设备的PDU会话传入的,也可以是由核心网侧发送的,从而根据广播数据的不同来源,将该路由规则分为如下两种。In the embodiment of the present application, the broadcast data may be transmitted from the PDU session of the terminal device or sent by the core network side, so that the routing rules are divided into the following two types according to different sources of the broadcast data.
第一种路由规则,与第一UPF网元对应的路由规则包括检测从终端设备的PDU会话传入的广播数据,并转发其到第一UPF网元上所有的N19接口的PDR、FAR。在这种情况下,SMF网元需要针对每个终端设备的N4会话以及组级别的N4会话分别生成如下UL PDR和UL FAR。The first type of routing rule, the routing rule corresponding to the first UPF network element includes detecting broadcast data incoming from the PDU session of the terminal device, and forwarding it to the PDR and FAR of all N19 interfaces on the first UPF network element. In this case, the SMF network element needs to generate the following UL PDR and UL FAR respectively for the N4 session of each terminal device and the N4 session of the group level.
针对每个终端设备的N4会话的路由规则,与步骤S503中相似,在此不再赘述。The routing rule for the N4 session of each terminal device is similar to that in step S503, and will not be repeated here.
针对组级别的N4会话,生成的UL PDR包括:源接口参数设置为第一UPF网元的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,还有关联的FAR的Rule ID。该UL PDR用于检测通过第一UPF网元的内部接口接收的广播数据。For group-level N4 sessions, the generated UL PDR includes: the source interface parameter is set to the value corresponding to the internal interface of the first UPF network element, the target address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR . The UL PDR is used to detect broadcast data received through the internal interface of the first UPF network element.
然后,SMF网元根据传输规则(如果广播数据通过环路接口类型的N19接口接收,则只通过分支接口类型的接口转发该广播数据,以及,如果广播数据从分支接口类型的N19接口接收,则向其他分支接口类型的N19接口和环路接口类型的N19接口转发该广播数据),确定从内部接口接收的广播数据的传出接口。由于内部接口不是环路接口类型,因此,SMF网元确定需要将从内部接口接收的广播数据转发到所有与第一UPF网元关联的所有的N19接口,因此,SMF网元确定与UL PDR对应的UL FAR中,目标接口参数设置为与第一UPF网元关联的所有的N19接口的隧道信息。Then, the SMF network element according to the transmission rules (if the broadcast data is received through the N19 interface of the loop interface type, the broadcast data is only forwarded through the interface of the branch interface type, and if the broadcast data is received from the N19 interface of the branch interface type, then The broadcast data is forwarded to the N19 interface of the other branch interface type and the N19 interface of the loop interface type), and the outgoing interface of the broadcast data received from the internal interface is determined. Since the internal interface is not a loop interface type, the SMF network element determines that it needs to forward the broadcast data received from the internal interface to all N19 interfaces associated with the first UPF network element. Therefore, the SMF network element determines that it corresponds to the UL PDR In the UL FAR, the target interface parameter is set to the tunnel information of all N19 interfaces associated with the first UPF network element.
作为一种示例,第一UPF网元为图3B所示的UPF1,SMF网元生成与UPF1对应的UL PDR包括:源接口参数设置为UPF1的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID;生成的UL FAR包括:目标接口参数设置为“core side”,隧道信息参数设置为N19A接口的隧道信息以及N19C接口的隧道信息。As an example, the first UPF network element is UPF1 shown in FIG. 3B, and the UL PDR generated by the SMF network element corresponding to UPF1 includes: the source interface parameter is set to the value corresponding to the internal interface of UPF1, and the target address in the filter parameter Set as the broadcast address and the Rule ID of the associated FAR; the generated UL FAR includes: the target interface parameter is set to "core side", the tunnel information parameter is set to the tunnel information of the N19A interface and the tunnel information of the N19C interface.
第二种路由规则,与第一UPF网元对应的路由规则包括检测从一个N19接口传入的广播数据,并转发其到第一UPF网元上对应的N19接口的PDR、FAR。在这种情况下,SMF网元生成与第一UPF网元对应的路由规则包括但不限于如下两种形式:The second type of routing rule, the routing rule corresponding to the first UPF network element, includes detecting the incoming broadcast data from an N19 interface and forwarding it to the PDR and FAR of the corresponding N19 interface on the first UPF network element. In this case, the SMF network element generates routing rules corresponding to the first UPF network element, including but not limited to the following two forms:
第一种形式:The first form:
当SMF网元确定每个N19接口的路径类型后,SMF网元会根据与第一UPF网元关联的每个N19接口的路径类型以及传输规则,确定与第一UPF网元对应的路由规则。例如,若与第一UPF网元关联的N19接口有N个,则SMF网元会为第一UPF网元生成N个路由规则,该N个路由规则与该N个N19接口一一对应,用于检测从每个N19接口传入的广播数据。After the SMF network element determines the path type of each N19 interface, the SMF network element will determine the routing rule corresponding to the first UPF network element according to the path type and transmission rule of each N19 interface associated with the first UPF network element. For example, if there are N N19 interfaces associated with the first UPF network element, the SMF network element will generate N routing rules for the first UPF network element, and the N routing rules correspond one-to-one with the N N19 interfaces. To detect the incoming broadcast data from each N19 interface.
作为一种示例,第一UPF网元为图3B所示的UPF1,与UPF1关联的N19接口为N19A接口以及N19C接口。SMF网元可以在组级别的N4会话中生成两个DL PDR以及与每个DL PDR分别对应的DL FAR,其中,第一个DL PDR用于检测通过N19 A接口接收的广播数据,第二个DL PDR用于检测通过N19 C接口接收的广播数据。As an example, the first UPF network element is UPF1 shown in FIG. 3B, and the N19 interface associated with UPF1 is the N19A interface and the N19C interface. The SMF network element can generate two DL PDRs and a DL FAR corresponding to each DL PDR in a group-level N4 session. Among them, the first DL PDR is used to detect broadcast data received through the N19 A interface, and the second DL PDR is used to detect broadcast data received through the N19 C interface.
针对与N19A接口对应的路由规则,由于N19A接口为环路接口类型,因此,SMF网元确定从N19A接口传入的广播数据应该向分支接口类型的接口转发,从而生成与N19A接口对应的路由规则为:Regarding the routing rules corresponding to the N19A interface, since the N19A interface is a loop interface type, the SMF network element determines that the broadcast data incoming from the N19A interface should be forwarded to the branch interface type interface, thereby generating a routing rule corresponding to the N19A interface for:
第一个DL PDR包括:源接口参数设置为N19A接口的隧道信息,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID;The first DL PDR includes: the source interface parameter is set to the tunnel information of the N19A interface, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR;
第一个DL FAR包括:目标接口参数设置为“core side”,且隧道信息参数设置为路径类型为分支接口类型的接口的隧道信息。The first DL FAR includes: the target interface parameter is set to "core side", and the tunnel information parameter is set to the tunnel information of the interface whose path type is the branch interface type.
需要说明的是,由于与UPF1网元关联的N19接口中没有分支接口类型的接口,因此, SMF网元可以设置与N19A接口对应的路由规则,从而,从N19接口传入的广播数据不用转发。It should be noted that, since there is no branch interface type interface in the N19 interface associated with the UPF1 network element, the SMF network element can set routing rules corresponding to the N19A interface, so that the broadcast data incoming from the N19 interface does not need to be forwarded.
针对与N19C接口对应的路由规则,SMF网元生成与N19C接口对应的路由规则的方式与生成N19A接口的路由规则相似,在此不再赘述。Regarding the routing rules corresponding to the N19C interface, the way the SMF network element generates the routing rules corresponding to the N19C interface is similar to that of the N19A interface, and will not be repeated here.
作为另一种示例,第一UPF网元为图3B所示的UPF3,与UPF3关联的N19接口为N19 B接口、N19 C接口以及N19 D接口。SMF网元可以在UPF3的组级别的N4会话中生成三个DL PDR以及与每个DL PDR分别对应的DL FAR,其中,第一个DL PDR用于检测通过N19 B接口接收的广播数据,第二个DL PDR用于检测通过N19 C接口接收的广播数据,第三个DL PDR用于检测通过N19 D接口接收的广播数据。As another example, the first UPF network element is UPF3 shown in FIG. 3B, and the N19 interfaces associated with UPF3 are N19 B interface, N19 C interface, and N19 D interface. The SMF network element can generate three DL PDRs and a DL FAR corresponding to each DL PDR in the N4 session at the group level of UPF3. The first DL PDR is used to detect the broadcast data received through the N19 B interface. The two DL PDRs are used to detect broadcast data received through the N19 C interface, and the third DL PDR is used to detect broadcast data received through the N19 D interface.
针对与N19B接口对应的路由规则,由于N19B接口为环路接口类型,因此,SMF网元确定从N19B接口传入的广播数据应该向分支接口类型的接口转发。与UPF3网元关联的N19接口中的分支接口类型的接口为N19D接口,因此,SMF网元确定从N19B接口传入的广播数据转发到N19D接口,从而生成与N19B接口对应的路由规则为:For the routing rules corresponding to the N19B interface, since the N19B interface is a loop interface type, the SMF network element determines that the broadcast data incoming from the N19B interface should be forwarded to the branch interface type interface. The branch interface type of the N19 interface associated with the UPF3 network element is the N19D interface. Therefore, the SMF network element determines that the incoming broadcast data from the N19B interface is forwarded to the N19D interface, thereby generating the routing rules corresponding to the N19B interface:
第一个DL PDR包括:源接口参数设置为N19B接口对应的取值,隧道参数信息参数设置为N19B接口的隧道信息,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID;The first DL PDR includes: the source interface parameter is set to the value corresponding to the N19B interface, the tunnel parameter information parameter is set to the tunnel information of the N19B interface, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR;
第一个DL FAR包括:目标接口参数设置为“core side”,且隧道信息参数设置为N19D接口的隧道信息。The first DL FAR includes: the target interface parameter is set to "core side", and the tunnel information parameter is set to the tunnel information of the N19D interface.
针对与N19C接口对应的路由规则,与N19B接口对应的路由规则相似,在此不再赘述。The routing rules corresponding to the N19C interface are similar to the routing rules corresponding to the N19B interface, and will not be repeated here.
针对与N19D接口对应的路由规则,由于N19D接口为分支接口类型,因此,SMF网元确定从N19D接口接收的广播数据,向其他分支接口类型的N19接口和环路接口类型的N19接口转发,因此,SMF网元确定从N19D接口传入的广播数据转发到N19B接口和N19C接口,从而生成与N19D接口对应的路由规则为:Regarding the routing rules corresponding to the N19D interface, since the N19D interface is a branch interface type, the SMF network element determines the broadcast data received from the N19D interface and forwards it to the N19 interface of other branch interface types and the N19 interface of the loop interface type. , The SMF network element determines that the incoming broadcast data from the N19D interface is forwarded to the N19B interface and the N19C interface, thereby generating the routing rules corresponding to the N19D interface:
第三个DL PDR包括:源接口参数设置为N19D接口对应的取值,隧道参数信息参数设置为N19D接口的隧道信息,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID;The third DL PDR includes: the source interface parameter is set to the value corresponding to the N19D interface, the tunnel parameter information parameter is set to the tunnel information of the N19D interface, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR;
第三个DL FAR包括:目标接口参数设置为“core side”,且隧道信息参数设置为N19B接口的隧道信息以及N19C接口的隧道信息。The third DL FAR includes: the target interface parameter is set to "core side", and the tunnel information parameter is set to the tunnel information of the N19B interface and the tunnel information of the N19C interface.
第二种形式:The second form:
DL PDR:源接口参数设置为“core side”,过滤器参数中的目标地址设置为广播地址,隧道信息参数的取值设置为N19接口的信息(例如,与对端UPF网元连接的该第一UPF网元的隧道头GTP-U TEID),还有关联的FAR的Rule ID;DL PDR: The source interface parameter is set to "core side", the destination address in the filter parameter is set to the broadcast address, and the value of the tunnel information parameter is set to the information of the N19 interface (for example, the first one connected to the opposite UPF network element) The tunnel header GTP-U TEID of a UPF network element, and the Rule ID of the associated FAR;
DL FAR:目标接口参数设置为第一UPF网元的内部接口对应的值(例如,为“5GLAN internal”),还包括传出接口的路径类型参数。例如,该传出接口的路径类型参数可以为环路接口类型或者非环路接口类型。具体来讲,该传出接口的路径类型参数的取值可以是SMF网元根据传入该广播数据的N19接口确定的。例如,广播数据从N19A接口传入,N19A接口的路径类型为环路接口类型,则该传出接口的路径类型参数设置为环路接口类型。DL FAR: The target interface parameter is set to the value corresponding to the internal interface of the first UPF network element (for example, "5GLAN internal"), and also includes the path type parameter of the outgoing interface. For example, the path type parameter of the outgoing interface may be a loop interface type or a non-loop interface type. Specifically, the value of the path type parameter of the outgoing interface may be determined by the SMF network element according to the N19 interface that receives the broadcast data. For example, if broadcast data comes in from the N19A interface, and the path type of the N19A interface is the loop interface type, the path type parameter of the outgoing interface is set to the loop interface type.
在这种形式下,SMF网元还需要在组级别的N4会话中生成与该第一UPF网元关联的 UL PDR和UL FAR。In this form, the SMF network element also needs to generate the UL PDR and UL FAR associated with the first UPF network element in the N4 session at the group level.
SMF网元确定从环形接口传入的广播数据不用转发,从分支接口传入的数据需要传输到其他所有的N19接口,从而生成与对应的路由规则为:The SMF network element determines that the broadcast data incoming from the ring interface does not need to be forwarded, and the data incoming from the branch interface needs to be transmitted to all other N19 interfaces, thereby generating and corresponding routing rules as:
UL PDR:源接口参数设置为第一UPF网元的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,还有关联的FAR的Rule ID,传入该广播数据的接口的路径类型参数设置为分支接口类型;UL PDR: The source interface parameter is set to the value corresponding to the internal interface of the first UPF network element, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR, the path of the interface through which the broadcast data is transmitted The type parameter is set to the branch interface type;
UL FAR:目标接口参数设置为“core side”,且隧道信息参数设置为所述第一UPF网元中所有的N19接口的隧道信息。或者,UL FAR: The target interface parameter is set to "core side", and the tunnel information parameter is set to tunnel information of all N19 interfaces in the first UPF network element. or,
UL PDR:源接口参数设置为第一UPF网元的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,还有关联的FAR的Rule ID,传入该广播数据的接口的路径类型参数设置为环形接口类型;UL PDR: The source interface parameter is set to the value corresponding to the internal interface of the first UPF network element, the destination address in the filter parameter is set to the broadcast address, and the rule ID of the associated FAR, the path of the interface through which the broadcast data is transmitted The type parameter is set to the ring interface type;
UL FAR:目标接口参数设置为“core side”,且隧道信息参数设置为分支接口类型的接口的隧道信息。需要说明的是,若SMF网元确定该第一UPF网元中没有分支接口类型的接口,则不设置对应的UL PDR和UL FAR。UL FAR: The target interface parameter is set to "core side", and the tunnel information parameter is set to the tunnel information of the interface of the branch interface type. It should be noted that if the SMF network element determines that there is no branch interface type interface in the first UPF network element, the corresponding UL PDR and UL FAR are not set.
作为一种示例,第一UPF网元为图3B所示的UPF3,与UPF3关联的N19接口为N19 B接口、N19 C接口以及N19 D接口。SMF网元可以在UPF3的组级别的N4会话中生成两个UL PDR以及与每个UL PDR分别对应的UL FAR,其中,第一个UL PDR用于检测通过分支接口类型的接口接收的广播数据,第二个UL PDR用于检测通过环路接口类型的接口接收的广播数据。As an example, the first UPF network element is UPF3 shown in FIG. 3B, and the N19 interfaces associated with UPF3 are N19 B interface, N19 C interface, and N19 D interface. The SMF network element can generate two UL PDRs and a UL FAR corresponding to each UL PDR in the group-level N4 session of UPF3. The first UL PDR is used to detect the broadcast data received through the branch interface type interface , The second UL PDR is used to detect the broadcast data received through the loop interface type interface.
第一个UL PDR包括:源接口参数设置为UPF3的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID,传入该广播数据的接口的路径类型参数设置为分支接口类型;The first UL PDR includes: the source interface parameter is set to the value corresponding to the internal interface of UPF3, the destination address in the filter parameter is set to the broadcast address, the rule ID of the associated FAR, and the path type parameter of the interface that transmits the broadcast data Set to branch interface type;
第一个UL FAR包括:目标接口参数设置为“core side”,且隧道信息参数设置为N19 B接口、N19 C接口以及N19D接口的隧道信息。The first UL FAR includes: the target interface parameter is set to "core side", and the tunnel information parameter is set to N19 B interface, N19 C interface, and N19D interface tunnel information.
第二个DL PDR包括:源接口参数设置为UPF3的内部接口对应的值,过滤器参数中的目标地址设置为广播地址,关联的FAR的Rule ID,传入该广播数据的接口的路径类型参数设置为环路接口类型;The second DL PDR includes: the source interface parameter is set to the value corresponding to the internal interface of UPF3, the destination address in the filter parameter is set to the broadcast address, the rule ID of the associated FAR, and the path type parameter of the interface that transmits the broadcast data Set to loop interface type;
第二个DL FAR包括:目标接口参数设置为“core side”,且隧道信息参数设置为N19D接口的隧道信息。The second DL FAR includes: the target interface parameter is set to "core side", and the tunnel information parameter is set to the tunnel information of the N19D interface.
需要说明的是,SMF可以采用上述相同的方式,生成与该5GLAN中的其他UPF对应的路由规则,在此不再赘述。It should be noted that the SMF can use the same manner as described above to generate routing rules corresponding to other UPFs in the 5GLAN, which will not be repeated here.
S603、SMF网元向该5GLAN的每个UPF网元分别发送与其对应的配置信息,每个UPF网元接收与该UPF网元对应的配置信息。S603. The SMF network element sends configuration information corresponding to each UPF network element of the 5GLAN, and each UPF network element receives configuration information corresponding to the UPF network element.
S604、第一UE通过第一UE的PDU会话发送第一数据包,第一UPF网元接收通过该PDU会话发送的第一数据包。S604: The first UE sends the first data packet through the PDU session of the first UE, and the first UPF network element receives the first data packet sent through the PDU session.
在本申请实施例中,该第一数据包的目的地址为广播地址,UPF网元通过PDU会话隧道接收该第一数据包,第一UE可以为与UPF1网元锚定的UE,例如UE1。In the embodiment of the present application, the destination address of the first data packet is a broadcast address, and the UPF network element receives the first data packet through a PDU session tunnel. The first UE may be a UE anchored to the UPF1 network element, such as UE1.
S605、第一UPF网元确定该第一数据包与第一UE的N4会话的UL PDR匹配,转发到UPF的内部接口。S605. The first UPF network element determines that the first data packet matches the UL PDR of the N4 session of the first UE, and forwards it to the internal interface of the UPF.
步骤S603~步骤S605与步骤S504~步骤S506相似,在此不再赘述。Steps S603 to S605 are similar to steps S504 to S506, and will not be repeated here.
S606、第一UPF网元通过内部接口接收该第一数据包,执行数据包与PDR的匹配过程,检测到该第一数据包与第一UPF网元所在的5GLAN的组级别的N4会话的UL PDR匹配。S606. The first UPF network element receives the first data packet through an internal interface, performs a matching process between the data packet and the PDR, and detects the UL of the N4 session of the first data packet and the group level of the 5GLAN where the first UPF network element is located. PDR match.
作为一种示例,第一UPF网元为UPF1,UPF1确定第一数据包与步骤S602的第一种路由规则中的UL PDR匹配。As an example, the first UPF network element is UPF1, and UPF1 determines that the first data packet matches the UL PDR in the first type of routing rule in step S602.
S607、第一UPF网元生成第二数据包。S607: The first UPF network element generates a second data packet.
作为一种示例,第一UPF网元为UPF1,UPF1确定与步骤S602的第一种路由规则中的UL PDR对应的UL FAR中指示的目标接口为N19A接口和N19C接口,则UPF1复制第一数据包,生成两个第二数据包,然后将该两个第二数据包分别发送到N19A接口和N19C接口。As an example, the first UPF network element is UPF1, and UPF1 determines that the target interfaces indicated in the UL FAR corresponding to the UL PDR in the first routing rule in step S602 are the N19A interface and the N19C interface, and UPF1 copies the first data Packet, generate two second data packets, and then send the two second data packets to the N19A interface and the N19C interface respectively.
其中,UPF1复制第一数据包的方式与步骤S509相似,在此不再赘述。Wherein, the manner of UPF1 copying the first data packet is similar to step S509, and will not be repeated here.
S608、第一UPF网元向第二UPF网元发送第二数据包以及向第三UPF网元发送第二数据包,第二UPF网元和第三UPF网元接收该第二数据包。S608. The first UPF network element sends a second data packet to the second UPF network element and sends a second data packet to the third UPF network element, and the second UPF network element and the third UPF network element receive the second data packet.
作为一种示例,当UPF1生成第二数据包后,则根据与第一数据包匹配的UL PDR对应的UL FAR转发该第二数据包。该UL FAR中指示的目标接口为N19A接口和N19C接口,则UPF1通过N19A接口向UPF2发送第二数据包,以及通过N19C接口向UPF3发送第二数据包。As an example, after UPF1 generates the second data packet, it forwards the second data packet according to the UL FAR corresponding to the UL PDR matching the first data packet. The target interfaces indicated in the UL FAR are the N19A interface and the N19C interface, and UPF1 sends the second data packet to UPF2 through the N19A interface, and sends the second data packet to UPF3 through the N19C interface.
S609、第二UPF网元执行数据包与PDR的匹配过程,检测到与该第二数据包匹配的PDR。S609. The second UPF network element performs a matching process between the data packet and the PDR, and detects a PDR matching the second data packet.
在本申请实施例中,根据第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则的不同,本申请实施例中的方法后续的执行步骤不同。若第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S602中第二种路由规则的第二种形式,则本申请实施例中的方法执行步骤S610~步骤S615,若第二UPF网元中配置的用于检测从N19接口传入的广播数据的路由规则为步骤S602中第二种路由规则的第一种形式,则本申请实施例中的方法执行步骤S612~步骤S615。也就是说,步骤S610~步骤S612为可选步骤,因此,在图6中这两个步骤用虚线表示。In the embodiment of the present application, according to the different routing rules configured in the second UPF network element for detecting the broadcast data incoming from the N19 interface, the subsequent execution steps of the method in the embodiment of the present application are different. If the routing rule configured in the second UPF network element for detecting the broadcast data incoming from the N19 interface is the second form of the second routing rule in step S602, the method in the embodiment of the present application executes steps S610- Step S615: If the routing rule configured in the second UPF network element for detecting broadcast data incoming from the N19 interface is the first form of the second routing rule in step S602, then the method in this embodiment of the application is executed Steps S612 to S615. In other words, step S610 to step S612 are optional steps. Therefore, these two steps are represented by dotted lines in FIG. 6.
为方便说明,在下文中,以第二UPF网元为UPF3为例。For ease of description, in the following, the second UPF network element is UPF3 as an example.
S610、第二UPF网元将该第二数据包发送到第二UPF网元的内部接口。S610. The second UPF network element sends the second data packet to the internal interface of the second UPF network element.
第二UPF网元确定第二数据包匹配的PDR为步骤S602中第二种路由规则的第二种形式,则根据与第二数据包匹配的DL PDR对应的DL FAR,将该第二数据包发送第二UPF网元的内部接口,同时发送环形接口值。该环形接口值用于指示传入所述第二数据包的接口的路径类型为环路接口类型。The second UPF network element determines that the PDR matched by the second data packet is the second form of the second routing rule in step S602, and then according to the DL FAR corresponding to the DL PDR that matches the second data packet, the second data packet Send the internal interface of the second UPF network element and send the ring interface value at the same time. The ring interface value is used to indicate that the path type of the interface through which the second data packet is received is a ring interface type.
S611、第二UPF网元通过内部接口接收该第二数据包,执行数据包与PDR的匹配过程,检测到该第二数据包与组级别的N4会话的UL PDR匹配。S611. The second UPF network element receives the second data packet through an internal interface, performs a matching process between the data packet and the PDR, and detects that the second data packet matches the UL PDR of the group-level N4 session.
作为一种示例,第二UPF网元确定与第二数据包匹配的PDR为,步骤S602的第二种路由规则的第二种形式中,与N19C接口对应的路由规则中的UL PDR。As an example, the second UPF network element determines that the PDR matching the second data packet is, in the second form of the second routing rule in step S602, the UL PDR in the routing rule corresponding to the N19C interface.
S612、第二UPF网元生成第三数据包。S612. The second UPF network element generates a third data packet.
作为一种示例,UPF3确定与第二数据包匹配的UL PDR对应的UL FAR中指示的目标接口为N19D接口,则UPF3复制第二数据包,生成一个第三数据包。As an example, UPF3 determines that the target interface indicated in the UL FAR corresponding to the UL PDR that matches the second data packet is the N19D interface, and UPF3 copies the second data packet to generate a third data packet.
S613、第三UPF网元确定不转发该第二数据包。S613. The third UPF network element determines not to forward the second data packet.
第三UPF网元在通过内部接口接收该第二数据包,执行数据包与PDR的匹配过程,检测不到与该第二数据包匹配的PDR,从而确定不转发该第二数据包。The third UPF network element receives the second data packet through the internal interface, performs a matching process between the data packet and the PDR, and cannot detect the PDR matching the second data packet, and thus determines not to forward the second data packet.
S614、第二UPF网元根据与第二数据包匹配的UL PDR对应的UL FAR,向第四UPF网元发送该第三数据包,第四UPF网元接收该第三数据包。S614. The second UPF network element sends the third data packet to the fourth UPF network element according to the UL FAR corresponding to the UL PDR matching the second data packet, and the fourth UPF network element receives the third data packet.
作为一种示例,UPF3确定与第二数据包匹配的UL PDR对应的UL FAR中指示的目标接口为N19D接口,则UPF3通过N19D接口,将该第三数据包发送给UPF4。As an example, UPF3 determines that the target interface indicated in the UL FAR corresponding to the UL PDR matching the second data packet is the N19D interface, and then UPF3 sends the third data packet to UPF4 through the N19D interface.
S615、第四UPF网元确定不转发该第三数据包。S615. The fourth UPF network element determines not to forward the third data packet.
第四UPF网元在通过N19D接口接收该第三数据包,执行数据包与PDR的匹配过程,匹配到N19D对应的DL PDR过后,转发到内部接口后,之后,检测不到与该第三数据包匹配的UL PDR,从而确定不转发该第三数据包。The fourth UPF network element receives the third data packet through the N19D interface, performs the matching process between the data packet and the PDR, and after matching the DL PDR corresponding to the N19D, it is forwarded to the internal interface. After that, the third data packet cannot be detected. The UL PDR that the packet matches, thereby determining not to forward the third data packet.
在上述技术方案中,SMF网元根据预设的传输规则以及每个N19接口的路径类型(例如为环路接口类型或者分支接口类型),为每个UPF网元配置对应的路由规则,这样,当UPF网元接收到广播数据后,可以根据该UPF网元中配置的路由规则来转发该广播数据,这样,可以避免通过所有的接口转发广播数据而造成的环路转发问题。In the above technical solution, SMF network elements configure corresponding routing rules for each UPF network element according to the preset transmission rules and the path type of each N19 interface (for example, loop interface type or branch interface type). After the UPF network element receives the broadcast data, it can forward the broadcast data according to the routing rules configured in the UPF network element. In this way, loop forwarding problems caused by forwarding broadcast data through all interfaces can be avoided.
上述本申请提供的实施例中,分别从终端设备、用户面功能网元以及会话管理功能网元之间交互的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,用户面功能网元以及会话管理功能网元可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspective of interaction between terminal devices, user plane function network elements, and session management function network elements. In order to implement the functions in the method provided in the above embodiments of the present application, the user plane function network element and the session management function network element may include a hardware structure and/or software module, and a hardware structure, a software module, or a hardware structure plus a software module Form to achieve the above functions. Whether one of the above-mentioned functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
图7示出了一种通信装置700的结构示意图。其中,通信装置700可以是第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元,能够实现本申请实施例提供的方法中第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元的功能;通信装置700也可以是能够支持第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元实现本申请实施例提供的方法中对应的功能的装置。通信装置700可以是硬件结构、软件模块、或硬件结构加软件模块。通信装置700可以由芯片系统实现。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 7 shows a schematic structural diagram of a communication device 700. The communication device 700 may be any one of the first user plane function network element to the fourth user plane function network element, and can implement the first user plane function network element in the method provided in the embodiment of the present application. The function of any one of the fourth user plane function network elements; the communication device 700 may also be capable of supporting any one of the first user plane function network element to the fourth user plane function network element A device that implements the corresponding function in the method provided in the embodiment of the application. The communication device 700 may be a hardware structure, a software module, or a hardware structure plus a software module. The communication device 700 may be implemented by a chip system. In the embodiments of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
通信装置700可以包括处理单元701和收发单元702。The communication device 700 may include a processing unit 701 and a transceiving unit 702.
处理单元701可以用于执行图5所示的实施例中的步骤S506~步骤S509,或用于执行图5所示的实施例中的步骤S511~步骤S514以及步骤S516,或用于执行图5所示的实施例中的步骤S515,或用于执行图5所示的实施例中的步骤S518,或用于执行图6所示的实施例中的步骤S605~步骤S607,或用于执行图6所示的实施例中的步骤S609~步骤S612,或用于执行图6所示的实施例中的步骤S613,或用于执行图6所示的实施例中的步骤S615,和/或用于支持本文所描述的技术的其它过程。The processing unit 701 may be used to perform steps S506 to S509 in the embodiment shown in FIG. 5, or to perform steps S511 to S514 and step S516 in the embodiment shown in FIG. 5, or to perform Step S515 in the illustrated embodiment is used to perform step S518 in the embodiment shown in FIG. 5, or used to perform step S605 to step S607 in the embodiment shown in FIG. 6, or used to perform Steps S609 to S612 in the embodiment shown in FIG. 6 are used to perform step S613 in the embodiment shown in FIG. 6, or used to perform step S615 in the embodiment shown in FIG. 6, and/or used To support other processes of the technology described in this article.
收发单元702用于通信装置700和其它模块进行通信,其可以是电路、器件、接口、总线、软件模块、收发器或者其它任意可以实现通信的装置。The transceiver unit 702 is used for the communication device 700 to communicate with other modules, and it may be a circuit, a device, an interface, a bus, a software module, a transceiver, or any other device that can implement communication.
收发单元702可以用于执行图5所示的实施例中的步骤S502、步骤S504、步骤S505以及步骤S510,或用于执行图5所示的实施例中的步骤S517,或用于执行图6所示的实施例中的步骤S603~S604、步骤S608,或用于执行图6所示的实施例中的步骤S614,和/ 或用于支持本文所描述的技术的其它过程。The transceiver unit 702 can be used to perform step S502, step S504, step S505, and step S510 in the embodiment shown in FIG. 5, or used to perform step S517 in the embodiment shown in FIG. 5, or used to perform step S517 in the embodiment shown in FIG. Steps S603 to S604 and step S608 in the illustrated embodiment are used to perform step S614 in the embodiment shown in FIG. 6 and/or other processes used to support the technology described herein.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
图8示出了一种通信装置800的结构示意图。其中,通信装置800可以是会话管理功能网元,能够实现本申请实施例提供的方法中会话管理功能网元的功能;通信装置800也可以是能够支持会话管理功能网元实现本申请实施例提供的方法中会话管理功能网元的功能的装置。通信装置800可以是硬件结构、软件模块、或硬件结构加软件模块。通信装置800可以由芯片系统实现。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 8 shows a schematic structural diagram of a communication device 800. Wherein, the communication device 800 may be a session management function network element, which can realize the function of the session management function network element in the method provided in the embodiment of the present application; In the method, the session management function is a device that functions as a network element. The communication device 800 may be a hardware structure, a software module, or a hardware structure plus a software module. The communication device 800 may be implemented by a chip system. In the embodiments of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
通信装置800可以包括处理单元801和收发单元802。The communication device 800 may include a processing unit 801 and a transceiving unit 802.
处理单元801可以用于执行图5所示的实施例中的步骤S501以及步骤S503,或用于执行图6所示的实施例中的步骤S601~步骤S602,和/或用于支持本文所描述的技术的其它过程。The processing unit 801 may be used to perform step S501 and step S503 in the embodiment shown in FIG. 5, or used to perform step S601 to step S602 in the embodiment shown in FIG. 6, and/or used to support the steps described herein Other processes of the technology.
收发单元802用于通信装置800和其它模块进行通信,其可以是电路、器件、接口、总线、软件模块、收发器或者其它任意可以实现通信的装置。The transceiver unit 802 is used for the communication device 800 to communicate with other modules, and it may be a circuit, a device, an interface, a bus, a software module, a transceiver, or any other device that can implement communication.
收发单元802可以用于执行图5所示的实施例中的步骤S502以及步骤S504,或用于执行图6所示的实施例中的步骤S603,和/或用于支持本文所描述的技术的其它过程。The transceiver unit 802 may be used to perform step S502 and step S504 in the embodiment shown in FIG. 5, or used to perform step S603 in the embodiment shown in FIG. 6, and/or used to support the technology described herein. Other processes.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant content of each step involved in the above method embodiment can be cited in the function description of the corresponding function module, and will not be repeated here.
如图9所示为本申请实施例提供的通信装置900,其中,通信装置900可以是第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元,能够实现本申请实施例提供的方法中第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元的功能;通信装置900也可以是能够支持第一用户面功能网元~第四用户面功能网元中的任意一个用户面功能网元实现本申请实施例提供的方法中对应的功能的装置。其中,该通信装置900可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。Figure 9 shows a communication device 900 provided by an embodiment of the application, where the communication device 900 may be any one of the first user plane function network element to the fourth user plane function network element, which can implement The function of any one of the user plane function network element from the first user plane function network element to the fourth user plane function network element in the method provided in the embodiment of the present application; the communication device 900 may also be capable of supporting the first user plane function network element ~A device for any one of the fourth user plane function network elements to implement the corresponding function in the method provided in the embodiment of the present application. Wherein, the communication device 900 may be a chip system. In the embodiments of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
在硬件实现上,上述收发单元702可以为收发器,收发器集成在通信装置900中构成通信接口910。In terms of hardware implementation, the foregoing transceiver unit 702 may be a transceiver, and the transceiver is integrated in the communication device 900 to form a communication interface 910.
通信装置900包括至少一个处理器920,用于实现或用于支持通信装置900实现本申请实施例提供的方法中第一用户面功能网元的功能。示例性地,处理器920可以确定根据与数据包匹配的PDR确定用于转发该数据包的发送路径的路径类型,具体参见方法示例中的详细描述,此处不做赘述。The communication device 900 includes at least one processor 920, configured to implement or support the communication device 900 to implement the function of the first user plane function network element in the method provided in the embodiment of the present application. Exemplarily, the processor 920 may determine to determine the path type of the transmission path for forwarding the data packet according to the PDR matching the data packet. For details, refer to the detailed description in the method example, which will not be repeated here.
通信装置900还可以包括至少一个存储器930,用于存储程序指令和/或数据。存储器930和处理器920耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器920可能和存储器930协同操作。处理器920可能执行存储器930中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。The communication device 900 may also include at least one memory 930 for storing program instructions and/or data. The memory 930 and the processor 920 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 920 may operate in cooperation with the memory 930. The processor 920 may execute program instructions stored in the memory 930. At least one of the at least one memory may be included in the processor.
通信装置900还可以包括通信接口910,用于通过传输介质和其它设备进行通信,从而用于装置900中的装置可以和其它设备进行通信。示例性地,该其它设备可以是终端。处理器920可以利用通信接口910收发数据。通信接口910具体可以是收发器。The communication device 900 may further include a communication interface 910 for communicating with other devices through a transmission medium, so that the device used in the device 900 can communicate with other devices. Exemplarily, the other device may be a terminal. The processor 920 may use the communication interface 910 to send and receive data. The communication interface 910 may specifically be a transceiver.
本申请实施例中不限定上述通信接口910、处理器920以及存储器930之间的具体连接介质。本申请实施例在图9中以存储器930、处理器920以及通信接口910之间通过总线940连接,总线在图9中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the above-mentioned communication interface 910, the processor 920, and the memory 930 is not limited in the embodiment of the present application. In the embodiment of the present application, the memory 930, the processor 920, and the communication interface 910 are connected by a bus 940 in FIG. 9. The bus is represented by a thick line in FIG. 9, and the connection modes between other components are merely illustrative. , Is not limited. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器920可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment of the present application, the processor 920 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器930可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In the embodiment of the present application, the memory 930 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory (volatile memory). For example, random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
如图10所示为本申请实施例提供的通信装置1000,其中,通信装置1000可以是会话管理功能网元,能够实现本申请实施例提供的方法中会话管理功能网元的功能;通信装置1000也可以是能够支持终端实现本申请实施例提供的方法中会话管理功能网元的功能的装置。其中,该通信装置1000可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。As shown in FIG. 10 is a communication device 1000 provided by an embodiment of this application, where the communication device 1000 may be a network element with a session management function, which can realize the function of a network element with a session management function in the method provided in the embodiment of this application; the communication device 1000 It may also be a device capable of supporting the terminal to realize the function of the session management function network element in the method provided in the embodiment of the present application. Wherein, the communication device 1000 may be a chip system. In the embodiments of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
在硬件实现上,上述收发单元802可以为收发器,收发器集成在通信装置1000中构成通信接口1010。In terms of hardware implementation, the foregoing transceiver unit 802 may be a transceiver, and the transceiver is integrated in the communication device 1000 to form a communication interface 1010.
通信装置1000包括至少一个处理器1020,用于实现或用于支持通信装置1000实现本申请实施例提供的方法中会话管理功能网元的功能。示例性地,处理器1020可以生成与每个UPF网元对应的路由规则,具体参见方法示例中的详细描述,此处不做赘述。The communication device 1000 includes at least one processor 1020, configured to implement or support the communication device 1000 to implement the function of the session management function network element in the method provided in the embodiment of the present application. Exemplarily, the processor 1020 may generate a routing rule corresponding to each UPF network element. For details, refer to the detailed description in the method example, which will not be repeated here.
通信装置1000还可以包括至少一个存储器1030,用于存储程序指令和/或数据。存储器1030和处理器1020耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1020可能和存储器1030协同操作。处理器1020可能执行存储器1030中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。The communication device 1000 may further include at least one memory 1030 for storing program instructions and/or data. The memory 1030 and the processor 1020 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1020 may cooperate with the memory 1030 to operate. The processor 1020 may execute program instructions stored in the memory 1030. At least one of the at least one memory may be included in the processor.
通信装置1000还可以包括通信接口1010,用于通过传输介质和其它设备进行通信,从而用于装置1000中的装置可以和其它设备进行通信。示例性地,该其它设备可以是终端。处理器1020可以利用通信接口1010收发数据。通信接口1010具体可以是收发器。The communication device 1000 may further include a communication interface 1010 for communicating with other devices through a transmission medium, so that the device used in the device 1000 can communicate with other devices. Exemplarily, the other device may be a terminal. The processor 1020 may use the communication interface 1010 to send and receive data. The communication interface 1010 may specifically be a transceiver.
本申请实施例中不限定上述通信接口1010、处理器1020以及存储器1030之间的具体连接介质。本申请实施例在图10中以存储器1030、处理器1020以及通信接口1010之间通过总线1040连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The embodiment of the present application does not limit the specific connection medium between the communication interface 1010, the processor 1020, and the memory 1030. In the embodiment of the present application, in FIG. 10, the memory 1030, the processor 1020, and the communication interface 1010 are connected by a bus 1040. The bus is represented by a thick line in FIG. 10, and the connection modes between other components are merely illustrative. , Is not limited. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used to represent in FIG. 10, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器1020可以是通用处理器、数字信号处理器、专用集成电 路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment of the present application, the processor 1020 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器1030可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In the embodiment of the present application, the memory 1030 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., and may also be a volatile memory (volatile memory), For example, random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory in the embodiments of the present application may also be a circuit or any other device capable of realizing a storage function, for storing program instructions and/or data.
本申请实施例提供的一种通信系统的结构示意图可参见图11,具体的,通信系统1100包括第一用户面功能网元和会话管理功能网元,可选的,还包括第二用户面功能网元和/或第三用户面功能网元,或者还可以包括更多个用户面功能网元,在图11中以第二用户面功能网元和第三用户面功能网元为例。For a schematic structural diagram of a communication system provided by an embodiment of the present application, refer to FIG. 11. Specifically, the communication system 1100 includes a first user plane function network element and a session management function network element, and optionally, a second user plane function The network element and/or the third user plane function network element may also include more user plane function network elements. In FIG. 11, the second user plane function network element and the third user plane function network element are taken as examples.
所述第一用户面功能网元、第二用户面功能网元和会话管理功能网元分别用于实现上述图5或图6中相关网元的功能。具体请参考上述方法实施例中的相关描述,这里不再赘述。The first user plane function network element, the second user plane function network element, and the session management function network element are respectively used to implement the functions of the related network elements in FIG. 5 or FIG. 6. For details, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
本申请实施例中还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行图5或图6中第一用户面功能网元~第四用户面功能网元和会话管理功能网元执行的方法。The embodiment of the present application also provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the first user plane function network element to the fourth user plane function network element in FIG. 5 or FIG. 6 And session management function network element execution method.
本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行图5或图6中第一用户面功能网元~第四用户面功能网元和会话管理功能网元执行的方法。The embodiments of the present application also provide a computer program product, including instructions, which when run on a computer, cause the computer to execute the first user plane function network element to the fourth user plane function network element and session in FIG. 5 or FIG. The method of management function network element execution.
本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述方法中第一用户面功能网元~第四用户面功能网元和会话管理功能网元的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。The embodiment of the present application provides a chip system, which includes a processor and may also include a memory for implementing the first user plane function network element to the fourth user plane function network element and the session management function network element in the foregoing method Function. The chip system can be composed of chips, or can include chips and other discrete devices.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,简称DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,简称DVD))、或者半导体介质(例如,SSD)等。The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, network equipment, user equipment, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL for short) or wireless (such as infrared, wireless, microwave, etc.). A 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, etc., integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, hard disk, Magnetic tape), optical media (for example, digital video disc (DVD for short)), or semiconductor media (for example, SSD).
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。 这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application also intends to include these modifications and variations.

Claims (35)

  1. 一种数据转发方法,其特征在于,包括:A data forwarding method, characterized in that it comprises:
    第一用户面功能网元接收第一数据包;The first user plane function network element receives the first data packet;
    所述第一用户面功能网元根据与所述第一数据包匹配的路由规则,确定发送路径的第一路径类型,所述第一路径类型包括环路接口类型、分支接口类型中的一个或多个,所述发送路径用于转发所述第一数据包到其他用户面功能网元;The first user plane function network element determines the first path type of the transmission path according to the routing rule matching the first data packet, and the first path type includes one of a loop interface type, a branch interface type, or Multiple, the sending path is used to forward the first data packet to other user plane function network elements;
    所述第一用户面功能网元根据所述第一路径类型确定所述发送路径。The first user plane function network element determines the transmission path according to the first path type.
  2. 根据权利要求1所述的方法,其特征在于,所述第一用户面功能网元根据所述第一路径类型确定所述发送路径,包括:The method according to claim 1, wherein the first user plane function network element determining the transmission path according to the first path type comprises:
    所述第一用户面功能网元从所述第一用户面功能网元的至少一个传输路径中,确定路径类型为所述第一路径类型的传输路径为所述发送路径;Determining, by the first user plane function network element, a transmission path whose path type is the first path type from at least one transmission path of the first user plane function network element as the transmission path;
    所述方法还包括:The method also includes:
    所述第一用户面功能网元通过所述发送路径向所述其他用户面功能网元转发所述第一数据包。The first user plane function network element forwards the first data packet to the other user plane function network element through the transmission path.
  3. 根据权利要求1所述的方法,其特征在于,所述第一用户面功能网元根据所述第一路径类型确定所述发送路径,包括:The method according to claim 1, wherein the first user plane function network element determining the transmission path according to the first path type comprises:
    所述第一用户面功能网元确定所述第一用户面功能网元的至少一个传输路径中不包括与所述第一路径类型相同的传输路径;Determining, by the first user plane function network element, that at least one transmission path of the first user plane function network element does not include a transmission path of the same type as the first path;
    所述方法还包括:The method also includes:
    所述第一用户面功能网元确定不转发所述第一数据包。The first user plane function network element determines not to forward the first data packet.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,The method according to any one of claims 1-3, characterized in that,
    所述路由规则包括用于检测所述第一数据包的报文检测规则PDR或用于转发所述第一数据包的转发行为规则FAR。The routing rule includes a packet detection rule PDR for detecting the first data packet or a forwarding behavior rule FAR for forwarding the first data packet.
  5. 根据权利要求4所述的方法,其特征在于,所述第一用户面功能网元根据与所述第一数据包匹配的路由规则,确定所述第一路径类型,包括:The method according to claim 4, wherein the first user plane function network element determines the first path type according to a routing rule matching the first data packet, comprising:
    所述第一用户面功能网元根据所述PDR确定接收路径的第二路径类型,所述第一用户面功能网元通过所述接收路径接收所述第一数据包;Determining, by the first user plane function network element, a second path type of the receiving path according to the PDR, and the first user plane function network element receiving the first data packet through the receiving path;
    所述第一用户面功能网元根据所述第二路径类型及预设的传输规则,确定所述第一路径类型。The first user plane function network element determines the first path type according to the second path type and a preset transmission rule.
  6. 根据权利要求5所述的方法,其特征在于,所述第一用户面功能网元根据所述PDR确定接收路径的第二路径类型,包括:The method according to claim 5, wherein the first user plane function network element determining the second path type of the receiving path according to the PDR comprises:
    所述PDR中包括接收路径的路径类型参数,所述第一用户面功能网元根据所述接收路径的路径类型参数的取值,确定所述第二路径类型;或,The PDR includes the path type parameter of the receiving path, and the first user plane function network element determines the second path type according to the value of the path type parameter of the receiving path; or,
    所述PDR中包括接收路径的隧道信息参数,所述第一用户面功能网元根据所述接收路径的隧道信息参数的取值及所述第一用户面功能网元的至少一个传输路径的路径类型,确定所述第二路径类型。The PDR includes the tunnel information parameter of the receiving path, and the first user plane function network element is based on the value of the tunnel information parameter of the receiving path and the path of at least one transmission path of the first user plane function network element Type to determine the second path type.
  7. 根据权利要求5或6所述的方法,其特征在于,所述预设的传输规则包括:The method according to claim 5 or 6, wherein the preset transmission rule comprises:
    若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路 径类型为所述分支接口类型和所述环路接口类型。If the path type of the receiving path is the loop interface type, the path type of the sending path is the branch interface type, and if the path type of the receiving path is the branch interface type, then the sending path The path type of the path is the branch interface type and the loop interface type.
  8. 根据权利要求4所述的方法,其特征在于,所述第一用户面功能网元根据与所述第一数据包匹配的路由规则,确定所述第一路径类型,包括:The method according to claim 4, wherein the first user plane function network element determines the first path type according to a routing rule matching the first data packet, comprising:
    所述第一用户面功能网元根据所述FAR中包括的发送路径的路径类型参数的取值,确定所述第一路径类型。The first user plane function network element determines the first path type according to the value of the path type parameter of the transmission path included in the FAR.
  9. 根据权利要求5-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 5-8, wherein the method further comprises:
    所述第一用户面功能网元从会话管理功能网元接收第一指示,所述第一指示用于指示所述第一用户面功能网元的至少一个传输路径的路径类型。The first user plane function network element receives a first indication from the session management function network element, where the first indication is used to indicate a path type of at least one transmission path of the first user plane function network element.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, wherein the method further comprises:
    所述第一用户面功能网元从会话管理功能网元接收所述路由规则。The first user plane function network element receives the routing rule from the session management function network element.
  11. 一种数据转发方法,其特征在于,包括:A data forwarding method, characterized in that it comprises:
    会话管理功能网元根据第一用户面功能网元的传输路径的路径类型以及预设的传输规则,生成与所述第一用户面功能网元对应的一组路由规则,所述传输路径的路径类型包括环路接口类型、分支接口类型中的一个或多个,所述预设的传输规则包括若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路径类型为所述分支接口类型和所述环路接口类型;The session management function network element generates a set of routing rules corresponding to the first user plane function network element according to the path type of the transmission path of the first user plane function network element and the preset transmission rules, and the path of the transmission path The type includes one or more of a loop interface type and a branch interface type, and the preset transmission rule includes that if the path type of the receiving path is the loop interface type, the path type of the sending path is The branch interface type, and if the path type of the receiving path is a branch interface type, the path type of the sending path is the branch interface type and the loop interface type;
    所述会话管理功能网元将所述一组路由规则发送给所述第一用户面功能网元。The session management function network element sends the set of routing rules to the first user plane function network element.
  12. 根据权利要求11所述的方法,其特征在于,The method according to claim 11, wherein:
    所述一组路由规则包括用于检测第一数据包的报文检测规则PDR和用于转发所述第一数据包的转发行为规则FAR。The set of routing rules includes a packet detection rule PDR for detecting the first data packet and a forwarding behavior rule FAR for forwarding the first data packet.
  13. 根据权利要求11或12所述的方法,其特征在于,所述会话管理功能网元生成的与所述第一用户面功能网元对应的一组路由规则,包括:The method according to claim 11 or 12, wherein a set of routing rules corresponding to the first user plane function network element generated by the session management function network element comprises:
    第一PDR,所述第一PDR用于检测从第一N19路径接收的所述第一数据包,所述第一用户面功能网元的传输路径包括所述第一N19路径;以及,A first PDR, where the first PDR is used to detect the first data packet received from a first N19 path, and the transmission path of the first user plane function network element includes the first N19 path; and,
    与所述第一PDR关联的第一FAR,所述第一FAR包括第二N19路径的隧道信息,所述第一用户面功能网元的传输路径包括所述第二N19路径。A first FAR associated with the first PDR, where the first FAR includes tunnel information of a second N19 path, and the transmission path of the first user plane function network element includes the second N19 path.
  14. 根据权利要求13所述的方法,其特征在于,The method according to claim 13, wherein:
    若所述第一N19路径的路径类型为环路接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若所述第一N19路径的路径类型为分支接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中除所述第一N19路径之外的其他N19路径。If the path type of the first N19 path is a loop interface type, the second N19 path is an N19 path whose path type is a branch interface type in the transmission path of the first user plane function network element. The path type of the first N19 path is a branch interface type, and the second N19 path is a N19 path other than the first N19 path in the transmission path of the first user plane function network element.
  15. 根据权利要求11或12所述的方法,其特征在于,所述会话管理功能网元生成与所述第一用户面功能网元对应的一组路由规则,包括:The method according to claim 11 or 12, wherein the session management function network element generating a set of routing rules corresponding to the first user plane function network element comprises:
    第一PDR,所述第一PDR用于检测从第一N19路径接收的所述第一数据包,所述第一用户面功能网元所包括的传输路径包括所述第一N19路径;以及,A first PDR, where the first PDR is used to detect the first data packet received from a first N19 path, and the transmission path included in the first user plane function network element includes the first N19 path; and,
    与所述第一PDR关联的第一FAR,所述第一FAR用于将所述第一数据包转发到所述第一用户面功能网元的内部接口,所述第一FAR中包括传出接口的路径类型参数,其中,所述传出接口的路径类型参数包括所述环路接口类型或所述分支接口类型;以及,A first FAR associated with the first PDR, the first FAR is used to forward the first data packet to the internal interface of the first user plane function network element, and the first FAR includes outgoing The path type parameter of the interface, where the path type parameter of the outgoing interface includes the loop interface type or the branch interface type; and,
    第二PDR,所述第二PDR用于检测从所述内部接口接收的所述第一数据包,所述第 二PDR中包括传入接口的路径类型参数;以及,A second PDR, the second PDR is used to detect the first data packet received from the internal interface, and the second PDR includes the path type parameter of the incoming interface; and,
    与所述第二PDR关联的第二FAR,所述第二FAR包括第二N19路径的隧道信息,所述第一用户面功能网元的传输路径包括所述第二N19路径,所述第二N19路径是路径类型为所述环路接口类型、所述分支接口类型的传输路径中的一个或多个。A second FAR associated with the second PDR, where the second FAR includes tunnel information of a second N19 path, the transmission path of the first user plane function network element includes the second N19 path, and the second FAR The N19 path is one or more of the transmission paths whose path types are the loop interface type and the branch interface type.
  16. 根据权利要求15所述的方法,其特征在于,The method according to claim 15, wherein:
    若所述第一N19路径的路径类型为环路接口类型,所述传出接口的路径类型参数的取值为环路接口类型,若所述第一N19路径的路径类型为分支接口类型,则所述传出接口的路径类型参数的取值分支接口类型;以及,If the path type of the first N19 path is a loop interface type, the value of the path type parameter of the outgoing interface is a loop interface type, and if the path type of the first N19 path is a branch interface type, then The value branch interface type of the path type parameter of the outgoing interface; and,
    若所述传入接口的路径类型参数为环路接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若所述传入接口的路径类型参数为分支接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中除所述第一N19路径之外的其他N19路径。If the path type parameter of the incoming interface is a loop interface type, the second N19 path is an N19 path whose path type is a branch interface type in the transmission path of the first user plane function network element. The path type parameter of the incoming interface is a branch interface type, and the second N19 path is a N19 path other than the first N19 path in the transmission path of the first user plane function network element.
  17. 根据权利要求11-16任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11-16, wherein the method further comprises:
    所述会话管理功能网元根据5G局域网LAN群组的用户面的网络拓扑接口,确定所述第一用户面功能网元的传输路径的路径类型,所述第一用户面功能网元属于所述5GLAN群组。The session management function network element determines the path type of the transmission path of the first user plane function network element according to the network topology interface of the user plane of the 5G local area network LAN group, and the first user plane function network element belongs to the 5GLAN group.
  18. 一种通信装置,其特征在于,包括收发单元和处理单元,其中:A communication device, characterized in that it comprises a transceiver unit and a processing unit, wherein:
    所述收发单元,用于接收第一数据包;The transceiving unit is configured to receive a first data packet;
    所述处理单元,用于根据与所述第一数据包匹配的路由规则,确定发送路径的第一路径类型,所述第一路径类型包括环路接口类型、分支接口类型中的一个或多个,所述发送路径用于转发所述第一数据包到其他用户面功能网元;以及,根据所述第一路径类型确定所述发送路径。The processing unit is configured to determine a first path type of a transmission path according to a routing rule matching the first data packet, and the first path type includes one or more of a loop interface type and a branch interface type The sending path is used to forward the first data packet to other user plane function network elements; and the sending path is determined according to the first path type.
  19. 根据权利要求18所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 18, wherein the processing unit is specifically configured to:
    从所述通信装置的至少一个传输路径中,确定路径类型为所述第一路径类型的传输路径为所述发送路径;Determining, from at least one transmission path of the communication device, a transmission path whose path type is the first path type as the transmission path;
    所述收发单元还用于:The transceiver unit is also used for:
    通过所述发送路径向所述其他用户面功能网元转发所述第一数据包。Forward the first data packet to the other user plane function network element through the transmission path.
  20. 根据权利要求18所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 18, wherein the processing unit is specifically configured to:
    确定所述通信装置的至少一个传输路径中不包括与所述第一路径类型相同的传输路径;Determining that at least one transmission path of the communication device does not include a transmission path of the same type as the first path;
    所述处理单元还用于:The processing unit is also used for:
    确定不转发所述第一数据包。Determine not to forward the first data packet.
  21. 根据权利要求18-20任一项所述的装置,其特征在于,The device according to any one of claims 18-20, wherein:
    所述路由规则包括用于检测所述第一数据包的报文检测规则PDR或用于转发所述第一数据包的转发行为规则FAR。The routing rule includes a packet detection rule PDR for detecting the first data packet or a forwarding behavior rule FAR for forwarding the first data packet.
  22. 根据权利要求21所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 21, wherein the processing unit is specifically configured to:
    根据所述PDR确定接收路径的第二路径类型,所述通信装置通过所述接收路径接收所述第一数据包;Determining the second path type of the receiving path according to the PDR, and the communication device receives the first data packet through the receiving path;
    根据所述第二路径类型及预设的传输规则,确定所述第一路径类型。Determine the first path type according to the second path type and a preset transmission rule.
  23. 根据权利要求22所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 22, wherein the processing unit is specifically configured to:
    所述PDR中包括接收路径的路径类型参数,所述处理单元根据所述接收路径的路径类型参数的取值,确定所述第二路径类型;或,The PDR includes the path type parameter of the receiving path, and the processing unit determines the second path type according to the value of the path type parameter of the receiving path; or,
    所述PDR中包括接收路径的隧道信息参数,所述处理单元根据所述接收路径的隧道信息参数的取值及所述通信装置的至少一个传输路径的路径类型,确定所述第二路径类型。The PDR includes the tunnel information parameter of the receiving path, and the processing unit determines the second path type according to the value of the tunnel information parameter of the receiving path and the path type of at least one transmission path of the communication device.
  24. 根据权利要求22或23所述的装置,其特征在于,所述预设的传输规则包括:The device according to claim 22 or 23, wherein the preset transmission rule comprises:
    若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路径类型为所述分支接口类型和所述环路接口类型。If the path type of the receiving path is the loop interface type, the path type of the sending path is the branch interface type, and if the path type of the receiving path is the branch interface type, then the sending path The path type of the path is the branch interface type and the loop interface type.
  25. 根据权利要求21所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 21, wherein the processing unit is specifically configured to:
    根据所述FAR中包括的发送路径的路径类型参数的取值,确定所述第一路径类型。The first path type is determined according to the value of the path type parameter of the transmission path included in the FAR.
  26. 根据权利要求22-25任一项所述的装置,其特征在于,所述收发单元还用于:The device according to any one of claims 22-25, wherein the transceiver unit is further configured to:
    从会话管理功能网元接收第一指示,所述第一指示用于指示所述通信装置的至少一个传输路径的路径类型。A first indication is received from the session management function network element, where the first indication is used to indicate a path type of at least one transmission path of the communication device.
  27. 根据权利要求18-26任一项所述的装置,其特征在于,所述收发单元还用于:The device according to any one of claims 18-26, wherein the transceiver unit is further configured to:
    从会话管理功能网元接收所述路由规则。Receiving the routing rule from the session management function network element.
  28. 一种通信装置,其特征在于,包括收发单元和处理单元,其中:A communication device, characterized in that it comprises a transceiver unit and a processing unit, wherein:
    所述处理单元,用于根据第一用户面功能网元的传输路径的路径类型以及预设的传输规则,生成与所述第一用户面功能网元对应的一组路由规则,所述传输路径的路径类型包括环路接口类型、分支接口类型中的一个或多个,所述预设的传输规则包括若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路径类型为所述分支接口类型和所述环路接口类型;The processing unit is configured to generate a set of routing rules corresponding to the first user plane function network element according to the path type of the transmission path of the first user plane function network element and a preset transmission rule, and the transmission path The path type includes one or more of a loop interface type and a branch interface type, and the preset transmission rule includes that if the path type of the receiving path is the loop interface type, the path of the sending path The type is the branch interface type, and if the path type of the receiving path is the branch interface type, the path type of the transmission path is the branch interface type and the loop interface type;
    所述收发单元,用于将所述一组路由规则发送给所述第一用户面功能网元。The transceiver unit is configured to send the set of routing rules to the first user plane function network element.
  29. 根据权利要求28所述的装置,其特征在于,The device of claim 28, wherein:
    所述一组路由规则包括用于检测第一数据包的报文检测规则PDR和用于转发所述第一数据包的转发行为规则FAR。The set of routing rules includes a packet detection rule PDR for detecting the first data packet and a forwarding behavior rule FAR for forwarding the first data packet.
  30. 根据权利要求28或29所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 28 or 29, wherein the processing unit is specifically configured to:
    第一PDR,所述第一PDR用于检测从第一N19路径接收的所述第一数据包,所述第一用户面功能网元的传输路径包括所述第一N19路径;以及,A first PDR, where the first PDR is used to detect the first data packet received from a first N19 path, and the transmission path of the first user plane function network element includes the first N19 path; and,
    与所述第一PDR关联的第一FAR,所述第一FAR包括第二N19路径的隧道信息,所述第一用户面功能网元的传输路径包括所述第二N19路径。A first FAR associated with the first PDR, where the first FAR includes tunnel information of a second N19 path, and the transmission path of the first user plane function network element includes the second N19 path.
  31. 根据权利要求30所述的装置,其特征在于,The device of claim 30, wherein:
    若所述第一N19路径的路径类型为环路接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若所述第一N19路径的路径类型为分支接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中除所述第一N19路径之外的其他N19路径。If the path type of the first N19 path is a loop interface type, the second N19 path is an N19 path whose path type is a branch interface type in the transmission path of the first user plane function network element. The path type of the first N19 path is a branch interface type, and the second N19 path is a N19 path other than the first N19 path in the transmission path of the first user plane function network element.
  32. 根据权利要求28或29所述的装置,其特征在于,所述处理单元具体用于:The device according to claim 28 or 29, wherein the processing unit is specifically configured to:
    第一PDR,所述第一PDR用于检测从第一N19路径接收的所述第一数据包,所述第一用户面功能网元所包括的传输路径包括所述第一N19路径;以及,A first PDR, where the first PDR is used to detect the first data packet received from a first N19 path, and the transmission path included in the first user plane function network element includes the first N19 path; and,
    与所述第一PDR关联的第一FAR,所述第一FAR用于将所述第一数据包转发到所述 第一用户面功能网元的内部接口,所述第一FAR中包括传出接口的路径类型参数,其中,所述传出接口的路径类型参数包括所述环路接口类型或所述分支接口类型;以及,A first FAR associated with the first PDR, the first FAR is used to forward the first data packet to the internal interface of the first user plane function network element, and the first FAR includes outgoing The path type parameter of the interface, where the path type parameter of the outgoing interface includes the loop interface type or the branch interface type; and,
    第二PDR,所述第二PDR用于检测从所述内部接口接收的所述第一数据包,所述第二PDR中包括传入接口的路径类型参数;以及,A second PDR, the second PDR is used to detect the first data packet received from the internal interface, and the second PDR includes the path type parameter of the incoming interface; and,
    与所述第二PDR关联的第二FAR,所述第二FAR包括第二N19路径的隧道信息,所述第一用户面功能网元的传输路径包括所述第二N19路径,所述第二N19路径是路径类型为所述环路接口类型、所述分支接口类型的传输路径中的一个或多个。A second FAR associated with the second PDR, where the second FAR includes tunnel information of a second N19 path, the transmission path of the first user plane function network element includes the second N19 path, and the second FAR includes the second N19 path. The N19 path is one or more of the transmission paths whose path types are the loop interface type and the branch interface type.
  33. 根据权利要求32所述的装置,其特征在于,The device according to claim 32, wherein:
    若所述第一N19路径的路径类型为环路接口类型,所述传出接口的路径类型参数的取值为环路接口类型,若所述第一N19路径的路径类型为分支接口类型,则所述传出接口的路径类型参数的取值分支接口类型;以及,If the path type of the first N19 path is a loop interface type, the value of the path type parameter of the outgoing interface is a loop interface type, and if the path type of the first N19 path is a branch interface type, then The value branch interface type of the path type parameter of the outgoing interface; and,
    若所述传入接口的路径类型参数为环路接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中路径类型为分支接口类型的N19路径,若所述传入接口的路径类型参数为分支接口类型,则所述第二N19路径为所述第一用户面功能网元的传输路径中除所述第一N19路径之外的其他N19路径。If the path type parameter of the incoming interface is a loop interface type, the second N19 path is an N19 path whose path type is a branch interface type in the transmission path of the first user plane function network element. The path type parameter of the incoming interface is a branch interface type, and the second N19 path is a N19 path other than the first N19 path in the transmission path of the first user plane function network element.
  34. 根据权利要求28-33任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 28-33, wherein the processing unit is further configured to:
    根据5G局域网LAN群组的用户面的网络拓扑接口,确定所述第一用户面功能网元的传输路径的路径类型,所述第一用户面功能网元属于所述5GLAN群组。According to the network topology interface of the user plane of the 5G local area network LAN group, the path type of the transmission path of the first user plane function network element is determined, and the first user plane function network element belongs to the 5GLAN group.
  35. 一种数据转发系统,其特征在于,包括会话管理网元和第一用户面功能网元;A data forwarding system, characterized by comprising a session management network element and a first user plane function network element;
    所述会话管理网元,用于根据第一用户面功能网元的传输路径的路径类型以及预设的传输规则,生成与所述第一用户面功能网元对应的一组路由规则,所述传输路径的路径类型包括环路接口类型、分支接口类型中的一个或多个,所述预设的传输规则包括若所述接收路径的路径类型为所述环路接口类型,则所述发送路径的路径类型为所述分支接口类型,以及,若所述接收路径的路径类型为分支接口类型,则所述发送路径的路径类型为所述分支接口类型和所述环路接口类型;以及将所述一组路由规则发送给所述第一用户面功能网元,其中所述一组路由规则包括与第一数据包匹配的路由规则;The session management network element is configured to generate a set of routing rules corresponding to the first user plane function network element according to the path type of the transmission path of the first user plane function network element and a preset transmission rule. The path type of the transmission path includes one or more of a loop interface type and a branch interface type, and the preset transmission rule includes that if the path type of the receiving path is the loop interface type, the sending path The path type of is the branch interface type, and, if the path type of the receiving path is the branch interface type, the path type of the sending path is the branch interface type and the loop interface type; and Sending the set of routing rules to the first user plane function network element, wherein the set of routing rules includes routing rules matching the first data packet;
    所述第一用户面功能网元,用于接收第一数据包;以及根据与所述第一数据包匹配的路由规则,确定所述第一数据包的发送路径的第一路径类型,所述第一路径类型包括所述环路接口类型、所述分支接口类型中的一个或多个,所述第一数据包的发送路径用于转发所述第一数据包到其他用户面功能网元;以及根据所述第一路径类型确定所述第一数据包的发送路径。The first user plane function network element is configured to receive a first data packet; and determine a first path type of a transmission path of the first data packet according to a routing rule matching the first data packet, and The first path type includes one or more of the loop interface type and the branch interface type, and the transmission path of the first data packet is used to forward the first data packet to other user plane function network elements; And determining the sending path of the first data packet according to the first path type.
PCT/CN2020/105821 2019-07-30 2020-07-30 Data forwarding method, apparatus and system WO2021018242A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910696555.7 2019-07-30
CN201910696555.7A CN112312510B (en) 2019-07-30 2019-07-30 Data forwarding method, device and system

Publications (1)

Publication Number Publication Date
WO2021018242A1 true WO2021018242A1 (en) 2021-02-04

Family

ID=74230254

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105821 WO2021018242A1 (en) 2019-07-30 2020-07-30 Data forwarding method, apparatus and system

Country Status (2)

Country Link
CN (1) CN112312510B (en)
WO (1) WO2021018242A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950117A (en) * 2021-10-13 2022-01-18 国网江苏省电力有限公司无锡供电分公司 Low-delay image transmission method based on software defined network in tunnel environment
WO2023137679A1 (en) * 2022-01-21 2023-07-27 Zte Corporation Method for virtual network transmission, apparatus, and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116074239A (en) * 2021-10-29 2023-05-05 华为技术有限公司 Loop detection method and device
CN116939883A (en) * 2022-04-07 2023-10-24 大唐移动通信设备有限公司 Data transmission method, device, apparatus and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109275160A (en) * 2017-07-17 2019-01-25 华为技术有限公司 Data distribution method, equipment and system
CN109429221A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Data transmission method, equipment and system
CN109729011A (en) * 2017-10-31 2019-05-07 中国电信股份有限公司 Flow forwarding method, device and computer readable storage medium
US20190158408A1 (en) * 2017-11-17 2019-05-23 Huawei Technologies Co., Ltd. Method and apparatus for traffic routing and path optimization for peer-to-peer communications
WO2019137125A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Session management method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019014426A1 (en) * 2017-07-14 2019-01-17 Interdigital Patent Holdings, Inc. Communication path management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109275160A (en) * 2017-07-17 2019-01-25 华为技术有限公司 Data distribution method, equipment and system
CN109429221A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Data transmission method, equipment and system
CN109729011A (en) * 2017-10-31 2019-05-07 中国电信股份有限公司 Flow forwarding method, device and computer readable storage medium
US20190158408A1 (en) * 2017-11-17 2019-05-23 Huawei Technologies Co., Ltd. Method and apparatus for traffic routing and path optimization for peer-to-peer communications
WO2019137125A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Session management method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950117A (en) * 2021-10-13 2022-01-18 国网江苏省电力有限公司无锡供电分公司 Low-delay image transmission method based on software defined network in tunnel environment
CN113950117B (en) * 2021-10-13 2023-06-27 国网江苏省电力有限公司无锡供电分公司 Low-delay image transmission method based on software defined network in tunnel environment
WO2023137679A1 (en) * 2022-01-21 2023-07-27 Zte Corporation Method for virtual network transmission, apparatus, and storage medium

Also Published As

Publication number Publication date
CN112312510B (en) 2022-09-23
CN112312510A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
WO2020224556A1 (en) Method for managing routing rule and communication device
WO2020224604A1 (en) Routing rule configuration method and communication apparatus
EP3879879B1 (en) Time sensitive networking communication method and apparatus thereof
WO2021018242A1 (en) Data forwarding method, apparatus and system
EP3836577B1 (en) Session management method and device for user groups
EP4012985A1 (en) Communication processing method, communication processing apparatus, and system
EP4018692A1 (en) Path selection or path switching and charging for proximity service communication
BR112021012912A2 (en) METHOD TO SUPPORT COMMUNICATION BETWEEN UES, CARRIER, AND DEVICE
WO2022257549A1 (en) Network slicing method and device, and storage medium
EP3949468A1 (en) Apparatus, method and computer program for group communication
WO2019223702A1 (en) Pdu session management method, apparatus and system
US11889568B2 (en) Systems and methods for paging over WiFi for mobile terminating calls
WO2023179238A1 (en) Timing method, communication apparatus, and communication system
WO2019238050A1 (en) Communication method and apparatus
WO2022067538A1 (en) Network element discovery method and apparatus, and device and storage medium
CN114830606B (en) Multicast communication method and device thereof
WO2022165787A1 (en) Parameter configuration method and apparatus, device, and storage medium
WO2023231465A1 (en) Time synchronization method, communication apparatus and communication system
WO2023045741A1 (en) Positioning method and apparatus, and readable storage medium
WO2023142759A1 (en) Authorization method and apparatus
WO2024061205A1 (en) Parameter acquisition method and apparatus, first network function, and second network function

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: 20847687

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: 20847687

Country of ref document: EP

Kind code of ref document: A1