IPv6 network communication method, device, and system
By changing the source IP address and generating connection tracking information, the communication device enables secure and uninterrupted access to IPv6 network services by bypassing network security settings that would otherwise discard valid downlink packets.
Patent Information
- Application Number
- JP2022579034
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-22
- Filing Date
- 2021-06-03
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-06-03
Smart Images

Figure 0007572013000002 
Figure 0007572013000003 
Figure 0007572013000004
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD Embodiments of the present application relate to the communications field, and in particular to an IPv6 network communications method, apparatus and system. [Background technology]
[0002] A network device operating in an internet protocol version 6 (IPv6) full tunnel may receive IPv6 prefixes that are configured separately by multiple data networks for the network device. The terminal may generate an internet protocol (IP) address for the terminal, which may include one of the IPv6 prefixes received by the network device.
[0003] When the IP address of the terminal does not include the IPv6 prefix configured by the data network for the network device, in order to ensure that the terminal can access the data network to implement a certain service, the source IP address and / or destination IP address of the data packet generated when the terminal interacts with the data network usually needs to be modified by the network device. Furthermore, in order to prevent the downlink data packets belonging to the service connection initiated by the terminal from being terminated / discarded by the network security setting enabled by the network device, the network security setting needs to be disabled. However, this may cause hidden network security problems. Summary of the Invention
[0004] The embodiments of the present application provide an IPv6 network communication method, apparatus and system. Even if the IP address of a terminal does not include the IPv6 prefix configured by a data network to a network device, the network security setting enabled by the network device can identify the downlink data packets belonging to the service connection initiated by the terminal, and ensure that the terminal can access the data network to implement a specific service without blocking the service connection initiated by the terminal to the data network.
[0005] According to a first aspect, an IPv6 network communication method is provided. The method may be performed by a communication device. The communication device may be a network device, or may be a chip or a system-on-chip disposed in the network device. The method includes the communication device first receiving an uplink data packet transmitted by a terminal to a first data network, the uplink data packet being used to request to establish a service connection. Then, the communication device modifies a source IP address of the uplink data packet to a first IP address and transmits the modified uplink data packet to the first data network, the first IP address including an IPv6 prefix configured by the first data network for the network device. Moreover, the communication device may further generate connection tracking information of the service connection, the connection tracking information indicating that a destination IP address of a downlink data packet from the first data network belonging to the service connection is the first IP address.
[0006] In this way, for a downlink data packet from a data network belonging to a service connection, even if the network device enables the network security setting, the network security setting can identify the downlink data packet as a downlink data packet belonging to the service connection according to the indication of the connection tracking information included in the service connection, that is, the downlink data packet belonging to the service connection is determined by the network security setting as a data packet belonging to the service connection initiated by the terminal. It is ensured that the downlink data packet is not terminated / discarded by the network security setting, and the terminal can access the data network by using the network device to implement the corresponding service.
[0007] In other words, even if the IP address of the terminal does not include the IPv6 prefix configured by the data network to the network device, the security settings enabled by the network device can identify downlink data packets belonging to a service connection initiated by the terminal, and ensure that the terminal can access the data network to implement a specific service without blocking the service connection initiated by the terminal to the data network.
[0008] According to a second aspect, there is provided a communication device, the communication device comprising units or means configured to perform the steps of the first aspect above.
[0009] According to a third aspect, there is provided a communications device, comprising a processor and an interface circuit, the processor configured to communicate with other devices by using the interface circuit and to perform the method provided in the first aspect.
[0010] According to a fourth aspect, there is provided a communications device, comprising a processor, connected to a memory and configured to invoke a program stored in the memory to perform the method provided in the first aspect, the memory may be located within or external to the communications device.
[0011] According to a fifth aspect, there is provided a network device including a communication apparatus provided in any one of the above aspects.
[0012] According to a sixth aspect, there is provided a network system including a terminal, a first data network, and a communication apparatus / network device provided in any one of the above aspects. In some possible designs, the network system may further include a second data network, and the IP address of the terminal includes an IPv6 prefix configured by the second data network for the network device.
[0013] According to a seventh aspect, there is provided a computer-readable storage medium configured to store instructions, which when executed by a processor of a communications device enable the communications device to implement the method provided in the first aspect.
[0014] According to an eighth aspect there is provided a computer program, the computer program being configured, when executed by a processor, to perform the method provided in the first aspect above.
[0015] According to a ninth aspect, there is provided a computer program product. The computer program product may include a computer readable storage medium as provided in the seventh aspect, the computer readable storage medium including a computer program as provided in the eighth aspect.
[0016] According to a tenth aspect, there is provided a chip including a processor configured to implement the functionality of the communication device provided in the above aspect, e.g. receiving or processing data and / or information in the method of the first aspect above. In a possible design, the chip further includes a memory configured to store program instructions and / or data.
[0017] In the above aspects, the processor may be implemented using hardware or may be implemented using software. When the processor is implemented using hardware, the processor may be a logic circuit, an integrated circuit, etc. When the processor is implemented using software, the processor may be a general-purpose processor and is implemented by reading software code stored in a memory. The memory may be integrated into the processor or may exist independently located outside the processor.
[0018] In the above aspect, there may be one or more processors and one or more memories in the communication device. The memory may be integrated with the processor, or the memory may be located separately from the processor. In a specific implementation process, the memory and the processor may be integrated on the same chip, or may be located separately on different chips. The type of memory and the configuration of the memory and the processor are not limited in this embodiment of the present application.
[0019] In the above aspect, the information transmitting or receiving process may be a process in which the processor receives and transmits information. For example, the process of transmitting an uplink data packet may be outputting an uplink data packet from the processor. The process of receiving an uplink data packet may be receiving an uplink data packet by the processor. Specifically, the uplink data packet outputted by the processor may be outputted to a transmitter, and the uplink data packet received by the processor may be from a receiver. The transmitter and the receiver may be collectively referred to as a transceiver.
[0020] In the above aspect, the source IP address of the uplink data packet from the terminal may be a second IP address, and the second IP address includes a second IPv6 prefix configured by a second data network for the network device. Correspondingly, the communication device may perform IPv6-to-IPv6 Network Prefix Translation (IPTv6) on the second IP address based on the first IPv6 prefix to obtain the first IP address. In this way, after the source IP address of the uplink data packet from the terminal is changed to the first IP address, the application layer checksum of the changed uplink data packet is the same as that of the uplink data packet before the change, and the application layer checksum of the changed uplink data packet does not need to be recalculated.
[0021] In the above aspect, the communication device may further receive downlink data packets from the first data network belonging to the service connection, modify a destination IP address of the downlink data packets to a source IP address of an uplink data packet from the terminal, and then send the modified downlink data packets to the terminal. In this way, a service connection is established between the terminal and the data network. Possibleand a particular service can be implemented based on the service connection.
[0022] In the above aspect, when receiving a downlink data packet from the first data network belonging to the service connection, the communication device may further set a connection status of the connection tracking information to indication information indicating that the connection is successful.
[0023] In the above aspect, the first data network may include, but is not limited to, an internet protocol television (IPTV) network or a cloud virtual reality (Cloud VR) network.
[0024] In the above aspect, the second data network may include, but is not limited to, the Internet. [Brief description of the drawings]
[0025] [Figure 1] FIG. 2 is a schematic diagram of a service scenario in which the technical solution is applicable according to an embodiment of the present application; [Diagram 2] 1 is a schematic diagram of the structure of an IP address including an IPv6 prefix. [Diagram 3] 2 is a flowchart of a communication method according to an embodiment of the present application. [Figure 4] 2 is a schematic diagram of a process in which a terminal communicates with a data network according to an embodiment of the present application; [Diagram 5] 1 is a schematic diagram of a structure of a communication device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] The following describes the technical solutions of the embodiments of the present application with reference to the accompanying drawings.
[0027] 1 is a schematic diagram of a service scenario in which the technical solution is applicable according to an embodiment of the present application. As shown in FIG. 1, a service set identifier (SSID) may be assigned to a network device 10, and the network device 10 may be configured with multiple Ethernet interfaces, such as ETH0, ETH1, and ETH2, and multiple wide area network interfaces, such as WAN0, WAN1, and WAN2. It may be understood that the structure of the network device 10 in FIG. 1 is not to be construed as a limitation on a specific structure of the network device. The network device 10 may be configured with more or fewer Ethernet interfaces and more or fewer wide area network interfaces. The identifiers of each Ethernet interface and each wide area network interface may be replaced with real numbers.
[0028] Network device 10 may be connected to one or more data networks used to support a particular service. For example, network device 10 may be separately connected to data networks used to support a particular service, such as the Internet, an IPTV network, and a Cloud VR network, through multiple different wide area network interfaces. Different data networks may configure different IPv6 prefixes for network device 10, and the prefixes may be specifically configured by an upper layer server, a network management device, or other device in the data network.
[0029] Data network is a network device 10Based on the IPv6 prefix configured by the data network for the downlink data packet, the data network may maintain a route from the data network to the network device 10. Correspondingly, for a downlink data packet to be transmitted to a terminal connected to the network device 10, only if the destination IP address of the downlink data packet includes the IPv6 prefix, the data network may transmit the downlink data packet to the network device 10 based on the route corresponding to the IPv6 prefix.
[0030] A terminal configured with a wireless communication module may be connected to the network device 10 based on the SSID assigned to the network device 10. For example, a mobile phone or a virtual reality (VR) device may be connected to the network device 10 based on the SSID assigned to the network device 10. A terminal configured with an interface device for connecting to a communication cable may be connected to the Ethernet interface of the network device 10 by using a corresponding communication cable. For example, a personal computer (PC) or a set top box (STB) may be connected to the Ethernet interface of the network device 10 by using a corresponding communication cable. It can be understood that the above various terminals may be directly connected to the network device 10 or may be connected to an access point (AP). The AP may be connected to the network device 10 based on the SSID assigned to the network device 10 or may be connected to the Ethernet interface of the network device 10 by using a corresponding communication cable. The terminal connected to the network device 10 may be of other types, for example, an augmented reality (AR) device.
[0031] The terminal may generate an IP address for the terminal based on one of the IPv6 prefixes configured for the network device 10. As shown in FIG. 2, the IP address generated by the terminal may include a network portion and an interface portion. The interface portion may include an interface identifier having a length of 64 bits, generated by the terminal based on the MAC address of the terminal. The network portion may include one of the IPv6 prefixes configured for the network device 10, and may optionally further include a subnet identifier having a length of 16 bits. For example, the network portion may include a subnet identifier having a length of 16 bits and an IPv6 prefix having a length of 48 bits.
[0032] It may be understood that the network device 10 may track a service connection to generate connection tracking information (or referred to as connection tracking entries) for the service connection. The connection tracking information may include uplink connection information and downlink connection information, and may further include other information such as protocol type and protocol number. The uplink connection information may include at least source and destination IP addresses of uplink data packets from terminals belonging to the service connection. The downlink connection information may include at least source and destination IP addresses of downlink data packets belonging to the service connection that are expected to be received by the network device 10.
[0033] In addition, based on the protocol type of the service connection, the uplink connection information and the downlink connection information may further include one or more other information. For example, for the connection tracking information of a transmission control protocol (TCP) connection, the uplink connection information of the connection tracking information may further include a source port number and a destination port number of the uplink data packet belonging to the TCP connection, and the downlink connection information of the connection tracking information may further include a source port number and a destination port number of the uplink data packet belonging to the TCP connection. informationmay further include the source and destination port numbers of downlink data packets expected to be received by the network device 10 and belonging to the service connection.
[0034] The network device 10 may enable a network security setting, which may include, but is not limited to, a firewall or an application layer gateway (ALG). For a downlink data packet from a data network, the network security setting may determine whether the downlink data packet belongs to a service connection initiated by a terminal based on the connection tracking information generated by the network device 10. For example, the connection information of the downlink data packet from the data network may be obtained, which may include, but is not limited to, a source IP address and a destination IP address of the downlink data packet. Then, the connection information of the downlink data packet may be obtained based on each downlink connection in the connection tracking information generated by the network device. information If the downlink connection information of one connection tracking information is the same as the connection information of the downlink data packet, it indicates that the downlink data packet belongs to the service connection corresponding to this connection tracking information, and accordingly, it can be determined that the downlink data packet belongs to the service connection initiated by the terminal.
[0035] If it is determined that the downlink data packet belongs to a service connection initiated by the terminal, the downlink data packet is forwarded to the corresponding terminal by the network device 10. On the contrary, the downlink data packet is terminated / discarded by the network security setting, so that the downlink data packet is not forwarded to the corresponding terminal by the network device 10. In other words, by enabling the network security setting, the network device 10 can filter downlink data packets from the data network that may be used to attack the terminal, so as to allow the service connection initiated by the terminal to the data network and block the service connection initiated by the data network to the terminal, and prevent the intruder from attacking the terminal by using the data network.
[0036] When the network device 10 receives an uplink data packet sent by the terminal to the data network, and the uplink data packet is used to request to establish a service connection, if the IP address of the terminal does not include the IPv6 prefix set by the data network for the network device 10, the network device 10 needs to change the source IP address of the uplink data packet to a new IP address, where the new IP address includes the IPv6 prefix set by the data network for the network device 10. In this way, after the changed uplink data packet is sent to the data network, the data network may send a downlink data packet belonging to the service connection to the network device 10, and the destination IP address of the downlink data packet is the new IP address.
[0037] In this case, in the connection tracking information of the service connection to which the uplink data packets belong, the downlink connection information may indicate that the destination IP address of the downlink data packets of the service connection is the IP address of the terminal, that is, the destination IP address of the downlink data packets belonging to the service connection that are expected to be received by the network device 10 is the IP address of the terminal. However, the destination IP address of the downlink data packets belonging to the service connection is a new IP address. The network security setting cannot identify the downlink data packets belonging to the service connection based on the connection tracking information of the service connection, or the downlink data packets belonging to the service connection are erroneously determined as downlink data packets that do not belong to the service connection initiated by the terminal. As a result, the downlink data packets belonging to the service connection are terminated / discarded by the network security setting enabled by the network device. Correspondingly, in order to prevent the downlink data packets belonging to the service connection initiated by the terminal from being terminated / discarded by the network security setting, the network security setting needs to be disabled.
[0038] In view of this, the embodiments of the present application provide at least one communication method, device, and system. A network device first receives an uplink data packet sent by a terminal to a data network, and the uplink data packet is used to request to establish a service connection. Then, a source IP address of the uplink data packet is changed to a first IP address, and the changed uplink data packet is sent to the data network, where the first IP address includes an IPv6 prefix configured by the data network for the network device. In addition, the network device may further generate connection tracking information of the service connection, and the connection tracking information indicates that a destination IP address of a downlink data packet from a data network to which the service connection belongs is the first IP address. In this way, for a downlink data packet from a data network belonging to a service connection, the network security configuration can identify the downlink data packet as a downlink data packet belonging to the service connection based on an indication of the connection tracking information included in the service connection, that is, the downlink data packet belonging to the service connection is determined by the network security configuration as a data packet belonging to a service connection initiated by the terminal. It is ensured that the downlink data packets are not terminated / discarded according to the network security settings, and the terminal can access the data network by using the network device to implement the corresponding service.
[0039] In other words, even if the IP address of the terminal does not include the IPv6 prefix configured by the data network to the network device, the security settings enabled by the network device can identify downlink data packets belonging to a service connection initiated by the terminal, and ensure that the terminal can access the data network to implement a specific service without blocking the service connection initiated by the terminal to the data network.
[0040] 3 is a flowchart of a communication method according to an embodiment of the present application. As shown in FIG. 3, the method may include at least the following steps:
[0041] Step 301: The network device receives an uplink data packet sent by a terminal to a data network.
[0042] The source IP address of the uplink data packet may or may not include an IPv6 prefix configured by the data network for the network device, and the uplink data packet is used to request to establish a service connection. The service connection may include, but is not limited to, a TCP connection or a user datagram protocol (UDP) connection, and may further include, for example, an internet control message protocol (ICMP) connection. The source IP address of the uplink data packet is the IP address of the terminal.
[0043] The data network may include, but is not limited to, the Internet, an IPTV network, or a Cloud VR network.
[0044] Step 303: The network device modifies the source IP address of the uplink data packet to the first IP address, and sends the modified uplink data packet to the data network.
[0045] The first IP address includes an IPv6 prefix configured by the data network for the network device. In this way, the data network can transmit downlink data packets, which belong to the service connection and have a destination IP address of the first IP address, to the network device.
[0046] Step 305: Generate connection tracking information for the service connection.
[0047] The connection tracking information indicates that the destination IP address of the downlink data packet from the data network belonging to the service connection is the first IP address. The network security configuration can identify the downlink data packet belonging to the service connection according to the indication of the connection tracking information of the service connection, and it is ensured that the downlink data packet belonging to the service connection is not terminated / discarded, and the terminal can access the data network to implement the corresponding service.
[0048] In short, it can be seen that even if the IP address of the terminal does not include the IPv6 prefix configured by the data network to the network device, the network security setting enabled by the network device can identify downlink data packets belonging to a service connection initiated by the terminal, not block the service connection initiated by the terminal to the data network, and ensure that the terminal can access the data network to implement a specific service.
[0049] Services shown in Figure 1 scenarioWith reference to FIG. 4, the following illustratively describes a process of communication between a terminal and a data network. For example, the IP address of the STB includes an IPv6 prefix set by the Internet for a network device, and the STB accesses an IPTV network to implement a corresponding IPTV service. The process of the STB communicating with the IPTV network may include the following steps 401 to 411. To obtain a technical solution based on the same concept as the embodiment shown in FIG. 4, other data networks may be used to replace the Internet and / or the IPTV network in the embodiment shown in FIG. 4, and other types of terminals may be used to replace the STB.
[0050] Step 401: The IPTV network configures a first IPv6 prefix for a network device, and the Internet configures a second IPv6 prefix for the network device.
[0051] Step 402: The network device sends a second IPv6 prefix to the STB.
[0052] It can be understood that a network device may be connected to multiple types of terminals and multiple types of terminals may need to access the Internet, but only one or more specific types of terminals need to access other data networks, and as a result, the quantity of data packets generated when the network device interacts with the Internet is much greater than the quantity of data packets generated when the network device interacts with other data networks.
[0053] Accordingly, in order to reduce the load on the network device and enable the network device to modify the source IP address / destination IP address of data packets in a relatively small amount, in a possible implementation, the network device may only broadcast the second IPv6 prefix from the Internet, so that IP addresses generated by terminals including STBs each include the second IPv6 prefix.
[0054] Step 403: The STB generates an IP address for the STB based on the second IPv6 prefix.
[0055] The IP address generated by the STB may include a second IPv6 prefix and an interface identifier that is 64 bits in length, where the interface identifier is generated by the STB based on the media access control (MAC) address of the STB. For ease of explanation, the IP address generated by the STB will be referred to as the second IP address in subsequent steps.
[0056] Step 404: The STB receives an uplink data packet used to request to establish a service connection. Network Devices Send to.
[0057] It can be understood that after receiving the uplink data packet from the STB, the network device may identify whether the uplink data packet is an uplink data packet used to request to establish a service connection based on a valid payload carried in the uplink data packet. Alternatively, the connection information of the uplink data packet may be obtained from the uplink data packet, for example, information such as the source IP address of the uplink data packet and the destination IP address of the uplink data packet may be obtained, and whether the connection tracking information of the service connection to which the uplink data packet belongs already exists in the network device may be determined based on the connection information. If the connection tracking information does not exist, it indicates that the uplink data packet is an uplink data packet used to request to establish a service connection.
[0058] When the network device receives an uplink data packet from an STB used to request establishing a service connection, step 405 is performed, specifically, the network device may determine the data network used to receive the uplink data packet based on the destination IP address of the uplink data packet.
[0059] When the data network used to receive the uplink data packets is the Internet, the uplink data packets may be transmitted to the Internet through a high speed internet (HSI) service traffic channel between the network device and the data network. The associated process of processing the uplink data packets by the network device 10 is not described herein.
[0060] If the data network used to receive the uplink data packet is an IPTV network, the network device may perform step 406, specifically, convert the source IP address of the uplink data packet based on the first IPv6 prefix to obtain a first IP address.
[0061] Here, NTPV6 may be performed on the source IP address (ie, the second IP address) of the uplink data packet, that is, the source IP address of the uplink data packet is converted based on the RFC6292 algorithm.
[0062] For the first IP address obtained by the network device 10, after the source IP address of the uplink data packet is replaced with the first IP address in a subsequent process, the application layer checksum of the uplink data packet is not changed, and the application layer checksum of the changed uplink data packet does not need to be recalculated.
[0063] Moreover, when the length of the first IPv6 prefix is less than or equal to 48 bits, only the high 64 bits of the second IP address need to be changed, and the interface identifier of the second IP address does not need to be changed at all. When the length of the first IPv6 prefix is greater than 48 bits, the high 64 bits of the second IP address need to be changed, and the 16 bits of the interface identifier need to be changed. In this way, the interface part of the first IP address is the same as or highly similar to the interface identifier of the second IP address, and the interface part of the first IP address can accurately represent the MAC address of the STB. For the changed uplink data packet, it is very easy to trace the uplink data packet based on the interface part of the first IP address. This helps to immediately determine that the terminal sending the uplink data packet is the STB.
[0064] For example, the second IPv6 prefix configured by the Internet for the network device is 2015:2015:0:6a, the first IPv6 prefix configured by the IPTV network for the network device is 2002:0:0:0, and the interface identifier generated by the STB is 6987:9945:8ec1:1065. The source IP address of the uplink data packet sent by the STB to the IPTV network is 2015:2015:0:6a:6987:9945:8ec1:1065. NPTV6 is performed on the second IP address 2015:2015:0:6a:6987:9945:8ec1:1065 based on the first IPv6 prefix “2002:0:0:0”, and the obtained first IP address is 2002:0:0:0:8a19:9945:8ec1:1065. 5 In the subsequent process, after replacing the source IP address 2015:2015:0:6a:6987:9945:8ec1:1065 of the uplink data packet with 2002:0:0:0:8a19:9945:8ec1:1065, the network device does not change the application layer checksum of the uplink data packet. There is a relatively high similarity between the interface part of the first IP address "8a19:9945:8ec1:1065" and the interface identifier "6987:9945:8ec1:1065", so that it is easy to find the STB that sends the uplink data packet based on the interface part of the first IP address.
[0065] Step 407: The network device generates connection tracking information for the service connection.
[0066] The downlink connection information of the connection tracking information may indicate that a destination IP address of a downlink data packet belonging to the service connection is the first IP address. The network device may further set a connection state of the connection tracking information to be NEW, that is, the network device sets the connection state of the connection tracking information to indication information indicating a new connection.
[0067] In this embodiment of the present application, for the connection tracking information of a service connection, the destination IP address of the uplink connection information of the connection tracking information is the same as the source IP address of the downlink connection information of the connection tracking information. The source IP address of the uplink connection information of the connection tracking information is the source IP address of the uplink data packet from the terminal belonging to the service connection, that is, the source IP address of the uplink connection information is the second IP address generated by the terminal. The destination IP address of the downlink connection information of the connection tracking information is the source IP address of the modified uplink data packet, that is, the destination IP address of the downlink connection information is the first IP address generated by the network device.
[0068] In an example where the STB sends an uplink data packet used to request the IPTV network to establish a service connection, the network device may obtain a source IP address IP_1 of the uplink data packet and a destination IP address IP_2 of the uplink data packet, and the network device may obtain a first IP address IP_3 by performing NPTV6 on IP_1. The connection tracking information of the service connection generated by the network device is shown in Table 1. [Table 1]
[0069] As shown in Table 1 above, in the connection tracking information of the service connection, the destination IP address included in the uplink connection information and the source IP address included in the downlink connection information are both IP_2. The source IP address included in the uplink connection information is different from the destination IP address included in the downlink connection information. The source IP address included in the uplink connection information is the source IP address IP_1 of the uplink data packet from the terminal belonging to the service connection, and the destination IP address included in the downlink connection information is the first IP address IP_3. In other words, the downlink connection information indicates that the destination IP address of the downlink data packet belonging to the service connection that is expected to be received by the network device is IP_3.
[0070] In a specific implementation, the NPTV6 / RFC6292 algorithm may be embedded in a functional module in the network device for performing connection tracking for a service connection, so that in the connection tracking information generated by the network device, the destination IP address included in the downlink connection information is a first IP address obtained by converting the IP address of the terminal by using the NPTV6 / RFC6292 algorithm. Thus, the network device can enable a network security setting to block a service connection initiated by a data network. Specifically, the network device can be compatible with various application layer security technologies, such as a firewall, an ALG, and port mapping.
[0071] Step 408: The network device changes the source IP address of the uplink data packet to the first IP address, and sends the changed uplink data packet to the IPTV network. In other words, the uplink data packet sent by the terminal to the IPTV network, that is, the IPTV service traffic, can be sent to the IPTV network by using the IPTV service traffic channel between the network device 10 and the IPTV network.
[0072] Step 409: The network device receives downlink data packets sent to the network device by the IPTV network and belonging to the service connection.
[0073] The destination IP address of the downlink data packets belonging to the service connection is the first IP address.
[0074] Step 410: The network device determines whether connection tracking information for the service connection to which the downlink data packet belongs already exists.
[0075] In a possible implementation, the network device may obtain connection information from a data network, and the connection information may include at least a source IP address of the downlink data packet and a destination IP address of the downlink data packet. If one of the downlink connection information generated by the network device is the same as the connection information of the downlink data packet, it may be determined that the connection tracking information is the connection tracking information of the service connection to which the downlink data packet belongs, or it is determined that the connection tracking information of the service connection to which the downlink data packet belongs already exists. Correspondingly, the network security setting enabled by the network device can determine that the downlink data packet is a downlink data packet belonging to the service connection initiated by the terminal, and the network security setting does not terminate / discard the downlink data packet, and the network device may perform the following steps 411 and 412.
[0076] Step 411: Set the connection state of the connection tracking information of the service connection to which the downlink data packet belongs to an indication that the connection is successful. For example, the indication information of the connection tracking information is set from NEW to ESTABLISHED.
[0077] Only when the network device first receives a downlink data packet belonging to a particular service connection initiated by the STB, does the network device set the connection state of the connection tracking information of the service connection to which the downlink data packet belongs to an indication that the connection is successful, so that the network security settings can detect that the STB has successfully established a service connection to the IPTV network.
[0078] Step 412: Change the destination IP address of the downlink data packet to the second IP address, and send the changed downlink data packet to the STB.
[0079] The network device may change the destination IP address of the downlink data packet to the source IP address included in the uplink connection information of the connection tracking information of the service connection based on the connection tracking information of the service connection. Alternatively, the network device may register a correspondence between the first IP address and the second IP address in a Network Address Translation (NAT) table, and change the destination IP address of the downlink data packet from the first IP address to the second IP address based on the correspondence recorded in the NAT table. The downlink data packet belonging to the service connection may be sent to the STB, so that a service connection may be established between the STB and the IPTV network, and the IPTV service may be implemented based on the service connection.
[0080] Based on the same concept as the above method embodiments, the present application further provides a communication apparatus 500. The communication apparatus 500 includes a unit or means for implementing the steps performed by the network device in any one of the above methods.
[0081] As shown in FIG. 5, the communication device 500 may include: a receiving unit 501 configured to receive an uplink data packet sent by a terminal to a first data network, where the uplink data packet is used to request establishing a service connection; a processing unit 502 configured to change a source IP address of the uplink data packet to a first IP address including a first IPv6 prefix configured for the network device by the first data network and generate connection tracking information of the service connection, where the connection tracking information indicates that the destination IP address of a downlink data packet from the first data network belonging to the service connection is the first IP address; and a sending unit 503 configured to send the changed uplink data packet to the first data network.
[0082] It should be understood that the division into units in the communication device described above is merely a logical division of functions. In actual implementation, all or some of the units may be integrated into a physical entity or may be physically separated. Furthermore, all of the units in the communication device may be implemented in the form of software called by a processing element, all of the units may be implemented in the form of hardware, or some of the units may be implemented in the form of software called by a processing element and some of the units may be implemented in the form of hardware. For example, each unit may be a processing element located separately, or may be integrated into a specific chip of the device for implementation. Furthermore, each unit may be stored in a memory in the form of a program, and a specific processing element of the communication device calls the unit to perform the function of the unit. Furthermore, all or some of these units may be integrated together or implemented independently. The processing elements described herein may alternatively be processors or integrated circuits with signal processing capabilities. In the implementation process, each step of the above method or each of the above units may be implemented in the form of software that is called by a processing element, or may be implemented by using a hardware integrated logic circuit in a processor element.
[0083] In an example, any unit in the communication device may be one or more integrated circuits configured to implement the method, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. As another example, if the unit in the communication device can be implemented in a form of scheduling a program by a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. As another example, the units may be integrated together and implemented in the form of a system-on-a-chip (SoC).
[0084] The above-mentioned receiving unit is an interface circuit of the communication device, configured to receive signals from other devices. For example, when the communication device is implemented by using a chip, the receiving unit is an interface circuit used by the chip to receive signals from other chips or devices. The above-mentioned transmitting unit is an interface circuit of the communication device, configured to transmit signals to other devices. For example, when the communication device is implemented by using a chip, the transmitting unit is an interface circuit used by the chip to transmit signals to other chips or devices.
[0085] In implementation, a unit in a network device for implementing the steps of the above method may be implemented in the form of scheduling a program by a processing element. For example, an apparatus used for a network device includes a processing element and a storage element. The processing element calls a program stored in the storage element to execute the method performed by the network device in the above method embodiment. The storage element may be a storage element on the same chip as the processing element, i.e., an on-chip storage element, or may be a storage element on a chip different from the processing element, i.e., an off-chip storage element.
[0086] To implement the steps of the above method In the network device Unit To , may be integrated together and implemented in the form of a system on chip. For example, the baseband device includes an SoC chip and is configured to implement the method performed by the network device. At least one processing element and a storage element may be integrated into the chip, and the processing element calls a program stored in the storage element to implement the method performed by the network device. Alternatively, at least one integrated circuit may be integrated into the chip to implement the method performed by the network device. Alternatively, with reference to the above implementation, the functions of some units may be implemented by calling a program by the processing element, and the functions of some units may be implemented by the integrated circuit.
[0087] It is seen that the above communication apparatus for a network device may include at least one processing element and an interface circuit, and the at least one processing element is configured to execute any of the methods provided in the above method embodiments and executed by the network device. The processing element may execute some or all of the steps executed by the network device in a first manner, specifically by calling a program stored in a storage element, or may execute some or all of the steps executed by the network device in a second manner, specifically by using a hardware integrated logic circuit in a processor element in combination with instructions, or indeed may execute some or all of the steps executed by the network device by combining the first manner and the second manner.
[0088] As noted above, the processing elements herein may be general purpose processors, such as a CPU, or may be implemented as one or more integrated circuits, such as one or more ASICs, one or more microprocessors, etc. ( DSP ) , one or more FPGAs, or a combination of at least two of such integrated circuits.
[0089] A storage element may be a memory or may be a general term for multiple storage elements.
[0090] An embodiment of the present application further provides an IPv6 network communication system including a terminal, a data network, and a communication apparatus / network device provided in any embodiment of the present application. It can be understood that the communication system may include one or more terminals of the same or different types and one or more data networks each used to support the implementation of a different service.
[0091] It should be noted that unless otherwise stated, " / " in this specification means or, for example, A / B can mean A or B. The term "and / or" in this application describes only the association relationship that describes related objects and indicates that three relationships may exist. For example, A and / or B can represent three cases: only A is present, both A and B are present, and only B is present. Furthermore, an element appearing in the singular with "a," "an," or "the" does not mean "only one or one," but "one or more than one," unless otherwise specified in the context. For example, "a device" means one or more such devices. Furthermore, "at least one of..." means one or any combination of the subsequent related objects, for example, "at least one of A, B, and C" includes A, B, C, AB, AC, BC, ABC, etc. Determining Y based on X does not mean determining Y based only on X, but may further mean determining Y based on X and other information.
[0092] The terms "first" and "second" are intended merely for descriptive purposes and should not be understood as an indication or implication of the relative importance of the technical features depicted or an implicit indication of the quantity. Thus, a feature qualified by "first" or "second" may explicitly indicate or implicitly include one or more such features. The terms "include", "includes", "having" and variations thereof all mean "including but not limited to" unless specifically emphasized otherwise in any other way.
[0093] Those skilled in the art may realize that, in combination with the examples described in the embodiments disclosed herein, the units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether a function is performed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but the implementation should not be considered to go beyond the scope of the embodiments of the present application.
[0094] It should be understood that the sequence numbers of the above processes do not imply an execution order in various embodiments of the present application. The execution order of the processes should be determined according to the functions and internal logic of the processes, and should not be construed as any restriction on the implementation process of the embodiments of the present application.
[0095] Finally, it should be noted that the above embodiments are merely intended to describe the technical solutions of the present application, and are not intended to limit the present application. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art may still be able to understand the technical solutions provided in the embodiments of the present application. Example It should be understood that the technical solutions provided in the above embodiments may be modified or some of its technical features may be equivalently substituted without departing from the scope.
[0096] This application claims priority to Chinese Patent Application No. 202010575876.4, filed on June 22, 2020 with the State Intellectual Property Office of the People's Republic of China for the invention "IPv6 NETWORK COMMUNICATION METHOD, APPARATUS, AND SYSTEM," the entire contents of which are hereby incorporated by reference.
Claims
1. An IPv6 network communication method applied to a network device, comprising: receiving an uplink data packet transmitted by a terminal to a first data network, the uplink data packet being used to request establishing a service connection; modifying a source Internet Protocol (IP) address of the uplink data packet to a first IP address and transmitting the modified uplink data packet to the first data network, the first IP address including a first Internet Protocol version 6 (IPv6) prefix configured by the first data network for the network device; generating connection tracking information for the service connection, the connection tracking information including uplink connection information including a destination IP address and the source IP address of the uplink data packets, and downlink connection information including a destination IP address and a source IP address of downlink data packets that are expected to be received by the network device and belong to the service connection, the destination IP address of the downlink data packets having the first IP address; The method according to claim 1,
2. the source IP address of the uplink data packet is a second IP address, the second IP address including a second IPv6 prefix configured by a second data network for the network device; Before changing a source IP address of the uplink data packet to a first IP address, the method further comprises: performing an IPv6-to-IPv6 Network Prefix Translation (NPTv6) on the second IP address based on the first IPv6 prefix to obtain the first IP address. The method of claim 1.
3. The method comprises: receiving downlink data packets from the first data network belonging to the service connection; determining that a destination IP address of a downlink data packet from the first data network is the first IP address, and based on the connection tracking information, changing the destination IP address of the downlink data packet from the first data network to the source IP address of the uplink data packet, and setting a connection status of the connection tracking information to an indication that the connection is successful; transmitting the modified downlink data packet to the terminal; Further comprising The method of claim 1.
4. the first data network comprises an Internet Protocol Television (IPTV) network or a cloud virtual reality (VR) network; the second data network comprises the Internet; The method of claim 2.
5. 1. A communication device, comprising: a receiving unit configured to receive uplink data packets transmitted by a terminal to a first data network, the uplink data packets being used to request establishing a service connection; and a processing unit configured to change a source Internet Protocol (IP) address of the uplink data packets to a first IP address, the first IP address comprising a first Internet Protocol version 6 (IPv6) prefix configured by the first data network for the communication device, the processing unit further configured to generate connection tracking information for the service connection, the connection tracking information comprising uplink connection information comprising a destination IP address and the source IP address of the uplink data packets, and downlink connection information comprising a destination IP address and a source IP address of downlink data packets expected to be received by the communication device and belonging to the service connection, the destination IP address of the downlink data packets comprising the first IP address; a transmitting unit configured to transmit the modified uplink data packet to the first data network; A communication device having the above configuration.
6. the source IP address of the uplink data packet is a second IP address, the second IP address including a second IPv6 prefix configured by a second data network for the communication device; The processing unit is further configured to perform an IPv6-to-IPv6 network prefix translation (NPTv6) on the second IP address based on the first IPv6 prefix to obtain the first IP address. The communication device according to claim 5.
7. the receiving unit is further configured to receive downlink data packets from the first data network belonging to the service connection; The processing unit is further configured to determine that a destination IP address of a downlink data packet from the first data network is the first IP address, change the destination IP address of the downlink data packet from the first data network to the source IP address of the uplink data packet based on the connection tracking information, and set a connection state of the connection tracking information to an indication that the connection is successful; the transmitting unit is further configured to transmit the modified downlink data packet to the terminal. The communication device according to claim 5.
8. the first data network comprises an Internet Protocol Television (IPTV) network or a cloud virtual reality (VR) network; the second data network comprises the Internet; The communication device according to claim 6.
9. A processor and an interface circuit, The processor is configured to communicate with other devices through the interface circuit and to execute the method of any one of claims 1 to 4. Communications equipment.
10. An IPv6 network system comprising a terminal, a first data network, and a communication device according to any one of claims 5 to 9.
11. configured to store instructions; The stored instructions, when executed by a processor of a communication device, enable the communication device to implement the method of any one of claims 1 to 4. A computer-readable storage medium.
