Routing equipment configuration method and routing equipment

By creating multiple virtual bridge interfaces on the routing device, the problem of only one device can be connected in bridge mode is solved, and the multi-device access function is realized, improving the user experience.

CN120017499APending Publication Date: 2025-05-16HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311532343.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

Existing routing devices can only connect one device to the Internet at the same time in bridge mode, and cannot meet the needs of accessing multiple devices.

Method used

By setting up multiple virtual bridge interfaces on the routing device, setting up an uplink interface on each virtual bridge interface and mounting a downlink interface, it supports connecting multiple devices in bridge mode.

Benefits of technology

It realizes that routing devices can be connected to multiple CPE devices in bridge mode, meeting the needs of multi-device access and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017499A_ABST
    Figure CN120017499A_ABST
Patent Text Reader

Abstract

The invention discloses a routing equipment configuration method and routing equipment, and relates to the technical field of communication. The method comprises the following steps: when first configuration information received by routing equipment indicates that N downlink interfaces of the routing equipment are configured to be in a bridge mode, creating N virtual bridge interfaces, and configuring the N downlink interfaces and N uplink interfaces of the routing equipment on the N virtual bridge interfaces, and configuring the wide area network IP addresses of the N uplink interfaces on the N downlink interfaces. Each of the N downlink interfaces is bridged with the corresponding uplink interface by setting a plurality of virtual bridge interfaces, so that networking of a plurality of devices is realized by the routing device in a bridge mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a routing device configuration method and a routing device. Background Art

[0002] Routing devices, such as customer premise equipment (CPE), can be used to establish network connections in homes or offices. It supports two networking modes: routing mode and bridge mode. In routing mode, the routing device assigns new IP addresses to the devices connected to it, and the data exchange between the device and the upper-layer server is forwarded by the routing device; in bridge mode, the routing device directly forwards the public IP address assigned to it by the server to a device connected to the routing device, and the device directly exchanges data with the server.

[0003] The routing device only acts as a transfer device in bridge mode and does not process data. Only one device connected to the routing device can connect to the Internet at the same time, which cannot meet the needs of multiple devices accessing the routing device in bridge mode. Summary of the invention

[0004] The embodiments of the present application provide a routing device configuration method and a routing device, which are used to connect multiple devices in bridge mode.

[0005] In the first aspect, a method for configuring a routing device is provided, which can be executed by the routing device, or by a module, unit or chip in the routing device. The method includes: receiving first configuration information, wherein the first configuration information indicates that N downstream interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than 1; creating N virtual bridge interfaces according to the first configuration information; configuring the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; configuring the wide area network IP addresses of the N upstream interfaces on the N downstream interfaces, and the wide area network IP addresses configured on different downstream interfaces are different.

[0006] Optionally, the first configuration information indicates an access point name (APN) corresponding to each of the N downstream interfaces, and different downstream interfaces correspond to different APNs, and each APN corresponds to an upstream interface. Taking the first downstream interface of the N downstream interfaces as an example, configuring the N upstream interfaces of the routing device on the N virtual bridge interfaces includes: configuring the first upstream interface corresponding to the APN on the first virtual bridge interface according to the APN corresponding to the first downstream interface.

[0007] In the above implementation, multiple virtual bridge interfaces are set on the routing device, an uplink interface is set on each virtual bridge interface and a downlink interface (such as a LAN interface or a Wi-Fi interface) is mounted, so that the uplink interface and the downlink interface are bridged, thereby supporting the routing device to be connected to multiple CPE devices in bridge mode.

[0008] In a possible implementation, the N downstream interfaces include N local area network (LAN) interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N downstream interfaces include at least one LAN interface and at least one W-Fi interface.

[0009] In a possible implementation manner, the routing device includes a CPE.

[0010] In a possible implementation, the method also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; wherein the N virtual bridge interfaces include a first virtual bridge interface, and the data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface follows the routing rules corresponding to the first virtual bridge interface.

[0011] In a possible implementation, the first configuration information also indicates that the M downstream interfaces of the routing device are configured as routing mode, the M downstream interfaces are different from the N downstream interfaces, and M is a positive integer; a second virtual bridge interface is created according to the first configuration information, and the second virtual bridge interface is different from the N virtual bridge interfaces; the M downstream interfaces and the first upstream interface are configured on the second virtual bridge interface, and the first upstream interface is the upstream interface corresponding to the M downstream interfaces; and a LAN IP address is configured for each of the M downstream interfaces.

[0012] Through the above implementation method, some downstream interfaces on the routing device can be configured as bridge mode, while other downstream interfaces can be configured as routing mode, so that the routing device can support both bridge mode and routing mode at the same time, thereby meeting the needs of more scenarios and improving user experience.

[0013] In a possible implementation, the method further includes: configuring an address mapping rule on the second virtual bridge interface, wherein the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0014] In a possible implementation, the method also includes: receiving second configuration information, the second configuration information indicating that the bridge mode of the first downstream interface among the N downstream interfaces is changed to the routing mode, and the first downstream interface is configured on the first virtual bridge interface among the N virtual bridge interfaces; according to the second configuration information, deleting the configuration information of the first downstream interface from the first virtual bridge, and configuring the first downstream interface on the second virtual bridge interface; deleting the WAN IP address configured on the first downstream interface, and configuring a LAN IP address for the first downstream interface; and configuring the second virtual bridge interface to indicate the mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0015] Through the above implementation, the configuration of the routing device can be flexibly modified according to user needs.

[0016] In a second aspect, a method for configuring a routing device is provided, which can be executed by a routing device or by a module, unit or chip in the routing device. The method includes: receiving first configuration information, wherein the first configuration information indicates that N downstream interfaces of the routing device are configured as bridge mode, and the other M downstream interfaces of the routing device are configured as routing mode, where N and M are both positive integers; creating N virtual bridge interfaces and a second virtual bridge interface according to the first configuration information; configuring the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces, configuring the M downstream interfaces and the first upstream interface on the second virtual bridge interface, and the first upstream interface is the upstream interface corresponding to the M downstream interfaces; wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; configuring the wide area network IP addresses of the N upstream interfaces on the N downstream interfaces, and the WAN addresses configured on different downstream interfaces are different, and configuring a local area network IP address for each of the M downstream interfaces.

[0017] In a possible implementation, the N downlink interfaces include N local area network (LAN) interfaces, or the N downlink interfaces include N Wi-Fi interfaces, or the N interfaces include at least one LAN interface and at least one W-Fi interface.

[0018] In a possible implementation manner, the routing device includes a CPE.

[0019] In one possible implementation, the method also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; wherein the N virtual bridge interfaces include a first virtual bridge interface, and the data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface follows the routing rules corresponding to the first virtual bridge interface.

[0020] In a possible implementation, the method further includes: configuring an address mapping rule on the second virtual bridge interface, wherein the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0021] In a third aspect, a routing device is provided, comprising a unit or module for executing the method as described in any one of the first aspect, or comprising a unit or module for executing the method as described in any one of the second aspect.

[0022] In a fourth aspect, a routing device is provided, comprising: at least one processor, the at least one processor being coupled to at least one memory, the at least one processor being used to read a program stored in the at least one memory to execute a method as described in any one of the first aspect, or to execute a method as described in any one of the second aspect.

[0023] In a fifth aspect, a readable storage medium is provided, wherein a program is stored in the readable storage medium. When the program is executed by a routing device, the method described in any one of the first aspect or the method described in any one of the second aspect is implemented.

[0024] In a sixth aspect, a chip system is provided, comprising: at least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read a program stored in the at least one memory to execute the method as described in any one of the first aspects above, or to execute the method as described in any one of the second aspects above. It should be understood that the chip system can be an independent chip device, or a system composed of multiple discrete chip devices.

[0025] According to a seventh aspect, a program product is provided. When the program product is run on a routing device, the device executes the method as described in any one of the first aspect or the method as described in any one of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the network topology of the routing mode and the bridge mode of the CPE in the related art;

[0027] Figure 2 A schematic diagram of a network architecture applicable to an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the functional structure of a routing device provided in an embodiment of the present application;

[0029] Figure 4 A flowchart of a method for configuring a routing device provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of a routing device configuration interface provided in an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the interaction flow between the functional modules in the routing device provided in the embodiment of the present application;

[0032] Figure 7 This is a schematic diagram of the CPE network topology in Example 1 of an embodiment of the present application;

[0033] Figure 8 This is a schematic diagram of the CPE networking topology in Example 2 of an embodiment of the present application;

[0034] Fig. 9 A schematic diagram of the structure of a routing device provided in an embodiment of the present application;

[0035] Fig.10 A schematic diagram of the structure of another routing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] Routing devices are used to establish network connections in homes or offices. Routing devices support two networking modes: routing mode and bridge mode. For example, CPE is a routing device that can connect to various smart devices in the home to achieve networking functions. CPE can support wireless connection to 5G networks, such as through a subscriber identity module (SIM); it can also support wired connection, such as through broadband access. It should be understood that routing devices include but are not limited to CPE, routers, mobile routers, or mobile phones, tablets, laptops, etc. with routing functions. Taking CPE as an example, Figure 1 (a) in FIG. 1 shows an exemplary networking method of a routing mode. Figure 1 (b) in the figure shows an exemplary networking topology of a bridge mode.

[0037] like Figure 1As shown in (a), in routing mode, after the CPE obtains the WAN IP address (also called the public IP address), it will not directly configure the WAN IP address to the device connected to the CPE, but will allocate a new IP address (such as the LAN IP address, also called the private IP address) to the device connected to the CPE. The data exchange between the device and the server is forwarded by the CPE. One WAN IP address can be mapped to multiple LAN IP addresses, so that multiple devices can be connected to the CPE.

[0038] like Figure 1 As shown in (b), in bridge mode, CPE is equivalent to a bridge pipe. CPE will directly send the WAN IP address assigned to it by the server to the device connected to CPE, and the device and the server will exchange data directly.

[0039] like Figure 1 As shown, there is only one virtual bridge interface in the CPE (virtual bridge interface 0 in the figure). In routing mode, the local area network (LAN) interface and Wi-Fi interface of the CPE are both configured on the virtual bridge interface; in bridge mode, the LAN interface is configured on the virtual bridge interface. In bridge mode, only one device connected to the CPE can connect to the Internet at the same time.

[0040] In some scenarios, multiple devices connected to a routing device need to communicate using a wide area network IP address, which means that the routing device needs to use a bridge mode networking method to connect the multiple devices to the network. For example, cameras or Internet protocol television (IPTV), etc., are simultaneously connected to a routing device in bridge mode. Taking cameras as an example, a residence is equipped with multiple cameras, and users need to remotely view the images captured by the multiple cameras. Since only one device connected to the routing device can be connected to the Internet at the same time when the current routing device is in bridge mode, the current routing device cannot meet the above requirements.

[0041] To this end, an embodiment of the present application provides a routing device configuration method and related apparatus to support networking of multiple devices in bridge mode.

[0042] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0043] See also Figure 2 , is a schematic diagram of the system architecture provided in an embodiment of the present application.

[0044] As shown in the figure, the system architecture 200 includes a routing device 210, a server 220, and devices 230a, 230b, and 230c.

[0045] The routing device 210 is provided with one or more uplink interfaces and one or more downlink interfaces. The uplink interface may include a wired interface and / or a wireless interface, the wired interface may be an interface generated after a wired dial-up is successfully performed through an Ethernet cable, and the wireless interface may be an interface virtualized after a cellular wireless dial-up is successfully performed. The downlink interface may include a wired interface and / or a wireless interface, the wired interface may be a LAN interface, such as an Ethernet cable interface or a universal serial bus (USB) interface, and the wireless interface may be a Wi-Fi interface.

[0046] The uplink interface may also be referred to as an uplink interface, and the downlink interface may also be referred to as a downlink interface.

[0047] The routing device 210 includes a CPE or a router or a mobile router or other devices with similar functions (such as a mobile phone, a tablet, a laptop computer), which is not limited in this application.

[0048] The server 220 may be connected to the uplink interface of the routing device 210 via a wired or wireless method. For example, the server 220 may be connected to the uplink interface of the routing device 210 via a wired method (e.g., a network cable), or the server 220 may be connected to the uplink interface of the routing device 210 via a wireless method.

[0049] It should be understood that the server 220 includes a business server. Exemplarily, the server 220 includes a hypertext transfer protocol (HTTP) business server or a virtual private network (VPN) business server.

[0050] Devices 230a, 230b and 230c can be wirelessly or wiredly connected to the downlink interface of the routing device 210. For example, devices 230a, 230b and 230c can be connected to the LAN interface via a network cable, or wirelessly connected to the Wi-Fi interface of the routing device.

[0051] Optionally, devices 230a, 230b and 230c may include devices that provide voice and / or data connectivity to users, specifically, devices that provide voice to users, or devices that provide data connectivity to users, or devices that provide voice and data connectivity to users. For example, the device may be a handheld device with wireless connection function, or a processing device connected to a wireless modem. For example, it may include a mobile phone (or "cellular" phone), a computer with mobile device, a portable, pocket, handheld, personal computer, etc. For another example, personal communication service (PCS) phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA) and other devices.

[0052] Optionally, the downlink interface of the routing device 210 may also be connected to another routing device, and the other routing device may be connected to one or more devices. In other words, the networking of devices may be achieved by cascading multiple routing devices.

[0053] It should be understood that the above Figure 2 The system architecture shown is only an example. In some other system architectures, the routing device can be connected to more or fewer devices, or connected to more servers, and this application is not limited to this.

[0054] See also Figure 3 , is a structural diagram of a routing device provided in an embodiment of the present application.

[0055] like Figure 3 As shown, the routing device 300 may include the following functional modules: a configuration parsing module 310 , a dialing module 320 , a networking module 330 and a routing module 340 .

[0056] The configuration parsing module 310 is used to parse the received configuration information of the routing device and distribute the parsed information to the dialing module 320 and the networking module 330. The configuration information sent to the dialing module 320 includes the access point name (APN), and the configuration information sent to the networking module 330 includes the mode type of the downlink interface. For a downlink interface, its mode type includes routing mode or bridge mode.

[0057] The dialing module 320 is responsible for performing multi-channel or single-channel dialing according to the APN set by the user, and after the dialing is successful, the WAN IP address information, such as the WAN IP address and its subnet mask, can be obtained.

[0058] The networking module 330 is responsible for creating and configuring a virtual bridge interface according to the received mode type of the downstream interface.

[0059] The routing module 340 is responsible for setting corresponding routing rules according to relevant configurations after the dialing is successful.

[0060] The specific configuration operation of the routing device 300 can refer to the description below.

[0061] It should be understood that the above structure of the routing device 300 is only a possible example. In some other examples, the above two or more functional modules may be combined, or the above functional modules may be further split, which is not limited in the present application.

[0062] See also Figure 4 , is a flow chart of a method for configuring a routing device provided in an embodiment of the present application, through which the routing device can support networking of multiple devices in bridge mode. The execution subject of the method provided in an embodiment of the present application is a routing device, for example, Figure 2 It should be understood that the process can also be implemented by a chip, unit or module with a routing device function, and the present application is not limited to this.

[0063] like Figure 4 As shown, the method 400 may include the following steps:

[0064] Step 401: A routing device receives first configuration information, where the first configuration information indicates that N downstream interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than or equal to 1.

[0065] Optionally, the N downstream interfaces include N LAN interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N downstream interfaces include at least one LAN interface and at least one W-Fi interface.

[0066] Optionally, the first configuration information may include information, a mode type and a corresponding APN of each of the N downlink interfaces.

[0067] Among them, APN is the name used by wireless network service providers to provide wireless access to devices. In mobile communication networks, APN is used to identify and locate the packet data network (PDN) required by mobile devices. APN can be understood as a unique identifier through which mobile devices can connect to the corresponding PDN. The PDN includes, for example, private networks such as corporate intranets, the Internet, wireless application protocol (WAP) websites, and industry intranets.

[0068] The information of a downstream interface may be the identifier and / or address information of the downstream interface. The identifier of a downstream interface is generally preconfigured in the routing device, and the address information of the downstream interface may be configured by the routing device. The mode type of a downstream interface includes a bridge mode or a routing mode. In an embodiment of the present application, the mode type of the N interfaces is set to a bridge mode. The APN corresponding to a downstream interface may be a default APN or a user-specified (or user-set) APN. When N is greater than 1 (or when multiple downstream interfaces are configured as bridge mode), different downstream interfaces correspond to different APNs, and each APN corresponds to an upstream interface. It should be understood that the APN or the WAN IP address obtained after the APN dial-up is successful is configured on the upstream interface of the routing device, so it can be considered that there is a corresponding relationship between the APN and the upstream interface.

[0069] Optionally, the first configuration information is configuration information set by a user, and the first configuration information is used to set a networking mode of a routing device.

[0070] In the embodiment of the present application, the networking mode of the routing device can be configured through an application or a world wide web (Web) configuration interface or other methods. In the embodiment of the present application, multiple downlink interfaces of the routing device can be configured as a bridge mode.

[0071] Exemplarily, taking the configuration of a routing device through a Web configuration interface as an example, the configuration process may include the following steps: connecting a device such as a mobile phone or tablet to the default Wi-Fi of the routing device (the name of the default Wi-Fi is generally printed on the nameplate of the routing device); after the mobile phone or other device is connected to the default Wi-Fi, the Web configuration page of the routing device is displayed on the screen of the device; the user can select the downlink interface of the routing device, the APN corresponding to the downlink interface, and the mode type of the downlink interface (the mode type includes bridge mode or routing mode) through the Web configuration page; after the user submits the configuration information to the routing device, the routing device can complete the networking configuration according to the received configuration information.

[0072] Figure 5 A schematic diagram of a routing device configuration interface is exemplarily shown. Figure 5 For example, there are four downstream interfaces on the router, namely LAN1, LAN2, LAN3 and 5GHz Wi-Fi. Figure 5 As shown, at least four downstream interface configuration options are provided on the web configuration page of the routing device for the user to select or set. As shown in the figure, a downstream interface configuration item may include the following items: an interface selection item, a mode type selection item, and a dial-up APN configuration item. Among them, the interface selection item provides a drop-down menu, and the drop-down menu includes a list of downstream interfaces of the routing device, such as LAN1, LAN2, LAN3, and 5GHz Wi-Fi, allowing the user to select a downstream interface from the drop-down menu for configuration. The mode type selection item includes a bridge mode switch button and a routing mode switch button for the user to select the mode type (or networking mode) of the downstream interface. The APN configuration item is used to configure the APN corresponding to the downstream interface. The embodiment of the present application allows the configuration of a default APN for the downstream interface, such as Figure 5 The "AUTO" shown in the figure indicates that the user requests the router to configure a default APN for the LAN1 interface. The default APN is pre-configured on the router. The embodiment of the present application also allows the user to specify a specific APN for the downlink interface, such as Figure 5 The "APN1" shown in the figure is the APN specified for the "LAN2" interface.

[0073] Optional, Figure 5 In the configuration interface shown, APN1 can be displayed as an identifier or as information that is easy for the user to understand and remember (referred to as APN information in the embodiment of the present application), such as the abbreviation of the name of the network operator or the abbreviation of the name of the network provided by the network operator, etc., which is not limited in this application.

[0074] It should be understood that, for an APN, its identifier and APN information have a one-to-one correspondence, and both can identify the APN. In some embodiments of the present application, the APN and the APN information can be replaced with each other.

[0075] based on Figure 5 The web configuration page shown can configure the downstream interfaces LAN1, LAN2, LAN3 and 5GHz Wi-Fi to bridge mode.

[0076] It should be understood that Figure 5 This is only a possible example diagram of the routing device web configuration page, and the embodiments of the present application are not limited thereto.

[0077] Step 402: The routing device creates N virtual bridge interfaces according to the received first configuration information.

[0078] In this step, since the first configuration information indicates that the N downstream interfaces are configured as bridge modes, the routing device configures a virtual bridge interface for each downstream interface.

[0079] The virtual bridge interface can be understood as a logical interface, or a functional module, or a functional unit, or an instance, or a process, or a thread, etc. The virtual bridge interface corresponding to a downstream interface can be configured with the information of the downstream interface (such as the identifier of the downstream interface) and the APN information corresponding to the downstream interface (or the upstream interface information and / or the WAN IP address information corresponding to the APN). During the data transmission process, the virtual bridge interface can forward the data from the downstream interface to the upstream interface corresponding to the APN configured on the virtual bridge interface, thereby transmitting the data of the device connected to the downstream interface to the corresponding network through the upstream interface.

[0080] Step 403: The routing device configures the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces.

[0081] The routing device may configure the information of the N downstream interfaces and the information of the N upstream interfaces on the N virtual bridge interfaces, thereby realizing the configuration of the virtual bridge interfaces.

[0082] Each of the N virtual bridge interfaces is configured with information of an uplink interface and information of a downlink interface, and the uplink interface information configured on different virtual bridge interfaces is different, and the downlink interface information configured on different virtual bridge interfaces is different. By configuring the information of a downlink interface and the information of an uplink interface on a virtual bridge interface, the bridging of the downlink interface and the uplink interface can be achieved.

[0083] Optionally, the information of the downlink interface may be an identifier and / or address information of the downlink interface, which is not limited in the present application. The identifier of the downlink interface may be preconfigured in the routing device, and the address information of the downlink interface may be configured by the routing device.

[0084] Optionally, the downlink interface information may be at least one of an identifier of the downlink interface, or APN information, or WAN IP address information obtained after successful dialing using the APN, or a pseudo address corresponding to the WAN IP address information. The pseudo address has a one-to-one correspondence with the WAN IP address.

[0085] by Figure 5For example, in the first configuration information of the routing device shown in the figure, the LAN1 interface is configured as a bridge mode and the corresponding APN is the default APN. On the routing device, the default APN is configured on the WAN1 interface, that is, the uplink interface corresponding to the default APN is WAN1. Based on the above first configuration information, in step 402, the routing device creates four virtual bridge interfaces, which are respectively represented as virtual bridge interface 1, virtual bridge interface 2, virtual bridge interface 3 and virtual bridge interface 4. In step 403, the routing device configures the identifier of LAN1 and the default APN information (or the WAN interface identifier corresponding to the default APN) on virtual bridge interface 1, configures the identifier of LAN2 and the APN1 information (or the WAN interface identifier corresponding to APN1) on virtual bridge interface 2, configures the identifier of LAN3 and the APN2 identifier (or the WAN interface identifier corresponding to APN2) on virtual bridge interface 3, and configures the identifier of the 5GHz Wi-Fi port and the APN3 information (or the WAN interface identifier corresponding to APN3) on virtual bridge interface 4.

[0086] Optionally, the routing device may also configure address information for each virtual bridge interface. The address identifies the virtual bridge interface and is used to configure routing rules.

[0087] Step 404: The routing device configures the WAN IP addresses of the N upstream interfaces on the N downstream interfaces, and the WAN IP addresses configured on different downstream interfaces are different.

[0088] Optionally, the routing device can use the set APN to execute the dialing process. After the dialing is successful, the routing device obtains the wide area network IP address information corresponding to the APN, such as the wide area network IP address (WAN IP address) and subnet mask. The routing device configures the wide area network IP address information on the corresponding downstream interface.

[0089] by Figure 5 For example, the routing device uses the default APN to dial to obtain WAN IP address 1, uses APN1 to dial to obtain WAN IP address 2, uses APN2 to dial to obtain WAN IP address 3, and uses APN3 to dial to obtain WAN IP address 4; the routing device configures WAN IP address 1 on the LAN1 interface, configures WAN IP address 2 on the LAN2 interface, configures WAN IP address 3 on the LAN3 interface, and configures WAN IP address 4 on the 5GHz Wi-Fi interface.

[0090] In a possible implementation, the above method may also include the following steps: the routing device configures the routing rules corresponding to the N virtual bridge interfaces respectively. Taking the first virtual bridge interface among the N virtual bridge interfaces as an example, the routing rules corresponding to the first virtual bridge interface are used for data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface. In other words, the routing rules corresponding to the first virtual bridge interface are used to guide the data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface, or in other words, the data transmission between the upstream interface and the downstream interface follows the routing rules.

[0091] Exemplarily, the routing rules configured on the first virtual bridge interface instruct the first virtual bridge interface not to perform address conversion on the data from the downstream interface configured on the first virtual bridge interface, that is, the source address remains as the WAN IP address, and the WAN IP address is the WAN IP address configured on the downstream interface. The first virtual bridge interface directly routes the data to the upstream interface configured on the first virtual bridge interface and sends it out, or the first virtual bridge interface directly sends the data to the network corresponding to the APN configured on the first virtual bridge interface.

[0092] By adopting the above-mentioned embodiments of the present application, multiple downstream interfaces of the routing device can be configured as bridge mode, so that the routing device can simultaneously support multiple devices connected to the routing device in bridge mode for networking, or support multiple devices to simultaneously use the bridge mode to network through the routing device, so that the routing device can be applied to more complex scenarios, thereby improving the user experience. For example, it can be applied to scenarios where multiple devices need to be accessed using wide area network IP addresses.

[0093] For example, when multiple (for example, two or more) cameras are installed in a residence, the multiple cameras can be connected to multiple downstream interfaces of a routing device respectively, and the multiple downstream interfaces of the routing device can be configured as bridge mode using the method provided in the embodiment of the present application. In this way, the multiple cameras can use the WAN IP address to simultaneously transmit uplink data through the routing device, so that users can remotely view the images captured by the N cameras at the same time.

[0094] In some embodiments of the present application, while configuring one or more downstream interfaces to bridge mode, the routing device may also configure one or more other downstream interfaces to routing mode, thereby enabling the routing device to support both bridge mode and routing mode.

[0095] For example, in one possible implementation, the first configuration information also indicates that M (M is a positive integer greater than or equal to 1) downstream interfaces of the routing device are configured as routing mode, and the M downstream interfaces are different from the N downstream interfaces; the routing device creates a second virtual bridge interface according to the first configuration information, and the second virtual bridge interface is different from the N virtual bridge interfaces; the routing device configures the M downstream interfaces and the first upstream interface on the second virtual bridge interface, and the first upstream interface is the upstream interface corresponding to the M downstream interfaces.

[0096] The routing device also configures a LAN IP address for each of the M downstream interfaces. In one possible implementation, the routing device may configure the LAN IP addresses for the M downstream interfaces according to the LAN IP addresses set by the user. In another possible implementation, the routing device may configure the LAN IP addresses for the M downstream interfaces by itself, such as by starting the dynamic host configuration protocol (DHCP) service function and automatically configuring the LAN IP addresses for the M downstream interfaces through the DHCP service. This application does not limit this.

[0097] Optionally, the routing device may further configure an address mapping rule on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0098] Optionally, the routing device may also configure address information for the second virtual bridge interface. The address information of the second virtual bridge interface may be the gateway address of the IP address range corresponding to the downstream interface configured on the virtual bridge interface, for example, if the IP address range corresponding to the downstream interface is 192.168.8.0 / 24, the corresponding gateway address is 192.168.8.1.

[0099] Optionally, the routing device may also configure routing rules corresponding to the second virtual bridge interface. The routing rules corresponding to the second virtual bridge interface are used for data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface; or, the routing rules corresponding to the second virtual bridge interface are used to guide data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface; or, the data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface follows the routing rules corresponding to the second virtual bridge interface.

[0100] For example, the virtual bridge interface br0 corresponds to APN1, the virtual bridge interface br1 corresponds to APN2, APN1 corresponds to the uplink interface eht_x1, and APN2 corresponds to the uplink interface eth_x2. In this case, the routing module in the routing device can configure the routing rules by executing the following instructions:

[0101] (1) Configure the default routing rules:

[0102] ip route add default via 10.xx.xx.1dev eth_x1;

[0103] Among them, 10.xx.xx.1 represents the pseudo address configured on the uplink interface eth_x1, which corresponds to APN1, or corresponds to the WAN IP address obtained by dialing using APN1, and is used to send the message received by the routing device from the outside to the uplink interface eth_x1. Exemplarily, based on the routing rule, after the routing device receives the message from the server, it can modify the source address of the message to the pseudo address configured on the uplink interface eth_x1.

[0104] ip route add default via 10.xx.xx.2dev eth_x2;

[0105] Among them, 10.xx.xx.2 represents the pseudo address configured on the uplink interface eth_x2, which corresponds to APN2, or the WAN IP address obtained by dialing using APN2, and is used to send the message received by the routing device from the outside to the uplink interface eth_x2. Exemplarily, based on the routing rule, after the routing device receives the message from the server, it can modify the source address of the message to the pseudo address configured on the uplink interface eth_x2.

[0106] (2) Configure the routing rules from the downstream interface to the virtual bridge interface:

[0107] ip route add 192.168.8.0 / 24dev br0 proto kernel scope link src192.168.8.1;

[0108] Among them, 192.168.8.1 is the gateway address configured on the virtual bridge interface br0, or 192.168.8.1 is the address of the virtual bridge interface br0. 192.168.8.0 / 24 represents the IP address range. This routing rule can send packets from the downstream interface with source addresses in the address range of 192.168.8.0 / 24 to the virtual bridge interface br0.

[0109] ip route add 192.168.9.0 / 24dev br1 proto kernel scope link src192.168.9.1;

[0110] Among them, 192.168.9.1 is the gateway address configured on the virtual bridge interface br1, or 192.168.9.1 is the address of the virtual bridge interface br1. 192.168.9.0 / 24 represents the IP address range. This routing rule can send packets from the downstream interface with source addresses in the address range of 192.168.9.0 / 24 to the virtual bridge interface br1.

[0111] (3) For the downstream interface and the upstream interface configured on the virtual bridge interface, configure a routing rule between the upstream interface and the downstream interface.

[0112] Similarly, the routing device can also configure the routing rules between the upstream interface eth_x1 and the downstream interface (address range 192.168.8.0 / 24) configured on the virtual bridge interface br0. This routing rule is used in pairs with the above-configured routing rule, so that the message from the downstream interface with the address range of 192.168.8.0 / 24 can be forwarded to the upstream interface eth_x1.

[0113] Similarly, the routing device can also configure the routing rules between the upstream interface eth_x2 and the downstream interface (address range 192.168.9.0 / 24) configured on the virtual bridge interface br1. This routing rule is used in pairs with the above-configured routing rule, so that the message from the downstream interface with the address range of 192.168.9.0 / 24 can be forwarded to the upstream interface eth_x2.

[0114] Exemplarily, the routing rules configured on the second virtual bridge interface instruct the second virtual bridge interface to perform address translation on the data from the downlink interface configured on the second virtual bridge interface according to the mapping relationship between the LAN IP address and the WAN IP address, that is, to translate the source address from the LAN IP address into the corresponding WAN IP address according to the mapping relationship, and the second virtual bridge interface routes the address-translated data to the uplink interface configured on the second virtual bridge interface and sends it out, or the second virtual bridge interface sends the data to the network corresponding to the APN configured on the second virtual bridge interface.

[0115] Optionally, the routing device can also configure some data filtering rules (such as a firewall) on the second virtual bridge interface. When the second virtual bridge interface receives data from the downlink interface configured on the second virtual interface, it can process the data according to the data filtering rules and route the processed data to the uplink interface configured on the second virtual bridge interface and send it out.

[0116] In some other embodiments, after configuring N downstream interfaces as bridge mode according to the first configuration information, the routing device may further configure M downstream interfaces of the routing device as routing mode according to the received new configuration information. That is, the configuration information for configuring the N interfaces as bridge mode and the configuration information for configuring the M downstream interfaces as routing mode are submitted to the routing device separately. Whether the routing device is instructed to configure the N interfaces as bridge mode and the M interfaces as routing mode in the same configuration information, or the routing device is instructed to configure the N interfaces as bridge mode and the M interfaces as routing mode through different configuration information, the configuration method of the routing device is the same as the configuration method given in the above embodiment, and will not be repeated here.

[0117] By adopting the above-mentioned embodiments of the present application, some downstream interfaces of the routing device can be configured as bridge mode, and other downstream interfaces can be configured as routing mode, so that the routing device can support both bridge mode and routing mode, thereby making the routing device suitable for more complex scenarios, thereby improving the user experience.

[0118] For example, the method provided by the embodiment of the present application can achieve the following requirements: when the user is outdoors, his mobile phone can be connected to the CPE set up outdoors and connected to the Internet through the Wi-Fi provided by the CPE; the CPE is also connected to the router set up indoors, and when the user is indoors, his mobile phone can be connected to the Internet through the Wi-Fi provided by the router set up indoors, so that the user's mobile phone can be connected to the Internet whether indoors or outdoors. The specific implementation method is: a CPE is set up outdoors, a downlink interface of the CPE (for example, the first downlink interface) is configured as a bridge mode, and connected to a router set up indoors, one or more downlink interfaces of the router can be configured as a routing mode, so that the devices connected to the one or more downlink interfaces can be connected to the Internet through the Wi-Fi provided by the router; another downlink interface of the CPE (for example, the second downlink interface) is configured as a routing mode, so that the device connected to the second downlink interface of the CPE can be connected to the Internet through the Wi-Fi provided by the CPE.

[0119] Some embodiments of the present application can also modify the mode type of the downstream interface of the routing device. When the user requests to modify the bridge mode of a downstream interface to the routing mode through configuration information, the routing device removes the bridge of the downstream interface from the original virtual bridge interface (or deletes the configuration of the downstream interface on the virtual bridge interface), and bridges the downstream interface on the existing virtual bridge interface (or configures the downstream interface on the existing virtual bridge interface). The existing virtual bridge interface is a virtual bridge interface of a downstream interface configured with a routing mode.

[0120] Specifically, the routing device receives second configuration information, wherein the second configuration information indicates that the bridge mode of the first downstream interface among the above-mentioned N downstream interfaces is changed to the routing mode, and the first downstream interface is configured on the first virtual bridge interface among the N virtual bridge interfaces; the routing device deletes the configuration information of the first downstream interface from the first virtual bridge according to the second configuration information, and configures the first downstream interface on the second virtual bridge interface; the routing device deletes the WAN IP address configured on the first downstream interface, and configures a LAN IP address for the first downstream interface; the routing device configures address mapping relationship information on the second virtual bridge interface, and the address mapping relationship information is used to indicate the mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0121] Exemplarily, the networking module in the routing device can implement the operation of removing the second downlink interface LAN2 of the routing device from the original virtual bridge interface br0 by executing the following instructions:

[0122] brctl delif br0 eth0.2; br0 indicates the identifier of virtual bridge interface 0, eth0.2 indicates that the virtual bridge interface is configured with the uplink interface eht0 and the second downlink interface LAN2 on the routing device; delif indicates the operator of the bridge removal operation.

[0123] Exemplarily, the networking module in the routing device can implement the bridge operation of mounting the downlink interface LAN2 to the virtual bridge interface br1 by executing the following instructions:

[0124] brctl addif br1 eth0.2; br1 indicates the identifier of virtual bridge interface 1, eth0.2 indicates that the uplink interface eht0 and the second downlink interface LAN2 on the routing device are configured on the virtual bridge interface; addif indicates the operator of the bridge operation.

[0125] Optionally, if there is no virtual bridge interface for a downstream interface configured with a routing mode, the routing device may first create a virtual bridge interface, then configure the first downstream interface on the newly created virtual bridge interface, and configure address mapping relationship information on the newly created virtual bridge interface, wherein the address mapping relationship information indicates a mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0126] In some other embodiments of the present application, it is also possible to modify the routing mode of the downstream interface of the routing device to a bridge mode. The specific implementation method is similar to the above-mentioned modification of the bridge mode of the downstream interface to the routing mode. When a user requests to modify the routing mode of a downstream interface to a bridge mode through configuration information, the routing device removes the bridge of the downstream interface from the original virtual bridge interface, creates a new virtual bridge interface, bridges the downstream interface to the newly created virtual bridge interface, and configures the wide area network IP address on the downstream interface and / or the new virtual bridge interface.

[0127] based on Figure 3 The functional module structure of the routing device shown above Figure 4 A possible implementation of the method shown can be as follows Figure 6 shown.

[0128] like Figure 6 As shown, the method 600 may include the following steps:

[0129] Step 601: A configuration parsing module in a routing device receives configuration information from an application or a Web configuration page for configuring the routing device.

[0130] In this step, the user sends configuration information through the Web configuration interface or through an application. The configuration information includes the identifier, mode type and corresponding APN of each of the one or more downlink interfaces. An example of the configuration information is as follows: Figure 4 The first configuration information in.

[0131] Step 602 and step 603: The configuration parsing module sends the identifier and mode type of the downstream interface to the networking module, and sends the APN of the downstream interface to the dialing module.

[0132] In this step, the routing device parses the configuration information after receiving it, and sends the relevant information to the corresponding module, such as sending the identifier and mode type of the downlink interface to the networking module, and sending the APN to the dial-up module.

[0133] Step 604: After receiving the identifier and mode type of the downstream interface, the networking module creates a virtual bridge interface and configures the virtual interface.

[0134] After the networking module receives the identifier and mode type of the downstream interface, it determines the number of virtual bridge interfaces according to the mode type of the downstream interface and creates a corresponding number of virtual bridge interfaces. For example, if the configuration information indicates that the LAN1 interface, LAN2 interface, and 2.4GHz Wi-Fi interface are in routing mode, and the LAN3 interface, LAN4 interface, and 5GHz Wi-Fi interface are in bridge mode, then four virtual bridge interfaces need to be created. Among them, the LAN1 interface, LAN2 interface, and 2.4GHz Wi-Fi interface are configured on virtual bridge interface 1, the LAN3 interface is configured on virtual bridge interface 2, the LAN4 interface is configured on virtual bridge interface 3, and the 5GHz Wi-Fi interface is configured on virtual bridge interface 4. In other words, the downstream interface in routing mode can be configured on the same virtual bridge interface, and each downstream interface in bridge mode is configured on the corresponding virtual bridge interface.

[0135] The specific implementation of this step can refer to the above embodiment.

[0136] Step 605: After receiving the APN, the dialing module dials according to the APN.

[0137] In this step, after receiving the APN, the dial-up module uses the APN to trigger the dial-up process. After the dial-up is successful, the WAN IP and subnet mask corresponding to the APN can be obtained.

[0138] Step 606: The dialing module sends a notification message to the routing module after the dialing is successful. Optionally, the notification message may include information such as the WAN IP address and subnet mask obtained after the dialing is successful.

[0139] Step 607: After the networking module completes configuring the virtual bridge interface, it sends a notification message to the routing module.

[0140] Step 608: The routing module configures routing rules after receiving the networking success notification from the networking module and the dialing success notification from the dialing module.

[0141] In this step, after receiving the notification message of successful dialing and successful networking, the routing module starts the routing rule setting, and sets the corresponding routing rules according to the WAN IP address and networking topology, so as to route the data of the corresponding downstream interface to the specified upstream interface.

[0142] It should be understood that Figure 6 The order of steps in the process shown is only a possible example and is not limited to this application.

[0143] Based on the above Figure 4 or Figure 6 The process flow of the method shown, Figure 7 and Figure 8According to the above Figure 4 or Figure 6 A schematic diagram of the CPE networking topology implemented by the method shown.

[0144] Figure 7 In the example shown, the configuration information received by the CPE is shown in Table 1:

[0145] Table 1: Configuration information received by CPE

[0146] Downstream interface Mode Type APN LAN1 Routing Mode APN1 Wi-Fi Routing Mode APN1 LAN2 Bridge Mode APN2 LAN3 Bridge Mode APN3

[0147] It should be understood that the data structure of the configuration information received by the CPE may also be in other data structure forms. The table form is used here for easier understanding.

[0148] According to the above configuration information, CPE creates a virtual bridge interface bridge1 for the LAN1 interface and Wi-Fi interface in routing mode, and configures the LAN1 interface and Wi-Fi interface on the virtual bridge interface. Device 1 is connected to the LAN1 interface, and device 2 is connected to the Wi-Fi interface.

[0149] According to the above configuration information, CPE creates a virtual bridge interface for each downstream interface in bridge mode. Specifically, virtual bridge interfaces bridge2 and bridge3 are created, LAN2 interface is configured on virtual bridge interface bridge2, and LAN3 interface is configured on virtual bridge interface bridge3. Device 3 is connected to LAN2 interface, and device 4 is connected to LAN3 interface.

[0150] The virtual bridge interface bridge1 is also configured with an uplink interface eth_x1, the virtual bridge interface bridge2 is also configured with an uplink interface eth_x2, and the virtual bridge interface bridge3 is also configured with an uplink interface eth_x3.

[0151] After the CPE successfully dials using APN1, it obtains the WAN IP address 10.xx.xx.10 and configures the WAN IP address on the virtual bridge interface bridge1 and / or the uplink interface eth_x1.

[0152] After the CPE successfully dials using APN2, it obtains the WAN IP address 5.xx.xx.5 and configures the WAN IP address on the LAN2 interface. Furthermore, it can also be configured on the virtual bridge interface bridge2 and / or the uplink interface eth_x2.

[0153] After the CPE successfully dials using APN3, it obtains the WAN IP address 6.xx.xx.6 and configures the WAN IP address on the LAN3 interface. Furthermore, it can also be configured on the virtual bridge interface bridge3 and / or the uplink interface eth_x3.

[0154] The CPE configures LAN IP addresses for the LAN1 interface and the Wi-Fi interface in routing mode, respectively. For example, 192.168.xx.2 is configured for the LAN1 interface, and 192.168.xx.3 is configured for the Wi-Fi interface.

[0155] Figure 8 In the example shown, the configuration information received by the CPE is shown in Table 2:

[0156] Table 2: Configuration information received by CPE

[0157] Downstream interface Mode Type APN LAN1 Routing Mode APN1 Wi-Fi Routing Mode APN1 LAN2 Bridge Mode APN1 LAN3 Bridge Mode APN2

[0158] It should be understood that the data structure of the configuration information received by the CPE may also be in other data structure forms. The table form is used here for easier understanding.

[0159] According to the above configuration information, CPE creates a virtual bridge interface bridge1 for the LAN1 interface and Wi-Fi interface in routing mode, and configures the LAN1 interface and Wi-Fi interface on the virtual bridge interface. Device 1 is connected to the LAN1 interface, and device 2 is connected to the Wi-Fi interface.

[0160] According to the above configuration information, CPE creates a virtual bridge interface for each downstream interface in bridge mode. Specifically, virtual bridge interfaces bridge2 and bridge3 are created, LAN2 interface is configured on virtual bridge interface bridge2, and LAN3 interface is configured on virtual bridge interface bridge3. Device 3 is connected to LAN2 interface, and device 4 is connected to LAN3 interface.

[0161] The virtual bridge interface bridge1 and the virtual bridge interface bridge2 are also configured with the uplink interface eth_x1, and the virtual bridge interface bridge3 is also configured with the uplink interface eth_x3. In other words, the virtual bridge interface used to configure the downlink interface in routing mode and the virtual bridge interface used to configure the downlink interface in bridge mode can be configured with the same uplink interface, or can use the same APN. For example, as shown in Table 2, the Wi-Fi interface in routing mode and the LAN2 interface in bridge mode can use the same APN1, and accordingly, the same uplink interface eth_x1 is configured on the virtual bridge interface bridge1 and the virtual bridge interface bridge2.

[0162] After the CPE successfully dials using APN1, it obtains the WAN IP address 10.xx.xx.10 and configures the WAN IP address on the virtual bridge interface bridge1 and the virtual bridge interface bridge2, and can also be configured on the uplink interface eth_x1.

[0163] After the CPE successfully dials using APN3, it obtains the WAN IP address 6.xx.xx.6 and configures the WAN IP address on the virtual bridge interface bridge3 and / or the uplink interface eth_x3.

[0164] The CPE configures LAN IP addresses for the LAN1 interface and the Wi-Fi interface in routing mode, respectively. For example, 192.168.xx.2 is configured for the LAN1 interface, and 192.168.xx.3 is configured for the Wi-Fi interface.

[0165] It is understandable that in order to implement the functions in the above embodiments, the routing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and software. Whether the first function is executed in a hardware or software-driven hardware manner depends on the specific application scenario and design constraints of the technical solution.

[0166] Fig. 9 and Fig.10 The following is a schematic diagram of the structure of possible devices provided in the embodiments of the present application. These devices can be used to implement the functions of the routing device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In the embodiments of the present application, the device can be as follows: Figure 2 The routing device shown (such as CPE) may also be a module (such as a chip) applied to the routing device.

[0167] like Fig. 9 As shown, the device 900 includes a processing unit 910 and a transceiver unit 920. The device 900 is used to implement the above Figure 4 The functions of the routing device in the method embodiment are shown.

[0168] For example, when the device 900 is used to implement Figure 4When the function of the routing device in the method embodiment shown is: the transceiver unit 920 is used to receive the first configuration information, the first configuration information indicates that the N downstream interfaces of the routing device are configured as bridge mode, N is a positive integer greater than 1; the processing unit 910 is used to create N virtual bridge interfaces according to the first configuration information, and configure the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; the wide area network IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the wide area network IP addresses configured on different downstream interfaces are different.

[0169] For more detailed description of the processing unit 910 and the transceiver unit 920, please refer to Figure 4 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0170] like Fig.10 As shown, the device 1000 includes a processor 1010 and an interface circuit 1020. The processor 1010 and the interface circuit 1020 are coupled to each other. It is understood that the interface circuit 1020 can be a transceiver or an input / output interface. Optionally, the device 1000 may also include a memory 1030 for storing programs / instructions executed by the processor 1010 or storing input data required by the processor 1010 to run the program / instruction or storing data generated after the processor 1010 runs the program / instruction.

[0171] When the device 1000 is used to implement Figure 4 When the method is shown, the processor 1010 is used to implement the functions of the processing unit 910, and the interface circuit 1020 is used to implement the functions of the transceiver unit 920.

[0172] When the above device is a chip applied to a routing device, the chip implements the function of the routing device in the above method embodiment. The chip receives information from other modules in the routing device; or the chip sends information to other modules in the routing device.

[0173] It is understandable that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0174] In the present application, another example of a device is provided, the device includes at least one processor and at least one memory, the at least one processor is coupled to the at least one memory, the at least one memory is used to store programs or instructions, when the program or instruction is executed by the at least one processor, the device executes the method in the above embodiment. Take the device including a processor and a memory as an example, Fig.10 As shown, the device 1000 includes a processor 1010 and a memory 1030. The processor 1010 and the memory 1030 are coupled, and the memory 1030 stores programs or instructions. When the programs or instructions stored in the memory 1030 are executed by the processor 1010, the device 1000 executes the method executed by the routing device in the above embodiment.

[0175] The method steps in the embodiments of the present application can be implemented in hardware or in software instructions that can be executed by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. The storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a routing device. The processor and the storage medium can also be present in the device as discrete components.

[0176] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a program product. The program product includes one or more programs or instructions. When the program or instruction is loaded and executed on a computer or device, the process or function described in the embodiments of the present application is executed in whole or in part.

[0177] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0178] In the present application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of the present application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula of the present application, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "Including at least one of A, B and C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.

[0179] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.

Claims

1. A method for configuring a routing device, applied to a routing device, characterized in that: include: Receive first configuration information, where the first configuration information indicates that N downlink interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than 1; Creating N virtual bridge interfaces according to the first configuration information; The N downstream interfaces and the N upstream interfaces of the routing device are configured on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; The WAN IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the WAN IP addresses configured on different downstream interfaces are different.

2. The method according to claim 1, characterized in that Also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; The N virtual bridge interfaces include a first virtual bridge interface, and data transmission between an uplink interface and a downlink interface configured on the first virtual bridge interface follows a routing rule corresponding to the first virtual bridge interface.

3. The method according to any one of claims 1 to 2, characterized in that: The first configuration information further indicates that M downlink interfaces of the routing device are configured as routing mode, the M downlink interfaces are different from the N downlink interfaces, and M is a positive integer; Creating a second virtual bridge interface according to the first configuration information, where the second virtual bridge interface is different from the N virtual bridge interfaces; Configuring the M downstream interfaces and a first upstream interface on the second virtual bridge interface, wherein the first upstream interface is an upstream interface corresponding to the M downstream interfaces; A local area network IP address is configured for each of the M downstream interfaces.

4. The method according to claim 3, characterized in that Also includes: An address mapping rule is configured on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

5. The method according to claim 3 or 4, characterized in that Also includes: Receive second configuration information, where the second configuration information indicates that a bridge mode of a first downstream interface among the N downstream interfaces is changed to a routing mode, and the first downstream interface is configured on a first virtual bridge interface among the N virtual bridge interfaces; According to the second configuration information, the configuration information of the first downlink interface is deleted from the first virtual bridge, and the first downlink interface is configured on the second virtual bridge interface; Deleting the WAN IP address configured on the first downstream interface, and configuring a LAN IP address for the first downstream interface; The second virtual bridge interface is configured to indicate a mapping relationship between the LAN IP address configured on the first downlink interface and the WAN IP address configured on the first uplink interface.

6. The method according to any one of claims 1 to 5, characterized in that: The N downstream interfaces include N local area network (LAN) interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N downstream interfaces include at least one LAN interface and at least one W-Fi interface.

7. A method for configuring a routing device, characterized in that: include: Receive first configuration information, where the first configuration information indicates that N downstream interfaces of a routing device are configured as a bridge mode, and another M downstream interfaces of the routing device are configured as a routing mode, where N and M are both positive integers; Creating N virtual bridge interfaces and a second virtual bridge interface according to the first configuration information; The N downstream interfaces and the N upstream interfaces of the routing device are configured on the N virtual bridge interfaces, and the M downstream interfaces and the first upstream interface are configured on the second virtual bridge interface, wherein the first upstream interface is the upstream interface corresponding to the M downstream interfaces; wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; The WAN IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the WAN addresses configured on different downstream interfaces are different. A LAN IP address is configured for each of the M downstream interfaces.

8. The method according to claim 7, characterized in that Also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; The N virtual bridge interfaces include a first virtual bridge interface, and data transmission between an uplink interface and a downlink interface configured on the first virtual bridge interface follows a routing rule corresponding to the first virtual bridge interface.

9. The method according to any one of claims 7 to 8, characterized in that: Also includes: An address mapping rule is configured on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

10. The method according to any one of claims 7 to 9, characterized in that: The N downstream interfaces include N local area network (LAN) interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N interfaces include at least one LAN interface and at least one W-Fi interface.

11. A routing device, characterized in that: include: At least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read the program stored in the at least one memory to execute the method as described in any one of claims 1-6, or execute the method as described in any one of claims 7-10.

12. A chip system, comprising: At least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read the program stored in the at least one memory to execute the method according to any one of claims 1 to 6, or to implement the method according to any one of claims 7 to 10.

13. A program product, characterized in that When the program product runs on a routing device, the routing device is enabled to execute the method according to any one of claims 1 to 6, or to execute the method according to any one of claims 7 to 10.

Citation Information

Cited By

  • Routing device configuration method and routing device

    EP4742609A1