VLAN implementation method, core network equipment and terminal
By creating a VxLAN tunnel for each VLAN between the 5G terminal device and UPF, the problem of how to form multiple subnets under one LAN is solved, achieving network flexibility and scalability.
Patent Information
- Application Number
- CN202011252314.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2040-11-11
AI Technical Summary
How to create different VxLAN tunnels for each different VLAN between 5G terminal devices and UPF, supports the establishment of multiple subnets under one LAN.
By receiving the PDU session establishment request sent by the terminal, the terminal's LAN subscription information is obtained, the terminal's accessible VLAN list is determined, and the session establishment request is sent to the second core network device to create a VxLAN tunnel.
It realizes the creation of different VxLAN tunnels for each different VLAN between the terminal and the forwarding device, supports the establishment of multiple subnets under one LAN, and improves the flexibility and scalability of the network.
Smart Images

Figure CN114500164B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of network technology, and in particular to a VLAN implementation method, core network equipment and a terminal. Background Art
[0002] According to the current 3GPP standards, 5G supports a group of users who have signed up for the same slice and the same DNN (Data Network Name) to sign up for a 5G VN (Virtual Network) group, and supports users in the 5G VN group to conduct various types of local area network communications, including unicast, multicast, and multicast. This technical solution is called 5G LAN (local area network). 5G LAN supports two types of sessions, IP (Internet Protocol) PDU (Protocol Data Unit) sessions and Ethernet PDU sessions, and also supports three data forwarding modes, data forwarding based on the N6 interface, data forwarding based on the N19 interface, and data forwarding based on local switching.
[0003] In the industrial Internet, the communication between some industrial devices does not use the TCP (Transmission Control Protocol) / IP protocol stack. The protocol data of the application layer or presentation layer is directly mapped to the data link layer and the physical layer based on the 2-layer Ethernet communication. For example, the differential protection in the power grid uses the GOOSE protocol. If these industrial devices need to be connected through the 5G wireless network to form a local area network, then the 5G LAN technology can be used. The terminal that supports 5G LAN in the current 3GPP standard initiates an Ethernet-type PDU session and forwards it on the UPF (User Plane Function). However, the current industry is not yet mature, and the terminal chips and modules do not support the initiation of Ethernet-type PDU sessions. To solve this problem, a 5G terminal device that supports the VxLAN (Virtual eXtensible Local Area Network) function can be introduced. A VxLAN tunnel is created between this 5G terminal device and the UPF. The second-layer data packet of the industrial equipment is encapsulated by VxLAN on the 5G terminal device to realize the conversion of the 2-layer to the 3-layer, thereby accessing the 5G network to realize the interconnection and communication of the local area network. However, if the industrial equipment accessing the 5G network through 5G terminal devices belongs to different VLAN groups, how to create different VxLAN tunnels for each different VLAN (Virtual Local Area Network) between the 5G terminal devices and UPF is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present invention provide a VLAN implementation method, a core network device and a terminal, which are used to solve the problem of how to create different VxLAN tunnels for each different VLAN between a 5G terminal device and a UPF.
[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a method for implementing a VLAN, which is executed by a first core network device and includes:
[0007] Receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong;
[0008] Acquire the local area network contract information of the terminal, wherein the local area network contract information includes a contract VLAN list of the local area network;
[0009] Determine the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list;
[0010] Sending a session establishment request to the second core network device, wherein the session establishment request carries the accessible VLAN list;
[0011] Receiving a session establishment response sent by the second core network device;
[0012] A PDU session establishment response is sent to the terminal, where the PDU session establishment response carries the accessible VLAN list.
[0013] In a second aspect, an embodiment of the present invention provides a method for implementing a VLAN, which is executed by a second core network device and includes:
[0014] Receiving a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0015] Establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0016] Send a session establishment response to the first core network device.
[0017] In a third aspect, an embodiment of the present invention provides a method for implementing a VLAN, which is executed by a terminal and includes:
[0018] Send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0019] Receiving a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list;
[0020] A VxLAN tunnel is established for each accessible VLAN in the accessible VLAN list.
[0021] In a fourth aspect, an embodiment of the present invention provides a core network device, including:
[0022] A first receiving module is used to receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong;
[0023] An acquisition module, used to acquire the local area network contract information of the terminal, wherein the local area network contract information includes a contracted VLAN list of the local area network;
[0024] A determination module, configured to determine an accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list;
[0025] A first sending module, configured to send a session establishment request to a second core network device, wherein the session establishment request carries the accessible VLAN list;
[0026] A second receiving module, used to receive a session establishment response sent by the second core network device;
[0027] The second sending module is used to send a PDU session establishment response to the terminal, where the PDU session establishment response carries the accessible VLAN list.
[0028] In a fifth aspect, an embodiment of the present invention provides a core network device, including: a transceiver and a processor;
[0029] The transceiver is used to send and receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list contains a first VLAN to which all devices that need to access a local area network through the terminal belong;
[0030] The processor is configured to obtain the local area network subscription information of the terminal, wherein the local area network subscription information includes a subscription VLAN list of the local area network; and determine an accessible VLAN list of the terminal according to the requested VLAN list and the subscription VLAN list;
[0031] The transceiver is further configured to receive a session establishment request to send to the second core network device, wherein the session establishment request carries the accessible VLAN list;
[0032] The transceiver is further configured to receive a session establishment response sent by the second core network device;
[0033] The transceiver is further used to send a PDU session establishment response to the terminal, wherein the PDU session establishment response carries the accessible VLAN list.
[0034] In a sixth aspect, an embodiment of the present invention provides a core network device, including:
[0035] A receiving module, configured to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0036] Establish a module for establishing a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0037] A sending module is used to send a session establishment response to the first core network device.
[0038] In a seventh aspect, an embodiment of the present invention provides a core network device, including: a transceiver and a processor;
[0039] The transceiver is used to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0040] The processor is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0041] The transceiver is also used to send a session establishment response to the first core network device.
[0042] In an eighth aspect, an embodiment of the present invention provides a terminal, including:
[0043] A sending module, configured to send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0044] A receiving module, configured to receive a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list;
[0045] A module is established to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0046] In a ninth aspect, an embodiment of the present invention provides a terminal, including: a transceiver and a processor;
[0047] The transceiver is used to send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0048] The transceiver is further configured to receive a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list;
[0049] The processor is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0050] In the tenth aspect, an embodiment of the present invention provides a core network device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the VLAN implementation method described in the first aspect above; or, the program, when executed by the processor, implements the steps of the VLAN implementation method described in the second aspect above.
[0051] In the eleventh aspect, an embodiment of the present invention provides a terminal, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the VLAN implementation method described in the third aspect above.
[0052] In a twelfth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the VLAN implementation method described in the first aspect are implemented; or, when the computer program is executed by a processor, the steps of the VLAN implementation method described in the second aspect are implemented; or, when the computer program is executed by a processor, the steps of the VLAN implementation method described in the third aspect are implemented.
[0053] In an embodiment of the present invention, different VxLAN tunnels can be created between the terminal and the forwarding device for each different VLAN to support the establishment of multiple subnets under one local area network. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0055] Figure 1 A schematic flow chart of a method for implementing a VLAN executed by a first core network device according to an embodiment of the present invention;
[0056] Figure 2 A schematic flow chart of a method for implementing a VLAN executed by a first core network device according to another embodiment of the present invention;
[0057] Figure 3 A schematic flow chart of a method for implementing a VLAN executed by a second core network device according to an embodiment of the present invention;
[0058] Figure 4 A schematic flow chart of a method for implementing VLAN executed by a terminal according to an embodiment of the present invention;
[0059] Figure 5 A schematic diagram of the interaction process between network elements according to an embodiment of the present invention;
[0060] Figure 6 A schematic diagram of the structure of a core network device according to an embodiment of the present invention;
[0061] Figure 7 A schematic diagram of the structure of a core network device according to another embodiment of the present invention;
[0062] Figure 8 A schematic diagram of the structure of a core network device according to another embodiment of the present invention;
[0063] Fig. 9 A schematic diagram of the structure of a core network device according to another embodiment of the present invention;
[0064] Fig.10 A schematic diagram of the structure of a terminal according to an embodiment of the present invention;
[0065] Fig.11 A schematic diagram of the structure of a terminal according to another embodiment of the present invention;
[0066] Fig.12 A schematic diagram of the structure of a core network device according to another embodiment of the present invention;
[0067] Fig.13 The figure is a schematic diagram of the structure of a terminal according to another embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0070] It is worth noting that the technology described in the embodiments of the present invention can be applied to the fifth generation (5 th The present invention is applicable to the sixth generation (5G) communication system and can also be applied to wireless communication systems other than the 5G communication system, such as the sixth generation (6G) communication system.
[0071] Please refer to Figure 1 An embodiment of the present invention provides a VLAN implementation method, which is executed by a first core network device. In the embodiment of the present invention, the first core network device can be an SMF (Session Management Function). Of course, in some other embodiments of the present invention, it is not excluded to use other core network devices for execution.
[0072] The implementation method of the VLAN includes:
[0073] Step 11: receiving a PDU (Protocol Data Unit) session establishment request sent by the terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0074] If the technology described in the embodiment of the present invention is applied to a 5G communication system, the terminal may be a 5G terminal device, such as CPE (Customer Premise Equipment).
[0075] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN.
[0076] Step 12: Obtain the LAN subscription information of the terminal, wherein the LAN subscription information includes a subscribed VLAN list of the LAN;
[0077] That is, a subscription VLAN list is added to the existing LAN subscription information, and the subscription VLAN list includes VLANs that the terminal is allowed to access, which may also be called a subscription VLAN.
[0078] Optionally, if the first core network device is SMF, SMF can obtain the local area network subscription information of the terminal from UDM (Unified Data Management).
[0079] If the technology described in the embodiment of the present invention is applied to a 5G communication system, the local area network subscription information may also be referred to as 5G VN (Virtual Network) group information.
[0080] The subscribed VLAN list includes the VLAN ID of the subscribed VLAN and the corresponding VNI (VXLAN Network Identifier, virtual local area network identifier) ID. The subscribed VLAN is the VLAN that the terminal is allowed to access.
[0081] Step 13: Determine an allowed VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list;
[0082] In the embodiment of the present invention, optionally, the accessible VLAN list includes VLAN IDs of the accessible VLANs and corresponding VNI IDs.
[0083] Step 14: Send a session establishment request to the second core network device, wherein the session establishment request carries the accessible VLAN list;
[0084] A session establishment request is sent to the second core network device so that the forwarding device on the second core network device establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0085] Optionally, the second core network device may be a UPF (User plane Function), and the forwarding device may be a VTEP (VXLAN Tunnel End Point) function point.
[0086] Optionally, the second core network device may be a core network device that has served the terminal.
[0087] Step 15: Receive a session establishment response sent by the second core network device;
[0088] Step 16: Send a PDU session establishment response to the terminal, wherein the PDU session establishment response carries the accessible VLAN list.
[0089] A PDU session establishment response is sent to the terminal so that the terminal establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0090] In an embodiment of the present invention, different VxLAN tunnels can be created between the terminal and the forwarding device for each different VLAN to support the establishment of multiple subnets under one local area network.
[0091] In an embodiment of the invention, optionally, the accessible VLAN list is carried by FAR (Forwarding Action Rules) in the session establishment request, thereby making minor changes to the existing session establishment request.
[0092] In the embodiment of the present invention, it is optional, please refer to Figure 2 , determining the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list includes:
[0093] Step 21: Determine whether each first VLAN in the requested VLAN list is in the subscribed VLAN list;
[0094] Step 22: If the first VLAN is in the subscribed VLAN list, determine that the first VLAN is an accessible VLAN, and record the accessible VLAN in the accessible VLAN list;
[0095] Step 23: If the first VLAN is not in the subscribed VLAN list, determine that the first VLAN is an inaccessible VLAN.
[0096] In the embodiment of the present invention, by directly comparing the requested VLAN list with the VLANs in the contracted connection, the VLANs accessible to the terminal can be conveniently obtained.
[0097] In an embodiment of the present invention, optionally, the subscribed VLAN list includes a default VLAN; determining the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list further includes: if all the first VLANs are not in the subscribed VLAN list, determining the default VLAN as the accessible VLAN, thereby avoiding the situation where all the first VLANs are not in the subscribed VLAN list.
[0098] Optionally, the contracted VLAN list may be as shown in Table 1:
[0099] Table 1
[0100] VLAN ID VNI ID 100 (default) 6666 101 8888
[0101] In the embodiment of the present invention, optionally, after determining that the first VLAN is an inaccessible VLAN, the method further includes: recording the inaccessible VLAN in an inaccessible subnet list (Not Allowed VLAN list); wherein the PDU session establishment response carries the inaccessible VLAN list.
[0102] Optionally, the inaccessible VLAN list includes the VLAN ID of the inaccessible VLAN.
[0103] Please refer to Figure 3 The embodiment of the present invention also provides a VLAN implementation method, which is executed by a second core network device. In the embodiment of the present invention, the second core network device can be a UPF. Of course, in some other embodiments of the present invention, it is not excluded to use other core network devices for execution.
[0104] The implementation method of the VLAN includes:
[0105] Step 31: receiving a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0106] The first core network device may be SMF.
[0107] In the embodiment of the present invention, optionally, the accessible VLAN list includes VLAN IDs of the accessible VLANs and corresponding VNI IDs.
[0108] Step 32: Establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0109] Specifically, a forwarding device in the second core network device establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0110] Optionally, the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0111] Optionally, the forwarding device uses the IP address assigned to it as the source address, the IP address of the terminal as the destination address, and the VNI ID of each accessible VLAN as an identifier to create multiple VxLAN tunnel configurations to the terminal.
[0112] The forwarding device may be a VTEP function point.
[0113] Step 33: Send a session establishment response to the first core network device.
[0114] In an embodiment of the present invention, different VxLAN tunnels can be created between the terminal and the forwarding device for each different VLAN to support the establishment of multiple subnets under one local area network.
[0115] Please refer to Figure 4 The embodiment of the present invention further provides a VLAN implementation method, which is executed by a terminal and includes:
[0116] Step 41: Send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong;
[0117] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN.
[0118] Step 42: receiving a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list;
[0119] Optionally, the accessible VLAN list includes VLAN IDs of accessible VLANs and corresponding VNI IDs;
[0120] Step 43: Establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0121] Optionally, the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0122] If the technology described in the embodiment of the present invention is applied to a 5G communication system, the terminal may be a 5G terminal device, such as CPE (Customer Premise Equipment).
[0123] In an embodiment of the present invention, different VxLAN tunnels can be created between the terminal and the forwarding device for each different VLAN to support the establishment of multiple subnets under one local area network.
[0124] The following example illustrates the implementation method of VLAN in the above embodiment by taking the scenario where industrial equipment accesses the 5G LAN through a CPE that supports the VxLAN function, and dynamically creates multiple VxLAN tunnels according to terminal requirements to establish multiple subnets under the 5G LAN.
[0125] Please refer to Figure 5 The implementation method of VLAN in the embodiment of the present invention includes:
[0126] Step 51: The CPE sends a PDU session establishment request to the AMF (Access and Mobility Management Function), wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes the first VLAN to which all devices that need to access the LAN through the CPE belong;
[0127] The CPE supports the VxLAN function.
[0128] Step 52: AMF forwards the PDU session request to SMF;
[0129] Step 53: SMF obtains the LAN subscription information of the CPE from the UPM, where the LAN subscription information includes a subscribed VLAN list of the LAN.
[0130] Optionally, the local area network contract information may also include: 5G LAN ID, 5G LAN forwarding characteristic parameters VxLAN, etc.
[0131] Step 54: SMF sends a PDU session establishment response to AMF;
[0132] Step 55: SMF sends a session establishment request to UPF, wherein the session establishment request carries an accessible VLAN list, and the accessible VLAN list is determined according to the requested VLAN list and the subscribed VLAN list;
[0133] For details on how to list the VLANs that SMF can access, see Figure 2 The embodiment shown.
[0134] Step 56: UPF establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list, where the VxLAN tunnel can be identified by a VNI ID.
[0135] Step 57: UPF sends a session establishment response to SMF.
[0136] Step 58: SMF returns a PDU session establishment response to the CPE. The PDU session establishment response carries an accessible VLAN list. Optionally, if the requested VLAN includes an inaccessible VLAN, the inaccessible VLAN list may also be carried.
[0137] Step 59: The CPE establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list. The VxLAN tunnel can be identified by a VNI ID.
[0138] Please refer to Figure 6 The embodiment of the present invention further provides a core network device 60, including:
[0139] A first receiving module 61 is configured to receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong;
[0140] An acquisition module 62 is used to acquire the local area network contract information of the terminal, wherein the local area network contract information includes a contract VLAN list of the local area network;
[0141] A determination module 63, configured to determine an accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list;
[0142] A first sending module 64 is configured to send a session establishment request to the second core network device, wherein the session establishment request carries the accessible VLAN list;
[0143] A second receiving module 65, configured to receive a session establishment response sent by the second core network device;
[0144] The second sending module 66 is configured to send a PDU session establishment response to the terminal, wherein the PDU session establishment response carries the accessible VLAN list.
[0145] Optionally, the determination module 63 is used to determine whether each first VLAN in the requested VLAN list is in the contracted VLAN list; if the first VLAN is in the contracted VLAN list, determine that the first VLAN is an accessible VLAN, and record the accessible VLAN in the accessible VLAN list; if the first VLAN is not in the contracted VLAN list, determine that the first VLAN is an inaccessible VLAN.
[0146] Optionally, the subscribed VLAN list includes a default VLAN; the determining module 63 is further configured to determine that the default VLAN is an accessible VLAN if all of the first VLANs are not in the subscribed VLAN list.
[0147] Optionally, the core network device 60 further includes:
[0148] A recording module is used to record the inaccessible VLAN in an inaccessible subnet list; wherein the PDU session establishment response carries the inaccessible VLAN list.
[0149] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN;
[0150] The subscribed VLAN list includes the VLAN ID of the subscribed VLAN and the corresponding VNI ID;
[0151] The accessible VLAN list includes the VLAN IDs of the accessible VLANs and the corresponding VNI IDs.
[0152] Optionally, the inaccessible VLAN list includes the VLAN ID of the inaccessible VLAN.
[0153] Optionally, the core network device is SMF.
[0154] Please refer to Figure 7 , an embodiment of the present invention further provides a core network device 70, including: a transceiver 71 and a processor 72;
[0155] The transceiver 71 is used to send and receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list contains a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0156] The processor 72 is configured to obtain the LAN subscription information of the terminal, wherein the LAN subscription information includes a subscription VLAN list of the LAN; and determine an accessible VLAN list of the terminal according to the requested VLAN list and the subscription VLAN list;
[0157] The transceiver 71 is further configured to receive a session establishment request to send to the second core network device, wherein the session establishment request carries the accessible VLAN list;
[0158] The transceiver 71 is further configured to receive a session establishment response sent by the second core network device;
[0159] The transceiver 71 is further configured to send a PDU session establishment response to the terminal, wherein the PDU session establishment response carries the accessible VLAN list.
[0160] Optionally, the processor 72 is further configured to determine whether each first VLAN in the requested VLAN list is in the subscribed VLAN list; if the first VLAN is in the subscribed VLAN list, determine that the first VLAN is an accessible VLAN, and record the accessible VLAN in the accessible VLAN list; if the first VLAN is not in the subscribed VLAN list, determine that the first VLAN is an inaccessible VLAN.
[0161] Optionally, the subscribed VLAN list includes a default VLAN; the processor 72 is further configured to determine that the default VLAN is an accessible VLAN if all the first VLANs are not in the subscribed VLAN list.
[0162] Optionally, the processor 72 is further configured to record the inaccessible VLAN in an inaccessible subnet list; wherein the PDU session establishment response carries the inaccessible VLAN list.
[0163] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN;
[0164] The subscribed VLAN list includes the VLAN ID of the subscribed VLAN and the corresponding VNI ID;
[0165] The accessible VLAN list includes the VLAN IDs of the accessible VLANs and the corresponding VNI IDs.
[0166] Optionally, the inaccessible VLAN list includes the VLAN ID of the inaccessible VLAN.
[0167] Optionally, the core network device 70 is SMF.
[0168] Please refer to Figure 8 The embodiment of the present invention further provides a core network device 80, including:
[0169] The receiving module 81 is used to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0170] Establishing module 82, used for establishing a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0171] The sending module 83 is used to send a session establishment response to the first core network device.
[0172] Optionally, the accessible VLAN list includes the VLAN ID and corresponding VNI ID of the accessible VLAN; the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0173] Optionally, the core network device 80 is a UPF.
[0174] Please refer to Fig. 9 , an embodiment of the present invention further provides a core network device 90, including: a transceiver 91 and a processor 92;
[0175] The transceiver 91 is used to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal;
[0176] The processor 92 is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list;
[0177] The transceiver 91 is also used to send a session establishment response to the first core network device.
[0178] Optionally, the accessible VLAN list includes the VLAN ID and corresponding VNI ID of the accessible VLAN; the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0179] Optionally, the core network device 90 is a UPF.
[0180] Please refer to Fig.10 The embodiment of the present invention further provides a terminal 100, including:
[0181] A sending module 101 is used to send a PDU session establishment request to a first core network device, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong;
[0182] The receiving module 102 is used to receive a PDU session establishment response sent by the first core network device, where the PDU session establishment response carries an accessible VLAN list;
[0183] Establish module 103, used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0184] Optionally, the accessible VLAN list includes the VLAN ID and corresponding VNI ID of the accessible VLAN; the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0185] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN.
[0186] Please refer to Fig.11 , an embodiment of the present invention further provides a terminal 110, including: a transceiver 111 and a processor 112;
[0187] The transceiver 111 is used to send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong;
[0188] The transceiver 111 is further configured to receive a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list;
[0189] The processor 112 is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
[0190] Optionally, the accessible VLAN list includes the VLAN ID and corresponding VNI ID of the accessible VLAN; the VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
[0191] Optionally, the requested VLAN list includes a VLAN ID of the first VLAN.
[0192] Please refer to Fig.12 The embodiment of the present invention further provides a core network device 120, including a processor 121, a memory 122, and a computer program stored in the memory 122 and executable on the processor 121. When the computer program is executed by the processor 121, the computer program implements the various processes of the embodiment of the VLAN implementation method performed by the first core network device, or, when the computer program is executed by the processor 121, the computer program implements the various processes of the embodiment of the VLAN implementation method performed by the second core network device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0193] Please refer to Fig.13The embodiment of the present invention further provides a terminal 130, including a processor 131, a memory 132, and a computer program stored in the memory 132 and executable on the processor 131. When the computer program is executed by the processor 131, each process of the embodiment of the VLAN implementation method executed by the terminal is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0194] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the embodiment of the VLAN implementation method executed by the first core network device is implemented, or when the computer program is executed by a processor, each process of the embodiment of the VLAN implementation method executed by the second core network device is implemented, or when the computer program is executed by a processor, each process of the embodiment of the VLAN implementation method executed by the terminal is implemented, and the same technical effect can be achieved, so it will not be repeated here to avoid repetition. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0195] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0196] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0197] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A VLAN implementation method, executed by a first core network device, characterized in that: include: Receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong; Acquire the local area network contract information of the terminal, wherein the local area network contract information includes a contract VLAN list of the local area network; Determine the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list; Send a session establishment request to the second core network device, wherein the session establishment request carries the accessible VLAN list, so that the second core network device establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; Receiving a session establishment response sent by the second core network device; A PDU session establishment response is sent to the terminal, wherein the PDU session establishment response carries the accessible VLAN list, so that the terminal establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
2. The method according to claim 1, characterized in that: Determining the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list includes: Determine whether each first VLAN in the requested VLAN list is in the subscribed VLAN list; If the first VLAN is in the subscribed VLAN list, determining the first VLAN as an accessible VLAN, and recording the accessible VLAN in the accessible VLAN list; If the first VLAN is not in the subscribed VLAN list, it is determined that the first VLAN is an inaccessible VLAN.
3. The method according to claim 2, characterized in that The subscribed VLAN list includes a default VLAN; Determining the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list further includes: If all the first VLANs are not in the subscribed VLAN list, the default VLAN is determined to be an accessible VLAN.
4. The method according to claim 2, characterized in that: After determining that the first VLAN is an inaccessible VLAN, the method further includes: Record the inaccessible VLAN in an inaccessible subnet list; The PDU session establishment response carries the inaccessible VLAN list.
5. The method according to claim 2, characterized in that: The requested VLAN list includes a VLAN ID of the first VLAN; The subscribed VLAN list includes the VLAN ID of the subscribed VLAN and the corresponding VNI ID; The accessible VLAN list includes the VLAN IDs of the accessible VLANs and the corresponding VNI IDs.
6. The method according to claim 4, characterized in that The inaccessible VLAN list includes the VLAN IDs of the inaccessible VLANs.
7. A VLAN implementation method, executed by a second core network device, characterized in that: include: Receiving a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal; Establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; Sending a session establishment response to the first core network device; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
8. The method according to claim 7, characterized in that The accessible VLAN list includes the VLAN IDs of the accessible VLANs and the corresponding VNI IDs; The VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
9. A method for implementing VLAN, executed by a terminal, characterized in that: include: Send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access the local area network through the terminal belong; Receiving a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list; Establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
10. The method according to claim 9, characterized in that The accessible VLAN list includes the VLAN IDs of the accessible VLANs and the corresponding VNI IDs; The VxLAN tunnel of the accessible VLAN is identified by the VNI ID corresponding to the accessible VLAN.
11. The method according to claim 9, characterized in that The requested VLAN list includes the VLAN ID of the first VLAN.
12. A core network device, characterized in that: include: A first receiving module is used to receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong; An acquisition module, used to acquire the local area network contract information of the terminal, wherein the local area network contract information includes a contracted VLAN list of the local area network; A determination module, configured to determine an accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list; A first sending module is used to send a session establishment request to a second core network device, wherein the session establishment request carries the accessible VLAN list, so that the second core network device establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; A second receiving module, used to receive a session establishment response sent by the second core network device; The second sending module is used to send a PDU session establishment response to the terminal, wherein the PDU session establishment response carries the accessible VLAN list, so that the terminal establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
13. A core network device, characterized in that: include: transceivers and processors; The transceiver is used to send and receive a PDU session establishment request sent by a terminal, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list contains a first VLAN to which all devices that need to access a local area network through the terminal belong; The processor is used to obtain the local area network subscription information of the terminal, wherein the local area network subscription information includes a subscription VLAN list of the local area network; Determine the accessible VLAN list of the terminal according to the requested VLAN list and the subscribed VLAN list; The transceiver is further used to receive a session establishment request to send to the second core network device, wherein the session establishment request carries the accessible VLAN list, so that the second core network device establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; The transceiver is further configured to receive a session establishment response sent by the second core network device; The transceiver is also used to send a PDU session establishment response to the terminal, and the PDU session establishment response carries the accessible VLAN list, so that the terminal establishes a VxLAN tunnel for each accessible VLAN in the accessible VLAN list.
14. A core network device, characterized in that: include: A receiving module, configured to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal; Establish a module for establishing a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; A sending module, used to send a session establishment response to the first core network device; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
15. A core network device, characterized in that: include: transceivers and processors; The transceiver is used to receive a session establishment request sent by the first core network device, wherein the session establishment request carries a list of VLANs accessible to the terminal; The processor is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; The transceiver is further configured to send a session establishment response to the first core network device; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
16. A terminal, characterized in that: include: A sending module, configured to send a PDU session establishment request to a first core network device, wherein the PDU session establishment request carries a requested VLAN list, wherein the requested VLAN list includes a first VLAN to which all devices that need to access a local area network through the terminal belong; A receiving module, configured to receive a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list; Establish a module for establishing a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
17. A terminal, characterized in that: include: transceivers and processors; The transceiver is used to send a PDU session establishment request to the first core network device, wherein the PDU session establishment request carries a requested VLAN list, and the requested VLAN list contains the first VLAN to which all devices that need to access the local area network through the terminal belong; The transceiver is further configured to receive a PDU session establishment response sent by the first core network device, wherein the PDU session establishment response carries an accessible VLAN list; The processor is used to establish a VxLAN tunnel for each accessible VLAN in the accessible VLAN list; The accessible VLAN list is determined by the first core network device according to the requested VLAN list in the PDU session request sent by the terminal and the subscribed VLAN list of the local area network in the local area network subscription information of the terminal; The requested VLAN list includes the first VLAN to which all devices that need to access the local area network through the terminal belong.
18. A core network device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the program implements the steps of the method for implementing a VLAN as described in any one of claims 1 to 6; or, when the program is executed by the processor, the program implements the steps of the method for implementing a VLAN as described in claim 7 or 8.
19. A terminal, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the VLAN implementation method according to any one of claims 9 to 11 are implemented.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the computer program implements the steps of the VLAN implementation method as described in any one of claims 1 to 6; or, when the computer program is executed by the processor, the computer program implements the steps of the VLAN implementation method as described in claim 7 or 8; or, when the computer program is executed by the processor, the computer program implements the steps of the VLAN implementation method as described in any one of claims 9 to 11.
Citation Information
Patent Citations
Session management method and device
CN109104448A
Local area network communication management method and device
CN110830983A