Node adjustment method and device based on communication networking, equipment, medium and product
By configuring automatic contention logic in the communication network, the problems of management chaos and poor communication stability caused by conflicts between multiple AC devices are solved, achieving more efficient AC management and reducing the error rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-03-24
Smart Images

Figure CN121728488A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a node adjustment method, apparatus, device, medium and product based on communication networking. Background Technology
[0002] With the development of communication technology, there are various communication networking methods that enable network devices to establish communication networking relationships, thereby realizing whole-house Wi-Fi communication.
[0003] In related technologies, within the same broadcast domain of a communication network, an Access Controller (AC) manages and controls each wireless access point (AP). The AC can be further divided into Virtual AC (VAC) and Hardware AC (HAC).
[0004] However, in the above networking scenario, when multiple conflicting ACs are configured in the communication network, it will lead to problems such as chaotic AP management and poor communication stability in the communication network. Summary of the Invention
[0005] This application provides a node adjustment method, apparatus, device, medium, and product based on communication networking. The technical solution is as follows: On the one hand, a node adjustment method based on communication networking is provided, executed by the first node, the method comprising: When configured in Access Control (AC) mode, a service status data frame sent by a second node is received, the service status data frame being used to indicate that the second node is configured in AC mode. Obtain the network type of the communication network, wherein the network type is used to indicate the networking method between nodes in the communication network; If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements, the system switches from the AC mode to the wireless access point (AP) mode.
[0006] On the other hand, a communication networking system is provided, the system comprising: a first node and a second node, wherein the first node and the second node are in the same communication network; When the first node is configured in AC mode, it sends a first service status data frame, which is used to indicate that the first node is configured in AC mode. When the second node is configured in AC mode, it sends a second service status data frame, which is used to indicate that the second node is configured in AC mode. The first node is configured to receive the second service status data frame and, if there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements, switch from the AC mode to the wireless access point (AP) mode. The second node is configured to receive the first service status data frame and maintain the AC mode if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the information of the first node meets the mode switching requirements.
[0007] On the other hand, a node adjustment device based on a communication network is provided, the device comprising: The transmission module is configured to receive a service status data frame sent by a second node when configured in Access Control (AC) mode, the service status data frame being used to indicate that the second node is configured in AC mode. The acquisition module is used to acquire the network type of the communication network, wherein the network type is used to indicate the networking method between nodes in the communication network; The mode control module is used to switch from the AC mode to the wireless access point (AP) mode when there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements.
[0008] On the other hand, a communication device is provided, the communication device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the node adjustment method based on communication networking as described in any of the embodiments of this application above.
[0009] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored in the storage medium, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the node adjustment method based on communication networking as described in any of the embodiments of this application above.
[0010] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform any of the node adjustment methods based on communication networking described in the above embodiments.
[0011] The beneficial effects of the technical solutions provided in this application include at least the following: By configuring automatic contention logic on nodes, even without multiple AC devices configured by the user, the system determines whether multiple AC devices can coexist based on the network type of the communication network. If multiple AC devices conflict, they can automatically switch to AP mode to avoid conflicts by determining whether their node information meets the mode switching requirements. This avoids the management chaos caused by configuring multiple AC devices and prevents communication transmission errors caused by configuring multiple AC devices. It improves the management order of the communication network and reduces the error rate of the communication network.
[0012] In addition, if users wish to replace the original AC in the communication network with a higher-configuration AC, they can simply configure a higher-configuration AC. Within the communication network, the original AC will automatically back off by determining whether it meets the mode switching requirements, thus improving the AC migration efficiency. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the structure of a communication networking system provided in an exemplary embodiment of this application; Figure 2 This is a schematic diagram of the parallel network relationship provided in an exemplary embodiment of this application; Figure 3 This is a schematic diagram of the parallel network relationship provided in an exemplary embodiment of this application; Figure 4 This is a schematic diagram of a star network topology provided in an exemplary embodiment of this application; Figure 5 This is a flowchart illustrating a node adjustment method based on a communication network provided in an exemplary embodiment of this application; Figure 6 This is a schematic diagram of a node adjustment process based on a communication network provided in an exemplary embodiment of this application; Figure 7 This is a flowchart of a node adjustment method based on a communication network provided in another exemplary embodiment of this application; Figure 8 This is a flowchart of a node adjustment method based on a communication network provided in another exemplary embodiment of this application; Figure 9 This is a schematic diagram illustrating the process of automatic AP switching AC provided in an exemplary embodiment of this application; Figure 10 This is an interactive flowchart of a communication networking system provided in an exemplary embodiment of this application; Figure 11 This is a structural block diagram of a node adjustment device based on a communication network provided in another exemplary embodiment of this application; Figure 12 This is a structural block diagram of a network device provided in an exemplary embodiment of this application. Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0016] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0017] With the development of communication technology, various communication networking methods exist that allow network devices to establish communication network relationships, thereby realizing whole-house Wi-Fi communication. The requirements for whole-house Wi-Fi communication include at least one of the following: First, seamless roaming, which means maintaining stable Wi-Fi connection when users move between different areas / rooms, avoiding Wi-Fi disconnection or the need to switch Wi-Fi networks during movement between different areas / rooms; Second, it supports multiple frequency bands, meaning it can support both the 2.4GHz band and 5GHz or even higher frequency bands. Third, dynamic expansion, which means flexibly adjusting network nodes according to changes in the overall house layout.
[0018] In related technologies, within the same broadcast domain of a communication network, an Access Controller (AC) manages and controls each Access Point (AP). The AC can be further subdivided into Virtual AC (VAC) and Hardware AC (HAC). The VAC contains a management program that implements functions originally found in the AC (such as Service Set Identifier (SSID) broadcasting, channel allocation, encryption policies, power control, user access permission management, wireless roaming control, load balancing, and RF optimization) in software within the VAC. The VAC manages APs other than those within the VAC itself. Besides fulfilling the functions of an AC, the VAC also enables AP device access.
[0019] However, in the above networking scenario, when multiple conflicting ACs are configured in the communication network, it will lead to problems such as chaotic AP management and poor communication stability in the communication network.
[0020] Indicative, Figure 1 This is a schematic diagram of the structure of a communication networking system provided in an exemplary embodiment of this application. The communication networking system includes at least: a first node 110, a second node 120, and a network device 130.
[0021] In this system, the first node 110 and the second node 120 are implemented as nodes in the communication network system, and both the first node 110 and the second node 120 can be configured as ACs in the communication network system. At least two of the following situations exist: 1. Only one AC can be supported in the communication network, such as: the communication network is implemented as a parallel network or a star network; 2. The communication network can support multiple ACs for separate management, such as implementing the communication network as a parallel network.
[0022] Taking a communication network that supports only one AC as an example, if both the first node 110 and the second node 120 are configured in AC mode, this embodiment of the application provides a node adjustment method. When both the first node 110 and the second node 120 are configured in AC mode, from the perspective of the first node 110, the first node information of the first node 110 and the second node information of the second node 120 are obtained. The first node information and the second node information are compared. If the first node information meets the mode switching requirements, the first node 110 switches from AC mode to AP mode, that is, the first node 110 automatically retreats from being managed and controlled by the AC as an AP. Correspondingly, from the perspective of the second node 120, the first node information of the first node 110 and the second node information of the second node 120 are obtained. The first node information and the second node information are compared. If the first node information meets the mode switching requirements, the second node 120 remains in AC mode, that is, the second node 120 does not retreat from being an AP, but continues to manage and control the AP as an AC.
[0023] When the first node 110 and the second node 120 are configured in AC mode, taking the first node 110 as an example, the cases of being in AC mode include at least one of the following: 1. The first node 110 belongs to HAC, which defaults to AC mode, and HAC cannot back off to AP mode; 2. The first node 110 receives the user's configuration operation and switches to AC mode based on the configuration operation.
[0024] In other words, nodes in a communication network can be in AC mode based on the device type HAC, or they can be in AC mode through configuration operations. However, they will not automatically switch from AP mode to AC mode, thus maintaining the stability of AC in the communication network and avoiding the problem of chaotic device management caused by flexibly changing AP and AC in the communication network.
[0025] In a communication network, if the network is either a parallel network or a star network, and the user mistakenly configures multiple AC devices when configuring the AC, the multiple AC devices will automatically compete for control. The competition will determine one AC device, and the other AC devices will automatically fall back to AP mode and be managed and controlled by the AC device as AP devices.
[0026] By configuring automatic contention logic on nodes, even without multiple AC devices configured by the user, the system determines whether multiple AC devices can coexist based on the network type of the communication network. If multiple AC devices conflict, they can automatically switch to AP mode to avoid conflicts by determining whether their node information meets the mode switching requirements. This avoids the management chaos caused by configuring multiple AC devices and prevents communication transmission errors caused by configuring multiple AC devices. It improves the management order of the communication network and reduces the error rate of the communication network.
[0027] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant regions.
[0028] Based on the above, the node adjustment method based on communication networking provided in the embodiments of this application will be described.
[0029] First, the communication network includes a gateway (GW). The gateway can be implemented as a third-party device independent of each AC and AP, or it can be implemented by the AC. The implementation method of the gateway differs in different communication network types. This application embodiment provides at least one of the following communication network relationships: 1. Parallel Networking Relationship: This refers to a networking method where the VAC operates in routing mode, and at least one of the other access nodes is connected to a third-party gateway device via a wired connection. The VAC and other access nodes are connected via a VLAN network tunnel. The VAC operates in routing mode, also known as Network Address Translation (NAT) mode.
[0030] In a parallel network, the third-party gateway device acts as the gateway, operating in routing mode and providing Dynamic Host Configuration Protocol (DHCP) and network forwarding services; the AP operates in bridge mode and is managed and controlled by the AC; the AC operates in routing mode and is used to manage the AP, and in a parallel network, the AC is implemented as a VAC, and only one VAC is supported in a parallel network.
[0031] In a parallel network configuration, the VLAN tunnel connects the LAN zones of the APs and VACs, forming a local area network. The VAC operates in routing mode, while the APs operate in bridge mode. Some APs are connected to the gateway device via wired connections, and these wired connections participate in data forwarding. The VAC establishes a wired connection with the gateway device. The remaining APs connect to the aforementioned APs or the VAC via wireless or wired connections.
[0032] Indicative, Figure 2 This is a schematic diagram of the parallel network relationship provided in an exemplary embodiment of this application, such as... Figure 2 As shown, VAC device 210 is connected to gateway device 200 via a wired connection, and first AP device 220 and second AP device 230 are also connected to gateway device 200 via wired connections. Additionally, a third AP device 240 is connected to first AP device 220 wirelessly. VAC device 210 operates in routing mode, and the AP devices operate in bridge mode.
[0033] Optionally, Figure 2 The number and connection method of AP devices in the parallel networking relationship shown are only illustrative examples. The parallel networking relationship may also include more or fewer AP devices, and this application embodiment does not limit this.
[0034] 2. Parallel networking: This refers to a networking method in which the VAC and other access nodes operate in bridge mode, and the other access nodes and the VAC communicate and interact through the local area network corresponding to the network device.
[0035] In a parallel network topology, VAC and APs communicate with each other in the LAN area of the network device. VAC and APs operate in bridge mode. Some APs are connected to the gateway device via wired connections, and these wired connections participate in data forwarding. VAC establishes a wired connection with the gateway device. The remaining APs are connected to the aforementioned APs or VAC via wireless or wired connections.
[0036] In a parallel network topology, the third-party gateway device acts as the gateway, operating in routing mode to provide DHCP and network forwarding services. The access points (APs) operate in bridge mode, managed and controlled by the access controller (AC). The AC operates in bridge mode to manage and control the APs. In this parallel network topology, the AC is implemented as a VAC, and multiple ACs can manage multiple APs. For example, multiple ACs are allowed to exist in a parallel network topology to share the management burden of a large number of APs; for instance, AC1 manages 20 APs, and AC2 manages 30 APs.
[0037] Indicative, Figure 3 This is a schematic diagram of the parallel network relationship provided in an exemplary embodiment of this application, such as... Figure 3As shown, VAC device 310 is connected to gateway device 300 via a wired connection. A first AP device 320 and a second AP device 330 are also connected to gateway device 300 via wired connections. Additionally, a third AP device 340 is connected to the first AP device 320 wirelessly. VAC device 310 operates in bridge mode, and the AP devices also operate in bridge mode.
[0038] Optionally, Figure 3 The number and connection method of AP devices in the parallel networking relationship shown are only illustrative examples. The parallel networking relationship may also include more or fewer AP devices, and this application embodiment does not limit this.
[0039] 3. Star topology: This refers to a network topology where the AC operates in routing mode, and the AC acts as the gateway, responsible for providing DHCP and network forwarding services, while other access nodes operate in bridge mode.
[0040] In a star network topology, the AC operates in routing mode, while the APs operate in bridge mode. Some APs are connected to the gateway device (i.e., the AC) via wired connections, while others are connected to the aforementioned APs or the AC via wireless connections.
[0041] In a star network topology, the AC acts as a gateway in routing mode, providing DHCP and network forwarding services. The AC is also used to manage and control the APs. The AC can be implemented as HAC or VAC, and only one AC is supported in a star network topology. The APs operate in bridge mode and are managed and controlled by the AC.
[0042] Indicative, Figure 4 This is a schematic diagram of a star network topology provided in an exemplary embodiment of this application, as shown below. Figure 4 As shown, AC device 410 is implemented as a gateway. A first AP device 420 and a second AP device 430 are connected to AC device 410 via wired connections. Additionally, a third AP device 440 is connected to the first AP device 420 via wireless connections. AC device 410 operates in routing mode, and the AP devices operate in bridge mode.
[0043] Optionally, Figure 4 The number and connection method of AP devices in the wireless networking relationship shown are only illustrative examples. The wireless networking relationship may also include more or fewer AP devices, and this application embodiment does not limit this.
[0044] In addition, the following characteristics exist for the aforementioned HAC and VAC: First, HAC is fixed in AC mode and cannot be modified to AP mode. In other words, HAC has the highest priority as AC in communication network. Second, VAC can be set to AC mode via software and can switch between AC mode and AP mode.
[0045] Based on the above, the node adjustment method based on communication networking provided in the embodiments of this application will be described. Figure 5 This is a flowchart illustrating a node adjustment method based on a communication network, provided in an exemplary embodiment of this application. The method is executed by a first node, which can be implemented as follows: Figure 1 The first node shown. Figure 5 As shown, the method includes the following steps.
[0046] Step 520: When configured in AC mode, receive the service status data frame sent by the second node.
[0047] The service status data frame is used to indicate that the second node is configured in AC mode.
[0048] In other words, at least one of the first and second nodes is currently configured in AC mode. The ways in which the first and second nodes are configured in AC mode include at least one of the following: 1. The first node is configured as the default HAC, meaning it belongs to HAC and is in AC mode by default; 2. The first node is configured in AC mode based on a received configuration operation. In some embodiments, in a star network, one of the first and second nodes can be implemented as HAC, and the other can be configured as VAC; or, in a star or parallel network, both the first and second nodes are configured as VAC. If both the first and second nodes are implemented as HAC, since HAC is used in a star network, and a star network can only support one AC, and HAC cannot switch to AP mode, at least one of the following processing methods is used: First, report an error to the user, instructing the user to shut down one of the first and second nodes; Second, automatically and randomly shut down any one of the first and second nodes; Third, automatically disconnect the connection between any one of the first and second nodes in the communication network, such as closing the port of any one of the first and second nodes in the communication network. It is worth noting that the above processing method is only an illustrative example, and the embodiments of this application do not limit the processing method in which both the first node and the second node are implemented as HAC.
[0049] In some embodiments, the service status data frame is implemented as an SDP_NOTIFY message, and the service status data frame is a data frame sent outward by a node configured in AC mode. That is, the first node is also configured in AC mode, so it also sends out service status data frames from the perspective of the first node.
[0050] Optionally, when configured in AC mode, a first service status data frame is sent to indicate that the first node is configured in AC mode; and the first node receives a second service status data frame sent by the second node to indicate that the second node is configured in AC mode.
[0051] In some embodiments, an AC device identifies the presence of other AC devices by listening to service status data frames sent by those devices. That is, when a first node receives a second service status data frame sent by a second node, it indicates that the first node recognizes the second node as an AC device; similarly, when a second node receives a first service status data frame sent by a first node, it indicates that the second node recognizes the first node as an AC device. In other words, the first node and the second node each identify the presence of the other's AC device by receiving service status data frames sent by the other.
[0052] From the perspective of the first node sending the first service status data frame, when the first node is configured in AC mode, sending the first service status data frame includes the following case: First, when configured in AC mode, in response to receiving a search data frame sent by the AP, a first service status data frame is sent. In some embodiments, when the first node receives a search data frame SDP_SEARCH message sent by an AP, it responds with a first service status data frame. In some embodiments, the first node responds with a first service status data frame when it receives a search data frame sent by a managed AP, or when it receives a search data frame from an unnetworked AP.
[0053] In some embodiments, when the search data frame includes the media access control (MAC) address of the initiator, the first service status data frame sent by the first node is implemented as a unicast reply to the MAC address, thereby reducing the impact of network broadcast on the wireless air interface.
[0054] Similarly, when the second node receives the SDP_SEARCH message, a search data frame, from the AP, it responds with a second service status data frame. In some embodiments, the second node responds with a second service status data frame when it receives a search data frame from a managed AP, or when it receives a search data frame from an unnetworked AP.
[0055] Second, when configured in AC mode, the first service status data frame is sent periodically.
[0056] In some embodiments, the first node and the second node are each assigned a specific Manufacturer Identification (MID) for a specific functional purpose. In some embodiments, a specific MID is used to send a heartbeat message (Alive message). For the first node, the heartbeat message is implemented as the first service status data frame mentioned above. Similarly, for the second node, the heartbeat message is implemented as the second service status data frame mentioned above.
[0057] The aforementioned heartbeat messages can effectively reduce the number of broadcast messages sent by the AP to search data frames, thereby reducing the impact on the wireless air interface.
[0058] Step 540: Obtain the network type of the communication network.
[0059] The network type is used to indicate the networking method between nodes in a communication network.
[0060] In some embodiments, the network topology includes any of the following: parallel networking, parallel networking, and star networking. The different network topologies have been described in detail in the above embodiments and will not be repeated here.
[0061] In some embodiments, when the first node obtains the network type of the communication network, it determines the network type of the communication network based on the first node's operating mode and the gateway status.
[0062] Optionally, when the first node is configured in AC mode and runs in bridge mode, the network type of the communication network is determined to be parallel network; when the first node is configured in AC mode and runs in routing mode, the gateway status of the first node is obtained. If the first node is not configured as a gateway in the communication network, the network type of the communication network is parallel network; if the first node is configured as a gateway in the communication network, the network type of the communication network is star network.
[0063] Alternatively, in some embodiments, after the communication network is created, the network type between each node is automatically determined, and a type identifier is generated and stored in the AC device. The first node then directly obtains the type identifier and determines the network type based on it. In some embodiments, when the network type is implemented as a star network and the first node is implemented as an VAC, the first node can also determine whether to act as a gateway in the communication network through the type identifier; while when the network type is implemented as a star network and the first node is implemented as an HAC, the first node defaults to acting as a gateway in the communication network.
[0064] The network topology of the communication network is used to indicate whether multiple AC-managed APs can be supported in the communication network. In some embodiments, when the network topology of the communication network is implemented as a parallel network, multiple AC-managed APs are supported; when the network topology of the communication network is implemented as a parallel network or a star network, only one AC-managed AP is supported in the communication network.
[0065] In other words, when the communication network is implemented as a parallel network, there is no conflict between the AC mode of the first node and the AC mode of the second node; when the communication network is implemented as a parallel network or a star network, there is a conflict between the AC mode of the first node and the AC mode of the second node, that is, the AC mode of the first node and the AC mode of the second node cannot coexist.
[0066] Step 560: If there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the first node information of the first node meets the mode switching requirements, switch from AC mode to AP mode.
[0067] In some embodiments, when the network type is a parallel network or a star network, and the first node information of the first node meets the mode switching requirements, the AC mode is switched to the AP mode.
[0068] For parallel and star topologies that only support a single AC, the system identifies situations where multiple ACs conflict. It then sets up an automatic contention mechanism to determine which AC remains the AC while the others fall back to AP status. This improves the accuracy and efficiency of configuring each node in the communication network and avoids the complex process of manual troubleshooting.
[0069] In parallel or star network topologies, only a single AC (Access Controller) manages and controls the APs. Therefore, there is a conflict between the AC modes of the first and second nodes. A comparison needs to be made between the first and second nodes to determine which node automatically backs off, exits AC mode, and switches to AP mode. Thus, the first node's information is obtained, and if the first node's information meets the mode switching requirements, the system switches from AC mode to AP mode.
[0070] In some embodiments, whether the first node information of the first node meets the mode switching requirements can be determined by the first node and synchronized to the second node; or, the second node can determine the information and synchronize the result to the first node; or, the first node and the second node can determine the information separately, and the logic used in the determination is the same, so the same result is obtained.
[0071] In some embodiments, when switching the first node from AC mode to AP mode, the operating mode of the first node is directly switched from AC mode to AP mode. That is, the first node includes a mode flag bit, and the mode flag bit is switched from a first value to a second value. The first value is used to indicate that the first node is running in AC mode, and the second value is used to indicate that the first node is running in AP mode.
[0072] In addition, since the AC operates in routing mode and the AP operates in bridge mode in parallel or star networking, after the first node switches from AC mode to AP mode, the working mode of the first node is changed from routing mode to bridge mode. In other words, the working mode of the first node is switched to bridge mode.
[0073] When the first node needs to switch from AC mode to AP mode, the working mode of the first node is automatically switched from routing mode to bridge mode. This avoids the situation where the working mode of the first node is incompatible with AP mode, which may cause errors in routing and improves the routing accuracy of the communication network.
[0074] In this embodiment, the example given is that the first node's information meets the mode switching requirements. In other embodiments, the automatic competition between the first and second nodes can also result in the second node's information meeting the mode switching requirements. Therefore, if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the second node's information meets the mode switching requirements, the first node remains in AC mode. In other words, in the automatic competition between the first and second nodes, the first node competes to become AC, while the second node automatically backs down to become AP. Thus, from the second node's perspective, the second node automatically switches from AC mode to AP mode.
[0075] Whether it is the first node or the second node, both can automatically compete to remain as AC, while the other party retreats to become AP, thus improving the accuracy of node control in the communication network.
[0076] Indicative, Figure 6 This is a schematic diagram of a node adjustment process based on a communication network provided in an exemplary embodiment of this application, as shown below. Figure 6 As shown, taking a parallel network as an example, the communication network is configured with a first node 610 and a second node 620. Both the first node 610 and the second node 620 are configured in AC mode. If there is a conflict between the AC modes of the two nodes in the parallel network, the first node 610 and the second node 620 will automatically compete. When the second node 620 is determined to be AC, the first node 610 will automatically switch to AP mode.
[0077] It is worth noting that this embodiment uses the example of a conflict between the AC modes of the first node and the second node for illustration. Optionally, the number of nodes configured in AC mode and having a conflict in the communication network can be more. For example, if three or more nodes are configured in AC mode and have a conflict, automatic competition will be carried out among the three or more nodes, and finally one node will be determined to maintain AC mode while the other nodes will switch to AP mode.
[0078] In summary, the node adjustment method based on communication networking provided in this application, by configuring automatic contention logic on nodes, determines whether multiple AC devices can coexist based on the network type of the communication network when the user has not configured multiple AC devices. If multiple AC devices conflict, they can determine whether their node information meets the mode switching requirements based on the automatic contention logic, and automatically switch to AP mode to back off if the requirements are met. This avoids the management chaos caused by the configuration of multiple AC devices and the communication transmission errors caused by the configuration of multiple AC devices, thereby improving the management order of the communication network and reducing the error rate of the communication network.
[0079] In addition, if users wish to replace the original AC in the communication network with a higher-configuration AC, they can simply configure a higher-configuration AC. Within the communication network, the original AC will automatically back off by determining whether it meets the mode switching requirements, thus improving the AC migration efficiency.
[0080] In an optional embodiment, when it is determined that the first node information of the first node meets the mode switching requirements, the first node information is compared with the second node information of the second node to determine whether the first node information meets the mode switching requirements. Figure 7 This is a flowchart of a node adjustment method based on a communication network provided in another exemplary embodiment of this application, such as... Figure 7 As shown, the method is executed by the first node, and step 560 above may also include steps 561 to 563.
[0081] Step 561: If there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, obtain the information of the first node and the information of the second node.
[0082] From the perspective of the first node, the first node information is its own information, which is directly read from the information configuration storage space. The second node information is information related to the second node. In some embodiments, the first node obtains the second node information in at least one of the following ways: 1. The second node information is carried in a second service status data frame, and the first node reads the second node information from the second service status data frame after receiving it; 2. The first node sends an information retrieval request frame to the second node, and the second node sends the second node information to the first node based on the information retrieval request frame; similarly, the second node sends an information retrieval request frame to the first node, and the first node sends the first node information to the second node based on the information retrieval request frame.
[0083] It is worth noting that, in the above embodiment, taking the conflict between the AC modes of the first node and the second node as an example, optionally, the number of conflicting nodes in the communication network can be more. For example, if three or more nodes are configured in AC mode, then one node needs to be automatically selected as the AC from among the three or more nodes, and the other nodes retreat to become APs. Illustratively, the first node obtains the node information corresponding to each node that conflicts between the AC modes.
[0084] To illustrate, in a communication network, if nodes A, B, and C are configured in AC mode, then from the perspective of node A, node information a of node A itself is obtained, node information b of node B is obtained, and node information c of node C is obtained. Node information b and node information c can be obtained sequentially and compared with node information a sequentially, or node information b and node information c can be obtained simultaneously and compared with node information a simultaneously.
[0085] Step 562: Compare the information of the first node and the information of the second node to obtain the comparison result.
[0086] In some embodiments, the first node information includes multiple sub-information, the second node information includes multiple sub-information, and the multiple sub-information in the first node information and the multiple sub-information in the second node information are compared sequentially according to the dimensions of the sub-information.
[0087] Optionally, the first node information includes at least one of the following sub-information: The type of the first node includes either HAC or VAC, meaning the first node belongs to either HAC or VAC. The first memory space of the first node refers to the memory size of the hardware storage space of the first node. It is illustrative. The first memory space ram_size of the first node is 128M, 256M or 512M, etc. The size of the first memory space is a statically fixed value after the first node is designed and manufactured.
[0088] The first computing power of the first node refers to the computing capability of the computing chip in the first node. In some embodiments, the first computing power of the first node is computing_score1 = cpu_core1 × cpu_mhz1 × cpu_ipc1, where cpu_core1 refers to the number of cores of the computing chip in the first node, cpu_mhz1 refers to the clock frequency of the computing chip in the first node, and cpu_ipc1 refers to the number of instructions per clock cycle of the computing chip in the first node, that is, the number of instructions executed by the computing chip in one clock cycle.
[0089] The number of APs managed by the first node, that is, the maximum number of APs that the first node can manage.
[0090] The number of idle APs managed by the first node, that is, the number of APs that can be managed by the first node after the current AP is managed.
[0091] The first MAC address of the first node, i.e., the MAC address of the first node.
[0092] Similarly, the second node information includes at least one of the following sub-information: The type of the second node includes either HAC or VAC, meaning the second node belongs to either HAC or VAC; however, the first node and the second node cannot both belong to HAC at the same time.
[0093] The second memory space of the second node refers to the memory size of the hardware storage space of the second node. It is illustrative. The second memory space ram_size of the second node is 128M, 256M or 512M, etc. The size of the second memory space is a statically fixed value after the second node is designed and manufactured.
[0094] The second computing power of the second node refers to the computing capability of the computing chip in the second node. In some embodiments, the second computing power of the second node is computing_score2 = cpu_core2 × cpu_mhz2 × cpu_ipc2, where cpu_core2 refers to the number of cores of the computing chip in the second node, cpu_mhz2 refers to the clock frequency of the computing chip in the second node, and cpu_ipc2 refers to the number of instructions per clock cycle of the computing chip in the second node, that is, the number of instructions executed by the computing chip in one clock cycle.
[0095] The number of APs managed by the second node, that is, the maximum number of APs that the second node can manage.
[0096] The number of idle APs managed by the second node, that is, the number of APs that can be managed by the second node after the current AP is managed.
[0097] The second MAC address of the second node, i.e., the MAC address of the second node.
[0098] In some embodiments, the sub-information types in the first node information may be the same as or different from the sub-information types in the second node information. For example, assuming the sub-information types in the first node information and the second node information are the same, the first node information includes the type of the first node, the first memory space of the first node, the number of APs managed by the first node, and the first MAC address. Correspondingly, the second node information includes the type of the second node, the second memory space of the second node, the number of APs managed by the second node, and the second MAC address.
[0099] When comparing the information of the first node and the information of the second node, at least one of the following methods is included: 1. Different sub-information corresponds to different mode switching requirements. The first node information and the second node information are compared in descending order of priority according to the multiple mode switching requirements until a difference is found between the first node information and the second node information, and the comparison result is obtained.
[0100] Different sub-information is configured with different priorities. The sub-information in the first node information and the second node information are compared from high to low priority until the sub-information of the first node information and the sub-information of the second node information are different and there is a difference in quality. The comparison result is obtained based on the difference in quality.
[0101] As an illustration, the priority of the sub-information from high to low is as follows: node type, memory space, computing power, number of managed APs, number of idle managed APs, and MAC address.
[0102] In other words, when comparing the information of the first node and the second node, the system first compares the type of the first node in the first node information and the type of the second node in the second node information. If the type of the first node is VAC and the type of the second node is HAC, then the comparison result is obtained, and the first node meets the mode switching requirements. Since HAC is fixed as AC mode, the second node has higher priority as AC. Otherwise, the second node meets the mode switching requirements. If the type of the first node is VAC and the type of the second node is also VAC, then the system continues to compare the next piece of information: memory space.
[0103] If the first memory space of the first node is less than the second memory space of the second node, the comparison result is obtained, and the first node meets the mode switching requirements, such as: the first memory space is 128M and the second memory space is 256M; otherwise, the second node meets the mode switching requirements. If the first memory space of the first node is equal to the second memory space of the second node, the comparison continues to the next piece of information: computing power.
[0104] If the first node's first computing power is less than the second node's second computing power, a comparison result is obtained, and the first node meets the mode switching requirements, such as: first computing power is 50, second computing power is 80; otherwise, the second node meets the mode switching requirements. If the first node's first computing power is equal to the second node's second computing power, then the comparison continues to the next sub-information: the number of managed APs.
[0105] If the number of managed APs on the first node is less than the number of managed APs on the second node, a comparison result is obtained, and the first node meets the mode switching requirements, such as: the number of managed APs on the first node is 15, and the number of managed APs on the second node is 30; otherwise, the second node meets the mode switching requirements. If the number of managed APs on the first node is equal to the number of managed APs on the second node, the next piece of information is compared: the number of idle managed APs or their MAC addresses.
[0106] In some embodiments, when comparing the number of managed APs, the number of idle managed APs of the first node and the number of idle managed APs of the second node are first obtained. If the number of idle managed APs of the first node / second node is 0, it is directly rejected. For example, if the number of idle managed APs of the first node is 0, the comparison result is obtained, and the first node meets the mode switching requirements.
[0107] Taking the comparison of the number of idle managed APs as an example, if the number of idle managed APs on the first node is less than the number of idle managed APs on the second node, then the comparison result is obtained, and the first node meets the mode switching requirements, such as: the number of idle managed APs on the first node is 8, and the number of idle managed APs on the second node is 15; otherwise, the second node meets the mode switching requirements. If the number of idle managed APs on the first node is equal to the number of idle managed APs on the second node, then the next piece of information is compared: MAC address.
[0108] Taking MAC address comparison as an example, if the first MAC address of the first node is less than the second MAC address of the second node, a comparison result is obtained, and the first node meets the mode switching requirements; otherwise, the second node meets the mode switching requirements. Since the first MAC address of the first node and the second MAC address of the second node are different, even if the above sub-information cannot be compared, the node that meets the mode switching requirements can be determined from the first node and the second node by comparing the first MAC address and the second MAC address.
[0109] 2. Quantize the sub-information of the first node information to obtain the first quantized value; quantify the sub-information of the second node information to obtain the second quantized value, and compare the first quantized value and the second quantized value.
[0110] The process involves quantifying each sub-information in the first node information to obtain a first quantized value. This involves converting each sub-information into a numerical value and calculating it according to a preset fusion formula. For example, the node type in the first node information is converted into a node type value, such as HAC corresponding to value 15 and VAC corresponding to value 2. The memory space size is mapped to memory values according to a mapping relationship, such as 128M corresponding to value 1, 256M corresponding to value 2, and 512M corresponding to value 3. The computing power values of the first and second nodes are calculated and normalized to a range of 0-2 to obtain the first and second computing power values of the first and second nodes. The ratio of the number of managed APs in the first node to a preset value is used to obtain the first managed value, and the ratio of the number of managed APs in the second node to a preset value is used to obtain the second managed value.
[0111] The sum of the node type value, memory value, computing power value, and management value of the first node is used as the first quantization value.
[0112] Similarly, the sum of the node type value, memory value, second computing power value, and second management value of the second node is used as the second quantization value.
[0113] The first and second quantization values are compared to obtain the comparison results. Among them, the quantization value of HAC is set larger, which can be clearly distinguished from VAC, so that the HAC type node can dominate in the quantization value.
[0114] In some embodiments, if the first quantization value and the second quantization value are equal, the first MAC address and the second MAC address are compared, and the MAC address with the larger MAC address is selected as the AC. Optionally, the MAC values of the first MAC address and the second MAC address can be directly compared, such as converting the first MAC address and the second MAC address into 12-bit hexadecimal strings and then comparing them.
[0115] It is worth noting that the above method of comparing the first node information and the second node information is only an illustrative example, and the specific method of comparing the first node information and the second node information in the embodiments of this application is not limited.
[0116] Step 563: If the comparison result indicates that the first node meets the mode switching requirements, switch from AC mode to AP mode.
[0117] Based on the above, the first node meets the mode switching requirements, including at least one of the following: 1. The first node is VAC, and the second node is HAC; 2. The first memory space of the first node is smaller than the second memory space of the second node; 3. The first node's computing power is less than the second node's computing power; 4. The number of APs managed by the first node is less than the number of APs managed by the second node; 5. The number of idle APs managed by the first node is less than the number of idle APs managed by the second node; 6. The first MAC address of the first node is less than the second MAC address of the second node.
[0118] If any of the above conditions are met, the first node meets the mode switching requirements and will automatically switch from AC mode to AP mode.
[0119] The information of the first node and the second node are compared based on parameters such as node type, memory space, computing power, number of managed APs, and MAC address. The first node and the second node are identified from various dimensions as suitable nodes to serve as ACs, thereby improving the accuracy and efficiency of AC configuration.
[0120] Among them, the judgment conditions that meet the mode switching requirements are judged in order of priority.
[0121] In the above embodiments, the example of the first node meeting the mode switching requirements is used for illustration. Conversely, if the positions of the first node and the second node are interchanged, the second node meets the mode switching requirements, that is, the second node automatically switches from AC mode to AP mode, while the first node remains in AC mode.
[0122] That is, if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the second node information of the second node meets the mode switching requirements, the first node is kept in AC mode.
[0123] In an optional embodiment, the AC mode of the first node and the AC mode of the second node can be implemented to be conflict-free.
[0124] If there is no conflict between the AC mode of the first node and the AC mode of the second node determined based on the network topology, the AC mode of the first node shall be maintained.
[0125] In some embodiments, when the network topology is a parallel network, the AC mode of the first node is maintained. Optionally, multiple ACs share the management of APs in the communication network according to their AC load capacity, wherein the load capacity is determined by at least one of the parameters such as memory space, computing power, and the number of APs managed. When the communication network is implemented as a parallel network, multiple VACs can coexist and manage and control a portion of the APs separately through a decentralized management approach, improving the AP control capability and adaptability under the parallel network.
[0126] In summary, the node adjustment method based on communication networking provided in this application, by configuring automatic contention logic on nodes, determines whether multiple AC devices can coexist based on the network type of the communication network when the user has not configured multiple AC devices. If multiple AC devices conflict, they can determine whether their node information meets the mode switching requirements based on the automatic contention logic, and automatically switch to AP mode to back off if the requirements are met. This avoids the management chaos caused by the configuration of multiple AC devices and the communication transmission errors caused by the configuration of multiple AC devices, thereby improving the management order of the communication network and reducing the error rate of the communication network.
[0127] By setting a priority-based logic among multiple sub-information items, on the one hand, HAC is given the highest priority, and on the other hand, MAC address comparison is given as a backup condition to ensure that one node can be selected as AC between the first node and the second node, while the other is set aside as AP. This improves the accuracy of AC selection, avoids conflicts between ACs, and reduces the probability of communication anomalies.
[0128] In some embodiments, after the first node switches from AC mode to AP mode, the first node, as an AP in the communication network, still needs to access the AC. Figure 8 This is a flowchart of a node adjustment method based on a communication network provided in another exemplary embodiment of this application. The method is executed by a first node, such as... Figure 8 As shown, after step 560 above, at least step 820 is included, and optionally steps 840 to 860 are also included.
[0129] Step 820: Connect to the second node in AC mode.
[0130] The second node is used to manage the first node. For example, if the first and second nodes automatically compete to determine the AC (Access Controller), then after the first node steps down to AP (Access Point), the second node acts as the AC in the communication network to manage the APs. After the first node switches to AP mode, it connects to the second node as an AP in the communication network and is managed by the second node.
[0131] The second node being in AC mode includes any of the following situations: 1. The second node belongs to HAC and is in AC mode by default, and cannot switch to AP mode. That is to say, in the automatic contention process, the second node is superior to the first node in node type because it belongs to HAC, and becomes the AC in the communication network; 2. The second node belongs to VAC and is configured as VAC through configuration operations. In this case, the second node is superior to the first node in at least one of the following in the automatic contention process: memory space, computing power, number of managed APs, and MAC address, and thus becomes the AC in the communication network.
[0132] The VAC has a management program installed. Through the management program, the functions that were originally in the HAC (such as SSID broadcasting, channel allocation, encryption policy, power control, user access permission management, wireless roaming control, load balancing, RF optimization, etc.) are implemented in the VAC through software. The VAC can manage APs other than the VAC itself. In addition to realizing the functions of the AC, the VAC can also realize the device access function of APs.
[0133] Optionally, after the second node becomes an AC, there may be AC switching based on the user's configuration. During the switching, if the user adds a third node to the communication network and the third node is configured as an AC, the first node can automatically switch from the second node to access the third node. Optionally, the method also includes the following steps.
[0134] Step 840: If the second node loses contact for a preset duration and receives a third service status data frame sent by the third node, obtain the third node information of the third node.
[0135] The timing for the first node to switch AC requires at least one of the following conditions to be met: 1. The second node has been out of contact for a preset duration. For example, the second node has been out of contact for 120 seconds. This means the first node has not received the second service status data frame sent by the second node. Therefore, if the first node does not receive the second service status data frame sent by the second node within the preset duration, it indicates that the second node has been out of contact for the preset duration.
[0136] Optionally, if the AP attempts to connect to the AC via wireless scanning, but the AC does not respond and accept the AP, and the timeout reaches the second duration, the AP will automatically switch to another AC and attempt to connect. If the AP has already connected to the AC, and the AC is disconnected for more than a preset time, such as when the AP cannot receive service status data frames sent by the AC for a preset time, the AP will automatically attempt to connect to another AC.
[0137] 2. A third node is configured in AC mode. When a third service status data frame is received from a third node, it indicates that a third node has joined the communication network and is configured in AC mode. The third service status data frame indicates that the third node is configured in AC mode. A third node being configured in AC mode includes any of the following: 1. The third node belongs to HAC and is in AC mode by default; 2. The third node is configured in AC mode based on a received configuration operation.
[0138] 3. The first node is an AP that uses a wired backhaul link.
[0139] In other words, APs accessed wirelessly do not perform automatic backoff. Optionally, for APs accessed wirelessly, they can be manually reset and then re-added to the communication network; or, for APs accessed wirelessly, AC handover can be achieved after they are connected to the communication network via a wired link.
[0140] Step 860: Compare the second node information of the second node with the third node information, and if the comparison result meets the requirements, switch to access the third node.
[0141] The third node is used to manage the first node. The third node can be an existing AP node in the communication network configured in AC mode, or it can be a newly added node to the communication network configured in AC mode.
[0142] In some embodiments, after comparing the information of the second node and the information of the third node, if the information of the third node is equal to or better than the information of the second node, the comparison result meets the requirements, and the first node switches to access the third node.
[0143] For illustrative purposes, the alignment result meets the requirements when the third node belongs to HAC and the second node belongs to VAC; or, the alignment result meets the requirements when both the second and third nodes belong to HAC; or, the alignment result meets the requirements when both the second and third nodes belong to VAC.
[0144] The above embodiments take comparing the node types in the second node information and the third node information as an example. In some embodiments, the comparison results can also be obtained by comparing parameters such as memory space, computing power, and number of managed APs in the second node information and the third node information.
[0145] In some embodiments, when the first node switches to the third node, the first node first rolls back the original AC information, that is, rolls back the AC information related to the second node, and then re-initiates the AC search logic to search for the third node, thereby connecting to the third node. Illustratively, the first node broadcasts a search data frame and receives a third service status data frame sent by the third node, thereby connecting to the third node based on the third service status data frame.
[0146] It is worth noting that the above embodiment uses the example of the first node switching from the second node to the third node, and the first node in the above embodiment is the node initially configured in AC mode. The first node can also be any AP, such as the fourth node.
[0147] Schematic illustration: After the fourth node joins the communication network, since the first and second nodes are configured in AC mode, it receives the first service status data frame sent by the first node, which is also the second service status data frame sent by the second node. Based on the service status data frames sent by the two nodes respectively, the fourth node obtains the first node information of the first node and the second node information of the second node. Based on these two node information, the fourth node selects a node as the AC from the first and second nodes and connects to it. The method by which the fourth node selects the AC is the same as the method by which the first and second nodes automatically compete to determine the AC. Schematic illustration: The fourth node connects to the second node, meaning the second node acts as the AC to manage and control the fourth node.
[0148] If the second node loses contact for a preset duration and the fourth node receives the third service status data frame sent by the third node, the fourth node obtains the third node information of the third node, compares the second node information of the second node with the third node information, and switches to access the third node if the comparison result meets the requirements.
[0149] It is worth noting that the aforementioned first node can also be implemented as a fifth node. After joining the communication network, the fifth node connects to the second node, meaning the second node acts as the AC (Access Controller) to manage and control the fifth node. If the second node becomes disconnected for a preset duration, and the fifth node receives a third service status data frame from the third node, the fifth node obtains the third node information from the third node, compares it with the second node information from the second node, and switches to connect to the third node if the comparison result meets the requirements.
[0150] Indicative, Figure 9 This is a schematic diagram illustrating the process of automatic AP switching to AC provided in an exemplary embodiment of this application, as shown below. Figure 9 As shown, AP node 910 was originally connected to AC node 920. When AC node 920 is disconnected for a preset period of time and a new AC node 930 sends a service status data frame to AP node 910, AP node 910 will automatically switch to AC node 930, that is, AP node 910 will automatically switch to the management scope of AC node 930.
[0151] In summary, the node adjustment method based on communication networking provided in this application, by configuring automatic contention logic on nodes, determines whether multiple AC devices can coexist based on the network type of the communication network when the user has not configured multiple AC devices. If multiple AC devices conflict, they can determine whether their node information meets the mode switching requirements based on the automatic contention logic, and automatically switch to AP mode to back off if the requirements are met. This avoids the management chaos caused by the configuration of multiple AC devices and the communication transmission errors caused by the configuration of multiple AC devices, thereby improving the management order of the communication network and reducing the error rate of the communication network.
[0152] When a user needs to replace the AC in the communication network, they only need to add a new AC to the communication network. Then, the multiple ACs in the communication network will automatically compete for the right to retain one AC and the others will fall back to APs, which improves the efficiency and accuracy of configuring ACs in the communication network.
[0153] In addition, by configuring a new AC to the communication network and backing up the original AC, the AP will automatically switch from the original AC to the new AC through AC identification, which improves the efficiency of configuring ACs for the communication network.
[0154] When the second node is found to be out of contact from the perspective of the AP (first node), the third node is selected as the AC. Thus, the first node switches to the access third node based on the third node's information, which improves the flexibility and efficiency of switching ACs in the communication network.
[0155] In today's digital age, the stability and coverage of home networks are crucial for improving quality of life. With the increasing prevalence of smart home devices, the demand for home networks is constantly growing. Currently, home network coverage mainly includes the following methods.
[0156] 1. Wi-Fi Router: This method is simple and convenient, but it has obvious limitations. The coverage area of a router is limited, usually only meeting the needs of small apartments. Furthermore, it supports a relatively limited number of devices, and network performance will significantly degrade when too many devices are connected. Therefore, this solution is more suitable for small apartments with a limited number of devices.
[0157] 2. Multiple Wi-Fi Routers: Using multiple routers to create a network can effectively improve network coverage and meet the needs of large homes. However, this method is less aesthetically pleasing because the routers usually need to be externally deployed, which affects the overall appearance of the home environment. Furthermore, deploying and managing multiple routers requires some technical knowledge, which may pose a challenge for ordinary users.
[0158] 3. AC+AP: Initially, the AC+AP solution was mainly used in enterprise-level scenarios, but with technological advancements and changing societal needs, this solution has gradually entered the home market. The AC+AP solution offers significant advantages, such as easy expansion; users can flexibly combine APs according to their actual needs to achieve optimal network coverage.
[0159] The AC+AP solution includes HAC+AP and VAC+AP. HAC+AP is relatively more expensive and primarily suitable for users with large homes. It provides high-performance network services, meeting users' high demands for network quality and stability. VAC+AP is more cost-effective, similar to multiple Wi-Fi routers. It is suitable for customers with large homes who also value aesthetics. VAC+AP not only meets users' needs for network coverage and performance but also helps maintain a clean and aesthetically pleasing home environment.
[0160] In related technologies, for AC+AP solutions, when multiple VACs or HAC+VACs are configured in the communication network, manual intervention is required to resolve the issue, as automatic repair is not possible. Since multiple ACs cannot coexist, communication errors and other problems may occur.
[0161] If VAC is switched automatically, that is, if nodes can automatically switch from AP to AC, it will lead to a high frequency of VAC changes in the communication network, resulting in AP management chaos.
[0162] Figure 10 This is an interactive flowchart of a communication networking system provided in an exemplary embodiment of this application, such as... Figure 10 As shown, the communication network system includes a first node and a second node, which are in the same communication network. The interaction process includes at least the following steps.
[0163] Step 1010: When the first node is configured in AC mode, it sends the first service status data frame.
[0164] The first service status data frame is used to indicate that the first node is configured in AC mode. Optionally, the first service status data frame is sent via broadcast or unicast. In this embodiment, the first node periodically broadcasts the first service status data frame as an example.
[0165] Step 1020: When the second node is configured in AC mode, it sends a second service status data frame.
[0166] The second service status data frame is used to indicate that the second node is configured in AC mode. Optionally, the second service status data frame is sent via broadcast or unicast. In this embodiment, the second node periodically broadcasts the second service status data frame as an example.
[0167] Step 1030: The first node receives the second service status data frame.
[0168] The first node receives the second service status data frame broadcast by the second node, thereby identifying that the second node belongs to AC mode in the communication network.
[0169] Step 1040: If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements, the first node switches from AC mode to wireless access point (AP) mode.
[0170] That is, if the first node is in parallel or star topology and the comparison result between the information of the first node and the information of the second node indicates that the first node meets the mode switching requirements, the first node will automatically switch to AP mode.
[0171] Optionally, if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, the information of the first node and the information of the second node are obtained; the information of the first node and the information of the second node are compared to obtain the comparison result; if the comparison result indicates that the first node meets the mode switching requirements, the AC mode is switched to the AP mode.
[0172] The first node meets the mode switching requirements, including at least one of the following: The first node is a virtual AC, and the second node is a hardware AC; The first memory space of the first node is smaller than the second memory space of the second node; The first node's first computing power is less than the second node's second computing power; The number of APs managed by the first node is less than the number of APs managed by the second node; The number of idle APs managed by the first node is less than the number of idle APs managed by the second node. The first MAC address of the first node is less than the second MAC address of the second node.
[0173] As an illustration, competition between ACs will be based on the following information: 1. HAC flag: hac = 0 or 1; 0 indicates that the node is VAC, and 1 indicates that the node is HAC.
[0174] 2. Memory size: ram_size = 128M, 256M, 512M, etc. Select the node with the largest memory as the AC.
[0175] 3. Computing power: computing_score = cpu_core * cpu_mhz * cpu_ipc. Select the node with the highest computing power as the AC.
[0176] 4. Total number of manageable APs: agent_max_count. Select the node with the largest total number of manageable APs as the AC.
[0177] 5. Number of idle APs that can be managed: agent_free_count.
[0178] Optionally, if agent_free_count is 0, then it is a veto.
[0179] 6. MAC address. Select the node with the larger MAC address as the AC.
[0180] Step 1050: The second node receives the first service status data frame.
[0181] The second node receives the first service status data frame broadcast by the first node, thereby identifying that the first node belongs to AC mode in the communication network.
[0182] Step 1060: If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the information of the first node meets the mode switching requirements, the second node shall maintain the AC mode.
[0183] That is, if the first node is in parallel or star topology and the comparison result between the information of the first node and the information of the second node indicates that the first node meets the mode switching requirements, the first node remains in AC mode.
[0184] Optionally, if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, the information of the first node and the information of the second node are obtained; the information of the first node and the information of the second node are compared to obtain the comparison result; if the comparison result indicates that the first node meets the mode switching requirements, it remains in AC mode.
[0185] By exchanging service status data frames, the first node can identify the second node as an AC, and the second node can identify the first node as an AC, thus improving the accuracy of mutual identification between ACs in the communication network.
[0186] In some embodiments, the communication network configuration in this application is simple, and the network configuration between multiple nodes is completed automatically, avoiding manual operation by the user. That is, after multiple APs access the communication network, the network type is determined and the network is automatically completed according to the network type.
[0187] Additionally, if the network type indicates that the AC mode of the first node and the AC mode of the second node do not conflict, then both the first node and the second node will remain in AC mode.
[0188] In addition, the system automatically detects AC configuration errors during the configuration process and provides a recovery mechanism to ensure that network unavailability is not caused by user error in AC configuration. This includes at least the following scenarios: Scenario 1: If multiple ACs are configured incorrectly by human error, AP management will become chaotic and network links will be disordered, ultimately rendering the network unusable.
[0189] In this embodiment, multiple ACs automatically compete with each other, and the weaker ACs retreat to AP mode, that is, they switch from AC mode to AP mode.
[0190] Scenario 2: Upgrade AC, that is, replace the original VAC with HAC or a higher-configuration VAC.
[0191] Optionally, it supports a smooth upgrade from a VAC+AP solution to a HAC+AP solution without resetting all APs and renetworking, thus improving AC switching efficiency.
[0192] In this embodiment, there is no need to manually configure the original VAC to AP mode. When the VAC encounters a high-configuration AC, it automatically switches to AP mode. When other APs in the communication network discover that the original VAC has lost connection and a new AC has appeared, they automatically migrate to the new AC. Thus, the network automatically completes the migration.
[0193] Scenario 3: In a parallel network scenario, as the number of APs increases, the computing power of a single VAC is insufficient to manage the newly added APs, so an additional VAC is needed to share the management burden.
[0194] Optionally, conditional expansion is supported. If the number of APs increases, a new VAC is required to collaboratively manage the newly added APs.
[0195] In this embodiment of the application, a new VAC is configured in the communication network. The AP discovers multiple VACs by automatic search and selects one with a management capacity to connect to.
[0196] In this embodiment of the application, when the communication network is implemented as a parallel network or a star network, a single AC is retained in the communication network. When HAC and VAC automatically compete, HAC is selected as the AC and VAC retreats to AP. When VAC and VAC automatically compete, the VAC with stronger capabilities wins and the other VACs retreat to AP.
[0197] When the communication network is implemented as a parallel network, multiple ACs operate in bridge mode, and the multiple ACs share the management of APs in the communication network according to their load capacity. Among them, the APs preferentially connect to the AC with the strongest capacity.
[0198] When an AP selects an AC, if the AP is accessing the communication network for the first time, there is only one AC in the communication network, and the AP directly connects to that AC; if multiple ACs exist during the network setup, the ACs will automatically compete for one AC and reserve one AC for the AP to connect to.
[0199] If an AP needs to switch ACs after network deployment, the timing for the AP to switch ACs includes at least one of the following conditions: 1. The original AC to which the AP is connected has been disconnected for a preset duration, such as when the original AC backs down to become the AP during automatic contention. 2. A new AC has emerged, such as receiving a service status data frame from a new AC within the most recent first duration. Specifically, if the original AC is a HAC, the new AC must also be an HAC to be considered; if the original AC is a VAC, both VAC and HAC can be considered; that is, in principle, a better AC is preferred. 3. The AP is implemented as an AP using a wired backhaul link.
[0200] Optionally, the AP can also monitor information from other ACs. After the network is completed, the AP will passively monitor and store information from other ACs.
[0201] In summary, the communication networking system provided in this application, by configuring automatic contention logic on nodes, determines whether multiple AC devices can coexist based on the network type when the user has not configured multiple AC devices. If multiple AC devices conflict, they can determine whether their node information meets the mode switching requirements based on the automatic contention logic, and automatically switch to AP mode to back off if the requirements are met. This avoids the management chaos caused by configuring multiple AC devices and the communication transmission errors caused by configuring multiple AC devices, thereby improving the management order of the communication network and reducing the error rate of the communication network.
[0202] In addition, the communication networking system provided in this application avoids nodes automatically switching from AP mode to AC mode. Instead, nodes will only be in AC mode if they are manually configured or if the node type itself belongs to HAC. This avoids dynamic changes between AP and AC modes and frequent changes in AC identity in the communication network, thus improving the stability of the communication network.
[0203] Figure 11 This is a schematic diagram of the structure of a node adjustment device based on a communication network provided in an exemplary embodiment of this application, as shown below. Figure 11 As shown, the device is implemented in the first node, and the device includes at least the following parts.
[0204] Transmission module 1110 is configured to receive a service status data frame sent by a second node when configured in access control (AC) mode, the service status data frame being used to indicate that the second node is configured in AC mode. The acquisition module 1120 is used to acquire the network type of the communication network, wherein the network type is used to indicate the networking method between nodes in the communication network; The mode control module 1130 is used to switch from the AC mode to the wireless access point (AP) mode when there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements.
[0205] In an optional embodiment, the acquisition module 1120 is further configured to acquire the first node information and the second node information of the second node when a conflict is determined between the AC mode of the first node and the AC mode of the second node based on the network type. The mode control module 1130 is also used to compare the first node information and the second node information to obtain a comparison result; and when the comparison result indicates that the first node meets the mode switching requirements, it switches from the AC mode to the AP mode.
[0206] In an optional embodiment, the first node meeting the mode switching requirement includes at least one of the following: The first node is a virtual AC, and the second node is a hardware AC; The first memory space of the first node is smaller than the second memory space of the second node; The first computing power of the first node is less than the second computing power of the second node; The number of APs managed by the first node is less than the number of APs managed by the second node; The number of idle APs managed by the first node is less than the number of idle APs managed by the second node; The first media access control MAC address of the first node is less than the second MAC address of the second node.
[0207] In an optional embodiment, the mode control module 1130 is further configured to compare the first node information and the second node information in descending order of priority according to multiple mode switching requirements, until there is a difference between the first node information and the second node information, and obtain the comparison result.
[0208] In an optional embodiment, the mode control module 1130 is further configured to switch from the AC mode to the AP mode when the network type is a parallel network or a star network and the first node information of the first node meets the mode switching requirements.
[0209] In an optional embodiment, the mode control module 1130 is further configured to switch the working mode from routing mode to bridge mode when the network type is a parallel network or a star network and the first node information of the first node meets the mode switching requirements.
[0210] In an optional embodiment, the mode control module 1130 is further configured to maintain the AC mode of the first node if there is no conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type.
[0211] In an optional embodiment, the mode control module 1130 is further configured to maintain the AC mode of the first node when the network type is a parallel network.
[0212] In an optional embodiment, the mode control module 1130 is further configured to maintain the first node in the AC mode when a conflict is determined between the AC mode of the first node and the AC mode of the second node based on the network type, and the second node information of the second node meets the mode switching requirements.
[0213] In an optional embodiment, the transmission module 1110 is further configured to, when configured in the AC mode, send a first service status data frame, the first service status data frame indicating that the first node is configured in the AC mode; and receive a second service status data frame sent by the second node, the second service status data frame indicating that the second node is configured in the AC mode.
[0214] In an optional embodiment, the transmission module 1110 is further configured to, when configured in the AC mode, send the first service status data frame in response to receiving a search data frame sent by the AP. The transmission module 1110 is also configured to periodically send the first service status data frame when configured in the AC mode.
[0215] In an optional embodiment, the first node is configured in the AC mode in at least one of the following ways: The first node is a hardware AC and is in the AC mode by default; The first node is configured to the AC mode based on the received configuration operation.
[0216] In an optional embodiment, the mode control module 1130 is further configured to access the second node in the AC mode, the second node being configured to manage the first node; The acquisition module 1120 is also used to acquire the third node information of the third node when the second node loses contact for a preset time and receives a third service status data frame sent by the third node. The mode control module 1130 is also used to compare the second node information of the second node with the third node information, and if the comparison result meets the requirements, switch to access the third node, which is used to manage the first node.
[0217] In summary, the node adjustment device based on communication networking provided in this application, by configuring automatic contention logic on the nodes, determines whether multiple AC devices can coexist based on the network type of the communication network when the user has not configured multiple AC devices. If multiple AC devices conflict, the multiple AC devices can determine whether their node information meets the mode switching requirements based on the automatic contention logic, and automatically switch to AP mode to back off if the mode switching requirements are met. This avoids the problem of communication network management chaos caused by the configuration of multiple AC devices, and avoids communication transmission errors caused by the configuration of multiple AC devices, thereby improving the management order of the communication network and reducing the error rate of the communication network.
[0218] It should be noted that the node adjustment device based on communication networking provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the node adjustment device based on communication networking provided in the above embodiments and the node adjustment method embodiments based on communication networking belong to the same concept. The specific implementation process is detailed in the method embodiments and will not be repeated here.
[0219] Figure 12 This illustration shows a structural block diagram of a communication device 1200 provided in an exemplary embodiment of this application. The communication device 1200 may be referred to as an AP, AC, VAC, ONU, or other names.
[0220] Typically, the communication device 1200 includes a processor 1201 and a memory 1202.
[0221] Processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1201 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1201 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1201 may further include an Artificial Intelligence (AI) processor for handling computational operations related to machine learning.
[0222] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 is used to store at least one instruction, which is executed by the processor 1201 to implement the node adjustment method based on communication networking provided in the method embodiments of this application.
[0223] In some embodiments, the communication device 1200 also includes other components 1203, the type and number of which can be selected based on the functional requirements of the communication device 1200. Those skilled in the art will understand that... Figure 12 The structure shown does not constitute a limitation on the communication device 1200, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0224] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM). The sequence numbers of the embodiments in this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0225] This application also provides a communication device, which includes a processor and a memory. The memory stores at least one instruction, at least one program, a code set, or an instruction set. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the node adjustment method based on communication networking as described in any of the above embodiments of this application.
[0226] This application also provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the node adjustment method based on communication networking as described in any of the above embodiments of this application.
[0227] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform any of the node adjustment methods based on communication networking described in the above embodiments.
[0228] It should be noted that the collection and processing of relevant data (such as dialogue content) in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0229] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0230] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A node adjustment method based on communication networking, characterized in that, Executed by the first node, the method includes: When configured in Access Control (AC) mode, a service status data frame sent by a second node is received, the service status data frame being used to indicate that the second node is configured in AC mode. Obtain the network type of the communication network, wherein the network type is used to indicate the networking method between nodes in the communication network; If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements, the system switches from the AC mode to the wireless access point (AP) mode.
2. The method according to claim 1, characterized in that, The step of switching from AC mode to wireless access point (AP) mode when there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the first node information of the first node meets the mode switching requirements, includes: If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, obtain the information of the first node and the information of the second node. The comparison results are obtained by comparing the information of the first node and the information of the second node. If the comparison result indicates that the first node meets the mode switching requirements, the node is switched from the AC mode to the AP mode.
3. The method according to claim 2, characterized in that, The first node meets the mode switching requirements, including at least one of the following: The first node is a virtual AC, and the second node is a hardware AC; The first memory space of the first node is smaller than the second memory space of the second node; The first computing power of the first node is less than the second computing power of the second node; The number of APs managed by the first node is less than the number of APs managed by the second node; The number of idle APs managed by the first node is less than the number of idle APs managed by the second node; The first media access control MAC address of the first node is less than the second MAC address of the second node.
4. The method according to claim 3, characterized in that, The comparison of the first node information and the second node information to obtain the comparison result includes: The first node information and the second node information are compared in descending order of priority according to the multiple mode switching requirements until a difference is found between the first node information and the second node information, and the comparison result is obtained.
5. The method according to any one of claims 1 to 4, characterized in that, The step of switching from AC mode to wireless access point (AP) mode when there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the first node information of the first node meets the mode switching requirements, includes: If the network type is a parallel network or a star network, and the first node information of the first node meets the mode switching requirements, the AC mode is switched to AP mode.
6. The method according to claim 5, characterized in that, The step of switching from AC mode to wireless access point (AP) mode when the network type is a parallel network or a star network and the first node information of the first node meets the mode switching requirements includes: If the network type is a parallel network or a star network, and the first node information of the first node meets the mode switching requirements, the working mode will be switched from routing mode to bridge mode.
7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If there is no conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, the AC mode of the first node shall be maintained.
8. The method according to claim 7, characterized in that, Maintaining the AC mode of the first node when there is no conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type includes: If the network type is a parallel network, the AC mode of the first node is maintained.
9. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the second node information of the second node meets the mode switching requirements, the first node shall remain in the AC mode.
10. The method according to any one of claims 1 to 4, characterized in that, When configured in Access Control (AC) mode, receiving service status data frames sent by the second node includes: When configured in AC mode, a first service status data frame is sent, the first service status data frame indicating that the first node is configured in AC mode; and a second service status data frame is received from the second node, the second service status data frame indicating that the second node is configured in AC mode.
11. The method according to claim 10, characterized in that, When configured in the AC mode, sending a first service status data frame includes at least one of the following: When configured in the AC mode, in response to receiving a search data frame sent by the AP, the first service status data frame is sent. When configured in the AC mode, the first service status data frame is sent periodically.
12. The method according to any one of claims 1 to 4, characterized in that, The first node is configured in the AC mode in at least one of the following ways: The first node is a hardware AC and is in the AC mode by default; The first node is configured to the AC mode based on the received configuration operation.
13. The method according to any one of claims 1 to 4, characterized in that, After switching from AC mode to wireless access point (AP) mode, the method further includes: The second node, which is in AC mode, is connected to the first node. The method further includes: If the second node loses contact for a preset period of time and receives a third service status data frame sent by the third node, obtain the third node information of the third node. The second node information of the second node is compared with the information of the third node, and if the comparison result meets the requirements, the connection is switched to the third node, which is used to manage the first node.
14. A communication networking system, characterized in that, The system includes: a first node and a second node, wherein the first node and the second node are in the same communication network; When the first node is configured in AC mode, it sends a first service status data frame, which is used to indicate that the first node is configured in AC mode. When the second node is configured in AC mode, it sends a second service status data frame, which is used to indicate that the second node is configured in AC mode. The first node is configured to receive the second service status data frame and, if there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements, switch from the AC mode to the wireless access point (AP) mode. The second node is configured to receive the first service status data frame and maintain the AC mode if there is a conflict between the AC mode of the first node and the AC mode of the second node determined based on the network type, and the information of the first node meets the mode switching requirements.
15. A node adjustment device based on a communication network, characterized in that, The device includes: The transmission module is configured to receive a service status data frame sent by a second node when configured in Access Control (AC) mode, the service status data frame being used to indicate that the second node is configured in AC mode. The acquisition module is used to acquire the network type of the communication network, wherein the network type is used to indicate the networking method between nodes in the communication network; The mode control module is used to switch from the AC mode to the wireless access point (AP) mode when there is a conflict between the AC mode of the first node and the AC mode of the second node based on the network type, and the first node information of the first node meets the mode switching requirements.
16. A communication device, characterized in that, The communication device includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the node adjustment method based on communication networking as described in any one of claims 1 to 13.
17. A computer-readable storage medium, characterized in that, The storage medium stores at least one program segment, which is loaded and executed by a processor to implement the node adjustment method based on communication networking as described in any one of claims 1 to 13.
18. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the node adjustment method based on any one of claims 1 to 13.