Networking method, apparatus and system, and electronic device and storage medium

By detecting the transmissive transmission capability of the optical modem, switching the router's message forwarding channel and converting the message type, the router's parallel networking failure caused by the optical modem's failure to support preset VLAN ID transmission is solved, and normal router interaction and address allocation are achieved.

WO2025157252A1PCT designated stage Publication Date: 2025-07-31RUIJIE NETWORKS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/074576
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-25
Filing Date
2025-01-24
Publication Date
2025-07-31

AI Technical Summary

Technical Problem

Optical modem does not support the router's parallel networking failure caused by the transmission of preset VLAN IDs, including the problem that the optical modem prohibits the main router from allocating addresses and affects normal interactions.

Method used

By detecting whether the optical modem supports preset VLAN ID transmission, and switching the router's message forwarding channel type according to the results, establishing an interactive channel, and converting the message type to avoid the monitoring function of the optical modem to realize the message transmission.

Benefits of technology

It solves the problem of network failure caused by optical modem not supporting preset VLAN ID transmission, ensuring normal interaction and address allocation between routers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025074576_31072025_PF_FP_ABST
    Figure CN2025074576_31072025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a networking method, apparatus and system, and an electronic device and a storage medium. The networking method is applied to a first router to be networked, and comprises: when a first router is determined to be a sub-router, determining whether an optical modem supports transparent transmission of a preset virtual local area network identifier (VLAN ID); and if the optical modem does not support the transparent transmission of the preset VLAN ID, switching a message forwarding channel type in the first router to a target channel type, wherein the target channel type is a message channel type of which the optical modem can perform transparent transmission on a message.
Need to check novelty before this filing date? Find Prior Art

Description

Networking method, device, system, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on January 25, 2024, with application number 202410110527.3 and application name “A Parallel Networking Method, Router and Parallel Networking System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of networking technology, and in particular to a networking method, device, system, electronic device, and storage medium. Background Art

[0004] As living standards improve, homes are becoming larger. However, for larger homes (e.g., over 120 square meters), a single home router is no longer sufficient to meet the needs of wireless network coverage. Consequently, home router manufacturers have introduced both wireless and wired networking solutions.

[0005] Wired networking includes access controllers (ACs) and wireless access points (APs), as well as AP mesh (MESH) networking. AP MESH is essentially an AC + AP network, but the AC is not a physical hardware device but a logical AC implemented by software modules. For example, a single AP performs the functions of a logical AC.

[0006] The AC+AP networking solution applies enterprise-grade wireless solutions to home networking scenarios. In this solution, the AC needs to be placed in a low-voltage power box, and the AP can be an 86-model panel AP. However, this solution is more expensive and requires specialized installation and deployment expertise.

[0007] Compared to the AC+AP solution, a router's mesh networking solution (i.e., an AP mesh networking method) is undoubtedly more cost-effective. The router's mesh networking solution supports both wired and wireless mesh networking, providing a very flexible networking method. If your home network already has pre-installed network cables, you can choose a wired mesh networking method.

[0008] The default wired MESH networking mode is series networking. This mode requires the main router (a router with logical AC function) to be installed in a weak current box.

[0009] Another wired MSEH networking solution is to place the main router in a central location, such as the living room. In this case, the main router's WAN port needs to be connected via an Ethernet cable to an optical modem (also known as an optical modem) located in the low-voltage power box, while the LAN port needs to be connected via an Ethernet cable to a switch to achieve networking. Summary of the Invention

[0010] The embodiments of the present application disclose a networking method, apparatus, system, electronic device, and storage medium.

[0011] In the first aspect, the embodiments of the present application provide the following technical solutions:

[0012] A parallel networking method, applied to a first router to be networked, comprising:

[0013] When the first router is determined to be a sub-router, determining whether the optical modem supports transparent transmission of a preset virtual local area network identifier VLAN ID; and

[0014] If the optical modem does not support transparent transmission of the preset VLAN ID, the message forwarding channel type in the first router is switched to a target channel type; wherein the target channel type is a message channel type that the optical modem can transparently transmit messages.

[0015] In some embodiments, before the first router is determined as a sub-router, the method further includes:

[0016] In response to the parallel networking command,

[0017] The router role of the first router is determined based on a preset election rule; the router roles include a master router and a sub-router; wherein the parallel networking command is broadcasted in response to a networking instruction input by a user.

[0018] In some embodiments, after determining whether the optical modem supports transparent transmission of a preset virtual local area network identifier (VLAN ID), the method further includes:

[0019] If the optical modem does not support the preset VLAN ID transparent transmission, an interactive channel that can interact with the default VLAN ID channel is established, and the message forwarding channel is switched to the interactive channel.

[0020] The parallel networking method of the present application, in routing mode, first determines that there is a second router to be networked that is connected to the optical modem in parallel with the first router to be networked, then the user starts the parallel networking command, and the first router to be networked broadcasts the parallel networking command, after which the first router and the second router determine the main router based on the preset election rules. When the first router is determined to be a sub-router, it is necessary to switch the sub-router's message forwarding channel to the target channel type according to the message channel type of the optical modem, so that the sub-router's message can be transparently transmitted to the main router through the optical modem, so as to realize message interaction between the sub-router and the main router and successfully realize networking. The present application solves the problem of unsuccessful parallel networking of optical modems caused by the inconsistency between the optical modem's message transparent transmission channel and the router's message forwarding channel.

[0021] In some embodiments, switching the packet forwarding channel type in the sub-router to the target channel type includes:

[0022] Detect whether the optical modem supports transparent transmission of the preset VLAN ID. If the optical modem supports transparent transmission of the preset VLAN ID, switch the message forwarding channel to the preset VLAN ID channel; if the optical modem does not support transparent transmission of the preset VLAN ID, establish an interactive channel that can interact with the default VLAN ID channel, and switch the message forwarding channel to the interactive channel.

[0023] This application solves the problem of message interaction between the optical modem and the router being unable to be performed due to the optical modem not supporting the preset VLAN ID transparent transmission by detecting whether the optical modem supports the preset VLAN ID transparent transmission and correspondingly switching the router's message forwarding channel to the preset VLAN ID channel or establishing and switching to an interactive channel that can interact with the default VLAN ID channel.

[0024] In some embodiments, whether the optical modem supports transparent transmission of a preset VLAN ID is detected by:

[0025] The optical modem sends a detection message to the preset VLAN ID network port of the designated second router, and the detection message is received at the preset VLAN ID network port of the second router.

[0026] A detection message is sent to the preset VLAN ID network port of the designated second router through the optical modem. According to whether the detection message is received, it can be determined whether the optical modem supports transparent transmission of the preset VLAN ID of the second router.

[0027] In some embodiments, the parallel networking method further includes obtaining an address assigned by a primary router.

[0028] In some embodiments, obtaining the address allocated by the primary router includes:

[0029] transparently transmitting the address request message to the primary router via the optical modem; and

[0030] receiving an address response message transparently transmitted by the primary router through the optical modem to inform the requester of the address request message;

[0031] The requesting party includes: a first terminal accessing the sub-router and the sub-router.

[0032] In some embodiments, obtaining the address allocated by the primary router includes:

[0033] Transmitting the address request message sent by the terminal to the main router through the optical modem;

[0034] The address response message transparently transmitted by the main router through the optical modem is sent to the terminal.

[0035] In some embodiments, transparently transmitting the received address request message to the primary router through the optical modem includes:

[0036] receiving a first type of message from the requesting party, and converting the first type of message into a second type of message; wherein the first type of message is recognizable by an optical modem, and the second type of message is not recognizable by the optical modem; and

[0037] Transmitting the converted second type message to the main router via the optical modem; and

[0038] The receiving of the address response message transparently transmitted by the main router through the optical modem to inform the requester of the address request message includes:

[0039] receiving a second-type reply message transparently transmitted by the optical modem, and converting the second-type reply message into a first-type reply message, wherein the second-type reply message is a reply message sent by the primary router based on the second-type reply message; and

[0040] Sending the first type response message to the requesting party.

[0041] In some embodiments, transparently transmitting the address request message sent by the terminal to the main router through the optical modem includes:

[0042] receiving a first type message requested by a terminal, and converting the first type message into a second type message; wherein the first type message can be recognized by an optical modem, and the second type message cannot be recognized by the optical modem;

[0043] Sending the converted second type message to the main router via the optical modem;

[0044] Correspondingly, the sending of the address response message transparently transmitted by the main router through the optical modem to the terminal includes:

[0045] receiving a second-type reply message transparently transmitted through the optical modem, and converting the second-type reply message into a first-type reply message, wherein the second-type reply message is a reply message of the determined primary router based on the second-type message;

[0046] The converted first type response message is sent to the terminal.

[0047] In some embodiments, the port number of the first type of message is the port number of the address request message, and the port number of the first type of message is different from the port number of the second type of message.

[0048] In some embodiments, the port number of the first type of message is the port number of the address request message, and the number of digits of the port number of the second type of message is greater than or equal to the number of digits of the port number of the first type of message.

[0049] In some embodiments, the port number of the first type of message is 67 / 68, and the port number of the second type of message is 54067 / 54068.

[0050] During the sub-router's address acquisition process, the messages transmitted through the optical modem are always Type 2 messages or Type 2 response messages. Because the optical modem cannot identify the port numbers of Type 2 messages and Type 2 response messages, the main router's Type 2 response messages will not be intercepted by the optical modem's monitoring function. Furthermore, the optical modem will not have the opportunity to respond to the sub-router's Type 1 messages. This application solves the problem of the optical modem prohibiting the main router from allocating addresses, and also addresses the problem of both the optical modem and the main router simultaneously responding to Type 1 messages, affecting normal interaction.

[0051] In some embodiments, the parallel networking method further includes:

[0052] Applying an EasyConnect networking request to the determined primary router and obtaining response information from the primary router in response to the EasyConnect networking request; wherein the EasyConnect networking request is forwarded via an optical modem; and

[0053] Establish a communication connection with the primary router.

[0054] In some embodiments, establishing a communication connection with the primary router includes:

[0055] The first router is switched from routing mode to AP mode, and serves as the sub-router to re-establish a communication connection with the main router.

[0056] After the sub-router obtains the address, it continues to send an EasyConnect networking request to the main router. After receiving the response information from the main router, the sub-router switches from routing mode to AP mode and re-establishes a communication connection with the main router, completing the networking.

[0057] In some embodiments, the parallel networking method further includes:

[0058] When the first router is determined as the main router, it responds to the address request of the terminal forwarded by the sub-router and configures an address for the terminal.

[0059] In some embodiments, the parallel networking method further includes:

[0060] Respond to the sub-router's EasyConnect networking request and register the sub-router information;

[0061] Re-establish the communication connection with the child router.

[0062] After the main router finishes configuring the address for the sub-router, it continues to respond to the sub-router's easy-to-connect networking request, registers the sub-router information, and re-establishes the communication connection with the sub-router, completing the networking.

[0063] In some embodiments, the method further comprises:

[0064] When the first router is determined as the master router, establishing a preset VLAN ID channel and establishing an interactive channel that can interact with the default VLAN ID channel; and

[0065] responding to an address request message sent by the determined sub-router through the optical modem and configuring an address for a requester of the address request message;

[0066] The requesting party includes: a first terminal accessing a sub-router and the sub-router.

[0067] In some embodiments, responding to the determined address request message of the sub-router and configuring an address for the requester of the address request message includes:

[0068] receiving a second type of message transparently transmitted through the optical modem, and converting the second type of message into a first type of message;

[0069] generating a first type response message in response to the first type message; and

[0070] Converting the first type response message into a second type response message, and transparently transmitting the second type response message to the requester of the address request message via an optical modem;

[0071] The first type message and the first type response message can be recognized by the optical modem, and the second type message and the second type response message cannot be recognized by the optical modem.

[0072] During the process of configuring addresses for sub-routers by the main router, similarly, messages transmitted through the optical modem are always Type 2 messages or Type 2 response messages. Because the optical modem cannot identify the port numbers of Type 2 messages and Type 2 response messages, the main router's Type 2 response messages will not be intercepted by the optical modem's monitoring function. Furthermore, the optical modem will not have the opportunity to respond to Type 1 messages from the sub-router. This application solves the problem of the optical modem prohibiting the main router from allocating addresses, and also solves the problem of both the optical modem and the main router responding to Type 1 messages simultaneously, thus affecting normal interaction.

[0073] In some embodiments, the parallel networking method further includes:

[0074] When the first router is determined as the main router, the preset VLAN ID channel is opened and an interactive channel that can interact with the default VLAN ID channel is established at the same time.

[0075] The main router simultaneously opens the preset VLAN ID channel and establishes an interactive channel that can interact with the default VLAN ID channel. The message forwarding channel of the main router can be selected according to the message transparent transmission channel type of the optical modem.

[0076] In some embodiments, the method further comprises:

[0077] responding to the easylink networking request sent by the sub-router through the optical modem and registering the sub-router information; and

[0078] Establishing a communication connection with the sub-router.

[0079] In some embodiments, the parallel networking method further includes:

[0080] When the first router is determined to be the primary router, receiving a first type of message from a second terminal requesting access to the primary router; and

[0081] A first type response message is generated based on the first type message, and the first type response message is sent to the second terminal.

[0082] When the terminal is directly connected to the main router, the main router directly responds to the terminal request.

[0083] In some embodiments, the method further comprises:

[0084] In routing mode, determining that there is a second router to be networked and connected in parallel with the first router to an optical modem;

[0085] In some embodiments, it is determined that there is a second router to be networked and connected in parallel to the first router to an optical modem by:

[0086] Sending a discovery message through the WAN port of the first router; and

[0087] A discovery message sent by the second router is received at the WAN network port.

[0088] By sending and receiving discovery messages at the WAN port, it is determined that there are multiple routers connected in parallel to the optical modem.

[0089] In a second aspect, an embodiment of the present application further provides a parallel networking device, applied to a first router, comprising:

[0090] An optical modem parallel discovery module is configured to determine whether a second router to be networked is connected in parallel to the first router and connected to the optical modem; further configured to determine a primary router based on a preset election rule with the second router; and further configured to detect whether the optical modem supports transparent transmission of a preset VLAN ID;

[0091] The wireless access point management module is configured to, when the first router is a sub-router, switch the message forwarding channel type in the sub-router to the target channel type, so that the message of the sub-router and the message of the main router can be transparently transmitted and interacted through the optical modem.

[0092] In some embodiments, the wireless access point management module is further configured to, when the first router serves as a master router, simultaneously open a preset VLAN ID channel and establish an interactive channel that can interact with the default VLAN ID channel.

[0093] In a third aspect, an embodiment of the present application further provides a router, including:

[0094] An optical modem parallel discovery module is configured to determine whether a second router to be networked is connected in parallel to the optical modem; determine a primary router based on a preset election rule with the second router; and detect whether the optical modem supports transparent transmission of a preset VLAN ID.

[0095] The wireless access point management module is used to switch the message forwarding channel type in the sub-router to the target channel type when the router is a sub-router, so that the message of the sub-router and the message of the main router can be transparently transmitted and interacted through the optical modem.

[0096] In some embodiments, the wireless access point management module is further configured to, when the router is a master router, simultaneously open a preset VLAN ID channel and establish an interactive channel that can interact with the default VLAN ID channel.

[0097] The optical modem parallel discovery module of the router of the present application can determine whether there are multiple routers connected to the optical modem in parallel and elect a main router based on preset rules; it can also detect the message channel type of the optical modem, that is, detect whether the optical modem supports the preset VLAN ID transparent transmission, and switch the message forwarding channel type of the sub-router according to the detection result to realize the message interaction between the sub-router and the main router, solving the problem of unsuccessful optical modem parallel networking caused by the inconsistency between the message channel of the optical modem and the message forwarding channel of the router.

[0098] The dynamic host configuration protocol conversion module is used to convert the first type of message that cannot be transparently transmitted by the optical modem into the second type of message that can be transparently transmitted by the optical modem; and is also used to convert the second type of message into the first type of message.

[0099] A switch chip access control list module, when the router is determined to be a sub-router, the switch chip access control list module is used to receive a first type of message from a terminal connected to the sub-router and send the first type of message to the dynamic host configuration protocol conversion module of the sub-router; further used to transparently transmit a second type of message to the dynamic host configuration protocol conversion module of the main router via an optical modem; further used to receive a second type of reply message from the main router, and send the second type of reply message transparently transmitted via the optical modem to the dynamic host configuration protocol conversion module of the sub-router; further used to send the first type of reply message to the terminal;

[0100] When the router is determined to be the master router, the switch chip access control list module is used to receive a first type message from a terminal connected to the master router, generate a first type response message based on the first type message, and send the first type response message to the terminal.

[0101] In a fourth aspect, each embodiment of the present application further provides a parallel networking system, comprising an optical modem and a plurality of routers according to the second aspect;

[0102] A plurality of the routers are connected in parallel to the optical modem;

[0103] The optical modem is used for transparently transmitting interaction messages between the plurality of routers.

[0104] The parallel networking system of the present application realizes message interaction between multiple routers through optical modem transparent transmission.

[0105] In a fifth aspect, each embodiment of the present application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the parallel networking method as described in the first aspect is implemented.

[0106] In a sixth aspect, each embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the parallel networking method as described in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0108] FIG1 is a schematic diagram of a process before a terminal obtains an address according to an embodiment of the present application.

[0109] FIG2 is a schematic flow chart of step S104 in FIG1 .

[0110] FIG3 is a flow chart showing a sub-router obtaining an address assigned by a main router according to an embodiment of the present application.

[0111] FIG4 is a schematic flow chart of step S301 in FIG3 .

[0112] FIG5 is a schematic flow chart of step S302 in FIG3 .

[0113] FIG6 is a schematic diagram of the process of the sub-router performing easy-connect networking according to an embodiment of the present application.

[0114] FIG7 is a schematic diagram of the process of the master router allocating addresses to the sub-routers and establishing an easy-to-connect network according to an embodiment of the present application.

[0115] FIG8 is a schematic flow chart of step S601 in FIG6 .

[0116] FIG9 is a schematic diagram of a process of allocating addresses to terminals by an optical modem according to an embodiment of the present application.

[0117] FIG10 is a flow chart of the parallel networking method provided in an embodiment of the present application.

[0118] FIG11 is a schematic diagram of the process of a terminal acquiring an address according to an embodiment of the present application.

[0119] FIG12 is a schematic diagram of the structure of a parallel networking system provided in an embodiment of the present application;

[0120] FIG13 is a schematic diagram of the structure of the switch chip access control list module of the router provided in an embodiment of the present application.

[0121] Icons: 100, optical modem; 200, sub-router; 300, main router; 1, optical modem parallel discovery module; 2, wireless access point management module; 3, dynamic host configuration protocol conversion module; 4, switch chip access control list module; 5, central processing unit; 41, WAN port; 42, LAN port; 43, central processing unit port; 51, preset VLAN ID channel; 52, interaction channel. DETAILED DESCRIPTION

[0122] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0123] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. Throughout this application, unless otherwise specified, "plurality" means two or more.

[0124] The default networking mode for wired MESH networking is a series networking mode, which is to connect the optical modem, main router and switch in series. In this solution, the main router (for example, a router with logical AC function) can be installed in a weak-current box. However, the weak-current box is usually located at the entrance to the house, which is not a good location; and the weak-current box may use a metal cover, which will make the wireless WiFi signal of the main router unavailable, which is equivalent to wasting the router function of a device. Another way is to place the main router in the living room; in this case, the WAN port of the main router needs to be connected to the optical modem located in the weak-current box with an Internet cable, and the LAN port needs to be connected to the switch with an Internet cable, so two network cables need to be pre-buried in the living room. In many family housing plans, the pre-buried two network cables in the living room were not considered during the early decoration, which brought great difficulties to wired series networking.

[0125] Optical modems (also known as optical modems) can also be used to achieve parallel networking. This means that all routers are physically connected in parallel to the optical modem, and the logical topology is that the sub-routers are connected in parallel to the main router. In this case, the sub-routers operate in AP mode (with AP functions), and the main router operates in routing mode (with router functions). The main router centrally manages and controls user traffic, the configuration of each sub-router, and so on. The main router assumes the function of a virtual AC. This solves the limitation of two network cables from the main router in the living room to the optical modem in wired serial networking and is widely used.

[0126] The aforementioned parallel networking solution, also known as a parallel optical modem network, eliminates the need for backhaul cables in a wired serial network because the main router eliminates the need for backhaul cables. However, when the optical modem is not connected to a switch, the intranet data traffic in the parallel network must be transparently transmitted through the optical modem bridge. However, some optical modems lack VLAN transparent transmission capabilities (i.e., they do not support transparent transmission of preset VLAN IDs), which can affect the normal interaction between the optical modem and the router, ultimately leading to network failure.

[0127] Some optical modems have Dynamic Host Configuration Protocol Snooping (DHCP Snooping) enabled, which prevents the main router from assigning addresses. This can also cause the optical modems to fail in parallel networking.

[0128] Some optical modems do not fully support preset VLAN IDs. There is a risk that the optical modem and the main router will respond to Dynamic Host Configuration Protocol (DHCP) requests at the same time, causing the sub-routers and terminals to obtain incorrect addresses, and ultimately the parallel networking will fail.

[0129] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" refers to two or more than two.

[0130] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0131] As shown in FIG1 , an embodiment of the present application provides a parallel networking method, which is applied to a first router to be networked, including:

[0132] S101. In routing mode, determining that a second router to be networked is connected in parallel with a first router to an optical modem;

[0133] In this step, the waiting network represents the state of waiting to access the network.

[0134] S102, in response to the networking instruction, broadcasting a parallel networking command; and

[0135] S103. In response to the parallel networking command, the first router and the second router determine a master router based on a preset election rule;

[0136] In this embodiment of the present application, all routers in the network have router roles, including a master router and sub-routers. The sub-routers operate in AP mode (in which case they have AP functionality), and the master router operates in routing mode (in which case they can have both router and AP functionality). The master router centrally manages and controls user traffic, the configuration of each sub-router, and the allocation of addresses. In this embodiment, the master router can also function as a virtual AC.

[0137] S104: When the first router is determined to be a sub-router, the message forwarding channel type in the sub-router is switched to the target channel type, so that messages of the sub-router and the main router can interact through transparent transmission of the optical modem; wherein the target channel type is the message channel type of the optical modem.

[0138] The parallel networking method of the present application, in routing mode, first determines that there is a second router to be networked that is connected to the optical modem in parallel with the first router to be networked, and then, when receiving a parallel networking instruction input by the user, the first router to be networked broadcasts the parallel networking command, and then the first router and the second router determine the main router based on the preset election rules. When the first router is determined to be a sub-router, it is necessary to switch the message forwarding channel of the sub-router to the target channel type according to the message channel type of the optical modem, so that the message of the sub-router can be transparently transmitted to the main router through the optical modem, so as to realize the message interaction between the sub-router and the main router and successfully realize the networking. The embodiment of the present application solves the problem of unsuccessful parallel networking of optical modems caused by the inconsistency between the message transparent transmission channel of the optical modem and the message forwarding channel of the router.

[0139] In some embodiments, referring to FIG2 , switching the packet forwarding channel type in the sub-router to the target channel type includes:

[0140] S201, detecting whether the optical modem supports transparent transmission of the preset VLAN ID, if so, executing S202, if not, executing S203;

[0141] S202, switching the message forwarding channel to the preset VLAN ID channel; and

[0142] S203: Establish an interactive channel that can interact with the default VLAN ID channel, and switch the message forwarding channel to the interactive channel.

[0143] In the embodiment of the present application, the packet forwarding channel type of the sub-router needs to be switched to the packet channel type of the optical modem. Specifically, when the optical modem supports transparent transmission of the preset VLAN ID, the packet forwarding channel type of the sub-router is switched to the preset VLAN ID channel, i.e., the parallel networking forwarding network channel (hereinafter referred to as the VLAN i channel, where i is a positive integer greater than 1). When the optical modem does not support transparent transmission of the preset VLAN ID, the sub-router establishes an interactive channel that can interact with the default VLAN ID channel and switches the packet forwarding channel to the interactive channel, i.e., the media access control virtual local area network channel (hereinafter referred to as the macVLAN channel).

[0144] It should be noted that the VLAN ID range that can be predefined is 1-4094, among which VLAN1 is the default transparent forwarding channel for optical modems and routers. To improve transparent transmission performance, VLAN4033 is preset as the preset VLAN ID. Because the preset VLAN4033 channel has better forwarding performance and higher priority, the sub-router or its connected terminal will preferentially request an address from the main router through the preset VLAN4033 channel. The message requesting the address requires the optical modem to support the preset VLAN4033 transparent transmission. However, due to the inherent performance of the optical modem, some optical modems do not support the preset VLAN4033 transparent transmission. However, the above-mentioned address request message matches the preset VLAN4033 channel but does not match the VLAN1 channel. Therefore, it cannot be transparently transmitted through the VLAN1 channel, which will cause the parallel networking to fail.

[0145] The embodiment of the present application creates a new interactive channel, which does not require the optical modem to support the preset VLAN ID transparent transmission, and can interact with the optical modem's default VLAN 1 channel, so that the message can be transparently forwarded without obstacles. In the embodiment of the present application, the interactive channel can be recorded as a macVLAN channel.

[0146] It should be noted that, if there is no conflict with the VLAN of other services, 4033 can also be replaced with other IDs within the range of 1-4094 for forwarding address request messages. Generally, one ID can be defined, but multiple IDs can also be defined, and this application does not make any special restrictions on this.

[0147] The embodiment of the present application switches the message forwarding channel of the sub-router according to the message channel type of the optical modem, so that the message of the sub-router can be transparently transmitted through the optical modem and sent to the main router, thereby realizing message interaction between the sub-router and the main router, and solving the problem of unsuccessful parallel networking caused by the optical modem not supporting the preset VLAN ID transparent transmission.

[0148] In some embodiments, whether the optical modem supports transparent transmission of a preset VLAN ID is detected by:

[0149] The detection message is sent to the preset VLAN ID network port of the designated second router through the optical modem, and the detection message is received at the preset VLAN ID network port of the second router.

[0150] In one possible implementation, a probe message is sent via an optical modem to a network port with a preset VLAN ID of a designated second router. If the probe message is received at the network port with the preset VLAN ID of the second router, it indicates that the optical modem supports transparent transmission of the preset VLAN ID. If the second router does not receive the probe message via the network port with the preset VLAN ID, it indicates that the optical modem does not support transparent transmission of the preset VLAN ID. In an embodiment of the present application, a probe message is sent via an optical modem to a network port with a preset VLAN ID of a designated second router. Whether the optical modem supports transparent transmission of the preset VLAN ID can be determined based on whether the probe message is received.

[0151] In some embodiments, the parallel networking method further includes: obtaining an address assigned by a primary router.

[0152] Referring to FIG3 , obtaining the address assigned by the primary router may include:

[0153] S301, transparently transmit the address request message sent by the terminal to the main router through the optical modem; and

[0154] S302: Send the address response message transparently transmitted by the main router through the optical modem to the terminal.

[0155] Referring to FIG4 , transparently transmitting the address request message sent by the terminal to the main router via the optical modem may include:

[0156] S401. Receive a first type message requested by a terminal, and convert the first type message into a second type message; wherein the first type message can be recognized by an optical modem, and the second type message cannot be recognized by the optical modem; and

[0157] S402: Send the converted second type message to the main router via the optical modem.

[0158] 5 , sending the address response message transparently transmitted by the main router through the optical modem to the terminal may include:

[0159] S501. Receive a second-type response message transparently transmitted via an optical modem, and convert the second-type response message into a first-type response message, wherein the second-type response message is a response message of the determined primary router based on the second-type message; and

[0160] S502: Send the converted first type response message to the terminal.

[0161] In one possible implementation, since the first type of message and the first type of response message can be recognized by the optical modem, when the optical modem has the message monitoring (DHCP snooping) function enabled, the first type of response message of the main router will be intercepted by the optical modem, affecting the interaction and causing the network to fail; when the optical modem does not have the message monitoring function enabled, the first type of message can be responded to by both the main router and the optical modem at the same time, affecting the normal interaction and causing the sub-router to obtain the address incorrectly. In order to solve the above problem, after receiving the first type of message from the connected terminal, the sub-router first converts the first type of message into a second type of message that cannot be recognized by the optical modem, then transparently transmits the second type of message to the main router via the optical modem, then receives the second type of response message from the main router via the optical modem, converts the second type of response message into a first type of response message, and finally sends it to the terminal, so that the address is successfully obtained. Optionally, the first type of message and the first type of response message can be standard DHCP messages.

[0162] In embodiments of the present application, when transparently transmitted through an optical modem, the messages are always Type II messages or Type II response messages. Because the optical modem cannot identify the port numbers of Type II messages and Type II response messages, the Type II response messages from the master router will not be intercepted by the optical modem's monitoring function. Furthermore, the optical modem will not have the opportunity to respond to Type I messages from the slave router. This application solves the problem of an optical modem prohibiting the master router from allocating addresses, and also solves the problem of both the optical modem and the master router simultaneously responding to Type I messages, thus affecting normal interaction.

[0163] It should be noted that the DHCP snooping function of the optical modem is specifically designed to intercept address request messages and does not intercept other types of messages.

[0164] In some embodiments, the port number of the first type of message is the port number of the address request message, and the port number of the first type of message is different from the port number of the second type of message.

[0165] It should be noted that the first type of message is an address request message, which is a standard protocol message of the Dynamic Host Configuration Protocol (DHCP). The specific port number of the message can be 67 / 68. The port number of the second type of message can be different to prevent it from being intercepted by the optical modem.

[0166] In some embodiments, the port number of the first type of message is the port number of the address request message, and the number of digits of the port number of the second type of message is greater than or equal to the number of digits of the port number of the first type of message.

[0167] The number of bits in the second type of message is greater than or equal to the number of bits in the first type of message, such as 78 / 79, 367 / 368, 4467 / 4468, 46067 / 46068, etc. That is, port numbers less than 65536 can be used as long as they are not occupied. However, if the numbers are relatively small, such as 78, 367, 4067, etc., there is a risk of conflict with port numbers already in use by the system.

[0168] In some embodiments, the port number of the first type of message may be 67 / 68, and the port number of the second type of message may be 54067 / 54068.

[0169] For example, the port number 67 / 68 of the first type of message is a standard message type, which is a port number specifically used as an address request and matches the VLAN4033 channel. The port number 54067 / 54068 of the second type of message is a non-standard message type, which is a mapping modification of the standard message port number, that is, 67 is modified to 54067, and 68 is modified to 54068. Its purpose is to solve the problem of intercepting the first type of response message of the main router due to the optical modem turning on the message monitoring function.

[0170] The optical modem can identify the port numbers of the first type of message and the first type of reply message. That is, when the optical modem has the message monitoring function enabled, the first type of reply message will be intercepted by the optical modem, causing the main router to fail to reply. However, the optical modem cannot identify the port numbers of the second type of message and the second type of reply message. That is, the optical modem will not intercept the second type of message reply message, allowing the message to be transparently transmitted through the optical modem. In the embodiment of the present application, when the message passes through the optical modem, the first type of message is always converted into the second type of message, or the first type of reply message is converted into the second type of reply message, thereby achieving normal interaction between the sub-router, the optical modem, and the main router.

[0171] Referring to FIG6 , the parallel networking method further includes:

[0172] S601, applying for an easy-connect networking request (for example, a parallel networking request) to the determined primary router, and obtaining a response message from the primary router in response to the easy-connect networking request; wherein the easy-connect networking request is forwarded via an optical modem; and

[0173] S602: Switch the first router from routing mode to AP mode, and re-establish a communication connection with the main router as a sub-router.

[0174] In one possible implementation method, after the sub-router obtains the address, it is necessary to perform easy networking.

[0175] Specifically, the sub-router sends an easy-to-connect networking request to the main router. After receiving the response information from the main router, the sub-router switches from routing mode to wireless access point mode (Access Point, AP) and re-establishes a communication connection with the main router, completing the networking.

[0176] It is understood that when the sub-router is already in AP mode when it receives the response information, it can further establish a Transmission Control Protocol (TCP) connection with the main router. If the sub-router is not in AP mode when it receives the response information, it needs to switch to AP mode and re-execute the above-mentioned address acquisition process and TCP connection establishment to achieve networking.

[0177] It should be noted that during the EasyConnect networking request process, the sub-router will send an EasyConnect networking request message. This message is a pre-configured management protocol message and is forwarded using the same forwarding channel as the address request process (i.e., if the address request process uses the preset VLAN4033 channel, the EasyConnect request process also uses the preset VLAN4033 channel; that is, if the address request process uses the macVLAN channel, the EasyConnect request process also uses the macVLAN channel), and is also converted into a second type of message when passing through the optical modem. Since the optical modem is not aware of all second type messages passing through it, the optical modem only serves as a bridge between the sub-router and the main router and does not perform other operations.

[0178] In some embodiments, referring to FIG7 , the parallel networking method further includes:

[0179] S701: When the first router is determined as the master router, it responds to the address request of the terminal forwarded by the sub-router and configures an address for the terminal;

[0180] S702, responding to the sub-router's EasyLink networking request and registering the sub-router information;

[0181] S703: Re-establish the communication connection with the sub-router.

[0182] In one possible implementation, when the first router is designated as the master router, the master router must receive an address request from a sub-router and configure an address for the sub-router. After the address is configured, the master router must also receive an easy-to-connect network request from the sub-router, register the sub-router's information, and re-establish a communication connection with the sub-router to complete the parallel network. The registered sub-router information includes one or more of the sub-router's serial number (SN), MAC address, software version number, forwarding mode, and IP address.

[0183] In some embodiments, referring to FIG8 , responding to an address request from a sub-router and configuring an address for the sub-router includes:

[0184] S801, receiving a second type of message transparently transmitted via an optical modem, and converting the second type of message into a first type of message;

[0185] S802: Generate a first type response message in response to the first type message;

[0186] S803, converting the first type response message into a second type response message, and transparently transmitting the second type response message to the determined sub-router via the optical modem;

[0187] The first type message and the first type response message can be identified by the optical modem, while the second type message and the second type response message cannot be identified by the optical modem.

[0188] In one possible implementation, the process of configuring an address for a sub-router by the main router is as follows: first, the main router receives the second-type message from the sub-router transparently transmitted via the optical modem, the main router converts the second-type message into a first-type message, and responds to the first-type message to generate a first-type response message, then the main router converts the first-type response message into a second-type response message that is not recognized by the optical modem, and finally sends the second-type response message to the sub-router via the optical modem transparently transmitted, and the main router completes the address configuration for the sub-router.

[0189] In the process of configuring addresses for sub-routers by the main router in the embodiment of the present application, similarly, when the message is transparently transmitted through the optical modem, it is always a second type message or a second type response message. Since the optical modem cannot identify the port number of the second type message and the second type response message, the second type response message of the main router will not be intercepted due to the optical modem turning on the monitoring function, and the optical modem will not have the opportunity to respond to the first type message of the sub-router. The present application solves the problem of the optical modem prohibiting the main router from allocating addresses by converting the message type, and solves the problem of the optical modem and the main router responding to the first type message at the same time, which affects normal interaction.

[0190] In some embodiments, the parallel networking method further includes:

[0191] When the first router is determined as the main router, the preset VLAN ID channel is opened and an interactive channel that can interact with the default VLAN ID channel is established at the same time.

[0192] In one possible implementation, when the first router is determined as the master router, the master router simultaneously opens the preset VLAN ID channel and establishes an interactive channel that can interact with the default VLAN ID channel. The sub-router then switches to the corresponding forwarding channel based on the optical modem's message channel type. For example, if the optical modem supports transparent transmission of the preset VLAN ID, the sub-router's message forwarding channel type switches to the preset VLAN ID channel. If the optical modem does not support transparent transmission of the preset VLAN ID, the sub-router establishes an interactive channel that can interact with the default VLAN ID channel and switches the message forwarding channel to the interactive channel, namely the macVLAN channel.

[0193] In some embodiments, referring to FIG9 , the parallel networking method further includes:

[0194] S901: When a first router is determined as a master router, the first router receives a first type of message requested by a terminal;

[0195] S902: Generate a first type response message based on the first type message, and send the first type response message to the terminal.

[0196] In one possible implementation, when the first router is determined to be the primary router and the terminal is connected to the primary router, the process for the terminal to obtain an address is as follows: the primary router receives a first type message from the terminal, generates a first type response message based on the first type message, and then sends the first type response message to the terminal, whereupon the terminal successfully obtains the address. In the embodiment of the present application, the primary router directly configures the address for the terminal connected thereto.

[0197] In some embodiments, it is determined that there is a second router to be networked and connected in parallel to the first router to the optical modem by:

[0198] The discovery message is sent at the WAN port, and the discovery message is received at the WAN port. It is understood that the routers to be networked can send the discovery message through their respective WAN ports according to a preset period.

[0199] In one possible implementation, if a first router to be networked sends and receives a discovery message, it indicates that a second router to be networked exists, connected in parallel with the first router and connected to the optical modem. If no discovery message is received, it indicates that a second router to be networked exists, connected in parallel with the first router and connected to the optical modem. This embodiment of the present application determines whether multiple routers are connected in parallel to the optical modem by sending and receiving discovery messages on a WAN port.

[0200] To make the solution provided by the embodiments of the present application easier to understand, the following describes in detail the process of a terminal acquiring an address in the parallel networking method through a specific embodiment. As shown in Figure 10, taking the example of a terminal connected to a sub-router and an optical modem supporting VLAN transparent transmission, the process includes the following steps:

[0201] S1001. The terminal sends a first type message request;

[0202] S1002. The sub-router receives a first type message request from the terminal;

[0203] S1003. The sub-router converts the first type of message into a second type of message.

[0204] S1004. The second type of message is transparently transmitted to the primary router via the optical modem.

[0205] S1005. The primary router converts the second type of message into the first type of message.

[0206] S1006. The primary router responds to the first type of message and generates a first type of response message.

[0207] S1007. The primary router converts the first type response message into a second type response message.

[0208] S1008. The second type response message is transparently transmitted to the sub-router via the optical modem;

[0209] S1009. The sub-router converts the second type response message into a first type response message; and

[0210] S1010. The sub-router sends a first type response message to the terminal to complete the address configuration.

[0211] FIG11 is a schematic diagram of the process of a terminal obtaining an address. Specifically, when the router to which the wired terminal is connected is a sub-router and the optical modem supports transparent transmission of a preset VLAN ID, the process of the wired terminal obtaining an address includes the following steps:

[0212] (1) The wired terminal sends a Dynamic Host Configuration Protocol (DHCP) request. In this case, the port number of the DHCP request message can be 67 / 68.

[0213] (2) The DHCP request is sent to the Switch Access Control List (Switch ACL) module of the sub-router and filtered according to the rules;

[0214] (3) The DHCP request is sent to the Dynamic Host Configuration Protocol Convertor (DHCP Convertor) module of the child router, which converts the standard DHCP message into a non-standard DHCP message and then sends it back to the switch chip access control list module of the child router. At this time, the port number of the converted non-standard DHCP message can be 54067 / 54068;

[0215] (4) The non-standard DHCP message is sent directly to the Dynamic Host Configuration Protocol conversion module of the main router via the optical modem;

[0216] (5) The Dynamic Host Configuration Protocol conversion module of the main router converts the non-standard DHCP message into a standard DHCP message, and responds to the standard DHCP message request after processing by the server protocol of the main router; that is, the port number of the non-standard DHCP message is converted from 54067 / 54068 to 67 / 68;

[0217] (6) The Dynamic Host Configuration Protocol conversion module of the main router converts the standard DHCP message into a non-standard DHCP message, and sends it to the access control list module of the switch chip of the sub-router via the optical modem, and filters it according to the rules; that is, the port number of the standard DHCP message is converted from 67 / 68 to 54067 / 54068;

[0218] (7) The switch chip access control list module of the sub-router sends the non-standard DHCP message to the dynamic host configuration protocol conversion module;

[0219] (8) The DHCP conversion module of the sub-router converts the non-standard DHCP message into a standard DHCP message and sends it back to the access control list module of the switch chip; that is, the port number of the non-standard DHCP message is converted from 54067 / 54068 to 67 / 68; and

[0220] (9) The access control list module of the switch chip of the sub-router sends the standard DHCP message in response to the wired terminal to complete the address configuration.

[0221] The embodiment of the present application further provides a parallel networking device, applied to a first router, characterized by comprising:

[0222] An optical modem parallel discovery module is configured to determine whether a second router to be networked is connected in parallel to the first router and connected to the optical modem; determine a primary router based on a preset election rule with the second router; and detect whether the optical modem supports transparent transmission of a preset VLAN ID.

[0223] The wireless access point management module is used to switch the message forwarding channel type in the sub-router to the target channel type when the first router is a sub-router, so that the messages of the sub-router and the messages of the main router can be transparently transmitted and interacted through the optical modem.

[0224] In some embodiments, the wireless access point management module is further configured to, when the first router serves as the master router, simultaneously open a preset VLAN ID channel and establish an interactive channel that can interact with the default VLAN ID channel.

[0225] As shown in FIG12 , an embodiment of the present application further provides a parallel networking system, including an optical modem 100 and multiple routers;

[0226] Multiple routers are connected in parallel to the optical modem 100; and

[0227] The optical modem 100 is used to transparently transmit interactive messages between multiple routers.

[0228] In one possible implementation, referring to FIG. 12 , the main router 300 and the sub-router 200 are connected in parallel with the optical modem 100 , and the optical modem 100 is used to transparently transmit interactive messages between the sub-router 200 and the main router 300 .

[0229] As shown in FIG12 , the router in the parallel networking system of the embodiment of the present application includes:

[0230] An optical modem parallel discovery (Opendisc) module is used to determine the presence of a second router to be networked and connected in parallel to the optical modem 100; is also used to determine the primary router 300 based on a preset election rule with the second router; and is also used to detect whether the optical modem 100 supports transparent transmission of a preset VLAN ID;

[0231] The wireless access point management (Access Point Manager, APMGR) module is used to switch the message forwarding channel type in the sub-router 200 to the target channel type (channel A or B in Figure 12) when the router is a sub-router 200, so that the messages of the sub-router 200 and the messages of the main router 300 can be transparently transmitted and interacted through the optical modem 100.

[0232] In one possible implementation, referring to Figure 12, the router of an embodiment of the present application includes an optical modem parallel discovery module 1 and a wireless access point management module 2, wherein the optical modem parallel discovery module 1 is used to determine whether there is a second router to be networked and connected to the optical modem 100 in parallel with the router; it is also used to determine the main router 300 based on a preset election rule with the second router; and it is also used to detect whether the optical modem 100 supports transparent transmission of a preset VLAN ID.

[0233] The wireless access point management module 2 is configured to, when a router is identified as a sub-router 200, switch the packet forwarding channel type in the sub-router 200 to an optical modem packet transparent transmission channel type (channel A or B in FIG. 12 ), enabling transparent transmission and interaction between packets from the sub-router 200 and the main router 300 via the optical modem 100. Specifically, when the optical modem 100 supports transparent transmission of a preset VLAN ID, the packet forwarding channel type of the sub-router 200 is switched to the preset VLAN ID channel 51 (channel A in FIG. 12 ). When the optical modem 100 does not support transparent transmission of a preset VLAN ID, an interaction channel 52 (channel B in FIG. 12 ) is established for the sub-router 200 that can interact with the default VLAN ID channel, and the packet forwarding channel is switched to the interaction channel 52, i.e., the macVLAN channel. The wireless access point management module 2 is further configured to submit an easy-to-connect network request to the identified master router 300 and obtain a response from the master router 300. It is also configured to switch the sub-router 200 from routing mode to AP mode and re-establish a communication connection with the master router 300. When the router is identified as the master router 300, the wireless access point management module 2 is further configured to simultaneously open a preset VLAN ID channel 51 and establish an interactive channel 52 (channels A and B in FIG. 12 ) that interacts with the default VLAN ID channel.

[0234] The router in the embodiment of the present application detects whether the optical modem 100 supports transparent transmission of the preset VLAN ID through the optical modem parallel discovery module 1, and switches the message forwarding channel type of the sub-router 200 accordingly through the wireless access point management module 2, thereby solving the problem that the sub-router 200 and the main router 300 cannot interact normally due to the optical modem 100 not supporting transparent transmission of the preset VLAN ID.

[0235] In some embodiments, the wireless access point management module is further configured to, when the router is the master router 300 , simultaneously open a preset VLAN ID channel and establish an interactive channel that can interact with the default VLAN ID channel.

[0236] Continuing to refer to Figure 12, the router of the embodiment of the present application also includes a switch chip access control list module 4 and a dynamic host configuration protocol conversion module 3, wherein the dynamic host configuration protocol conversion module 3 is used to convert a first type of message that can be recognized by the optical modem 100 into a second type of message that cannot be recognized by the optical modem 100; and is also used to convert the second type of message into the first type of message.

[0237] When the router is determined to be a sub-router 200, the switch chip access control list module 4 is configured to receive a first type of message from a terminal connected to the sub-router 200 and send the first type of message to the dynamic host configuration protocol conversion module 3 of the sub-router 200 via the central processor 5; further configured to transparently transmit a second type of message to the dynamic host configuration protocol conversion module 3 of the main router 300 via the optical modem 100; further configured to receive a second type of reply message from the main router 300 and send the second type of reply message transparently transmitted via the optical modem 100 to the dynamic host configuration protocol conversion module 3 of the sub-router 200; further configured to send the first type of reply message to the terminal;

[0238] When the router is determined to be the master router 300, the switch chip access control list module 4 is used to receive a first type message from a terminal connected to the master router 300, generate a first type response message based on the first type message, and send the first type response message to the terminal.

[0239] The router in the embodiment of the present application solves the problem of the optical modem 100 intercepting the response message of the main router 300 when the message monitoring function is enabled when the terminal is connected to the sub-router 200 through message type conversion of the dynamic host configuration protocol conversion module 3 and message forwarding of the switch chip access control list module 4. At the same time, it solves the problem of the optical modem 100 and the main router 300 responding to messages at the same time, which affects normal interaction.

[0240] It should be noted that when the terminal is a wireless terminal, the request sent by the wireless terminal does not pass through the switch chip access control list module 4 and is directly sent to the central processor 5 of the sub-router 200. The rest of the process is consistent with the request process of a wired terminal and is not further described here. When the wireless terminal obtains an address, the response message is also sent directly to the central processor 5 of the sub-router 200 through the switch chip access control list module 4 during the return process. The rest of the process is consistent with the address acquisition process of a wired terminal and is not further described here. Furthermore, the process of sending a request and obtaining an address by the sub-router 200 is consistent with that of a wireless terminal and is not further described here.

[0241] 13 , the switch chip access control list module 4 of the router includes a wide area network (WAN) port, a local area network (LAN) port, and a central processing unit (CPU) port 43. As shown in FIG13 , numbers 1-4 represent LAN ports 42, 5 represents WAN port 41, and 0 represents CPU port 43. The optical modem 100 is connected to the router via the WAN port 41, the terminal is connected to the switch chip access control list module 4 via the LAN port 42, and the switch chip access control list module 4 is connected to the CPU 5 via the CPU port 43.

[0242] Each embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the parallel networking method of the first aspect is implemented.

[0243] Each embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the parallel networking method of the first aspect.

[0244] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A networking method, applied to a first router to be networked, includes: When the first router is determined to be a sub-router, determining whether the optical modem supports the pass-through of a preset virtual local area network identifier (VLAN ID); And When the optical modem does not support the pass-through of the preset VLAN ID, switching the packet forwarding channel type in the first router to a target channel type; wherein, the target channel type is a packet channel type through which the optical modem can pass through packets.

2. The method according to claim 1, wherein, Before the first router is determined to be a sub-router, the method further includes: in response to a parallel networking command, determining the router role of the first router based on a preset election rule; the router role includes a master router and a sub-router; wherein, the parallel networking command is broadcast and sent in response to a networking instruction input by a user.

3. The method according to claim 1, wherein, After determining whether the optical modem supports the pass-through of the preset virtual local area network identifier (VLAN ID), the method further includes: When the optical modem does not support the pass-through of the preset VLAN ID, establishing an interaction channel that can interact with the default VLAN ID channel, and switching the packet forwarding channel to the interaction channel.

4. The method according to claim 1, wherein The method further includes: obtaining an address assigned by the master router.

5. The method according to claim 4, wherein The obtaining an address assigned by the master router includes: Passing an address request packet through the optical modem to the master router; and Receiving an address response packet passed through the optical modem by the master router to inform the requester of the address request packet; Wherein, the requester includes: a first terminal accessing the sub-router and the sub-router.

6. The method according to claim 5, wherein The passing the received address request packet through the optical modem to the master router includes: Receiving a first type of packet from the requester, and converting the first type of packet into a second type of packet; wherein, the first type of packet can be recognized by the optical modem, and the second type of packet cannot be recognized by the optical modem; and Passing the converted second type of packet through the optical modem to the master router; and The receiving the address response packet passed through the optical modem by the master router to inform the requester of the address request packet includes: Receiving a second type of response packet passed through the optical modem, and converting the second type of response packet into a first type of response packet, wherein, the second type of response packet is a response packet sent by the master router based on the second type of packet; and Sending the first type of response packet to the requester.

7. The method according to claim 5, wherein The port number of the first type of packet is the port number of the address request packet, and the port number of the first type of packet is different from the port number of the second type of packet in value.

8. The method according to claim 7, wherein The number of digits of the port number of the second type of packet is greater than or equal to the number of digits of the port number of the first type of packet.

9. The method according to claim 1, wherein After the sub-router obtains the address assigned by the master router, the method further includes: Send an EasyLink networking request to the master router and obtain the response information of the master router in response to the EasyLink networking request; wherein, the EasyLink networking request is forwarded by the optical modem; and Establish a communication connection with the master router.

10. The method according to claim 9, wherein, The establishing a communication connection with the master router includes:[[]] Switch the first router from the routing mode to the AP mode and re - establish a communication connection with the master router.

11. The method according to claim 1, wherein, The method further includes:[[]] When the first router is determined to be the master router, establish a preset VLAN ID channel and an interaction channel that can interact with the default VLAN ID channel; and Respond to the address request message sent by the determined sub - router through the optical modem and configure an address for the requester of the address request message; wherein, the requester includes: a first terminal accessing the sub - router and the sub - router.

12. The method according to claim 11, wherein, The responding to the address request message of the determined sub - router and configuring an address for the requester of the address request message includes:[[]] Receive a second - type message transparently transmitted by the optical modem and convert the second - type message into a first - type message; Respond to the first - type message to generate a first - type response message; and Convert the first - type response message into a second - type response message and transparently transmit it through the optical modem to the requester of the address request message; wherein, the first - type message and the first - type response message can be recognized by the optical modem, and the second - type message and the second - type response message cannot be recognized by the optical modem.

13. The method according to claim 11, wherein, The method further includes:[[]] Respond to the EasyLink networking request sent by the sub - router through the optical modem and register the sub - router information; and Establish a communication connection with the sub - router.

14. The method according to claim 1, wherein, The method further includes:[[]] When the first router is determined to be the master router, receive a first - type message requested by a second terminal accessing the master router; and Generate a first - type response message based on the first - type message and send the first - type response message to the second terminal.

15. The method according to claim 1, wherein, Before the first router is determined to be a sub - router, the method further includes:[[]] In the routing mode, determine that there is a second router to be networked and the first router is connected in parallel to the optical modem.

16. The method according to claim 15, wherein, Determine that there is a second router to be networked and the first router is connected in parallel to the optical modem in the following way:[[]] Send a discovery message through the WAN network interface of the first router; and Receive the discovery message sent by the second router at the WAN network interface.

17. A networking device, applied to the first router, includes:[[]] A wireless access point management module, configured to determine whether the optical modem supports the transparent transmission of a preset virtual local area network identifier VLAN ID when the first router is a sub - router; When the optical modem does not support the preset VLAN ID pass-through, switch the packet forwarding channel type in the first router to the target channel type; wherein, the target channel type is the packet channel type through which the optical modem can pass through packets; wherein, switching the packet forwarding channel type in the first router to the target channel type includes: establishing an interaction channel that can interact with the default VLAN ID channel, and switching the packet forwarding channel to the interaction channel.

18. A networking system, comprising: a plurality of routers, the plurality of routers being connected in parallel to an optical modem; and the optical modem, configured to pass through the interaction packets between the plurality of routers.

19. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the networking method according to any one of claims 1 to 16 are implemented.

20. A computer-readable storage medium, storing a computer program, wherein when the computer program is executed by a processor, the steps of the networking method according to any one of claims 1 to 16 are implemented.

Citation Information

Patent Citations

  • Data transmission method and device for distributed network, equipment and storage medium

    CN110808923A

  • Communication control method, system and device and storage medium

    CN115720302A

  • Indoor optical fiber networking system

    CN217721498U

  • Applying router quality of service on a cable modem interface on a per-service-flow basis

    US20110194411A1