Router, method for router, computer readable medium and device

By supporting the bridge mode of multiple ports in the router, the problem of only Ethernet ports supporting the bridge function in the prior art is solved, and the bridge function of terminal devices through multiple interfaces is realized, which improves user experience and network resource utilization.

CN114024899BActive Publication Date: 2025-01-03ARRIS ENTERPRISES LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010693265.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-17
Publication Date
2025-01-03
Estimated Expiration
2040-07-17

AI Technical Summary

Technical Problem

Existing routers only support bridge function in bridge mode, while other ports such as MoCA, Wi-Fi and USB ports do not support it, limiting the diversity of bridge mode and causing terminal devices to fail to implement bridge function through these interfaces.

Method used

A router is designed to obtain private network data packets through multiple ports (including Ethernet, MoCA, Wi-Fi and USB ports), attach identification information, determine whether the port has a bridge mode, and use pre-set bridges. The mode table allocates public network IP addresses to achieve bridge mode support for multiple ports.

Benefits of technology

It provides a richer selection of bridge modes, improves user experience and convenience of use, allows terminal devices to implement bridge functions through multiple interfaces, and enhances the efficiency of network resources utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114024899B_ABST
    Figure CN114024899B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a router, a method for a router, a computer-readable medium, and an apparatus. A router includes: a memory having instructions stored thereon; a processor configured to execute the instructions stored on the memory so that the router performs at least the following processing: obtaining a private network data packet from a private network, and attaching identification information to the private network data packet, wherein the identification information indicates which port of multiple ports of the router the private network data packet is obtained through; determining whether the port indicated by the identification information of the private network data packet is set to a bridge mode; in response to determining that the port indicated by the identification information of the first private network data packet obtained is set to a bridge mode, assigning a public network IP address to the first private network data packet; and sending the first private network data packet using the public network IP address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of routers, and in particular to a router capable of providing a bridge mode. Background Art

[0002] In the bridge mode of the router, a public network IP address is assigned to a terminal device in the private network so that the terminal device in the private network can be identified by the device in the public network. By setting the bridge mode, the terminal device in the private network can share resources and exchange information with the device in the public network, so the terminal device can be used as a server, for example.

[0003] The function of the bridge mode can be provided by the Ethernet port in the router. For example, a user of a terminal device in a private network can connect the terminal device to the Ethernet port of the router and set the routing mode of the Ethernet port to the bridge mode, thereby utilizing the Ethernet port to implement the bridge function. Summary of the invention

[0004] With the continuous research and development of router functions, the types of ports that routers can provide are becoming more and more abundant. For example, in addition to Ethernet ports, routers can also include MoCA (Multimedia over Coax Alliance) ports, Wi-Fi (Wireless Fidelity) ports, and USB (Universal Serial Bus) ports. By connecting these ports on the router, terminal devices in the private network can also be connected to the network to realize the Internet access function of the terminal devices.

[0005] However, the inventors of the present disclosure have noticed that although the router can provide a variety of ports, other ports (such as MoCA ports, Wi-Fi ports, and USB ports, etc.) cannot directly provide the function of the bridge mode except the Ethernet port. Therefore, the diversity of the bridge mode of the router is limited. For example, a terminal device in a private network may not have an Ethernet interface but only a MoCA interface. In this case, the terminal device cannot realize the bridge function by connecting to the Ethernet port of the router.

[0006] The present disclosure provides a router, a method for a router, a computer-readable medium, and an apparatus, which can provide diversity of bridging modes, thereby providing users of terminal devices with more accurate bridging mode selection, improving usage convenience and enhancing user experience.

[0007] According to one aspect of the present disclosure, a router is provided. The router may include multiple ports; a memory having instructions stored thereon; and a processor configured to execute the instructions stored on the memory so that the router performs at least the following processing: obtaining a private network data packet from a private network via one of the multiple ports, and attaching identification information to the private network data packet, wherein the identification information indicates which port of the multiple ports of the router the private network data packet is obtained via; determining whether the port indicated by the identification information of the private network data packet is set to a bridge mode; in response to determining that the port indicated by the identification information of the first private network data packet obtained is set to a bridge mode, assigning a public network IP address to the first private network data packet; and sending the first private network data packet using the public network IP address.

[0008] In some embodiments, the plurality of ports includes at least one of an Ethernet port, a MoCA port, a Wi-Fi port, and a USB port.

[0009] In some embodiments, a plurality of private network data packets from the private network obtained via different ports of the plurality of ports of the router use a same subnet.

[0010] In some embodiments, the processor is further configured to execute instructions stored on the memory so that the router performs at least the following processing: determining whether the port indicated by the identification information is set to a bridging mode according to a pre-set bridging mode table, wherein the bridging mode table records a correspondence between at least one of the multiple ports and the bridging mode.

[0011] In some embodiments, the bridge mode table is preset by a user of the private network or a network service provider.

[0012] In some embodiments, the processor of the router is further configured to execute instructions stored on the memory to cause the router to perform at least the following processing: storing the public network IP address in association with the private network IP address that is the source address of the first private network data packet.

[0013] In some embodiments, the processor is further configured to execute instructions stored on the memory so that the router performs at least the following processing: when the source address of the acquired second private network data packet matches the stored private network IP address and the port indicated by the identification information of the second private network data packet is set to bridge mode, the second private network data packet is sent using the public network IP address associated with the stored private network IP address.

[0014] In some embodiments, the processor of the router is further configured to execute instructions stored on the memory so that the router performs at least the following processing: obtaining a public network data packet from a public network; and sending the public network data packet using a private network IP address associated with the stored public network IP address when the public network IP address as the destination address of the public network data packet matches the stored public network IP address.

[0015] According to another aspect of the present disclosure, a method for a router is provided. The method may include: obtaining a private network data packet from a private network, and attaching identification information to the private network data packet, wherein the identification information indicates which port of the multiple ports of the router the private network data packet is obtained through; determining whether the port indicated by the identification information of the private network data packet is set to a bridge mode; in response to determining that the port indicated by the identification information of the first private network data packet obtained is set to a bridge mode, assigning a public network IP address to the first private network data packet; and sending the first private network data packet using the public network IP address.

[0016] In some embodiments, whether the port indicated by the identification information is set to a bridge mode is determined according to a preset bridge mode table, and the bridge mode table records a correspondence between at least one port among the multiple ports and the bridge mode.

[0017] In some embodiments, the method further comprises: storing the public network IP address in association with the private network IP address that is the source address of the first private network data packet.

[0018] In some embodiments, when the source address of the acquired second private network data packet matches the stored private network IP address and the port indicated by the identification information of the second private network data packet is set to bridging mode, the second private network data packet is sent using the public network IP address associated with the stored private network IP address.

[0019] In some embodiments, the method also includes: obtaining a public network data packet from a public network; and when the public network IP address serving as the destination address of the public network data packet matches the stored public network IP address, sending the public network data packet using a private network IP address associated with the stored public network IP address.

[0020] According to another aspect of the present disclosure, a non-transitory computer-readable medium for use with a processor is provided, the non-transitory computer-readable medium having instructions stored thereon, which, when executed by the processor, perform at least the following processing: obtaining a private network data packet from a private network, and attaching identification information to the private network data packet, the identification information indicating which port of multiple ports of the router the private network data packet is obtained through; determining whether a bridge mode is set for the port indicated by the identification information of the private network data packet; in response to determining that a bridge mode is set for the port indicated by the identification information of the obtained first private network data packet, assigning a public network IP address to the first private network data packet; and sending the first private network data packet using the public network IP address.

[0021] In some embodiments, the non-transitory computer-readable medium also stores instructions which, when executed by the processor, perform at least the following processing: determining whether the port indicated by the identification information is set to a bridge mode according to a pre-set bridge mode table, wherein the bridge mode table records the correspondence between at least one of the multiple ports and the bridge mode.

[0022] According to yet another aspect of the present disclosure, a device is provided, including a unit for executing the method for a router according to an embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to better understand the present disclosure and to show how it may be implemented, it will now be described by way of example with reference to the accompanying drawings, in which:

[0024] Figure 1 A schematic diagram showing multiple ports of a router according to an embodiment of the present disclosure is shown;

[0025] Figure 2 An exemplary configuration block diagram of a router according to an embodiment of the present disclosure is shown;

[0026] Figure 3 An exemplary flow chart of a method for a router according to an embodiment of the present disclosure is shown;

[0027] Figure 4 An exemplary flow chart of a method for a router according to another embodiment of the present disclosure is shown;

[0028] Figure 5 An exemplary flow chart of a method for a router according to another embodiment of the present disclosure is shown;

[0029] Figure 6 An exemplary configuration of an electronic device in which an embodiment according to the present disclosure can be implemented is shown.

[0030] Note that throughout the drawings, like reference numerals designate corresponding parts. DETAILED DESCRIPTION

[0031] The following detailed description is made with reference to the accompanying drawings, and the following detailed description is provided to assist in a comprehensive understanding of the various exemplary embodiments of the present disclosure. The following description includes various details to assist in understanding, but these details are considered to be examples only and not to limit the present disclosure, which is defined by the appended claims and their equivalents. The words and phrases used in the following description are only used to enable a clear and consistent understanding of the present disclosure. In addition, for the sake of clarity and brevity, descriptions of well-known structures, functions, and configurations may be omitted. Those of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.

[0032] Figure 1 A schematic diagram showing multiple ports of a router 100 according to an embodiment of the present disclosure is shown.

[0033] like Figure 1 As shown, in some embodiments, the router 100 may include an Ethernet port 102, a MoCA port 104, a Wi-Fi port 106, and a USB port 108, which are respectively used to connect to the Ethernet interface, MoCA interface, Wi-Fi interface, and USB interface of a terminal device in a private network to provide corresponding functions.

[0034] The Ethernet port 102 may be a physical port configured on the router 100, for example, connected to and communicated with the Ethernet port of the terminal device through a network cable. The MoCA port 106 may be a physical port configured on the router 100, for example, connected to and communicated with the MoCA interface of the terminal device through a coaxial cable. The USB port 108 may be a physical port configured on the router 100, for example, connected to and communicated with the USB port of the terminal device through a USB cable. In addition, the Wi-Fi interface may be, for example, a virtual port implemented by a processor of the router 100, connected to and communicated with the Wi-Fi interface of the terminal device through a wireless method (e.g., 2.4 GHz band and / or 5 GHz band).

[0035] It should be understood that although Figure 1 The example shows that the router 100 includes an Ethernet port 102, a MoCA port 104, a Wi-Fi port 106, and a USB port 108. The router according to the embodiment of the present disclosure does not need to include all of the above ports. In addition, according to user needs, the router according to the embodiment of the present disclosure can also be configured to include other ports different from the above ports.

[0036] in addition, Figure 1The number of the Ethernet port 102, the MoCA port 104, the Wi-Fi port 106, and the USB port 108 illustrated in the example is one, but multiple Ethernet ports 102, multiple MoCA ports 104, multiple Wi-Fi ports 106, and / or multiple USB ports 108 can be configured in the router 100 according to user needs, etc., to achieve connection and communication with more terminal devices.

[0037] Figure 2 A block diagram illustrating an exemplary configuration of the router 100 according to an embodiment of the present disclosure is illustrated. Figure 2 The router 100 may correspond to Figure 1 The router 100 shown in FIG. 1 includes Figure 1 One or more of the multiple ports shown in .

[0038] Although referred to herein as a router, the router 100 may be, for example, a hardware electronic device capable of combining the functionality of a modem, an access point, and / or a router. The present disclosure also contemplates that the router 100 may include, but is not limited to, the functionality of an IP / QAM set-top box (STB) or a smart media device (SMD) capable of decoding audio / video content and playing content provided by an OTT or MSO.

[0039] like Figure 2 As shown, the router 100 includes a user interface 20, a network interface 21, a power supply 22, a WAN interface 23, a memory 24, and a controller 26. The user interface 20 may include, but is not limited to, buttons, keyboards, keypads, LCDs, CRTs, TFTs, LEDs, HDs, or other similar display devices, including display devices with touch screen capabilities that enable interaction between a user and a gateway device. The network interface 21 may include various network cards and circuit systems implemented in software and / or hardware to enable communication with a wireless extender device and a client device using a wireless protocol, such as any IEEE 802.11 Wi-Fi protocol, Bluetooth protocol, Bluetooth Low Energy (BLE), or other short-range protocols operating according to wireless technology standards for exchanging data over a short distance using any licensed or unlicensed frequency band (such as a Citizen Broadband Radio Service (CBRS) band, a 2.4 GHz band, a 5 GHz band, or a 6 GHz band), an RF4CE protocol, a ZigBee protocol, a Z-Wave protocol, or an IEEE 802.15.4 protocol.

[0040] The power supply 22 provides power to the internal components of the router 100 via the internal bus 27. The power supply 22 may be a self-contained power supply, such as a battery pack, whose interface is powered by a charger connected to an outlet (e.g., directly or through other devices). The power supply 22 may also include a rechargeable battery that is removable for replacement, such as a NiCd, NiMH, Li-ion, or Li-pol battery. The WAN interface 23 may include various network cards and circuit systems implemented in software and / or hardware to enable communication between the router device and an Internet service provider or a multiple system operator (MSO).

[0041] The memory 24 includes a single memory or one or more memories or storage locations, including but not limited to random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), EPROM, EEPROM, flash memory, logic blocks of an FPGA, a hard disk, or any other layers of the memory hierarchy. The memory 24 can be used to store any type of instructions, software, or algorithms, including software 25 for controlling the general functions and operations of the router 100.

[0042] The controller 26 controls the general operation of the router 100 and performs management functions related to other devices in the network, such as extenders and client devices. The controller 26 may include, but is not limited to, a CPU, a hardware microprocessor, a hardware processor, a multi-core processor, a single-core processor, a microcontroller, an application-specific integrated circuit (ASIC), a DSP, or other similar processing device, capable of executing any type of instructions, algorithms, or software for controlling the operation and functions of the router 100 according to the embodiments described in the present disclosure. The controller 26 may be various implementations of digital circuit systems, analog circuit systems, or mixed signal (a combination of analog and digital) circuit systems that perform functions in a computing system. The controller 26 may include, for example, an integrated circuit (IC), a portion or circuit of a separate processor core, an entire processor core, a separate processor, a programmable hardware device such as a field programmable gate array (FPGA), and / or a system including multiple processors.

[0043] Internal bus 27 may be used to establish communications between components of router 100 (eg, 20 - 22 , 24 , and 26 ).

[0044] Figure 3 FIG. 3 is a flow chart showing a method 300 for a router according to an embodiment of the present disclosure. The method 300 can be used, for example, to Figure 1 and 2 The router 100 shown in FIG. Figure 2 and Figure 3 A router and a method for a router according to an embodiment of the present disclosure are described in detail.

[0045] like Figure 3 As shown, in step S302, the controller 26 obtains a private network data packet from the private network, and adds identification information to the private network data packet, wherein the identification information indicates through which port of the multiple ports of the router the private network data packet is obtained.

[0046] It should be understood that the private network described in the present disclosure is a network space in a local area, such as a local area network (LAN), which can be set up in a home, office or factory. Terminal devices in the private network (such as personal computers, smart phones, televisions and other electronic devices) can share resources and exchange information through the private network. In addition, the private network is logically isolated from other networks (other private networks, public networks, etc.), and terminal devices in the private network cannot communicate directly with devices in other networks, but need to communicate with the help of router functions. In addition, the public network is, for example, a wide area network (WAN) such as the Internet.

[0047] In some embodiments, the controller 26 may obtain multiple private network data packets from the private network, such as PR1, PR2, PR3, PR4, ... The multiple private network data packets may be, for example, received through Figure 1 The private network packets are received by one or more of the ports 102 to 108 of the router 100. In some embodiments, the controller 26 may be configured to receive the private network packets from each of the ports 102 to 108 of the router.

[0048] In some embodiments, the controller 26 may attach corresponding identification information to the private network data packets (e.g., PR1, PR2, PR3, PR4). The following Table 1 illustrates the identification information attached by the controller 26 to multiple private network data packets, wherein the identification information "00" indicates that PR1 is obtained via the Ethernet port of the router, the identification information "01" indicates that PR2 is obtained via the MoCA port of the router, the identification information "10" indicates that PR3 is obtained via the Wi-Fi port of the router, and the identification information "11" indicates that PR4 is obtained via the USB port of the router.

[0049] (Table 1)

[0050] Private network packets Identification Information Identify the port indicated by the information PR1 00 Ethernet Port PR2 01 MoCA Port PR3 10 Wi-Fi Port PR4 11 USB Port

[0051] In the above Table 1, the identification information includes 2 bits of binary information to distinguish the four different ports of the router. In the case where the number of ports included in the router 100 is greater, more bits may be used to represent the identification information. In addition, the identification information may also be represented in other ways, and the present disclosure does not limit the form of the identification information.

[0052] In some embodiments, the identification information may be attached to the header of the private network data packet, so that the controller 26 can easily obtain the identification information. It should be understood that in the present disclosure, the location where the identification information is attached to the private network data packet is not particularly limited, and those skilled in the art can flexibly design it according to the specific frame format of the data packet.

[0053] In step S304 , the controller 26 determines whether the port indicated by the identification information of the private network data packet is set to a bridge mode.

[0054] In some embodiments, the controller 26 can determine whether the port indicated by the identification information of the private network data packet is set to the bridge mode according to a preset bridge mode table. The bridge mode table, for example, records the correspondence between at least one of the multiple ports of the router and the bridge mode.

[0055] Table 2 below illustrates a bridging mode table according to an embodiment of the present disclosure, wherein the corresponding port is indicated by identification information. In some embodiments, for example, when the controller 26 obtains PR1 and adds identification information "00" (Ethernet port) to PR1, the controller 26 determines that the bridging mode corresponding to the Ethernet port indicated by the identification information "00" is "not enabled" according to Table 2. In this case, the controller 26 determines that the data packet PR1 is not a data packet to be bridged, so that, for example, the bridging operation can be terminated.

[0056] In addition, when the controller 26 obtains PR2 and adds identification information "01" (MoCA port) to PR2, the controller 26 determines that the bridge mode corresponding to the MoCA port indicated by the identification information "01" is in the "enabled" state according to Table 2. In this case, the controller 26 will use this information to perform the corresponding IP address allocation operation related to the bridge mode described later.

[0057] (Table 2)

[0058] Identification Information Bridge Mode 00(Ethernet port) Not enabled 01(MoCA port) Enable 10 (Wi-Fi port) Not enabled 11 (USB port) Enable

[0059] It should be understood that the correspondence between all ports of the router and the bridge mode is recorded in the above Table 2. In some embodiments, only the ports with the bridge mode "enabled" may be recorded to save storage space.

[0060] In some embodiments, the bridge mode table can be pre-set by the user of the private network. For example, when the user wants to use the bridge mode for his terminal device, he can set the port (e.g., MoCA port) of the router 100 to which the terminal device is to be connected through a GUI (Graphical User Interface) or an application in the form of a web, and set the bridge function of the port to "enable". The user connects the terminal device to the port of the router 100 set with the bridge mode, and the bridge mode function can be realized.

[0061] In other embodiments, the bridge mode table may be pre-set by a network service provider. For example, the network service provider may help the user pre-set the port (e.g., MoCA port) of the router 100 to which the user's terminal device is to be connected, and set the bridge function of the port to "enable" according to the user's needs. In some embodiments, the network service provider may set the bridge mode table through, for example, SNMP (Simple Network Management Protocol) or CWMP (CPE WAN Management Protocol, also known as TR069).

[0062] In addition, in some embodiments, the user or the network service provider may also set the port of the router to which the terminal is to be connected to as "disabled" by a method similar to the above, so as not to use the bridging function.

[0063] In some embodiments, the bridge mode table may be stored in the memory 24 of the router 100, for example, for the controller 26 to search and use. In some embodiments, the bridge mode tables of multiple routers may also be stored in an external server or cloud storage, and each router obtains its own bridge mode table by querying the external server or cloud storage.

[0064] In step S306 , in response to determining that the port indicated by the identification information of the acquired first private network data packet (eg, PR2 ) is set to a bridge mode, the controller 26 allocates a public network IP address to the first private network data packet.

[0065] In some embodiments, for example, when the controller 26 determines that the port (MoCA port) indicated by the identification information "01" of PR2 is set to the bridge mode (set to "enabled" in Table 2), the controller 26 sends a DHCP DISCOVER broadcast packet to the DHCP (Dynamic Host Configuration Protocol) server to request a leased IP address. Next, the controller 26 selects a DHCPOFFER packet from the DHCP OFFER packets received from the DHCP server, and uses the IP address provided in the DHCP OFFER packet as the public network IP address to be allocated to PR2. In addition, the controller 26 broadcasts a DHCP REQUEST message packet to the network, indicating that the IP address provided by a DHCP server has been accepted, so that all other DHCP servers can revoke the IP addresses they provide so as to provide the IP address for the next IP lease request. Thus, the controller 26 allocates a public network IP address to PR2.

[0066] In step S308 , the controller 26 sends the first private network data packet using the public network IP address allocated by the controller 26 .

[0067] In some embodiments, the first private network data packet (eg, PR2 ) may be sent to the public network through the WAN port of the router 100 using the public network IP address assigned by the controller 26 .

[0068] According to the router disclosed in the present invention, the bridging mode can be set for any port among the multiple ports, thereby providing diversity of bridging modes, providing users of terminal devices with more accurate bridging mode selection, improving ease of use and enhancing user experience.

[0069] In some embodiments, the multiple ports of the router may include, for example, at least two of an Ethernet port, a MoCA port, a Wi-Fi port, and a USB port. Thus, the router according to the present disclosure can provide bridging modes for different ports respectively, and can also provide bridging mode for the user's terminal device when, for example, the user's terminal device only has an interface that matches one of the ports (for example, only a MoCA interface, etc.). In addition, since the router according to the present disclosure can provide a variety of bridging modes, the user can freely choose which port to use to implement the bridging mode according to the convenience of use, the interface of the terminal device, etc., thereby providing the user of the terminal device with a more accurate choice of bridging mode, improving the convenience of use and enhancing the user experience.

[0070] In some embodiments, the multiple ports of the router may also include, for example, multiple Ethernet ports, multiple MoCA ports, multiple Wi-Fi ports, or multiple USB ports. For example, when the multiple ports of the router include multiple (e.g., two) MoCA ports, different identification information may be added to the private network data packets obtained via the two MoCA ports to distinguish the two MoCA ports. According to this embodiment, a richer selection of interfaces can be provided, providing bridging functions for more terminal devices.

[0071] In some embodiments, multiple private network data packets from a private network obtained via different ports of a router use the same subnet. For example, the private network data packets PR2 and PR4 described above are obtained from a MoCA port and a USB port, respectively. For these two data packets PR2 and PR4, since the identification information "01" and "10" corresponding to the MoCA port and the USB port are respectively attached, the same subnet resources can be used without conflict, thereby saving network resources. In some embodiments, the private network data packets obtained via multiple ports can all use the same subnet as the Ethernet port. Thus, the diversity of bridging modes can be achieved without occupying new network resources.

[0072] In some embodiments, when the Wi-Fi port of the router is used to implement the bridge mode, the first frequency band (for example, one of the 2.4 GHz band, the 5 GHz band, or the 6 GHz band) can be used for a certain terminal device to implement the bridge mode, and the second frequency band (for example, another of the 2.4 GHz band, the 5 GHz band, or the 6 GHz band) can be used for other terminal devices to implement the normal Internet access function. In this way, the bridge mode and the normal Internet access function can be implemented at the same time without causing conflicts in network resources.

[0073] Next, refer to Figure 4 An exemplary flow chart of a method 400 for a router according to another embodiment of the present disclosure is described. The method 400 can be used, for example, as follows: Figure 2 In the method 400, steps S302 to S308 are similar to those in the reference Figure 3 The method 300 described in the present invention is the same as that described in the present invention, so the same reference numerals are added and the description is omitted. Figure 3 The method 300 in step S402 is different.

[0074] like Figure 4 As shown, in some embodiments, in step S402, the public network IP address assigned by the controller 26 in step S306 may be stored in association with the private network IP address that is the source address of the first private network data packet (eg, PR2). Figure 4 In the embodiment, step S402 is illustrated as being executed after step S308, but may also be executed before step S308 and after step S306.

[0075] Table 3 below illustrates two stored public network IP addresses and two private network IP addresses associated therewith. The private network IP addresses "192.168.1.100" and "192.168.1.200" correspond to two terminal devices in the private network, respectively, while the public network IP addresses "122.108.24.100" and "122.108.24.200" represent the public network IP addresses allocated to the two terminal devices.

[0076] (Table 3)

[0077] Private network IP address Public network IP address 192.168.1.100 122.108.24.100 192.168.1.200 122.108.24.200

[0078] In some embodiments, the public network IP address and the private network IP address associated therewith may be stored in the memory 24 of the router 100, for example. In some embodiments, the public network IP addresses and the private network IP addresses associated therewith of multiple routers may also be stored in an external server or cloud storage, and each router obtains the required information by querying the external server or cloud storage.

[0079] In some embodiments, when the source address of the second private network data packet obtained by the controller 26 matches the stored private network IP address, and the controller 26 determines that the port indicated by the identification information of the second private network data packet is set to bridging mode, the second private network data packet is sent using the public network IP address associated with the stored private network IP address.

[0080] For example, when the source address of the second private network data packet is "192.168.1.100", it is the same as the private network IP address "192.168.1.100" stored in Table 3, indicating that the sending source (terminal device) of the second private network data packet has previously sent a data packet to the router, and the router has assigned the public network IP address "122.108.24.100" to the sending source. In addition, the controller 26 determines that the port indicated by the identification information of the second private network data packet is set to bridge mode, indicating that the data packet is sent through the port set to bridge mode, and the function of bridge mode needs to be implemented. In this case, the second private network data packet is sent using the public network IP address "122.108.24.100" that has been previously assigned to the sending source.

[0081] As a result, there is no need to reallocate the public network IP address each time a private network data packet is obtained, which saves computing overhead and network resources and improves the efficiency of data packet sending.

[0082] Next, refer to Figure 5 An exemplary flow chart of a method 500 for a router according to another embodiment of the present disclosure is described. The method 500 can be used, for example, to Figure 2 In the method 500, steps S302 to S308 are similar to those in the reference Figure 3 The method 300 described above is the same as that described above, and step S402 is the same as that described above. Figure 4 The method 400 described in the present invention is the same as that described in the present invention, so the same reference numerals are added and the description is omitted. Figure 3 Method 300 and Figure 4 The method 400 in different steps S502 and S504.

[0083] like Figure 5 As shown, in some embodiments, in step S502, a public network data packet from a public network may be obtained. This step S502 may also be performed by Figure 2 The controller 26 shown implements.

[0084] In some embodiments, the public network data packet is a data packet sent from a terminal device in a public network to a terminal device in a private network. The source address of the public network data packet indicates the public network IP address of the terminal device in the public network. In addition, since the terminal device in the public network cannot know the private network IP address of the terminal device in the private network, the destination address of the public network data packet only indicates the public network IP address, and the public network IP address needs to be converted into the private network IP address through the bridging function of the router, so as to provide the public network data packet to the terminal device in the private network.

[0085] In step S504, when the public network IP address as the destination address of the public network data packet matches the stored public network IP address, the public network data packet is sent using the private network IP address associated with the stored public network IP address.

[0086] For example, when the destination address of the public network data packet is "122.108.24.200", it is the same as the public network IP address "122.108.24.200" in Table 3. Therefore, the private network IP address "192.168.1.200" associated with the public network IP address is used to send the public network data packet to the terminal device in the private network corresponding to the above private network IP address.

[0087] As a result, terminal devices in the private network can receive data packets from the public network through the bridging function of the router.

[0088] Next, refer to Figure 6 An exemplary configuration block diagram of another electronic device 600 that can implement the embodiments of the present disclosure is described. For example, the electronic device 600 can be used to implement one or more of the methods 300 to 500 according to the embodiments of the present disclosure.

[0089] like Figure 6 As shown, the electronic device 600 includes a processing subsystem 610, a memory subsystem 612, and a networking subsystem 614. The processing subsystem 610 includes one or more devices configured to perform computing operations. For example, the processing subsystem 610 may include one or more microprocessors, ASICs, microcontrollers, programmable logic devices, graphics processor units (GPUs), and / or one or more digital signal processors (DSPs).

[0090] Memory subsystem 612 includes one or more devices for storing data and / or instructions for processing subsystem 610 and networking subsystem 614. For example, memory subsystem 612 may include dynamic random access memory (DRAM), static random access memory (SRAM), and / or other types of memory (sometimes collectively or individually referred to as "computer-readable storage media").

[0091] In addition, the memory subsystem 612 may include mechanisms for controlling access to memory. In some embodiments, the memory subsystem 612 includes a memory hierarchy including one or more caches coupled to memory in the electronic device 600. In some of these embodiments, one or more of the caches are located in the processing subsystem 610.

[0092] In some embodiments, the memory subsystem 612 is coupled to one or more high-capacity mass storage devices (not shown). For example, the memory subsystem 612 can be coupled to a magnetic or optical drive, a solid-state drive, or another type of mass storage device. In these embodiments, the electronic device 600 can use the memory subsystem 612 as fast access storage for frequently used data, while the mass storage device is used to store infrequently used data.

[0093] The networking subsystem 614 includes one or more devices configured to couple to and communicate over (i.e., to perform network operations on) a wired and / or wireless network, including: control logic 616, interface circuitry 618, and one or more antennas 620 (or antenna elements). Figure 6One or more antennas 620 are included, but in some embodiments, the electronic device 600 includes one or more nodes, such as node 608, e.g., pads, that can be coupled to the one or more antennas 620. Thus, the electronic device 600 may or may not include one or more antennas 620. For example, the networking subsystem 614 may include a Bluetooth networking system, a cellular networking system (e.g., a 3G / 4G / 5G network such as UMTS, LTE, etc.), a USB networking system, a networking system based on the standards described in IEEE 802.11 (e.g., a Wi-Fi networking system), an Ethernet networking system, and / or another networking system.

[0094] The networking subsystem 614 includes a processor, a controller, a radio device / antenna, a socket / plug and / or other devices for coupling to each supported network system, communicating on each supported network system, and processing data and events for each supported network system. Please note that sometimes the mechanisms for coupling to the network for each network system, communicating on the network, and processing data and events on the network are collectively referred to as the "network interface" of the network system. In addition, in some embodiments, the "network" or "connection" between electronic devices does not yet exist. Therefore, the electronic device 600 can use the mechanisms in the networking subsystem 614 to perform simple wireless communications between electronic devices, for example, sending frames and / or scanning frames sent by other electronic devices.

[0095] Within the electronic device 600, the processing subsystem 610, the memory subsystem 612, and the networking subsystem 614 are coupled together using a bus 628. The bus 628 may include electrical, optical, and / or electro-optical connections that the subsystems may use to communicate commands and data, among other things. Although only one bus 628 is shown for clarity, different embodiments may include different numbers or configurations of electrical, optical, and / or electro-optical connections among the subsystems.

[0096] In some embodiments, the electronic device 600 includes a display subsystem 626 for displaying information on a display, which may include a display driver and a display, such as a liquid crystal display, a multi-touch screen, etc.

[0097] The electronic device 600 may be (or may be included in) any electronic device having at least one network interface. For example, the electronic device 600 may be (or may be included in): a desktop computer, a laptop computer, a sub-notebook / netbook, a server, a computer, a mainframe computer, a cloud-based computer, a tablet computer, a smart phone, a cellular phone, a smart watch, a wearable device, a consumer electronic device, a portable computing device, an access point, a transceiver, a controller, a radio node, a router (e.g., the router 100 according to an embodiment of the present disclosure), a switch, a communication device, an access point, a test device, and / or other electronic devices.

[0098] Although specific components are used to describe the electronic device 600, in alternative embodiments, different components and / or subsystems may be present in the electronic device 600. For example, the electronic device 600 may include one or more additional processing subsystems, memory subsystems, networking subsystems, and / or display subsystems. In addition, one or more of the subsystems may not be present in the electronic device 600. Furthermore, in some embodiments, the electronic device 600 may include Figure 6 One or more additional subsystems not shown. Figure 6 600, some or all of a given subsystem or component may be integrated into one or more of the other subsystems or components in the electronic device 600. For example, in some embodiments, the program instructions 622 are included in the operating system 624 and / or the control logic 616 is included in the interface circuit 618.

[0099] In addition, any combination of analog and / or digital circuits can be used to implement the circuits and components in the electronic device 600, including: bipolar, PMOS and / or NMOS gates or transistors. In addition, the signals in these embodiments can include digital signals with approximately discrete values ​​and / or analog signals with continuous values. In addition, the components and circuits can be single-ended or differential, and the power supply can be unipolar or bipolar.

[0100] Although some operations in the foregoing embodiments are implemented in hardware or software, in general, the operations in the foregoing embodiments can be implemented in a variety of configurations and architectures. Therefore, some or all of the operations in the foregoing embodiments can be performed in hardware, software, or both. For example, at least some operations in the communication technology can be implemented using program instructions 622, operating system 624 (such as a driver for interface circuit 618), or in firmware in interface circuit 618. Alternatively or in addition, at least some operations in the communication technology can be implemented in the physical layer, such as hardware in interface circuit 618.

[0101] The present disclosure may be implemented as any combination of an apparatus, a system, an integrated circuit, and a computer program on a non-transitory computer-readable medium. One or more processors may be implemented as an integrated circuit (IC), an application specific integrated circuit (ASIC), or a large scale integrated circuit (LSI), a system LSI, a super LSI, or a super LSI component that performs some or all of the functions described in the present disclosure.

[0102] The present disclosure includes the use of software, applications, computer programs or algorithms. The software, applications, computer programs or algorithms can be stored on a non-transitory computer-readable medium to enable a computer such as one or more processors to perform the above steps and the steps described in the accompanying drawings. For example, one or more memories store the software or algorithm in executable instructions, and one or more processors can associate a set of instructions to execute the software or algorithm to provide a bridging function of a router according to the embodiments described in the present disclosure.

[0103] Software and computer programs (which may also be referred to as programs, software applications, applications, components or code) include machine instructions for a programmable processor and may be implemented in a high-level procedural language, an object-oriented programming language, a functional programming language, a logic programming language, or an assembly language or a machine language. The term "computer-readable medium" refers to any computer program product, apparatus or device for providing machine instructions or data to a programmable data processor, such as magnetic disks, optical disks, solid-state storage devices, memories and programmable logic devices (PLDs), including computer-readable media that receive machine instructions as computer-readable signals.

[0104] For example, computer readable media may include dynamic random access memory (DRAM), random access memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the desired computer readable program code in the form of instructions or data structures and can be accessed by a general or special purpose computer or a general or special purpose processor. As used herein, disk or disc includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically by laser. Combinations of the above are also included in the scope of computer readable media.

[0105] The subject matter of the present disclosure is provided as an example of devices, systems, methods and programs for performing the features described in the present disclosure. However, in addition to the above-mentioned features, other features or variations may also be expected. It is expected that the implementation of the components and functions of the present disclosure may be completed with any emerging technology that may replace any of the above-mentioned implementation technologies.

[0106] In addition, the above description provides examples without limiting the scope, applicability or configuration set forth in the claims. Without departing from the spirit and scope of the present disclosure, the functions and arrangements of the elements discussed may be changed. Various embodiments may appropriately omit, replace or add various processes or components. For example, features described with respect to certain embodiments may be combined in other embodiments.

[0107] Similarly, while operations are depicted in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed to achieve desired results. In certain circumstances, multitasking and parallel processing can be advantageous.

Claims

1. A router, comprising: Multiple ports; a memory having instructions stored therein; as well as A processor is configured to execute instructions stored in the memory to enable the router to perform at least the following processing: Acquire a private network data packet from a private network via one of the plurality of ports, and attach identification information to the private network data packet, the identification information indicating that the private network data packet is acquired via a specific port of the plurality of ports of the router, wherein the identification information distinguishes the specific port from one or more other ports of the plurality of ports; Determining that the specific port indicated by the identification information of the private network data packet is set to a bridge mode; In response to determining that the bridge mode is set, Sending a request to lease a public network IP address to one or more servers; receiving one or more packets from the one or more servers, wherein the one or more packets provide one or more IP addresses; selecting a first packet from the one or more packets, the first packet received from a first server of the one or more servers, wherein the first packet provides a first IP address of the one or more IP addresses; Using the first IP address as the public network IP address; broadcasting acceptance of the public network IP address of the first packet so that one or more servers different from the first server revoke one or more IP addresses provided by one or more servers different from the first server; as well as assigning the public network IP address of the first packet to a first private network data packet; as well as The first private network data packet is sent using the allocated public network IP address.

2. The router according to claim 1, wherein: The plurality of ports include at least one of an Ethernet port, a MoCA port, a Wi-Fi port, and a USB port.

3. The router according to claim 1, wherein: A plurality of private network data packets from the private network obtained via different ports of the plurality of ports of the router use the same subnet.

4. The router according to claim 1, wherein: The processor is further configured to execute instructions stored on the memory to cause the router to perform at least the following processes: The specific port is determined to be set to the bridge mode according to a preset bridge mode table, wherein the bridge mode table records a correspondence between at least one port among the plurality of ports and the bridge mode.

5. The router according to claim 4, wherein: The bridge mode table is preset by the user of the private network or the network service provider.

6. The router according to claim 1, wherein: The processor is further configured to execute instructions stored on the memory to cause the router to perform at least the following processing: The public network IP address is stored in association with the private network IP address that is the source address of the first private network data packet.

7. The router according to claim 6, wherein: The processor is further configured to execute instructions stored on the memory to cause the router to perform at least the following processes: When the source address of the acquired second private network data packet matches the stored private network IP address and the other port indicated by the identification information of the second private network data packet is set to bridge mode, the second private network data packet is sent using the public network IP address associated with the stored private network IP address.

8. The router according to claim 6, wherein: The processor is further configured to execute instructions stored on the memory to cause the router to perform at least the following processes: Obtaining public network packets from public networks; and When the public network IP address as the destination address of the public network data packet matches the stored public network IP address, the public network data packet is sent using the private network IP address associated with the stored public network IP address.

9. A method for a router, comprising: Acquire a private network data packet from a private network, and attach identification information to the private network data packet, the identification information indicating that the private network data packet is acquired via a specific port among a plurality of ports of the router, wherein the identification information distinguishes the specific port from one or more other ports among the plurality of ports; Determining that the specific port indicated by the identification information of the private network data packet is set to a bridge mode; In response to determining that the bridge mode is set, Sending a request to lease a public network IP address to one or more servers; receiving one or more packets from the one or more servers, wherein the one or more packets provide one or more IP addresses; selecting a first packet from the one or more packets, the first packet received from a first server of the one or more servers, wherein the first packet provides a first IP address of the one or more IP addresses; Using the first IP address as the public network IP address; broadcasting acceptance of the public network IP address of the first packet so that one or more servers different from the first server revoke one or more IP addresses provided by one or more servers different from the first server; as well as assigning the public network IP address of the first packet to a first private network data packet; as well as The first private network data packet is sent using the allocated public network IP address.

10. The method according to claim 9, wherein: The plurality of ports include at least one of an Ethernet port, a MoCA port, a Wi-Fi port, and a USB port.

11. The method according to claim 9, wherein: A plurality of private network data packets from the private network obtained via different ports of the plurality of ports of the router use the same subnet.

12. The method according to claim 9, wherein: The specific port is determined to be set to the bridge mode according to a preset bridge mode table, wherein the bridge mode table records a correspondence between at least one port among the plurality of ports and the bridge mode.

13. The method according to claim 9, further comprising: The public network IP address is stored in association with the private network IP address that is the source address of the first private network data packet.

14. The method according to claim 13, wherein: When the source address of the acquired second private network data packet matches the stored private network IP address and the other port indicated by the identification information of the second private network data packet is set to bridge mode, the second private network data packet is sent using the public network IP address associated with the stored private network IP address.

15. The method according to claim 13, further comprising: Obtaining public network data packets from the public network; as well as When the public network IP address as the destination address of the public network data packet matches the stored public network IP address, the public network data packet is sent using the private network IP address associated with the stored public network IP address.

16. A non-transitory computer-readable medium for use with a processor, the non-transitory computer-readable medium having stored thereon instructions, the instructions, when executed by the processor, performing at least the following processes: Acquire a private network data packet from a private network, and attach identification information to the private network data packet, wherein the identification information indicates that the private network data packet is acquired via a specific port among a plurality of ports of a router, wherein the identification information distinguishes the specific port from one or more other ports among the plurality of ports; Determining that the specific port indicated by the identification information of the private network data packet is set to a bridge mode; In response to determining that the bridge mode is set, Sending a request to lease a public network IP address to one or more servers; receiving one or more packets from the one or more servers, wherein the one or more packets provide one or more IP addresses; selecting a first packet from the one or more packets, the first packet received from a first server of the one or more servers, wherein the first packet provides a first IP address of the one or more IP addresses; Using the first IP address as the public network IP address; broadcasting acceptance of the public network IP address of the first packet so that one or more servers different from the first server revoke one or more IP addresses provided by one or more servers different from the first server; as well as assigning the public network IP address of the first packet to a first private network data packet; as well as The first private network data packet is sent using the allocated public network IP address.

17. The non-transitory computer readable medium of claim 16, wherein: The plurality of ports include at least one of an Ethernet port, a MoCA port, a Wi-Fi port, and a USB port.

18. The non-transitory computer readable medium of claim 16, wherein: A plurality of private network data packets from the private network obtained via different ports of the plurality of ports of the router use the same subnet.

19. The non-transitory computer-readable medium according to claim 16, further storing instructions, which when executed by the processor, perform at least the following processing: The specific port is determined to be set to the bridge mode according to a preset bridge mode table, wherein the bridge mode table records a correspondence between at least one port among the plurality of ports and the bridge mode.

20. A communication device comprising means for performing the method according to any one of claims 9 to 15.

Citation Information

Patent Citations

  • Method and device for allocating and mapping public network address and network system

    CN106982270A