Routing configuration method and device

By using the routing configuration method in 5GLAN, adaptive routing information is generated based on the VLAN information of the terminal device, which solves the message processing problem when 5GLAN communicates with external LAN and ensures the normality of communication.

CN113973050BActive Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010720012.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-23
Publication Date
2024-08-27
Estimated Expiration
2040-07-23

AI Technical Summary

Technical Problem

When the 5G local area network (5GLAN) interoperates with the external LAN, how to make the network elements in the 5GLAN correctly process the Ethernet packets of the terminal, especially when the network networking modes and VLAN configurations of different terminal devices are different, resulting in Communication abnormality.

Method used

Provide a routing configuration method. The session management network element obtains the VLAN information of the terminal and generates routing information for the user plane network element to ensure that the user plane network element can adapt to the networking mode and VLAN configuration of the network where the terminal is located, and correctly handle the uplink. and downstream messages. The method includes generating first routing information and second routing information for processing messages, used for processing received messages and messages to be sent, and respectively processing the situations of not carrying VID, allowed VID and untagged VID.

Benefits of technology

By adapting to the VLAN configuration of the terminal device, normal communication between the 5G LAN and the external LAN is ensured, and packet processing errors and communication interruptions caused by VLAN configuration differences are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113973050B
    Figure CN113973050B
Patent Text Reader

Abstract

The present application provides a routing configuration method and device, which relates to the field of communication technology and is used to realize the intercommunication between 5GLAN and VLAN in fixed network. The routing configuration method includes: the session management network element obtains the VLAN information of the first port, the first port is the port corresponding to the PDU session established with the first terminal on the first user plane network element, and the first user plane network element is the user plane network element providing services for the first terminal; the session management network element generates the first routing information and the second routing information according to the VLAN information of the first port, the first routing information is used for the first user plane network element to process the first message, the first message is the uplink message of the first terminal received from the first port, and the second routing information is used for the first user plane network element to process the second message, the second message is the downlink message to be sent from the first port to the first terminal; thereafter, the session management network element sends the first routing information and the second routing information to the first user plane network element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a routing configuration method and device. Background Art

[0002] The local area network (LAN) in the fixed network is composed of interconnected switches, which support the forwarding of unicast and broadcast messages. LAN supports virtual local area network (VLAN) technology. VLAN technology can logically divide the network into multiple broadcast domains (also known as VLANs). If multiple hosts are classified into the same VLAN, these hosts can communicate with each other. If multiple hosts are classified into different VLANs, these hosts cannot communicate directly. VLAN technology can effectively control the occurrence of broadcast storms.

[0003] 5G local area network (5GLAN) service is a service provided by the current 5G network, which is mainly used in home communications, corporate offices, factory manufacturing, Internet of Vehicles, power grid transformation and public security organs. 5GVN service can provide private communications of Internet protocol (IP) type or non-IP type (such as Ethernet type) for two or more terminal devices in a group of terminal devices. For example, the devices in the factory form a group, and different devices can send Ethernet data packets to each other; or, the office equipment (such as mobile phones, computers or laptops) of employees in a department of an enterprise form a group, and different office equipment can send IP data packets to each other, and so on. If two terminal devices are not in the same group, they cannot communicate with each other.

[0004] At present, when 5GLAN communicates with external LAN, how to enable the network elements in 5GLAN to correctly process the Ethernet messages of the terminal is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a routing configuration method and device for enabling user-plane network elements in a 5G LAN to correctly process Ethernet messages.

[0006] In a first aspect, a routing configuration method is provided, including: a session management network element obtains VLAN information of a first port, the first port being a port on a first user plane network element corresponding to a PDU session established with a first terminal, and the first user plane network element is a user plane network element providing services for the first terminal; the session management network element generates first routing information and second routing information according to the VLAN information of the first port, the first routing information being used for the first user plane network element to process a first message, the first message being an uplink message of the first terminal received by the first user plane network element from the first port, and the second routing information being used for the first user plane network element to process a second message, the second message being a downlink message to be sent by the first user plane network element to the first terminal via the first port; and the session management network element sends the first routing information and the second routing information to the first user plane network element.

[0007] Based on the above technical solution, in the scenario where 5GLAN is interconnected with an external LAN, the VLAN information of the first port can reflect the networking mode and VLAN configuration of the network where the first terminal is located. Since the first routing information and the second routing information are generated according to the VLAN information of the first port, the session management network element sends the first routing information and the second routing information to the first user plane network element, so that the first user plane network element can process the first message according to the first routing information and the second message according to the second routing information, so that the first user plane network element can process the Ethernet message in a way that adapts to the networking mode and VLAN configuration of the network where the first terminal is located, and ensure the normal communication of the external LAN.

[0008] In one possible design, the VLAN information of the first port includes a combination of one or more of the following: a default VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

[0009] In one possible design, the first routing information includes a default VID of the first port and an allowed VID list of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the allowed VID list of the first port includes the VID carried by the first message; or, the first routing information is used to instruct the first user plane network element to discard the first message when the allowed VID list of the first port does not include the VID carried by the first message.

[0010] In one possible design, the first routing information includes the default VID of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the VID carried by the first message is the same as the default VID of the first port; or, the first routing information is used to instruct the first user plane network element to discard the first message when the VID carried by the first message is different from the default VID of the first port.

[0011] In one possible design, the second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the second message carries the VID and the allowed VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to send the second message through the first port when the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message stripped of the VID through the first port when the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port includes the VID carried by the second message.

[0012] In one possible design, the second routing information includes the default VID of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

[0013] In one possible design, the second routing information includes the default VID of the first port and the allowed VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is not included in the allowed VID list of the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is different from the default VID of the first port, to send the second message through the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is the same as the default VID of the first port, to strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

[0014] In a possible design, the session management network element obtains VLAN information of the first port, including: the session management network element obtains VLAN information of the first terminal; the VLAN information of the first terminal includes a combination of one or more of the following VLAN parameters: interface mode, S-TAG, allowed VID list, default VID or untagged VID list, the interface mode includes access type, aggregation trunk type or hybrid type; the session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal.

[0015] In one possible design, the VLAN information of the first terminal further includes a first action indication, where the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal, wherein the operation includes a combination of one or more of the following:

[0016] The VID carried in the upstream message is not processed;

[0017] Add the default VID of the first port to the upstream message;

[0018] The VID carried in the downlink message is not processed;

[0019] Stripping the default VID of the first port or the VID in the untagged VID list for the downstream message;

[0020] Whether to allow transmission of the uplink message is not determined based on the allowed VID list of the first port;

[0021] Whether to allow transmission of the downlink message is not determined based on the allowed VID list of the first port;

[0022] Determining whether to allow transmission of an uplink message according to the allowed VID list of the first port;

[0023] Determining whether to allow transmission of the downlink message according to the allowed VID list of the first port;

[0024] Do not add S-TAG to the uplink message;

[0025] Do not strip the S-TAG for downlink messages;

[0026] Add S-TAG to the uplink message; or

[0027] Strip the S-TAG from the downlink message.

[0028] In one possible design, the session management network element obtains the VLAN information of the first terminal, including: the session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

[0029] In a possible design, the session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal, including: when the VLAN information of the first terminal includes a default VID, the session management network element determines the default VID included in the VLAN information of the first terminal as the default VID of the first port; when the VLAN information of the first terminal does not include the default VID and the VLAN information of the first terminal includes an allowed VID list, the session management network element determines the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port; wherein the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal includes: the first VID in the allowed VID list included in the VLAN information of the first terminal; or, the last VID in the allowed VID list included in the VLAN information of the first terminal; or, the VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or, the VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

[0030] In one possible design, the method also includes: the session management network element obtains the allowed VID list of the first user plane network element and the allowed VID list of the second user plane network element; the session management network element generates third routing information based on the allowed VID list of the first user plane network element, and the third routing information is used by the first user plane network element to process a third message, and the third message is a message received by the first user plane network element from the second user plane network element; the session management network element generates fourth routing information based on the allowed VID list of the second user plane network element, and the fourth routing information is used by the first user plane network element to process a fourth message, and the fourth message is a message to be sent by the first user plane network element to the second user plane network element; the session management network element sends the third routing information and the fourth routing information to the first user plane network element.

[0031] In one possible design, the method also includes: the session management network element obtains an allowed VID list of ports corresponding to each PDU session on the first user plane network element, and an allowed VID list of ports corresponding to each PDU session on the second user plane network element; the session management network element uses the union of the allowed VID lists of ports corresponding to each PDU session on the first user plane network element as the allowed VID list of the first user plane network element; the session management network element uses the union of the allowed VID lists of ports corresponding to each PDU session on the second user plane network element as the allowed VID list of the second user plane network element.

[0032] In one possible design, the third routing information is used for the first user plane network element to process the third message, including a combination of one or more of the following: the third routing information is used to instruct the first user plane network element to discard the third message if the allowed VID list of the first user plane network element does not include the VID carried by the third message; the third routing information is used to instruct the first user plane network element to accept the third message if the allowed VID list of the first user plane network element includes the VID carried by the third message.

[0033] In one possible design, the fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: the fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; the fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

[0034] In one possible design, the method also includes: the session management network element generates fifth routing information according to the allowed VID list of the first user plane network element, and the fifth routing information is used by the second user plane network element to process the fifth message, and the fifth message is the message to be sent by the second user plane network element to the first user plane network element; the session management network element generates sixth routing information according to the allowed VID list of the second user plane network element, and the sixth routing information is used by the second user plane network element to process the sixth message, and the sixth message is the message received by the second user plane network element from the first user plane network element; the session management network element sends the fifth routing information and the sixth routing information to the second user plane network element.

[0035] In one possible design, the fifth routing information is used for the second user plane network element to process the fifth message, including a combination of one or more of the following: the fifth routing information is used to instruct the second user plane network element to discard the fifth message if the allowed VID list of the first user plane network element does not include the VID carried by the fifth message; or, the fifth routing information is used to instruct the second user plane network element to send the fifth message if the allowed VID list of the first user plane network element includes the VID carried by the fifth message.

[0036] In one possible design, the sixth routing information is used for the second user plane network element to process the sixth message, including a combination of one or more of the following: the sixth routing information is used to instruct the second user plane network element to discard the sixth message if the allowed VID list of the second user plane network element does not include the VID carried by the sixth message; or, the sixth routing information is used to instruct the second user plane network element to accept the sixth message if the allowed VID list of the second user plane network element includes the VID carried by the sixth message.

[0037] In one possible design, the method also includes: the session management network element obtains VLAN information of the fourth port, and the fourth port is the port used by the first user plane network element to connect to the data network; the session management network element generates seventh routing information and eighth routing information according to the VLAN information of the fourth port, and the seventh routing information is used by the first user plane network element to process the seventh message, and the seventh message is the message received by the first user plane network element through the fourth port; the eighth routing information is used by the first user plane network element to process the eighth message, and the eighth message is the message to be sent by the first user plane network element through the fourth port; the session management network element sends the seventh routing information and the eighth routing information to the first user plane network element.

[0038] In a second aspect, a routing configuration method is provided, including: a first user plane network element receives first routing information and second routing information sent by a session management network element, the first user plane network element provides services for a first terminal, the first routing information and the second routing information are generated according to VLAN information of a first port, the first routing information is used by the first user plane network element to process a first message, the first message is an uplink message of the first terminal received by the first user plane network element from the first port, the second routing information is used by the first user plane network element to process a second message, the second message is a downlink message to be sent by the first user plane network element to the first terminal through the first port, and the first port is a port on the first user plane network element corresponding to a PDU session established with the first terminal; the first user plane network element saves the first routing information and the second routing information.

[0039] Based on the above technical solution, in the scenario where 5GLAN and external LAN are interconnected, the VLAN information of the first port can reflect the networking mode and VLAN configuration of the network where the first terminal is located. Since the first routing information and the second routing information are generated according to the VLAN information of the first port, the first user plane network element can process the first message according to the first routing information and the second message according to the second routing information, so that the processing method of the first user plane network element for the message can adapt to the networking mode and VLAN configuration of the network where the first terminal is located, ensuring the normal communication of the external LAN.

[0040] In one possible design, the VLAN information of the first port includes a combination of one or more of the following: a default VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

[0041] In one possible design, the first routing information includes a default VID of the first port and an allowed VID list of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the first message carries the VID and the allowed VID list of the first port includes the VID carried by the first message; or, the first routing information is used to instruct the first user plane network element to discard the first message when the first message carries the VID and the allowed VID list of the first port does not include the VID carried by the first message.

[0042] In one possible design, the first routing information includes the default VID of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the first message carries the VID and the VID carried by the first message is the same as the default VID of the first port; or, the first routing information is used to instruct the first user plane network element to discard the first message when the first message carries the VID and the VID carried by the first message is different from the default VID of the first port.

[0043] In one possible design, the second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the second message carries the VID and the allowed VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to send the second message through the first port when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port includes the VID carried by the second message, and send the second message after the VID is stripped through the first port.

[0044] In one possible design, the second routing information includes the default VID of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

[0045] In one possible design, the second routing information includes the default VID of the first port and the allowed VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is not included in the allowed VID list of the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is different from the default VID of the first port, to send the second message through the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is the same as the default VID of the first port, to strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

[0046] In one possible design, the method also includes: the first user plane network element receives third routing information and fourth routing information sent by the session management network element, the third routing information is generated according to the allowed VID list of the first user plane network element, and the fourth routing information is generated according to the allowed VID list of the second user plane network element, the third routing information is used by the first user plane network element to process a third message, and the third message is a message received by the first user plane network element from the second user plane network element; the fourth routing information is used by the first user plane network element to process a fourth message, and the fourth message is a message to be sent by the first user plane network element to the second user plane network element; the first user plane network element saves the third routing information and the fourth routing information.

[0047] In one possible design, the third routing information is used for the first user plane network element to process the third message, including a combination of one or more of the following: the third routing information is used to instruct the first user plane network element to discard the third message when the allowed VID list of the first user plane network element does not include the VID carried by the third message; or, the third routing information is used to instruct the first user plane network element to accept the third message when the allowed VID list of the first user plane network element includes the VID carried by the third message.

[0048] In one possible design, the fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: the fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; or, the fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

[0049] In one possible design, the method also includes: the first user plane network element receives the seventh routing information and the eighth routing information sent by the session management network element, the seventh routing information and the eighth routing information are generated according to the VLAN information of the fourth port, the fourth port is the port used by the first user plane network element to connect to the data network, the seventh routing information is used by the first user plane network element to process the seventh message, the seventh message is the message received by the first user plane network element through the fourth port, the eighth routing information is used by the first user plane network element to process the eighth message, the eighth message is the message to be sent by the first user plane network element through the fourth port; the first user plane network element saves the seventh routing information and the eighth routing information.

[0050] In a third aspect, a communication device is provided, including a processing unit and a communication unit. The processing unit is used to obtain VLAN information of a first port, where the first port is a port on a first user plane network element corresponding to a PDU session established with a first terminal, and the first user plane network element is a user plane network element that provides services for the first terminal; based on the VLAN information of the first port, first routing information and second routing information are generated, where the first routing information is used for the first user plane network element to process a first message, where the first message is an uplink message of the first terminal received by the first user plane network element from the first port, and the second routing information is used for the first user plane network element to process a second message, where the second message is a downlink message to be sent by the first user plane network element to the first terminal through the first port. The communication unit is used to send the first routing information and the second routing information to the first user plane network element.

[0051] In one possible design, the VLAN information of the first port includes a combination of one or more of the following: a default VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

[0052] In one possible design, the first routing information includes a default VID of the first port and an allowed VID list of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the allowed VID list of the first port includes the VID carried by the first message; or, the first routing information is used to instruct the first user plane network element to discard the first message when the allowed VID list of the first port does not include the VID carried by the first message.

[0053] In one possible design, the first routing information includes the default VID of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the VID carried by the first message is the same as the default VID of the first port; or, the first routing information is used to instruct the first user plane network element to discard the first message when the VID carried by the first message is different from the default VID of the first port.

[0054] In one possible design, the second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the second message carries the VID and the allowed VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to send the second message through the first port when the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message stripped of the VID through the first port when the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port includes the VID carried by the second message.

[0055] In one possible design, the second routing information includes the default VID of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

[0056] In one possible design, the second routing information includes the default VID of the first port and the allowed VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is not included in the allowed VID list of the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is different from the default VID of the first port, to send the second message through the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is the same as the default VID of the first port, to strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

[0057] In a possible design, the communication unit is further used to obtain VLAN information of the first terminal; the VLAN information of the first terminal includes a combination of one or more of the following VLAN parameters: interface mode, S-TAG, allowed VID list, default VID or untagged VID list, and the interface mode includes access type, trunk type or hybrid type. The processing unit is further used to determine the VLAN information of the first port according to the VLAN information of the first terminal.

[0058] In one possible design, the VLAN information of the first terminal further includes a first action indication, where the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal, wherein the operation includes a combination of one or more of the following:

[0059] The VID carried in the upstream message is not processed;

[0060] Add the default VID of the first port to the upstream message;

[0061] The VID carried in the downlink message is not processed;

[0062] Stripping the default VID of the first port or the VID in the untagged VID list for the downstream message;

[0063] Whether to allow transmission of the uplink message is not determined based on the allowed VID list of the first port;

[0064] Whether to allow transmission of the downlink message is not determined based on the allowed VID list of the first port;

[0065] Determining whether to allow transmission of an uplink message according to the allowed VID list of the first port;

[0066] Determining whether to allow transmission of the downlink message according to the allowed VID list of the first port;

[0067] Do not add S-TAG to the uplink message;

[0068] Do not strip the S-TAG for downlink messages;

[0069] Add S-TAG to the uplink message; or

[0070] Strip the S-TAG from the downlink message.

[0071] In one possible design, the communication unit is specifically used to obtain VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

[0072] In a possible design, the processing unit is specifically configured to, when the VLAN information of the first terminal includes a default VID, determine the default VID included in the VLAN information of the first terminal as the default VID of the first port; when the VLAN information of the first terminal does not include the default VID and the VLAN information of the first terminal includes an allowed VID list, determine the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port; wherein the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal includes: the first VID in the allowed VID list included in the VLAN information of the first terminal; or, the last VID in the allowed VID list included in the VLAN information of the first terminal; or, the VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or, the VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

[0073] In one possible design, the processing unit is further used to obtain the allowed VID list of the first user plane network element and the allowed VID list of the second user plane network element; generate third routing information according to the allowed VID list of the first user plane network element, the third routing information is used by the first user plane network element to process a third message, the third message is a message received by the first user plane network element from the second user plane network element; generate fourth routing information according to the allowed VID list of the second user plane network element, the fourth routing information is used by the first user plane network element to process a fourth message, the fourth message is a message to be sent by the first user plane network element to the second user plane network element. The communication unit is also used to send the third routing information and the fourth routing information to the first user plane network element.

[0074] In one possible design, the processing unit is also used to obtain an allowed VID list of ports corresponding to each PDU session on the first user plane network element, and an allowed VID list of ports corresponding to each PDU session on the second user plane network element; the union of the allowed VID lists of ports corresponding to each PDU session on the first user plane network element is used as the allowed VID list of the first user plane network element; the union of the allowed VID lists of ports corresponding to each PDU session on the second user plane network element is used as the allowed VID list of the second user plane network element.

[0075] In one possible design, the third routing information is used for the first user plane network element to process the third message, including a combination of one or more of the following: the third routing information is used to instruct the first user plane network element to discard the third message if the allowed VID list of the first user plane network element does not include the VID carried by the third message; the third routing information is used to instruct the first user plane network element to accept the third message if the allowed VID list of the first user plane network element includes the VID carried by the third message.

[0076] In one possible design, the fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: the fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; the fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

[0077] In one possible design, the processing unit is further used to generate fifth routing information according to the allowed VID list of the first user plane network element, and the fifth routing information is used by the second user plane network element to process a fifth message, and the fifth message is a message to be sent by the second user plane network element to the first user plane network element; the session management network element generates sixth routing information according to the allowed VID list of the second user plane network element, and the sixth routing information is used by the second user plane network element to process a sixth message, and the sixth message is a message received by the second user plane network element from the first user plane network element. The communication unit is also used to send the fifth routing information and the sixth routing information to the second user plane network element.

[0078] In one possible design, the fifth routing information is used for the second user plane network element to process the fifth message, including a combination of one or more of the following: the fifth routing information is used to instruct the second user plane network element to discard the fifth message if the allowed VID list of the first user plane network element does not include the VID carried by the fifth message; or, the fifth routing information is used to instruct the second user plane network element to send the fifth message if the allowed VID list of the first user plane network element includes the VID carried by the fifth message.

[0079] In one possible design, the sixth routing information is used for the second user plane network element to process the sixth message, including a combination of one or more of the following: the sixth routing information is used to instruct the second user plane network element to discard the sixth message if the allowed VID list of the second user plane network element does not include the VID carried by the sixth message; or, the sixth routing information is used to instruct the second user plane network element to accept the sixth message if the allowed VID list of the second user plane network element includes the VID carried by the sixth message.

[0080] In one possible design, the processing unit is further used to obtain VLAN information of a fourth port, which is a port used by the first user plane network element to connect to a data network; generate seventh routing information and eighth routing information according to the VLAN information of the fourth port, the seventh routing information is used by the first user plane network element to process a seventh message, which is a message received by the first user plane network element through the fourth port, and the eighth routing information is used by the first user plane network element to process an eighth message, which is a message to be sent by the first user plane network element through the fourth port. The communication unit is further used to send the seventh routing information and the eighth routing information to the first user plane network element.

[0081] In a fourth aspect, a communication device is provided, comprising a processing unit and a communication unit. The communication unit is further used to receive first routing information and second routing information sent by a session management network element, the first user plane network element provides services for a first terminal, the first routing information and the second routing information are generated according to the VLAN information of the first port, the first routing information is used for the first user plane network element to process a first message, the first message is an uplink message of the first terminal received by the first user plane network element from the first port, the second routing information is used for the first user plane network element to process a second message, the second message is a downlink message to be sent by the first user plane network element to the first terminal through the first port, and the first port is a port on the first user plane network element corresponding to the PDU session established with the first terminal. The processing unit is also used to save the first routing information and the second routing information.

[0082] In one possible design, the VLAN information of the first port includes a combination of one or more of the following: a default VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

[0083] In one possible design, the first routing information includes a default VID of the first port and an allowed VID list of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the first message carries the VID and the allowed VID list of the first port includes the VID carried by the first message; or, the first routing information is used to instruct the first user plane network element to discard the first message when the first message carries the VID and the allowed VID list of the first port does not include the VID carried by the first message.

[0084] In one possible design, the first routing information includes the default VID of the first port; the first routing information is used for the first user plane network element to process the first message, and includes a combination of one or more of the following: the first routing information is used to instruct the first user plane network element to add the default VID of the first port to the first message when the first message does not carry the VID; or, the first routing information is used to instruct the first user plane network element to accept the first message when the first message carries the VID and the VID carried by the first message is the same as the default VID of the first port; or, the first routing information is used to instruct the first user plane network element to discard the first message when the first message carries the VID and the VID carried by the first message is different from the default VID of the first port.

[0085] In one possible design, the second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the second message carries the VID and the allowed VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to send the second message through the first port when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port does not include the VID carried by the second message; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port includes the VID carried by the second message, and send the second message after the VID is stripped through the first port.

[0086] In one possible design, the second routing information includes the default VID of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or, the second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

[0087] In one possible design, the second routing information includes the default VID of the first port and the allowed VID list of the first port; the second routing information is used for the first user plane network element to process the second message, and includes a combination of one or more of the following: the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is not included in the allowed VID list of the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is different from the default VID of the first port, to send the second message through the first port; or, the second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and the VID carried by the second message is the same as the default VID of the first port, to strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

[0088] In one possible design, the communication unit is further used to receive third routing information and fourth routing information sent by the session management network element, the third routing information is generated according to the allowed VID list of the first user plane network element, and the fourth routing information is generated according to the allowed VID list of the second user plane network element. The third routing information is used by the first user plane network element to process a third message, which is a message received by the first user plane network element from the second user plane network element; the fourth routing information is used by the first user plane network element to process a fourth message, which is a message to be sent by the first user plane network element to the second user plane network element. The processing unit is also used to store the third routing information and the fourth routing information.

[0089] In one possible design, the third routing information is used for the first user plane network element to process the third message, including a combination of one or more of the following: the third routing information is used to instruct the first user plane network element to discard the third message when the allowed VID list of the first user plane network element does not include the VID carried by the third message; or, the third routing information is used to instruct the first user plane network element to accept the third message when the allowed VID list of the first user plane network element includes the VID carried by the third message.

[0090] In one possible design, the fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: the fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; or, the fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

[0091] In one possible design, the communication unit is further used to receive the seventh routing information and the eighth routing information sent by the session management network element, the seventh routing information and the eighth routing information are generated according to the VLAN information of the fourth port, the fourth port is the port used by the first user plane network element to connect to the data network, the seventh routing information is used by the first user plane network element to process the seventh message, the seventh message is the message received by the first user plane network element through the fourth port, the eighth routing information is used by the first user plane network element to process the eighth message, the eighth message is the message to be sent out by the first user plane network element through the fourth port. The processing unit is also used to save the seventh routing information and the eighth routing information.

[0092] In a fifth aspect, a communication device is provided, comprising a processor and a communication port, wherein the processor is configured to execute computer program instructions so that the communication device implements a routing configuration method involved in any one of the designs provided in the first aspect or the second aspect.

[0093] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer implements the routing configuration method involved in any one of the designs provided in the first aspect or the second aspect.

[0094] In a seventh aspect, a computer program product is provided, which includes instructions. When the computer program product is run on a computer, the computer implements the routing configuration method involved in any one of the designs provided in the first aspect or the second aspect.

[0095] In an eighth aspect, a chip is provided, comprising a processor, wherein when the processor executes computer program instructions, the computer implements the routing configuration method involved in any one of the designs provided in the first aspect or the second aspect.

[0096] In a ninth aspect, a communication system is provided, comprising a session management network element and a first user plane network element. The session management network element is used to execute the routing configuration method involved in any one of the designs provided in the first aspect. The first user plane network element is used to execute the routing configuration method involved in any one of the designs provided in the second aspect.

[0097] Among them, the technical effects brought about by any design method in the third aspect to the ninth aspect can refer to the beneficial effects in the corresponding method provided above and the technical effects brought about by the design method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] Figure 1 A schematic diagram of the system architecture of 5GLAN;

[0099] Figure 2 A schematic diagram of the architecture of a 5G network provided in an embodiment of the present application;

[0100] Figure 3 A schematic diagram of a process for a terminal to establish a session to access a 5GVN service;

[0101] Figure 4 A flowchart of UPF performing local switching transmission in the prior art;

[0102] Figure 5 It is a flow chart of cross-UPF transmission in the prior art;

[0103] Figure 6 This is a schematic diagram of the scenario where 5G LAN communicates with external LAN;

[0104] Figure 7 A flowchart of a routing configuration method provided in an embodiment of the present application;

[0105] Figure 8 A flowchart of another routing configuration method provided in an embodiment of the present application;

[0106] Fig. 9 A flowchart of another routing configuration method provided in an embodiment of the present application;

[0107] Fig.10 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0108] Fig.11 A schematic diagram of the structure of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0109] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0110] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0111] In order to facilitate understanding of the technical solution of the present application, the technical terms involved in the present application are briefly introduced below.

[0112] 1. Protocol Data Unit (PDU) Session

[0113] The 5G core network supports the PDU connection service, which is a service for exchanging PDU data packets between the terminal and the data network (DN). The PDU connection service is implemented by the terminal initiating the establishment of a PDU session. When the terminal establishes a PDU session, it establishes a data transmission channel between the terminal and the DN.

[0114] It should be noted that the terminal can initiate one or more PDU sessions to connect to the same DN or different DNs. The terminal can be served by a group of core network elements (such as session management function (SMF) network elements, policy control function (PCF) network elements and user plane function (UPF) network elements, etc.), which coordinate and manage the PDU session resources of the terminal.

[0115] 2. N4 Conversation

[0116] The N4 session is created by SMF on UPF for the purpose of managing the functions of UPF that provide services for PDU sessions. For example, when a terminal establishes a PDU session, SMF can instruct UPF to create an N4 session corresponding to the PDU session. When SMF receives a request to delete a PDU session, SMF triggers UPF to delete the N4 session corresponding to the PDU session. In some cases, SMF can also trigger UPF to modify the N4 session corresponding to the PDU session.

[0117] In an embodiment of the present application, N4 sessions can be divided into user-level (or terminal-level) N4 sessions and group-level N4 sessions.

[0118] In the process of creating an N4 session, both SMF and UPF will generate an N4 session context to store parameters related to the N4 session. The N4 session context may include: N4 session ID, N4 routing rules for the N4 session, including: packet detection rule (PDR), forwarding action rule (FAR), quality of services (QoS) enforcement rule (QER) and usage reporting rule (URR).

[0119] UPF detects and forwards the messages of the PDU session by using the PDR, FAR, QER, URR and other parameters in the N4 session context.

[0120] Exemplarily, after receiving a message from the ingress, the UPF uses the PDR to determine the N4 session to which the message belongs. Then, the UPF uses the PDR (which may be one or more) in the N4 session context to match the characteristic information of the message to find the PDR that matches the message. The PDR associates or specifies the FAR, QER, and URR corresponding to the message. Thus, the UPF can perform operations such as dropping, forwarding, buffering, reporting to the control plane, or duplicating the message based on the FAR. The UPF can perform QoS operations on the message based on the QER. The UPF can report statistical information on the message based on the URR.

[0121] 3. Tunnels

[0122] In the embodiments of the present application, tunnels can be divided into the following two types: (1) Tunnel between access network equipment and UPF. The tunnel between access network equipment and UPF can have other names, such as next generation network (next generation, N) 3 interface (abbreviated as N3) tunnel. (2) Tunnel between two UPFs. The tunnel between two UPFs can have other names, such as N19 tunnel.

[0123] It should be noted that the tunnel may be a tunnel at a session granularity, a tunnel at a device granularity, or a tunnel at a group granularity.

[0124] The session-granular tunnel refers to a tunnel used only for one PDU session. The session-granular tunnel is only used to transmit data packets of the corresponding PDU session.

[0125] A device-granular tunnel refers to a tunnel established between two devices (eg, a RAN node and a UPF), and the tunnel is used to transmit data of all terminals served by the two devices.

[0126] A tunnel with group granularity refers to a tunnel used by all terminals in a group. A tunnel with group granularity is only used to transmit data packets of terminals in the corresponding group.

[0127] 4. Ethernet frame

[0128] Ethernet frames are data packets transmitted on Ethernet links. Ethernet frames can be divided into tagged frames and untagged frames. Tagged frames carry a 4-byte VLAN tag. Untagged frames do not carry a VLAN tag.

[0129] A VLAN tag generally includes a 2-byte tag protocol identifier (TPID) and a 2-byte tag control information (TCI).

[0130] TPID is a type defined by IEEE and is used to indicate that a frame carrying TPID is a tagged frame.

[0131] The TCI includes the following parameters: priority, canonical format indicator (CFI), and VLAN Identified (VID).

[0132] In the embodiment of the present application, processing the VID of the Ethernet frame can be replaced by processing the VLAN tag of the Ethernet frame. For example, adding a VID to the Ethernet frame can be replaced by adding a VLAN tag to the Ethernet frame. For another example, stripping the VID carried by the Ethernet frame can be replaced by stripping the VLAN tag carried by the Ethernet frame.

[0133] In the embodiment of the present application, the Ethernet frame can be replaced by a message or a data packet.

[0134] 5. Fixed network port

[0135] In order to adapt to different connection modes and networking modes, fixed networks have introduced access ports, trunk ports, and hybrid ports.

[0136] Among them, access ports are generally used to connect user terminals that cannot identify tags, such as user hosts, servers, etc. Access ports can only belong to one VLAN. Access ports are configured with a default VID.

[0137] Trunk ports are generally used to connect devices that can identify tags, such as switches, routers, access points (APs), and voice terminals that can send and receive tagged and untagged frames. Trunk ports can belong to multiple VLANs. A default VID and tag list is configured for the trunk port.

[0138] A hybrid port can be used to connect to user terminals that cannot identify tags, or to connect to devices that can identify tags. A hybrid port can belong to multiple VLANs. A default VID, tag list, and untagged list are configured for the hybrid port.

[0139] Exemplarily, the above three ports process messages in a manner as shown in Table 1.

[0140] Table 1

[0141]

[0142]

[0143] 6. QinQ Technology

[0144] Only 12 bits are used to represent the VID in the VLAN tag defined in IEEE802.1Q, so the device can support up to 4094 VLANs. In practical applications, especially in metropolitan area networks, a large number of VLANs are needed to isolate users, and 4094 VLANs cannot meet the demand. In order to expand the number space of VLANs, the industry has proposed QinQ technology. QinQ technology adds another layer of 802.1Q tag on the basis of the original 802.1Q message. Messages using QinQ technology can be referred to as QinQ messages. QinQ messages can include double-layer VLAN tags. The inner VLAN tag is the customer tag (customer tag, C-tag), and the outer VLAN tag is the service provider tag (service provider tag, S-tag).

[0145] In the embodiment of the present application, the default VID may have other names, such as default VID, port default VID (portdefault VLAN ID, PVID), which is not limited here.

[0146] The above is an introduction to the terms involved in the embodiments of the present application, which are explained uniformly here and will not be repeated below.

[0147] For 5GLAN services, the 3rd Generation Partnership Project (3GPP) Technical Rule (TR) 23.734 proposes to support one-to-one and one-to-many communications of 5GLAN. Specifically, to support one-to-one and one-to-many communications of 5GLAN, the 3GPP network is required to support group-based unicast, multicast and broadcast, support the replication and distribution of multicast and broadcast messages, and support any terminal as a multicast source.

[0148] To meet this requirement, the current 3GPP technical standard (TS) 23.501 defines that a 5G LAN is managed by a SMF. Figure 1 As shown, the SMF manages one or more UPFs simultaneously. Figure 1 In the figure, SMF manages UPF1 and UPF2 as an example. UPF1 and UPF2 maintain routing rules. UPF1 and UPF2 can forward messages according to their own routing rules. Assume that terminal 1, terminal 2, and terminal 3 belong to the same group. When two terminals (for example, Figure 1 When there is one-to-one communication between two terminals (e.g., Terminal 1 and Terminal 2 in the example), data is transmitted through the UPF local switch. Figure 1If there is one-to-one communication between terminal 1 and terminal 3), data needs to be transmitted through the tunnel between UPF1 and UPF2.

[0149] In an embodiment of the present application, two UPFs can establish a tunnel by exchanging tunnel information through SMF. The tunnel (or forwarding path) corresponding to the tunnel information of the UPF network element can be constructed using a virtual local area network (VLAN), a virtual extensible LAN (VxLAN), a general packet radio service (GPRS) tunneling protocol-user plane (GTP-U), a generic routing encapsulation protocol (GRE) or an IP tunnel. The above construction method can be dynamic or pre-configured in the network, and the embodiment of the present application does not specifically limit this.

[0150] Among them, the corresponding tunnel information is not the same when different construction methods are adopted. For example, when the VLAN method is adopted for construction, the tunnel information can be UPF ID, UPF ID + virtual local area network identifier (VLAN ID, VID) or media access control (media access control, MAC) + VID; or, for example, when the VxLAN method is adopted for construction, the tunnel information can be UPF ID, UPF ID + VID, IP address + VID, or IP address + port number (port) + VID; or, for example, when the GTP-U method is adopted for construction, the tunnel information can be UPF ID, UPF ID + tunnel endpoint identifier (tunnel endpoint identifier, TEID), IP address + TEID, or IP address + port + TEID; or, for example, when the GRE method is adopted for construction, the tunnel information can be UPF ID, UPF ID + key, IP address + key, or IP address + port + key; or, when the IP tunnel method is adopted for construction, the tunnel information can be UPF ID, IP address, or IP address + port. Among them, if there is UPFID in the tunnel information, the UPF ID can be a MAC address or an IP address, or an IP address + port, or the SMF network element or the UPF network element can determine the corresponding MAC address or IP address, or IP address + port according to the UPF ID. This is explained here uniformly and will not be repeated below.

[0151] In the embodiment of the present application, a 5GLAN can provide group communication services for a group, that is, a 5GLAN can correspond to a group. An SMF or UPF can also provide communication services for multiple groups.

[0152] Optionally, in terms of expression, 5GLAN can also be called 5G virtual network (5GVN), local area network (LAN), 5G LAN-VN LAN group, LAN-type service (typeservice), LAN-VN, or 5G LAN-type service (type service), etc. The embodiment of the present application does not specifically limit the name of 5GLAN.

[0153] exist Figure 1 In the architecture shown, SMF is mainly responsible for all control plane functions of terminal session management, including UPF selection and control, IP address allocation and management, session quality of service (QoS) management, and obtaining policy and charging control (PCC) policy from PCF.

[0154] exist Figure 1 In the architecture shown, UPF serves as the anchor point for the PDU session connection and is responsible for terminal data packet filtering, data transmission / forwarding, rate control, generation of billing information, user plane QoS processing, uplink transmission authentication, transmission level verification, downlink data packet caching, and downlink data notification triggering.

[0155] exist Figure 1In the architecture shown, the radio access network (RAN) refers to the RAN node, and the RAN node can also be called an access network device. For example, it can be a transmission reception point (TRP), a base station, various forms of control nodes (for example, a network controller, a wireless controller (for example, a wireless controller in a cloud radio access network (CRAN) scenario)), etc. Specifically, the RAN node can be various forms of macro base stations, micro base stations (also called small stations), relay stations, access points (APs), etc., and can also be antenna panels of base stations. The control node can connect to multiple base stations and configure resources for multiple terminals covered by the multiple base stations. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in a long term evolution (LTE) system, it can be called an evolved NodeB (eNB or eNodeB), and in a 5G system or NR system, it can be called a next generation node base station (gNB). This application does not limit the specific name of the base station. The RAN node may also be a network device in a future evolved public land mobile network (PLMN).

[0156] exist Figure 1In the architecture shown, a terminal is an entity on the user side for receiving and / or sending signals. The terminal is used to provide one or more of voice services and data connectivity services to users. The terminal may also be referred to as user equipment (UE), terminal equipment, access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. The terminal may be a vehicle to everything (V2X) device, such as a smart car (smart car or intelligent car), a digital car (digital car), an unmanned car (unmanned car or driverless car or pilotless car or automobile), an automatic car (self-driving car or autonomous car), a pure electric vehicle (pure EV or Battery EV), a hybrid electric vehicle (hybrid electric vehicle, HEV), a range extended EV (range extended EV, REEV), a plug-in hybrid electric vehicle (plug-in HEV, PHEV), a new energy vehicle (new energy vehicle), and a roadside unit (road site unit, RSU). The terminal may also be a device to device (D2D) device, such as an electric meter, a water meter, etc. The terminal may also be a mobile station (MS), a subscriber unit, a drone, an Internet of Things (IoT) device, a station (ST) in a WLAN, a cellular phone, a smart phone, a cordless phone, a wireless data card, a tablet computer, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA) device, a laptop computer, a machine type communication (MTC) terminal, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device (also referred to as a wearable smart device).The terminal may also be a terminal in a next generation communication system, for example, a terminal in a 5G system or a terminal in a future evolved PLMN, a terminal in a NR system, etc.

[0157] Optional, such as Figure 2 As shown, the current 5G network may also include the following network elements: access and mobility management function (core access and mobility management function, AMF) network element, authentication server function (authentication server function, AUSF) network element, network slice selection function (network slice selection function, NSSF) network element, network exposure function (network exposure function, NEF) network element, network function storage function (network exposure function Repository Function, NRF) network element, policy control function (policy control function, PCF) network element, unified data management (unified data management, UDM) network element and application function (application function, AF) network element, etc., and the embodiments of the present application do not make specific limitations on this.

[0158] Among them, the terminal communicates with the AMF network element through the next generation network (Next generation, N) 1 interface (referred to as N1), the RAN equipment communicates with the AMF network element through the N2 interface (referred to as N2), the RAN equipment communicates with the UPF network element through the N3 interface (referred to as N3), and the UPF network element communicates with the DN through the N6 interface (referred to as N6).

[0159] AMF network elements, SMF network elements, UDM network elements, AUSF network elements, or PCF network elements and other control plane network elements can also use service-oriented interfaces to interact. Figure 2 As shown, the service-oriented interface provided by AMF to the outside may be Namf; the service-oriented interface provided by SMF network element to the outside may be Nsmf; the service-oriented interface provided by UDM network element to the outside may be Nudm; the service-oriented interface provided by PCF network element to the outside may be Npcf, and the service-oriented interface provided by AUSF network element to the outside may be Nausf; they will not be described one by one here.

[0160] like Figure 3 As shown, the process of establishing a PDU session for a terminal to access a 5G LAN service includes the following steps:

[0161] S11. The terminal sends a session establishment request message to AMF, so that AMF receives the session establishment request message sent by the terminal.

[0162] The session establishment request message is used to request the establishment of a PDU session. The session establishment request includes the terminal identifier () and the group identifier.

[0163] In an embodiment of the present application, the identifier of the terminal in the session request establishment request message may include one or more of the following: subscription permanent identifier (SUPI), generic public subscription identifier (GPSI), international mobile subscriber identification number (IMSI), mobile station integrated services digital network number (MSISDN), global unique temporary identifier (GUTI), data network-related identity (for example, network access identifier (NAI), local area network-specific user identifier, fourth version of the Internet Protocol (internet protocol version 4, IPv4) address, sixth version of the Internet Protocol (internet protocol version 6, IPv6) address, MAC address, or MAC address + VID, etc.

[0164] In an embodiment of the present application, the group identifier is used to determine the corresponding 5GLAN group. The group identifier may be, for example, a data network name (DNN), a group identifier (Group ID), a DNN+single network slice selection assistance information (S-NSSAI) identifier, etc.

[0165] S12. AMF sends a session establishment request message to SMF, so that SMF receives the session establishment request message sent by AMF.

[0166] S13. SMF determines the UPF that provides services for the terminal and establishes an N4 session on the UPF.

[0167] In this way, the N4 session established by the UPF stores the corresponding N4 routing rules, so that the UPF can forward the group's messages according to the N4 routing rules.

[0168] like Figure 4 As shown in the figure, it is a process of transmitting a message sent from UE1 to UE2 in the same group in the prior art in a local switch manner. The process specifically includes the following steps:

[0169] 1. UPF receives the data packet sent by UE1 to UE2 through the uplink tunnel of the session corresponding to UE1.

[0170] 2. UPF finds the PDR that matches the data packet in the N4 session corresponding to UE1. The destination interface parameter of the FAR associated with the PDR that UPF matches for the first time is set to the value of the internal interface (for example, "5GLAN internal"), and the network instance is set to the identifier of the group to which UE1 belongs.

[0171] 3. UPF sends the data packet after removing the external GTP-U header to the internal interface according to the FAR associated with the first matched PDR.

[0172] 4. UPF matches the corresponding PDR based on the destination address of the data packet (that is, the address of UE2) and the source interface of "5GLAN internal", and identifies the N4 session corresponding to UE2. The destination interface parameter of the FAR associated with the PDR matched by UPF for the second time is set to the tunnel information of the access network device to which UE2 is connected.

[0173] 5. The UPF adds an external header to the data packet according to the FAR associated with the PDR matched for the second time, and sends the data packet to the RAN accessed by UE2 through the corresponding downlink tunnel, and the RAN sends it to UE2.

[0174] like Figure 5 As shown in FIG. 1 , a process of transmitting a message sent from UE1 to UE3 in a group across UPFs in the prior art is shown. The process specifically includes the following steps:

[0175] 1. UPF1 receives the data packet sent by UE1 to UE2 through the uplink tunnel of the session corresponding to UE1.

[0176] 2. UPF1 finds the PDR that matches the data packet in the N4 session corresponding to UE1. The destination interface parameter of the FAR associated with the PDR that UPF1 matches for the first time is set to "5GLAN internal", and the network instance is set to the identifier of the group to which UE1 belongs.

[0177] 3. UPF1 sends the data packet after removing the outer header to the internal interface according to the FAR associated with the first matched PDR.

[0178] 4. UPF1 matches the corresponding PDR based on the destination address of the data packet (that is, the address of UE3) and the source interface of "5GLAN internal", and identifies the N4 session at the group granularity. The FAR destination interface parameter associated with the PDR matched by UPF1 for the second time is set to the N19 tunnel information of UPF2.

[0179] 5. UPF1 encapsulates the data packet with UPF2's N19 tunnel information according to the FAR associated with the PDR matched for the second time, and sends the data packet to UPF2.

[0180] 6. After receiving the data packet through the N19 tunnel, UPF2 matches the corresponding PDR according to the header and / or network instance carrying the N19 tunnel information, and identifies the N4 session at the group granularity. The destination interface parameter of the FAR associated with the PDR matched by UPF2 for the first time is set to "5GLAN internal", and the network instance is set to the identifier of the group to which UE3 belongs.

[0181] 7. UPF2 removes the outer header of the data packet according to the FAR associated with the first matched PDR and sends the data packet to the internal interface.

[0182] 8. UPF2 matches the corresponding PDR based on the destination address of the data packet (that is, the address of UE3) and the source interface of "5GLAN internal", and identifies the N4 session corresponding to UE3. The destination interface parameter of the FAR associated with the PDR matched by UPF2 for the second time is set to the tunnel information of the access network device to which UE3 is connected.

[0183] 9. UPF2 adds an external header to the data packet according to the FAR associated with the PDR matched for the second time, and sends the data packet to the RAN accessed by UE3 through the corresponding downlink tunnel, and the RAN sends it to UE3.

[0184] 5GLAN can support one or more VLANs. Accordingly, members of a 5GLAN group can be terminals in one or more VLANs. After a terminal accesses 5GLAN by establishing a PDU session, the PDU session between the terminal and UPF can be regarded as a link between switches, so that 5GLAN can communicate with the VLAN to which the terminal belongs. Ethernet packets of the VLAN to which the terminal belongs can be transmitted in 5GLAN.

[0185] However, different terminals in 5GLAN have different VLAN capabilities (for example, some terminals can only support untagged frames, while some terminals can support tagged frames), and different terminals have different networking modes. Currently, the user-side network elements in 5GLAN do not process Ethernet messages according to the VLAN capabilities and networking modes of the terminal side, but directly forward Ethernet messages, which affects the communication of the external LAN.

[0186] Combination Figure 6 Let's take an example. Figure 6 In the example, UPF1 is connected to UE1 and UE2 in the data network. UE1 belongs to VLAN200 and UE2 belongs to VLAN100. UPF2 also provides services for UE3 and UE4 in the 5GLAN group. UE3 belongs to VLAN300 and UE4 belongs to VLAN100. UPF1 provides services for UE5, UE6 and UE7 in the 5GLAN group. UE6 belongs to VLAN100. UE7 is also connected to UE8, UE9 and UE10. UE8 belongs to VLAN100, UE9 belongs to VLAN200 and UE10 belongs to VLAN300.

[0187] Assume that UE7 has the ability to read messages carrying VLAN tags, while UE4 and UE3 do not have the ability to read messages carrying VLAN tags. UE7 sends a message carrying a VLAN tag, and the destination MAC address of the message carrying the VLAN100 tag is the MAC address of UE4. Based on the existing process, after receiving the message carrying the VLAN100 tag, UPF2 sends the message carrying the VLAN100 tag to UPF1. UPF2 then sends the message carrying the VLAN100 tag to UE4. Since UE4 does not have the ability to read messages carrying the VLAN100 tag, UE4 will discard the message carrying the VLAN100 tag, which affects the communication of VLAN100.

[0188] For another example, UE3 belongs to VLAN300, and UE3 sends a message to UPF1, and the destination MAC address of the message is the MAC address or broadcast address of UE4. Based on the existing process, after receiving the message, UPF1 forwards it to UE4 according to the destination address, causing UE4 belonging to VLAN100 to receive the message incorrectly, thereby affecting the communication of VLAN100 or VLAN300.

[0189] Therefore, how to make the network elements in 5GLAN adapt to the VLAN capabilities and networking methods on the terminal side so that the network elements in 5GLAN can normally transmit the Ethernet messages of the terminal is a technical problem that needs to be solved urgently.

[0190] In order to solve this technical problem, the present application embodiment provides a routing configuration method. Figure 7 As shown, the method comprises the following steps:

[0191] S101. A session management network element obtains VLAN information of a first port.

[0192] The first port is a port on the first user plane network element corresponding to the PDU session established with the first terminal. The first user plane network element is a user plane network element that provides 5GLAN services for the first terminal.

[0193] Optionally, the first port may be a virtual port, such as an N3 port. The session management network element or the first user plane network element may configure the port information of the first port. It is understandable that, when the first user plane network element configures the port information of the first port, the session management network element may obtain the port information of the first port from the first user plane network element.

[0194] Exemplarily, the port information of the first port may include a combination of one or more of the following: an IP address, a port number, a MAC address, or a TEID.

[0195] In the embodiment of the present application, the port information of other ports may refer to the port information of the first port, which is uniformly described here and will not be repeated below.

[0196] In the embodiment of the present application, the session management network element may allocate the first user plane network element to the first terminal according to factors such as the location of the first terminal, the service scope of each user plane network element associated with the session management network element, and the service capability of each user plane network element managed by the session management network element. The specific implementation thereof may refer to the prior art and will not be described in detail here.

[0197] The VLAN information of the first port includes a combination of one or more of the following: a default VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

[0198] The default VID of the first port is used to mark a message received through the first port and not carrying a VID. Optionally, the default VID of the first port may be a VID corresponding to a VLAN to which the first terminal belongs.

[0199] The allowed VID list of the first port is used to record one or more VIDs. The VIDs recorded in the allowed VID list of the first port are the same as the VIDs carried by the messages allowed to pass through the first port.

[0200] The untagged VID list of the first port is used to record one or more VIDs. The VIDs recorded in the untagged VID list of the first port are the same as the VIDs stripped from the message to be sent out through the first port.

[0201] The allowed VID list may have other names, such as a tagged list, which is not limited in the embodiment of the present application.

[0202] The untagged VID list may have other names, such as an untagged list, which is not limited in the embodiment of the present application.

[0203] Optionally, the VLAN information of the first port may further include other parameters, such as interface mode, priority of each VID in the allowed VID list, priority of each VID in the untagged VID list, indication information and / or a first action indication.

[0204] The priority of the VID is used to determine the matching order of the VID in the allowed VID list or the untagged VID list. The higher the priority of the VID, the higher the matching order of the VID in the allowed VID list or the untagged VID list. For example, assume that the allowed VID list includes VID1, VID2, and VID3 in sequence, and the priority of VID2 is higher than that of VID1, and the priority of VID1 is higher than that of VID3. In this way, for the message received by the first port, it will first be determined whether the VID carried by the message matches VID2. In the case that the VID carried by the message does not match VID2, it is then determined whether the VID carried by the message matches VID1. Afterwards, in the case that the VID carried by the message does not match VID1, it is then determined whether the VID carried by the message matches VID3.

[0205] The interface mode includes: access type, trunk type or hybrid type. Optionally, the interface mode can have other names, such as interface type, port type, etc., which are not limited here.

[0206] In the embodiment of the present application, if the VLAN information of the first port includes an interface mode, the session management network element can determine the interface mode of the first port according to the interface mode included in the VLAN information of the first port. That is, the session management network element can determine whether the first port is an access port, a trunk port, or a hybrid port.

[0207] In an embodiment of the present application, if the VLAN information of the first port does not include an interface mode, the session management network element may determine the interface mode of the first port according to the type of VLAN parameters included in the VLAN information of the first port. For example, if the VLAN information of the first port includes the default VID of the first port, but does not include the allowed VID list and the untagged VID list of the first port, the session management network element determines that the first port is an access port. If the VLAN information of the first port includes the default VID and the allowed VID list of the first port, but does not include the untagged VID list of the first port, the session management network element determines that the first port is a trunk port. If the VLAN information of the first port includes the default VID of the first port, the allowed VID list of the first port, and the untagged VID list of the first port, the session management network element may determine that the first port is a hybrid port.

[0208] The indication information is used to indicate whether the first terminal supports VLAN. When the indication information is used to indicate that the first terminal supports VLAN, the message sent from the first port to the first terminal by the first user plane network element may carry or not carry a VLAN tag. When the indication information is used to indicate that the first terminal does not support VLAN, the message sent from the first port to the first terminal by the first user plane network element may not carry a VLAN tag.

[0209] Optionally, the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal. The operation indicated by the first action indication includes a combination of one or more of the following:

[0210] Operation 1-1: Do not process the VID carried in the uplink message;

[0211] Operation 1-2, adding a default VID of the first port to the uplink message;

[0212] Operation 1-3: not processing the VID carried by the downlink message;

[0213] Operation 1-4, stripping the default VID of the first port or the VID in the untagged VID list for the downlink message;

[0214] Operation 1-5: determining whether to allow transmission of the uplink message not according to the allowed VID list of the first port;

[0215] Operation 1-6: determining whether to allow transmission of the downlink message not according to the allowed VID list of the first port;

[0216] Operation 1-7, determining whether transmission of the uplink message is allowed according to the allowed VID list of the first port;

[0217] Operation 1-8, determining whether transmission of the downlink message is allowed according to the allowed VID list of the first port;

[0218] Operation 1-9: not adding the S-TAG to the uplink message;

[0219] Operation 1-10: not stripping the S-TAG from the downlink message;

[0220] Operation 1-11, adding the S-TAG to the uplink message;

[0221] Operation 1-12: strip the S-TAG from the downlink message.

[0222] The above operations 1-1 to 1-12 are merely examples, and the first action indication may also indicate other operations, which are not limited here.

[0223] Optionally, the first action instruction may include multiple instructions that do not conflict with each other in the above operations 1-1 to 1-12. For example, the first action instruction may include operations 1-2 and 1-7.

[0224] In the embodiment of the present application, the VLAN information of the first port may have other names, such as the VLAN information of the PDU session established by the first terminal, which is not specifically limited.

[0225] In the embodiment of the present application, the allowed VID list of the first port may have other names, such as the allowed VID list of the PDU session established by the first terminal, which is not specifically limited.

[0226] In the embodiment of the present application, the untagged VID list of the first port may have other names, such as the untagged VID list of the PDU session established by the first terminal, which is not specifically limited.

[0227] In the embodiment of the present application, the default VID of the first port may have other names, such as the default VID of the PDU session established by the first terminal, which is not specifically limited.

[0228] As a possible implementation, during the process of establishing a PDU session at the first terminal, the session management network element first obtains the VLAN information of the first terminal, and then determines the VLAN information of the first port according to the VLAN information of the first terminal.

[0229] Optionally, the VLAN information of the first terminal may include a combination of one or more of the following VLAN parameters: indication information, default VID, allowed VID list, untagged VID list, interface mode, first action indication, S-TAG, or VID priority.

[0230] Optionally, the session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal, including one or a combination of multiple of the following implementations:

[0231] Implementation method 1: when the VLAN information of the first terminal includes an allowed VID list, the session management network element may determine the allowed VID list included in the VLAN information of the first terminal as the allowed VID list of the first port.

[0232] For example, the allowed VID list included in the VLAN information of the first terminal includes VID1, VID2, and VID3, so the allowed VID list of the first port also includes VID1, VID2, and VID3.

[0233] Implementation method 2: when the VLAN information of the first terminal includes an untagged VID list, the session management network element may determine the untagged VID list included in the VLAN information of the first terminal as the untagged VID list of the first port.

[0234] For example, the untagged VID list included in the VLAN information of the first terminal includes VID2 and VID3, so the untagged VID list of the first port includes VID2 and VID3.

[0235] Implementation method 3: when the VLAN information of the first terminal includes the first action instruction, the session management network element may determine the first action instruction included in the VLAN information of the first terminal as the first action instruction included in the VLAN information of the first port.

[0236] Implementation method 4: when the VLAN information of the first terminal includes an S-TAG, the session management network element may determine the S-TAG included in the VLAN information of the first terminal as the S-TAG included in the VLAN information of the first port.

[0237] Implementation 5: When the VLAN information of the first terminal includes a default VID, the session management network element may determine the default VID included in the VLAN information of the first terminal as the default VID of the first port included in the VLAN information of the first port.

[0238] Implementation method 6: When the VLAN information of the first terminal does not include the interface mode and the default VID, and the VLAN information of the first terminal includes an allowed VID list, the session management network element can determine the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port.

[0239] Optionally, when the VLAN information of the first terminal includes an allowed VID list and the VLAN information of the first terminal does not include a default VID, the session management network element can determine a VID that meets preset conditions in the allowed VID list (or untagged VID list) included in the VLAN information of the first terminal as the default VID of the first port.

[0240] Optionally, the VID that meets the preset condition in the allowed VID list included in the VLAN information of the first terminal may be:

[0241] The first VID in the allowed VID list included in the VLAN information of the first terminal; or,

[0242] The last VID in the allowed VID list included in the VLAN information of the first terminal; or,

[0243] The VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or,

[0244] The VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

[0245] Implementation method 7: When the VLAN information of the first terminal does not include a default VID, and the VLAN information of the first terminal includes an allowed VID list and an interface mode, and the interface mode is an access type, the session management network element determines the only VID in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port.

[0246] Implementation method 8: When the VLAN information of the first terminal does not include a default VID, and the VLAN information of the first terminal includes an allowed VID list and an interface mode, and the interface mode is a trunk type or a hybrid type, the session management network element can determine the VID that meets the preset conditions in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port.

[0247] Implementation 9: When the VLAN information of the first terminal does not include the untagged VID list, the session management network element may use the default VID of the first port as the untagged VID list of the first port. That is, the untagged VID list of the first port only includes the default VID of the first port.

[0248] Optionally, the first terminal obtains the VLAN information of the first terminal, including at least one of the following implementations:

[0249] Method 1: The session management network element obtains the VLAN information of the first terminal from the first terminal.

[0250] Exemplarily, the session management network element receives a session establishment request message from the first terminal, where the session establishment request message includes VLAN information of the first terminal.

[0251] Method 2: The session management network element obtains the VLAN information of the first terminal from the data management network element.

[0252] Optionally, the data management network element may be a UDM in 5G.

[0253] Exemplarily, the session management network element obtains subscription data from the data management network element, and the subscription data includes VLAN information of the first terminal. It is understandable that the implementation method of the session management network element obtaining the subscription data can refer to the existing technology, which is not described here.

[0254] Method three: the session management network element obtains the VLAN information of the first terminal from the policy control function network element.

[0255] Optionally, the policy control function network element may be a PCF in 5G.

[0256] Exemplarily, the session management network element sends a policy control acquisition request to the policy control function network element, and the policy control acquisition request may include a session identifier, an identifier of the first terminal, and a policy index. Afterwards, the session management network element receives a policy control acquisition corresponding message sent by the policy control function network element, and the policy control acquisition corresponding message carries a policy and charging control (PCC) rule, and the PCC rule includes the VLAN information of the first terminal.

[0257] Optionally, the policy control function network element may directly obtain the VLAN information of the first terminal from the application function entity. Alternatively, the policy function network element may obtain the VLAN information of the first terminal from the application function entity through the open function network element. The above-mentioned application function entity may be an AF in 5G. The open function network element may be an NEF in 5G.

[0258] Method 4: The session management network element obtains the VLAN information of the first terminal from the authentication server.

[0259] Optionally, the authentication server may be an authentication, authorization, accounting (AAA) server corresponding to the data network.

[0260] Exemplarily, the session management network element sends an authorization request to the authentication server. Afterwards, the session management network element receives an authentication authorization response message sent by the authentication server. The authentication authorization response message includes VLAN information of the first terminal. Optionally, the authentication authorization response message may also include other information, such as a policy index.

[0261] In the embodiment of the present application, the session management network element may only adopt one of the above methods 1 to 4 to obtain the VLAN information of the first terminal. Alternatively, the session management network element may adopt multiple methods of the above methods 1 to 4 to obtain multiple VLAN information of the first terminal.

[0262] Optionally, when the session management network element obtains multiple VLAN information of the first terminal, if the multiple VLAN information include the same type of target VLAN parameters, the target VLAN parameter included in the VLAN information with the highest priority among the multiple VLAN information is used as the target VLAN parameter included in the VLAN information of the first port. If the first VLAN information among the multiple VLAN information includes the target VLAN parameter, and the other VLAN information except the first VLAN information among the multiple VLAN information does not include the target VLAN parameter, the target VLAN parameter in the first VLAN information is used as the target VLAN parameter included in the VLAN information of the first port. The target VLAN parameter may be any one of the VLAN parameters. The first VLAN information may be any one of the multiple VLAN information.

[0263] The priority of the VLAN information depends on the priority of the source of the VLAN information. Exemplarily, the priority of the source of the VLAN information is arranged in order from high to low: policy control function network element, authentication server, data management network element, first terminal. Correspondingly, the priority of the VLAN information is arranged in order from high to low: VLAN information obtained from the policy control function network element, VLAN information obtained from the authentication server, VLAN information obtained from the data management network element, and VLAN information obtained from the first terminal.

[0264] For example, it is assumed that the session management network element obtains VLAN information 1 of the first terminal from the authentication server, and VLAN information 1 includes default VID1 and allowed VID list 1. The session management network element obtains VLAN information 2 of the first terminal from the policy control function network element, and VLAN information 2 includes default VID2, allowed VID list 2, and untagged VID list 2. The session management network element obtains VLAN information 3 of the first terminal from the data management network element, and VLAN information 3 includes untagged VID list 3 and interface mode 3. The priority of VLAN information is arranged from high to low: VLAN information 2, VLAN information 1, VLAN information 3. Therefore, the session management network element can determine that the VLAN information of the first port includes: default VID2, allowed VID list 2, untagged VID list 2, and interface mode 3.

[0265] S102: The session management network element generates first routing information according to the VLAN information of the first port.

[0266] The first routing information is used by the first user plane network element to process the first message, and the first message is a message from the first terminal received by the first user plane network element from the first port. In other words, the first message is a message received by the first user plane network element from the first terminal.

[0267] Exemplarily, the source MAC address of the first message may be the MAC address of the first terminal, or the MAC address of other terminals under the first terminal.

[0268] In a possible design, the VLAN parameters included in the first routing information are independent of the interface mode of the first port. That is, no matter what type of port the first port is, the first routing information includes the default VID of the first port and the allowed VID list of the first port.

[0269] In some cases, for example, when the first port is an access port, the VLAN information of the first port may not include the allowed VID list of the first port. In this regard, the session management network element may determine the allowed VID list of the first port according to the default VID of the first port. In this case, the allowed VID list of the first port only includes the default VID of the first port.

[0270] Optionally, the first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following:

[0271] (1-1) The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID;

[0272] (1-2) The first routing information is used to instruct the first user plane network element to accept the first message when the allowed VID list of the first port includes the VID carried by the first message;

[0273] (1-3) The first routing information is used to instruct the first user plane network element to discard the first message when the allowed VID list of the first port does not include the VID carried by the first message.

[0274] In another possible design, the VLAN parameter included in the first routing information is related to the interface mode of the first port. Thus, the first routing information includes the following two situations:

[0275] Scenario 1: When the first port is an access port, the first routing information includes a default VID, and the first routing information does not include an allowed VID list of the first port. In this case, the first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following:

[0276] (1-1) The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID;

[0277] (1-4) The first routing information is used to instruct the first user plane network element to accept the first message when the VID carried by the first message is the same as the default VID of the first port;

[0278] (1-5) The first routing information is used to instruct the first user-plane network element to discard the first message when the VID carried in the first message is different from the default VID of the first port.

[0279] Scenario 2: When the first port is a trunk port or a hybrid port, the first routing information includes a default VID of the first port and a list of allowed VIDs of the first port. In this case, the first routing information is used by the first user plane network element to process the first message, including at least one of the above (1-1) to (1-3).

[0280] Optionally, when the VLAN information of the first port includes the first action indication, the session management network element may further determine the first routing information according to the first action indication.

[0281] For example, if the first action indication includes operation 1-1, the first routing information does not include a VLAN parameter. Thus, the first routing information is used to indicate that the first user plane network element accepts the first message.

[0282] For another example, if the first action indication includes operation 1-2, the first routing information at least includes the default VID of the first port. Therefore, the first routing information is used for the first user plane network element to process the first message, and at least includes the above (1-1).

[0283] For another example, if the first action indication includes operation 1-5, the first routing information does not include the allowed VID list of the first port. Therefore, the first routing information is used for the first user plane network element to process the first message, and does not include the above (1-2) and (1-3).

[0284] For another example, if the first action indication includes operation 1-7, the first routing information includes the allowed VID list of the first port. Thus, the first routing information is used for the first user plane network element to process the first message, including the above (1-2) and (1-3).

[0285] For another example, if the first action indication includes operation 1-9, the first routing information does not include S-TAG. Therefore, the first routing information is used by the first user plane network element to process the first message, and does not include (1-6) below.

[0286] For another example, if the first action indication includes operation 1-11, the first routing information includes S-TAG. Therefore, the first routing information is used for the first user plane network element to process the first message, including (1-6) below.

[0287] (1-6) The first routing information is used to instruct the first user plane network element to add an S-TAG to the first message.

[0288] In the embodiment of the present application, the first routing information may be represented by a first PDR or a first FAR.

[0289] Exemplarily, when the first routing information is represented by a first PDR, a packet detection information (PDI) information element (IE), an outer header removal IE or other extended IE in the first PDR may include the first routing information.

[0290] Exemplarily, when the first routing information is represented by the first FAR, the action IE, outer header creation IE, forwarding policy IE, container for header enrichment IE, or other extended IEs in the first FAR may include the first routing information.

[0291] The above extended IE may be named as VLAN processing indication IE, or other names, which are not limited. The extended IEs of other PDRs or FARs below may refer to the extended IEs in the first PDR or the first FAR, which are uniformly described here and will not be repeated below.

[0292] S103: The session management network element sends first routing information to the first user plane network element, so that the first user plane network element receives the first routing information sent by the session management network element.

[0293] S104. The first user plane network element saves the first routing information.

[0294] S105. The session management network element generates second routing information according to the VLAN information of the first port.

[0295] The second routing information is used by the first user plane network element to process the second message, which is the message to be sent by the first user plane network element to the first terminal through the first port. In other words, the second message is the message to be sent by the first user plane network element to the first terminal.

[0296] Exemplarily, the target MAC address of the first message may be the MAC address of the first terminal, or the MAC address of another terminal under the control of the first terminal.

[0297] In a possible design, the VLAN parameters included in the second routing information are independent of the interface mode of the first port. That is, no matter what type of port the first port is, the second routing information includes the allowed VID list of the first port and the untagged VID list of the first port.

[0298] It is understandable that when the first port is an access port, the allowed VID list and the untagged VID list of the first port both include only the default VID of the first port. When the first port is a trunk port, the untagged VID list of the first port includes only the default VID of the first port.

[0299] Optionally, the second routing information is used by the first user plane network element to process the second message, and includes a combination of one or more of the following:

[0300] (2-1) the second routing information is used to instruct the first user plane network element to discard the second message if the allowed VID list of the first port does not include the VID carried by the second message;

[0301] (2-2) the second routing information is used to instruct the first user plane network element to send the second message when the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port does not include the VID carried by the second message;

[0302] (2-3) The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped, if the allowed VID list of the first port includes the VID carried by the second message and the untagged VID list of the first port includes the VID carried by the second message.

[0303] In another possible design, the VLAN parameter included in the second routing information is related to the interface mode of the first port. Thus, the second routing information includes the following three situations:

[0304] Scenario 1: When the first port is an access port, the second routing information includes the default VID of the first port, but does not include the allowed VID list and the untagged VID list of the first port. In this case, the second routing information is used by the first user plane network element to process the second message, and includes a combination of one or more of the following:

[0305] (2-4) the second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port;

[0306] (2-5) The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message with the VID stripped when the VID carried by the second message is the same as the default VID of the first port.

[0307] Scenario 2: When the first port is a trunk port, the second routing information includes the default VID of the first port and the allowed VID list of the first port, but does not include the untagged VID list of the first port. In this case, the second routing information is used by the first user plane network element to process the second message, and includes a combination of one or more of the following:

[0308] (2-1) the second routing information is used to instruct the first user plane network element to discard the second message if the allowed VID list of the first port does not include the VID carried by the second message;

[0309] (2-6) The second routing information is used to instruct the first user plane network element to send the second message when the allowed VID list of the first port includes the VID carried by the second message and the VID carried by the second message is different from the default VID of the first port;

[0310] (2-7) The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message after the VID is stripped, if the allowed VID list of the first port includes the VID carried by the second message and the VID carried by the second message is the same as the default VID of the first port.

[0311] Scenario 3: When the first port is a hybrid port, the second routing information includes the allowed VID list of the first port and the untagged VID list of the first port. In this case, the second routing information is used by the first user plane network element to process the second message, including at least one of the above (2-1) to (2-3).

[0312] Optionally, when the VLAN information of the first port includes the first action indication, the session management network element may further determine the second routing information according to the first action indication.

[0313] For example, if the first action indication includes operation 1-2, the second routing information does not include a VLAN parameter. Thus, the second routing information is used to instruct the first user plane network element to send the second message.

[0314] For another example, if the first action indication includes operation 1-4, the second routing information includes the default VID or untagged VID list of the first port. Thus, the second routing information is used for the first user plane network element to process the second message, and at least includes (2-3), (2-5) or (2-7).

[0315] For another example, if the first action indication includes operation 1-6, the second routing information does not include the allowed VID list of the first port. Therefore, the second routing information is used for the first user plane network element to process the second message, and does not include (2-2), (2-3), (2-6) and (2-7).

[0316] For another example, if the first action indication includes operation 1-8, the second routing information includes the allowed VID list of the first port. Thus, the second routing information is used for the first user plane network element to process the second message, and at least includes: (2-2) and (2-3). Alternatively, the second routing information is used for the first user plane network element to process the second message, and at least includes: (2-6) and (2-7).

[0317] For another example, if the first action indication includes operation 1-10, the second routing information does not include S-TAG. Therefore, the second routing information is used by the first user plane network element to process the second message, and does not include (2-8) below.

[0318] For another example, if the first action indication includes operation 1-12, the second routing information includes S-TAG. Therefore, the second routing information is used for the first user plane network element to process the second message, including (2-8) below.

[0319] (2-8) The second routing information is used to instruct the first user plane network element to strip the S-TAG for the second message.

[0320] In the embodiment of the present application, the second routing information may be represented by a second PDR or a second FAR.

[0321] Exemplarily, when the second routing information is represented by the second PDR, the packet detection information, the external header removal IE or other extended IE in the second PDR may include the second routing information.

[0322] Exemplarily, when the second routing information is represented by the second FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the second FAR may include the first routing information.

[0323] It can be understood that the VLAN parameters included in the IE in the second PDR or the second FAR are the VLAN parameters included in the second routing information.

[0324] S106. The session management network element sends second routing information to the first user plane network element, so that the first user plane network element receives the second routing information sent by the session management network element.

[0325] S107. The first user plane network element saves the second routing information.

[0326] The embodiment of the present application does not limit the execution order of steps S102-S104 and steps S105-S107. For example, steps S102-S104 may be executed first, and then steps S105-S107; or steps S105-S107 may be executed first, and then steps S102-S104; or steps S102-S104 and steps S105-S107 may be executed simultaneously.

[0327] When steps S105 and S107 are performed simultaneously, the first routing information and the second routing information may be carried in different signalings; or, the first routing information and the second routing information may be carried in the same signaling, such as an N4 session creation request message, etc. The N4 session creation request message is used to create an N4 session corresponding to the PDU session established by the first terminal.

[0328] based on Figure 7In the technical solution shown, in the scenario where 5GLAN is interconnected with an external LAN, the VLAN information of the first port can reflect the networking mode and VLAN configuration of the network where the first terminal is located. Since the first routing information and the second routing information are generated according to the VLAN information of the first port, the first user plane network element can process the first message according to the first routing information and the second message according to the second routing information, so that the processing method of the first user plane network element for the message can adapt to the networking mode and VLAN configuration of the network where the first terminal is located, ensuring the normal communication of the external LAN.

[0329] Figure 7 The technical solution shown can be applied to the process of establishing a PDU session by the first terminal. For the session management network element, the process of establishing a PDU session by the first terminal refers to the period after the session management network element receives the PDU session establishment request message from the first terminal and before the session management network element sends the PDU session establishment response message.

[0330] In some scenarios, since the first terminal may not be the first terminal in the 5GLAN group to establish a PDU session to access the 5GLAN service, there may be other user plane network elements in the 5GLAN in addition to the first user plane network element. Other user plane network elements can provide services for other terminals in the 5GLAN group. For ease of description, the user plane network elements other than the first user plane network element in the 5GLAN are referred to as second user plane network elements below.

[0331] In one possible design, when there is a second user plane network element in the 5GLAN, a first tunnel can be established between the first user plane network element and the second user plane network element, and the first tunnel can be configured to transparently transmit all messages. In this case, the session management network element can configure the routing information related to the first tunnel on the first user plane network element and the second user plane network element according to the prior art.

[0332] In another possible design, when there is a second user plane network element in the 5GLAN, the session management network element can Figure 8 The routing configuration method shown is used to configure corresponding routing information on the first user plane network element and the second user plane network element.

[0333] like Figure 8 As shown, a routing configuration method provided in an embodiment of the present application includes the following steps:

[0334] S201. A session management network element obtains an allowed VID list of a first user plane network element and an allowed VID list of a second user plane network element.

[0335] As a possible implementation method, the session management network element obtains the allowed VID list of the port corresponding to each PDU session on the first user plane network element, and the allowed VID list of the port corresponding to each PDU session on the second user plane network element. Afterwards, the session management network element uses the union of the allowed VID lists of the ports corresponding to each PDU session on the first user plane network element as the allowed VID list of the first user plane network element. The session management network element uses the union of the allowed VID lists of the ports corresponding to each PDU session on the second user plane network element as the allowed VID list of the second user plane network element.

[0336] For example, UPF1 provides services for Terminal 1, Terminal 2, and Terminal 3. Accordingly, UPF1 has Port 1 corresponding to the PDU session established by Terminal 1, Port 2 corresponding to the PDU session established by Terminal 2, and Port 3 corresponding to the PDU session established by Terminal 3. The allowed VID list of Port 1 includes VID1, VID2, and VID3. The allowed VID list of Port 2 includes VID1, VID4, and VID5. The allowed VID list of Port 3 includes VID6. Therefore, the allowed VID list of UPF1 includes: VID1, VID2, VID3, VID4, VID5, and VID6.

[0337] It is worth noting that the session management network element obtains the allowed VID list of the port corresponding to the PDU session on the first user plane network element or the second user plane network element. The implementation method of obtaining the allowed VID list of the first port by the session management network element can be referred to, and will not be repeated here.

[0338] S202: The session management network element generates third routing information according to the allowed VID list of the first user plane network element.

[0339] The third routing information is used by the first user plane network element to process the third message. The third message is a message received by the first user plane network element from the second user plane network element. In other words, the third message is a message received by the first user plane network element from the second user plane network element through the second port.

[0340] The second port is a port of the first tunnel on the first user plane network element side. The first tunnel is a tunnel between the first user plane network element and the second user plane network element. Exemplarily, the first tunnel may be an N19 tunnel.

[0341] Optionally, the session management network element or the first user plane network element may configure the port information of the second port. In the case where the first user plane network element is responsible for configuring the port information of the second port, the session management network element may obtain the port information of the second port from the first user plane network element.

[0342] In the embodiment of the present application, the third routing information includes an allowed VID list of the first user plane network element.

[0343] Optionally, the third routing information is used by the first user plane network element to process the third message, and includes a combination of one or more of the following:

[0344] (3-1) the third routing information is used to instruct the first user plane network element to discard the third message if the allowed VID list of the first user plane network element does not include the VID carried by the third message;

[0345] (3-2) The third routing information is used to instruct the first user plane network element to accept the third message when the allowed VID list of the first user plane network element includes the VID carried by the third message.

[0346] Based on the third routing information, when the VID carried by the third message does not exist in the allowed VID list of the first user plane network element, the first user plane network element does not need to further process the third message, thereby helping to reduce the pressure on the first user plane network element to process Ethernet messages.

[0347] In the embodiment of the present application, the third routing information may be represented by a third PDR or a third FAR.

[0348] Exemplarily, when the third routing information is represented by a third PDR, the packet detection information, the external header removal IE or other extended IE in the third PDR may include the third routing information.

[0349] Exemplarily, when the third routing information is represented by a third FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the third FAR may include the first routing information.

[0350] S203: The session management network element generates fourth routing information according to the allowed VID list of the second user plane network element.

[0351] The fourth routing information is used by the first user plane network element to process the fourth message. The fourth message is a message to be sent by the first user plane network element to the second user plane network element. In other words, the fourth message is a message to be sent by the first user plane network element to the second user plane network element through the second port.

[0352] In the embodiment of the present application, the fourth routing information includes an allowed VID list of the second user plane network element.

[0353] Optionally, the fourth user plane network element is used by the first user plane network element to process the fourth message, including a combination of one or more of the following:

[0354] (4-1) the fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list corresponding to the second user plane network element does not include the VID carried by the fourth message;

[0355] (4-2) The fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list corresponding to the second user plane network element includes the VID carried by the fourth message.

[0356] Based on the fourth routing information, when the VID carried by the fourth message does not exist in the allowed VID list of the second user plane network element, the first user plane network element does not need to send the fourth message to the second user plane network element, thereby reducing unnecessary transmission overhead; on the other hand, the second user plane network element does not need to process the fourth message, thereby reducing the pressure on the second user plane network element to process Ethernet messages.

[0357] In the embodiment of the present application, the fourth routing information may be represented by a fourth PDR or a fourth FAR.

[0358] Exemplarily, when the fourth routing information is represented by a fourth PDR, the packet detection information, the external header removal IE or other extended IE in the fourth PDR may include the fourth routing information.

[0359] Exemplarily, when the fourth routing information is represented by the fourth FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the fourth FAR may include the fourth routing information.

[0360] S204. The session management network element sends the third routing information and the fourth routing information to the first user plane network element, so that the first user plane network element receives the third routing information and the fourth routing information.

[0361] Optionally, the session management network element may send the third routing information and the fourth routing information at the same time, or may send the third routing information and the fourth routing information respectively at different times.

[0362] Optionally, the third routing information and the fourth routing information may be carried in the same signaling or in different signalings. The signaling carrying the third routing information and the fourth routing information may be an N4 session creation / modification request message.

[0363] S205. The first user plane network element saves the third routing information and the fourth routing information.

[0364] S206. The session management network element generates fifth routing information according to the allowed VID list of the first user plane network element.

[0365] The fifth routing information is used by the second user plane network element to process the fifth message. The fifth message is a message to be sent by the second user plane network element to the first user plane network element. In other words, the fifth message is a message to be sent by the second user plane network element to the first user plane network element through the third port. The third port is the port of the first tunnel on the second user plane network element side.

[0366] Optionally, the session management network element or the second user plane network element may configure the port information of the third port. In the case where the second user plane network element is responsible for configuring the port information of the third port, the session management network element may obtain the port information of the third port from the second user plane network element.

[0367] In the embodiment of the present application, the fifth routing information includes an allowed VID list of the first user plane network element.

[0368] Optionally, the fifth routing information is used by the second user plane network element to process the fifth message, and includes a combination of one or more of the following:

[0369] (5-1) the fifth routing information is used to instruct the second user plane network element to discard the fifth message when the allowed VID list of the first user plane network element does not include the VID carried by the fifth message;

[0370] (5-2) The fifth routing information is used to instruct the second user plane network element to send the fifth message when the allowed VID list of the first user plane network element includes the VID carried by the fifth message.

[0371] Based on the fifth routing information, when the VID carried by the fifth message does not exist in the allowed VID list of the first user plane network element, the second user plane network element does not need to send the fifth message to the first user plane network element, thereby reducing unnecessary transmission overhead; on the other hand, the first user plane network element does not need to process the fifth message, thereby reducing the pressure on the first user plane network element to process Ethernet messages.

[0372] In the embodiment of the present application, the fifth routing information may be represented by a fifth PDR or a fifth FAR.

[0373] Exemplarily, in the case where the fifth routing information is represented by a fifth PDR, the packet detection information, the external header removal IE or other extended IE in the fifth PDR may include the fifth routing information.

[0374] Exemplarily, when the fifth routing information is represented by the fifth FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the fifth FAR may include the fifth routing information.

[0375] S207: The session management network element generates sixth routing information according to the allowed VID list of the second user plane network element.

[0376] The sixth routing information is used by the second user plane network element to process the sixth message. The sixth message is a message received by the second user plane network element from the first user plane network element. In other words, the sixth message is a message received by the second user plane network element from the first user plane network element through the third port.

[0377] In the embodiment of the present application, the sixth routing information includes an allowed VID list of the second user plane network element.

[0378] Optionally, the sixth routing information is used by the second user plane network element to process the sixth message, and includes a combination of one or more of the following:

[0379] (6-1) the sixth routing information is used to instruct the second user plane network element to discard the sixth message when the allowed VID list of the second user plane network element does not include the VID carried by the sixth message;

[0380] (6-2) The sixth routing information is used to instruct the second user plane network element to accept the sixth message when the allowed VID list of the second user plane network element includes the VID carried by the sixth message.

[0381] Based on the sixth routing information, when the VID carried by the sixth message does not exist in the allowed VID list of the second user plane network element, the second user plane network element does not need to further process the sixth message, thereby helping to reduce the pressure on the second user plane network element to process Ethernet messages.

[0382] In the embodiment of the present application, the sixth routing information may be represented by a sixth PDR or a sixth FAR.

[0383] Exemplarily, when the sixth routing information is represented by a sixth PDR, the packet detection information, the external header removal IE or other extended IE in the sixth PDR may include the sixth routing information.

[0384] Exemplarily, when the sixth routing information is represented by the sixth FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the sixth FAR may include the sixth routing information.

[0385] S208. The session management network element sends the fifth routing information and the sixth routing information to the second user plane network element, so that the second user plane network element receives the fifth routing information and the sixth routing information sent by the session management network element.

[0386] Optionally, the session management network element may send the fifth routing information and the sixth routing information at the same time, or may send the fifth routing information and the sixth routing information respectively at different times.

[0387] Optionally, the fifth routing information and the sixth routing information may be carried in the same signaling or in different signalings. The signaling carrying the fifth routing information and the sixth routing information may be an N4 session creation / modification request message.

[0388] S209. The second user plane network element saves the fifth routing information and the sixth routing information.

[0389] The embodiment of the present application does not limit the execution order of steps S202-S205 and steps S206-S209. For example, steps S202-S205 may be executed first, and then steps S206-S209; or steps S206-S209 may be executed first, and then steps S202-S205; or steps S202-S205 and steps S206-S209 may be executed simultaneously.

[0390] based on Figure 8 The technical solution shown is conducive to alleviating the processing pressure of Ethernet messages on user-side network elements in 5G LAN, and reducing the transmission overhead of Ethernet messages.

[0391] like Fig. 9 As shown, a routing configuration method provided in an embodiment of the present application includes the following steps:

[0392] S301. The session management network element obtains VLAN information of the fourth port.

[0393] The fourth port is a port on the first user plane network element for connecting to the data network. Exemplarily, the fourth port is an N6 port on the first user plane network element. In other words, the fourth port is a port of the N6 tunnel on the first user plane network element side.

[0394] The VLAN information of the fourth port includes a combination of one or more of the following: a default VID of the fourth port, an allowed VID list of the fourth port, and an untagged VID list of the fourth port.

[0395] The default VID of the fourth port is used to mark a message received through the fourth port and not carrying the VID.

[0396] The allowed VID list of the fourth port is used to record one or more VIDs. The VIDs recorded in the allowed VID list of the fourth port are the same as the VIDs carried by the message allowed to pass through the fourth port.

[0397] The untagged VID list of the fourth port is used to record one or more VIDs. The VIDs recorded in the untagged VID list of the fourth port are the same as the VIDs stripped from the message to be sent out through the fourth port.

[0398] Optionally, the VLAN information of the fourth port may further include other VLAN parameters, such as interface mode, priority of VID, indication information, second action indication, etc.

[0399] Optionally, the second action indication is used to indicate an operation on a message sent to the data network and / or a message to be sent to the data network. The operation indicated by the second action indication includes a combination of one or more of the following:

[0400] Operation 2-1: Do not process the VID carried in the message sent by the data network;

[0401] Operation 2-2: Add the default VID of the fourth port to the message sent by the data network;

[0402] Operation 2-3: Do not process the VID carried by the message to be sent to the data network;

[0403] Operation 2-4: when the VID carried by the message to be sent to the data network is the default VID of the fourth port or a VID in the untagged VID list, stripping the VID carried by the message to be sent to the data network;

[0404] Operation 2-5: determining whether to allow transmission of the message sent by the data network based on the allowed VID list of the fourth port;

[0405] Operation 2-6: determining whether to allow transmission of the message to be sent to the data network based on the allowed VID list of the fourth port;

[0406] Operation 2-7, determining whether to allow transmission of the message sent by the data network according to the allowed VID list of the fourth port;

[0407] Operation 2-8, determining whether to allow transmission of the message to be sent to the data network according to the allowed VID list of the fourth port;

[0408] Operation 2-9: Do not add S-TAG to the messages sent from the data network;

[0409] Operation 2-10: Do not strip the S-TAG from the message to be sent to the data network;

[0410] Operation 2-11: Add S-TAG to the message sent by the data network;

[0411] Operation 2-12: strip the S-TAG from the message to be sent to the data network.

[0412] The above operations 2-2 to 2-12 are merely examples, and the second action indication may also indicate other operations, which are not limited here.

[0413] Optionally, the second action instruction may include multiple instructions from the above operations 2-2 to 2-12 that do not conflict with each other. For example, the second action instruction may include operations 2-2 and 2-7.

[0414] In a possible implementation, the session management network element first obtains the VLAN information of the data network and / or the locally configured VLAN information. Then, the session management network element determines the VLAN information of the fourth port according to the VLAN information of the data network and / or the locally configured VLAN information.

[0415] It is understandable that the method for determining the VLAN information of the fourth port can refer to Figure 7 The method for determining the VLAN information of the first port in the illustrated embodiment will not be described in detail here.

[0416] The above-mentioned locally configured VLAN information may be pre-configured on the session management network element, or may be pre-configured on the first user plane network element. It is understandable that when the locally configured VLAN information is pre-configured on the first user plane network element, the session management network element may obtain the locally configured VLAN information from the first user plane network element.

[0417] In the embodiment of the present application, the VLAN parameters that may be included in the VLAN information of the data network and the locally configured VLAN information may refer to the VLAN information of the first terminal, which will not be described in detail here.

[0418] Optionally, the session management network element obtains the VLAN information of the data network, including at least one of the following implementations:

[0419] Method 1: The session management network element obtains the VLAN information of the data network from the authentication server.

[0420] Exemplarily, the session management network element sends an authorization request to the authentication server. Afterwards, the session management network element receives an authentication authorization response message sent by the authentication server. The authentication authorization response message includes VLAN information of the data network.

[0421] Method 2: The session management network element obtains the VLAN information of the data network from the policy control function network element.

[0422] Exemplarily, the session management network element sends a policy control acquisition request to the policy control function network element. Afterwards, the session management network element receives a policy control acquisition corresponding message sent by the policy control function network element, and the policy control acquisition corresponding message carries policy and charging control (PCC) rules, and the PCC rules include VLAN information of the data network.

[0423] Optionally, the policy control function network element may directly obtain the VLAN information of the data network from the application function entity. Alternatively, the policy function network element may obtain the VLAN information of the data network from the application function entity through the open function network element.

[0424] S302: The session management network element generates seventh routing information according to the VLAN information of the fourth port.

[0425] The seventh routing information is used by the first user plane network element to process the seventh message. The seventh message is a message received by the first user plane network element from the data network through the fourth port. In other words, the seventh message is a message received by the first user plane network element from a device or server in the data network through the fourth port.

[0426] In a possible design, the VLAN parameters included in the seventh routing information are independent of the interface mode of the fourth port. That is, no matter what type of port the fourth port is, the seventh routing information includes the default VID of the fourth port and the allowed VID list of the fourth port.

[0427] It can be understood that, in the case that the fourth port is an access port, the allowed VID list of the fourth port only includes the default VID of the fourth port.

[0428] Optionally, the seventh routing information is used by the first user plane network element to process the seventh message, and includes a combination of one or more of the following:

[0429] (7-1) The seventh routing information is used to instruct the first user plane network element to add a default VID of the fourth port to the seventh message when the seventh message does not carry the VID;

[0430] (7-2) the seventh routing information is used to instruct the first user plane network element to accept the seventh message when the allowed VID list of the fourth port includes the VID carried by the seventh message;

[0431] (7-3) The seventh routing information is used to instruct the first user plane network element to discard the seventh message when the allowed VID list of the fourth port does not include the VID carried by the seventh message.

[0432] In another possible design, the VLAN parameter included in the seventh routing information is related to the interface mode of the fourth port. Thus, the seventh routing information includes the following two situations:

[0433] Scenario 1: When the fourth port is an access port, the seventh routing information includes the default VID of the fourth port, but does not include the allowed VID list of the fourth port. In this case, the seventh routing information is used by the first user plane network element to process the seventh message, and includes a combination of one or more of the following:

[0434] (7-1) The seventh routing information is used to instruct the first user plane network element to add a default VID of the fourth port to the seventh message when the seventh message does not carry the VID;

[0435] (7-4) the seventh routing information is used to instruct the first user plane network element to accept the seventh message when the VID carried by the seventh message is the same as the default VID of the fourth port;

[0436] (7-5) The seventh routing information is used to instruct the first user-plane network element to discard the seventh message when the VID carried by the seventh message is different from the default VID of the fourth port.

[0437] Scenario 2: When the fourth port is a trunk port or a hybrid port, the seventh routing information includes the default VID of the fourth port and the allowed VID list of the fourth port. In this case, the seventh routing information is used for the first user plane network element to process the seventh message, including at least one of the above (7-1) to (7-3).

[0438] Optionally, when the VLAN information of the fourth port includes the second action indication, the session management network element may further determine the seventh routing information according to the second action indication.

[0439] For example, if the second action indication includes operation 2-1, the seventh routing information does not include a VLAN parameter. Thus, the seventh routing information is used to indicate that the first user plane network element accepts the seventh message.

[0440] For another example, if the second action indication includes operation 2-2, the seventh routing information includes at least the default VID of the fourth port. Therefore, the seventh routing information is used for the first user plane network element to process the seventh message, and includes at least the above (7-1).

[0441] For another example, if the second action indication includes operation 2-5, the seventh routing information does not include the allowed VID list of the fourth port. Therefore, the seventh routing information is used for the first user plane network element to process the seventh message, and does not include the above (7-2) and (7-3).

[0442] For another example, if the second action indication includes operation 2-7, the seventh routing information includes the allowed VID list of the fourth port. Thus, the seventh routing information is used by the first user plane network element to process the seventh message, including the above (7-2) and (7-3).

[0443] For another example, if the second action indication includes operation 2-9, the seventh routing information does not include S-TAG. Therefore, the seventh routing information is used by the first user plane network element to process the seventh message, and does not include (7-6) below.

[0444] For another example, if the second action indication includes operation 2-11, the seventh routing information includes S-TAG. Therefore, the seventh routing information is used by the first user plane network element to process the seventh message, including (7-6) below.

[0445] (7-6) The seventh routing information is used to instruct the first user plane network element to add an S-TAG to the seventh message.

[0446] In this embodiment of the present application, the seventh routing information may be the seventh PDR or the seventh FAR.

[0447] Exemplarily, when the seventh routing information is the seventh PDR, the packet detection information, external header removal IE or other extended IE in the seventh PDR may include one or more VLAN parameters (eg, the allowed VID list of the fourth port and the default VID of the fourth port).

[0448] Exemplarily, when the seventh routing information is the seventh FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the seventh FAR may include one or more VLAN parameters.

[0449] S303: The session management network element sends the seventh routing information to the first user plane network element, so that the first user plane network element receives the seventh routing information sent by the session management network element.

[0450] S304. The first user plane network element saves the seventh routing information.

[0451] S305. The session management network element generates eighth routing information according to the VLAN information of the fourth port.

[0452] The eighth routing information is used by the first user plane network element to process the eighth message. The eighth message is a message to be sent by the first user plane network element to the data network through the fourth port. In other words, the eighth message is a message to be sent by the first user plane network element to a device or server in the data network through the fourth port.

[0453] In a possible design, the VLAN parameters included in the eighth routing information are independent of the interface mode of the fourth port. That is, no matter what type of port the fourth port is, the eighth routing information includes the allowed VID list of the fourth port and the untagged VID list of the fourth port.

[0454] It is understandable that when the fourth port is an access port, the allowed VID list and the untagged VID list of the fourth port only include the default VID of the fourth port. When the fourth port is a trunk port, the untagged VID list of the fourth port only includes the default VID of the fourth port.

[0455] Optionally, the eighth routing information is used by the first user plane network element to process the eighth message, and includes a combination of one or more of the following:

[0456] (8-1) the eighth routing information is used to instruct the first user plane network element to discard the second message when the allowed VID list of the fourth port does not include the VID carried by the eighth message;

[0457] (8-2) the eighth routing information is used to instruct the first user plane network element to send the eighth message when the allowed VID list of the fourth port includes the VID carried by the eighth message and the untagged VID list of the fourth port does not include the VID carried by the eighth message;

[0458] (8-3) The eighth routing information is used to instruct the first user plane network element to strip the VID carried by the eighth message and send the eighth message after the VID is stripped when the allowed VID list of the fourth port includes the VID carried by the eighth message and the untagged VID list of the fourth port includes the VID carried by the eighth message.

[0459] In another possible design, the VLAN parameter included in the eighth routing information is related to the interface mode of the fourth port. Thus, the fourth routing information includes the following three situations:

[0460] Scenario 1: When the fourth port is an access port, the eighth routing information includes the default VID of the fourth port, but does not include the allowed VID list and the untagged VID list of the fourth port. In this case, the eighth routing information is used by the first user plane network element to process the eighth message, and includes a combination of one or more of the following:

[0461] (8-4) the eighth routing information is used to instruct the first user plane network element to discard the eighth message when the VID carried by the eighth message is different from the default VID of the fourth port;

[0462] (8-5) The eighth routing information is used to instruct the first user plane network element to strip the VID carried by the eighth message and send the eighth message after the VID is stripped when the VID carried by the eighth message is the same as the default VID of the fourth port.

[0463] Scenario 2: When the fourth port is a trunk port, the eighth routing information includes the default VID of the fourth port and the allowed VID list of the fourth port, but does not include the untagged VID list of the fourth port. In this case, the eighth routing information is used by the first user plane network element to process the eighth message, and includes a combination of one or more of the following:

[0464] (8-1) the eighth routing information is used to instruct the first user plane network element to discard the eighth message when the allowed VID list of the fourth port does not include the VID carried by the eighth message;

[0465] (8-6) the eighth routing information is used to instruct the first user plane network element to send the eighth message when the allowed VID list of the fourth port includes the VID carried by the eighth message and the VID carried by the eighth message is different from the default VID of the fourth port;

[0466] (8-7) The eighth routing information is used to instruct the first user plane network element to strip the VID carried by the eighth message and send the eighth message after the VID is stripped when the allowed VID list of the fourth port includes the VID carried by the eighth message and the VID carried by the eighth message is the same as the default VID of the fourth port.

[0467] Scenario 3: When the fourth port is a hybrid port, the eighth routing information includes the allowed VID list of the fourth port and the untagged VID list of the fourth port. In this case, the eighth routing information is used for the first user plane network element to process the eighth message, including at least one of the above (8-1) to (8-3).

[0468] Optionally, when the VLAN information of the fourth port includes the second action indication, the session management network element may further determine the eighth routing information according to the second action indication.

[0469] For example, if the second action indication includes operation 2-2, the eighth routing information does not include a VLAN parameter. Thus, the eighth routing information is used to instruct the first user plane network element to send the eighth message.

[0470] For another example, if the second action indication includes operation 2-4, the eighth routing information includes the default VID or untagged VID list of the fourth port. Thus, the eighth routing information is used for the first user plane network element to process the eighth message, and at least includes (8-3), (8-5) or (8-7).

[0471] For another example, if the second action indication includes operation 2-6, the eighth routing information does not include the allowed VID list of the fourth port. Therefore, the eighth routing information is used for the first user plane network element to process the eighth message, and does not include (8-2), (8-3), (8-6) and (8-7).

[0472] For another example, if the second action indication includes operation 2-8, the eighth routing information includes the allowed VID list of the fourth port. Thus, the eighth routing information is used for the first user plane network element to process the eighth message, and at least includes: (8-2) and (8-3). Alternatively, the eighth routing information is used for the first user plane network element to process the eighth message, and at least includes: (8-6) and (8-7).

[0473] For another example, if the second action indication includes operation 2-10, the eighth routing information does not include S-TAG. Therefore, the eighth routing information is used by the first user plane network element to process the eighth message, and does not include (8-8) below.

[0474] For another example, if the second action indication includes operation 2-12, the eighth routing information includes S-TAG. Therefore, the eighth routing information is used by the first user plane network element to process the eighth message, including (8-8) below.

[0475] (8-8) The eighth routing information is used to instruct the first user plane network element to strip the S-TAG from the eighth message.

[0476] In this embodiment of the present application, the eighth routing information may be the eighth PDR or the eighth FAR.

[0477] Exemplarily, when the eighth routing information is the eighth PDR, the packet detection information, external header removal IE or other extended IE in the eighth PDR may include one or more VLAN parameters (such as the allowed VID list of the fourth port and the untagged VID list of the fourth port).

[0478] Exemplarily, when the eighth routing information is the eighth FAR, the action IE, the external header addition IE, the forwarding strategy IE, the message header enhancement container IE, or other extended IEs in the eighth FAR may include one or more VLAN parameters.

[0479] S306. The session management network element sends the eighth routing information to the first user plane network element, so that the first user plane network element receives the eighth routing information sent by the session management network element.

[0480] S307. The first user plane network element saves the eighth routing information.

[0481] The embodiment of the present application does not limit the execution order of steps S302-S304 and steps S305-S307. For example, steps S302-S304 may be executed first, and then steps S305-S307; or steps S305-S307 may be executed first, and then steps S302-S304; or steps S302-S304 and steps S305-S307 may be executed simultaneously.

[0482] Fig. 9 The technical solution shown can be applied to the process of establishing / modifying a PDU session for the first terminal or other terminals served by the first user plane network element.

[0483] based on Fig. 9 In the technical solution shown, the VLAN information of the fourth port can reflect the networking mode and VLAN configuration of the data network. Since the seventh routing information and the eighth routing information are generated according to the VLAN information of the fourth port. Therefore, the first user plane network element can process the seventh message according to the seventh routing information and process the eighth message according to the eighth routing information, so that the first user plane network element can process the message in a way that adapts to the networking mode and VLAN configuration of the data network, and ensures the forwarding of Ethernet messages in the scenario of 5GLAN and external LAN intercommunication.

[0484] In the embodiment of the present application, the message carrying the VID means that the message carries the VLAN tag, and the VLAN tag contains the VID. Correspondingly, the VID carried by the message is the VID in the VLAN tag carried by the message.

[0485] In the embodiment of the present application, adding a default VID to a message refers to adding a VLAN tag to the message, and the VLAN tag includes the default VID.

[0486] In the embodiment of the present application, stripping the VID of the message refers to stripping the VLAN tag of the message.

[0487] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the interaction between various network elements. It can be understood that in order to realize the above functions, each network element, such as a session management network element, a user plane network element, etc., includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or in a computer software-driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0488] The embodiment of the present application can divide the session management network element and the user plane network element into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0489] In the case of integrated units, Fig.10 A communication device involved in the above embodiment is shown. The communication device may include a processing unit 101 and a communication unit 102.

[0490] In one example, the communication device may be the session management network element mentioned above, or a chip used in the session management network element. In this case, the processing unit 101 is used to support the session management network element to execute Figure 7 Steps S101, S102 and S105 in Figure 8 Steps S201-S203, and S206 and S207 in Fig. 9 The communication unit 102 is used to support the session management network element to perform steps S301, S302 and S305 in the embodiment of the present application, and / or other processing operations that the session management network element needs to perform. Figure 7 Steps S103 and S106 in Figure 8 Steps S204 and S208 in Fig. 9 Steps S303 and S306 in the embodiment of the present application, and / or other communication operations that the session management network element needs to perform.

[0491] In another example, the communication device may be the first user plane network element mentioned above, or a chip used in the first user plane network element. In this case, the processing unit 101 is used to support the first user plane network element to execute Figure 7 Steps S104 and S107 in Figure 8 In step S205, Fig. 9 The communication unit 102 is used to support the first user plane network element to perform steps S304 and S307 in the embodiment of the present application, and / or other processing operations that the first user plane network element needs to perform. Figure 7 Steps S103 and S106 in Figure 8 Step S204 in the above method, Fig. 9 Steps S303 and S306 in the embodiment of the present application, and / or other communication operations that need to be performed by the first user plane network element in the embodiment of the present application.

[0492] In another example, the communication device may be the second user plane network element mentioned above, or a chip used in the second user plane network element. In this case, the processing unit 101 may support the second user plane network element to execute Figure 8 The communication unit 102 is used to support the second user plane network element to perform step S209 in the embodiment of the present application, and / or other processing operations that the second user plane network element needs to perform in the embodiment of the present application. Figure 8 Step S208 in the embodiment of the present application, and / or other communication operations that the second user plane network element needs to perform.

[0493] Fig.10 If the integrated unit in is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The storage medium for storing computer software products includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0494] Fig.10 The units in the system may also be referred to as modules. For example, the processing unit may be referred to as a processing module, and the communication unit may be referred to as a communication module.

[0495] Fig.11 The communication device 200 includes one or more processors 201 and a communication interface 203 .

[0496] Optionally, the communication device 200 further includes a memory 204, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 201. A portion of the memory 204 may also include a non-volatile random access memory (NVRAM).

[0497] In the embodiment of the present application, the communication device 200 performs corresponding operations by calling the operation instructions stored in the memory 204 (the operation instructions may be stored in the operating system).

[0498] The processor 201 may also be referred to as a central processing unit (CPU).

[0499] The processor 201, the communication interface 203 and the memory 204 are coupled together via a bus system 202, wherein the bus system 202 may include a power bus, a control bus and a status signal bus in addition to a data bus. Fig.11 Various buses are labeled as bus system 202 .

[0500] The method disclosed in the above embodiment of the present application can be applied to the processor 201, or implemented by the processor 201. The processor 201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 201. The above processor 201 can be a general processor, a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 204, and the processor 201 reads the information in the memory 204 and completes the steps of the above method in combination with its hardware.

[0501] For example, Fig.10 The processing unit 101 in Fig.11 The processor 201 in the embodiment of the present invention is implemented as follows, Fig.10 The communication unit 102 in the embodiment may be composed of Fig.11 It is implemented by the communication interface 203 in.

[0502] The above communication unit or communication interface may be an interface circuit or communication interface of the device, which is used to receive signals from other devices. For example, when the device is implemented in the form of a chip, the communication unit or communication interface is an interface circuit or communication interface of the chip for receiving or sending signals from other chips or devices.

[0503] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.

[0504] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, a data center, etc. that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state hard disk solid statedisk, SSD), etc.

[0505] Optionally, the embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer-readable storage medium is executed on a computer, the computer executes the routing configuration method provided in the embodiment of the present application.

[0506] The embodiment of the present application also provides a computer program product including computer instructions, which, when executed on a computer, enables the computer to execute the routing configuration method provided in the embodiment of the present application.

[0507] An embodiment of the present application provides a chip, which includes a processor. When the processor executes instructions, the chip can execute the routing configuration method provided by the embodiment of the present application.

[0508] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0509] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0510] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A routing configuration method, characterized in that: The method comprises: The session management network element obtains virtual local area network VLAN information of a first port, where the first port is a port corresponding to a PDU session established with a first terminal on a first user plane network element, and the first user plane network element is a user plane network element providing services for the first terminal; The session management network element generates first routing information and second routing information according to the VLAN information of the first port, the first routing information is used for the first user plane network element to process a first message, the first message is an uplink message of the first terminal received by the first user plane network element from the first port, and the second routing information is used for the first user plane network element to process a second message, the second message is a downlink message to be sent by the first user plane network element to the first terminal through the first port; The session management network element sends the first routing information and the second routing information to the first user plane network element.

2. The routing configuration method according to claim 1, characterized in that: The VLAN information of the first port includes a combination of one or more of the following: a default virtual local area network identifier VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

3. The routing configuration method according to claim 2, characterized in that: The first routing information includes a default VID of the first port and an allowed VID list of the first port; The first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following: The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID; or, The first routing information is used to instruct the first user plane network element to accept the first message when the allowed VID list of the first port includes the VID carried by the first message; or, The first routing information is used to instruct the first user plane network element to discard the first message if the allowed VID list of the first port does not include the VID carried by the first message.

4. The routing configuration method according to claim 2, characterized in that: The first routing information includes a default VID of the first port; The first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following: The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID; or, The first routing information is used to instruct the first user plane network element to accept the first message when the VID carried by the first message is the same as the default VID of the first port; or, The first routing information is used to instruct the first user plane network element to discard the first message when the VID carried by the first message is different from the default VID of the first port.

5. The routing configuration method according to any one of claims 2 to 4, characterized in that: The second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message if the VID carried by the second message is not included in the allowed VID list of the first port; or The second routing information is used to instruct the first user plane network element to send the second message through the first port when the VID carried by the second message is included in the allowed VID list of the first port and the VID carried by the second message is not included in the untagged VID list of the first port; The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message when the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port includes the VID carried by the second message, and send the second message after the VID is stripped through the first port.

6. The routing configuration method according to any one of claims 2 to 4, characterized in that: The second routing information includes a default VID of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or, The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message with the VID stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

7. The routing configuration method according to claim 6, characterized in that: The session management network element obtains VLAN information of the first port, including: The session management network element obtains VLAN information of the first terminal; the VLAN information of the first terminal includes a combination of one or more of the following VLAN parameters: interface mode, service provider tag S-TAG, allowed VID list, default VID or untagged VID list, and the interface mode includes access type, aggregation trunk type or hybrid type; The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal.

8. The routing configuration method according to claim 7, characterized in that: The VLAN information of the first terminal further includes a first action indication, where the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal, wherein the operation includes a combination of one or more of the following: The VID carried by the uplink message is not processed; Adding a default VID of the first port to the uplink message; The VID carried by the downlink message is not processed; Stripping the default VID of the first port or the VID in the untagged VID list for the downlink message; not judging whether to allow transmission of the uplink message according to the allowed VID list of the first port; not judging whether to allow transmission of the downlink message according to the allowed VID list of the first port; Determining whether to allow transmission of the uplink message according to the allowed VID list of the first port; Determining whether to allow transmission of the downlink message according to the allowed VID list of the first port; Not adding the S-TAG to the uplink message; Not stripping the S-TAG from the downlink message; adding the S-TAG to the uplink message; or The S-TAG is stripped from the downlink message.

9. The routing configuration method according to claim 7, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

10. The routing configuration method according to claim 8, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

11. The routing configuration method according to claim 7, characterized in that: The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal, including: When the VLAN information of the first terminal includes a default VID, the session management network element determines the default VID included in the VLAN information of the first terminal as the default VID of the first port; When the VLAN information of the first terminal does not include a default VID and the VLAN information of the first terminal includes an allowed VID list, the session management network element determines a VID that meets a preset condition in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port; wherein the VID that meets the preset condition in the allowed VID list included in the VLAN information of the first terminal includes: The first VID in the allowed VID list included in the VLAN information of the first terminal; or, The last VID in the allowed VID list included in the VLAN information of the first terminal; or, The VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or The VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

12. The routing configuration method according to any one of claims 2 to 4, characterized in that: The second routing information includes a default VID of the first port and an allowed VID list of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message if the VID carried by the second message is not included in the allowed VID list of the first port; or, The second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and when the VID carried by the second message is different from the default VID of the first port, send the second message through the first port; or, The second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and when the VID carried by the second message is the same as the default VID of the first port, strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

13. The routing configuration method according to claim 12, characterized in that: The session management network element obtains VLAN information of the first port, including: The session management network element obtains VLAN information of the first terminal; the VLAN information of the first terminal includes a combination of one or more of the following VLAN parameters: interface mode, service provider tag S-TAG, allowed VID list, default VID or untagged VID list, and the interface mode includes access type, aggregation trunk type or hybrid type; The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal.

14. The routing configuration method according to claim 13, characterized in that: The VLAN information of the first terminal further includes a first action indication, where the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal, wherein the operation includes a combination of one or more of the following: The VID carried by the uplink message is not processed; Adding a default VID of the first port to the uplink message; The VID carried by the downlink message is not processed; Stripping the default VID of the first port or the VID in the untagged VID list for the downlink message; not judging whether to allow transmission of the uplink message according to the allowed VID list of the first port; not judging whether to allow transmission of the downlink message according to the allowed VID list of the first port; Determining whether to allow transmission of the uplink message according to the allowed VID list of the first port; Determining whether to allow transmission of the downlink message according to the allowed VID list of the first port; Not adding the S-TAG to the uplink message; Not stripping the S-TAG from the downlink message; adding the S-TAG to the uplink message; or The S-TAG is stripped from the downlink message.

15. The routing configuration method according to claim 13, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

16. The routing configuration method according to claim 14, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

17. The routing configuration method according to claim 13, characterized in that: The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal, including: When the VLAN information of the first terminal includes a default VID, the session management network element determines the default VID included in the VLAN information of the first terminal as the default VID of the first port; When the VLAN information of the first terminal does not include a default VID and the VLAN information of the first terminal includes an allowed VID list, the session management network element determines a VID that meets a preset condition in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port; wherein the VID that meets the preset condition in the allowed VID list included in the VLAN information of the first terminal includes: The first VID in the allowed VID list included in the VLAN information of the first terminal; or, The last VID in the allowed VID list included in the VLAN information of the first terminal; or, The VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or The VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

18. The routing configuration method according to any one of claims 1 to 4, characterized in that: The session management network element obtains VLAN information of the first port, including: The session management network element obtains VLAN information of the first terminal; the VLAN information of the first terminal includes a combination of one or more of the following VLAN parameters: interface mode, service provider tag S-TAG, allowed VID list, default VID or untagged VID list, and the interface mode includes access type, aggregation trunk type or hybrid type; The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal.

19. The routing configuration method according to claim 18, characterized in that: The VLAN information of the first terminal further includes a first action indication, where the first action indication is used to indicate an operation on an uplink message sent by the first terminal and / or a downlink message to be sent to the first terminal, wherein the operation includes a combination of one or more of the following: The VID carried by the uplink message is not processed; Adding a default VID of the first port to the uplink message; The VID carried by the downlink message is not processed; Stripping the default VID of the first port or the VID in the untagged VID list for the downlink message; not judging whether to allow transmission of the uplink message according to the allowed VID list of the first port; not judging whether to allow transmission of the downlink message according to the allowed VID list of the first port; Determining whether to allow transmission of the uplink message according to the allowed VID list of the first port; Determining whether to allow transmission of the downlink message according to the allowed VID list of the first port; Not adding the S-TAG to the uplink message; Not stripping the S-TAG from the downlink message; adding the S-TAG to the uplink message; or The S-TAG is stripped from the downlink message.

20. The routing configuration method according to claim 18, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

21. The routing configuration method according to claim 19, characterized in that: The session management network element obtains the VLAN information of the first terminal, including: The session management network element obtains the VLAN information of the first terminal from the first terminal, the authentication server, the data management network element and / or the policy control function network element.

22. The routing configuration method according to claim 18, characterized in that: The session management network element determines the VLAN information of the first port according to the VLAN information of the first terminal, including: When the VLAN information of the first terminal includes a default VID, the session management network element determines the default VID included in the VLAN information of the first terminal as the default VID of the first port; When the VLAN information of the first terminal does not include a default VID and the VLAN information of the first terminal includes an allowed VID list, the session management network element determines a VID that meets a preset condition in the allowed VID list included in the VLAN information of the first terminal as the default VID of the first port; wherein the VID that meets the preset condition in the allowed VID list included in the VLAN information of the first terminal includes: The first VID in the allowed VID list included in the VLAN information of the first terminal; or, The last VID in the allowed VID list included in the VLAN information of the first terminal; or, The VID with the highest priority in the allowed VID list included in the VLAN information of the first terminal; or The VID with the lowest priority in the allowed VID list included in the VLAN information of the first terminal.

23. The routing configuration method according to claim 1, characterized in that: The method further comprises: The session management network element obtains the allowed VID list of the first user plane network element and the allowed VID list of the second user plane network element; The session management network element generates third routing information according to the allowed VID list of the first user plane network element, where the third routing information is used by the first user plane network element to process a third message, where the third message is a message received by the first user plane network element from the second user plane network element; The session management network element generates fourth routing information according to the allowed VID list of the second user plane network element, where the fourth routing information is used by the first user plane network element to process a fourth message, where the fourth message is a message to be sent by the first user plane network element to the second user plane network element; and The session management network element sends the third routing information and the fourth routing information to the first user plane network element.

24. The routing configuration method according to claim 23, characterized in that: The method further comprises: The session management network element obtains an allowed VID list of ports corresponding to each PDU session on the first user plane network element, and an allowed VID list of ports corresponding to each PDU session on the second user plane network element; The session management network element uses the union of the allowed VID lists of the ports corresponding to each PDU session on the first user plane network element as the allowed VID list of the first user plane network element; The session management network element uses the union of the allowed VID lists of the ports corresponding to each PDU session on the second user plane network element as the allowed VID list of the second user plane network element.

25. The routing configuration method according to claim 24, characterized in that: The third routing information is used by the first user plane network element to process the third message, and includes a combination of one or more of the following: The third routing information is used to instruct the first user plane network element to discard the third message when the allowed VID list of the first user plane network element does not include the VID carried by the third message; or, The third routing information is used to instruct the first user plane network element to accept the third message when the allowed VID list of the first user plane network element includes the VID carried by the third message.

26. The routing configuration method according to claim 25, characterized in that: The fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: The fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; or, The fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

27. The routing configuration method according to claim 26, characterized in that: The method further comprises: The session management network element generates fifth routing information according to the allowed VID list of the first user plane network element, where the fifth routing information is used by the second user plane network element to process a fifth message, where the fifth message is a message to be sent by the second user plane network element to the first user plane network element; The session management network element generates sixth routing information according to the allowed VID list of the second user plane network element, where the sixth routing information is used by the second user plane network element to process a sixth message, where the sixth message is a message received by the second user plane network element from the first user plane network element; The session management network element sends the fifth routing information and the sixth routing information to the second user plane network element.

28. The routing configuration method according to claim 27, characterized in that: The fifth routing information is used by the second user plane network element to process the fifth message, and includes a combination of one or more of the following: The fifth routing information is used to instruct the second user plane network element to discard the fifth message when the allowed VID list of the first user plane network element does not include the VID carried by the fifth message; The fifth routing information is used to instruct the second user plane network element to send the fifth message when the allowed VID list of the first user plane network element includes the VID carried by the fifth message.

29. The routing configuration method according to claim 28, characterized in that: The sixth routing information is used by the second user plane network element to process the sixth message, including a combination of one or more of the following: The sixth routing information is used to instruct the second user plane network element to discard the sixth message when the allowed VID list of the second user plane network element does not include the VID carried by the sixth message; or, The sixth routing information is used to instruct the second user plane network element to accept the sixth message when the allowed VID list of the second user plane network element includes the VID carried by the sixth message.

30. The routing configuration method according to claim 1, characterized in that: The method further comprises: The session management network element obtains VLAN information of a fourth port, where the fourth port is a port used by the first user plane network element to connect to a data network; The session management network element generates seventh routing information and eighth routing information according to the VLAN information of the fourth port, the seventh routing information is used for the first user plane network element to process a seventh message, the seventh message is a message received by the first user plane network element through the fourth port, and the eighth routing information is used for the first user plane network element to process an eighth message, the eighth message is a message to be sent by the first user plane network element through the fourth port; The session management network element sends the seventh routing information and the eighth routing information to the first user plane network element.

31. A routing configuration method, characterized in that: The method comprises: The first user plane network element receives first routing information and second routing information sent by the session management network element, the first user plane network element provides services for the first terminal, the first routing information and the second routing information are generated according to the VLAN information of the first port, the first routing information is used by the first user plane network element to process a first message, the first message is an uplink message of the first terminal received by the first user plane network element from the first port, the second routing information is used by the first user plane network element to process a second message, the second message is a downlink message to be sent by the first user plane network element to the first terminal through the first port, and the first port is a port on the first user plane network element corresponding to the PDU session established with the first terminal; The first user plane network element stores the first routing information and the second routing information.

32. The routing configuration method according to claim 31, characterized in that: The VLAN information of the first port includes a combination of one or more of the following: a default virtual local area network identifier VID of the first port, an allowed VID list of the first port, and an untagged VID list of the first port.

33. The routing configuration method according to claim 32, characterized in that: The first routing information includes a default VID of the first port and an allowed VID list of the first port; The first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following: The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID; or, The first routing information is used to instruct the first user plane network element to accept the first message when the first message carries a VID and the allowed VID list of the first port includes the VID carried by the first message; or, The first routing information is used to instruct the first user plane network element to discard the first message when the first message carries a VID and the allowed VID list of the first port does not include the VID carried by the first message.

34. The routing configuration method according to claim 32, characterized in that: The first routing information includes a default VID of the first port; The first routing information is used by the first user plane network element to process the first message, and includes a combination of one or more of the following: The first routing information is used to instruct the first user plane network element to add a default VID of the first port to the first message when the first message does not carry the VID; or, The first routing information is used to instruct the first user plane network element to accept the first message when the first message carries a VID and the VID carried by the first message is the same as a default VID of the first port; or, The first routing information is used to instruct the first user plane network element to discard the first message when the first message carries a VID and the VID carried by the first message is different from a default VID of the first port.

35. The routing configuration method according to any one of claims 32 to 34, characterized in that: The second routing information includes an allowed VID list of the first port and an untagged VID list of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message when the second message carries a VID and the allowed VID list of the first port does not include the VID carried by the second message; or The second routing information is used to instruct the first user plane network element to send the second message through the first port when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port does not include the VID carried by the second message; The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message stripped of the VID through the first port when the second message carries the VID, the allowed VID list of the first port includes the VID carried by the second message, and the untagged VID list of the first port includes the VID carried by the second message.

36. The routing configuration method according to any one of claims 32 to 34, characterized in that: The second routing information includes a default VID of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message when the VID carried by the second message is different from the default VID of the first port; or The second routing information is used to instruct the first user plane network element to strip the VID carried by the second message and send the second message with the VID stripped through the first port when the VID carried by the second message is the same as the default VID of the first port.

37. The routing configuration method according to any one of claims 32 to 34, characterized in that: The second routing information includes a default VID of the first port and an allowed VID list of the first port; The second routing information is used by the first user plane network element to process the second message, including a combination of one or more of the following: The second routing information is used to instruct the first user plane network element to discard the second message if the VID carried by the second message is not included in the allowed VID list of the first port; or The second routing information is used to instruct the first user plane network element to send the second message through the first port when the VID carried by the second message is included in the allowed VID list of the first port and the VID carried by the second message is different from the default VID of the first port; or The second routing information is used to instruct the first user plane network element to include the VID carried by the second message in the allowed VID list of the first port, and when the VID carried by the second message is the same as the default VID of the first port, strip the VID carried by the second message and send the second message after the VID is stripped through the first port.

38. The routing configuration method according to claim 31, characterized in that: The method further comprises: The first user plane network element receives third routing information and fourth routing information sent by the session management network element, the third routing information is generated according to the allowed VID list of the first user plane network element, the fourth routing information is generated according to the allowed VID list of the second user plane network element, the third routing information is used by the first user plane network element to process a third message, the third message is a message received by the first user plane network element from the second user plane network element; the fourth routing information is used by the first user plane network element to process a fourth message, the fourth message is a message to be sent by the first user plane network element to the second user plane network element; The first user plane network element stores the third routing information and the fourth routing information.

39. The routing configuration method according to claim 38, characterized in that: The third routing information is used by the first user plane network element to process the third message, and includes a combination of one or more of the following: The third routing information is used to instruct the first user plane network element to discard the third message when the allowed VID list of the first user plane network element does not include the VID carried by the third message; The third routing information is used to instruct the first user plane network element to accept the third message when the allowed VID list of the first user plane network element includes the VID carried by the third message.

40. The routing configuration method according to claim 38, characterized in that: The fourth routing information is used to instruct the first user plane network element to process the fourth message, including a combination of one or more of the following: The fourth routing information is used to instruct the first user plane network element to discard the fourth message when the allowed VID list of the second user plane network element does not include the VID carried by the fourth message; The fourth routing information is used to instruct the first user plane network element to send the fourth message when the allowed VID list of the second user plane network element includes the VID carried by the fourth message.

41. The routing configuration method according to claim 31, characterized in that: The method further comprises: The first user plane network element receives seventh routing information and eighth routing information sent by the session management network element, where the seventh routing information and the eighth routing information are generated according to VLAN information of a fourth port, where the fourth port is a port for the first user plane network element to connect to a data network, and the seventh routing information is used by the first user plane network element to process a seventh message, where the seventh message is a message received by the first user plane network element through the fourth port, and the eighth routing information is used by the first user plane network element to process an eighth message, where the eighth message is a message to be sent by the first user plane network element through the fourth port; The first user plane network element stores the seventh routing information and the eighth routing information.

42. A communication device, characterized in that: The communication device comprises a unit for executing each step involved in any one of claims 1 to 41.

43. A communication device, characterized in that: The communication device includes a memory and a processor, wherein: the memory is used to store computer instructions; The processor is coupled to the memory and is used to call computer instructions in the memory so that the communication device executes the routing configuration method as described in any one of claims 1-41.

44. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the routing configuration method according to any one of claims 1 to 41.

45. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the routing configuration method according to any one of claims 1 to 41.