Method for configuring IPV6 address, medium, program product, and gateway device
By differentiating RA message sources, the gateway device enables non-NAT clients to configure IPv6 addresses, addressing the communication barrier with IPv6 networks in DOCSIS setups, thus improving network connectivity and performance.
Patent Information
- Application Number
- PCT/US2024/017241
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-06
AI Technical Summary
DOCSIS gateway devices connected to both NAT and non-NAT clients face challenges in configuring IPv6 addresses for non-NAT clients, as they cannot receive Router Advertisement (RA) messages due to conflicts with locally generated RA messages, preventing them from communicating with IPv6 networks.
The gateway device determines the source address of RA messages to differentiate between local and remote RA messages, allowing it to send the correct RA messages to non-NAT clients to configure their IPv6 addresses, thereby enabling communication with IPv6 networks.
This solution allows non-NAT clients to correctly configure their IPv6 addresses and communicate with IPv6 networks, enhancing network connectivity and performance by avoiding message conflicts and ensuring proper address configuration.
Smart Images

Figure US2024017241_06092024_PF_FP
Abstract
Description
SPECIFICATIONMETHOD FOR CONFIGURING IPV6 ADDRESS, MEDIUM, PROGRAM PRODUCT, AND GATEWAY DEVICETechnical Field
[0001] The present disclosure generally relates to the field of network communication, and more specifically, to a method for configuring an IPv6 address, a medium, a program product, and a gateway device in the field of network communication.Background Art
[0002] With the increasing demands for various network services, businesses, schools, malls, homes, factories, etc. are deploying local area networks in their own locations and enabling various clients to connect to external networks through gateway devices within the local area networks. For example, a large number of clients such as laptops, desktop computers, mobile phones, home appliances, gaming console devices, set-top boxes, and network TVs can connect to gateway devices such as Wi-Fi routers, modems, home gateways via wireless and / or wired means, and then connect to external networks via the gateway devices to access and use various websites and applications.
[0003] The gateway device has a wide area network (WAN) side interface and a 'local area network (LAN) side interface. On the LAN side, the gateway device can connect to a network address translation (NAT) client. The gateway device assigns a valid private address to the NAT client within the subnet of the gateway device, and enables the NAT client to communicate with the external network through network address translation. For IPv4, the igateway device can assign an IPv4 private address to the NAT client according to an address allocation request of the NAT client. For IPv6, the gateway device can send its own generated router advertisement (RA) message to the NAT client to configure (or obtain) its private IPv6 address and a corresponding route according to the RA message. Whether it is IPv4 or IPv6, the gateway device can translate the network address of the IPv4 private address and IPv6 private address of the NAT client to communicate with an external IPv4 network and IPv6 network. By using network address translation, not only can limited network addresses be saved, especially IPv4 addresses, but also NAT clients within the subnet of the gateway device can be hidden, so that the external network cannot realize the existence of the NAT clients within the subnet.
[0004] On the LAN side, the gateway device can also connect to a non-NAT client. The non-NAT client has a globally unique public address. The forwarding of data packets by the gateway device can achieve communication with the external network without further network address translation by the gateway device. In this case, the gateway device acts as a MAC bridge, that is, does not do any routing processing on packets from and to the non-NAT client, and only forwards them. Moreover, the external network can also realize the existence of the non-NAT client. For IPv4, the non-NAT client can be assigned a globally unique IPv4 address by broadcasting an IPv4 address allocation request, so as to communicate with an external IPv4 network. For IPv6, because IPv6 does not have a broadcast mechanism, when the non-NAT client needs allocation of an IPv6 address, it needs to serve as an RA message of a remote router device next to the gateway device to configure its IPv6 address and a corresponding route according to information carried by the RA message. However, when the gateway device is connected to both the NATclient and the non-NAT client, to prevent the RA message from the remote router device from conflicting with an RA message generated by it itself, the RA message from the remote router device will be discarded. In this way, the non-NAT client cannot receive an RA message for configuring its IPv6 address, and in turn cannot configure an IPv6 address to communicate with an IPv6 network.
[0005] For a data over cable service interface specification (DOCSIS) gateway device, such as a DOCSIS gateway device developed based on the MxL Puma platform, that the non-NAT client is only able to operate under IPv4 is a pervasive problem for a long time. In order to enable the non-NAT client to communicate with the IPv6 network when the gateway device is connected to both the NAT client and the non-NAT client, it is desirable to provide a way to configure an IPv6 address for the non-NAT client.Summary of the Invention
[0006] Certain aspects of the present disclosure relate to a gateway device. The gateway device may include: a memory, in which instructions are stored; and a processor, configured to execute the instructions stored in the memory such that the gateway device executes the following operations: determining whether a source address of an RA message is the same as a link local address on a LAN side of the gateway device, wherein both an NAT client and a non-NAT client are connected to the gateway device, wherein the gateway device enables the NAT client to communicate with an external network through network address translation, and wherein the gateway device does not provide network address translation for the non-NAT client to communicate with the external network; and in response to determining that the source address of the RA message is different from the link local address on the LANside of the gateway device, sending the RA message to the non-NAT client to cause the non-NAT client to configure its IPv6 address according to the RA message.
[0007] In some examples, the processor may be further configured to send the RA message only to the non-NAT client.
[0008] In some examples, the processor may be further configured to receive an RA message periodically sent by a remote router device connected to the gateway device.
[0009] In some examples, the processor may be further configured to forward a multicast message whose destination address includes a predetermined prefix between the remote router device and the non-NAT client.
[0010] In some examples, the remote router device is a cable modem terminal system (CMTS).
[0011] In some examples, the processor may be further configured to: in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, send the RA message to the NAT client to cause the NAT client to configure its IPv6 address according to the RA message.
[0012] In some examples, the processor may be further configured to send the RA message only to the NAT client; where the RA message is generated by the gateway device.
[0013] Other aspects of the present disclosure relate to a method for configuring an IPv6 address, a non-transitory computer-readable medium, and a computer program product. They are all capable of realizing the operations that the gateway device is capable of executing.Brief Description of the Attached Drawings
[0014] For a better understanding of the present disclosure and to show how to realize the present disclosure, examples are herein described with reference to the attached drawings, in which:
[0015] Fig. 1 is a schematic diagram of a network architecture of a NAT client and a non-NAT client communicating with an external network via a gateway device according to an example of the present disclosure.
[0016] Fig. 2 is an exemplary configuration block diagram of the gateway device in Fig. 1 according to an example of the present disclosure.
[0017] Fig. 3 is a flowchart of a method for configuring an IPv6 address according to an example of the present disclosure.
[0018] Fig. 4 is another flowchart of a method for configuring an IPv6 address according to an example of the present disclosure.
[0019] Fig. 5 is a schematic diagram of a functional architecture of a gateway device according to an example of the present disclosure.Specific Embodiments
[0020] The following detailed description is made with reference to the attached drawings, and the following detailed description is provided to facilitate comprehensive understanding of various exemplary examples of the present disclosure. The following description includes various details for facilitation of understanding. However, these details are merely considered as examples, not for limiting the present disclosure. The present disclosure is defined by the attached Claim s 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 clarity and brevity, descriptions of well-known structures, functions, and configurations may be omitted. Those of ordinary skill in the art will realize that various changes andmodifications can be made to the examples described in the present specification without departing from the gist and scope of the present disclosure.
[0021] First, refer to Fig. 1. Fig. 1 is a schematic diagram of a network architecture of an NAT client and a non-NAT client communicating with an external network via a gateway device according to an example of the present disclosure.
[0022] As shown in Fig. 1, in a local area network where a gateway device 130 is located, there may be NAT clients 110-1 to 110-n and non-NAT clients 120-1 to 120-m at the same time, n and m are integers greater than or equal to 1, and n and m may be the same or different. These clients are connected to the gateway device 130 on a LAN side of the gateway device 130. A WAN side of the gateway device 130 is connected to a remote router device 140, which in turn is connected to an external network 150 including an IPv4 network and an IPv6 network. Although two NAT clients and two non-NAT clients are shown in Fig. 1, the number of NAT clients is not limited to two, but may be one, three or more, and the number of non-NAT clients is not limited to two, but may be one, three or more, provided that the clients connected to the gateway device 130 include both an NAT client and a non-NAT client. In the following, reference numeral 110 refers to an NAT client, and reference numeral 120 refers to a non-NAT client. The NAT client 110 and the non-NAT client 120 may be wirelessly connected to the gateway device 130 through the 802.11 protocol, etc., or may be wired to the gateway device 130 through a cable, etc. Examples of the present disclosure do not have any restrictions on the connection method between the client and the gateway device 130.
[0023] The remote router device 140 is a next hop device of the gateway device 130. It can forward data between different gateway devices and also help aLAN side client communicate with the external network 150. For example, the remote router device 140 may be a CMTS, and the gateway device 130 may be a modem (CM). The remote router device 140 may manage and control one or more gateway devices 130. The gateway device 130 may have the exemplary configuration shown in Fig. 2.
[0024] Although a device connected to a client to access a network is referred to as a gateway device herein, the gateway device may be, for example, a hardware electronic device capable of combining functions of a modem, an access point and / or a router. The present disclosure further proposes that the gateway device may include but is not limited to, functions of a smart media device (SMD) or an IP / QAM set top box (STB) that is capable of decoding audio / video contents and playback contents provided by over-the-top (OTT) providers or multi-system operators (MSO).
[0025] As shown in Fig. 2, the gateway device 130 includes a user interface 20, a network interface 21, a power supply 22, a wide area network (WAN) interface 23, a memory 24, and a controller 26. The user interface 20 may include but is not limited to push buttons, keyboards, keypads, liquid-crystal display (LCD) devices, cathode-ray tube (CRT) devices, thin-film transistor (TFT) devices, light-emitting diode (LED) devices, high-definition (HD) devices or other similar display devices, including display devices with touch screen capability, to allow interaction between the user and gateway device 130. The network interface 21 may include various types of network interface cards and circuits realized by software and / or hardware such that it is capable of communicating with a wireless extender device and a client device using one or a plurality of wireless protocols. The wireless protocols are, for example, any Institute of Electrical and Electronics Engineers (IEEE( 802.11 Wi-Fi protocol, Bluetooth protocol, Bluetooth Low Energy (BLE) or othershort-range protocols operated in accordance with wireless technology standards to use any licensed or unlicensed frequency band, radio frequency for consumer electronics (RF4CE) protocol, ZigBee protocol, Z-Wave protocol, or IEEE 802.15.4 protocol to exchange data over a short distance. The licensed or unlicensed frequency band may be, for example, a Citizens Broadband Radio Service (CBRS) frequency band, 2.4 GHz frequency band, 5 GHz frequency band, or 6 GHz frequency band.
[0026] The power supply 22 supplies power to internal components of the gateway device 130 via an internal bus 27. The power supply 22 may be a self-contained power source such as a battery pack, and it has an interface which is powered by (for example, directly or through other devices) an electrical charger connected to a socket. The power supply 22 may further include a removable rechargeable battery that allows for replacement, such as a nickel cadmium (NiCd), nickel metal hydride (NiMH), lithium (Li) ion or Li polymer battery. When the gateway device 130 is a modem or another gateway device, it may include the WAN interface 23, which may include various network interface cards and circuits realized by software and / or hardware so as to realize the communication between a router device and an Internet service provider or a MSO.
[0027] The memory 24 includes a single memory or one or a plurality of memories or memory locations, including but not limited to a random access memory (RAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a field programmable gate array (FPGA) logic block, a hard disk, or any other layers of a memory hierarchy. The memory 24 may be used to store any type ofinstructions, software or algorithms, including software 25 for controlling general functions and operations of the gateway device 130.
[0028] The controller 26 controls the general operations of the gateway device 130 and executes administrative functions related to other devices in the network (for example, extenders and client devices). The controller 26 may include, but is not limited to, a central processing unit (CPU), a hardware microprocessor, a hardware processor, a multi-core processor, a single-core processor, a microcontroller, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), or other similar processing devices, which are capable of executing any type of instructions, algorithms, or software for controlling the operations and functions of the gateway device 130 according to the examples described in the present disclosure. The controller 26, such as a processor, may include various realizations of a digital circuit, an analog circuit, or a mixed signal (combination of analog and digital) circuit that executes functions in a computing system. The controller 26 may include, for example, a circuit, such as an integrated circuit (IC), a portion or circuit of a separate core, an entire core, a separate processor, a programmable hardware device such as a FPGA, and / or a system including a plurality of processors.
[0029] The internal bus 27 may be used to establish communication between the components of the gateway device 130 (for example, 20-22, 24, and 26).
[0030] Returning to Fig. 1, the NAT client 110 may generally include a smart phone, a tablet computer, a laptop computer, a desktop computer, an internet-enabled smart appliance, etc. The NAT client has a private address that is valid on the LAN. When the NAT client 110 needs to communicate with the external network 150, the gateway device 130 performs network address translation for a data packet sent from the NAT client 110, translates the private address of the NAT client 1 10 as the source address to the publicaddress of the gateway device 130, while also performs network address translation for a data packet to the NAT client 110, translates the public address of the gateway device 130 as the destination address to the private address of the NAT client 110. Whether it is IPv4 or IPv6, the NAT client can obtain the private address through the gateway device 130 and communicate with the external network 150 including the IPv4 network and IPv6 network under network address translation of the gateway device 130.
[0031] The non-NAT client 120 may generally include a set-top box, a server, a computer device that needs to communicate frequently with the outside world, etc. The non-NAT client 120 has a globally unique public address. For the non-NAT client 120, the gateway device 130 acts as a layer 2 switch, which is equivalent to a MAC bridge. It forwards only a data packet transmitted between the non-NAT client 120 and the remote router device 140 / the external network 150 without performing any network address translation. In this case, the non-NAT client may also be referred to as a MAC bridge client.
[0032] The non-NAT client 120 can obtain an IPv4 public address through an existing IPv4 address allocation mechanism, thereby communicating with an external IPv4 network. However, because IPv6 lacks a broadcast mechanism, the non-NAT client 120 cannot obtain an IPv6 public address. The reason is that when the gateway device 130 enables IPv6, it automatically generates its link local address on the LAN side and assigns the client an IPv6 private address by sending its own generated RA message (which can also be a local RA message in this specification) to the client connected to it. In order to avoid client confusion caused by the conflict between the local RA message and an RA message received by the gateway device 130 from its WAN side for configuring the IPv6 public address for the non-NAT client, the gatewaydevice 130 will discard the RA message received from its WAN side. In this way, the non-NAT client 120 cannot obtain any RA message that can configure its IPv6 public address, and thus cannot configure the IPv6 public address.
[0033] In order to enable the non-NAT client 120 to configure the IPv6 public address to communicate with an external IPv6 network, an example of the present disclosure provides a method 300 for configuring an IPv6 address, as shown in Fig. 3. The method 300 may be executed by the gateway device to provide an IPv6 public address for the non-NAT client who originally cannot otherwise obtain the IPv6 public address, thereby enhancing network connectivity of the client and improving network performance. In the description of Fig. 3, the example of the network architecture in Fig. 1 will be referenced to help those of ordinary skill in the art better understand the content of the example of the present disclosure.
[0034] The gateway device executing the method 300 can connect to both an NAT client and a non-NAT client. During the execution of the method 300, both the NAT client and the non-NAT client are connected to the gateway device. As mentioned above, the gateway device can enable the NAT client to communicate with an external network through network address translation, and the gateway device does not need to provide network address translation for the non-NAT client to communicate with the external network. For example, communication between the NAT client 110 and the external network 150 requires the gateway device 130 to perform network address translation, where the gateway device 130 acts as a router and is the next hop node of the NAT client 110. Communication between the non-NAT client 120 and the external network 150 does not require the network address translation operation of the gateway device 130, where the gateway device 130 forwardsthe data packet and acts as a layer 2 switch. The next hop node of the non-NAT client 120 is the remote router device 140. Because the gateway device 130 is currently discarding the RA message received from the WAN side to avoid conflicts with the local RA message, the non-NAT client 120 cannot configure the correct IPv6 address. According to the examples of the present disclosure, through the execution of S310 and S320, the non-NAT client 120 can configure the correct IPv6 address under the gateway device 130.
[0035] In S310, the gateway device determines whether the source address of the RA message is the same as the link local address on the LAN side of the gateway device.
[0036] In particular, the gateway device 130 may receive the RA message generated by and from the remote router device 140 (e.g., a CMTS). Such RA message may also be referred to hereinafter as a remote RA message. The remote RA message can be used to configure the non-NAT client 120 with the correct IPv6 public address. As described above, the gateway device 130 may also generate an RA message (i.e., a local RA message) on its own to configure the correct private IPv6 address for the NAT client connected on the LAN side.
[0037] In order to distinguish the remote RA message from the local RA message to send the correct RA message to the non-NAT client, the example of the present disclosure uses the source address of the RA message. Specifically, when IPv6 is enabled by the gateway device 130, a link local address is automatically generated on the LAN side. Certainly, this link local address may also be manually configured or otherwise statically configured by a technician of a service operator. The link local address on the LAN side will be used as the source address in the RA message generated by the gateway device 130 itself, and the gateway device 130 knows the link local address onthe LAN side. If the gateway device 130 determines that a source address of an RA message is different from the link local address on its LAN side, the gateway device 130 may determine that the RA message is a remote RA message used to configure the IPv6 address of the non-NAT client 120.
[0038] In S320, in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, the gateway device sends the RA message to the non-NAT client to cause the non-NAT client to configure its IPv6 address according to the RA message.
[0039] Specifically, because the source address of the RA message is different from the link local address on the LAN side of the gateway device 130, the gateway device 130 determines that the RA message is a remote RA message, and then sends it to the non-NAT client 120 to enable the non-NAT client 120 to configure its IPv6 address according to the RA message. For example, the non-NAT client 120 may automatically generate the IPv6 address of the non-NAT client 120 according to a network address prefix carried by the RA message and a MAC address of the non-NAT client 120. For another example, the non-NAT client 120 may obtain the IPv6 address of the remote router device 140 according to the RA message, thereby requesting a DHCP server to assign the IPv6 address to it through the dynamic host configuration protocol version 6 (DHCPv6) process.
[0040] According to the technical solution of the method 300, by means of comparison between the source address of the RA message and the link local address on the LAN side of the gateway device, the RA message can be sent to the non-NAT client when the two are different, so that the non-NAT client who originally cannot configure the IPv6 address can correctly configure the IPv6 address. Therefore, the non-NAT client connected to the gateway devicetogether with the NAT client can operate under IPv6, thereby being able to communicate with the IPv6 network, thereby enhancing network connectivity and improving communication performance.
[0041] Fig. 4 is a flowchart of a method 400 for configuring an IPv6 address according to an example of the present disclosure. Similar to the method 300, the method 400 is also executed by a gateway device, and during the execution of the method 400, both an NAT client and a non-NAT client are connected to the gateway device. Through the execution of the method 400, the NAT client can obtain a default route to the gateway device, and the non-NAT client can obtain a default route to a remote router device, thereby obtaining their respective correct IPv6 addresses.
[0042] In S405, the gateway device receives an RA message periodically sent by the remote router device connected to the gateway device.
[0043] Specifically, the remote router device 140 may periodically multicast an RA message carrying its link local address, and the gateway device 130 may receive the RA message. S405 may be executed periodically by the gateway device 130, and it is not necessarily related to the execution of other steps of the method 400.
[0044] In S410, the gateway device determines whether a source address of the RA message is the same as a link local address on a LAN side of the gateway device. This step is basically the same as S310. The RA message herein may be a remote RA message generated by the remote router device and periodically multicast, or it may be a local RA message generated by the gateway device.
[0045] In S420, in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, the gateway device sends the RA message to the non-NATclient to cause the non-NAT client to configure its IPv6 address according to the RA message. This step is basically the same as S320.
[0046] According to the example of the present disclosure, in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, the gateway device may send the RA message only to the non-NAT client.
[0047] Specifically, when the source address of the RA message is not the link local address on the LAN side of the gateway device 130, the gateway device 130 determines that the RA message is a remote RA message used to configure the IPv6 address of the non-NAT client 120, and then sends the RA message only to the non-NAT client 120 through a port connected to the non-NAT client 120. This enables the non-NAT client 120 to determine the default route to the remote router device 140, and to properly configure its IPv6 public address according to the RA message. Furthermore, because this RA message is sent only to the non-NAT client 120 and not to the NAT client 110, the NAT client 110 will not receive the RA message it does not need. This avoids confusion between different kinds of RA messages, simplifying the operation of the NAT client.
[0048] In S430, in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, the gateway device sends the RA message to the NAT client to cause the NAT client to configure its IPv6 address according to the RA message.
[0049] If the source address of the RA message is the link local address on the LAN side of the gateway device, it indicates that the RA message is a local RA message generated by the gateway device, which can be used to configure the IPv6 private address of the NAT client in a subnet of the gateway device. Therefore, the gateway device can send the local RA message to the NATclient to configure the IPv6 address of the NAT client.
[0050] According to the example of the present disclosure, in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, the gateway device may send the RA message only to the NAT client.
[0051] Specifically, when the gateway device 130 determines that the RA message is a local RA message for configuring the IPv6 address of the NAT client 110, the gateway device 130 sends the RA message only to the NAT client 110 through the port connected to the NAT client 110. This enables the NAT client 110 to determine the default route to the gateway device 130, and can correctly configure its IPv6 private address according to the RA message. Furthermore, because this RA message is only sent to the NAT client 110 and not to the non-NAT client 120, the non-NAT client 120 will not receive the RA message it does not need. This avoids confusion between different kinds of RA messages, simplifying the operation of the non-NAT client.
[0052] Through the execution of the method 400, according to the comparison result of the addresses, the RA message for configuring the non-NAT client is only sent to the non-NAT client, and the RA message for configuring the NAT client is only sent to the NAT client. This not only avoids confusion between different kinds of RA messages, thereby simplifying the operation of the non-NAT client and the NAT client, but also facilitates the correct establishment of the default route and the correct configuration of the IPv6 address.
[0053] In addition, there are a variety of internet control message protocol version 6 (ICMPv6) messages for different purposes in IPv6, such as router solicitation (RS) messages, neighbor solicitation (NS) messages, neighbor announcement (NA) messages, etc., which can be sent as multicast messageswith a destination address including a predetermined prefix. According to the example of the present disclosure, when the gateway device is connected to both the NAT client and the non-NAT client, the gateway device does not need to discard such ICMPv6 messages as currently, but can forward the multicast messages with a destination address including the predetermined prefix between the remote router device and the non-NAT client. In this way, the network can be enabled to transmit more information, thereby implementing more network functions.
[0054] The gateway device 130 may have an example functional architecture as shown in Fig. 5 to send different kinds of RA messages to the corresponding NAT client 110 and non-NAT client 120. The example functional architecture shown in Fig. 5 may also be considered as a data stream path, which may be embodied in, for example, a DOCSIS home gateway implemented based on a Linux system.
[0055] As shown in Fig. 5, the gateway device 130 includes a DOCSIS bridge 510, a Linux bridge 520, and a plurality of ports WlanO, Wlanl, Sw_l, Sw_2, Sw_3, and Sw_4 corresponding to the non-NAT client and the NAT client.
[0056] The DOCSIS bridge 510 is connected to a cable on the WAN side and can be connected to the CMTS through the cable. The DOCSIS bridge 510 can receive an RA message generated by the CMTS (remote RA message) through the cable, and can also obtain an RA message generated by the gateway device itself (local RA message).
[0057] In the downlink direction, the RA message is sent to the Linux bridge 520. Based on the comparison between the source address of the RA message and the link local address (or the link local address corresponding to a router interface) on the LAN side of the gateway device by the Linux bridge 520, it can be determined whether the RA message needs to be sent through a routerinterface or through a bridge interface. If the two are different, the Linux bridge 520 sends, through the bridge interface, the RA message to the port connected by the non-NAT client, otherwise the Linux bridge 520 sends, through the router interface, the RA message to the port connected to the NAT client. The router interface is responsible for network address translation (NAT) and routing functions of the NAT client, and the bridge interface is responsible for data forwarding of the non-NAT client. Communication between the NAT client and the device or network on the WAN side of the gateway device can be achieved via the router path between the router interface and the DOCSIS bridge 510. Communication between the non-NAT client and the device or network on the WAN side of the gateway device can be achieved via the bridge path between the bridge interface and the DOCSIS bridge 510.
[0058] In the uplink direction, a data packet from the NAT client is sent to the DOCSIS bridge 510 through the router interface via the processing by the Linux bridge 520 to be output from the gateway device via the cable. A data packet from the non-NAT client is sent to the DOCSIS bridge 510 through the bridge interface via the processing by the Linux bridge to be output from the gateway device via the cable.
[0059] Next, the operation of the gateway device is described in a specific example. In this example, the gateway device is a home gateway and the remote router device is a CMTS.
[0060] When the home gateway supports the MAC bridge function, the NAT client and the non-NAT client can connect to the home gateway together. The home gateway can provide routing operations based on network address translation for the NAT client and data packet forwarding operations for the non-NAT client. In order for the DOCSIS bridge 510 of the home gateway tobe able to forward the RA message from the CMTS received via the cable (which may also be referred to as a CMTS RA message hereinafter) to the Linux bridge 520 for processing without discarding, existing ebtables rules may be modified. For example, a new rule can be added as follows: ebtables -I FORWARD -i natptO -d 33:33:00:00:00:00 / ff:ff:00:00:00:00 -j ACCEPT
[0061] The rule indicates that a data packet with a destination address of 33:33:00:00:00:00 / ff:ff:00:00:00:00 input from the interface natptO corresponding to the WAN port is accepted.
[0062] By using “ff:ff:OO:OO:OO:OO” as a mask, all addresses prefixed with "33-33" can be obtained. All MAC-48 multicast identifiers prefixed with “33-33” are used for IPv6 multicast. In this way, there are a total of 32 power of 2 multicast MAC identifiers, ranging from 33-33-00-00-00-00 to 33-33-FF-FF-FF-FF-FF.
[0063] As described above, the non-NAT client may also send an IPv6 multicast message to the CMTS. Therefore, for example, a new rule such as the following may also be added to the existing ebtables rules: ebtables -I FORWARD -o natptO -d 33:33 :OO:OO:OO:OO / ff:ff:OO:OO:OO:OO -j ACCEPT
[0064] The rule indicates that a data packet with a destination address of 33:33:00:00:00:00 / ff:ff:00:00:00:00 to be output from the interface natptO corresponding to the WAN port is accepted.
[0065] When connecting the non-NAT client to the home gateway, the home gateway can know that the client is a non-NAT client (i.e., a MAC bridge client) via manual configuration or interaction between the non-NAT client and the home gateway, and can know its MAC address and the connected port. For example, the non-NAT client is connected to an Ethernet port 1 . When aLinux bridge receives an RA message, it obtains the source address for the message and checks if the source address is the same as the link local address for the router interface. If the two are different, the Linux bridge will determine that the RA message is a CMTS RA message, and then forward the RA message to the Ethernet port 1. Otherwise, the Linux bridge will determine that the RA message is a local RA message, and then forward the RA message to all LAN ports except the Ethernet port 1 .
[0066] For example, the link local address of the router interface is fe80::faf5:32ff:fe45: 1237, and the MAC bridge client (i.e., the non-NAT client) is connected to the Ethernet port 1 of the home gateway. When the Linux network bridge receives an RA message with the source address fe80::201 :5cff:fea9:644d, it can be determined that this is a CMTS RA message, so it takes the action of forwarding the RA message to the Ethernet port 1 . When the Linux network bridge receives an RA message with a source address fe80: :faf5:32ff:fe45: 1237, it can be determined that this is a local RA message, so it takes the action of forwarding the message to all LAN ports except the Ethernet port 1.
[0067] In this way, the MAC bridge client may receive an RA message from the CMTS, while the NAT client will normally receive a local RA message from the router interface. This allows different types of clients to obtain different default IPv6 routes and does not cause confusion between different RA messages. The client may then obtain an IPv6 address via DHCPv6 processing.
[0068] Through the above processing, a MAC bridge client that originally is unable to obtain the IPv6 address can successfully obtain the correct IPv6 address, thereby communicating with the external IPv6 network, which enhances the network connectivity of the subnet of the home gateway andimproves communication performance of the subnet of the home gateway.
[0069] The present disclosure may be realized as any combination of devices, systems, integrated circuits, and computer programs on non-transitory computer-readable media. One or a plurality of processors can be realized as an integrated circuit (IC), an application specific integrated circuit (ASIC) or a large-scale integrated circuit (LSI), a system LSI, or a super LSI or super LSI component that performs part or all of the functions described in the present disclosure.
[0070] The present disclosure includes the use of software, applications, computer programs, or algorithms. Software, application programs, computer programs or algorithms may be stored on a non-transitory computer-readable medium, so that a computer with one or a plurality of processors may execute the aforementioned steps and the steps described in the attached drawings. For example, one or more memories store software or algorithms as executable instructions, and one or more processors may associate a set of instructions that execute the software or algorithms to enable the non-NAT client connected to the gateway device together with the NAT client according to the examples described in the present disclosure to operate under IPv6, which enhances network connectivity and improves communication performance.
[0071] Software and computer programs (also called programs, software applications, applications, components, or codes) include machine instructions for programmable processors, and may be realized in high-level procedural languages, object-oriented programming languages, functional programming languages, logic programming languages, or assembly languages or machine languages. The term “computer-readable medium” refers to any computer application product, apparatus or device used to provide machine instructions or data to the programmable data processor, e.g.,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.
[0072] For example, the computer-readable medium may include the 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 may be used to carry or store the required computer-readable program codes in the form of instructions or data structures and may be accessed by a general or special computer or a general or special processor. As used herein, magnetic disks or disks include Compact Discs (CDs), laser disks, optical disks, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray disks, in which magnetic disks usually copy data magnetically, and disks copy data optically via laser. Combinations of the above are also included in the scope of computer-readable media.
[0073] In one or a plurality of examples, the use of the words “may”, “able”, “operable as” or “configured as” refers to some devices, logics, hardware and / or elements designed to be used in a specified manner. The subject matter of the present disclosure is provided as an example of the device, system, method, and program for executing the features described in the present disclosure. However, in addition to the aforementioned features, other features or modifications may be expected. It may be expected that any emerging technology that may replace any of the aforementioned realization technologies may be used to complete the realization of the components and functions of the present disclosure.
[0074] In addition, the above description provides examples without limitingthe scope, applicability, or configuration set forth in the Claim s. Without departing from the spirit and scope of the present disclosure, changes may be made to the functions and layouts of the discussed elements. Various examples may omit, substitute, or add various processes or components as appropriate. For example, features described with respect to some examples may be combined in other embodiments.
[0075] Similarly, although operations are depicted in a specific order in the attached drawings, this should not be understood as a requirement that such operations should be executed in the specific order shown or in the sequential order, or that all illustrated operations be executed to achieve the desired result.In some cases, multi-tasking and parallel processing may be advantageous.
Claims
CLAIMS1. A gateway device, comprising: a memory, in which instructions are stored; and a processor, configured to execute the instructions stored in the memory such that the gateway device executes the following operations: determining whether a source address of a router advertisement (RA) message is the same as a link local address on a local area network (LAN) side of the gateway device, wherein both a network address translation (NAT) client and a non-NAT client are connected to the gateway device, wherein the gateway device enables the NAT client to communicate with an external network through network address translation, and wherein the gateway device does not provide network address translation for the non-NAT client to communicate with the external network; and in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, sending the RA message to the non-NAT client to cause the non-NAT client to configure its IPv6 address according to the RA message.
2. The gateway device according to Claim 1, wherein the processor is further configured to: send the RA message only to the non-NAT client.
3. The gateway device according to Claim 1, wherein the processor is further configured to: receive an RA message periodically sent by a remote router device connected to the gateway device.
4. The gateway device according to Claim 3, wherein the processor is further configured to: forward a multicast message whose destination address comprises a predetermined prefix between the remote router device and the non-NAT client.
5. The gateway device according to Claim 3, wherein the remote router device is a cable modem terminal system (CMTS).
6. The gateway device according to Claim 1, wherein the processor is further configured to: in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, send the RA message to the NAT client to cause the NAT client to configure its IPv6 address according to the RA message.
7. The gateway device according to Claim 6, wherein the processor is further configured to: send the RA message only to the NAT client; wherein the RA message is generated by the gateway device.
8. A method for configuring an IPv6 address, comprising: determining, by a gateway device, whether a source address of a router advertisement (RA) message is the same as a link local address on a local area network (LAN) side of the gateway device, wherein both a network address translation (NAT) client and a non-NAT client are connected to the gatewaydevice, wherein the gateway device enables the NAT client to communicate with an external network through network address translation, and wherein the gateway device does not provide network address translation for the non-NAT client to communicate with the external network; and in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, sending, by the gateway device, the RA message to the non-NAT client to cause the non-NAT client to configure its IPv6 address according to the RA message.
9. The method according to Claim 8, wherein the sending, by the gateway device, the RA message to the non-NAT client further comprises: sending, by the gateway device, the RA message only to the non-NAT client.
10. The method according to Claim 8, further comprising: receiving, by the gateway device, an RA message periodically sent by a remote router device connected to the gateway device.
11. The method according to Claim 10, further comprising: forwarding, by the gateway device, a multicast message whose destination address comprises a predetermined prefix between the remote router device and the non-NAT client.
12. The method according to Claim 10, wherein the remote router device is a cable modem terminal system (CMTS).
13. The method according to Claim 8, further comprising:in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, sending, by the gateway device, the RA message to the NAT client to cause the NAT client to configure its IPv6 address according to the RA message.
14. The method according to Claim 13, wherein the sending, by the gateway device, the RA message to the NAT client comprises: sending, by the gateway device, the RA message only to the NAT client; wherein the RA message is generated by the gateway device.
15. A non-transitory computer-readable medium having instructions stored therein, when executed by a processor, the instructions causing the processor to execute operations comprising the following: determining whether a source address of a router advertisement (RA) message is the same as a link local address on a local area network (LAN) side of a gateway device, wherein both a network address translation (NAT) client and a non-NAT client are connected to the gateway device, wherein the gateway device enables the NAT client to communicate with an external network through network address translation, and wherein the gateway device does not provide network address translation for the non-NAT client to communicate with the external network; and in response to determining that the source address of the RA message is different from the link local address on the LAN side of the gateway device, sending the RA message to the non-NAT client to cause the non-NAT client to configure its IPv6 address according to the RA message.
16. The non-transitory computer-readable medium according to Claim15, wherein, when executed by the processor, the instructions cause the processor to further execute operations comprising the following: sending the RA message only to the non-NAT client.
17. The non-transitory computer-readable medium according to Claim 15, wherein, when executed by the processor, the instructions cause the processor to further execute operations comprising the following: receive an RA message periodically sent by a remote router device connected to the gateway device.
18. The non-transitory computer-readable medium according to Claim 15, wherein, when executed by the processor, the instructions cause the processor to further execute operations comprising the following: in response to determining that the source address of the RA message is the same as the link local address on the LAN side of the gateway device, send the RA message to the NAT client to cause the NAT client to configure its IPv6 address according to the RA message.
19. The non-transitory computer-readable medium according to Claim 18, wherein, when executed by the processor, the instructions cause the processor to further execute operations comprising the following: sending the RA message only to the NAT client; wherein the RA message is generated by the gateway device.
20. A computer program product, comprising computer instructions, wherein, when executed by a processor, the computer instructions realize the method according to any one of Claims 8 to 14.
Citation Information
Patent Citations
Method and system for address server redirection for multiple address networks
US6768743B1
