Mesh network slave routing message identification method and device and storage medium

By generating unique numbers for slave routers and embedding DSCP in the home WiFi Mesh network, the problem of the master router being unable to identify the source of packets is solved, enabling fine-grained management of slave routers and improving the security and user experience of the home network.

CN121645277APending Publication Date: 2026-03-10BOWEI TECHNOLOGY COMPANY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-17
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In a home WiFi Mesh network, the main router has difficulty identifying the source of packets, making it impossible to implement differentiated management strategies for different slave routers. This prevents users from setting personalized network management strategies for different devices.

Method used

The master router obtains information from the slave router, generates a unique number, and embeds it into the differential service code point value (DSCP) of the slave router's message to identify the source of the message.

Benefits of technology

It enables fine-grained management of the router, improves the security and user experience of the home network, and optimizes network management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645277A_ABST
    Figure CN121645277A_ABST
Patent Text Reader

Abstract

The invention relates to a mesh network slave route message identification method, a mesh network slave route message identification device and a storage medium. The method comprises the following steps: a master route acquires information of all slave routes in a mesh network; the main route generates a unique number for all the slave routes; the master route issues the unique number to the corresponding slave route; according to the unique number, embedding a corresponding differential service code point value in the message of the slave route; the master route obtains the message sent by the slave route; the main route obtains the difference service code point value in the message; and the main route executes a preset rule action according to the differential service code point value. According to the method and the device, the slave route of the message source can be quickly and accurately judged, different priorities, Internet access limitation management and the like can be set for different slave routes, and the method and the device have important practical significance in guaranteeing home network security, improving smart home use experience and optimizing home network management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mesh network technology, and in particular to a method, apparatus and storage medium for identifying routing messages in a mesh network. Background Technology

[0002] In the home networking field, WiFi Mesh networks have become a core networking solution for smart home scenarios due to their low-cost deployment, high flexibility, and strong signal coverage. From security devices such as smart door locks and cameras, to home appliances such as smart speakers and robot vacuum cleaners, and to multiple mobile terminals such as smartphones and tablets, all kinds of devices in the home rely on WiFi Mesh networks to achieve interconnection. Its mesh topology effectively eliminates signal blind spots, ensuring whole-house network coverage, allowing users to enjoy a stable, high-speed network connection whether they are in the living room, bedroom, or a corner. However, the Layer 2 network architecture used in home WiFi Mesh networks presents a challenging problem in identifying the origin of packets. In Layer 2 networks, data frames are forwarded based on MAC (Media Access Control) addresses, lacking the clear routing identifiers found in Layer 3 networks. This makes it difficult for the master router in a home network to determine which slave router a packet originated from. This predicament directly prevents users from setting differentiated management policies for different slave routers. For example, users might want to set stricter internet access management, timed disconnections, and website isolation for slave routers connected to children's learning devices; or assign higher network priority to slave routers connected to office equipment to ensure stable transmission of work data. But because the master router cannot identify which slave router a packet originated from, these refined management policies based on slave routers cannot be effectively implemented. Summary of the Invention

[0003] In view of this, the present invention provides a method, apparatus and storage medium for identifying routing messages in a mesh network.

[0004] Specifically, the present invention is achieved through the following technical solution: According to a first aspect of the present invention, a method for identifying routing messages in a mesh network is provided, the method comprising the steps of: The master route obtains information about all slave routes in the mesh network; The master route generates a unique number for all the slave routes; The master route sends the unique number to the corresponding slave route; Based on the unique number, the sub-router embeds the corresponding differential service code point value into its own message; The master route acquires the packets sent by the slave route; The main route obtains the differential service code point value from the message; The main route executes preset rule actions based on the differential service code point value.

[0005] Optionally, the process of the master route obtaining information about all slave routes in the mesh network includes the following steps: The master route obtains the device models of all the slave routes in the mesh network; The master router obtains the media access control addresses of all the slave routers; The master route establishes a first mapping relationship between the media access control address of the same slave route and the device model.

[0006] Optionally, the process of the master route generating a unique number for all the slave routes includes the following steps: The master router obtains the media access control addresses of all the slave routers; All media access control addresses are arranged in ascending order by the main route; The primary route generates a unique number for all the secondary routes according to the arrangement order; The master route establishes a second mapping relationship between the media access control address and the unique number of the same slave route.

[0007] Optionally, the process of the master route sending the unique number to the corresponding slave route includes the following steps: The master router obtains a second mapping relationship between the media access control address of the slave router and the unique number; According to the second mapping relationship, the master route sends the unique number to the slave route corresponding to the media access control address.

[0008] Optionally, the step of embedding the corresponding differential service code point value in its own packet based on the unique number includes the following steps: The unique number issued by the main route is obtained from the route; The differential service code point value is generated from the route based on the unique number; The message generated by itself is obtained from the route; Set the differential service code point value in a preset field of the message; The data packet containing the message is forwarded to the main route.

[0009] Optionally, the main route obtaining the differential service code point value in the packet includes the following steps: The master route receives the message sent by the slave route; Parse the differential service code point value in the message.

[0010] Optionally, the main route executes a preset rule action based on the differential service code point value, including the following steps: Retrieve the preset firewall rule base; Search the firewall rule base for rule actions that match the differential service code point value; The rule action is executed based on the matching result.

[0011] According to a second aspect of the present invention, a mesh network routing message identification device is provided, comprising: The information acquisition module is used by the main router to acquire information about all slave routers in the mesh network; The number generation module is used by the master route to generate a unique number for all the slave routes; The numbering distribution module is used by the master route to distribute the unique number to the corresponding slave route; The point value embedding module is used to embed the corresponding differential service code point value into the sub-router's own packet according to the unique number; A message acquisition module is used for the main router to acquire messages sent by the secondary router; Point value acquisition module, used by the main router to acquire the differential service code point value in the packet; The action execution module is used by the main router to execute preset rule actions based on the differential service code point value.

[0012] According to a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the preceding methods.

[0013] According to a fourth aspect of the present invention, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.

[0014] The technical solution provided by this invention brings at least the following beneficial effects: This application provides a method for identifying slave router packets in a mesh network. This method transforms the "physical topology invisible" Layer 2 broadcast domain into a "logical topology visible" "lightweight policy domain." Layer 2 forwarding originally only recognized MAC addresses and did not remember "who is my downstream slave router," so the master router treated all frames within the same VLAN "equally." This invention injects a 6-bit field—the DSCP (Differential Service Code Point) in the IP header—into the frame. This field is not rewritten by switches within the Layer 2 network segment, but can be read by the master router's Layer 3 interface, thus smuggling "topology information" into the "quality of service label." The process can be viewed as a "lightweight signaling + implicit tunneling": Signaling phase—The master router collects the MAC, SN, BSSID, and other identifiers of slave routers through existing Mesh control protocols, dynamically assigns unique numbers, and then feeds them back to the "local policy database" of each slave router. This number occupies only 6 bits, which precisely maps to the low bits of the DSCP, requiring no additional bytes. Data Phase – When a router forwards a terminal frame, it hits an "outbound policy": all uplinks bridging the local machine are written to the DSCP with the specified number; the terminal is unaware of this and continues with the existing DHCP and NAT processes. Identification Phase – After receiving a frame on its Layer 3 interface, the master router first checks the DSCP, then the "number → slave router → user policy" mapping table, instantly restoring the "indiscriminate MAC frame" to a "flow with topology intent." Since the DSCP is naturally recognized by modules such as LinuxTC, hardware QoS, iptables, and nftables, subsequent differentiated actions (rate limiting, network disconnection, remarking, rerouting) can directly reuse existing hooks without requiring additional protocol stack patches. The entire mechanism involves zero VLANs, zero tunnels, and zero extra packets. It uses "coloring along the path" to divide the Layer 2 broadcast domain into N policyable logical chains, resolving the fundamental contradiction that "without seeing the source, fine-grained management is impossible." In summary, the ability to quickly and accurately determine the source of a packet from a secondary router, and to set different priorities and manage internet access restrictions for different secondary routers, is of vital practical significance for ensuring home network security, improving the smart home user experience, and optimizing home network management. Attached Figure Description

[0015] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating a method for identifying routing packets in a mesh network, as provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of a mesh network routing message identification device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a storage medium provided in an embodiment of the present invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] Figure 1 The illustration shows a flowchart of a mesh network method for identifying routing messages applicable to embodiments of the present invention.

[0020] See Figure 1 This invention provides a method for identifying routing packets in a mesh network, the method comprising the following steps: S1: The master route obtains information about all slave routes in the mesh network; For example, the process of the master route obtaining information about all slave routes in the mesh network includes the following steps: The master route obtains the device models of all the slave routes in the mesh network; The master router obtains the media access control addresses of all the slave routers; The master route establishes a first mapping relationship between the media access control address of the same slave route and the device model.

[0021] In this embodiment, the master router connects to each slave router through a wireless mesh network and automatically obtains relevant information of all slave routers in the wireless mesh network, including the device model and media access control address of all slave routers. Then, the master router establishes a mapping relationship between the media access control address and the device model of each slave router.

[0022] S2: The master route generates a unique number for all the slave routes; For example, the process of the master route generating a unique number for all the slave routes includes the steps of: The master router obtains the media access control addresses of all the slave routers; All media access control addresses are arranged in ascending order by the main route; The primary route generates a unique number for all the secondary routes according to the arrangement order; The master route establishes a second mapping relationship between the media access control address and the unique number of the same slave route.

[0023] In this embodiment, each slave route corresponds to a Media Access Control (MAC) address, and this MAC address is unique from all other MAC addresses. All MAC addresses are arranged in ascending order, thus arranging all slave routes accordingly. The master route then generates a unique number for each slave route, establishing a one-to-one mapping between this unique number and the slave route's MAC address.

[0024] S3: The master route sends the unique number to the corresponding slave route; For example, the process of the master route sending the unique number to the corresponding slave route includes the following steps: The master router obtains a second mapping relationship between the media access control address of the slave router and the unique number; According to the second mapping relationship, the master route sends the unique number to the slave route corresponding to the media access control address.

[0025] In this embodiment of the application, each slave router has a unique media access control address and a unique number, and the mapping relationship between the two is also unique. Therefore, when the master router sends a unique number to the slave router, the master router sends the generated number to the corresponding slave router according to the media access control address, clearly informing each slave router of its assigned number, and ensuring that the slave router can receive and store the number information.

[0026] S4: Based on the unique number, the sub-router embeds the corresponding differential service code point value into its own message; For example, the step of embedding the corresponding differential service code point value in its own packet based on the unique number includes the following steps: The unique number issued by the main route is obtained from the route; The differential service code point value is generated from the route based on the unique number; The message generated by itself is obtained from the route; Set the differential service code point value in a preset field of the message; The data packet containing the message is forwarded to the main route.

[0027] In this embodiment of the application, after receiving the number set by the master route, the slave route processes all Internet access packets forwarded by the Layer 2 bridge and embeds the differential service code point value corresponding to its own number into the packet, so that the packet carries information that uniquely identifies its source slave route.

[0028] Specifically, the user-space daemon of the primary router receives the configuration from the primary router, parses it to generate an internal configuration structure, and transmits the configuration to the kernel module via an inter-process communication protocol. After receiving the inter-process communication message, the kernel module updates the differential service code point value mapping table and activates the network protocol stack packet identification function. When a packet enters the forwarding process from the primary router, the packet identification program sets the differential service code point value to the TOS (Type of Service) field of the packet, completes packet tagging, and then forwards the packet to the primary router.

[0029] S5: The master router obtains the message sent by the slave router; In this embodiment of the application, after the primary route completes message tagging, it forwards the data packet to the primary route.

[0030] S6: The main route obtains the differential service code point value in the message; For example, the main route obtaining the differential service code point value in the packet includes the following steps: The master route receives the message sent by the slave route; Parse the differential service code point value in the message.

[0031] In this embodiment of the application, the main router receives a message with a differential service code point value sent from the secondary router and parses the differential service code point value in the message.

[0032] S7: The main router executes a preset rule action based on the differential service code point value.

[0033] For example, the main route executes a preset rule action based on the differential service code point value, including the following steps: Retrieve the preset firewall rule base; Search the firewall rule base for rule actions that match the differential service code point value; The rule action is executed based on the matching result.

[0034] In this embodiment of the application, the main router selects a rule action that matches the differential service code point value from a pre-defined firewall rule base, and executes the corresponding rule action according to the matching result, such as blocking access requests, application rate limiting, or filtering access to specific domain names.

[0035] like Figure 2 This application provides a mesh network routing message identification device, comprising: Information acquisition module 10 is used by the main router to acquire information about all slave routers in the mesh network; Number generation module 20 is used by the master route to generate unique numbers for all the slave routes; Numbering module 30 is used for the master route to send the unique number to the corresponding slave route; The point value embedding module 40 is used to embed the corresponding differential service code point value into the sub-router's own packet according to the unique number; The message acquisition module 50 is used for the main router to acquire the messages sent by the slave router; Point value acquisition module 60 is used for the main router to acquire the differential service code point value in the packet; The action execution module 70 is used for the main router to execute preset rule actions based on the differential service code point value.

[0036] The mesh network routing message identification device provided in this application can perform the mesh network routing message identification method provided by the above steps.

[0037] It should be understood that the specific embodiments described above are merely illustrative or explanatory of the principles of the invention and do not constitute a limitation thereof. Therefore, any modifications, equivalent substitutions, improvements, etc., made without departing from the spirit and scope of the invention should be included within the protection scope of the invention. Furthermore, the appended claims are intended to cover all variations and modifications falling within the scope and boundaries of the appended claims, or equivalent forms of such scope and boundaries.

[0038] The following is for reference. Figure 3 The diagram illustrates a structural schematic of an electronic device 100 suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0039] like Figure 3As shown, the electronic device 100 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 into a random access memory (RAM) 103. The RAM 103 also stores various programs and data required for the operation of the electronic device 100. The processing unit 101, ROM 102, and RAM 103 are interconnected via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.

[0040] Typically, the following devices can be connected to I / O interface 105: input devices 106 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 109. Communication device 109 allows electronic device 100 to communicate wirelessly or wiredly with other devices to exchange data. Although an electronic device 100 with various devices is shown in the figure, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0041] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 109, or installed from storage device 108, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of embodiments of this disclosure.

[0042] The following is for reference. Figure 4 It illustrates a schematic diagram of a computer-readable storage medium suitable for implementing embodiments of the present disclosure, the computer-readable storage medium storing a computer program that, when executed by a processor, can implement the mesh network routing message identification method as described above.

[0043] This application also provides a computer program product. It includes a computer program / computer-executable instructions that, when executed by a processor of an electronic device, implement the steps of the mesh network routing message identification method described in any of the preceding claims.

[0044] The mesh network slave packet identification method, device and storage medium provided in this application can quickly and accurately determine the slave route from which the packet originates, and set different priorities and internet access restrictions for different slave routes. This is of vital practical significance for ensuring home network security, improving the smart home user experience and optimizing home network management.

[0045] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0046] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for identifying a mesh network from a routing message, characterized in that, The method comprises steps of: The master router obtains information of all slave routers in the mesh network; The master router generates unique numbers for all the slave routers; The master router issues the unique numbers to the corresponding slave routers; The slave routers embed corresponding differentiated services code point values in their own packets according to the unique numbers; The master router obtains the packets sent by the slave routers; The master router obtains the differentiated services code point values in the packets; The master router performs preset rule actions according to the differentiated services code point values.

2. The mesh network routing message identification method of claim 1, wherein, The master router obtaining information of all slave routers in the mesh network comprises steps of: The master router obtains device models of all the slave routers in the mesh network; The master router obtains media access control addresses of all the slave routers; The master router establishes a first mapping relationship between the media access control addresses and the device models of the same slave router.

3. The mesh network routing message identification method of claim 1, wherein, The master router generating unique numbers for all the slave routers comprises steps of: The master router obtains media access control addresses of all the slave routers; The master router arranges all the media access control addresses in ascending order; The master router generates unique numbers for all the slave routers according to the arrangement order; The master router establishes a second mapping relationship between the media access control addresses and the unique numbers of the same slave router.

4. The mesh network routing message identification method of claim 1, wherein, The master router issuing the unique numbers to the corresponding slave routers comprises steps of: The master router obtains the second mapping relationship between the media access control addresses and the unique numbers of the slave routers; The master router issues the unique numbers to the corresponding slave routers according to the second mapping relationship.

5. The mesh network routing message identification method of claim 1, wherein, The slave routers embedding corresponding differentiated services code point values in their own packets according to the unique numbers comprises steps of: The slave routers obtain the unique numbers issued by the master router; The slave routers generate differentiated services code point values according to the unique numbers; The slave routers obtain their own generated packets; The slave routers set the differentiated services code point values in preset fields of the packets; The slave routers forward data packets containing the packets to the master router.

6. The mesh network routing message identification method of claim 1, wherein, The master router obtaining the differentiated services code point values in the packets comprises steps of: The master router receives the packets sent by the slave routers; The master router parses the differentiated services code point values in the packets.

7. The mesh network routing message identification method of claim 1, wherein, The master router performing preset rule actions according to the differentiated services code point values comprises steps of: The master router obtains a preset firewall rule library; The master router searches the firewall rule library for rule actions matched with the differentiated services code point values; The master router performs the rule actions according to the matching results.

8. A mesh network source routing message identification device, characterized in that, The method comprises: An information obtaining module for the master router to obtain information of all slave routers in the mesh network; A number generating module for the master router to generate unique numbers for all the slave routers; A number issuing module for the master router to issue the unique numbers to the corresponding slave routers; A point value embedding module for the slave routers to embed corresponding differentiated services code point values in their own packets according to the unique numbers; A packet obtaining module for the master router to obtain the packets sent by the slave routers; A point value obtaining module is configured to obtain the differentiated service code point value in the packet by the main route. An action executing module is configured to execute a preset rule action according to the differentiated service code point value by the main route.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the steps of the method in any one of claims 1-7.

10. A storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the steps of the method in any one of claims 1-7. The program is executed by the processor to implement the steps of the method in any one of claims 1-7.