GROUP COMMUNICATIONS METHOD AND SYSTEM, AND DEVICE
Embodiments of this application provide a group communications method and system, and a device. The method includes: when a first terminal initiates access to a local area network group, obtaining, by a group management function network element, an identifier of a first user plane network element to be accessed by the first terminal, context information of the local area network group, and a first session port identifier; creating, for the local area network group, a rule group applied to a first session port, and creating or updating, for the local area network group based on the context information, a local area network group FAR applied to the first user plane network element; and sending a first message to a session management network element, for configuring the rule group on the first session port, and configuring the local area network group FAR on the first user plane network element.
This application is a continuation of International Patent Application No. PCT/CN2019/119475, filed on Nov. 19, 2019, which claims priority to Chinese Patent Application No. 201811378645.3, filed on Nov. 19, 2018. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
TECHNICAL FIELDThis application relates to the field of communications technologies, and in particular, to a group communications method and system, and a device.
BACKGROUNDA 5th generation (5th generation, 5G) local area network (local area network, 5GLAN) service is a service provided by a current 5G network, and is mainly used in home communication, enterprise office, factory manufacturing, internet of vehicles, power grid reconstruction, a public security organization, and the like. The 5GLAN service can provide private communication of an internet protocol (internet protocol, IP) type or a non-IP type (for example, an Ethernet type) for two or more terminals in a group. For example, devices in a factory may form a group, and the devices in the group may send an Ethernet data packet to each other. Alternatively, office devices (such as mobile phones, computers, or laptop computers) of employees in a department of an enterprise may form a group to send an IP packet to each other. If two terminals are not in a same group, the two terminals cannot communicate with each other.
For the 5GLAN service, 3rd generation partnership project (3rd generation partnership project, 3GPP) technical rule (technical rule, TR) 23.734 proposes that one-to-one communication and one-to-many communication in a 5GLAN needs to be supported. Specifically, to support one-to-one communication and one-to-many communication in the 5GLAN, a 3GPP network is required to support group-based unicast, multicast, and broadcast, support duplication and distribution of multicast and broadcast packets, and support any terminal as a multicast source.
To meet this requirement, 3GPP technical standard (technical standard, TS) 29.244 defines a manner of packet forwarding on a user plane. An architecture of such packet forwarding is shown in
However, if the foregoing solution is applied to group communication, because the foregoing solution needs to specify the egress identifier and the egress action at the ingress, and the ingress is bound to a terminal, each time a terminal member is added to or deleted from a 5GLAN group, a PDR, an FAR, and the like that are used to forward a packet to the new terminal member need to be added to or deleted from the ingress of the UPF network element accessed by all existing terminal members in the 5GLAN group. Further, when there are a relatively large number of terminal members in the 5GLAN group, configuration workload caused by a change in a quantity of terminal members is greatly increased.
SUMMARYEmbodiments of this application provide a group communications method and system, and a device, so that when there are a relatively large number of terminal members in a group, configuration workload caused by a change in a quantity of terminal members can be greatly reduced.
To achieve the foregoing objective, the following technical solutions are used in the embodiments of this application.
According to a first aspect, a group communications method is provided. The method includes: When a first terminal initiates access to a local area network group, a group management function network element obtains an identifier of a first user plane network element to be accessed by the first terminal, context information of the local area network group, and a first session port identifier, where the context information includes an identifier list of user plane network elements accessed by a terminal that has currently accessed the local area network group in a terminal member list corresponding to the local area network group, and the first session port identifier is an identifier of a first session port that is on the first user plane network element and that is used by the first terminal for access. The group management function network element creates, for the local area network group, a rule group applied to the first session port, and the group management function network element creates or updates, for the local area network group based on the context information, a local area network group forwarding action rule FAR applied to the first user plane network element, where the rule group includes an ingress packet detection rule PDR, an egress PDR, and an egress FAR; the egress PDR includes an identifier of the egress FAR, and the ingress PDR includes an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port. The group management function network element sends a first message to a session management network element, where the first message is used to configure the rule group on the first session port on the first user plane network element, and configure or update the local area network group FAR on the first user plane network element. Based on this solution, when a terminal in the local area network group accesses a network, only a local area network group FAR on an associated user plane network element needs to be adjusted (created or updated), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated user plane network element and that correspond to the terminal member need to be adjusted (created or updated), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another terminal member in the local area network group remain unchanged. Therefore, when a relatively large number of terminal members belonging to the local area network group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
In a possible design, the method further includes: When the identifier list includes an identifier of a second user plane network element, and the identifier of the first user plane network element is not in the identifier list, the group management function network element obtains a first tunnel endpoint identifier and a second tunnel endpoint identifier, where the first tunnel endpoint identifier is an identifier of a first tunnel endpoint of a first tunnel on the first user plane network element, the second tunnel endpoint identifier is an identifier of a second tunnel endpoint of the first tunnel on the second user plane network element, and the first tunnel is a tunnel between the first user plane network element and the second user plane network element. The group management function network element creates, for the local area network group, the rule group applied to the first tunnel endpoint, the group management function network element creates, for the local area network group, the rule group applied to the second tunnel endpoint, and the group management function network element updates the local area network group FAR applied to the second user plane network element, where correspondingly, the first message is further used to configure the rule group on the first tunnel endpoint, configure the rule group on the second tunnel endpoint, and update the local area network group FAR on the second user plane network element. Based on this solution, group communication across user plane network elements can be implemented.
In a possible design, the method further includes: When the first terminal is updated from accessing the first user plane network element to accessing a third user plane network element in the local area network group, the group management function network element obtains a third session port identifier, where the third session port identifier is an identifier of a third session port that is on the third user plane network element and that is used by the first terminal for access. The group management function network element creates, for the local area network group, a rule group applied to the third session port, and the group management function network element creates or updates, based on the context information, the local area network group FAR applied to the third user plane network element. The group management function network element sends a third message to the session management network element, where the third message is used to configure the rule group on the third session port, configure or update the local area network group FAR on the third user plane network element, delete the rule group on the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element. Based on this solution, when a terminal member that belongs to the local area network group and that has accessed a network moves in the local area network group, only a local area network group FAR on an associated UPF network element needs to be adjusted (created, updated, or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated user plane network element and that correspond to the terminal member need to be adjusted (created, updated, or deleted), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another terminal member that belongs to the local area network group and that has accessed the network remain unchanged. Therefore, when a relatively large number of terminal members belonging to the local area network group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
In a possible design, the method further includes: When the identifier list includes an identifier of a fourth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, the group management function network element updates the local area network group FAR applied to the fourth user plane network element, where correspondingly, the third message is further used to delete a second tunnel between the first user plane network element and the fourth user plane network element, delete the rule group on a third tunnel endpoint on the first user plane network element, delete the rule group on a fourth tunnel endpoint on the fourth user plane network element, and update the local area network group FAR applied to the fourth user plane network element; and the third tunnel endpoint is a tunnel endpoint of the second tunnel on the first user plane network element, and the fourth tunnel endpoint is a tunnel endpoint of the second tunnel on the fourth user plane network element. Based on this solution, group communication across user plane network elements can be implemented.
In a possible design, the method further includes: When the identifier list includes the identifier of the fourth user plane network element, and an identifier of the third user plane network element is not in the identifier list, the group management function network element obtains a fifth tunnel endpoint identifier and a sixth tunnel endpoint identifier, where the fifth tunnel endpoint identifier is an identifier of a fifth tunnel endpoint of a third tunnel on the third user plane network element, the sixth tunnel endpoint identifier is an identifier of a sixth tunnel endpoint of the third tunnel on the fourth user plane network element, and the third tunnel is a tunnel between the third user plane network element and the fourth user plane network element. The group management function network element creates, for the local area network group, the rule group applied to the fifth tunnel endpoint, the group management function network element creates, for the local area network group, the rule group applied to the sixth tunnel endpoint, and the group management function network element updates the local area network group FAR applied to the fourth user plane network element, where correspondingly, the third message is further used to configure the rule group on the fifth tunnel endpoint, configure the rule group on the sixth tunnel endpoint, and update the local area network group FAR on the fourth user plane network element. Based on this solution, group communication across user plane network elements can be implemented.
In a possible design, the method further includes: When the first terminal is about to leave the local area network group, the group management function network element sends a fifth message to the session management network element, where the fifth message is used to delete the rule group applied to the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element. Based on this solution, when a terminal member in the local area network group is disconnected from a network, only a local area network group FAR on an associated user plane network element needs to be adjusted (updated or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated user plane network element and that correspond to the terminal member need to be adjusted (updated or deleted), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another member in the local area network group remain unchanged. Therefore, when a relatively large number of terminal members belonging to the local area network group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
In a possible design, the method further includes: When the identifier list includes an identifier of a fifth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, the group management function network element updates the local area network group FAR applied to the fifth user plane network element, where correspondingly, the fifth message is further used to delete a fourth tunnel between the first user plane network element and the fifth user plane network element, delete the rule group on a seventh tunnel endpoint on the first user plane network element, delete the rule group on an eighth tunnel endpoint on the fifth user plane network element, and update the local area network group FAR applied to the fifth user plane network element; and the seventh tunnel endpoint is a tunnel endpoint of the fourth tunnel on the first user plane network element, and the eighth tunnel endpoint is a tunnel endpoint of the fourth tunnel on the fifth user plane network element. Based on this solution, group communication across user plane network elements can be implemented.
According to a second aspect, a group communications method is provided. The method includes: When a first terminal initiates access to a local area network group, a first user plane network element receives a first message from a session management network element, where the first message includes a first session port identifier, a rule group applied to a first session port corresponding to the first session port identifier, and a created or updated local area network group forwarding action rule FAR applied to the first user plane network element; the first session port identifier is an identifier of the first session port that is on the first user plane network element and that is used by the first terminal for access; the rule group includes an ingress packet detection rule PDR, an egress PDR, and an egress FAR; the egress PDR includes an identifier of the egress FAR, and the ingress PDR includes an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port. The first user plane network element creates the first session port based on the first session port identifier, and configures the rule group on the first session port. The first user plane network element creates the local area network group FAR on the first user plane network element based on the created local area network group FAR applied to the first user plane network element; or the first user plane network element updates the local area network group FAR on the first user plane network element based on the updated local area network group FAR applied to the first user plane network element. For technical effects of any one of the second aspect or the following possible implementations of the second aspect, refer to the technical effects of the first aspect. Details are not described herein again.
In a possible design, the first message further includes a first tunnel endpoint identifier and the rule group applied to a first tunnel endpoint corresponding to the first tunnel endpoint identifier; the first tunnel endpoint identifier is an identifier of the first tunnel endpoint of a first tunnel on the first user plane network element, and the first tunnel is a tunnel between the first user plane network element and a second user plane network element; and the method further includes: The first user plane network element creates the first tunnel endpoint based on the first tunnel endpoint identifier, and configures the rule group on the first tunnel endpoint.
In a possible design, the method further includes: When the first terminal is no longer served by the first user plane network element, the first user plane network element receives a second message from the session management network element, where the second message includes the first session port identifier, and the second message includes the identifier of the local area network group FAR applied to the first user plane network element or the updated local area network group FAR applied to the first user plane network element. The first user plane network element deletes, based on the first session port identifier, the first session port and the rule group applied to the first session port. The first user plane network element deletes, based on the identifier of the local area network group FAR applied to the first user plane network element, the local area network group FAR applied to the first user plane network element; or the first user plane network element updates the local area network group FAR on the first user plane network element based on the updated local area network group FAR applied to the first user plane network element.
In a possible design, the second message further includes the first tunnel endpoint identifier; the first tunnel endpoint identifier is the identifier of the first tunnel endpoint of the first tunnel on the first user plane network element, and the first tunnel is the tunnel between the first user plane network element and the second user plane network element; and the method further includes: The first user plane network element deletes, based on the first tunnel endpoint identifier, the first tunnel endpoint and the rule group applied to the first tunnel endpoint.
According to a third aspect, a group communications method is provided. The method includes: When a first terminal initiates access to a local area network group, a session management network element receives a first message from a group management function network element, where the first message includes an identifier of a first user plane network element, a first session port identifier corresponding to the identifier of the first user plane network element, a rule group applied to a first session port corresponding to the first session port identifier, and a created or updated local area network group forwarding action rule FAR applied to the first user plane network element; the first session port is a session port that is on the first user plane network element and that is used by the first terminal for access; the rule group includes an ingress packet detection rule PDR, an egress PDR, and an egress FAR; the egress PDR includes an identifier of the egress FAR, and the ingress PDR includes an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port. The session management network element sends a second message to the first user plane network element based on the identifier of the first user plane network element, where the second message includes the first session port identifier, the rule group on the first session port, and the created or updated local area network group FAR applied to the first user plane network element. For technical effects of any one of the third aspect or the following possible implementations of the third aspect, refer to the technical effects of the first aspect. Details are not described herein again.
In a possible design, the first message further includes a first tunnel endpoint identifier corresponding to the identifier of the first user plane network element, the rule group applied to a first tunnel endpoint corresponding to the first tunnel endpoint identifier, an identifier of a second user plane network element, a second tunnel endpoint identifier corresponding to the identifier of the second user plane network element, the rule group applied to a second tunnel endpoint corresponding to the second tunnel endpoint identifier, and an updated local area network group FAR applied to the second user plane network element; and the first tunnel endpoint is a tunnel endpoint of a first tunnel on the first user plane network element, the second tunnel endpoint is a tunnel endpoint of the first tunnel on the second user plane network element, and the first tunnel is a tunnel between the first user plane network element and the second user plane network element. Correspondingly, the first message further includes the first tunnel endpoint identifier and the rule group on the first tunnel endpoint; and the method further includes: The session management network element sends a third message to the second user plane network element based on the identifier of the second user plane network element, where the third message includes the second tunnel endpoint identifier, the rule group on the second tunnel endpoint, and the updated local area network group FAR applied to the second user plane network element.
In a possible design, the method further includes: When the first terminal is updated from accessing the first user plane network element to accessing a third user plane network element in the local area network group, by the session management network element receives a fourth message from the group management function network element, where the fourth message includes the identifier of the first user plane network element and the first session port identifier corresponding to the identifier of the first user plane network element, the fourth message includes the identifier of the local area network group FAR applied to the first user plane network element or the updated local area network group FAR applied to the first user plane network element, and the fourth message includes an identifier of the third user plane network element, a third session port identifier corresponding to the identifier of the third user plane network element, the rule group applied to a third session port corresponding to the third session port identifier, and a created or updated local area network group FAR applied to the third user plane network element; and the third session port is a session port that is on the third user plane network element and that is used by the first terminal for access. The session management network element sends a fifth message to the first user plane network element based on the identifier of the first user plane network element, where the fifth message includes the first session port identifier, and the fifth message includes the identifier of the local area network group FAR applied to the first user plane network element or the updated local area network group FAR applied to the first user plane network element. The session management network element sends a sixth message to the third user plane network element based on the identifier of the third user plane network element, where the sixth message includes the third session port identifier, the rule group on the third session port, and the created or updated local area network group FAR applied to the third user plane network element.
In a possible design, the method further comprises: The fourth message further includes a third tunnel endpoint identifier corresponding to the identifier of the first user plane network element, an identifier of a fourth user plane network element, a fourth tunnel endpoint identifier corresponding to the identifier of the fourth user plane network element, and an updated local area network group FAR applied to the fourth user plane network element; and the third tunnel endpoint identifier is a tunnel endpoint identifier of a second tunnel on the first user plane network element, and the fourth tunnel endpoint identifier is a tunnel endpoint identifier of the second tunnel on the fourth user plane network element. Correspondingly, the fifth message further includes the third tunnel endpoint identifier; and the method further includes: The session management network element sends a seventh message to the fourth user plane network element based on the identifier of the fourth user plane network element, where the seventh message includes the fourth tunnel endpoint identifier and the updated local area network group FAR applied to the fourth user plane network element.
In a possible design, the fourth message further includes a fifth tunnel endpoint identifier corresponding to the identifier of the third user plane network element and the rule group applied to a fifth tunnel endpoint corresponding to the fifth tunnel endpoint identifier, and the fourth message further includes the identifier of the fourth user plane network element, a sixth tunnel endpoint identifier corresponding to the identifier of the fourth user plane network element, the rule group applied to a sixth tunnel endpoint corresponding to the sixth tunnel endpoint identifier, and the updated local area network group FAR applied to the fourth user plane network element; and the fifth tunnel endpoint is a tunnel endpoint of a third tunnel on the third user plane network element, the sixth tunnel endpoint is a tunnel endpoint of the third tunnel on the fourth user plane network element, and the third tunnel is a tunnel between the third user plane network element and the fourth user plane network element. Correspondingly, the sixth message further includes the fifth tunnel endpoint identifier and the rule group on the fifth tunnel endpoint; and the method further includes: The session management network element sends an eighth message to the fourth user plane network element based on the identifier of the fourth user plane network element, where the eighth message includes the sixth tunnel endpoint identifier, the rule group on the sixth tunnel endpoint, and the updated local area network group FAR applied to the fourth user plane network element.
In a possible design, the method further includes: When the first terminal is about to leave the local area network group, the session management network element receives a ninth message from the group management function network element, where the ninth message includes the identifier of the first user plane network element and the first session port identifier corresponding to the identifier of the first user plane network element, and the ninth message includes the identifier of the local area network group FAR applied to the first user plane network element or the updated local area network group FAR applied to the first user plane network element. The session management network element sends a tenth message to the first user plane network element based on the identifier of the first user plane network element, where the tenth message includes the first session port identifier, and the fifth message includes the identifier of the local area network group FAR applied to the first user plane network element or the updated local area network group FAR applied to the first user plane network element.
In a possible design, the ninth message further includes a seventh tunnel endpoint identifier corresponding to the identifier of the first user plane network element, an identifier of a fifth user plane network element, an eighth tunnel endpoint identifier corresponding to the identifier of the fifth user plane network element, and an updated local area network group FAR applied to the fifth user plane network element; and the seventh tunnel endpoint identifier is a tunnel endpoint identifier of a fourth tunnel on the first user plane network element, the eighth tunnel endpoint identifier is a tunnel endpoint identifier of the fourth tunnel on the fourth user plane network element, and the fourth tunnel is a tunnel between the first user plane network element and the fifth user plane network element. Correspondingly, the tenth message further includes the seventh tunnel endpoint identifier; and the method further includes: The sending module is further configured to send an eleventh message to the fifth user plane network element based on the identifier of the fifth user plane network element, where the eleventh message includes the eighth tunnel endpoint identifier and the updated local area network group FAR applied to the fifth user plane network element.
According to a fourth aspect, a group communications method is provided. The method includes: When a first terminal joins a multicast group, a group management function network element obtains an identifier of a first user plane network element accessed by the first terminal and a first session port identifier, where the first session port identifier is an identifier of a first session port that is on the first user plane network element and that is used by the first terminal for access. The group management function network element creates, for the multicast group, an egress PDR and an egress FAR that are applied to the first session port, and the group management function network element creates or updates, for the multicast group, a multicast group FAR applied to the first user plane network element, where the multicast group FAR is used to duplicate a multicast packet belonging to the multicast group and then forward the multicast packet to a specified egress; and the egress PDR is used to identify a type of the multicast packet, and the egress FAR is used to perform outer header creation and transport level marking on the multicast packet and then send the multicast packet through a corresponding port. The group management function network element sends a first message to a session management network element, where the first message is used to configure the egress PDR and the egress FAR on the first session port, and configure or update the multicast group FAR on the first user plane network element. Based on this solution, when a multicast member joins the multicast group, only a multicast group FAR on an associated user plane network element needs to be adjusted (updated or created), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created) or an egress PDR and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another multicast member in the multicast group remain unchanged. Therefore, when there are a relatively large number of multicast members in the multicast group, a problem that configuration workload caused by a change in a quantity of multicast members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of multicast members can be greatly reduced.
According to a fifth aspect, a group communications method is provided. The method includes: A first user plane network element receives a first message from a session management network element, where the first message includes a first session port identifier, an egress PDR and an egress FAR that are applied to a first session port corresponding to the first session port identifier, and a created or updated multicast group forwarding action rule FAR applied to the first user plane network element, where the first session port identifier is an identifier of the first session port that is on the first user plane network element and that is used by the first terminal for access; the multicast group FAR is used to duplicate a multicast packet belonging to the multicast group and then forward the multicast packet to a specified egress; and the egress PDR is used to identify a type of the multicast packet, and the egress FAR is used to perform outer header and transport level marking on the multicast packet and then send the multicast packet through a corresponding port. The first user plane network element configures the egress PDR and the egress FAR on the first session port based on the first session port identifier. The first user plane network element creates the multicast group FAR on the first user plane network element based on the created multicast group FAR applied to the first user plane network element; or the first user plane network element updates the multicast group FAR on the first user plane network element based on the updated multicast group FAR applied to the first user plane network element. For technical effects of the fifth aspect, refer to the technical effects of the fourth aspect. Details are not described herein again.
According to a sixth aspect, a group communications method is provided. The method includes: When a first terminal joins a multicast group, a session management network element receives a first message from a group management function network element, where the first message includes an identifier of a first user plane network element accessed by the first terminal, a first session port identifier corresponding to the identifier of the first user plane network element, an egress PDR and an egress FAR that are applied to a first session port corresponding to the first session port identifier, and a created or updated multicast group forwarding action rule FAR applied to the first user plane network element. The session management network element sends, to the first user plane network element based on the identifier of the first user plane network element, the first session port identifier, the egress PDR and the egress FAR that are on the first session port, and the created or updated multicast group FAR applied to the first user plane network element. For technical effects of the sixth aspect, refer to the technical effects of the fourth aspect. Details are not described herein again.
According to a seventh aspect, a group management function network element is provided. The group management function network element has a function of implementing the method according to the first aspect or the fourth aspect. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or the software includes one or more modules corresponding to the function.
According to an eighth aspect, a group management function network element is provided, and includes a processor and a memory. The memory is configured to store computer execution instructions, and when the group management function network element runs, the processor executes the computer execution instructions stored in the memory, to enable the group management function network element to perform the group communications method according to any one of the possible designs of the first aspect or the fourth aspect.
According to a ninth aspect, a group management function network element is provided, and includes a processor. The processor is configured to: after being coupled to a memory and reading instructions in the memory, perform the group communications method according to any one of the possible designs of the first aspect or the fourth aspect according to the instructions.
According to a tenth aspect, a computer readable storage medium is provided. The computer readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the first aspect or the fourth aspect.
According to an eleventh aspect, a computer program product including instructions is provided. When the computer program product runs on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the first aspect or the fourth aspect.
According to a twelfth aspect, an apparatus (for example, the apparatus may be a chip system) is provided. The apparatus includes a processor, configured to support a group management function network element in implementing the function in the first aspect or the fourth aspect, for example, creating, for the local area network group, the rule group applied to the first session port. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the group management function network element. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component.
For technical effects brought by any design of the seventh aspect to the twelfth aspect, refer to the technical effects brought by the different designs of the first aspect or the third aspect. Details are not described herein again.
According to a thirteenth aspect, a first user plane network element is provided. The first user plane network element has a function of implementing the method according to the second aspect or the fifth aspect. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or the software includes one or more modules corresponding to the function.
According to a fourteenth aspect, a first user plane network element is provided, and includes a processor and a memory. The memory is configured to store computer execution instructions, and when the first user plane network element runs, the processor executes the computer execution instructions stored in the memory, to enable the first user plane network element to perform the group communications method according to any one of the possible designs of the second aspect or the fifth aspect.
According to a fifteenth aspect, a first user plane network element is provided, and includes a processor. The processor is configured to: after being coupled to a memory and reading instructions in the memory, perform the group communications method according to any one of the possible designs of the second aspect or the fifth aspect according to the instructions.
According to a sixteenth aspect, a computer readable storage medium is provided. The computer readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the second aspect or the fifth aspect.
According to a seventeenth aspect, a computer program product including instructions is provided. When the computer program product runs on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the second aspect or the fifth aspect.
According to an eighteenth aspect, an apparatus (for example, the apparatus may be a chip system) is provided. The apparatus includes a processor, configured to support a first user plane network element in implementing the function in the second aspect or the fifth aspect, for example, creating the first session port based on the first session port identifier, and configuring the rule group on the first session port. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the first user plane network element. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component.
For technical effects brought by any design of the thirteenth aspect to the eighteenth aspect, refer to the technical effects brought by the different designs of the second aspect or the third aspect. Details are not described herein again.
According to a nineteenth aspect, a session management network element is provided. The session management network element has a function of implementing the method according to the third aspect or the sixth aspect. The function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or the software includes one or more modules corresponding to the function.
According to a twentieth aspect, a session management network element is provided, and includes a processor and a memory. The memory is configured to store computer execution instructions, and when the session management network element runs, the processor executes the computer execution instructions stored in the memory, to enable the session management network element to perform the group communications method according to any one of the possible designs of the third aspect or the sixth aspect.
According to a twenty-first aspect, a session management network element is provided, and includes a processor. The processor is configured to: after being coupled to a memory and reading instructions in the memory, perform the group communications method according to any one of the possible designs of the third aspect or the sixth aspect according to the instructions.
According to a twenty-second aspect, a computer readable storage medium is provided. The computer readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the third aspect or the sixth aspect.
According to a twenty-third aspect, a computer program product including instructions is provided. When the computer program product runs on a computer, the computer is enabled to perform the group communications method according to any one of the possible designs of the third aspect or the sixth aspect.
According to a twenty-fourth aspect, an apparatus (for example, the apparatus may be a chip system) is provided. The apparatus includes a processor, configured to support a session management network element in implementing the function in the third aspect or the sixth aspect, for example, determining the first user plane network element based on the identifier of the first user plane network element. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the session management network element. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component.
For technical effects brought by any design of the nineteenth aspect to the twenty-fourth aspect, refer to the technical effects brought by the different designs of the third aspect or the third aspect. Details are not described herein again.
According to a twenty-fifth aspect, a group communications system is provided. The group communications system includes a group management function network element, a session management function network element, and a first user plane network element. The group management function network element is configured to perform the steps performed by the group management function network element in the first aspect or the fourth aspect or in the solutions provided in the embodiments of this application. The first user plane network element is configured to perform the steps performed by the first user plane network element in the second aspect or the fifth aspect or in the solutions provided in the embodiments of this application. The session management network element is configured to perform the steps performed by the session management network element in the third aspect or the sixth aspect or in the solutions provided in the embodiments of this application.
These aspects or other aspects of this application are clearer and comprehensible in descriptions in the following embodiments.
For ease of understanding of technical solutions in the embodiments of this application, the following first briefly describes technologies related to this application.
1. Broadcast
Broadcast is a one-to-all communication mode. On a network, a LAN (for example, which may be a 5GLAN) corresponds to a broadcast domain. Terminals subscribed to the LAN may form a LAN group, and the terminals subscribed to the LAN may be referred to as terminal members in the LAN group. In other words, a terminal joins a LAN group (may join one or more LAN groups) in a subscription process. For a related implementation, refer to an existing solution. Details are not described herein. After terminal members in the LAN group are connected to a network (that is, a user plane connection is established, a typical network access manner is that a terminal initiates a packet data unit (packet data unit, PDU) session establishment request, and descriptions are provided in the following embodiments by using an example in which the network access manner is that the terminal initiates the PDU session establishment request), it may be considered that the terminal members have accessed the network, and the terminal members that have accessed the network may communicate with each other. For specific implementation, refer to the following embodiments of this application. Details are not described herein.
Any terminal that belongs to the LAN group and that has accessed the network may be used as a broadcast source to send a broadcast packet, and may also be used as a broadcast member to receive a broadcast packet. For example, it is assumed that the terminal members that belong to the LAN group and that have accessed the network include a terminal 1, a terminal 2, a terminal 3, a terminal 4, a terminal 5, and a terminal 6. For example, the terminal 1 is used as a broadcast source. In this case, a corresponding schematic communication diagram may be shown in
A broadcast address in the embodiments of this application may be that a destination IP address is all 1s, for example, 255.255.255.255. Alternatively, a broadcast address in the embodiments of this application may be that a destination media access control (media access control, MAC) address is all 1s, for example, 255.255.255.255. For details, refer to a definition of an existing broadcast address. The details are not described herein.
2. Multicast
In the embodiments of this application, one multicast source and a plurality of multicast members may form one multicast group (which may also be briefly referred to as a multicast group). A source that sends an IP packet with a multicast group address as a destination address is referred to as the multicast source, and a multicast user that receives multicast data is referred to as the multicast member. In other words, multicast has a direction from the multicast source to the multicast member. An angle between the multicast source and the multicast member is unchangeable. Otherwise, the multicast source and the multicast member belong to different multicast groups. For example, it is assumed that the terminal members in the LAN group include a terminal 1, a terminal 2, a terminal 3, a terminal 4, a terminal 5, and a terminal 6. For example, the terminal 1 is used as a multicast source, and the terminal 3, the terminal 5, and the terminal 6 are used as multicast members to form a multicast group. In this case, a corresponding schematic communication diagram may be shown in
In the embodiments of this application, the multicast source is determined at an application layer of an open system interconnection (open system interconnection, OSI) model. If a terminal needs to receive multicast data, the terminal may explicitly send an internet group management protocol (internet group management protocol, IGMP) join (join) message to a network, and the network forwards, to the terminal only after recording that the terminal joins a multicast group, the multicast data sent by the multicast source. In other words, the multicast member dynamically joins the multicast group. For a specific join process, refer to the following method embodiments. Details are not described herein.
A multicast address in the embodiments of this application may be a multicast IP version 4 (IP version 4, IPv4) address assigned by the internet assigned numbers authority (the internet assigned numbers authority, IANA), and is in a range of 224.0.0.0 to 239.255.255.255. Alternatively, a multicast address in the embodiments of this application may be a multicast MAC address in which a last bit in the most significant 48 bits in 48 bits is always 1. Alternatively, a multicast address in the embodiments of this application may be another address. For details, refer to a definition of an existing multicast address. The details are not described herein.
3. Group
The group in the embodiments of this application may include the LAN group and the multicast group. Unified descriptions are provided herein, and details are not described below.
4. Session Port and Tunnel Endpoint on a User Plane Network Element
In the embodiments of this application, the session port on the user plane network element is a logical port, and may be specifically a core network tunnel endpoint established by the user plane network element based on a session port identifier allocated by a session management network element or the user plane network element when a terminal establishes a PDU session, or may be understood as an anchor for a PDU session of a terminal on a core network side. A function of the session port is to anchor the terminal on the user plane network element (namely, connect a terminal), to receive, through the session port, a packet sent by the terminal, and send a packet to the terminal through the session port. For example, the session port identifier herein may be a TEID.
For example, as shown in
In the embodiments of this application, the tunnel endpoint on the user plane network element is a logical port, and may be a tunnel endpoint at a LAN group granularity. Specifically, when a terminal in a LAN group establishes a PDU session, after a first tunnel is established between a user plane network element accessed by the terminal and a user plane network element accessed by another terminal in the LAN group, the user plane network element accessed by the terminal and the user plane network element accessed by the another terminal in the group create the tunnel endpoint respectively based on a first tunnel endpoint identifier and a second tunnel endpoint identifier that are allocated by the session management network element. The first tunnel endpoint identifier is an identifier of a tunnel endpoint of the first tunnel on the side of the user plane network element accessed by the terminal, and the second tunnel endpoint identifier is an identifier of a tunnel endpoint of the first tunnel on the side of the user plane network element accessed by the another terminal in the group. A function of the tunnel endpoint is to receive a packet that belongs to the LAN group and that is from the connected user plane network element through the tunnel endpoint, and send a packet belonging to the LAN group to the connected user plane network element through the tunnel endpoint. For example, the first tunnel endpoint identifier herein may be a TEID 1, and the second tunnel endpoint identifier herein may be a TEID 2.
For example, as shown in
It should be noted that descriptions are provided herein by using an example in which the tunnel 2 is established between the user plane network element 2 and the user plane network element 3 when the terminal 5 establishes the PDU session. Certainly, when establishing the PDU session, the terminal 5 may alternatively establish a tunnel 3 between the user plane network element 1 and the user plane network element 3. To prevent a broadcast storm, the tunnel 2 and the tunnel 3 do not need to be established at the same time. For example, after the tunnel 2 is established, a packet sent by the terminal 1 may be forwarded to the user plane network element 3 by using the user plane network element 2, so that the packet can be sent to the terminal 5. Unified descriptions are provided herein, and details are not described below.
5. Member Port on a User Plane Network Element
In the embodiments of this application, the member port on the user plane network element is a port set of a group on the user plane network element, and includes at least one of the session port or the tunnel endpoint. The member ports have a same function and role. For a LAN group, all ports that can be used to receive or send a broadcast packet belonging to the LAN group and that are on a user plane network element are member ports. For a multicast group, all ports that are used to send a multicast packet belonging to the multicast group and that are on a user plane network element are member ports. A terminal or a user plane network element connected to the member port may be referred to as a member.
For example, assuming that all terminals in a group access a same user plane network element, a member port of the group on the user plane network element includes only a session port of the group, but does not include a tunnel endpoint of the group. For example, as shown in
Alternatively, as shown in
Alternatively, as shown in
In conclusion, in the embodiments of this application, on a user plane network element, a quantity of member ports of a LAN group is equal to a sum of all session ports and all tunnel endpoints that are on the user plane network element and that correspond to the LAN group, and a quantity of member ports of a multicast group is equal to a quantity of all ports that are on the user plane network element, that correspond to the multicast group, and that are used to send a multicast packet belonging to the multicast group.
6. Ingress and Egress
In the embodiments of this application, the ingress is a port used to receive a packet on the user plane network element, and the egress is a port used to send a packet on the user plane network element. The ingress and the egress are in two directions of a same logical port. The logical port herein may be the session port or the tunnel endpoint. In addition, it can be learned from the definition of the member port that in a multicast scenario, the egress herein is also a member port. Unified descriptions are provided herein, and details are not described below.
For example, in a broadcast scenario, the user plane network element 1 in
Alternatively, in a multicast scenario, it is assumed that the terminal 1 is a multicast source, and the terminal 2 and the terminal 5 are used as multicast members. The user plane network element 1 in
It should be noted that an ingress and an egress are separately shown merely for ease of description in
7. Upstream Port and Downstream Port
The upstream port and the downstream port in the embodiments of this application are introduced to facilitate description in a group communication scenario. In a multicast scenario, the upstream port may correspond to the foregoing ingress, and is directly or indirectly connected to a multicast source; and the downstream port may correspond to the foregoing egress, and is directly or indirectly connected to a multicast member. Unified descriptions are provided herein, and details are not described below.
The following describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. In the descriptions in this application, “I” represents an “or” relationship between associated objects unless otherwise specified. For example, A/B may represent A or B. The term “and/or” in this application indicates only an association relationship for describing the associated objects and indicates that three relationships may exist. For example, A and/or B may indicate the following three cases: Only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. In addition, unless otherwise specified, “a plurality of” in the descriptions in this application means two or more. “At least one of the following” or a similar expression thereof refers to any combination of these items, including any combination of singular items or plural items. For example, at least one of a, b, or c may indicate: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular or plural. In addition, for convenience of clear descriptions of the technical solutions in the embodiments of this application, in the embodiments of this application, terms such as “first” and “second” are used to distinguish between same items or similar items whose functions and purposes are basically the same. A person skilled in the art may understand that the terms such as “first” and “second” do not limit a quantity or an execution sequence, and the terms such as “first” and “second” do not indicate a definite difference.
In addition, a network architecture and a service scenario that are described in the embodiments of this application are intended to describe the technical solutions in the embodiments of this application more clearly, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. A person of ordinary skill in the art may learn that with evolution of the network architecture and emergence of a new service scenario, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
A main idea of a group communications method and system, and a device that are provided in the embodiments of this application is first provided.
The ingress function on the user plane network element includes: identifying, by using an ingress PDR applied to a session port or a tunnel endpoint, a broadcast packet or a multicast packet that belongs to a group. For example, in
The group forwarding function on the user plane network element is implemented by using a group FAR (group FAR). The ingress PDR includes an identifier of a group FAR of a corresponding group. In other words, the ingress PDR points to the group FAR of the corresponding group. As shown in
(1) Field of an identifier of the group FAR, where the identifier of the group FAR may be, for example, a group identifier, and the group identifier may be, for example, a virtual local area network (virtual LAN, VLAN) identifier or a multicast group identifier.
(2) Field of a group type, where the group type may be, for example, broadcast or multicast.
(3) Field of a forwarding action bucket (forwarding action buckets), where the forwarding action bucket herein may be understood as a set of forwarding actions (forwarding action rule, FA). For example, as shown in
It should be noted that the plurality of FAs in the group FAR in
In the embodiments of this application, processing logic of the group FAR is: duplicating a packet into a plurality of packets with a quantity the same as the quantity of egresses of the group on the user plane network element on which the group FAR is located, and then forwarding the packets to egresses, namely, all member ports, specified according to the group FAR. Certainly, if the group FAR includes the plurality of FAs, the processing logic of the group FAR is: duplicating the packet into a plurality of packets with a quantity the same as the quantity of FAs, where each FA is used to process one duplicate of the packet. A processing result includes forwarding the packet to an egress specified based on the FA. In a process of forwarding the packet by using the group FAR, if it is found that the egress specified according to the group FAR is an ingress for the packet (in other words, a port used to receive the packet and a port used to send the packet are a same port, for example, have a same port identifier), the packet is discarded by default, to avoid a broadcast storm. In conclusion, the group FAR may be used to implement group-related broadcast and multicast communication.
The egress function on the user plane network element is implemented by using an egress PDR and an egress FAR that are applied to a session port or a tunnel endpoint. The egress PDR includes an identifier of the egress FAR. In other words, the egress PDR points to the egress FAR. As shown in
It should be noted that in the embodiment shown in
It should be noted that in the embodiment shown in
Based on the foregoing main idea, when a terminal member in a group changes (for example, a terminal member in a LAN group accesses a network, a multicast member joins a multicast group, a terminal member in a LAN group is disconnected from a network, a multicast member leaves a multicast group, a terminal member that belongs to a LAN group and that has accessed a network moves, or a multicast member in a multicast group moves), only a group FAR of the group on an associated user plane network element needs to be adjusted (created, updated, or deleted), and an egress PDR and an egress FAR that are associated with the terminal member and that are on the associated user plane network element or an ingress PDR, an egress PDR, and an egress FAR that are associated with the terminal member need to be adjusted (created, updated, or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are associated with another terminal member in the group remain unchanged. For a specific implementation solution, refer to the following method embodiments. Details are not described herein. In this way, when there are a relatively large number of terminal members in the group, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
Then, brief descriptions of a rule group in the following embodiments of this application are provided.
The rule group in the embodiments of this application is applicable to a scenario in which group communication is broadcast (that is, a group is a LAN group).
As described above, because any terminal that belongs to the LAN group and that has accessed a network may be used as a broadcast source and may also be used as a broadcast member, a rule group that includes an ingress PDR, an egress PDR, and an egress FAR is configured on each member port of the LAN group on the user plane network element. As shown in
It should be noted that in the embodiments of this application, if there are a plurality of member ports of the group on a user plane network element, an ingress PDR included in each member port points to a group FAR of the group on the user plane network element. In
It should be noted that
It should be noted that for example, as shown in
Then, brief descriptions of a multicast forwarding tree are provided in the following embodiments of this application.
The multicast forwarding tree in the embodiments of this application is applicable to a scenario in which group communication is multicast (that is, a group is a multicast group).
In addition, with reference to the definitions of the upstream direction and the downstream direction, in
As described above, multicast has a direction from the multicast source to the multicast member. Therefore, as shown in
The group management function network element is configured to: when a terminal member in a group changes (for example, a terminal member in a LAN group accesses a network, a multicast member joins a multicast group, a terminal member in a LAN group is disconnected from a network, a multicast member leaves a multicast group, a terminal member that belongs to a LAN group and that has accessed a network moves, or a multicast member in a multicast group moves), adjust (create, update, or delete), by using an associated session management network element, a group FAR of the group on an associated user plane network element, and adjust (create, update, or delete), by using the associated session management network element, an egress PDR and an egress FAR that are associated with the terminal member and that are on the associated user plane network element, or an ingress PDR, an egress PDR, and an egress FAR that are associated with the terminal member and that are on the associated user plane network element. Further, during group communication, the group management function network element may implement multicast or broadcast communication by using the ingress PDR, the egress PDR, the egress FAR, and the group FAR on the user plane network element. For a specific implementation solution, refer to the following method embodiments. Details are not described herein.
Based on the foregoing group communications system, when there are a relatively large number of terminal members in the group, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
Optionally, the group communications system shown in
For example, as shown in
The GMF network element may be a newly added network element in the 5G network architecture, and a function of the GMF network element is to manage a 5GLAN group, for example, dynamically create, modify, or delete a group based on a request of a terminal. In addition, the GMF network element may further have a function of managing a user plane path, a function of setting a user plane forwarding rule, a function of implementing inter-group isolation, and the like. Certainly, the function of managing a user plane path and the function of implementing inter-group isolation may alternatively be implemented by a newly added path management function (path management function, PMF) network element. This is not specifically limited in this embodiment of this application. In this embodiment of this application, descriptions are provided by using an example in which the GMF network element may further have the function of managing a user plane path, the function of implementing inter-group isolation, and the like.
In addition, as shown in
As shown in
It should be noted that in the 5G network architecture shown in
Optionally, the terminal (terminal) in the embodiments of this application may be a device such as a handheld device, a vehicle-mounted device, a wearable device, and a computing device that have a wireless communication function, or another processing device connected to a wireless modem. The terminal may further include a subscriber unit (subscriber unit), a cellular phone (cellular phone), a smartphone (smartphone), a wireless data card, a personal digital assistant (personal digital assistant, PDA) computer, a tablet computer, a wireless modem (modem), a handheld (handheld) device, a laptop computer (laptop computer), a cordless phone (cordless phone) or a wireless local loop (wireless local loop, WLL) station, a machine type communication (machine type communication, MTC) terminal, user equipment (user equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device), relay user equipment, or the like. The relay user equipment may be, for example, a 5G residential gateway (residential gateway, RG). For ease of description, in this application, the devices mentioned above are collectively referred to as the terminal.
Optionally, an access device (including the first access device or the second access device) in the embodiments of this application is a device that accesses a core network, for example, may be a base station, a broadband network gateway (broadband network gateway, BNG), an aggregation switch, or a non-3rd generation partnership project (3rd generation partnership project, 3GPP) access device. There may be base stations in various forms, for example, a macro base station, a micro base station (also referred to as a small cell), a relay station, and an access point.
Optionally, the group management function network element, the session management network element (for example, the first session management network element or the second session management network element), or the user plane network element (for example, the first user plane network element, the second user plane network element, the third user plane network element, or the fourth user plane network element) in
For example, the group management function network element, the session management network element, or the user plane network element in
The processor 1101 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more integrated circuits configured to control program execution of the solutions of this application.
The communications line 1102 may include a channel for transmitting information between the foregoing components.
The communications interface 1104 is any apparatus such as a transceiver, and is configured to communicate with another device or a communications network such as the Ethernet, a radio access network (radio access network, RAN), or a wireless local area network (wireless local area networks, WLAN).
The memory 1103 may be a read-only memory (read-only memory, ROM) or another type of static storage device that can store static information and an instruction, or a random access memory (random access memory, RAM) or another type of dynamic storage device that can store information and an instruction, or may be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory, CD-ROM) or another compact disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, or the like), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be used to carry or store expected program code in a form of an instruction or a data structure and that can be accessed by a computer. However, the memory 1103 is not limited thereto. The memory may exist independently, and be connected to the processor through the communications line 1102. Alternatively, the memory may be integrated into the processor.
The memory 1103 is configured to store computer execution instructions for executing the solutions of this application, and the processor 1101 controls execution of the computer execution instructions. The processor 1101 is configured to execute the computer execution instructions stored in the memory 1103, to implement a local area network communications method provided in the following embodiments of this application.
Optionally, the computer execution instructions in this embodiment of this application may also be referred to as application program code. This is not specifically limited in this embodiment of this application.
In a specific implementation, in an embodiment, the processor 1101 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
In a specific implementation, in an embodiment, the communications device 1100 may include a plurality of processors, for example, the processor 1101 and a processor 1107 in
In a specific implementation, in an embodiment, the communications device 1100 may further include an output device 1105 and an input device 1106. The output device 1105 communicates with the processor 1101, and may display information in a plurality of manners. For example, the output device 1105 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, or a projector (projector). The input device 1106 communicates with the processor 1101, and may receive input of a user in a plurality of manners. For example, the input device 1106 may be a mouse, a keyboard, a touchscreen device, or a sensing device.
The communications device 1100 may be a general-purpose device or a dedicated device. In a specific implementation, the communications device 1100 may be a desktop computer, a portable computer, a network server, a personal digital assistant (personal digital assistant, PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or a device with a structure similar to that in
The following describes, in detail with reference to
It should be noted that in the following embodiments of this application, names of messages between network elements, names of parameters in messages, or the like are merely examples, and may be other names in a specific implementation. This is not specifically limited in the embodiments of this application.
First, a scenario in which the group communications system shown in
S1201: A first terminal sends a PDU session establishment request (PDU session establishment request) message to an AMF network element by using an access device. Correspondingly, the AMF network element receives the PDU session establishment request message from the first terminal. The PDU session establishment request message is used to request to establish a first session (which may also be referred to as a first PDU session, briefly referred to as the first session below).
The PDU session establishment request message includes an identifier of the first terminal and a 5GLAN ID. The 5GLAN ID is an identifier of a 5GLAN group, and is used to indicate the first terminal to access the 5GLAN group.
Optionally, in this embodiment of this application, the identifier of the first terminal may be, for example, a subscription permanent identifier (subscription permanent identifier, SUPI) or a generic public subscription identifier (generic public subscription identity, GPSI) of the first terminal. This is not specifically limited in this embodiment of this application. The descriptions are also similarly applicable to another terminal in another embodiment in a broadcast scenario in this application. For example, an identifier of the following terminal 2 may be an SUPI or a GPSI of the terminal 2. Unified descriptions are provided herein, and details are not described below.
Optionally, the PDU session establishment request message may further carry a session identifier of the first session. For details, refer to an existing implementation. This is not specifically limited in this embodiment of this application. In this embodiment of this application, descriptions are provided by using an example in which the PDU session establishment request message does not carry the session identifier of the first session.
S1202: After selecting an SMF network element for the first terminal, the AMF network element sends a PDU session create session management (session management, SM) context (PDU session create SM context) request message to the SMF network element. Correspondingly, the SMF network element receives the PDU session create SM context request message from the AMF network element.
The PDU session create SM context request message includes the identifier of the first terminal and the 5GLAN ID.
S1203: The SMF network element learns, based on the 5GLAN ID, that the first terminal needs to access the 5GLAN group, and further sends a 5GLAN service request (5GLAN service request) message to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service request message from the SMF network element.
The 5GLAN service request message includes the identifier of the first terminal and the 5GLAN ID, and is used by the first terminal to request to access the 5GLAN group corresponding to the 5GLAN ID.
S1204: The GMF network element learns, based on the 5GLAN service request message, that the first terminal requests to access the 5GLAN group corresponding to the 5GLAN ID, and further obtains context information of the 5GLAN group corresponding to the 5GLAN ID.
Optionally, the GMF network element may determine, based on subscription information stored locally or stored by another network element (for example, a UDM) in a core network, whether the first terminal has permission to access the 5GLAN group corresponding to the 5GLAN ID. When determining that the first terminal does not have permission to access the 5GLAN group corresponding to the 5GLAN ID, the GMF network element may directly reject the 5GLAN service request message.
Optionally, in this embodiment of this application, that the GMF network element obtains context information of the 5GLAN group corresponding to the 5GLAN ID may be: For example, the GMF network element creates the context information of the 5GLAN group corresponding to the 5GLAN ID, or reads the context information that is of the 5GLAN group corresponding to the 5GLAN ID and that is stored on the GMF network element. For example, when the first terminal is the 1st terminal that accesses the 5GLAN group, the GMF network element needs to create, based on 5GLAN subscription information that corresponds to the 5GLAN ID and that is obtained from the UDM network element or stored on the GMF network element, the context information of the 5GLAN group corresponding to the 5GLAN ID. Alternatively, for example, when the first terminal requests to access the 5GLAN group corresponding to the 5GLAN ID, if another terminal has accessed the 5GLAN group, the GMF network element may read the context information that is of the 5GLAN group corresponding to the 5GLAN ID and that is stored on the GMF network element.
Optionally, in this embodiment of this application, the context information of the 5GLAN group may include an identifier of a terminal that has currently accessed the 5GLAN group and that is in a terminal member list (list) corresponding to the 5GLAN group, an identifier of a UPF network element accessed by the terminal that has accessed the 5GLAN group, and a session port identifier of each terminal on the accessed user plane network element.
The terminal member list corresponding to the 5GLAN group includes one or more terminals that subscribe to the 5GLAN group. For example, assuming that the identifier of the 5GLAN group is a 5GLAN ID 1, the terminal member list corresponding to the 5GLAN group may be shown in Table 1, and includes identifiers that are of a plurality of terminals and that correspond to the 5GLAN ID 1.
It should be noted that Table 1 is merely an example table storage form, and there may be another table storage form or a non-table storage form. For example, as shown in Table 2, identifiers of terminals and identifiers of 5GLAN groups are stored in a one-to-one correspondence. A storage form of the correspondence is not specifically limited in this embodiment of this application. The descriptions are applicable to all embodiments of this application. Unified descriptions are provided herein, and details are not described below.
It should be noted that in this embodiment of this application, the terminal that is in the terminal member list corresponding to the 5GLAN group and has accessed the 5GLAN group may be considered as a terminal that belongs to the 5GLAN group and has accessed a network, and a terminal that is in the terminal member list corresponding to the 5GLAN group but does not access the 5GLAN group may be considered as a terminal that belongs to the 5GLAN group but does not access the network (or referred to as a terminal that is disconnected from the network). The descriptions are applicable to all embodiments of this application. Unified descriptions are provided herein, and details are not described below.
In addition, it should be noted that in this embodiment of this application, network access may also be understood as getting online, and network disconnection may also be understood as getting offline. This is not specifically limited in this embodiment of this application.
For example, assuming that the terminal 5 in Table 1 or Table 2 has accessed the network before the first terminal accesses the network, the context information of the 5GLAN group may be shown in Table 3. Alternatively, assuming that the terminal 5 and the terminal 2 in Table 1 or Table 2 have accessed the network before the first terminal accesses the network, the context information of the 5GLAN group may be shown in Table 4. Table 3 or Table 4 includes an identifier of a terminal that has accessed the 5GLAN group, an identifier of a UPF network element accessed by the terminal that has accessed the 5GLAN group, and a session port identifier of each terminal on the accessed user plane network element.
Certainly, in this embodiment of this application, if the first terminal is the 1st terminal that is in the terminal member list corresponding to the 5GLAN group and that requests to access the 5GLAN group, in other words, no terminal in the terminal member list corresponding to the 5GLAN group accesses the network before the first terminal accesses the network, the GMF network element does not have the context information of the 5GLAN group. Unified descriptions are provided herein, and details are not described below.
Optionally, in this embodiment of this application, the context information of the 5GLAN group may further include a member list on a UPF network element accessed by the terminal that has accessed the network and a member port identifier corresponding to each member. A member for the UPF network element may be a terminal that accesses the UPF network element, or may be another UPF network element selected by a terminal that has accessed the network. This is not specifically limited in this embodiment of this application. For example, assuming that the identifier of the 5GLAN group is a 5GLAN ID 1, a correspondence between the identifier of the 5GLAN group, an identifier of a UPF network element accessed by a terminal that has accessed a network, a member list on the UPF network element, and a member port identifier corresponding to each member may be shown in Table 5.
In addition, optionally, in this embodiment of this application, the context information of the 5GLAN group may further include other information, for example, a QoS requirement. This is not specifically limited in this embodiment of this application.
It should be noted that in this embodiment of this application, the UPF network element accessed by the terminal may also be understood as an anchor UPF network element used when the terminal creates a PDU session, and the terminal communicates with another network element (or UE) by using the anchor UPF network element. In this embodiment of this application, the UPF network element accessed by the terminal may be specifically a UPF network element that provides a 5GLAN service for the terminal. The descriptions are applicable to all embodiments of this application. Unified descriptions are provided herein, and details are not described below.
S1205: The GMF network element obtains an identifier of a UPF network element that can provide a 5GLAN service for the first terminal. Herein, it is assumed that the UPF network element is a UPF network element 1.
Optionally, in a possible implementation, the GMF network element may request, from the SMF network element, the identifier of the UPF network element that can provide the 5GLAN service for the first terminal. For example, the GMF network element sends a request message 1 to the SMF network element, where the request message 1 includes the identifier of the first terminal and the context information of the 5GLAN group, and the request message 1 is used to request a session port identifier of the first session and the identifier of the UPF network element that can provide the 5GLAN service for the first terminal. Optionally, the request message 1 may further include an identifier of a UPF network element that the GMF network element advises the SMF network element to select. In this way, after receiving the request message 1 from the GMF network element, the SMF network element can allocate a session port identifier 11 to the first session based on the identifier of the first terminal, and select the UPF network element for the first terminal based on the context information of the 5GLAN group (optionally, or based on the identifier of the UPF network element that the GMF network element advises the SMF network element to select). Herein, assuming that the UPF network element accessed by the first terminal is the UPF network element 1, the SMF network element may send a response message 1 to the GMF network element, where the response message 1 includes the identifier of the first terminal, the identifier of the UPF network element 1, and the session port identifier 11. In this way, the GMF network element can obtain the identifier of the UPF network element 1 selected by the SMF network element for the first terminal, and the session port identifier 11 allocated by the SMF network element to the first session of the first terminal. The session port identifier 11 herein may be, for example, a TEID 1.
Optionally, in this embodiment of this application, the SMF network element may alternatively allocate a session identifier (for example, a PDU session ID) to the first session. For details, refer to an existing implementation. Details are not described herein.
For example, if the first terminal is the Pt terminal that is in the terminal member list corresponding to the 5GLAN group and that requests to access the 5GLAN group, the SMF network element may select a UPF network element based on the conventional technology, and determine the selected UPF network element as the UPF network element that can provide the 5GLAN service for the first terminal. For example, the SMF network element may use a method in section 6.3.3 in the existing standard TS23.501 V15.2.0 to select, for the first terminal, the UPF network element that provides the 5GLAN service.
Alternatively, for example, if the context information of the 5GLAN group includes an identifier of a UPF network element selected by another terminal that is in the terminal member list corresponding to the 5GLAN group and that has accessed the network, the SMF network element may determine that a UPF network element that is in UPF network elements that can provide the 5GLAN service but is temporarily not accessed by another terminal member in the 5GLAN group is the UPF network element that can provide the 5GLAN service for the first terminal; or the SMF network element may determine that a UPF network element that is accessed by another terminal member in the 5GLAN group but has a relatively small quantity of connected terminal members is the UPF network element that can provide the 5GLAN service for the first terminal. Certainly, the SMF may alternatively use the conventional technology with reference to the identifier information of the UPF network element selected by the another terminal that is in the terminal member list corresponding to the 5GLAN group and that has accessed the network, to select, for the first terminal, the UPF network element that provides the 5GLAN service. This is not specifically limited in this embodiment of this application.
Alternatively, optionally, in another possible implementation, the GMF network element may independently select, for the first terminal, the UPF network element that provides the 5GLAN service. In this case, the GMF network element may temporarily allocate a session port identifier to the first session. Subsequently, after completing user plane session establishment and group forwarding rule installation, the SMF network element notifies the GMF network element, and then the GMF network element updates the session port identifier that is of the first session and that is in the context information of the 5GLAN group. This is not specifically limited in this embodiment of this application.
Certainly, the foregoing embodiment provides only several example manners in which the GMF network element obtains the identifier of the UPF network element that can provide the 5GLAN service for the first terminal. Alternatively, the GMF network element may obtain, in another manner, the identifier of the UPF network element that can provide the 5GLAN service for the first terminal. This is not specifically limited in this embodiment of this application.
In addition, in the following embodiments of this application, descriptions are all provided by using an example scenario in which the SMF network element selects, for the first terminal, the UPF network element that provides the 5GLAN service. Unified descriptions are provided herein, and details are not described below.
After obtaining the session port identifier 11 and the identifier of the UPF network element 1, the GMF network element may update the context information that is of the 5GLAN group and that is stored on the GMF network element before the first terminal accesses the network, or establish the context information of the 5GLAN group on the GMF network element. For example, assuming that the first terminal is the terminal 1, if the first terminal is the 1st terminal that is in the terminal member list corresponding to the 5GLAN group and that requests to access the 5GLAN group, context information that is of the 5GLAN group and that is established on the GMF network element after the first terminal accesses the network may be, for example, shown in Table 6. Alternatively, assuming that the first terminal is the terminal 1, and the context information that is of the 5GLAN group and that is stored on the GMF network element before the first terminal accesses the network is shown in Table 3, context information that is of the 5GLAN group and that is obtained through updating after the first terminal accesses the network may be shown in Table 7. Alternatively, assuming that the first terminal is the terminal 1, and the context information that is of the 5GLAN group and that is stored on the GMF network element before the first terminal accesses the network is shown in Table 4, context information that is of the 5GLAN group and that is obtained through updating after the first terminal accesses the network may be shown in Table 8.
The following continues to describe, in three scenarios, the group communications method provided in this embodiment of this application.
It should be noted that for related descriptions of a rule group (for example, a rule group 11 or a rule group 12) and a 5GLAN group FAR (for example, a group FAR 1 or a group FAR 2) in the following embodiments, refer to the descriptions in the foregoing embodiments. Details are not described herein again. “11” and “12” in the rule group 11 and the rule group 12 are merely intended to differentiate between rule groups applied to different member ports, and “1” and “2” in the group FAR 1 and the group FAR 2 are merely intended to differentiate between 5GLAN group FARs applied to different UPF network elements. Alternatively, “first”, “second”, and the like may be used for the differentiation. This is not specifically limited in this embodiment of this application. The descriptions are applicable to all the following embodiments. Unified descriptions are provided herein, and details are not described below.
In a scenario 1, the GMF network element determines that the first terminal is the 1st terminal that is in the terminal member list corresponding to the 5GLAN group and that requests to access the 5GLAN group. In this case, the group communications method provided in this embodiment of this application further includes steps S1206a to S1210a.
S1206a: The GMF network element creates, for the 5GLAN group, a rule group 11 applied to a session port 11 on the UPF network element 1, and the GMF network element creates, for the 5GLAN group, a 5GLAN group FAR applied to the UPF network element 1, where the 5GLAN group FAR is denoted as a group FAR 1.
The rule group 11 includes an ingress PDR 11, an egress PDR 11, and an egress FAR 11.
Optionally, the group FAR 1 herein may include an FA 11, and the FA 11 is used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to the session port 11.
S1207a: The GMF network element sends a 5GLAN service response message 1 to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service response message 1 from the GMF network element. The 5GLAN service response message 1 includes the identifier of the UPF network element 1, and the session port identifier 11, the rule group 11, and the group FAR 1 that correspond to the identifier of the UPF network element 1.
Optionally, in this embodiment of this application, the identifier of the UPF network element (for example, the UPF network element 1, the UPF network element 2, or a UPF network element 3) may be, for example, an IP address of the UPF network element. This is not specifically limited in this embodiment of this application. The descriptions are also applicable to UPF network elements in all the embodiments of this application. Unified descriptions are provided herein, and details are not described below.
S1208a: The SMF network element sends an N4 session establishment request (N4 session establishment request) message 1 to the corresponding UPF network element 1 based on the identifier that is of the UPF network element 1 and that is in the 5GLAN service response message 1. Correspondingly, the UPF network element 1 receives the N4 session establishment request message 1 from the SMF network element.
The N4 session establishment request message 1 includes configuration information 1, and the configuration information 1 includes the session port identifier 11, the rule group 11, and the group FAR 1.
S1209a: The UPF network element 1 establishes the first session, configures the rule group 11 on the session port 11 on the UPF network element 1 based on the session port identifier 11 and the rule group 11 in the configuration information 1, and configures the group FAR 1 on the UPF network element 1 based on the group FAR 1 in the configuration information 1.
In this embodiment of this application, that the UPF network element 1 establishes the first session includes: creating the session port 11 based on the session port identifier 11. For related descriptions, refer to the descriptions in the foregoing embodiments. Details are not described herein again.
For example, assuming that the first terminal is the terminal 1, and an identifier of the group FAR 1 is 1, based on the foregoing procedure, after the first terminal accesses the network, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
S1210a: The UPF network element 1 sends an N4 session establishment response (N4 session establishment response) message 1 to the SMF network element. Correspondingly, the SMF network element receives the N4 session establishment response message 1 from the UPF network element 1.
The N4 session establishment response message 1 is used to notify that N4 session establishment and rule installation are complete.
Alternatively, in a scenario 2, the GMF network element determines that another terminal member has joined the 5GLAN group, and the UPF network element selected by the SMF network element for the first terminal is the same as a UPF network element selected by the another terminal member that has accessed the 5GLAN group (for example, the context information of the 5GLAN group is shown in Table 3). In this case, the group communications method provided in this embodiment of this application further includes steps S1206b to S1210b.
Steps S1206b to S1210b are similar to steps S1206a to S1210a. For example, a difference lies in that in steps S1206a to S1210a, the 5GLAN group FAR applied to the UPF network element 1 is created, but in steps S1206b to S1210b, the 5GLAN group FAR applied to the UPF network element 1 is updated. For other related descriptions, refer to steps S1206a to S1210a. Details are not described herein again.
For example, it is assumed that the context information that is of the 5GLAN group and that is stored on the GMF network element before the first terminal accesses the network is shown in Table 3. A network access manner for the terminal 5 in Table 3 is similar to for the terminal 1 in steps S1206a to S1210a. A rule group 51 is configured on a session port 51 on the UPF network element 1, and a group FAR 1 is configured on the UPF network element 1. The group FAR 1 includes an FA 51, and the rule group 51 includes an ingress PDR 51, an egress PDR 51, and an egress FAR 51. To be specific, a schematic configuration diagram for a 5GLAN group on a UPF network element 1 is shown in
In this case, assuming that the first terminal is the terminal 1, and an identifier of the group FAR 1 is 1, based on the foregoing procedure, after the terminal 1 accesses the network, a schematic configuration diagram for a 5GLAN group on a UPF network element 1 may be shown in
Alternatively, in a scenario 3, the GMF network element determines that another terminal member has joined the 5GLAN group, and the SMF network element selects, for the first terminal, a UPF network element that is not accessed by the another terminal member in the 5GLAN group (for example, the context information of the 5GLAN group is shown in Table 4). In this case, it indicates that the 5GLAN group may be associated with a plurality of UPF network elements, and the group communications method provided in this embodiment of this application further includes steps S1209c to S1218c.
S1206c: The GMF network element sends a request message 2 to the SMF network element. Correspondingly, the SMF network element receives the request message 2 from the GMF network element. The request message 2 is used to request to establish a first tunnel between the UPF network element 1 and the UPF 2. The first tunnel is used to transmit communication data between group members in the 5GLAN group.
S1207c: The SMF network element sends a response message 2 to the GMF network element. Correspondingly, the GMF network element receives the response message 2 from the SMF network element.
The response message 2 includes a tunnel endpoint identifier 41 and a tunnel endpoint identifier 42. A tunnel endpoint 41 herein is a port that is on the side of the UPF network element 1 and that is of the first tunnel between the UPF network element 1 and the UPF network element 2. A tunnel endpoint 42 herein is a port that is on the side of the UPF network element 2 and that is of the first tunnel between the UPF network element 1 and the UPF network element 2. For example, the tunnel endpoint identifier 41 may be, for example, a TEID 41, and the tunnel endpoint identifier 42 may be, for example, a TEID 42. It should be noted that the tunnel endpoint identifier may be allocated by the SMF network element, or may be allocated by the corresponding UPF network element (for example, the UPF network element 1 allocates the tunnel endpoint identifier 41 to the port of the first tunnel on the side of the UPF network element 1, and the UPF network element 2 allocates the tunnel endpoint identifier 42 to the port of the first tunnel on the side of the UPF network element 2). This is not limited in this embodiment of this application.
S1208c: The GMF network element creates, for the 5GLAN group, a rule group 11 applied to a session port 11 on the UPF network element 1. The GMF network element creates, for the 5GLAN group, a 5GLAN group FAR applied to the UPF network element 1, where the 5GLAN group FAR is denoted as a group FAR 1. The GMF network element creates, for the 5GLAN group, a rule group 41 applied to the tunnel endpoint 41 on the UPF network element 1. The GMF network element creates, for the 5GLAN group, a rule group 42 applied to the tunnel endpoint 42 on the UPF network element 2. The GMF network element updates, for the 5GLAN group, a 5GLAN group FAR applied to the UPF network element 2, where the 5GLAN group FAR is denoted as a group FAR 2.
Optionally, the group FAR 1 herein may include an FA 11 and an FA 41. The FA 11 is used to duplicate a received broadcast packet belonging to the 5GLAN group corresponding to the 5GLAN ID and then send the broadcast packet to the session port 11. The FA 41 is used to duplicate a received broadcast packet belonging to the 5GLAN group corresponding to the 5GLAN ID and then send the broadcast packet to the tunnel endpoint 41.
Optionally, the group FAR 2 herein may include an FA 42, and the FA 42 is used to duplicate a received broadcast packet belonging to the 5GLAN group corresponding to the 5GLAN ID and then send the broadcast packet to the tunnel endpoint 42.
S1209c: The GMF network element sends a 5GLAN service response message 2 to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service response message 2 from the GMF network element. The 5GLAN service response message 2 includes the identifier of the UPF network element 1, the group FAR 1, the session port identifier 11, the rule group 11, the tunnel endpoint identifier 41, and the rule group 41 that correspond to the identifier of the UPF network element 1, the identifier of the UPF network element 2, and the updated group FAR 2, the tunnel endpoint identifier 42, and the rule group 42 that correspond to the identifier of the UPF network element 2.
S1210c: The SMF network element sends an N4 session establishment request message 2 to the corresponding UPF network element 1 based on the identifier that is of the UPF network element 1 and that is in the 5GLAN service response message 2. Correspondingly, the UPF network element 1 receives the N4 session establishment request message 2 from the SMF network element.
The N4 session establishment request message 2 includes configuration information 2, and the configuration information 2 includes the group FAR 1, the session port identifier 11, the rule group 11, the tunnel endpoint identifier 41, and the rule group 41.
S1211c: The UPF network element 1 establishes the first session and the first tunnel, configures the rule group 11 on the session port 11 on the UPF network element 1 based on the session port identifier 11 and the rule group 11 in the configuration information 2, configures the group FAR 1 on the UPF network element 1 based on the group FAR 1 in the configuration information 2, and configures the rule group 41 on the tunnel endpoint 41 on the UPF network element 1 based on the tunnel endpoint identifier 41 and the rule group 41 in the configuration information 2.
In this embodiment of this application, that the UPF network element 1 establishes the first session may include, for example, creating the session port 11 based on the session port identifier 11; and that the UPF network element 1 establishes the first tunnel may include, for example, creating the tunnel endpoint 41 based on the tunnel endpoint identifier 41. For related descriptions, refer to the descriptions in the foregoing embodiments. Details are not described herein again.
S1212c: The UPF network element 1 sends an N4 session establishment response message 2 to the SMF network element. Correspondingly, the SMF network element receives the N4 session establishment response message 2 from the UPF network element 1.
The N4 session establishment response message 2 is used to notify that N4 session establishment and rule installation are complete.
S1213c: The SMF network element sends an N4 session modification request (N4 session modification request) message to the corresponding UPF network element 2 based on the identifier that is of the UPF network element 2 and that is in the 5GLAN service response message 2. Correspondingly, the UPF network element 1 receives the N4 session modification request message from the SMF network element.
The N4 session modification request message includes configuration information 3, and the configuration information 3 includes the updated group FAR 2, the tunnel endpoint identifier 42, and the rule group 42.
S1214c: The UPF network element 2 establishes the first tunnel with the UPF network element 1, configures the rule group 42 on the tunnel endpoint 42 on the UPF network element 2 based on the tunnel endpoint identifier 42 and the rule group 42 in the configuration information 3, and updates the group FAR 2 on the UPF network element 2 based on the updated group FAR 2 in the configuration information 3.
In this embodiment of this application, that the UPF network element 2 establishes the first tunnel may include, for example, creating the tunnel endpoint 42 based on the tunnel endpoint identifier 42. For related descriptions, refer to the descriptions in the foregoing embodiments. Details are not described herein again.
S1215c: The UPF network element 2 sends an N4 session modification response message to the SMF network element. Correspondingly, the SMF network element receives the N4 session modification response message from the UPF network element 2.
The N4 session modification response message is used to notify that N4 session modification and rule installation are complete.
It should be noted that there is no necessary execution sequence between step S1213c and step S1210c. Step S1213c may be performed before or after step S1210c, or steps S1213c and S1210c may be performed simultaneously. This is not specifically limited in this embodiment.
For example, it is assumed that the context information that is of the 5GLAN group and that is stored on the GMF network element before the first terminal accesses the network is shown in Table 4. Network access manners for the terminal 5 and the terminal 2 in Table 4 are similar to those for the terminal 2 and the terminal 5 in steps S1206b to S1210b. A rule group 22 is configured on a session port 22 on the UPF network element 2, a rule group 52 is configured on a session port 52 on the UPF network element 2, and a group FAR 2 is configured on the UPF network element 2. The group FAR 2 includes an FA 4 and an FA 5, the rule group 22 includes an ingress PDR 22, an egress PDR 22, and an egress FAR 22, and the rule group 52 includes an ingress PDR 52, an egress PDR 52, and an egress FAR 52. To be specific, a schematic configuration diagram for a 5GLAN group on a UPF network element 2 is shown in
In this case, assuming that the first terminal is the terminal 1, and an identifier of the group FAR 1 is 1, based on the foregoing procedure, after the terminal 1 accesses the network, the identifier of the group FAR 1 is 1, and a schematic configuration diagram for 5GLAN groups on a UPF network element 1 and a UPF network element 2 may be shown in
Optionally, in this embodiment of this application, if the UPF network element 1 allocates a session port identifier 111 to the first session, there are two solutions in which the session port identifier 111 allocated by the UPF network element 1 is consistent with the session port identifier 11 allocated by the SMF network element to the first session.
In one solution, the UPF network element 1 maintains a correspondence between the session port identifier 111 allocated by the UPF network element 1 to the first session and the session port identifier 11 allocated by the SMF network element to the first session.
In the other solution, the UPF network element 1 updates a correspondence between the session port identifier 11 and the rule group 11 that are configured on the UPF network element 1 to a correspondence between the session port identifier 111 and the rule group 11, and the UPF network element 1 sends, to the SMF network element (for example, by using the N4 session establishment response message 1 in step S1210a or the N4 session establishment response message 2 in step S1212c), the session port identifier 111 allocated by the UPF network element 1 to the first session, so that the SMF network element deletes the session port identifier 11 allocated by the SMF network element to the first session, and uses the session port identifier 111 allocated by the UPF network element 1 to the first session. In addition, the SMF network element initiates an update request to the GMF network element, where the update request includes the session port identifier 111, so that the GMF network element can update the session port identifier 11 corresponding to the first session to the session port identifier 111.
S1216: Complete a remaining PDU session establishment process.
According to the group communications method, when a terminal in the 5GLAN group accesses the network, only a 5GLAN group FAR on an associated UPF network element needs to be adjusted (created or updated), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the terminal member need to be adjusted (created or updated), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another terminal member in the 5GLAN group remain unchanged. Therefore, when a relatively large number of terminal members belonging to the 5GLAN group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
The actions of the GMF network element, the SMF network element, the UPF network element 1, or the UPF network element 2 in steps S1201 to S1216 may be performed by the processor 1101 in the communications device 1100 shown in
Alternatively, scenarios in which the group communications system shown in
Prerequisites: A first terminal has accessed the UPF network element 1, and a configuration for a 5GLAN group is created on the UPF network element 1 and includes a group FAR 1 and a related rule group; or a configuration for a 5GLAN group may be created on another UPF network element in the 5GLAN group and includes a related group FAR and a related rule group. For an establishment method, refer to the embodiment shown in
S1601: A first terminal is handed over from a first access device to a second access device.
S1602: The second access device sends a path switch request (path switch request) to an AMF network element. Correspondingly, the AMF network element receives the path switch request from the second access device.
Optionally, the path switch request may alternatively be replaced with a handover (handover) announcement. This is not specifically limited in this embodiment of this application.
S1603: The AMF network element sends a PDU session update request (PDU session update request) to an SMF network element. Correspondingly, the SMF network element receives the PDU session update request from the AMF network element.
Optionally, the PDU session update request may alternatively be replaced with a PDU session SM context update request (PDU session SM context update request). This is not specifically limited in this embodiment of this application.
For specific implementation of steps S1601 to S1603, refer to an existing implementation. Details are not described herein.
S1604: The SMF network element determines, based on the PDU session update request, to update a UPF network element, for example, to change a UPF network element that serves the first terminal from a UPF network element 1 to a UPF network element 3. In addition, if the SMF network element determines that the first terminal initiates 5GLAN group communication, the SMF network element sends a 5GLAN service update request (5GLAN service update request) to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service update request from the SMF network element.
The 5GLAN service update request includes an identifier of the first terminal, an identifier of the UPF network element 3 (namely, a target UPF network element), and a session port identifier 11 of a first session.
Optionally, the 5GLAN service update request may further include an identifier of the UPF network element 1 (namely, a source UPF network element).
S1605: If the GMF network element learns, based on the 5GLAN service update request, that the UPF network element that serves the first terminal is changed from the UPF network element 1 to the UPF network element 3, the GMF network element creates, for the 5GLAN group, a rule group 31 applied to a session port 31 on the UPF network element 3, and creates or updates, for the 5GLAN group based on context information of the 5GLAN group, a 5GLAN group FAR applied to the UPF network element 3, where the 5GLAN group FAR is denoted as a group FAR 3. The created or updated group FAR 3 includes a rule used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to the session port 31 on the UPF network element 3.
Optionally, in this embodiment of this application, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in a terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the GMF network element further updates, for the 5GLAN group, a group FAR 1 applied to the UPF network element 1. A rule that is in the updated group FAR 1 and that is used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to a session port 11 on the UPF network element 1 is deleted.
For related descriptions of the context information of the 5GLAN group, refer to the embodiment shown in
S1606: The GMF network element sends a 5GLAN service update response (5GLAN service update response) to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service update response from the GMF network element.
The 5GLAN service update response includes an identifier of the UPF network element 3, and the group FAR 3, a session port identifier 31, and the rule group 31 that correspond to the identifier of the UPF network element 3, and is used to configure the rule group 31 on the session port 31 on the UPF network element 3, and configure or update the group FAR 3 on the UPF network element 3. In addition, the 5GLAN service update response includes an identifier of the UPF network element 1 and the session port identifier 11 corresponding to the identifier of the UPF network element 1, and is used to delete the session port 11 on the UPF network element 1 and a rule group 11 on the session port 11. Optionally, the 5GLAN service update response may include an identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
In addition, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that no other terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service update response further includes an identifier that is of the group FAR 1 and that corresponds to the identifier of the UPF network element 1, and is used to delete the group FAR 1 on the UPF network element 1. Alternatively, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service update response further includes the updated group FAR 1 corresponding to the identifier of the UPF network element 1, and is used to update the group FAR 1 on the UPF network element 1.
S1607: The SMF network element sends an N4 session establishment request message 1 to the corresponding UPF network element 3 based on the identifier that is of the UPF network element 3 and that is in the 5GLAN service update response. Correspondingly, the UPF network element 3 receives the N4 session establishment request message 1 from the SMF network element.
The N4 session establishment request message 1 includes configuration information, and the configuration information includes the group FAR 3, the session port identifier 31, and the rule group 31 that correspond to the identifier of the UPF network element 3.
S1608: The UPF network element 3 establishes a first session, configures the rule group 31 on the session port 31 on the UPF network element 3 based on the session port identifier 31 and the rule group 31 in the configuration information in step S1607, and configures or updates the group FAR 3 on the UPF network element 3 based on the group FAR 3 in the configuration information in step S1607.
In this embodiment of this application, that the UPF network element 3 establishes a first session includes: creating the session port 31 based on the session port identifier 31. For related descriptions, refer to the descriptions in the foregoing embodiments. Details are not described herein again.
S1609: The SMF network element sends an N4 session release request (N4 session release request) 1 to the corresponding UPF network element 1 based on the identifier that is of the UPF network element 1 and that is in the 5GLAN service update response. Correspondingly, the UPF network element 1 receives the N4 session release request 1 from the SMF network element.
When another terminal currently accesses the UPF network element 1, the N4 session release request 1 includes an indication information 1, and the indication information 1 includes the session port identifier 11 and the updated group FAR 1 that correspond to the identifier of the UPF network element 1.
Alternatively, when no other terminal currently accesses the UPF network element 1, the N4 session release request 1 includes indication information 2, and the indication information 2 includes the session port identifier 11 and the identifier of the group FAR 1 that correspond to the identifier of the UPF network element 1. Optionally, the N4 session release request 1 may include the identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
S1610: The UPF network element 1 releases the first session, and deletes the session port 11 on the UPF network element 1 and the rule group 11 on the session port 11 based on the session port identifier 11 in the indication information 1 or the indication information 2. In addition, the UPF network element 1 updates the group FAR 1 on the UPF network element 1 based on the updated group FAR 1 in the indication information 1, or the UPF network element 1 deletes the group FAR 1 on the UPF network element 1 based on the identifier that is of the group FAR 1 and that is in the indication information 2.
In this embodiment of this application, that the UPF network element 1 releases the first session includes: deleting the session port 11 based on the session port identifier 11.
For example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
It should be noted that related descriptions of the schematic configuration diagram of the 5GLAN group on the UPF network element selected by a terminal member that belongs to the 5GLAN group and that has accessed a network before the first terminal moves in the 5GLAN group are merely provided herein. Before the first terminal moves in the 5GLAN group or before the first terminal is disconnected from a network (that is, releases a first session of the first terminal) in the following embodiment shown in
Alternatively, for example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
Optionally, in this embodiment of this application, when no other terminal currently accesses the UPF network element 1, but an identifier of a UPF network element selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network includes an identifier of another UPF network element different from the UPF network element 1, if the UPF network element that serves the first terminal is updated from the UPF network element 1 to the UPF network element 3, the GMF network element further needs to indicate, by using the SMF network element, the UPF network element 1 and the another UPF network element to delete a corresponding tunnel endpoint of the 5GLAN group and a rule group on the tunnel endpoint, delete a group FAR applied to the UPF network element 1, and update a group FAR applied to the another UPF network element. An implementation is similar to that in steps S1609 and S1610. Details are not described herein again.
For example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, when identifiers of UPF network elements selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network include an identifier of a UPF network element 1, an identifier of a UPF network element 2, and an identifier of a UPF network element 3, a schematic configuration diagram of 5GLAN groups on the UPF network element 1, the UPF network element 2, and the UPF network element 3 is shown in
Alternatively, for example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, when identifiers of UPF network elements selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network include an identifier of a UPF network element 1 and an identifier of a UPF network element 3, a schematic configuration diagram of 5GLAN groups on the UPF network element 1 and the UPF network element 3 is shown in
Optionally, in this embodiment of this application, when an identifier of a UPF network element selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network does not include the UPF network element 3, if the UPF network element that serves the first terminal is updated from the UPF network element 1 to the UPF network element 3, the GMF network element further needs to request the SMF network element to establish a tunnel between the UPF network element 3 and another UPF network element, and after receiving a tunnel endpoint identifier from the SMF network element, configures, by using the SMF network element, rule groups applied to tunnel endpoints on the UPF network element 3 and the another UPF network element, creates a group FAR 3 applied to the UPF network element 3, and updates a group FAR applied to the another UPF network element. The another UPF network element herein may be, for example, the UPF network element 1, or the UPF network element other than the UPF network element 1 in the identifier of the UPF network element selected by the terminal that is in the terminal member list corresponding to the 5GLAN group and that has currently accessed the network. An implementation is similar to that in steps S1607 and S1608. Details are not described herein again.
For example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, when an identifier of a UPF network element selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network includes only an identifier of a UPF network element 1, a schematic configuration diagram of a 5GLAN group on the UPF network element 1 is shown in
Alternatively, for example, assuming that the first terminal is a terminal 1, before the first terminal moves in a 5GLAN group, when identifiers of UPF network elements selected by a terminal that is in a terminal member list corresponding to the 5GLAN group and that has currently accessed a network include an identifier of a UPF network element 1 and an identifier of a UPF network element 2, a schematic configuration diagram of 5GLAN groups on the UPF network element 1 and the UPF network element 2 is shown in
S1611: Complete a remaining handover process.
According to the group communications method, when a terminal member that belongs to the 5GLAN group and that has accessed a network moves in the 5GLAN group, only a 5GLAN group FAR on an associated UPF network element needs to be adjusted (created, updated, or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the terminal member need to be adjusted (created, updated, or deleted), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another terminal member that belongs to the 5GLAN group and that has accessed the network remain unchanged. Therefore, when a relatively large number of terminal members belonging to the 5GLAN group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
The actions of the GMF network element, the SMF network element, the UPF network element 1, or the UPF network element 3 in steps S1601 to S1611 may be performed by the processor 1101 in the communications device 1100 shown in
Alternatively, scenarios in which the group communications system shown in
Prerequisites: A first terminal has accessed the UPF network element 1, and a configuration for a 5GLAN group is created on the UPF network element 1 and includes a group FAR 1 and a related rule group; or a configuration for a 5GLAN group may be created on another UPF network element in the 5GLAN group and includes a related group FAR and a related rule group. For an establishment method, refer to the embodiment shown in
S2301: A first terminal sends a session release request to an AMF network element. Correspondingly, the AMF network element receives the session release request from the first terminal.
S2302: The AMF network element sends an SM context update request to an SMF network element. Correspondingly, the SMF network element receives the SM context update request from the AMF network element.
Optionally, the SM context update request may alternatively be replaced with a PDU session update request. This is not specifically limited in this embodiment of this application.
For specific implementation of steps S2301 and S2302, refer to an existing implementation. Details are not described herein.
S2303: If the SMF network element determines that the first terminal initiates 5GLAN group communication, the SMF network element sends a 5GLAN service release request (5GLAN service release request) to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service release request from the SMF network element.
The 5GLAN service release request is used to indicate to release a first session of the first terminal.
In a possible implementation, the 5GLAN service release request has a function of indicating to release a session. In this case, the 5GLAN service release request may include an identifier of the first terminal. Alternatively, in a possible implementation, the 5GLAN service release request includes indication information and an identifier of the first terminal, and the indication information is used to indicate to release a session.
Optionally, the 5GLAN service release request may further include an identifier of a UPF network element 1 accessed by the first terminal when the first terminal accesses a network. This is not specifically limited in this embodiment of this application.
The GMF network element learns, based on the 5GLAN service release request, that the first terminal is to release the first session, and may further perform a related operation. The following continues to describe, in two scenarios, the group communications method provided in this embodiment of this application.
In a scenario 1, when the GMF network element determines, based on context information that is of a 5GLAN group and that is stored on the GMF network element, that no other terminal in a terminal member list corresponding to the 5GLAN group accesses another UPF network element, the group communications method provided in this embodiment of this application further includes steps S2304a to S2307a.
S2304a: Optionally, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the GMF network element further updates, for the 5GLAN group, a group FAR 1 applied to the UPF network element 1. A rule that is in the updated group FAR 1 and that is used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to a session port 11 on the UPF network element 1 is deleted.
For related descriptions of the context information of the 5GLAN group, refer to the embodiment shown in
S2305a: The GMF network element sends a 5GLAN service release response (5GLAN service release response) 1 to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service release response 1 from the GMF network element.
The 5GLAN service release response 1 includes an identifier of the UPF network element 1 and a session port identifier 11 corresponding to the identifier of the UPF network element 1, and is used to delete the session port 11 on the UPF network element 1 and a rule group 11 on the session port 11. Optionally, the 5GLAN service release response 1 may include an identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
In addition, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that no other terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service release response 1 further includes an identifier that is of the group FAR 1 and that corresponds to the identifier of the UPF network element 1, and is used to delete the group FAR 1 on the UPF network element 1. Alternatively, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service release response 1 further includes the updated group FAR 1 corresponding to the identifier of the UPF network element 1, and is used to update the group FAR 1 on the UPF network element 1.
S2306a: The SMF network element sends an N4 session release request 1 to the corresponding UPF network element 1 based on the identifier that is of the UPF network element 1 and that is in the 5GLAN service release response 1. Correspondingly, the UPF network element 1 receives the N4 session release request 1 from the SMF network element.
When another terminal currently accesses the UPF network element 1, the N4 session release request 1 includes an indication information 1, and the indication information 1 includes the session port identifier 11 and the updated group FAR 1 that correspond to the identifier of the UPF network element 1.
Alternatively, when no other terminal currently accesses the UPF network element 1, the N4 session release request 1 includes indication information 2, and the indication information 2 includes the session port identifier 11 and the identifier of the group FAR 1 that correspond to the identifier of the UPF network element 1.
Optionally, the N4 session release request 1 may include the identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
S2307a: The UPF network element 1 releases the first session, and deletes the session port 11 on the UPF network element 1 and the rule group 11 on the session port 11 based on the session port identifier 11 in the indication information 1 or the indication information 2 and the identifier of the rule group 11. In addition, the UPF network element 1 updates the group FAR 1 on the UPF network element 1 based on the updated group FAR 1 in the indication information 1, or the UPF network element 1 deletes the group FAR 1 on the UPF network element 1 based on the identifier that is of the group FAR 1 and that is in the indication information 2.
In this embodiment of this application, that the UPF network element 1 releases the first session includes: deleting the session port 11 based on the session port identifier 11.
For example, assuming that the first terminal is a terminal 1, before the first terminal is disconnected from a network, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
Alternatively, for example, assuming that the first terminal is a terminal 1, before the first terminal is disconnected from a network, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
Alternatively, in a scenario 2, when the GMF network element determines, based on context information that is of a 5GLAN group and that is stored on the GMF network element, that another terminal in a terminal member list corresponding to the 5GLAN group accesses another UPF network element, assuming that the another terminal accesses a UPF network element 2 herein, the group communications method provided in this embodiment of this application further includes steps S2304b to S2309b.
S2304b: Optionally, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the GMF network element further updates, for the 5GLAN group, a group FAR 1 applied to the UPF network element 1. A rule that is in the updated group FAR 1 and that is used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to a session port 11 on the UPF network element 1 is deleted.
Optionally, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that no other terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the GMF network element further updates, for the 5GLAN group, a group FAR 2 applied to the UPF network element 2. A rule that is in the updated group FAR 2 and that is used to duplicate a received broadcast packet belonging to the 5GLAN group and then send the broadcast packet to a tunnel endpoint 42 is deleted.
The tunnel endpoint 42 is a tunnel endpoint that is on a side of the UPF network element 2 and that is of a first tunnel between the UPF network element 1 and the UPF network element 2.
S2305b: The GMF network element sends a 5GLAN service release response 2 to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service release response 2 from the GMF network element.
The 5GLAN service release response 2 includes an identifier of the UPF network element 1 and a session port identifier 11 corresponding to the identifier of the UPF network element 1, and is used to delete the session port 11 on the UPF network element 1 and a rule group 11 on the session port 11. Optionally, the 5GLAN service release response 2 may include an identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
In addition, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that another terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service release response 2 further includes the updated group FAR 1 corresponding to the identifier of the UPF network element 1, and is used to update the group FAR 1 on the UPF network element 1.
Alternatively, when the GMF network element determines, based on the context information that is of the 5GLAN group and that is stored on the GMF network element, that no other terminal in the terminal member list corresponding to the 5GLAN group accesses the UPF network element 1, the 5GLAN service release response 2 further includes an identifier that is of the group FAR 1 and that corresponds to the identifier of the UPF network element 1, and is used to delete the group FAR 1 on the UPF network element 1. The 5GLAN service release response 2 further includes an identifier that is of a tunnel endpoint 41 and that corresponds to the identifier of the UPF network element 1, and is used to delete the tunnel endpoint 41 on the UPF network element 1 and a rule group 41 on the tunnel endpoint 41. The 5GLAN service release response 2 further includes an identifier that is of a tunnel endpoint 42 and that corresponds to an identifier of the UPF network element 2, and is used to delete the tunnel endpoint 42 on the UPF network element 2 and a rule group 42 on the tunnel endpoint 42. Optionally, the 5GLAN service release response 2 may include an identifier of the rule group 41 and an identifier of the rule group 42. This is not specifically limited in this embodiment of this application.
S2306b: The SMF network element sends an N4 session release request 2 to the corresponding UPF network element 1 based on the identifier that is of the UPF network element 1 and that is in the 5GLAN service release response 2. Correspondingly, the UPF network element 1 receives the N4 session release request 2 from the SMF network element.
When another terminal currently accesses the UPF network element 1, the N4 session release request 2 includes indication information 3, and the indication information 3 includes the session port identifier 11 and the updated group FAR 1 that correspond to the identifier of the UPF network element 1. Optionally, the N4 session release request 2 may include the identifier of the rule group 11. This is not specifically limited in this embodiment of this application.
Alternatively, when no other terminal currently accesses the UPF network element 1, the N4 session release request 2 includes an indication information 4, and the indication information 4 includes the session port identifier 11, the identifier of the tunnel endpoint 41, and the identifier of the group FAR 1 that correspond to the identifier of the UPF network element 1. Optionally, the N4 session release request 2 may include the identifier of the rule group 11 and the identifier of the rule group 41. This is not specifically limited in this embodiment of this application.
S2307b: The UPF network element 1 releases the first session, and deletes the session port 11 on the UPF network element 1 and the rule group 11 on the session port 11 based on the session port identifier 11. In addition, the UPF network element 1 deletes, based on the identifier of the group FAR 1, the group FAR 1 applied to the UPF network element 1, or the UPF network element 1 updates, based on the updated group FAR 1, the group FAR 1 applied to the UPF network element 1.
Optionally, when no other terminal currently accesses the UPF network element 1, the UPF network element 1 may further delete the tunnel endpoint 41 and the rule group 41 on the tunnel endpoint 41 based on the identifier of the tunnel endpoint 41.
S2308b: Optionally, when no other terminal currently accesses the UPF network element 1, the SMF network element sends an N4 session modification request 3 to the corresponding UPF network element 2 based on the identifier that is of the UPF network element 2 and that is in the 5GLAN service release response 2. Correspondingly, the UPF network element 2 receives the N4 session modification request 3 from the SMF network element.
The N4 session modification request 3 includes indication information 5, and the indication information 5 includes the updated group FAR 2 corresponding to the identifier of the UPF network element 2, and is used to update the group FAR 2 applied to the UPF network element 2.
In addition, the indication information 5 further includes the identifier that is of the tunnel endpoint 42 and that corresponds to the identifier of the UPF network element 2, and is used to delete the tunnel endpoint 42 on the UPF network element 2 and the rule group 42 on the tunnel endpoint 42.
S2309b: Optionally, the UPF network element 2 updates, based on the updated group FAR 2, the group FAR 2 applied to the UPF network element 2, and the UPF network element 2 deletes the tunnel endpoint 42 on the UPF network element 2 and the rule group 42 on the tunnel endpoint 42 based on the identifier of the tunnel endpoint 42.
For example, assuming that the first terminal is a terminal 1, before the first terminal is disconnected from a network, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
Alternatively, for example, assuming that the first terminal is a terminal 1, before the first terminal is disconnected from a network, a schematic configuration diagram of a 5GLAN group on a UPF network element 1 may be shown in
S2310: Complete a remaining release process.
According to the group communications method, when a terminal member in the 5GLAN group is disconnected from a network, only a 5GLAN group FAR on an associated UPF network element needs to be adjusted (updated or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the terminal member need to be adjusted (updated or deleted), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another member in the 5GLAN group remain unchanged. Therefore, when a relatively large number of terminal members belonging to the 5GLAN group access the network, a problem that configuration workload caused by a change in a quantity of terminal members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of terminal members can be greatly reduced.
The actions of the GMF network element, the SMF network element, the UPF network element 1, or the UPF network element 2 in steps S2301 to S2310 may be performed by the processor 1101 in the communications device 1100 shown in
Assuming that a terminal 1, a terminal 2, and a terminal 3 in a 5GLAN group 1 whose identifier is 1 have currently accessed a network, where the terminal 1 and the terminal 2 access a UPF network element 1, and the terminal 3 accesses a UPF network element 2, a schematic configuration diagram of 5GLAN groups on a UPF network element 1 and a UPF network element 2 is shown in
Step 1: The terminal 1 sends the packet 1 to the UPF network element 1 by using a 5G user plane protocol (that is, through forwarding by an access device). Herein, it is assumed that a destination address of the packet 1 is all 1s (indicating that the packet 1 is a broadcast packet), and a source address is an address of the terminal 1.
Step 2: After receiving the packet 1 from the terminal 1, the UPF network element 1 may determine, based on a 5G user plane protocol identifier (for example, a TEID) of the packet 1, a session port corresponding to the packet 1. Herein, it is assumed that the session port corresponding to the packet 1 is a session port 11. In this case, the UPF network element 1 may match an ingress PDR (which may be one or more) applied to a rule group 11 on the session port 11 with characteristic information of the packet 1, to find the ingress PDR that matches the characteristic information.
In this embodiment of this application, a method for identifying a packet by using the ingress PDR may be, for example, identifying, based on the 5G user plane protocol identifier, that the packet belongs to a 5GLAN group, and identifying, based on a broadcast packet identification rule, that the packet is the broadcast packet.
Optionally, the 5G user plane protocol identifier herein may be, for example, a TEID or a TEID+a QFI. This is not specifically limited in this embodiment of this application.
Optionally, when the packet 1 is an IP packet, the broadcast packet identification rule may be, for example, that a destination IP address is all 1s. Alternatively, when the packet 1 is an Ethernet frame, the broadcast packet identification rule may be, for example, that a destination MAC address is all 1s. This is not specifically limited in this embodiment of this application.
For example, herein, assuming that the 5G user plane protocol identifier of the packet 1 is that the TEID is equal to 0x005b8433 and the QFI is equal to 3, a destination (destination) IP of the packet 1 is equal to 255.255.255.255, and a function of an ingress PDR 11 is to identify a broadcast packet belonging to the 5GLAN group 1, the ingress PDR that is found by the UPF network element 1 and that matches the characteristic information is the ingress PDR 11.
Step 3: The UPF network element 1 finds a corresponding 5GLAN group FAR based on an identifier that is of the 5GLAN group and that is included in an ingress PDR 1, and processes the packet 1 of the terminal 1 by using the 5GLAN group FAR. Specifically, the UPF network element 1 duplicates the packet into a plurality of duplicates having the same quantity as member ports based on the total quantity of member ports corresponding to the 5GLAN group 1 on the UPF network element 1 for processing, and then forwards the packet to an egress specified by the 5GLAN group FAR. For example, in
Step 4: The UPF network element 1 further processes the packet 1 based on an egress PDR and an egress FAR (which may be a plurality of groups of egress PDRs and egress FARs) on the session port 21, and the UPF network element 1 further processes the packet 1 based on an egress PDR and an egress FAR (which may be a plurality of groups of egress PDRs and egress FARs) on the tunnel endpoint 41. A manner in which the UPF network element 1 processes the packet 1 based on the egress PDR and the egress FAR on the session port 21 is similar to a manner in which the UPF network element 1 further processes the packet 1 based on the egress PDR and the egress FAR on the tunnel endpoint 41. Descriptions are provided herein by using the manner in which the UPF network element 1 processes the packet 1 based on the egress PDR and the egress FAR on the session port 21 as an example.
The UPF network element 1 may match the egress PDR on the session port 21 with type information of the packet 1, to find the egress PDR that matches the type information. For example, a priority of the packet 1 is identified based on a differentiated services code point (differentiated services code point, DSCP) field of the IP packet or an 802.1p bit of the Ethernet frame. Herein, assuming that the priority of the packet 1 is a first priority, and the egress PDR 11 on the session port 21 is used to identify a packet with the first priority, the egress PDR that is found by the UPF network element 1 and that matches the type information is the egress PDR 11.
Step 5: The UPF network element 1 finds the corresponding egress FAR 11 based on an identifier that is of the egress FAR 11 and that is included in the egress PDR 11, performs outer header creation and transport layer marking on the packet 1 by using the egress FAR 11, and then forwards the packet 1 through the session port 11, so that the terminal 2 can receive the packet 1. For a manner in which the egress FAR 11 is used to perform outer header creation and transport level marking on the packet, refer to the embodiment shown in
Similarly, a processing manner in which the UPF network element 2 receives the packet 1 is similar to a processing manner in which the UPF network element 1 receives the packet 1. A difference lies in that after receiving the packet 1 from the UPF network element 1, the UPF network element 2 may determine, based on a tunnel header of the packet 1 and a tunnel endpoint identifier that is set in the tunnel header, a tunnel endpoint corresponding to the packet 1. Herein, it is assumed that the tunnel endpoint corresponding to the packet 1 is a tunnel endpoint 42. For other related descriptions, refer to the foregoing packet forwarding processing procedure of the UPF network element 1. Details are not described herein again.
It should be noted that in this embodiment of this application, a control plane configuration procedure and a procedure in which the user plane network element forwards the group broadcast packet in the foregoing broadcast scenario may be decoupled. To be specific, based on the control plane configuration procedure in the foregoing broadcast scenario in this embodiment of this application, there may also be another procedure in which the user plane network element forwards the group broadcast packet. Alternatively, based on the procedure in which the user plane network element forwards the group broadcast packet in the foregoing broadcast scenario in this embodiment of this application, there may also be another control plane configuration procedure. This is not specifically limited in this embodiment of this application.
It should be noted that in this embodiment of this application, the control plane configuration procedure in the foregoing broadcast scenario is described by using an example in which different UPF network elements are managed by a same SMF network element. Certainly, different UPF network elements may alternatively be managed by different SMF network elements. In this case, the GMF network element needs to separately send the foregoing 5GLAN service response message, the foregoing 5GLAN service update response, the foregoing 5GLAN release response, or the like to the different SMF network elements, and send, to the UPF network element managed by the SMF network element and by using the corresponding SMF network element, a message sent by the SMF network element to the UPF network element in the foregoing control plane configuration procedure. This scenario is not described in detail in this embodiment of this application. In addition, the descriptions are also applicable to the following multicast scenario. Unified descriptions are provided herein, and details are not described below.
The following uses a multicast scenario as an example to provide a group communications method provided in an embodiment of this application.
Scenarios in which the group communications system shown in
Case 1: A UPF network element (assumed to be the UPF network element 1) accessed by the first terminal has another multicast member or a multicast source in the multicast group.
Step 1: Modify a multicast group FAR 1 on the UPF network element 1, and add a rule pointing to a downstream port of the multicast member.
Step 2: Configure an egress PDR and an egress FAR that are applied to the downstream port of the multicast member on the UPF network element 1.
Case 2: A UPF network element (assumed to be the UPF network element 1) accessed by the first terminal has no other multicast member or no multicast source in the multicast group.
Step 1: Configure a multicast group FAR 1 applied to the UPF network element 1, and configure an egress PDR and an egress FAR that are applied to a downstream port of the multicast member on the UPF network element 1, where the multicast group FAR 1 includes a rule pointing to the downstream port of the multicast member.
Step 2: Configure an ingress PDR applied to an upstream port of the multicast member on the UPF network element 1.
Step 3: Update a multicast group FAR on an upstream UPF network element of the UPF network element 1, and add a rule pointing to a downstream port associated with the multicast member; and configure an egress PDR and an egress FAR that are applied to the downstream port associated with the multicast member on the upstream UPF network element of the UPF network element 1.
Step 4: If the upstream UPF network element of the UPF network element 1 has no other multicast member or no multicast source in the multicast group, cyclically perform steps similar to step 2 and step 3 (a difference lies in that UPF network elements are different), until an upstream UPF network element has another multicast member or a multicast source in the multicast group or until a multicast source accesses a UPF network element (which may be considered as a target UPF network element). If the target UPF network element has another multicast member in the multicast group, the target UPF network element ends the process after performing a step similar to step 3 (a difference lies in that the UPF network elements are different). Alternatively, if the target UPF network element is the UPF network element accessed by the multicast source, the UPF network element further needs to end the process after performing steps similar to step 2 and step 3 (a difference lies in that the UPF network elements are different).
The following provides a group communications method provided in an embodiment of this application in a scenario in which a multicast member joins a multicast group. As shown in
Prerequisites: A first terminal has accessed the UPF network element 1, and a configuration for a 5GLAN group is created on the UPF network element 1. For an establishment method, refer to the embodiment shown in
S2901: A first terminal sends an internet group management protocol (internet group management protocol, IGMP) join (join) message to a UPF network element 1 by using an access device. Correspondingly, the UPF network element 1 receives the IGMP join message from the first terminal.
The IGMP join message includes an address (which may also be briefly referred to as a multicast address) of a multicast group.
Optionally, the IGMP join message may further include an address of a multicast source.
It should be noted that in this embodiment of this application, the first terminal sends the IGMP join message to the UPF network element 1 only as a multicast member, but the multicast source or a member that is not in the multicast group does not send the IGMP join message to the UPF network element 1. Unified descriptions are provided herein, and details are not described below.
For a manner in which the first terminal obtains the address of the multicast source and the address of the multicast group, refer to an existing implementation. Details are not described herein.
S2902: The UPF network element 1 identifies the IGMP join message, and further sends the IGMP join message to a connected SMF network element. Correspondingly, the SMF network element receives the IGMP join message from the UPF network element 1.
In this embodiment of this application, the IGMP join message may be carried in an N4 interface message sent by the UPF network element 1 to the SMF network element and sent to the SMF network element. This is not specifically limited in this embodiment of this application.
S2903: The SMF network element identifies the IGMP join message, and further sends a 5GLAN service request message to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service request message from the SMF network element.
The 5GLAN service request message carries the IGMP join message, an identifier of the first terminal, an identifier of the UPF network element 1, and a session port identifier 11.
Optionally, in this embodiment of this application, the identifier of the first terminal may be, for example, an address of the first terminal. The address of the first terminal may be, for example, an IP address of the first terminal or an IP address of the first terminal. This is not specifically limited in this embodiment of this application. The descriptions are also similarly applicable to another terminal in another embodiment in a multicast scenario in this application. For example, an identifier of the following terminal 3 may be an address of the terminal 3, and the address may be, for example, an IP address or a MAC address. Unified descriptions are provided herein, and details are not described below.
S2904: After parsing the IGMP join message, the GMF network element obtains the address of the multicast source and the address of the multicast group, and the GMF network element may further obtain context information of the multicast group based on the address of the multicast group (or based on the address of the multicast source).
That the GMF network element obtains context information of the multicast group may be, for example, establishing the context information of the multicast group, or reading the context information that is of the multicast group and that is stored on the GMF network element. For example, when the first terminal is the 1st multicast member that accesses the multicast group, the GMF network element needs to establish the context information of the multicast group. Alternatively, when the first terminal is not the Pt multicast member that accesses the multicast group, the GMF network element may read the context information that is of the multicast group and that is stored on the GMF network element.
Optionally, in this embodiment of this application, the context information of the multicast group may include information about a multicast forwarding tree, for example, include an identifier of a multicast source, an identifier of a multicast member, and an identifier of a UPF network element (which may be one or more) between a multicast source and each multicast member. For related descriptions of the multicast forwarding tree, refer to the descriptions in the foregoing embodiments. Details are not described herein again.
For example, assuming that a terminal 2 and a terminal 3 have joined a multicast group whose multicast source is a terminal 1, and a schematic configuration diagram of the multicast groups on the multicast forwarding tree and a UPF network element in the multicast forwarding tree is shown in
Herein, the identifier of the multicast source may be specifically the address of the multicast source, and the identifier of the downstream member may also be specifically an IP address of the downstream member. Unified descriptions are provided herein, and details are not described below.
For related definitions of the downstream member in Table 9, refer to the descriptions of the multicast forwarding tree in the foregoing embodiments. Details are not described herein again.
Optionally, in this embodiment of this application, the context information of the multicast group may further include an upstream port identifier and a downstream port identifier that are of the multicast group on the UPF network element between the multicast source and each multicast member. For example, with reference to
S2905: Based on the context information of the multicast group, and the identifier of the UPF network element 1 and the session port identifier 11 that are carried in the 5GLAN service request message, the GMF network element creates an egress PDR and an egress FAR that are applied to a downstream port on the UPF network element 1, and updates a multicast group FAR 1 applied to the UPF network element 1. An identifier of the downstream port is the session port identifier 11. A rule used to duplicate a received multicast packet belonging to the multicast group and then send the multicast packet to the downstream port is added to the updated multicast group FAR 1.
For example, assuming that the first terminal is the terminal 3, before the first terminal joins the multicast group, a schematic configuration diagram of the multicast group may be shown in
Optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, the GMF network element further needs to perform the following operations:
The GMF network element determines whether the UPF network element 1 has an upstream port corresponding to the multicast group, and if the UPF network element 1 does not have the upstream port corresponding to the multicast group, creates an ingress PDR applied to the upstream port on the UPF network element 1. An identifier of the upstream port is a tunnel endpoint identifier that is on a side of the UPF network element and that is of a tunnel between the UPF network element 1 and an upstream UPF network element of the UPF network element 1.
In addition, the GMF network element sequentially traverses upstream UPF network elements of the UPF network element 1 based on the context information of the multicast group until a target UPF network element is found, where the target UPF network element is a UPF network element that has the upstream port corresponding to the multicast group or a UPF network element accessed by a multicast source.
Further, if the target UPF network element is the UPF network element that has the upstream port corresponding to the multicast group, for any UPF network element between the target UPF network element and the UPF network element 1, the GMF network element creates an ingress PDR applied to an upstream port on each UPF network element, creates an egress PDR and an egress FAR that are applied to a downstream port on each UPF network element, and creates a multicast group FAR applied to each UPF network element; and for the target UPF network element, the GMF network element creates an egress PDR and an egress FAR that are applied to a downstream port on the target UPF network element, and updates a multicast group FAR applied to the target UPF network element. The created or updated multicast group FAR includes a rule used to duplicate a received multicast packet belonging to the multicast group and then send the multicast packet to the downstream port on the UPF network element.
Alternatively, if the target UPF network element is the UPF network element accessed by the multicast source, for the target UPF network element and any UPF network element between the target UPF network element and the UPF network element 1, the GMF network element creates an ingress PDR applied to an upstream port on each UPF network element, creates an egress PDR and an egress FAR that are applied to a downstream port on each UPF network element, and creates a multicast group FAR applied to each UPF network element. The created multicast group FAR includes a rule used to duplicate a received multicast packet belonging to the multicast group and then send the multicast packet to the downstream port on the UPF network element.
If the upstream port or the downstream port is a tunnel endpoint, a corresponding port identifier is a tunnel endpoint identifier. If the upstream port is a session port, namely, an upstream port on the target UPF network element in a scenario in which the target UPF network element is the UPF network element accessed by the multicast source, a corresponding port identifier is a session port identifier corresponding to a session port created on the target UPF network element when the multicast source establishes a PDU session. Unified descriptions are provided herein, and details are not described below.
For example, assuming that the first terminal is the terminal 4, before the first terminal joins the multicast group, a schematic configuration diagram of the multicast group may be shown in
Alternatively, for example, assuming that the first terminal is the terminal 4, before the first terminal joins the multicast group, a schematic configuration diagram of the multicast group may be shown in
It should be noted that, it can be learned from the foregoing prerequisites that in the group communications method provided in this embodiment of this application, descriptions are provided by using an example in which the multicast member is the terminal member that belongs to the 5GLAN group and that has accessed the network in the foregoing broadcast scenario. Therefore, during establishment of the multicast group, a tunnel between UPF network elements does not need to be established. Certainly, the multicast member in this embodiment of this application may not be limited to the terminal member that belongs to the 5GLAN group and that has accessed the network in the foregoing broadcast scenario. In this case, when a terminal member in the multicast group changes (for example, when a multicast member joins the multicast group in this embodiment, when a multicast member leaves the multicast group in the following embodiment, or when a multicast member in the multicast group moves in the following embodiment), a tunnel between UPF network elements may need to be established, and a tunnel endpoint on a corresponding UPF network element may need to be created; or a tunnel between UPF network elements needs to be deleted, and a tunnel endpoint on a corresponding user plane network element needs to be deleted. For a specific implementation, refer to the related descriptions in the foregoing broadcast scenario. This scenario is not described in detail in this embodiment of this application.
S2906: The GMF network element sends a 5GLAN service response message to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service response message from the GMF network element.
The 5GLAN service response message carries an identifier of the UPF network element 1, an identifier that is of a downstream port and that corresponds to the identifier of the UPF network element 1, an egress PDR and an egress FAR that are applied to the downstream port on the UPF network element 1, and an updated multicast group FAR 1 applied to the UPF network element 1.
Optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, and the target UPF network element is the UPF network element that has the upstream port corresponding to the multicast group, the 5GLAN service response message may further carry an identifier that is of an upstream port and that corresponds to the identifier of the UPF network element 1, an ingress PDR applied to the upstream port on the UPF network element 1, and an identifier of each UPF network element between the UPF network element 1 and the target UPF network element; an identifier that is of a downstream port and that corresponds to the identifier of the corresponding UPF network element, an egress PDR and an egress FAR that are applied to the downstream port, an identifier of an upstream port, an ingress PDR applied to the upstream port, and an updated multicast group FAR applied to the UPF network element; and an identifier of the target UPF network element, an identifier that is of a downstream port and that corresponds to the identifier of the target UPF network element, an egress PDR and an egress FAR that are applied to the downstream port, and an updated multicast group FAR applied to the target UPF network element.
Alternatively, optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, and the target UPF network element is the UPF network element accessed by the multicast source, the 5GLAN service response message may further carry an identifier that is of an upstream port and that corresponds to the identifier of the UPF network element 1, an ingress PDR applied to the upstream port on the UPF network element 1, an identifier of each UPF network element between the UPF network element 1 and the target UPF network element, and an identifier of the target UPF network element; and an identifier that is of a downstream port and that corresponds to the identifier of the corresponding UPF network element, an egress PDR and an egress FAR that are applied to the downstream port, an identifier of an upstream port, an ingress PDR applied to the upstream port, and a created or updated multicast group FAR applied to the UPF network element.
S2907: The SMF network element sends an N4 session modification request message to the UPF network element 1 based on the identifier of the UPF network element 1. Correspondingly, the UPF network element 1 receives the N4 session modification request message from the SMF network element.
The N4 session modification request message includes an identifier that is of a downstream port and that corresponds to the identifier of the UPF network element 1, an egress PDR and an egress FAR that are applied to the downstream port on the UPF network element 1, and an updated multicast group FAR 1 applied to the UPF network element 1.
S2908: The UPF network element 1 configures the egress PDR and the egress FAR on the downstream port on the UPF network element 1 based on the identifier of the downstream port and the egress PDR and the egress FAR that are applied to the downstream port on the UPF network element 1; and the UPF network element 1 updates, based on the updated multicast group FAR 1, the multicast group FAR 1 applied to the UPF network element 1.
S2909: The UPF network element 1 sends an N4 session modification response message to the SMF network element. Correspondingly, the SMF network element receives the N4 session modification response message from the UPF network element 1.
The N4 session modification response message is used to notify that N4 session modification and rule installation are complete.
Optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, the N4 session modification request message further includes an identifier that is of an upstream port and that corresponds to the identifier of the UPF network element 1, and an ingress PDR applied to the upstream port on the UPF network element 1. Correspondingly, the UPF network element 1 may further configure the ingress PDR on the upstream port on the UPF network element 1 based on the identifier of the upstream port and the ingress PDR applied to the upstream port on the UPF network element 1.
Optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, and the target UPF network element is the UPF network element that has the upstream port corresponding to the multicast group, the SMF network element further needs to send, to a corresponding UPF network element based on an identifier of each UPF network element between the UPF network element 1 and the target UPF network element, an identifier of a corresponding downstream port, an egress PDR and an egress FAR that are applied to the downstream port, an identifier of an upstream port, an ingress PDR applied to the upstream port, and an updated multicast group FAR applied to the UPF network element. In this way, each UPF network element can configure the egress PDR and the egress FAR on the downstream port on the UPF network element based on the identifier of the downstream port and the egress PDR and the egress FAR that are applied to the downstream port; each UPF network element can configure the ingress PDR on the upstream port on the UPF network element based on the identifier of the upstream port and the ingress PDR applied to the upstream port; and each UPF network element can update, based on the updated multicast group FAR, the multicast group FAR applied to the UPF network element.
In addition, the SMF network element needs to send, to the target UPF network element, an identifier that is of a downstream port and that corresponds to the identifier of the target UPF network element, an egress PDR and an egress FAR that are applied to the downstream port, and an updated multicast group FAR applied to the target UPF network element. In this way, the target UPF network element can configure the egress PDR and the egress FAR on the downstream port on the target UPF network element based on the identifier of the downstream port and the egress PDR and the egress FAR that are applied to the downstream port; and the target UPF network element can update, based on the updated multicast group FAR, the multicast group FAR applied to the target UPF network element.
Optionally, in this embodiment of this application, if the UPF network element accessed by the multicast source and the UPF network element 1 are different UPF network elements, and the target UPF network element is the UPF network element accessed by the multicast source, the SMF network element needs to send, to a corresponding UPF network element based on an identifier of each UPF network element between the UPF network element 1 and the target UPF network element and an identifier of the target UPF network element, an identifier that is of a downstream port and that corresponds to the identifier of the corresponding UPF network element, an egress PDR and an egress FAR that are applied to the downstream port, an identifier of an upstream port, an ingress PDR applied to the upstream port, and a created or updated multicast group FAR applied to the UPF network element. In this way, each UPF network element can configure the egress PDR and the egress FAR on the downstream port on the UPF network element based on the identifier of the downstream port and the egress PDR and the egress FAR that are applied to the downstream port; each UPF network element can configure the ingress PDR on the upstream port on the UPF network element based on the identifier of the upstream port and the ingress PDR applied to the upstream port; and each UPF network element can update, based on the updated multicast group FAR, the multicast group FAR applied to the UPF network element.
According to the group communications method, when a multicast member joins the multicast group, only a multicast group FAR on an associated UPF network element needs to be adjusted (updated or created), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created) or an egress PDR and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another multicast member in the multicast group remain unchanged. Therefore, when there are a relatively large number of multicast members in the multicast group, a problem that configuration workload caused by a change in a quantity of multicast members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of multicast members can be greatly reduced.
The actions of the GMF network element, the SMF network element, or the UPF network element 1 in steps S2901 to S2909 may be performed by the processor 1101 in the communications device 1100 shown in
Optionally, scenarios in which the group communications system shown in
Case 3: A UPF network element (assumed to be the UPF network element 3) originally accessed by the first terminal has another multicast member or a multicast source in the multicast group.
Step 1: Modify a multicast group FAR 3 on the UPF network element 3, and delete a rule pointing to a downstream port of the multicast member.
Step 2: Delete an egress PDR and an egress FAR that are on the downstream port of the multicast member on the UPF network element 3.
Case 4: A UPF network element (assumed to be the UPF network element 3) originally accessed by the first terminal has no other multicast member or no multicast source in the multicast group.
Step 1: Delete a multicast group FAR 3 on the UPF network element 3, and delete an egress PDR and an egress FAR that are on a downstream port of the multicast member on the UPF network element 3.
Step 2: Delete an ingress PDR on an upstream port of the multicast member on the UPF network element 3.
Step 3: Modify a multicast group FAR on an upstream UPF network element of the UPF network element 3, and delete a rule pointing to a downstream port associated with the multicast member; and delete an egress PDR and an egress FAR that are on the downstream port associated with the multicast member on the upstream UPF network element of the UPF network element 3.
Step 4: If the upstream UPF network element of the UPF network element 3 has no other multicast member or no multicast source in the multicast group, cyclically perform steps similar to step 2 and step 3 (a difference lies in that UPF network elements are different), until an upstream UPF network element has another multicast member or a multicast source in the multicast group or until a multicast source accesses a UPF network element (which may be considered as a target UPF network element). If the target UPF network element has another multicast member in the multicast group, the target UPF network element ends the process after performing a step similar to step 3 (a difference lies in that the UPF network elements are different). Alternatively, if the target UPF network element is the UPF network element accessed by the multicast source, the UPF network element further needs to end the process after performing steps similar to step 2 and step 3 (a difference lies in that the UPF network elements are different).
The following provides a group communications method provided in an embodiment of this application in a scenario in which a multicast member leaves a multicast group. As shown in
Prerequisites: A first terminal has accessed the UPF network element 3, and a configuration for a multicast group that the first terminal joins is created on the UPF network element 3 and includes a multicast group FAR and a related rule group. For an establishment method, refer to the embodiment shown in
The first terminal leaves the multicast group in two manners. In one manner, the first terminal initiates a session release procedure. In the other manner, the first terminal explicitly initiates an IGMP leave message to announce that the first terminal leaves the multicast group.
The manner in which the first terminal initiates the session release procedure includes steps S3401a to S3403a.
S3401a: A first terminal sends a session release request to an AMF network element. Correspondingly, the AMF network element receives the session release request from the first terminal.
S3402a: The AMF network element sends an SM context update request to an SMF network element. Correspondingly, the SMF network element receives the SM context update request from the AMF network element.
Optionally, the SM context update request may alternatively be replaced with a PDU session update request. This is not specifically limited in this embodiment of this application.
For specific implementation of steps S3401a and S3402a, refer to an existing implementation. Details are not described herein.
S3403a: If the SMF network element determines that the first terminal initiates multicast group communication, the SMF network element sends a 5GLAN service update request (5GLAN service update request) to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service update request from the SMF network element.
The 5GLAN service update request is used to request the GMF network element to update forwarding information of the multicast group.
Alternatively, the manner in which the first terminal explicitly initiates the IGMP leave message to announce that the first terminal leaves the multicast group includes steps S3401b to S3403b.
S3401b: A first terminal sends an IGMP leave message to a UPF network element 3 by using an access device. Correspondingly, the UPF network element 3 receives the IGMP leave message from the first terminal.
The IGMP leave message includes an address of the multicast group.
It should be noted that in this embodiment of this application, the first terminal sends the IGMP leave message to the UPF network element 3 only as a multicast member, but a multicast source or a member that is not in the multicast group does not send the IGMP leave message to the UPF network element 3. Unified descriptions are provided herein, and details are not described below.
For a manner in which the first terminal obtains the address of the multicast group, refer to an existing implementation. Details are not described herein.
S3402b: The UPF network element 3 identifies the IGMP leave message, and further sends the IGMP leave message to a connected SMF network element. Correspondingly, the SMF network element receives the IGMP leave message from the UPF network element 3.
In this embodiment of this application, the IGMP leave message may be carried in an N4 interface message sent by the UPF network element 3 to the SMF network element and sent to the SMF network element. This is not specifically limited in this embodiment of this application.
S3403b: The SMF network element identifies the IGMP leave message, finds, by using a context that is of the first terminal and that is stored on the SMF network element, that the first terminal has previously joined multicast communication, and therefore learns that the first terminal is about to leave the joined multicast group, and further sends a 5GLAN service update request to a GMF network element. Correspondingly, the GMF network element receives the 5GLAN service update request from the SMF network element.
The 5GLAN service update request carries the IGMP leave message and an identifier of the first terminal.
Optionally, the 5GLAN service update request may carry an identifier of the UPF network element 3 and a session port identifier 13.
Based on steps S3401a to S3403a or steps S3401b to S3403b, the GMF network element may learn that the first terminal is about to leave the multicast group in which the first terminal is located, and may continue to perform the following steps.
S3404: The GMF network element adjusts multicast forwarding rules on the UPF network element 3 and each upstream UPF network element based on context information that is of the multicast group and that is stored on the GMF network element. An adjustment method is similar to the foregoing descriptions in this procedure, and is not described herein again.
For a manner of determining a corresponding upstream port or downstream port, refer to the embodiment shown in
S3405: Corresponding to the procedure in Manner A, the GMF network element sends a 5GLAN service release response to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service release response from the GMF network element. Alternatively, corresponding to the procedure in Manner B, the GMF network element sends a 5GLAN service update response to the SMF network element. Correspondingly, the SMF network element receives the 5GLAN service update response from the GMF network element.
The 5GLAN service release response or the 5GLAN service update response includes an identifier of a UPF network element on which multicast group configuration information needs to be adjusted, and multicast group configuration adjustment information corresponding to the identifier of the corresponding UPF network element. For example, when the first terminal leaves the multicast group through the session release procedure, and an ingress PDR on an upstream port on a UPF network element needs to be deleted, the multicast group configuration adjustment information includes an identifier of the upstream port, and is used to delete the upstream port and the ingress PDR on the upstream port. Alternatively, when an egress PDR and an egress FAR that are on a downstream port on a UPF network element need to be deleted, the multicast group configuration adjustment information includes an identifier of the downstream port, and is used to delete the downstream port and the ingress PDR on the downstream port. Alternatively, when a multicast group FAR on a UPF network element needs to be deleted, the multicast group configuration adjustment information includes an identifier of the multicast group FAR. Alternatively, when a multicast group FAR on a UPF network element needs to be updated, the multicast group configuration adjustment information includes an updated multicast group FAR.
Optionally, in this embodiment of this application, when the upstream port or the downstream port is deleted, optionally, a rule group that is on the upstream port or the downstream port and that is created in a PDU session establishment process also needs to be deleted. Unified descriptions are provided herein, and details are not described below.
Alternatively, for example, when the first terminal leaves the multicast group by using the IGMP leave message, and an ingress PDR on an upstream port on a UPF network element needs to be deleted, the multicast group configuration adjustment information includes an identifier of the upstream port and an identifier of the ingress PDR applied to the upstream port. Alternatively, when an egress PDR and an egress FAR that are on a downstream port on a UPF network element need to be deleted, the multicast group configuration adjustment information includes an identifier of the downstream port and an identifier of the egress PDR applied to the downstream port, and optionally, may carry an identifier of the egress FAR indicated by the egress PDR. Alternatively, when a multicast group FAR on a UPF network element needs to be deleted, the multicast group configuration adjustment information includes an identifier of the multicast group FAR. Alternatively, when a multicast group FAR on a UPF network element needs to be updated, the multicast group configuration adjustment information includes an updated multicast group FAR.
S3406: The SMF network element sends, to the corresponding UPF network element based on the identifier of the UPF network element on which the multicast group configuration information needs to be adjusted and the multicast group configuration adjustment information corresponding to the identifier of the corresponding UPF network element, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element. Descriptions are provided herein by using an example in which the SMF network element communicates with the UPF network element 3. In this case, the SMF network element sends an N4 session modification request to the UPF network element 3 based on the identifier of the UPF network element 3. Correspondingly, the UPF network element 3 receives the N4 session modification request from the SMF network element.
The N4 session modification request includes the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3. For example, when the first terminal leaves the multicast group through the session release procedure, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may include, for example, an identifier that is of a downstream port and that corresponds to the identifier of the UPF network element 3. Optionally, when the UPF network element 3 has another multicast member or a multicast source in the multicast group, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may further include, for example, an updated multicast group FAR 3 applied to the UPF network element 3. Alternatively, optionally, when the UPF network element 3 has no other multicast member or no multicast source in the multicast group, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may further include, for example, an identifier of a multicast group FAR 3 applied to the UPF network element 3 and an identifier that is of an upstream port and that corresponds to the identifier of the UPF network element 3.
Alternatively, for example, when the first terminal leaves the multicast group by using the IGMP leave message, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may include, for example, an identifier that is of a downstream port and that corresponds to the identifier of the UPF network element 3 and an identifier of an egress PDR applied to the downstream port on the UPF network element 3, and optionally, includes an identifier of an egress FAR indicated by the egress PDR. Optionally, when the UPF network element 3 has another multicast member or a multicast source in the multicast group, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may further include, for example, an updated multicast group FAR 3 applied to the UPF network element 3. Alternatively, optionally, when the UPF network element 3 has no other multicast member or no multicast source in the multicast group, the multicast group configuration adjustment information corresponding to the identifier of the UPF network element 3 may further include, for example, an identifier of a multicast group FAR 3 applied to the UPF network element 3, an identifier that is of an upstream port and that corresponds to the identifier of the UPF network element 3, and an identifier of an ingress PDR applied to the upstream port on the UPF network element 3.
S3407: The UPF network element 3 adjusts the multicast group configuration on the UPF network element 3 based on the multicast group configuration adjustment information.
For example, when the first terminal leaves the multicast group by using the IGMP leave message, the UPF network element 3 may delete, based on the identifier of the downstream port and the identifier of the egress PDR applied to the downstream port, the egress PDR corresponding to the identifier of the egress PDR applied to the downstream port on the UPF network element 3 and the egress FAR indicated by the egress PDR.
Alternatively, for example, when the first terminal leaves the multicast group through the session release procedure, the UPF network element 3 may delete the downstream port and the egress PDR and the egress FAR that are on the downstream port based on the identifier of the downstream port.
Optionally, when the UPF network element 3 has another multicast member or a multicast source in the multicast group, the UPF network element 3 updates, based on the updated multicast group FAR 3 applied to the UPF network element 3, the multicast group FAR 3 applied to the UPF network element 3.
Alternatively, optionally, when the UPF network element 3 has no other multicast member or no multicast source in the multicast group, the UPF network element 3 deletes, based on the identifier of the multicast group FAR 3 applied to the UPF network element 3, the multicast group FAR 3 applied to the UPF network element 3. When the first terminal leaves the multicast group by using the IGMP leave message, the UPF network element 3 deletes, based on the identifier of the upstream port and the identifier of the ingress PDR applied to the upstream port, the ingress PDR corresponding to the identifier of the ingress PDR applied to the upstream port on the UPF network element 3. When the first terminal leaves the multicast group through the session release procedure, the UPF network element 3 deletes the upstream port and the ingress PDR on the upstream port based on the identifier of the upstream port.
S3408: The UPF network element 3 sends an N4 session modification response message to the SMF network element. Correspondingly, the SMF network element receives the N4 session modification response message from the UPF network element 3.
The N4 session modification response message is used to notify that configuration update is complete.
It should be noted that in steps S3406 to S3408, descriptions are provided by using the multicast group configuration update procedure on the UPF network element 3 as an example. For a multicast group configuration update procedure on another UPF network element on which the multicast group configuration information needs to be adjusted, refer to steps S3406 to S3408. Details are not described herein again.
For example, assuming that the first terminal is the terminal 3, before the first terminal leaves the multicast group, a schematic configuration diagram of the multicast group may be shown in
Alternatively, for example, assuming that the first terminal is the terminal 4, before the first terminal leaves the multicast group, a schematic configuration diagram of the multicast group may be shown in
Alternatively, for example, assuming that the first terminal is the terminal 4, before the first terminal joins the multicast group, a schematic configuration diagram of the multicast group may be shown in
According to the group communications method, when a multicast member leaves the multicast group, only a multicast group FAR on an associated UPF network element needs to be adjusted (updated or created), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created) or an egress PDR and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another multicast member in the multicast group remain unchanged. Therefore, when there are a relatively large number of multicast members in the multicast group, a problem that configuration workload caused by a change in a quantity of multicast members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of multicast members can be greatly reduced.
The actions of the GMF network element, the SMF network element, or the UPF network element 3 in steps S3401 to S3408 may be performed by the processor 1101 in the communications device 1100 shown in
Optionally, scenarios in which the group communications system shown in
Case 1: A UPF network element (assumed to be the UPF network element 1) newly selected by the first terminal has another multicast member or a multicast source in the multicast group.
Step 1: Modify a multicast group FAR 1 on the UPF network element 1, and add a rule pointing to a downstream port of the multicast member.
Step 2: Configure an egress PDR and an egress FAR that are applied to the downstream port of the multicast member on the UPF network element 1.
Case 2: A UPF network element (assumed to be the UPF network element 1) newly selected by the first terminal has no other multicast member or no multicast source in the multicast group.
Step 1: Configure a multicast group FAR 1 applied to the UPF network element 1, and configure an egress PDR and an egress FAR that are applied to a downstream port of the multicast member on the UPF network element 1, where the multicast group FAR 1 includes a rule pointing to the downstream port of the multicast member.
Step 2: Configure an ingress PDR applied to an upstream port of the multicast member on the UPF network element 1.
Step 3: Update a multicast group FAR on an upstream UPF network element of the UPF network element 1, and add a rule pointing to a downstream port associated with the multicast member; and configure an egress PDR and an egress FAR that are applied to the downstream port associated with the multicast member on the upstream UPF network element of the UPF network element 1.
Step 4: If the upstream UPF network element of the UPF network element 1 has no other multicast member or no multicast source in the multicast group, cyclically perform steps similar to step 2 and step 3 (a difference lies in that UPF network elements are different), until an upstream UPF network element has another multicast member or a multicast source in the multicast group or until a multicast source accesses a UPF network element (which may be considered as a target UPF network element). If the target UPF network element has another multicast member in the multicast group, the target UPF network element ends the process after performing a step similar to step 3 (a difference lies in that the UPF network elements are different). Alternatively, if the target UPF network element is the UPF network element accessed by the multicast source, the UPF network element further needs to end the process after performing steps similar to step 2 and step 3 (a difference lies in that the UPF network elements are different).
Case 3: A UPF network element (assumed to be the UPF network element 3) originally accessed by the first terminal has another multicast member or a multicast source in the multicast group.
Step 1: Modify a multicast group FAR 3 on the UPF network element 3, and delete a rule pointing to a downstream port of the multicast member.
Step 2: Delete an egress PDR and an egress FAR that are on the downstream port of the multicast member on the UPF network element 3.
Case 4: A UPF network element (assumed to be the UPF network element 3) originally accessed by the first terminal has no other multicast member or no multicast source in the multicast group.
Step 1: Delete a multicast group FAR 3 on the UPF network element 3, and delete an egress PDR and an egress FAR that are on a downstream port of the multicast member on the UPF network element 3.
Step 2: Delete an ingress PDR on an upstream port of the multicast member on the UPF network element 3.
Step 3: Modify a multicast group FAR on an upstream UPF network element of the UPF network element 3, and delete a rule pointing to a downstream port associated with the multicast member; and delete an egress PDR and an egress FAR that are on the downstream port associated with the multicast member on the upstream UPF network element of the UPF network element 3.
Step 4: If the upstream UPF network element of the UPF network element 3 has no other multicast member or no multicast source in the multicast group, cyclically perform steps similar to step 2 and step 3 (a difference lies in that UPF network elements are different), until an upstream UPF network element has another multicast member or a multicast source in the multicast group or until a multicast source accesses a UPF network element (which may be considered as a target UPF network element). If the target UPF network element has another multicast member in the multicast group, the target UPF network element ends the process after performing a step similar to step 3 (a difference lies in that the UPF network elements are different). Alternatively, if the target UPF network element is the UPF network element accessed by the multicast source, the UPF network element further needs to end the process after performing steps similar to step 2 and step 3 (a difference lies in that the UPF network elements are different).
In this embodiment of this application, in the scenario in which the multicast member moves, Case 1 and Case 3 may be included, Case 1 and Case 4 may be included, Case 2 and Case 3 may be included, or Case 2 and Case 4 may be included. For related implementations of Case 1 and Case 2, refer to the embodiment shown in
In addition, the signaling procedure of interaction between the corresponding network elements in the scenario in which the multicast member moves is similar to the signaling procedure of interaction between the corresponding network elements in the scenario in which the terminal member that belongs to the 5GLAN group and that has accessed the network moves in the broadcast scenario. For related descriptions, refer to the embodiment shown in
According to the group communications method, when a multicast member in the multicast group moves, only a multicast group FAR on an associated UPF network element needs to be adjusted (created, updated, or deleted), and an ingress PDR, an egress PDR, and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created, updated, or deleted) or an egress PDR and an egress FAR that are on the associated UPF network element and that correspond to the multicast member need to be adjusted (created, updated, or deleted), but an ingress PDR, an egress PDR, and an egress FAR that correspond to another multicast member in the multicast group remain unchanged. Therefore, when there are a relatively large number of multicast members in the multicast group, a problem that configuration workload caused by a change in a quantity of multicast members is greatly increased can be avoided, and the configuration workload caused by the change in the quantity of multicast members can be greatly reduced.
A manner in which the user plane network element forwards the group multicast packet is similar to the manner in which the user plane network element forwards the group broadcast packet. A difference lies in that an ingress PDR in a broadcast scenario is used to identify a broadcast packet belonging to a LAN group, and an ingress PDR in a multicast scenario is used to identify a multicast packet belonging to a multicast group. For a manner of identifying the multicast packet, refer to the foregoing descriptions of the multicast packet. Details are not described herein again.
It should be noted that in the foregoing multicast scenario, descriptions are provided by using an example in which the multicast member is adjusted. Certainly, this embodiment of this application may also be applied to a scenario in which a multicast source moves. This is not specifically limited in this embodiment of this application.
In addition, in a possible implementation, in the scenario in which the multicast source moves, for example, the moving multicast source is a first terminal, a UPF network element originally accessed by the first terminal is a UPF network element 3, the first terminal corresponds to a session port 3 on the UPF network element 3, a newly selected UPF network element is a UPF network element 1, and the first terminal corresponds to a session port 1 on the UPF network element 1. In this case, after determining that the first terminal that moves is the multicast source, a GMF network element may request an SMF network element to establish a tunnel between the UPF network element 1 and the UPF network element 3. After obtaining a tunnel identifier, the GMF network element may generate forwarding rules, namely, a PDR 1 and an FAR 1, that are applied to an ingress of the session port 1 on the UPF network element 1. The PDR 1 is used to determine that a packet sent by the first terminal belongs to the multicast group, and the FAR 1 is used to forward the multicast packet to a tunnel endpoint connected to the UPF network element 3. In addition, the GMF network element generates a rule, namely, a PDR 3, that is applied to an ingress of a tunnel endpoint on the UPF network element 3. The PDR 3 is used to identify a received packet belonging to the multicast group, and the PDR 3 is used to set an FAR ID to a multicast FAR on the UPF network element 3.
In addition, it should be noted that in all the embodiments of this application, descriptions are provided by using an example in which an ingress PDR is used to identify a broadcast packet or a multicast packet that belongs to a group. Optionally, in this embodiment of this application, a function of the ingress PDR may alternatively be split. For example, as shown in
The foregoing mainly describes the solutions provided in the embodiments of this application from a perspective of interaction between the network elements. It may be understood that to implement the foregoing functions, the group management function network element, the user plane network element, or the session management network element includes corresponding hardware structures and/or software modules for performing the functions. A person skilled in the art should be easily aware that units and algorithm steps in the examples described with reference to the embodiments disclosed in this specification can be implemented by hardware or a combination of hardware and computer software in this application. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that such an implementation goes beyond the scope of this application.
In the embodiments of this application, the group management function network element, the user plane network element, or the session management network element may be divided into functional modules based on the foregoing method examples. For example, functional modules corresponding to the functions may be obtained through division, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module. It should be noted that, in the embodiments of this application, division into the modules is an example and is merely logical function division, and may be other division in an actual implementation.
For example, when functional modules are obtained through division in an integrated manner,
All related content of the steps in the foregoing method embodiments may be cited in function descriptions of corresponding functional modules. Details are not described herein again.
In this embodiment, the group management function network element 390 is presented in a form of functional modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor that executes one or more software or firmware programs, and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the group management function network element 390 may be in the form shown in
For example, the processor 1101 in
Specifically, functions/implementation processes of the transceiver module 3902 and the processing module 3901 in
The group management function network element 390 provided in this embodiment may perform the foregoing group communications method. Therefore, for a technical effect that can be obtained by the group management function network element 390, refer to the foregoing method embodiments. Details are not described herein again.
Optionally, an embodiment of this application further provides an apparatus (for example, the apparatus may be a chip system). The apparatus includes a processor, configured to support a group management function network element in implementing the foregoing group communications method, for example, creating, for the local area network group, the rule group applied to the first session port. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the group management function network element. Certainly, the memory may alternatively not be in the apparatus. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component. This is not specifically limited in this embodiment of this application.
Alternatively, for example, when functional modules are obtained through division in an integrated manner,
All related content of the steps in the foregoing method embodiments may be cited in function descriptions of corresponding functional modules. Details are not described herein again.
In this embodiment, the first user plane network element 400 is presented in a form of functional modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor that executes one or more software or firmware programs, and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the first user plane network element 400 may be in the form shown in
For example, the processor 1101 in
Specifically, functions/implementation processes of the transceiver module 4002 and the processing module 4001 in
The first user plane network element 400 provided in this embodiment may perform the foregoing group communications method. Therefore, for a technical effect that can be obtained by the first user plane network element 400, refer to the foregoing method embodiments. Details are not described herein again.
Optionally, an embodiment of this application further provides an apparatus (for example, the apparatus may be a chip system). The apparatus includes a processor, configured to support a first user plane network element in implementing the foregoing group communications method, for example, creating the first session port based on the first session port identifier, and configuring the rule group on the first session port. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the first user plane network element. Certainly, the memory may alternatively not be in the apparatus. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component. This is not specifically limited in this embodiment of this application.
Alternatively, for example, if functional modules are obtained through division in an integrated manner,
All related content of the steps in the foregoing method embodiments may be cited in function descriptions of corresponding functional modules. Details are not described herein again.
In this embodiment, the session management network element 410 is presented in a form of functional modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor that executes one or more software or firmware programs, and a memory, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the session management network element 410 may be in the form shown in
For example, the processor 1101 in
Specifically, functions/implementation processes of the receiving module 4102 and the sending module 4101 in
The session management network element 410 provided in this embodiment may perform the foregoing group communications method. Therefore, for a technical effect that can be obtained by the session management network element 410, refer to the foregoing method embodiments. Details are not described herein again.
Optionally, an embodiment of this application further provides an apparatus (for example, the apparatus may be a chip system). The apparatus includes a processor, configured to support a session management network element in implementing the foregoing group communications method, for example, determining the first user plane network element based on the identifier of the first user plane network element. In a possible design, the apparatus further includes a memory. The memory is configured to store program instructions and data that are necessary for the session management network element. Certainly, the memory may alternatively not be in the apparatus. When the apparatus is the chip system, the apparatus may include a chip, or may include a chip and another discrete component. This is not specifically limited in this embodiment of this application.
All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When a software program is used to implement the embodiments, all or some of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer readable storage medium, or may be 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 to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid-state drive (solid state disk, SSD)), or the like.
Although this application is described with reference to the embodiments, in a process of implementing this application that claims protection, a person skilled in the art may understand and implement another variation of the disclosed embodiments by viewing the accompanying drawings, disclosed content, and the appended claims. In the claims, “comprising” (comprising) does not exclude another component or another step, and “a” or “one” does not exclude a meaning of plurality. A single processor or another unit may implement several functions enumerated in the claims. Some measures are recorded in dependent claims that are different from each other, but this does not mean that these measures cannot be combined to produce a great effect.
Although this application is described with reference to specific features and the embodiments thereof, it is clear that various modifications and combinations may be made to them without departing from the scope of this application. Correspondingly, the specification and the accompanying drawings are merely example descriptions in this application defined by the appended claims, and are intended to cover any of or all modifications, variations, combinations, or equivalents within the scope of this application. It is clear that a person skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. This application is intended to cover these modifications and variations of this application, provided that they fall within the scope of protection defined by the following claims and their equivalent technologies in this application.
Claims
1. A group communications method, wherein the method comprises:
- when a first terminal initiates access to a local area network group, obtaining, by a group management function network element, an identifier of a first user plane network element to be accessed by the first terminal, context information of the local area network group, and a first session port identifier, wherein the context information comprises an identifier list of user plane network elements accessed by a terminal that has currently accessed the local area network group in a terminal member list corresponding to the local area network group, and the first session port identifier is an identifier of a first session port that is on the first user plane network element and that is used by the first terminal for access;
- creating, by the group management function network element for the local area network group, a rule group applied to the first session port, and creating or updating, by the group management function network element for the local area network group based on the context information, a local area network group forwarding action rule (FAR) applied to the first user plane network element, wherein the rule group comprises an ingress packet detection rule (PDR), an egress PDR, and an egress FAR; the egress PDR comprises an identifier of the egress FAR, and the ingress PDR comprises an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port; and
- sending, by the group management function network element, a first message to a session management network element, wherein the first message is used to configure the rule group on the first session port, and configure or update the local area network group FAR on the first user plane network element.
2. The method according to claim 1, wherein the method further comprises:
- when the identifier list comprises an identifier of a second user plane network element, and the identifier of the first user plane network element is not in the identifier list, obtaining, by the group management function network element, a first tunnel endpoint identifier and a second tunnel endpoint identifier, wherein the first tunnel endpoint identifier is an identifier of a first tunnel endpoint of a first tunnel on the first user plane network element, the second tunnel endpoint identifier is an identifier of a second tunnel endpoint of the first tunnel on the second user plane network element, and the first tunnel is a tunnel between the first user plane network element and the second user plane network element; and
- creating, by the group management function network element for the local area network group, a rule group applied to the first tunnel endpoint, creating, by the group management function network element for the local area network group, a rule group applied to the second tunnel endpoint, and updating, by the group management function network element, a local area network group FAR applied to the second user plane network element, wherein
- correspondingly, the first message is further used to configure the rule group on the first tunnel endpoint, configure the rule group on the second tunnel endpoint, and update the local area network group FAR on the second user plane network element.
3. The method according to claim 1, wherein the method further comprises:
- when the first terminal is updated from accessing the first user plane network element to accessing a third user plane network element in the local area network group, obtaining, by the group management function network element, a third session port identifier, wherein the third session port identifier is an identifier of a third session port that is on the third user plane network element and that is used by the first terminal for access;
- creating, by the group management function network element for the local area network group, a rule group applied to the third session port, and creating or updating, by the group management function network element based on the context information, a local area network group FAR applied to the third user plane network element; and
- sending, by the group management function network element, a third message to the session management network element, wherein the third message is used to configure the rule group on the third session port, configure or update the local area network group FAR on the third user plane network element, delete the rule group on the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element.
4. The method according to claim 3, wherein the method further comprises:
- when the identifier list comprises an identifier of a fourth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, updating, by the group management function network element, a local area network group FAR applied to the fourth user plane network element, wherein
- correspondingly, the third message is further used to delete a second tunnel between the first user plane network element and the fourth user plane network element, delete a rule group on a third tunnel endpoint on the first user plane network element, delete the rule group on a fourth tunnel endpoint on the fourth user plane network element, and update the local area network group FAR applied to the fourth user plane network element; and the third tunnel endpoint is a tunnel endpoint of the second tunnel on the first user plane network element, and the fourth tunnel endpoint is a tunnel endpoint of the second tunnel on the fourth user plane network element.
5. The method according to claim 3, wherein the method further comprises:
- when the identifier list comprises the identifier of the fourth user plane network element, and an identifier of the third user plane network element is not in the identifier list, obtaining, by the group management function network element, a fifth tunnel endpoint identifier and a sixth tunnel endpoint identifier, wherein the fifth tunnel endpoint identifier is an identifier of a fifth tunnel endpoint of a third tunnel on the third user plane network element, the sixth tunnel endpoint identifier is an identifier of a sixth tunnel endpoint of the third tunnel on the fourth user plane network element, and the third tunnel is a tunnel between the third user plane network element and the fourth user plane network element; and
- creating, by the group management function network element for the local area network group, a rule group applied to the fifth tunnel endpoint, creating, by the group management function network element for the local area network group, a rule group applied to the sixth tunnel endpoint, and updating, by the group management function network element, the local area network group FAR applied to the fourth user plane network element, wherein
- correspondingly, the third message is further used to configure the rule group on the fifth tunnel endpoint, configure the rule group on the sixth tunnel endpoint, and update the local area network group FAR on the fourth user plane network element.
6. The method according to claim 1, wherein the method further comprises:
- when the first terminal is about to leave the local area network group, sending, by the group management function network element, a fifth message to the session management network element, wherein the fifth message is used to delete the rule group applied to the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element.
7. The method according to claim 6, wherein the method further comprises:
- when the identifier list comprises an identifier of a fifth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, updating, by the group management function network element, a local area network group FAR applied to the fifth user plane network element, wherein
- correspondingly, the fifth message is further used to delete a fourth tunnel between the first user plane network element and the fifth user plane network element, delete a rule group on a seventh tunnel endpoint on the first user plane network element, delete a rule group on an eighth tunnel endpoint on the fifth user plane network element, and update the local area network group FAR applied to the fifth user plane network element; and the seventh tunnel endpoint is a tunnel endpoint of the fourth tunnel on the first user plane network element, and the eighth tunnel endpoint is a tunnel endpoint of the fourth tunnel on the fifth user plane network element.
8. A group management function network element, comprising:
- at least one processor; and
- a memory coupled to the at least one processor and configured to store program instructions which, when executed by the at least one processor, cause the a group management function network element to:
- when a first terminal initiates access to a local area network group, obtain an identifier of a first user plane network element to be accessed by the first terminal, context information of the local area network group, and a first session port identifier, wherein the context information comprises an identifier list of user plane network elements accessed by a terminal that has currently accessed the local area network group in a terminal member list corresponding to the local area network group, and the first session port identifier is an identifier of a first session port that is on the first user plane network element and that is used by the first terminal for access;
- create, for the local area network group, a rule group applied to the first session port, and create or update, for the local area network group based on the context information, a local area network group forwarding action rule (FAR) applied to the first user plane network element, wherein the rule group comprises an ingress packet detection rule (PDR), an egress PDR, and an egress FAR; the egress PDR comprises an identifier of the egress FAR, and the ingress PDR comprises an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port; and
- send a first message to a session management network element, wherein the first message is used to configure the rule group on the first session port on the first user plane network element, and configure or update the local area network group FAR on the first user plane network element.
9. The group management function network element according to claim 8, wherein the program instructions further cause the group management function network element to:
- when the identifier list comprises an identifier of a second user plane network element, and the identifier of the first user plane network element is not in the identifier list, obtain a first tunnel endpoint identifier and a second tunnel endpoint identifier, wherein the first tunnel endpoint identifier is an identifier of a first tunnel endpoint of a first tunnel on the first user plane network element, the second tunnel endpoint identifier is an identifier of a second tunnel endpoint of the first tunnel on the second user plane network element, and the first tunnel is a tunnel between the first user plane network element and the second user plane network element; and
- create, for the local area network group, the rule group applied to the first tunnel endpoint, create, for the local area network group, the rule group applied to the second tunnel endpoint, and update, by the group management function network element, the local area network group FAR applied to the second user plane network element, wherein
- correspondingly, the first message is further used to configure the rule group on the first tunnel endpoint, configure the rule group on the second tunnel endpoint, and update the local area network group FAR on the second user plane network element.
10. The group management function network element according to claim 8, wherein the program instructions further cause the group management function network element to:
- when the first terminal is updated from accessing the first user plane network element to accessing a third user plane network element in the local area network group, obtain a third session port identifier, wherein the third session port identifier is an identifier of a third session port that is on the third user plane network element and that is used by the first terminal for access;
- create, for the local area network group, a rule group applied to the third session port, and create or update, by the group management function network element based on the context information, the local area network group FAR applied to the third user plane network element; and
- send a third message to the session management network element, wherein the third message is used to configure the rule group on the third session port, configure or update the local area network group FAR on the third user plane network element, delete the rule group on the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element.
11. The group management function network element according to claim 10, wherein the program instructions further cause the group management function network element to:
- when the identifier list comprises an identifier of a fourth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, update the local area network group FAR applied to the fourth user plane network element, wherein
- correspondingly, the third message is further used to delete a second tunnel between the first user plane network element and the fourth user plane network element, delete the rule group on a third tunnel endpoint on the first user plane network element, delete the rule group on a fourth tunnel endpoint on the fourth user plane network element, and update the local area network group FAR applied to the fourth user plane network element; and the third tunnel endpoint is a tunnel endpoint of the second tunnel on the first user plane network element, and the fourth tunnel endpoint is a tunnel endpoint of the second tunnel on the fourth user plane network element.
12. The group management function network element according to claim 10, wherein the program instructions further cause the group management function network element to:
- when the identifier list comprises the identifier of the fourth user plane network element, and an identifier of the third user plane network element is not in the identifier list, obtain a fifth tunnel endpoint identifier and a sixth tunnel endpoint identifier, wherein the fifth tunnel endpoint identifier is an identifier of a fifth tunnel endpoint of a third tunnel on the third user plane network element, the sixth tunnel endpoint identifier is an identifier of a sixth tunnel endpoint of the third tunnel on the fourth user plane network element, and the third tunnel is a tunnel between the third user plane network element and the fourth user plane network element; and
- create, for the local area network group, the rule group applied to the fifth tunnel endpoint, create, for the local area network group, the rule group applied to the sixth tunnel endpoint, and update, by the group management function network element, the local area network group FAR applied to the fourth user plane network element, wherein
- correspondingly, the third message is further used to configure the rule group on the fifth tunnel endpoint, configure the rule group on the sixth tunnel endpoint, and update the local area network group FAR on the fourth user plane network element.
13. The group management function network element according to claim 8, wherein the program instructions further cause the group management function network element to:
- when the first terminal is about to leave the local area network group, send a fifth message to the session management network element, wherein the fifth message is used to delete the rule group applied to the first session port, and delete or update the local area network group FAR applied to the first user plane network element; and an updated local area network group FAR applied to the first user plane network element is obtained by the group management function network element by updating, based on the context information, the local area network group FAR applied to the first user plane network element.
14. The group management function network element according to claim 13, wherein the program instructions further cause the group management function network element to:
- when the identifier list comprises an identifier of a fifth user plane network element, and no terminal other than the first terminal in the terminal member list corresponding to the local area network group accesses the first user plane network element, update the local area network group FAR applied to the fifth user plane network element, wherein
- correspondingly, the fifth message is further used to delete a fourth tunnel between the first user plane network element and the fifth user plane network element, delete the rule group on a seventh tunnel endpoint on the first user plane network element, delete the rule group on an eighth tunnel endpoint on the fifth user plane network element, and update the local area network group FAR applied to the fifth user plane network element; and the seventh tunnel endpoint is a tunnel endpoint of the fourth tunnel on the first user plane network element, and the eighth tunnel endpoint is a tunnel endpoint of the fourth tunnel on the fifth user plane network element.
15. A group communications system, wherein the group communications system comprises a group management function network element and a session management network element, wherein
- the group management function network element is configured to: when a first terminal initiates access to a local area network group, obtain an identifier of a first user plane network element to be accessed by the first terminal, context information of the local area network group, and a first session port identifier, wherein the context information comprises an identifier list of user plane network elements accessed by a terminal that has currently accessed the local area network group in a terminal member list corresponding to the local area network group, and the first session port identifier is an identifier of a first session port that is on the first user plane network element and that is used by the first terminal for access; create, for the local area network group, a rule group applied to the first session port, and create or update, for the local area network group based on the context information, a local area network group forwarding action rule (FAR) applied to the first user plane network element, wherein the rule group comprises an ingress packet detection rule (PDR), an egress PDR, and an egress FAR; the egress PDR comprises an identifier of the egress FAR, and the ingress PDR comprises an identifier of the local area network group FAR; the ingress PDR is used to identify a broadcast packet belonging to the local area network group, and the local area network group FAR is used to duplicate the broadcast packet and then forward the broadcast packet to a specified egress; and the egress PDR is used to identify a type of the broadcast packet, and the egress FAR is used to perform outer header creation and transport level marking on the broadcast packet and then send the broadcast packet through a corresponding port; and send a first message to the session management network element, wherein the first message wherein the first message comprises an identifier of a first user plane network element, the first session port identifier, the rule group applied to the first session port, and the local area network group FAR applied to the first user plane network element; and
- the session management network element is configured to: receive the first message from the group management function network element; send a second message to the first user plane network element based on the identifier of the first user plane network element, wherein the second message comprises the first session port identifier, the rule group on the first session port, and the local area network group FAR applied to the first user plane network element.
16. The group communications system according to claim 15, wherein the system further comprises the first user plane network element;
- wherein the first user plane network element is configured to:
- receive the second message from the session management network element;
- create the first session port based on the first session port identifier, and configure the rule group on the first session port; and
- create or update the local area network group FAR on the first user plane network element based on the local area network group FAR applied to the first user plane network element.
17. The group communications system according to claim 15, wherein when the first terminal is updated from accessing the first user plane network element to accessing a third user plane network element in the local area network group, the group management function network element is further configured to:
- obtain a third session port identifier, wherein the third session port identifier is an identifier of a third session port that is on the third user plane network element and that is used by the first terminal for access;
- create, for the local area network group, a rule group applied to the third session port, and create or update, based on the context information, a local area network group FAR applied to the third user plane network element; and
- send a third message to the session management network element, wherein the third message comprises the identifier of the first user plane network element, the first session port identifier, an identifier of the local area network group FAR applied to the first user plane network element, an identifier of the third user plane network element, the third session port identifier, the rule group applied to the third session port and the local area network group FAR applied to the third user plane network element;
- the session management network element is further configured to:
- receive the third message from the group management function network element,
- send a fourth message to the first user plane network element based on the identifier of the first user plane network element, wherein the fourth message comprises the first session port identifier and the identifier of the local area network group FAR applied to the first user plane network element; and
- send a fifth message to the third user plane network element based on the identifier of the third user plane network element, wherein the fifth message comprises the third session port identifier, the rule group on the third session port, and the local area network group FAR applied to the third user plane network element.
18. The group communications system according to claim 17, wherein the first user plane network element is further configured to;
- receive the fourth message from the session management network element;
- delete, based on the first session port identifier, the first session port and the rule group applied to the first session port; and
- delete, based on the identifier of the local area network group FAR applied to the first user plane network element, the local area network group FAR on the first user plane network element.
19. The group communications system according to claim 15, wherein the group management function network element is further configured to:
- when the first terminal is about to leave the local area network group, send a sixth message to the session management network element, wherein the sixth message is used to delete the rule group applied to the first session port, and delete the local area network group FAR applied to the first user plane network element.
20. The group communications system according to claim 19, the session management network element is further configured to:
- receive the sixth message from the group management function network element;
- send a seventh message to the first user plane network element based on the identifier of the first user plane network element, wherein the seventh message comprises the first session port identifier and the identifier of the local area network group FAR applied to the first user plane network element.
Type: Application
Filed: May 19, 2021
Publication Date: Sep 2, 2021
Patent Grant number: 11653180
Inventors: Changchun XU (Shanghai), Zhongping CHEN (Shanghai), Runze ZHOU (Shanghai), Yan WANG (Shanghai)
Application Number: 17/324,928