A network partitioning method, apparatus, electronic device and storage medium

By using the master gateway device to generate and distribute EasyMesh protocol message information in the home network, the problem of difficulty in setting up VLANs of multiple devices is solved, unified network division and collaborative work is realized, and management efficiency is improved.

CN116155734BActive Publication Date: 2025-06-10CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211682482.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-06-10
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

In home networks, it is difficult for the prior art to set up and work in a coordinated manner, resulting in setup difficulties in the case of multiple devices and complex services.

Method used

The construction policy information of the virtual LAN is obtained through the master gateway device, the EasyMesh protocol message information is generated, and the proxy gateway device is transmitted to the network configuration to build the virtual LAN.

Benefits of technology

It realizes unified network division and collaborative work for multiple devices, simplifies the network setting process, and improves management efficiency in situations where there are many devices and complex services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155734B_ABST
    Figure CN116155734B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a network partitioning method, apparatus, electronic device, and storage medium, including: obtaining construction policy information for constructing a virtual local area network in a network; generating corresponding EasyMesh protocol message information according to the construction policy information; transmitting the EasyMesh protocol message information to the proxy gateway device so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information; using the proxy gateway device that has completed network configuration to construct the corresponding virtual local area network. By adopting the above method, the policy for partitioning the internal network through EasyMesh is distributed to different networking devices (proxy gateway devices) through the master control gateway device. The master control gateway device serves as the center and control terminal of the network, and issues network policies related to constructing a virtual local area network and device network communication, forming the network partitioning and network setting distribution capabilities of the master control gateway device coordinating and controlling networking devices in the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network partitioning method, a network partitioning device, an electronic device and a computer-readable storage medium. Background Art

[0002] A Virtual Local Area Network (VLAN) is a group of logical devices and users that are not restricted by physical location and can be organized based on functions, departments, and applications. The devices and users can communicate with each other as if they were in the same network segment, hence the name VLAN.

[0003] EasyMesh, also known as Multi-AP Specification, is a unified mesh standard developed by the Wi-Fi Alliance. As long as they support EasyMesh, routers of different brands can also form a Mesh network. EasyMesh certification is based on the Multi-AP standard. The Multi-AP network consists of two types of logical entities: a Multi-AP controller (Multi-AP Controller) and one or more Multi-AP agents (Multi-AP Agent). Multi-AP Controller is a logical entity in a Multi-AP network, which is used to control the backhaul link in the fronthaul AP and Multi-AP network. Multi-AP Agent is a logical entity that can execute commands received from the Multi-AP controller, report the link measurement quality and function data of the fronthaul AP, the client hanging down, and the backhaul Link connected to the Controller or other Multi-AP Agent.

[0004] In a home network, there may be a scenario where a VLAN is used to divide the intranet for a certain service or special device. The VLAN setting of the device terminal is generally only set in a single device. For the setting of multiple devices, a single login to the management port of the corresponding device is required to set it. The setting method also needs to be set through different commands or operations according to different devices. It is impossible to set it uniformly, and it is impossible to coordinate the devices. It is difficult to set it for many devices and complex services. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a network partitioning method and a corresponding network partitioning device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] An embodiment of the present invention discloses a network partitioning method, which is applied to a master gateway device. The master gateway device is communicatively connected to multiple proxy gateway devices. The method includes:

[0007] Obtain construction policy information for constructing a virtual local area network in the network;

[0008] Generate corresponding EasyMesh protocol message information according to the construction policy information;

[0009] Transmit the EasyMesh protocol message information to the proxy gateway device so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information;

[0010] Use the proxy gateway device that has completed network configuration to construct the corresponding virtual local area network.

[0011] Optionally, the construction policy information includes network partitioning information and network configuration information. The generating corresponding EasyMesh protocol message information according to the construction policy information includes:

[0012] Determine the virtual local area network to be constructed according to the network partitioning information, and determine the target proxy gateway devices included in the virtual local area network;

[0013] Determine the network configuration information corresponding to each of the target proxy gateway devices;

[0014] Use the network configuration information corresponding to each of the target proxy gateway devices to generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices; wherein, the network configuration information corresponding to the target proxy gateway device is carried in the EasyMesh protocol message information.

[0015] Optionally, the generating the EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices includes:

[0016] Store the network configuration information corresponding to each of the target proxy gateway devices into a specified type field of the EasyMesh protocol to generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices.

[0017] Optionally, the master gateway device includes an EasyMesh controller, and the proxy gateway device includes an EasyMesh agent. The transmitting the EasyMesh protocol message information to the proxy gateway device includes:

[0018] Based on the communication connection between the EasyMesh controller and the EasyMesh agent, the EasyMesh protocol message information is transmitted to the proxy gateway device.

[0019] Optionally, the master gateway device is communicatively connected to a network service management platform, and the obtaining of the construction policy information for constructing a virtual local area network in the network includes:

[0020] Obtaining the construction policy information for constructing the virtual local area network in the network from the network service management platform; wherein, the construction policy information is determined based on the service flow information and / or network message information of the network.

[0021] Optionally, the generating of the corresponding EasyMesh protocol message information according to the construction policy information includes:

[0022] Determining a network construction mode corresponding to the construction policy information, and generating the corresponding EasyMesh protocol message information based on the network construction mode.

[0023] Optionally, the method further includes:

[0024] Creating an access port for the virtual local area network based on the construction policy information.

[0025] An embodiment of the present invention also discloses a network partitioning device, which is applied to a master gateway device. The master gateway device is communicatively connected to multiple proxy gateway devices. The device includes:

[0026] An obtaining module, configured to obtain construction policy information for constructing a virtual local area network in the network;

[0027] A generating module, configured to generate corresponding EasyMesh protocol message information according to the construction policy information;

[0028] A transmitting module, configured to transmit the EasyMesh protocol message information to the proxy gateway device, so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information;

[0029] A constructing module, configured to construct the corresponding virtual local area network by using the proxy gateway device that has completed network configuration.

[0030] Optionally, the construction policy information includes network partitioning information and network configuration information. The generating module includes:

[0031] A first determining sub-module, configured to determine the virtual local area network to be constructed according to the network partitioning information, and determine the target proxy gateway devices included in the virtual local area network;

[0032] A second determination sub-module, configured to determine the network configuration information corresponding to each of the target proxy gateway devices;

[0033] A generation sub-module, configured to generate EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices; wherein, the EasyMesh protocol message information carries the network configuration information corresponding to the target proxy gateway device.

[0034] Optionally, the generation sub-module includes:

[0035] A generation unit, configured to store the network configuration information corresponding to each of the target proxy gateway devices into a specified type field of the EasyMesh protocol, and generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices.

[0036] Optionally, the master gateway device includes an EasyMesh controller, the proxy gateway device includes an EasyMesh agent, and the transmission module includes:

[0037] A transmission sub-module, configured to transmit the EasyMesh protocol message information to the proxy gateway device based on the communication connection between the EasyMesh controller and the EasyMesh agent.

[0038] Optionally, the master gateway device is communicatively connected to a network service management platform, and the acquisition module includes:

[0039] An acquisition sub-module, configured to acquire the construction policy information for constructing the virtual local area network in the network from the network service management platform; wherein, the construction policy information is determined based on the service flow information and / or network message information of the network.

[0040] Optionally, the generation module includes:

[0041] A determination and generation sub-module, configured to determine a network construction mode corresponding to the construction policy information, and generate the corresponding EasyMesh protocol message information based on the network construction mode.

[0042] Optionally, the apparatus further includes:

[0043] A creation module, configured to create an access port of the virtual local area network based on the construction policy information.

[0044] An embodiment of the present invention also discloses an electronic device, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the above-mentioned network partitioning method is implemented.

[0045] An embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned network partitioning method is implemented.

[0046] The embodiments of the present invention have the following advantages:

[0047] In the embodiments of the present invention, the master gateway device can obtain the construction policy information for constructing a virtual local area network in the network, generate corresponding EasyMesh protocol message information according to the construction policy information, and can transmit the EasyMesh protocol message information to the proxy gateway device. The proxy gateway device configures the network according to the EasyMesh protocol message information, and uses the proxy gateway device that has completed the network configuration to construct the corresponding virtual local area network. By adopting the above method, the policy for partitioning the internal network through EasyMesh is distributed to different networking devices (proxy gateway devices) through the master gateway device. As the center and control terminal of the network, the master gateway device issues network policies related to constructing a virtual local area network and device network communication, forming the network partitioning and network setting distribution capabilities of the master gateway device coordinating and controlling networking devices in the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flowchart of the steps of a network partitioning method provided by an embodiment of the present invention;

[0049] Figure 2 is a flowchart of the steps of another network partitioning method provided by an embodiment of the present invention;

[0050] Figures 3 - 5 is a schematic diagram of the content of the EasyMesh protocol provided by an embodiment of the present invention;

[0051] Figure 6 is a schematic diagram of the system architecture provided by an embodiment of the present invention;

[0052] Figure 7 is a schematic diagram of an application scenario of a network partitioning method provided by an embodiment of the present invention;

[0053] Figure 8 is a block diagram of the structure of a network partitioning device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0055] In a home network, there may be a scenario where the internal network is divided by VLAN for a certain service or special device. The VLAN settings of device terminals are generally only set in a single device. For multi-device settings, it is necessary to log in to the management ports of the corresponding devices individually for setting, and the setting methods also need to be set through different commands or operations according to different devices. It is impossible to set uniformly, nor can the devices work collaboratively, and there are difficulties in setting for the situation of many devices and complex services.

[0056] Therefore, the present invention intends to provide a network division method, a corresponding network division device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0057] One of the core concepts of the embodiments of the present invention is that the master gateway device can obtain the construction policy information for building a virtual local area network in the network, generate corresponding EasyMesh protocol message information according to the construction policy information, and can transmit the EasyMesh protocol message information to the proxy gateway device. The proxy gateway device performs network configuration according to the EasyMesh protocol message information, and uses the proxy gateway device that has completed the network configuration to build the corresponding virtual local area network. By adopting the above method, the policy for dividing the internal network through EasyMesh is distributed to different networking devices (proxy gateway devices) by the master gateway device. The master gateway device serves as the center and control terminal of the network, and issues network policies related to building a virtual local area network and device network communication, forming the network division and network setting distribution capabilities of the master gateway device to coordinate and control networking devices in the network.

[0058] Refer to Figure 1 , which shows a step flowchart of a network division method provided by an embodiment of the present invention, applied to a master gateway device. The master gateway device is communicatively connected to multiple proxy gateway devices, and specifically may include the following steps:

[0059] Step 101, obtain the construction policy information for building a virtual local area network in the network.

[0060] In the embodiments of the present invention, the master gateway device is responsible for obtaining the construction policy information for the virtual local area network and distributing the construction policy information to the proxy gateway devices.

[0061] In a home network, the master network device can be a home gateway, and the proxy gateway device can be a home networking device, such as an AP (Wireless Access Point), a router, etc. In a home network, the home gateway is communicatively connected to multiple home networking devices, and the home networking devices are respectively communicatively connected to multiple home terminal devices. Among them, the home terminal devices can include mobile phones, computers, set-top boxes, and smart home devices, etc.

[0062] Step 102: Generate corresponding EasyMesh protocol message information according to the construction policy information.

[0063] In an embodiment of the present invention, corresponding EasyMesh protocol message information can be generated according to the construction policy information.

[0064] The EasyMesh protocol is the Multi-AP specification. It is a set of standards standardized by the Wi-Fi Alliance for the interconnection of various manufacturers. This standard defines the protocol for the interconnection and control of APs from different manufacturers. Any device that supports the EasyMesh protocol can achieve network formation even if they are of different brands. Specifically, EasyMesh consists of a Controller and an Agent. There is a Controller role in the EasyMesh network to manage the entire network, and all APs with the Agent role are connected to it (including indirect connections). The Controller is equivalent to the role of a manager, and it can be the main router responsible for the home network exit, taking over all the requirements of the Agent AP devices.

[0065] Step 103: Transmit the EasyMesh protocol message information to the proxy gateway device so that the proxy gateway device can perform network configuration according to the EasyMesh protocol message information.

[0066] The generated EasyMesh protocol message information can be transmitted to each proxy gateway device. The proxy gateway device can perform network configuration according to the received EasyMesh protocol message information and construct a corresponding virtual local area network. Since the transmitted message information is the message information based on the EasyMesh protocol, it is applicable to proxy gateway devices produced by different manufacturers. By using EasyMesh certified by the WiFi Alliance as the distribution carrier, it has better promotion and universality.

[0067] Step 104: Use the proxy gateway device that has completed network configuration to construct a corresponding virtual local area network.

[0068] In an embodiment of the present invention, a corresponding virtual local area network can be constructed by using the proxy gateway device that has completed network configuration.

[0069] In summary, in the embodiment of the present invention, the master gateway device can obtain the construction policy information for constructing a virtual local area network in the network, generate corresponding EasyMesh protocol message information according to the construction policy information, and transmit the EasyMesh protocol message information to the proxy gateway device. The proxy gateway device performs network configuration according to the EasyMesh protocol message information, and uses the proxy gateway device that has completed the network configuration to construct the corresponding virtual local area network. By adopting the above method, the policy for dividing the internal network through EasyMesh is distributed to different networking devices (proxy gateway devices) through the master gateway device. As the center and control terminal of the network, the master gateway device issues network policies related to constructing a virtual local area network and device network communication, forming the network division and network setting distribution capabilities in the network where the master gateway device coordinates and controls the networking devices.

[0070] Referring to Figure 2 , a flowchart of steps of another network division method provided by an embodiment of the present invention is shown. It is applied to a master gateway device, and the master gateway device is communicatively connected to multiple proxy gateway devices. Specifically, it may include the following steps:

[0071] Step 201, obtain the construction policy information for constructing a virtual local area network in the network.

[0072] In the embodiment of the present invention, the master gateway device establishes a communication connection with multiple proxy gateway devices, and the master gateway device can obtain the construction policy information for constructing a virtual local area network in the current network.

[0073] In an alternative embodiment of the present invention, the master gateway device is communicatively connected to a network service management platform. The step of obtaining the construction policy information for constructing a virtual local area network in step 201 may specifically include the following sub-steps:

[0074] Sub-step S11, obtain the construction policy information for constructing a virtual local area network from the network service management platform.

[0075] Among them, the construction policy information is determined based on the service flow information and / or network message information of the network.

[0076] In the embodiment of the present invention, the master gateway device can also establish a communication connection with the network service management platform. The network service management platform is used to determine the construction policy information for the virtual local area network according to the service flow information and / or network message information in the network.

[0077] In a specific implementation, the network service management platform may include a policy management module and a gateway management module. The policy management module is responsible for setting up virtual local area network (VLAN) partitioning and device forwarding policies for specific service flows or packets with specific characteristics, and sending them to the master gateway device through the gateway management module to achieve the networking partitioning of the internal network.

[0078] Step 202: Generate corresponding EasyMesh protocol packet information according to the construction policy information.

[0079] In an embodiment of the present invention, corresponding EasyMesh protocol packet information can be generated according to the construction policy information.

[0080] In an alternative embodiment of the present invention, the construction policy information includes network partitioning information and network configuration information. Generating corresponding EasyMesh protocol packet information according to the construction policy information in step 202 may specifically include the following sub-steps:

[0081] Sub-step S21: Determine the virtual local area network to be constructed according to the network partitioning information, and determine the target proxy gateway devices included in the virtual local area network.

[0082] Sub-step S22: Determine the network configuration information corresponding to each target proxy gateway device.

[0083] Sub-step S23: Generate corresponding EasyMesh protocol packet information for each target proxy gateway device by using the network configuration information corresponding to each target proxy gateway device.

[0084] Among them, the network configuration information corresponding to the target proxy gateway device is carried in the EasyMesh protocol packet information.

[0085] The network partitioning information may refer to the partitioning information of the virtual local area network. For example, it may include whether partitioning is required, the number of partitions, the partitioning method, and the members included in the partitioned virtual local area network. Among them, the partitioning methods of the virtual local area network include: partitioning the virtual local area network according to ports, partitioning the virtual local area network according to MAC addresses, partitioning the virtual local area network according to the network layer, and partitioning the virtual local area network according to IP multicast.

[0086] The network configuration information may refer to the configuration information of the virtual local area network, such as VLANID attribute configuration.

[0087] In an embodiment of the present invention, the virtual local area network to be constructed can be determined according to network division information, and the members included in the virtual local area network, that is, the target proxy gateway devices, can be determined. Then, the network configuration information corresponding to each target proxy gateway device can be determined, and the EasyMesh protocol message information corresponding to each target proxy gateway device can be generated by using the network configuration information corresponding to each target proxy gateway device.

[0088] In an alternative embodiment of the present invention, in step S23, the EasyMesh protocol message information corresponding to each target proxy gateway device is generated by using the network configuration information corresponding to each target proxy gateway device, which may specifically include the following sub-steps:

[0089] Store the network configuration information corresponding to each target proxy gateway device into the specified type field of the EasyMesh protocol to generate the EasyMesh protocol message information corresponding to each target proxy gateway device.

[0090] The specified type field may be the modified Message version field.

[0091] In a specific implementation, the network configuration information can be carried by the IE format and traffic-related table in the EasyMesh protocol R3, such as information like VLANID. This message can respectively correspond to the network settings of a single device (downlinked device) and a single AP (SSID). Borrow the 802.1Q-related settings in the original EasyMesh protocol message 1905.1a to carry the network configuration information of the virtual local area network from the controller side to the agent side. Originally, this 802.1Q setting was established for QoS in the EasyMesh protocol. In this solution, to avoid conflicts, special processing will be done on the Message version field, and a separate Message version will be used as the VLAN division setting. The original Message version is still used for the original QoS setting. Refer to Figures 3 - 5 As shown, it is a schematic content diagram of the EasyMesh protocol in an embodiment of the present invention. From Figure 4 and Figure 5 it can be seen that the relevant content about VLANID is added.

[0092] In an alternative embodiment of the present invention, in step 202, the EasyMesh protocol message information corresponding to the construction policy information is generated, which may specifically include the following sub-steps:

[0093] Determine the network construction mode corresponding to the construction policy information, and generate the corresponding EasyMesh protocol message information based on the network construction mode.

[0094] The network partitioning method involves various business scenarios of network partitioning. In the embodiments of the present invention, the construction policy information can be classified into multiple network construction modes. Among them, the network construction modes can include a first construction mode, a second construction mode, and a third construction mode.

[0095] The first construction mode can be a normal construction mode, which is applicable to the Internet access scenario of ordinary terminal devices. It can construct a virtual local area network and transform it into a CVLAN (customer VLAN, which refers to the VLAN at the user side, defined by 802.1ad, QinQ, adding an additional label in a VLAN to form a double-label VLAN. The outer layer is the SVLAN, and the inner layer is the CVLAN) on the OLT (optical line terminal) side at the master control gateway device.

[0096] The second construction mode is applicable to the Internet access scenario of dedicated devices that are only used in the internal network. By partitioning the network, some service flow information is distinguished and isolated from other service flow information.

[0097] The third construction mode is applicable to special Internet access scenarios. The service flow in the constructed virtual local area network is initiated by a dedicated device, and this service flow can be transparently transmitted to the OLT and even the metropolitan area network for use.

[0098] Step 203: Based on the communication connection between the EasyMesh controller and the EasyMesh agent, transmit the EasyMesh protocol packet information to the proxy gateway device, so that the proxy gateway device performs network configuration according to the EasyMesh protocol packet information.

[0099] In the embodiments of the present invention, the master control gateway device includes an EasyMesh controller, and the proxy gateway device includes an EasyMesh agent. The EasyMesh protocol packet information can be transmitted to the proxy gateway device based on the communication connection between the EasyMesh controller and the EasyMesh agent.

[0100] Step 204: Use the proxy gateway device that has completed network configuration to construct a corresponding virtual local area network.

[0101] In an alternative embodiment of the present invention, the following steps can specifically be further executed:

[0102] Create an access port for the virtual local area network based on the construction policy information.

[0103] In a specific implementation, the master gateway device may include an EasyMesh controller, a gateway configuration module, and a forwarding module. Among them, the gateway configuration module is responsible for receiving the construction policy information from the gateway management module, that is, the network division information and the network configuration information, and can simultaneously write the construction policy information into the EasyMesh controller and the forwarding module. The forwarding module can create corresponding VLAN rules according to the construction policy information and create access ports for the virtual local area network. The EasyMesh controller can perform corresponding network configuration on the proxy gateway devices in the network through 1905 messages according to the construction policy information.

[0104] The proxy gateway device includes an EasyMesh agent and a forwarding module. Among them, the EasyMesh agent is responsible for communicating with the EasyMesh controller of the master gateway device, receiving the corresponding EasyMesh protocol message information, receiving messages of a special Messagetype, and reading the network configuration information therein. The forwarding module synchronizes the VLAN settings to the proxy gateway device according to the network configuration information to achieve re-division of the network.

[0105] Refer to Figure 6 As shown, it is a schematic diagram of the system architecture of an embodiment of the present invention. The system of the present invention is composed of a network service management platform, a master gateway device, a proxy gateway device, and terminal devices accessing the network.

[0106] In the service management platform, there are a policy management module and a gateway management module. Among them, the policy management module is responsible for setting the virtual local area network division and device forwarding policies for specific service flows or messages with specific characteristics, and sending them to the master gateway device through the gateway management module to achieve the network formation division of the internal network.

[0107] In the master gateway device, there are an EasyMesh controller, a gateway configuration module, and a forwarding module. Among them, the gateway configuration module is responsible for receiving the construction policy information from the gateway management module, that is, the network division information and the network configuration information, and can simultaneously write the construction policy information into the EasyMesh controller and the forwarding module. The forwarding module can create corresponding VLAN rules according to the construction policy information and create access ports for the virtual local area network. The EasyMesh controller can perform corresponding network configuration on the proxy gateway devices in the network through EasyMesh protocol messages according to the construction policy information, so that terminal devices with different network requirements can flexibly configure the virtual local area network in the internal network.

[0108] In the proxy gateway device, it includes an EasyMesh agent and a forwarding module. The EasyMesh agent is responsible for communicating with the master gateway device, the EasyMesh controller, receiving the corresponding EasyMesh protocol message information, receiving messages of special Message type, and reading the network configuration information therein. The forwarding module synchronizes the VLAN settings to the proxy gateway device according to the network configuration information to achieve re-partitioning of the network.

[0109] Figure 6 It also specifically discloses three network construction modes applicable to different service scenarios. As shown in the figure, there are a total of 4 subordinate devices, corresponding to three modes respectively. For the ordinary Internet access devices in Mode 1, no VLAN tag is required and they are in the conventional forwarding mode. The dedicated devices 1 and 2 are in Mode 2, and the two devices respectively require independent VLANs to communicate in the local area network. The dedicated device 3 is a special case where a VLAN tag needs to be added and communicate with the public network or other networks.

[0110] Referring to Figure 7 shown, it is a schematic diagram of the application scenario of a network partitioning method provided by an embodiment of the present invention. The network partitioning method provided by the present invention can be applied to the scenario of constructing a virtual local area network in a home network. In specific implementation, the master network device can be a home gateway, the proxy gateway device can be a home networking device, the home gateway can obtain the construction policy information for constructing a virtual local area network in the home network, generate the corresponding EasyMesh protocol message information according to the construction policy information, and transmit the EasyMesh protocol message information to the home networking device. The home networking device can perform network configuration according to the EasyMesh protocol message information, thereby constructing the corresponding virtual local area network. Through the home gateway, unified control capabilities for the partitioning and setting of the virtual local area network in the home network are formed, and are distributed to other home networking devices (APs or routers) through the distribution method, ensuring consistent control capabilities for traffic flows in the home network, while avoiding the huge workload and possible errors of separately setting multiple devices. As a distribution carrier, EasyMesh certified by the WiFi Alliance has better promotion and universality. Wireless-related APs and routers, etc. will all follow this certification and are applicable to wireless networking.

[0111] Taking the SDN gateway based on software-defined networking (SDN) technology and Openvswitch as an example, in Openvswitch, the VLAN configuration and internal network division settings required for corresponding service flows are issued by the SDN controller. VLAN processing provides corresponding capabilities through the OpenFlow flow table in OpenFlow (a network communication protocol belonging to the data link layer, which can control the forwarding plane of network switches or routers, thereby changing the network path taken by network data packets). Compared with traditional networks, the flow table has advantages such as strong readability and convenient configuration.

[0112] In summary, in the embodiment of the present invention, the master gateway device can obtain the construction strategy information for constructing a virtual local area network in the network, generate corresponding EasyMesh protocol message information according to the construction strategy information, and can transmit the EasyMesh protocol message information to the proxy gateway device. The proxy gateway device performs network configuration according to the EasyMesh protocol message information, and uses the proxy gateway device that has completed network configuration to construct a corresponding virtual local area network. By adopting the above method, the strategy for internal network division is distributed to different networking devices (proxy gateway devices) through the master gateway device via EasyMesh. The master gateway device, as the center and control terminal of the network, issues network policies related to constructing a virtual local area network and device network communication, forming the network division and network setting distribution capabilities in which the master gateway device coordinates and controls networking devices in the network. The present invention uses EasyMesh as the carrier of the internal network VLAN division strategy, and performs internal network division and network configuration from top to bottom. The present invention breaks the independent instruction sets of different terminal devices and the settings of each manufacturer, and plans sub-networks in a unified manner.

[0113] This solution focuses on the re-planning of the entire network. By carrying the VLAN / QinQ settings of networking devices through the EasyMesh networking technology, the devices in the entire home network are uniformly set, avoiding the differences caused by different device instructions. Through EasyMesh for subnet division, special internal network settings and other configurations, the ability to flexibly divide subnets according to actual needs in the home network is realized. At the same time, according to service requirements, VLANs can be flexibly added and deleted to meet the requirements of multiple services running simultaneously and being isolated.

[0114] The present invention is not limited to home networks, but also applicable to various small networks. Such as office places, small local area networks, industrial areas, and so on.

[0115] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0116] Referring to Figure 8 , a structural block diagram of a network partitioning device provided by an embodiment of the present invention is shown. It is applied to a master gateway device, and the master gateway device is communicatively connected to multiple proxy gateway devices. Specifically, it may include the following modules:

[0117] An acquisition module 801, configured to acquire construction policy information for constructing a virtual local area network in the network;

[0118] A generation module 802, configured to generate corresponding EasyMesh protocol message information according to the construction policy information;

[0119] A transmission module 803, configured to transmit the EasyMesh protocol message information to the proxy gateway device, so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information;

[0120] A construction module 804, configured to construct the corresponding virtual local area network by using the proxy gateway device that has completed network configuration.

[0121] In the embodiment of the present invention, the construction policy information includes network partitioning information and network configuration information. The generation module includes:

[0122] A first determination sub-module, configured to determine the virtual local area network to be constructed according to the network partitioning information, and determine the target proxy gateway devices included in the virtual local area network;

[0123] A second determination sub-module, configured to determine the network configuration information corresponding to each of the target proxy gateway devices;

[0124] A generation sub-module, configured to generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices; wherein, the network configuration information corresponding to the target proxy gateway device is carried in the EasyMesh protocol message information.

[0125] In the embodiment of the present invention, the generation sub-module includes:

[0126] A generating unit, configured to store the network configuration information corresponding to each of the target proxy gateway devices into a specified type field of the EasyMesh protocol, and generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices.

[0127] In an embodiment of the present invention, the master gateway device includes an EasyMesh controller, the proxy gateway device includes an EasyMesh agent, and the transmission module includes:

[0128] A transmission sub-module, configured to transmit the EasyMesh protocol message information to the proxy gateway device based on the communication connection between the EasyMesh controller and the EasyMesh agent.

[0129] In an embodiment of the present invention, the master gateway device is communicatively connected to a network service management platform, and the obtaining module includes:

[0130] An obtaining sub-module, configured to obtain the construction policy information for constructing the virtual local area network in the network from the network service management platform; wherein, the construction policy information is determined based on the service flow information and / or network message information of the network.

[0131] In an embodiment of the present invention, the generating module includes:

[0132] A determining and generating sub-module, configured to determine a network construction mode corresponding to the construction policy information, and generate the corresponding EasyMesh protocol message information based on the network construction mode.

[0133] In an embodiment of the present invention, the apparatus further includes:

[0134] A creating module, configured to create an access port of the virtual local area network based on the construction policy information.

[0135] In summary, in the embodiments of the present invention, the master gateway device can obtain the construction policy information for constructing a virtual local area network in the network, generate corresponding EasyMesh protocol message information according to the construction policy information, and can transmit the EasyMesh protocol message information to the proxy gateway device. The proxy gateway device performs network configuration according to the EasyMesh protocol message information, and uses the proxy gateway device that has completed the network configuration to construct the corresponding virtual local area network. By adopting the above method, the policy for dividing the internal network through EasyMesh is distributed to different networking devices (proxy gateway devices) through the master gateway device. As the center and control terminal of the network, the master gateway device issues network policies related to constructing a virtual local area network and device network communication, forming the network division and network setting distribution capabilities in the network where the master gateway device collaborates to control the networking devices.

[0136] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiments.

[0137] The embodiments of the present invention also provide an electronic device, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements each process of the above-mentioned method embodiment for network division, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0138] The embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-mentioned method embodiment for network division, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0139] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.

[0140] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0141] Embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate means for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0142] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0144] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.

[0145] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the said element.

[0146] The above has introduced in detail a network partitioning method, a network partitioning device, an electronic device and a computer-readable storage medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A network partitioning method, characterized in that, it is applied to a master gateway device, the master gateway device is communicatively connected to a plurality of proxy gateway devices, and the method includes: obtaining construction policy information for constructing a virtual local area network in the network, the construction policy information including network partitioning information and network configuration information; generating corresponding EasyMesh protocol message information according to the construction policy information; transmitting the EasyMesh protocol message information to the proxy gateway device so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information; using the proxy gateway device that has completed network configuration to construct the corresponding virtual local area network; wherein, the generating corresponding EasyMesh protocol message information according to the construction policy information includes: determining the virtual local area network to be constructed according to the network partitioning information, and determining the target proxy gateway devices included in the virtual local area network; determining the network configuration information corresponding to each of the target proxy gateway devices; generating the EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices; the EasyMesh protocol message information carries the network configuration information corresponding to the target proxy gateway device.

2. The method according to claim 1, characterized in that, the generating the EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices includes: storing the network configuration information corresponding to each of the target proxy gateway devices into a specified type field of the EasyMesh protocol to generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices.

3. The method according to claim 1, characterized in that, the master gateway device includes an EasyMesh controller, the proxy gateway device includes an EasyMesh agent, and the transmitting the EasyMesh protocol message information to the proxy gateway device includes: transmitting the EasyMesh protocol message information to the proxy gateway device based on the communication connection between the EasyMesh controller and the EasyMesh agent.

4. The method according to claim 1, characterized in that, the master gateway device is communicatively connected to a network service management platform, and the obtaining the construction policy information for constructing a virtual local area network in the network includes: obtaining the construction policy information for constructing the virtual local area network in the network from the network service management platform; wherein, the construction policy information is determined based on the service flow information and / or network message information of the network.

5. The method according to claim 4, characterized in that, the generating corresponding EasyMesh protocol message information according to the construction policy information includes: Determine the network construction mode corresponding to the construction policy information, and generate the corresponding EasyMesh protocol message information based on the network construction mode.

6. The method according to claim 1, wherein, the method further includes: Create an access port for the virtual local area network based on the construction policy information.

7. A network partitioning device, wherein, applied to a master gateway device, the master gateway device is communicatively connected to a plurality of proxy gateway devices, and the device includes: An acquisition module, configured to acquire construction policy information for constructing a virtual local area network in a network, where the construction policy information includes network partitioning information and network configuration information; A generation module, configured to generate corresponding EasyMesh protocol message information according to the construction policy information; A transmission module, configured to transmit the EasyMesh protocol message information to the proxy gateway device, so that the proxy gateway device performs network configuration according to the EasyMesh protocol message information; A construction module, configured to construct the corresponding virtual local area network by using the proxy gateway device that has completed network configuration; wherein, the generation module includes: A first determination sub-module, configured to determine the virtual local area network to be constructed according to the network partitioning information, and determine the target proxy gateway devices included in the virtual local area network; A second determination sub-module, configured to determine the network configuration information corresponding to each of the target proxy gateway devices; A generation sub-module, configured to generate the EasyMesh protocol message information corresponding to each of the target proxy gateway devices by using the network configuration information corresponding to each of the target proxy gateway devices; the EasyMesh protocol message information carries the network configuration information corresponding to the target proxy gateway device.

8. An electronic device, wherein, includes: A processor, a memory, and a computer program stored on the memory and capable of running on the processor, where when the computer program is executed by the processor, it implements a network partitioning method according to any one of claims 1-6.

9. A computer-readable storage medium, wherein, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements a network partitioning method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Networking method for realizing EasyMesh based on set top box WiFi and set top box

    CN112235617A

  • Mesh multi-scene fusion networking method and system and readable storage medium

    CN115412581A