Topology updating method, router equipment and storage medium
By establishing a MAC address mapping table for electronic devices in a Wi-Fi 6 and Wi-Fi 7 router network, the problem of abnormal network topology updates was solved, and the user experience was improved.
Patent Information
- Application Number
- CN202411223687.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2026-03-17
AI Technical Summary
After a Wi-Fi 6 router and a Wi-Fi 7 router are successfully connected, a problem occurs where mobile devices that support Wi-Fi 7 roam across routers in the wireless mesh network, resulting in abnormal network topology updates and a degraded user experience.
When a reassociation request message is received, the first MAC address and the second MAC address of the electronic device are obtained, a mapping relationship between IP address and MAC address is established, a mapping relationship table is generated, and the MAC address is updated in the topology update notification and response messages to ensure the consistency of the network topology.
It reduces the probability of abnormal network topology display in wireless mesh networks, thus improving the user experience.
Smart Images

Figure CN121692345A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a topology update method, router device and storage medium. Background Technology
[0002] A router is a hardware device that connects two or more networks, acting as a gateway between them. It's a specialized, intelligent network device that reads the address in each data packet and determines how to transmit it. It can understand different protocols, such as Ethernet used by a local area network (LAN) and TCP / IP used by the Internet.
[0003] With the development of wireless network technology, WiFi 6 and WiFi 7 routers have been launched and put into use. However, when WiFi 6 and WiFi 7 routers are networked together, WiFi 7-enabled mobile devices may experience abnormal network topology updates when roaming between the two routers in the network, greatly reducing the user experience. Summary of the Invention
[0004] This application provides a topology update method, router device, and storage medium, aiming to reduce the probability of network topology update anomalies and improve user experience when a Wi-Fi 7-enabled mobile terminal roams across routers in the wireless mesh network after a Wi-Fi 6 router and a Wi-Fi 7 router have successfully formed a network.
[0005] In a first aspect, embodiments of this application provide a topology update method. The method includes: when the received data packet is a reassociation request message, obtaining a first MAC address and a second MAC address from the reassociation request message, wherein the first MAC address identifies a first link layer of a second electronic device corresponding to the reassociation request message, and the second MAC address identifies a second link layer of the second electronic device, the first link layer and the second link layer being different link layers of the second electronic device; sending a broadcast ping request to the wireless mesh network where the first electronic device is located, causing the second electronic device to return a response message, the response message including the IP address and the first MAC address of the second electronic device; in response to the response message returned by the second electronic device, establishing a mapping relationship between the IP address, the second MAC address, and the first MAC address, and writing it into a mapping relationship table; updating the second MAC address in a topology update notification message and / or a topology update response message to the first MAC address based on the mapping relationship table, so that a third electronic device receiving the topology update notification message and the topology update response message performs a topology update, completing the roaming of the second electronic device.
[0006] It is understood that a reassociation request message is sent by an electronic device to the destination router when roaming, to instruct the destination router to allow the electronic device to go online on that router. For example, the aforementioned reassociation request message could be sent from a second electronic device to a first electronic device.
[0007] For example, the above-mentioned reassociation request message can be the Reassociation request message in the following embodiments. Specifically, whether it is a reassociation request message can be determined by the "Type / Subtype" field in the following embodiments.
[0008] For example, the first electronic device may be the main router in the following embodiments, specifically a router device using Wi-Fi 7.
[0009] For example, the second electronic device may be a mobile terminal as described in the following embodiments, specifically a mobile phone STA1 device that supports Wi-Fi 7.
[0010] For example, the third electronic device may be a slave router in the following embodiments, specifically a router device using Wi-Fi 6.
[0011] For example, the first MAC address may be the MAC address of the Layer 3 link in the following embodiments, namely mldmac.
[0012] For example, the second MAC address can be the MAC address of the Layer 2 link in the following embodiments, i.e., mac.
[0013] For example, a first electronic device sends a broadcast ping request to its wireless mesh network. All electronic devices in the same network will receive the ping request. After receiving the request, a second electronic device will return a response message, which includes the second electronic device's IP address and a first MAC address. Therefore, based on the response message returned by the second electronic device, the first electronic device can determine that the second electronic device's first MAC address is the MAC address of a Layer 3 link and establish a mapping table between the first MAC address and the second MAC address.
[0014] For example, the mapping table described above could be a data file stored in the local storage of the first electronic device.
[0015] For example, the topology update notification message and the topology update response message are generated by the first electronic device. After the second electronic device comes online, the network topology changes. Therefore, the first electronic device sends the change information to other routers in the same network through these two messages, so that the network topology in each router remains consistent.
[0016] Therefore, in this embodiment, when the first electronic device receives a reassociation request message, it sends a broadcast ping request to the wired mesh network where the first electronic device is located, so that the second electronic device returns its corresponding IP address and first MAC address, establishing a mapping relationship between the first MAC address and the second MAC address. When the first electronic device generates a topology update notification message and / or a topology update response message, it updates the second MAC address in the message to the first MAC address, thereby enabling the second electronic device to use the same MAC address for service operations in the wireless mesh network where the first electronic device is located. This reduces the probability of abnormal network topology display in the wireless mesh network and improves the user experience.
[0017] According to the first aspect, the method further includes the second electronic device being configured to respond to a ping request.
[0018] According to the first aspect, or any implementation of the first aspect above, the first electronic device and the third electronic device form a network based on the EasyMesh protocol to construct the wireless mesh network.
[0019] According to the first aspect, or any implementation of the first aspect above, the first electronic device uses seventh-generation wireless network technology and the third electronic device uses sixth-generation wireless network technology to construct the wireless mesh network.
[0020] According to the first aspect, or any implementation of the first aspect above, the second electronic device uses seventh-generation wireless network technology to send the reassociation request message to the first electronic device in the wireless mesh network.
[0021] According to the first aspect, or any implementation of the first aspect above, the first link layer is a Layer 3 link of the second electronic device, and the second link layer is a Layer 2 link of the second electronic device.
[0022] According to the first aspect, or any implementation of the first aspect above, the construction of the mapping table between the first MAC address and the second MAC address further includes: writing the BSSID of the first electronic device into the mapping table to construct the mapping relationship between the BSSID, the first MAC address and the second MAC address.
[0023] For example, the BSSID mentioned above is the MAC address of the first electronic device.
[0024] In one implementation, when the second electronic device performs cross-route roaming handover, it needs to obtain the association information of the second electronic device from the topology information, including the channel, the BSSID of the connection, etc. When the BSSID is displayed incorrectly, it may cause the network topology result to be abnormal. Therefore, the BSSID can also be synchronously written to the mapping table to establish the mapping relationship between the BSSID, the first MAC address and the second MAC.
[0025] Therefore, the correct topology information can be obtained through the mapping table, reducing the probability of abnormal network topology results.
[0026] According to the first aspect, or any implementation of the first aspect above, in response to the response message returned by the second electronic device, a mapping relationship between the IP address, the second MAC address, and the first MAC address is established and written into a mapping relationship table, further comprising: if the IP address and the first MAC address exist in the mapping relationship table, updating the mapping relationship table based on the first MAC address, the IP address, and the second MAC address.
[0027] Specifically, if the first MAC address and IP address already exist in the above mapping table, this embodiment of the application will also update the mapping table based on the first MAC address, IP address and second MAC address.
[0028] According to the first aspect, or any implementation of the first aspect above, the method further includes: when the received data packet is an association request message, obtaining a third MAC address and a fourth MAC address in the association request message, wherein the third MAC address identifies the third link layer of the fourth electronic device corresponding to the association request message, and the fourth MAC address identifies the fourth link layer of the fourth electronic device, wherein the third link layer and the fourth link layer are different link layers of the fourth electronic device; sending a broadcast ping request to the wireless mesh network where the first electronic device is located, so that the fourth electronic device returns a response message, wherein the response message includes the IP address and the third MAC address of the fourth electronic device; in response to the response message returned by the fourth electronic device, establishing a mapping relationship between the IP address, the fourth MAC address and the third MAC address, and writing it into a mapping relationship table; updating the fourth MAC address in the topology update notification message and / or the topology update response message to the third MAC address based on the mapping relationship table, so that the third electronic device receiving the topology update notification message and / or the topology update response message performs a topology update and completes the online status of the fourth electronic device.
[0029] For example, the association request message is sent from the fourth electronic device to the destination router to instruct the destination router to allow the fourth electronic device to go online on that router. The fourth electronic device can also be the second electronic device, i.e., the mobile phone STA1 device in the following embodiments.
[0030] For example, the association request message described above may be the association request message in the following embodiments.
[0031] For example, the third MAC address can be the MAC address of the Layer 3 link in the following embodiments, namely mldmac.
[0032] For example, the fourth MAC address can be the MAC address of the Layer 2 link in the following embodiments, i.e., mac.
[0033] Therefore, by constructing a mapping relationship between the third MAC address and the fourth MAC address during the online process of the fourth electronic device and the first electronic device, the fourth electronic device can use the same MAC address for service operations in the wireless mesh network, thereby reducing the probability of abnormal network topology display in the wireless mesh network and improving the user experience.
[0034] According to the first aspect, or any implementation of the first aspect above, the fourth electronic device uses seventh-generation wireless network technology to send the association request message on the first electronic device.
[0035] Secondly, embodiments of this application provide a router. The router includes: a memory and a processor, the memory and the processor being coupled; the memory stores program instructions, which, when executed by the processor, cause the router to perform the methods of the first aspect or any possible implementation thereof.
[0036] Thirdly, embodiments of this application provide a computer-readable medium for storing a computer program, the computer program including instructions for performing the method in the first aspect or any possible implementation of the first aspect.
[0037] Fourthly, embodiments of this application provide a computer program including instructions for performing the method in the first aspect or any possible implementation thereof.
[0038] Fifthly, embodiments of this application provide a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals. Attached Figure Description
[0039] Figure 1 This is an example illustration of the distribution of multiple routers in a home;
[0040] Figure 2 A schematic diagram of the first network topology is shown as an example;
[0041] Figure 3 This is a schematic diagram of a first user operation as an example;
[0042] Figure 4 This is an example of a second user operation diagram;
[0043] Figure 5 This is a schematic diagram of a second network topology as an example.
[0044] Figure 6 This is a schematic diagram illustrating a user's movement route as an example.
[0045] Figure 7 This is a schematic diagram of a user interface as an example.
[0046] Figure 8 This is a schematic diagram of a third network topology as an example.
[0047] Figure 9 This is a schematic diagram of the hardware structure of an electronic device as an example.
[0048] Figure 10 This is a schematic diagram of the software structure of an electronic device, as exemplarily shown.
[0049] Figure 11 This is an illustrative diagram of a packet sent by an electronic device to the first router.
[0050] Figure 12 This is an example illustration of a message sent by an electronic device roaming to a second router.
[0051] Figure 13 A schematic diagram illustrating the sending of a topology update notification message by a first router as an example;
[0052] Figure 14 This is an example illustration of a second router sending a topology update notification message.
[0053] Figure 15 This is an example illustration of a first router sending a topology update response message.
[0054] Figure 16 This is an example illustration of a second router sending a topology update response message.
[0055] Figure 17 This is a schematic diagram illustrating the topology update process as an example. Detailed Implementation
[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0057] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0058] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.
[0059] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0060] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.
[0061] Routers are key node devices on the Internet, and the most common types can be divided into wired routers and wireless routers. This application uses a wireless router as an example for illustration; however, it can also be applied to wired routers in practice, and the embodiments of this application are not limited thereto.
[0062] For example, in some implementations, a wireless router can forward broadband network signals from a wall outlet in the home to nearby Wi-Fi-enabled electronic devices, such as laptops, mobile phones, and tablets, via an antenna.
[0063] With the development of wireless network technology, wireless routers are also constantly being updated and iterated. To date, sixth-generation (Wi-Fi 6) and seventh-generation (Wi-Fi 7) wireless network technologies have been successfully launched and are being used in people's daily lives. Since users may purchase and install each router at different times, the wireless routers mentioned above can be either Wi-Fi 6 or Wi-Fi 7 routers. Similarly, the electronic devices mentioned above can also be devices that support Wi-Fi 6 and / or Wi-Fi 7.
[0064] Currently, to enable electronic devices to access the internet from anywhere in the home, multiple wireless routers can be deployed. These routers provide Wi-Fi coverage throughout the entire home. Therefore, electronic devices can connect to the Wi-Fi network and access the internet from anywhere in the home.
[0065] Typically, the location of a wireless router in a home is fixed. However, due to the absorption effect of building materials such as walls, the strength of the Wi-Fi signal varies in different areas of the home. Areas closer to the wireless router generally have stronger Wi-Fi signals. For example, the area where the wireless router is located has the strongest Wi-Fi signal. These areas with strong Wi-Fi signals can be called radiation zones, and if multiple wireless routers are deployed in a home, multiple radiation zones will exist. Conversely, areas without wireless routers will have weaker Wi-Fi signals. These areas can be called signal dead zones.
[0066] For example, see Figure 1 , Figure 1 An example diagram showing the distribution of multiple routers in a home is provided. Figure 1 The apartment layout includes a living room, kitchen, balcony, bedroom A, bedroom B, bathroom A, and bathroom B. Wireless router AP1 is installed in the living room, and wireless router AP2 is installed in bedroom B. The coverage area of wireless router AP1 is the area within the dotted line centered on wireless router AP1, and the coverage area of wireless router AP2 is the area within the dotted line centered on wireless router AP2. The blank area between the coverage areas of wireless router AP1 and wireless router AP2 is a signal dead zone.
[0067] See also Figure 1 For example, the user's electronic device is device STA1. The user is currently in the living room, so device STA1 connects to the Wi-Fi signal provided by the wireless router AP1 located in the living room, thus providing network service to the user. Since the radiation zone of the wireless router AP2 located in bedroom B is far from the user, device STA1 does not connect to the Wi-Fi signal provided by wireless router AP2.
[0068] In one possible implementation, the user's electronic device stores the connection information of wireless routers AP1 and AP2. Therefore, when the user moves from the radiation area of one wireless router to the radiation area of another wireless router in the home through a signal dead zone, the Wi-Fi network of the user's electronic device will also be disconnected from the original router AP1 and connected to the other router AP2.
[0069] However, during the process of an electronic device disconnecting from wireless router AP1 and reconnecting to wireless router AP2, ongoing services on the electronic device may experience lag or even disconnection, resulting in a reduced user experience.
[0070] Therefore, at this stage, wireless router AP1 and wireless router AP2 can be networked using the EasyMesh protocol (a Wi-Fi authentication standard used to enable interconnection and control of multiple AP Wi-Fi networks). After successful network setup, user-used electronic devices can roam between wireless router AP1 and wireless router AP2. Topology update technology ensures that users can move freely within the Wi-Fi signal coverage area without service interruption during movement, avoiding issues with poor Wi-Fi signal and ensuring an unaffected user experience.
[0071] For example, see Figure 2 , Figure 2 An example network topology diagram is shown after wireless router AP1 and wireless router AP2 are connected. Figure 2 In this embodiment, the main router can be either wireless router AP1 or wireless router AP2, and the secondary router can also be either wireless router AP1 or wireless router AP2; this application does not impose any limitations on this. The wired terminal device is a terminal device connected to the main router. After successful network setup, the electronic device STA1 can roam between wireless router AP1 and wireless router AP2.
[0072] For example, wireless router AP1 can be the main router, and its corresponding Media Access Control Address (MAC address) is 42:25:AB:A2:43:04.
[0073] For example, the wireless router AP2 can be a slave router, and its corresponding MAC address is 90:FF:D6:11:33:E1.
[0074] For example, a wired terminal device is also connected to the main router, and the MAC address of the wired terminal device is 00:68:EB:A9:BB:51. This wired terminal device can be a desktop computer connected to the main router.
[0075] This completes the EasyMesh networking of wireless router AP1 and wireless router AP2. Once a user's electronic device is connected to any router in this network, it can access the Internet.
[0076] However, in one implementation scenario where both Wi-Fi 6 and Wi-Fi 7 routers exist in the network, electronic devices may experience abnormal network topology display during roaming.
[0077] To more clearly illustrate the above application scenario, this embodiment uses the living room wireless router AP1 as a Wi-Fi 7 router and as the main router, and the bedroom B wireless router AP2 as a Wi-Fi 6 router and as the secondary router. The main router is set to the bridge mode of the Wi-Fi 7 router and networked with the secondary router EasyMesh. The electronic device is a mobile phone that supports Wi-Fi 7.
[0078] In a scenario where a user manually turns on the Wi-Fi module of an electronic device to connect to a wireless router, see [link to relevant documentation]. Figure 3 , Figure 3 This application provides a user interface 10a. In this interface 10a, the mobile phone provides multiple operation gestures and corresponding response interfaces. For example, the user swipes down from the top to display the control center interface, swipes up from the bottom to display the memory cleanup interface, and swipes left or right from the center of the screen to switch the currently displayed page. For instance, the user can pull down from the top of the electronic device to expand the control center interface, such as... Figure 4 The interface 10b shown in (1) is shown in the middle.
[0079] See Figure 4 Middle (1), Figure 4 Example (1) shows a control center operation interface 10b. Interface 10b includes multiple control switches, such as: WLAN switch, Bluetooth switch, personal hotspot switch, screenshot switch, flashlight switch, etc. Among them, the WLAN switch is used to turn on the phone's Wi-Fi function, to connect to a specified Wi-Fi signal, or to automatically connect to the strongest Wi-Fi signal that has been previously connected to in the current range.
[0080] For example, when a user turns on their phone's Wi-Fi by clicking the WLAN switch, the phone automatically searches for the strongest nearby Wi-Fi signal. Since the user is in the living room, the phone can find the Wi-Fi signal provided by wireless router AP1 (this signal name is set to AP1). After finding the Wi-Fi signal AP1, the phone establishes a connection with wireless router AP1 and displays the connection interface, such as... Figure 4 The interface 10c displayed in (2) is shown in the middle.
[0081] After the mobile phone successfully connects to the Wi-Fi signal provided by the wireless router AP1, each router will... Figure 2 The network topology is updated, as shown below. Figure 5 The network topology shown is illustrated. For an example, see [link to example]. Figure 5 , Figure 5 An exemplary network topology is illustrated. In this topology, the main router is a wireless router (AP1), which is a Wi-Fi 7 router; the secondary 5G router is a wireless router (AP2), which is a Wi-Fi 6 router; and the 2.4G & 5G terminal devices are mobile phones. The mobile phones access the Wi-Fi signal provided by wireless router AP1; therefore, in this network topology, the mobile devices (2.4G & 5G terminal devices) are connected to the main router.
[0082] For example, after a mobile phone connects to the main router, its name is displayed as a 2.4G & 5G terminal device in the network topology, and its MAC address is BE:73:1E:21:76:FC.
[0083] In some potential application scenarios, a user might move from the living room to bedroom B, triggering their phone to roam from wireless router AP1 to wireless router AP2. For example, see... Figure 6 , Figure 6 This example illustrates a user movement scenario. In this scenario, the phone is designated as device STA1 in the living room before roaming and as device STA1' in bedroom B after roaming. The phone periodically searches for the strongest nearby Wi-Fi signal. When the phone moves to the edge of the coverage area of wireless router AP1, the Wi-Fi signal provided by AP1 weakens, while the Wi-Fi signal provided by wireless router AP2 (named AP2) strengthens, causing the phone to roam to wireless router AP2. Simultaneously, the WLAN switch in the phone's control center interface will show as connected to AP2. Figure 7 The interface is 10d.
[0084] After the mobile phone successfully roams to the Wi-Fi signal provided by the wireless router AP2, each router will... Figure 5The network topology is updated, as shown below. Figure 8 The network topology shown is as follows. In this network topology, the main router is a wireless router (AP1 is a Wi-Fi 7 router), the 5G secondary router is a wireless router (AP2 is a Wi-Fi 6 router), and the 5G terminal device is a mobile phone.
[0085] For example, after a mobile phone roams to a router, its name is displayed as a 5G terminal device in the network topology, with a MAC address of BE:73:1E:21:76:75.
[0086] See also Figure 8 ,exist Figure 8 In the network topology shown, after the mobile phone roams from the main router to the secondary router, the 2.4G & 5G terminal devices attached to the main router are not removed. The mobile phone is attached to the secondary router as a newly connected electronic device (5G terminal device). Clearly, the 2.4G & 5G terminal devices and the 5G terminal device are the same electronic device, but they are displayed as two separate electronic devices in this network topology, indicating an error in the network topology display.
[0087] To better understand the technical solutions provided in the embodiments of this application, the following is combined with... Figure 9 and Figure 10 The hardware and software structures of the router are introduced.
[0088] See Figure 9 Router 100 may include one or more central processing units (CPUs) 101 and memory 105, in which one or more applications or data are stored.
[0089] The central processing unit 101 can serve as the nerve center and command center of the router 100. The central processing unit 101 can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The central processing unit 101 may also include a memory for storing instructions and data. In some embodiments, the memory in the central processing unit 101 is a cache memory.
[0090] The memory 105 can be used to store computer executable program code, which includes instructions. The memory 105 can be volatile memory or persistent memory. The computer executable program code stored in the memory 105 can include one or more modules, each module including a series of instruction operations on the wireless router. The memory 105 can include a program storage area and a data storage area.
[0091] Furthermore, the central processing unit 101 can be configured to communicate with the memory 105 and execute a series of instructions stored in the memory 105 on the router 100. Specifically, the central processing unit 101 executes various functions and data processing of the router 100 by running computer program instructions stored in the memory 105, such as enabling the router 100 to implement the topology update method provided in this application embodiment.
[0092] Router 100 may also include one or more power supplies 102, one or more wired or wireless network interfaces 103, one or more input / output interfaces 104, and / or one or more operating systems, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, etc.
[0093] The router 100 can perform the operations performed by the router in the following embodiments, which will not be described in detail here.
[0094] That concludes the introduction to the hardware structure of Router 100. It should be understood that... Figure 9 The router 100 shown is just an example. In a specific implementation, the router 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. Figure 9 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0095] To better understand Figure 9 The software structure of router 100 is shown below. Before describing the software structure of router 100, the possible architectures for the software system of router 100 will be explained first.
[0096] Specifically, in practical applications, the software system of router 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered architecture system as an example to exemplify the software structure of router 100.
[0097] See Figure 10 This is a software structure block diagram of the router 100 according to an embodiment of this application.
[0098] like Figure 10 As shown, the layered architecture of router 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the router 100 system is divided into three layers, from top to bottom: the application layer, the kernel layer, and the driver layer.
[0099] The application layer can include a series of application packages. For example... Figure 10 As shown, the application package may include a settings app. Specifically, in practical applications, users can access the settings app to configure the router's Wi-Fi, internet access, security, and view the network topology.
[0100] For example, in some implementations, users can configure port number matching rules through Internet settings and / or security settings.
[0101] See also Figure 10 For example, the kernel layer includes a protocol stack, such as a TCP (Transmission Control Protocol) / IP (Internet Protocol) stack. In this embodiment, the kernel layer includes at least a topology update processing module. This module identifies the packet type based on the received data packets (messages). When it determines that the packet is an association request, it obtains the Layer 2 MAC address (labeled as mac) and Layer 3 MAC address (labeled as mldmac) from the packet and sends a broadcast ping request to the wireless mesh network where the router resides. The electronic device returns its Layer 3 MAC address based on the ping request, and the router establishes a mapping relationship between the Layer 3 MAC address and the Layer 2 MAC address of the electronic device. In subsequent packet assembly and transmission, the router calls the topology update processing module to establish a topology linked list, thereby replacing the mldmac of the electronic device with its MAC address according to the mapping relationship. This unifies the service MAC addresses of electronic devices in the wireless mesh network, reduces the probability of abnormal network topology display in the wireless mesh network, and improves the user experience. The message types can include association request messages, topology update (topo notify) messages, topology response (topo response) messages, and reassociation request messages.
[0102] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended to be the only limitation of this embodiment.
[0103] The specific implementation logic and details regarding the establishment of the mapping relationship between mac and mldmac are detailed below and will not be repeated here.
[0104] The driver layer is the layer between hardware and software. It includes at least a Wi-Fi driver. The hardware includes at least a processor and a Wi-Fi module.
[0105] Understandable, Figure 10 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on router 100. In other embodiments of this application, router 100 may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.
[0106] Furthermore, it is understood that, in order to implement the topology update method in the embodiments of this application, the router includes hardware and / or software modules that perform the respective functions. Based on the algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0107] Based on the aforementioned hardware and software structures, and considering the application scenarios described above, this embodiment combines... Figures 11 to 16 In this embodiment, we still take the mobile phone as an electronic device supporting Wi-Fi 7, wireless router AP1 as a Wi-Fi 7 router and acting as the main router, and wireless router AP2 as a Wi-Fi 6 router and acting as the secondary router as examples to analyze the application scenario described above. In the application scenario above, the process of the mobile phone accessing the wireless network is specifically to first access the main router, and then roam to the secondary router.
[0108] For example, the process of a mobile phone accessing the main router includes the following steps: scanning, authentication, association, address allocation, and access authentication.
[0109] For example, the above scanning phase is divided into two methods: active scanning and passive scanning. Active scanning involves the mobile phone sending a probe request message to a specific network on each signal and obtaining basic information about the Basic Service Set (BSS) and the router's capabilities from the received probe response messages, such as BSSID, Service Set Identifier (SSID), supported speeds, and encryption algorithms. Passive scanning involves the mobile phone discovering networks by listening to beacon frames periodically sent by wireless routers on each channel. The beacon frame contains basic information about the BSS to which the wireless router belongs and the router's basic capabilities, including: BSSID, SSID, supported speeds, supported authentication methods, encryption algorithms, and the beacon frame sending interval. Upon receiving a corresponding beacon frame, the mobile phone determines whether the wireless router supports connection. Specifically, in this embodiment, in... Figure 4 In the interface 10b shown in (1), the mobile phone can access the wireless network by actively scanning or by passively scanning. This application embodiment does not limit this.
[0110] For example, the above authentication stage mainly involves the mobile phone sending an authentication request to the wireless router so that the wireless router can authenticate whether the mobile phone can be allowed to access.
[0111] For example, in the aforementioned association phase, after the authentication process is successful, the mobile phone initiates an association request message to associate with the wireless router device. The wireless router adds the mobile phone information to its database and replies with an association response, thus enabling the mobile phone to successfully connect to the wireless router device. This association is essentially a link service negotiation process, negotiating supported speeds, channels, access authentication, and encryption algorithms. Specifically, in this embodiment, after the mobile phone authentication process is successful, the wireless router also sends the mobile phone's relevant information to other wireless router devices within the wireless network, thereby updating the network topology. For example, the wireless router sends a topology notify message to prompt other routers within the wireless network to send topology update requests, and then the wireless router sends the mobile phone information to the other routers via a topology response message.
[0112] For example, the above-mentioned address allocation stage is also the process by which the mobile phone obtains the IP address assigned by the router.
[0113] For example, the above access authentication stage is to distinguish the access permissions of each user's mobile phone. After completion, the mobile phone can access the network.
[0114] For example, the process of a mobile phone roaming to a secondary router is that the phone determines the signal strength and network status of the wireless router and selects the most suitable wireless router device for access. Specifically, in this embodiment, after the user moves from the living room to bedroom B, the phone determines that the main router's signal weakens while the secondary router's signal strengthens. Therefore, the phone sends a reassociation request message to the secondary router, thereby switching from the main router's basic service set to the secondary router's basic service set using the reassociation request frame, achieving roaming between routers. That is, the phone reconnects to the secondary router by sending an association request message to associate with the secondary router.
[0115] Therefore, it can be seen that the main messages that a mobile phone relies on for roaming between the main router and the secondary router include association request messages and association request messages; while the topology update in the router relies on topo notify messages and topo response messages.
[0116] For example, during the process of a mobile phone coming online on the main router, the mobile phone needs to send an associationrequest message to the main router. See [link / reference] Figure 11 , Figure 11 An example is shown of an association request message sent by a mobile phone to the main router. The main router parses this message to obtain... Figure 11 The information shown includes fields such as "Type / Subtype", "Destination address", "Source address", and "MLD MAC Address". Specifically, the "Type / Subtype" field indicates the packet type, the "Destination address" field indicates the MAC address of the destination router, the "Source address" field indicates the MAC address of the phone's Layer 2 link, and the "MLD MAC Address" field indicates the MAC address of the phone's Layer 3 link.
[0117] Specifically, if the information corresponding to the "Type / Subtype" field is "Association Request (0x0000)", it indicates that the data packet is an association request packet, which is used to express an association request to the main route.
[0118] Specifically, if the "Destination address" field contains "42:25:ab:a2:43:0a", it indicates that the MAC address of the destination router in this association is "42:25:ab:a2:43:0a". Here, "42:25:ab:a2:43:0a" is the MAC address of the router's virtual wireless interface, and its corresponding MAC address of the main router is "42:25:ab:a2:43:04", which is... Figure 8 The main route in the system.
[0119] Specifically, when the information corresponding to the "Source address" field is "be:73:1e:21:76:fc", it indicates that the MAC address of the phone's Layer 2 link is "be:73:1e:21:76:fc", which corresponds to... Figure 8 2.4G & 5G terminal equipment.
[0120] Specifically, if the information corresponding to the "MLD MAC Address" field is "be:73:1e:21:76:75", it indicates that the MAC address of the phone's Layer 3 link is "be:73:1e:21:76:75". Since Wi-Fi 7 routers use Layer 2 link MAC addresses as service addresses, the Layer 3 link address will not be displayed in the network topology.
[0121] For example, when a mobile phone roams to a secondary router, during the process of the secondary router going online, the mobile phone needs to send a reassociation request message to the secondary router. See also Figure 12 , Figure 12 An example is shown where a mobile phone sends a reassociation request message to a slave router. The slave router parses this message to obtain... Figure 12 The information shown includes the information corresponding to the "Type / Subtype" field, the "Destination address" field, and the "Source address" field.
[0122] Specifically, if the information corresponding to the "Type / Subtype" field is "Reassociation Request (0x0002)", it indicates that the data packet is a reassociation request packet, used to express an association request to the sub-router.
[0123] Specifically, when the "Destination address" field contains "00:ff:d6:11:a3:a3", it indicates that the MAC address of the destination router in this association is "00:ff:d6:11:a3:a3". Here, "00:ff:d6:11:a3:a3" is the MAC address of the router's virtual wireless interface, which corresponds to the MAC address of the secondary router as "90:ff:d6:11:33:e1". Figure 8 From the route.
[0124] Specifically, when the information corresponding to the "Source address" field is "be:73:1e:21:76:75", it indicates that the MAC address of the phone's Layer 3 link is "be:73:1e:21:76:75", which corresponds to... Figure 8 5G terminal equipment in China.
[0125] For example, after the mobile phone comes online on the main router, the main router will send a topo notify message to other routers in the same network (in this embodiment, the secondary router) so that the other routers in the same network can obtain the topology change information. See also Figure 13 , Figure 13 An example is shown of a topo notify message sent by the primary route. Other routes in the same network parse this message to obtain... Figure 13 The information shown includes the information corresponding to the "Message type" field, the "1905AL MAC address type" field, the "Client mac address" field, and the "Association event flags" field. Specifically, the "Message type" field indicates the message type of the data packet, the "1905AL MAC address type" field indicates the MAC address of the current route, the "Client mac address" field indicates the MAC address of the mobile phone in this embodiment, and the "Association event flags" field indicates the device's online or offline event.
[0126] Specifically, if the information corresponding to the "Message type" field is "Topology notification (0x0001)," it indicates that the message type of the data packet is a topology update notification, which is used to send topology update notifications to other routers in the same network.
[0127] Specifically, when the information corresponding to the "1905AL MAC address type" field is "42:25:ab:a2:43:04", it indicates that the MAC address of the router sending the message is "42:25:ab:a2:43:04", that is... Figure 8 The main route in the system.
[0128] Specifically, when the "Client MAC address" field contains the information "be:73:1e:21:76:fc", it indicates the MAC address of the device connected to the router that sent the message. Figure 8 2.4G & 5G terminal equipment.
[0129] Specifically, when the information corresponding to the "Association event flags" field is "0xbe,Associationevent", it indicates the online event triggered by the corresponding device.
[0130] For example, after a mobile phone roams to a secondary router, the secondary router sends a toponotify message to other routers in the same network, enabling those routers to obtain the topology change information. See also Figure 14 , Figure 14 This example illustrates information from a topo notify message sent by the primary route. Other routes in the same network parse this message to obtain... Figure 14 The information shown includes the information corresponding to the "Message type" field, the "1905AL MAC address type" field, the "Client MAC address" field, and the "Association event flags" field.
[0131] Specifically, if the information corresponding to the "Message type" field is "Topology notification (0x0001)," it indicates that the message type of the data packet is a topology update notification, which is used to send topology update notifications to other routers in the same network.
[0132] Specifically, when the information corresponding to the "1905AL MAC address type" field is "90:ff:d6:11:33:e1", it indicates that the MAC address of the router sending the message is "90:ff:d6:11:33:e1", that is... Figure 8 From the route.
[0133] Specifically, when the "Client MAC address" field contains the information "be:73:1e:21:76:75", it indicates the MAC address of the device connected to the router that sent the message. Figure 8 5G terminal equipment in China.
[0134] Specifically, when the information corresponding to the "Association event flags" field is "0xaa,Associationevent", it indicates the online event triggered by the corresponding device.
[0135] For example, after the master router sends a topo notify message, other routers in the same network will send topology update requests, and the current router will then send the change information to the other routers via a topo response message. See also Figure 15 , Figure 15 The example illustrates information from a topo response message. Other routers on the same network parse this message to obtain... Figure 15 The information shown includes the information corresponding to the "Message type" field and the "Associated client MAC address" field. The "Message type" field indicates the message type of the data packet, and the "Associated client MAC address" field indicates the MAC address of the mounted device.
[0136] Specifically, if the information corresponding to the "Message type" field is "Topology response (0x0003)", it indicates that the message type of the data packet is a topology change response message, which is used to send topology change responses to other routers in the same network.
[0137] Specifically, when the information corresponding to the "Associated client MAC address" field is "be:73:1e:21:76:fc", it indicates the MAC address of the device connected to this router, i.e. Figure 8 2.4G & 5G terminal equipment.
[0138] For example, after a router sends a topo notify message, other routers in the same network will send topology update requests, and the current router will then send the change information to the other routers via a topo response message. See also Figure 16 , Figure 16 The example illustrates information from a topo response message. Other routers on the same network parse this message to obtain... Figure 15 The information shown includes the information corresponding to the "Message type" field and the information corresponding to the "Associated client MAC address" field.
[0139] Specifically, if the information corresponding to the "Message type" field is "Topology response (0x0003)", it indicates that the message type of the data packet is a topology change response message, which is used to send topology change responses to other routers in the same network.
[0140] Specifically, when the information corresponding to the "Associated client MAC address" field is "be:73:1e:21:76:75", it indicates the MAC address of the device connected to this router, i.e. Figure 8 5G terminal equipment in China.
[0141] For example, in this embodiment Figure 1 and Figure 6 In the scenario shown, through Figure 11 It can be seen that the phone's Layer 2 MAC address is "be:73:1e:21:76:fc" and its Layer 3 MAC address is "be:73:1e:21:76:75". When the phone connects to the main router, the network topology displays the phone's Layer 2 MAC address; however, when the phone roams to a secondary router and connects to the secondary router, the network topology displays the phone's Layer 3 MAC address. Specifically, in Figure 8 The MAC address of the mobile phone connected to the main router is "be:73:1e:21:76:fc", while the MAC address of the mobile phone connected to the secondary router is "be:73:1e:21:76:75". Furthermore, when the main router interacts with other routers within the same network, it uses the Layer 2 MAC address, while when the secondary router interacts with other routers within the same network, it uses the Layer 3 MAC address. Combined with... Figure 11 The message information indicates that these two MAC addresses correspond to a mobile terminal.
[0142] Therefore, it can be seen that during the process of a mobile phone roaming from the main router to the secondary router, the main router and the secondary router use inconsistent MAC addresses. The main router uses the MAC address of the Layer 2 link, while the secondary router uses the MAC address of the Layer 3 link. Since the Layer 2 link MAC address and the Layer 3 link MAC address of the mobile device are different, meaning that the main router and the secondary router use different MAC addresses for service interactions. This causes the secondary router to recognize the same mobile phone as a newly connected device when roaming to the secondary router. Specifically, the main router cannot delete the Layer 3 link MAC address of the device connected to the main router based on the Layer 2 link MAC address in the secondary router, resulting in an incorrect network topology display and significantly degrading the user experience.
[0143] Meanwhile, after the user moves from bedroom B to the living room, the phone will attempt to roam to the main router and thus connect online. During this process, the phone first obtains information such as the main router's channel, BSSID, SSID, supported speeds, and encryption algorithms. After obtaining the main router's BSSID, the phone will connect online again. However, the "2.4G & 5G terminal devices" on the main router remain online, so the device information connected to the main router remains unchanged. After the phone completes the roaming, it will disconnect from the secondary router, reducing the number of devices connected to it. Therefore, when the user notices changes in the router's network topology during this process, they will find an error in the network topology, significantly degrading the user experience.
[0144] In view of this, to solve the above problems, this application provides a topology update scheme. In this scheme, before an electronic device first connects to any wireless router in a successfully networked EasyMesh wireless mesh network, the message information sent by the electronic device is obtained. Based on the message information, a mapping relationship is established between the MAC address of the electronic device's Layer 2 link and the MAC address of its Layer 3 link. This unifies the service MAC address of the electronic device in the wireless mesh network, reduces the probability of abnormal network topology display in the wireless mesh network, and improves the user experience.
[0145] Based on the aforementioned hardware and software structures, and for the application scenarios described above, the implementation process of topology updates provided in this application embodiment is as follows: Figure 17 As shown, it specifically includes:
[0146] S101, the electronic device sends an association request message / reassociation request message.
[0147] It is understandable that the MAC address of the Layer 2 link of the aforementioned electronic device is different from the MAC address of the Layer 3 link.
[0148] For example, mobile terminals that support Wi-Fi 7 have different MAC addresses for their Layer 2 and Layer 3 links.
[0149] For example, the aforementioned electronic device can be a mobile phone in the above scenario, with its Layer 2 MAC address being "be:73:1e:21:76:fc" and its Layer 3 MAC address being "be:73:1e:21:76:75".
[0150] It is understandable that if the aforementioned electronic device wishes to go online on the first router, it needs to send an association request message or a reassociation request message to the first router. The information in the association request message or reassociation request message includes, but is not limited to, the message type, the MAC address of the destination router, the MAC address of the Layer 2 link of the aforementioned electronic device, and the MAC address of the Layer 3 link of the aforementioned electronic device.
[0151] For example, in Figure 11 The above message type is "Association Request (0x0000)", the MAC address of the above destination router is "42:25:ab:a2:43:0a", the MAC address of the above Layer 2 link is "be:73:1e:21:76:fc", and the MAC address of the above Layer 3 link is "be:73:1e:21:76:75".
[0152] S102, the first router parses the packet to obtain the MAC address and MLDMAC address of the electronic device.
[0153] It is understandable that after the first router successfully establishes a network based on EasyMesh, any router in this wireless network, specifically... Figure 1 or Figure 6 The main or secondary router within a home wireless network is shown.
[0154] Specifically, the first router parses the association request message or reassociation request message sent to the electronic device to obtain the Layer 2 link MAC address and Layer 3 link MAC address of the electronic device.
[0155] S103, the first router broadcasts a Ping request to the local area network.
[0156] Specifically, at this point, the first router has resolved the MAC address and MLDMAC address of the electronic device, but cannot directly determine the device's Layer 3 MLDMAC address, i.e., the service MAC address. Therefore, the first router sends a ping request broadcast to the local area network to inquire about the device's MLDMAC address.
[0157] S104, the electronic device returns a first application message, which includes the IP address of the electronic device and the mldmac address.
[0158] Specifically, after receiving a Ping request, the electronic device will return a response message for echoing, which includes the aforementioned IP address and MLDMAC address. Furthermore, all electronic devices within the local area network will receive the Ping request, but will only reply if the electronic device is configured to respond to Ping requests. Therefore, in this case, the electronic device will also be configured to respond to Ping requests.
[0159] S105, the first router establishes a mapping relationship between the MAC address and the mldmac address of the electronic device based on the mldmac address of the response.
[0160] Specifically, when the first router receives the echo response message from the electronic device, the first router parses the response message to obtain the mldmac, which is the layer 3 MAC address (service MAC address) of the electronic device. Based on the mldmac of the electronic device, the first router establishes a mapping relationship between the IP address, the layer 3 MAC address and another MAC address, and writes it into a pre-set mapping relationship table locally.
[0161] In another scenario, the mapping relationship already exists in the mapping table, and the mapping relationship between the IP address, the Layer 3 MAC address and another MAC address in the mapping table can be updated.
[0162] For example, the BSSID of the first router can also be written into the mapping relationship, so that the corresponding BSSID can be quickly obtained during subsequent roaming.
[0163] S106, the first router sends an association request response message.
[0164] Specifically, after the first router completes the mapping relationship, it responds to the association request message sent by the electronic device and sends an association response message to the electronic device, thereby enabling the electronic device to go online on the first router.
[0165] S107, the first router assembles a topology change notification (topo message) based on this mapping relationship.
[0166] Understandably, after the electronic device completes its online process, the first router needs to send the online message to other routers in the same network to update the network topology.
[0167] Specifically, the first router sends a topology change notification to other routers in the same network. The content of this topology change notification may be... Figure 13 The information corresponding to the "Client MAC address" field is replaced with the business MAC address in the above mapping relationship, thus changing it to "be:73:1e:21:76:75".
[0168] For example, when assembling a topology change notification, the first router traverses every MAC address in the message to obtain all Layer 2 link MAC addresses, and replaces all Layer 2 link MAC addresses of electronic devices in the message with the aforementioned service MAC addresses.
[0169] S108, the first router sends a topology change notification to nearby routers.
[0170] Specifically, in this embodiment, the first router sends a topology change notification to the second router.
[0171] S109, the second router sends a topology change acquisition request.
[0172] Specifically, in this embodiment, after receiving the topology change notification sent by the first router, the second router sends a change acquisition request to the first router so that the first router returns a topology change response message.
[0173] S110, the first router assembles a topology change response (topo message) based on this mapping relationship.
[0174] Specifically, the first router sends a topology change response to the routers in the same network that sent the topology change request. The content of this topology change notification may be... Figure 15 The information corresponding to the "Associated client MAC address" field is replaced with the business MAC address in the above mapping relationship, thus changing it to "be:73:1e:21:76:75".
[0175] For example, when assembling a topology change response, the first router replaces all Layer 2 link MAC addresses of electronic devices in the message with service MAC addresses.
[0176] S111, the first router sends a topology change response.
[0177] S112, the second router updates the local topology.
[0178] Specifically, the first router sends the assembled message to the second router so that the second router can complete the local topology update, thereby enabling electronic devices to use the same service MAC address for topology updates during subsequent roaming.
[0179] Therefore, this embodiment obtains the message information sent by the electronic device before it first accesses any wireless router in the EasyMesh wireless mesh network, or before it roams to any wireless router. Based on the message information, it establishes a mapping relationship between the MAC address of the electronic device's Layer 2 link and the MAC address of its Layer 3 link, thereby unifying the service MAC address of the electronic device in the wireless mesh network, reducing the probability of abnormal network topology display in the wireless mesh network, and improving the user experience.
[0180] Furthermore, it is understood that, in order to achieve the aforementioned functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Based on the algorithmic steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in a hardware-driven or software-driven manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0181] Furthermore, it should be noted that in practical application scenarios, the topology update methods provided in the above embodiments, implemented by an electronic device, can also be executed by a chip system included in the electronic device. This chip system may include a processor. The chip system can be coupled to a memory, enabling it to call a computer program stored in the memory during runtime to implement the steps executed by the electronic device. The processor in the chip system can be an application processor or a non-application processor.
[0182] In addition, this application embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the above-described related method steps to implement the topology update method in the above embodiment.
[0183] In addition, this application also provides a computer program product that, when run on an electronic device, causes the electronic device to perform the above-mentioned related steps to implement the topology update method in the above embodiments.
[0184] In addition, embodiments of this application also provide a chip (which may also be a component or module), the chip may include one or more processing circuits and one or more transceiver pins; wherein, the transceiver pins and the processing circuits communicate with each other through internal connection paths, the processing circuits execute the above-mentioned related method steps to implement the topology update method in the above embodiments, so as to control the receiving pin to receive signals and control the transmitting pin to transmit signals.
[0185] Furthermore, as can be seen from the above description, the electronic devices, computer-readable storage media, computer program products, or chips provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0186] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A topology update method, characterized by, The method applied to a first electronic device comprises: In a case where the received data packet is a re-association request message, a first MAC address and a second MAC address in the re-association request message are acquired, the first MAC address identifies a first link layer of a second electronic device corresponding to the re-association request message, and the second MAC address identifies a second link layer of the second electronic device, the first link layer and the second link layer being different link layers of the second electronic device respectively; A broadcast ping request is sent to a wireless mesh network in which the first electronic device is located, so that the second electronic device returns a response message, the response message comprising an IP address of the second electronic device and the first MAC address; In response to the response message returned by the second electronic device, a mapping relationship of the IP address, the second MAC address and the first MAC address is established and written into a mapping relationship table; Based on the mapping relationship table, the second MAC address in a topology update notification message and / or a topology update response message is updated to the first MAC address, so that a third electronic device receiving the topology update notification message and the topology update response message performs topology structure update.
2. The method of claim 1, wherein, The method further comprises that the second electronic device is configured to respond to a ping request.
3. The method of claim 1, wherein, The first electronic device and the third electronic device construct the wireless mesh network based on an EasyMesh protocol.
4. The method of claim 3, wherein, The first electronic device uses a seventh-generation wireless network technology to construct the wireless mesh network with the third electronic device using a sixth-generation wireless network technology.
5. The method of claim 4, wherein, The second electronic device uses the seventh-generation wireless network technology to send the re-association request message to the first electronic device in the wireless mesh network.
6. The method of claim 5, wherein, The first link layer is a three-layer link of the second electronic device, and the second link layer is a two-layer link of the second electronic device.
7. The method of claim 1, wherein, The method further comprises: The BSSID of the first electronic device is written into the mapping relationship table, and the mapping relationship of the BSSID, the first MAC address and the second MAC is constructed.
8. The method of claim 1, wherein, In response to the response message returned by the second electronic device, the mapping relationship of the IP address, the second MAC address and the first MAC address is established and written into a mapping relationship table, and the method further comprises: In a case where the IP address and the first MAC address exist in the mapping relationship table, the mapping relationship table is updated based on the first MAC address, the IP address and the second MAC address.
9. The method of claim 1, wherein, The method further comprises: In a case where the received data packet is an association request message, a third MAC address and a fourth MAC address in the association request message are acquired, the third MAC address identifying a third link layer of a fourth electronic device corresponding to the association request message, and the fourth MAC address identifying a fourth link layer of the fourth electronic device, the third link layer and the fourth link layer being different link layers of the fourth electronic device respectively; sending a broadcast ping request to a wireless mesh network in which the first electronic device is located, so that the fourth electronic device returns a response message, the response message including an IP address of the fourth electronic device and the third MAC address; in response to the response message returned by the fourth electronic device, establishing a mapping relationship of the IP address, the fourth MAC address and the third MAC address, and writing the mapping relationship into a mapping relationship table; updating the fourth MAC address in the topology update notification message and / or the topology update response message to the third MAC address based on the mapping relationship table, so that the third electronic device receiving the topology update notification message and / or the topology update response message performs topology structure updating, and completes the online of the fourth electronic device.
10. The method of claim 9, wherein, The fourth electronic device uses a seventh generation wireless network technology to send the association request message to the first electronic device.
11. A router, characterized in that, The router comprises a memory and a processor, the memory and the processor are coupled; the memory stores program instructions, the program instructions are executed by the processor, so that the router executes the topology updating method according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that, The computer program comprises a computer program, when the computer program is executed on an electronic device, so that the electronic device executes the topology updating method according to any one of claims 1 to 10.