Data access method and device, storage medium and computer program product

By sending an extended DHCPv4 message to the gateway device to request an IPv6 address and generate IPv6 address information, it solves the problem of CPE performance improvement and hardware resource occupation caused by home routers not supporting IPv6, achieving simple and efficient IPv6 address allocation and reducing costs. CPE power consumption and resource usage.

CN118803101AActive Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1

Patent Information

Application Number
CN202410866999.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In fixed-line home broadband scenarios, home routers do not support IPv6, so terminal devices can only be assigned IPv4 addresses, requiring the CPE to perform NAT46 conversion, resulting in improved CPE device performance and increased hardware resource usage.

Method used

By sending an extended DHCPv4 message to the gateway device, requesting the allocation of an IPv6 address, using the IPv6 address prefix to generate the IPv6 address information of the terminal device, and performing data plane access, the message transmission between the terminal device and the gateway device is simplified and the cost is reduced. CPE equipment power consumption and hardware resource occupation.

Benefits of technology

It realizes the IPv6 address allocation and data plane access of terminal equipment without increasing the performance parameters of CPE, reducing the equipment power consumption and hardware resource occupation of CPE.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803101A_ABST
    Figure CN118803101A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data access method and device, a storage medium and a computer program product, and the method comprises the steps: sending a first message with a first flag bit set to be a first value to a gateway device, so as to request the gateway device to request the allocation of an Internet version 6 (IPv6) address; a second message returned by the gateway device is received, the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the length of the IPv6 address prefix; and generating IPv6 address information of the terminal equipment by using the IPv6 address prefix, and performing data plane access with the IPv6 server based on the IPv6 address information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a data access method and device, a storage medium, and a computer program product. Background Art

[0002] In recent years, with the continuous advancement of Internet Protocol Version 6 (IPv6) transformation and the continuous evolution of new IPv6 technologies, global IPv6 traffic has increased significantly. As the proportion of IPv6 traffic continues to increase, IPv6 single stack technology is also constantly evolving.

[0003] In the current fixed-line home broadband scenario, IPv6 is basically supported end-to-end. The only problem is that the home router may not support IPv6, so the terminal device can only be assigned an Internet Protocol Version 4 (IPv4) address. When the entire external network and content are running on an IPv6 single stack, the messages sent from the home wireless gateway (Customer Premises Equipment, CPE) in the home network need to be IPv6 messages to ensure normal access to services. In this case, the CPE needs to perform NAT46 conversion to complete access to the IPv6 network and services.

[0004] However, the above solution requires the CPE to support stateful NAT46 conversion and DNS46 technology, and needs to improve the device performance of the CPE, resulting in increased device power consumption and hardware resource usage of the CPE. Summary of the invention

[0005] The present application provides a data access method and device, a storage medium, and a computer program product, which can reduce the device power consumption and hardware resource occupation of a CPE.

[0006] The technical solution of this application is implemented as follows:

[0007] In a first aspect, the present application proposes a data access method, which is applied to a terminal device, and the method comprises:

[0008] Sending a first message with a first flag bit set to a first value to a gateway device to request the gateway device to allocate an Internet version 6 IPv6 address;

[0009] Receive a second message returned by the gateway device, wherein the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length;

[0010] The IPv6 address prefix is ​​used to generate the IPv6 address information of the terminal device, and data plane access is performed with the IPv6 server based on the IPv6 address information.

[0011] In a second aspect, the present application proposes a data access method, which is applied to a gateway device, and the method comprises:

[0012] Receive a first message sent by a terminal device, wherein a first flag bit of the first message is a first value;

[0013] A second message is sent to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

[0014] In a third aspect, the present application proposes a terminal device, the terminal device comprising:

[0015] A first sending unit, configured to send a first message with a first flag bit set to a first value to a gateway device, so as to request the gateway device to allocate an Internet version 6 IPv6 address;

[0016] A first receiving unit, configured to receive a second message returned by the gateway device, wherein a first flag bit of the second message is the first value, a first field is the IPv6 address prefix requested by the terminal device, and a first option bit is the IPv6 address prefix length;

[0017] A data plane access unit is used to generate IPv6 address information of the terminal device using an IPv6 address prefix, and perform data plane access with an IPv6 server based on the IPv6 address information.

[0018] In a fourth aspect, the present application proposes a gateway device, the gateway device comprising:

[0019] A second receiving unit, configured to receive a first message sent by a terminal device, wherein a first flag bit of the first message is a first value;

[0020] The second sending unit is used to send a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

[0021] In a fifth aspect, the present application proposes a terminal device, comprising: a first processor and a first memory; the first processor implements the above-mentioned data access method when executing a running program stored in the first memory.

[0022] In a sixth aspect, the present application proposes a gateway device, which includes: a second processor and a second memory; the second processor implements the above-mentioned data access method when executing a running program stored in the second memory.

[0023] In a seventh aspect, the present application proposes a storage medium having a computer program stored thereon, which, when executed by a first processor, implements a data access method applied to the above-mentioned terminal device, or, when executed by a second processor, implements the above-mentioned data access method applied to the gateway device.

[0024] In an eighth aspect, the present application proposes a computer program product, comprising a computer program, which implements the data access method applied to the above-mentioned terminal device when executed by a first processor, or implements the above-mentioned data access method applied to the gateway device when executed by a second processor.

[0025] The present application provides a data access method and device, storage medium, and computer program product, the method comprising: sending a first message with a first flag bit set to a first value to a gateway device to request the gateway device to request the allocation of an Internet version 6 IPv6 address; receiving a second message returned by the gateway device, the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; using the IPv6 address prefix to generate the IPv6 address information of the terminal device, and performing data plane access with the IPv6 server based on the IPv6 address information. Using the above implementation scheme, the message transmitted between the terminal device and the gateway device is extended, wherein the first flag bit is used to request the allocation of an IPv6 address, the first field represents the requested IPv6 address prefix, and the first option bit represents the IPv6 address prefix length. The terminal device allocates the IPv6 address of the terminal device by transmitting the message with the gateway device. The message transmission operation is simple to implement and can be implemented on CPEs with any performance parameters, thereby reducing the device power consumption and hardware resource occupation of the CPE. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A current network diagram is shown below;

[0027] Figure 2 A schematic diagram of a process of a terminal device accessing an IPv6 server;

[0028] Figure 3 A data access method process provided in the embodiment of the present application Figure 1 ;

[0029] Figure 4A schematic diagram of an exemplary extended DHCPv4 message format provided in an embodiment of the present application;

[0030] Figure 5 A schematic diagram of an exemplary format of the flags field provided in an embodiment of the present application;

[0031] Figure 6 A data access method process provided in the embodiment of the present application Figure 2 ;

[0032] Figure 7 A flowchart of an exemplary method for data plane IPv6 access provided in an embodiment of the present application;

[0033] Figure 8 A schematic diagram of a terminal device provided in an embodiment of the present application Figure 1 ;

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

[0035] Fig.10 A schematic diagram of a gateway device provided in an embodiment of the present application Figure 1 ;

[0036] Fig.11 A schematic diagram of a gateway device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0037] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0039] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second\third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0040] At present, in the scenario of fixed-line home broadband, the routers used in the home may not support IPv6. Therefore, the terminal device can only be assigned an IPv4 address. When the entire external network and content are running on an IPv6 single stack, the messages sent from the CPE in the home network need to be IPv6 messages to ensure normal access to the service. In this case, the CPE needs to perform NAT46 conversion, that is, the terminal device uses the IPv4 private network address to access the external message. After the message reaches the CPE, the CPE converts the IPv4 message into an IPv6 message through NAT46 technology, and then forwards it to the external network for IPv6 access.

[0041] The network diagram can be referenced Figure 1 The home network supports IPv4, the external network is an IPv6 single-stack network that only supports IPv6, the home network includes dual-stack terminal devices and home routers that only support IPv4, the dual-stack CPE connects the home network and the external network, and the external network includes servers that only support IPv6.

[0042] From the perspective of terminal devices accessing IPv6 servers, assume that the IPv6 address prefix obtained by the CPE from the carrier network is 1212:0:0:1:: / 64, and assume that the IPv4 address pool configured for destination address translation on the CPE is 192.168.100.0 / 24.

[0043] Accordingly, based on Figure 1 For the process of terminal devices accessing IPv6 servers, see Figure 2 ,include:

[0044] 1. The terminal device first initiates a DNS4 request to request the IPv4 address of the external server (www.abc.com); the DNS4 request is forwarded to the CPE.

[0045] 2. CPE requests the IPv6 address of the external server (www.abc.com) from the DNS server through DNS6.

[0046] It should be noted that, since the external network is an IPv6 network, the CPE requests the IPv6 address of the external server.

[0047] 3. The DNS server returns a DNS6 response to the CPE, which carries its IPv6 address information 2001:db8::101.

[0048] 4. The CPE generates and saves the NAT46 entry for the IPv6 address based on the configured IPv4 address pool: 192.168.100.1<-->2001.db8::101.

[0049] 5. The CPE sends a DNS4 response to the terminal device, which carries the IPv4 address of the external server: 192.168.100.1.

[0050] 6. The terminal device initiates an IPv4 access message to the external server, where the source address information is 192.168.1.2 and the destination address information is 192.168.100.1.

[0051] 7. After the above message reaches the CPE, the CPE performs NAT46 conversion.

[0052] It should be noted that the CPE converts the destination address 192.168.100.1 into 2001:db8::101 according to the previous NAT record, performs NAT46 conversion on the source address: 192.168.1.2<-->1212:0:0:1::1, and generates a conversion table entry.

[0053] 8. The CPE performs data plane IPv6 access, where the source address information is 1212:0:0:1::1 and the destination address information is 2001:db8::101.

[0054] The above solution requires the CPE to support stateful NAT46 conversion and DNS46 technology, which will greatly increase the complexity of the CPE equipment and occupy more hardware resources, thereby increasing the power consumption and hardware resource usage of the CPE equipment.

[0055] To solve the above problems, the present application provides a data access method, such as Figure 3 As shown, applied to a terminal device, the method may include:

[0056] S101. Send a first message with a first flag bit set to a first value to a gateway device to request the gateway device to allocate an Internet version 6 IPv6 address.

[0057] In some embodiments, the terminal device may be referred to as a user equipment (UE). The terminal device may be a personal communication service (PCS) phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), etc. The terminal device may also be a smart phone, a tablet computer, a handheld computer, a mobile station (MS), a mobile terminal device (MobileTerminal), etc. The terminal device may communicate with one or more network devices via a radio access network (RAN). For example, the terminal device may be a mobile phone (or a "cellular" phone) or a computer with a terminal device, etc. For example, the terminal device may also be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges voice and / or data with a wireless access network. The terminal device may also be a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future evolving network, etc., which is not limited in the implementation of this application.

[0058] In the embodiment of the present application, the terminal device is a dual-stack terminal device.

[0059] In the embodiment of the present application, the gateway device is a dual-stack CPE.

[0060] In an embodiment of the present application, the terminal device sets the first flag position of the first message to a first value, indicating that the first message is used to request allocation of an IPv6 address.

[0061] In the embodiment of the present application, the first message is an extended Dynamic Host Configuration Protocol vision 4 (DHCPv4) message.

[0062] In the embodiment of the present application, the DHCPv4 message is extended so that the DHCPv4 message can realize the request and allocation of IPv6 addresses. The specific extension of the DHCPv4 message includes the following three aspects.

[0063] In the first aspect, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit being a first value indicates a request for allocation of an IPv6 address, and the first flag bit being a second value indicates a request for allocation of an IPv4 address.

[0064] The format of the extended DHCPv4 message can be found in Figure 4 , the identification field is the flags field.

[0065] In an optional embodiment, the last bit of the Must Be Zero (MBZ) field in the flags field is used as S (the first flag bit). For the specific format of the flags field, see Figure 5 , where B is the broadcast identifier and MBZ is reserved for future use and has a value of zero.

[0066] In an optional embodiment, for the value of S, the first value may be 1, and the second value may be 0. When S=1, it indicates that the DHCPv4 message is used to request an IPv6 address; when S=0, it indicates that the DHCPv4 message is used to request an IPv4 address.

[0067] It should be noted that the specific values ​​of the first value and the second value can be selected according to actual conditions, and the embodiments of the present application do not make specific limitations.

[0068] In a second aspect, if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix.

[0069] In the embodiment of the present application, when S in flags=1, see Figure 4 The meanings of the ciaddr (first address) field and the yiaddr (second address) field are redefined as the IPv6 prefix requested by the user. The ciaddr field and the yiadrr field together constitute the v6prefix field (the first field).

[0070] In the embodiment of the present application, the two fields ciaddr and yiaddr have a total of 64 bits.

[0071] Thirdly, a first option bit and a second option bit are added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0072] In the embodiment of the present application, two new option bits are added, which are assumed to be option 253 (first option bit) and option 254 (second option bit), wherein option 253 represents the prefix length of the IPv6 address, and option 254 represents the assigned IPv6 address prefix.

[0073] It should be noted that option 253 and option 254 are merely optional newly added first option bits and second option bits. Specifically, two unoccupied options in options can be selected as the first option bits and the second option bits. The embodiments of the present application do not make specific limitations.

[0074] In the embodiment of the present application, the IPv6 address prefix length can be 60, 64, etc., and the specific length can be selected according to actual conditions. The embodiment of the present application does not make any specific limitation.

[0075] In an embodiment of the present application, an IPv4 tunnel is established between a terminal device and a gateway device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0076] It should be noted that the gateway device is a gateway device that performs message forwarding between the terminal device and the IPv6 server.

[0077] In an embodiment of the present application, the terminal device sends the first message to the gateway device through the IPv4 tunnel.

[0078] In an optional embodiment, the terminal device sends a DHCP Discovery message (first message) to the gateway device, and the S bit of the message=1.

[0079] S102. Receive a second message returned by the gateway device, wherein the first flag bit of the second message is a first value, the first field is an IPv6 address prefix requested by the terminal device, and the first option bit is an IPv6 address prefix length.

[0080] In an embodiment of the present application, the gateway device returns a DHCP ACK message (second message) to the terminal device, the S bit of the message = 1, the value of the v6prefix field is the assigned IPv6 address prefix generated by the gateway device based on the pre-acquired IPv6 prefix delegation (PrefixDelegation, PD) prefix, and the value of option253 is the IPv6 address prefix length value.

[0081] It should be noted that after receiving the first message sent by the terminal device, the gateway device can first provide the terminal device with an IPv6 address prefix. After the terminal device confirms the request for allocation of the IPv6 address prefix, the gateway device allocates the IPv6 address prefix to the terminal device.

[0082] In an embodiment of the present application, the terminal device first receives a third message returned by the gateway device; the first flag bit of the third message is the first value, and the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; the third message is used to first provide the IPv6 address prefix length to the terminal device; then the terminal device sends a fourth message to the gateway device to confirm the IPv6 address prefix provided by the gateway device through the third message; the first flag bit of the fourth message is set to the first value, the first option bit is filled with the IPv6 address prefix length, and the second option bit is filled with the allocated IPv6 address prefix; after the terminal device confirms the IPv6 address prefix provided by the network device, the gateway device allocates an IPv6 address prefix to the terminal device. Specifically, the terminal device receives the second message returned by the gateway device, and the network device carries the IPv6 address prefix allocated to the terminal device through the second message.

[0083] In an optional embodiment, the CPE returns a DHCP Offer message (third message) to the terminal device, the S bit of the message = 1, the value of option 254 is the IPv6 address prefix requested by the terminal device, and the value of option 253 is the IPv6 address prefix length value. Afterwards, the terminal device sends a DHCP Request message (fourth message), the S bit of the message = 1, the value of the v6prefix field is the allocated IPv6 address prefix, and the value of option 253 is the IPv6 address prefix length value.

[0084] In the embodiment of the present application, the second message is a DHCPv4 message. The third message and the fourth message are both DHCPv4 messages.

[0085] It should be noted that the format of the DHCPv4 message is specifically described in S101 and will not be repeated here.

[0086] S103: Generate IPv6 address information of the terminal device using the IPv6 address prefix, and perform data plane access with the IPv6 server based on the IPv6 address information.

[0087] In an embodiment of the present application, the terminal device generates its own IPv6 address information based on the IPv6 address prefix determined from the fourth message.

[0088] Exemplarily, the IPv6 address prefix obtained by the terminal device is 1212:0:0:1::0, and its own IPv6 address information is generated: 1212:0:0:1::1.

[0089] It should be noted that if the home router in the home network only supports IPv4, it is necessary to establish an IPv6-overlay IPv4 tunnel to achieve direct access between the terminal device and the gateway device, wherein the tunnel source address information of the IPv6-overlay IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the source address information of the message in the tunnel is the IPv6 address information of the terminal device, and the destination address information of the message in the tunnel is the IPv6 address information of the IPv6 server.

[0090] In the embodiment of the present application, the gateway device and the IPv6 server are still connected via an IPv6 tunnel. The terminal accesses the IPv6 server via the IPv6-covered IPv4 tunnel between the terminal and the gateway device and the IPv6 tunnel between the gateway device and the IPv6 server.

[0091] It can be understood that the message transmitted between the terminal device and the gateway device is extended, wherein the first flag bit is used to request the allocation of an IPv6 address, the first field represents the requested IPv6 address prefix, and the first option bit represents the IPv6 address prefix length. The terminal device allocates the IPv6 address of the terminal device by transmitting messages with the gateway device. The message transmission operation is simple to implement and can be implemented on a CPE with any performance parameters, thereby reducing the device power consumption and hardware resource usage of the CPE.

[0092] Based on the above embodiments, the present application also proposes a method for data access, such as Figure 6 As shown, applied to a gateway device, the method may include:

[0093] S201. Receive a first message sent by a terminal device, where a first flag bit of the first message is a first value.

[0094] S202. Send a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to a first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

[0095] In an embodiment of the present application, the gateway device pre-acquires the IPv6 PD prefix to allocate an IPv6 address prefix to the terminal device.

[0096] In an embodiment of the present application, an IPv4 tunnel is established between the gateway device and the terminal device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0097] In an embodiment of the present application, a third message is first sent to the terminal device; to provide the terminal device with the requested IPv6 address prefix; the first flag bit of the third message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length; after receiving the fourth message sent by the terminal device, the first flag bit of the fourth message is the first value, the first option bit is the IPv6 address prefix length, and the second option bit is the allocated IPv6 address prefix; it indicates that the terminal device confirms the IPv6 address prefix, and at this time, a second message is sent to the terminal device to allocate the IPv6 address prefix to the terminal device.

[0098] In the embodiment of the present application, the first message and the second message are extended DHCPv4 messages.

[0099] In the embodiment of the present application, the format of the extended DHCPv4 message includes the following three improvements.

[0100] In the first aspect, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit being a first value indicates a request for allocation of an IPv6 address, and the first flag bit being a second value indicates a request for allocation of an IPv4 address.

[0101] In a second aspect, if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix.

[0102] Thirdly, a first option bit and a second option bit are added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0103] In an embodiment of the present application, after sending the second message to the terminal device, data plane access to the terminal device is also performed through the IPv6-covered IPv4 tunnel between the terminal device and the IPv6 tunnel between the IPv6 server; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the source address information of the message in the tunnel is the IPv6 address information of the terminal device, and the destination address information of the message in the tunnel is the IPv6 address information of the IPv6 server.

[0104] It can be understood that the message transmitted between the terminal device and the gateway device is extended, wherein the first flag bit is used to request the allocation of an IPv6 address, the first field represents the requested IPv6 address prefix, and the first option bit represents the IPv6 address prefix length. The terminal device allocates the IPv6 address of the terminal device by transmitting messages with the gateway device. The message transmission operation is simple to implement and can be implemented on a CPE with any performance parameters, thereby reducing the device power consumption and hardware resource usage of the CPE.

[0105] Based on the above embodiments, the present application embodiment proposes a method for data plane IPv6 access, such as Figure 7 As shown, the method may include:

[0106] 1. Establish an IPv4 tunnel between the terminal and CPE.

[0107] Among them, the source endpoint is 192.168.1.2 and the destination endpoint is 192.168.3.1.

[0108] It should be noted that the IPv6 PD prefix pre-acquired by the CPE is 1212::0:0:1:: / 64.

[0109] 2. The terminal sends an extended DHCP Discovery message.

[0110] Among them, S=1 in the extended DHCP Discovery message.

[0111] 3. The CPE returns an extended DHCP Offer message to the terminal.

[0112] In the extended DHCP Offer message, S=1, v6prefix=1212:0:0:1::0, and option253=64.

[0113] 4. The terminal sends an extended DHCP Request message.

[0114] Among them, the extended DHCP Request message S=1, option254=1212:0:0:1::0, option253=64.

[0115] 5. The CPE returns an extended DHCP ACK message to the terminal.

[0116] The extended DHCP ACK message has S=1, v6prefix=1212:0:0:1::0, and option253=64.

[0117] 6. The terminal generates its own IPv6 address 1212:0:0:1::1 based on the obtained IPv6 prefix.

[0118] 7. The terminal accesses the data plane through the IPv6 overlay IPv4 tunnel.

[0119] Among them, the tunnel source IP is 192.168.1.2, and the tunnel destination IP is 192.168.3.1.

[0120] Among them, the source IP of the message in the tunnel is 1212:0:0:1::1, and the destination IP of the message in the tunnel is 2001:db8::101.

[0121] 8. The CPE strips off the outer IPv4 tunnel.

[0122] 9. CPE performs IPv6 data plane access.

[0123] The source address is 1212:0:0:1::1, and the destination address is 2001:db8::101.

[0124] Based on the above embodiments, the present application embodiment provides a terminal device 1. Figure 8 As shown, the terminal device 1 includes:

[0125] A first sending unit 10 is used to send a first message with a first flag bit set to a first value to a gateway device to request the gateway device to allocate an Internet version 6 IPv6 address;

[0126] A first receiving unit 11 is used to receive a second message returned by the gateway device, wherein the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length;

[0127] The data plane access unit 12 is used to generate the IPv6 address information of the terminal device using the IPv6 address prefix, and perform data plane access with the IPv6 server based on the IPv6 address information.

[0128] Optionally, the first receiving unit 11 is further used to receive a third message returned by the gateway device; the first flag bit of the third message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length;

[0129] The first sending unit 10 is further used to send a fourth message to the gateway device to confirm the IPv6 address prefix provided by the gateway device through the third message; the first flag bit of the fourth message is set to the first value, the first option bit is filled with the IPv6 address prefix length, and the second option bit is filled with the allocated IPv6 address prefix;

[0130] The first receiving unit 11 is further configured to receive the second message returned by the gateway device.

[0131] Optionally, the first message and the second message are extended Dynamic Host Configuration Protocol Internet Protocol version 4 DHCPv4 messages.

[0132] Optionally, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit is a first value, which indicates a request for allocation of an IPv6 address; the first flag bit is a second value, which indicates a request for allocation of an IPv4 address; if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; a first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0133] Optionally, the data plane access unit 12 is also used to perform data plane access with the IPv6 server through the IPv6-covered IPv4 tunnel between the gateway device and the IPv6 tunnel between the gateway device and the IPv6 server in sequence; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the message source address information in the tunnel is the IPv6 address information of the terminal device, and the message destination address information in the tunnel is the IPv6 address information of the IPv6 server.

[0134] Optionally, an IPv4 tunnel is established between the terminal device and the gateway device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0135] A terminal device provided in an embodiment of the present application sends a first message with a first flag bit set to a first value to a gateway device to request the gateway device to allocate an Internet version 6 IPv6 address; receives a second message returned by the gateway device, wherein the first flag bit of the second message is a first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the length of the IPv6 address prefix; generates the IPv6 address information of the terminal device using the IPv6 address prefix, and performs data plane access with the IPv6 server based on the IPv6 address information. It can be seen that the terminal device proposed in this embodiment extends the message transmitted between the terminal device and the gateway device, wherein the first flag bit is used to request the allocation of an IPv6 address, the first field represents the requested IPv6 address prefix, and the first option bit represents the length of the IPv6 address prefix. The terminal device allocates the IPv6 address of the terminal device by transmitting messages with the gateway device. The message transmission operation is simple to implement and can be implemented on CPEs with any performance parameters, thereby reducing the device power consumption and hardware resource occupation of the CPE.

[0136] Fig. 9 A schematic diagram of the structure of a terminal device 1 provided in an embodiment of the present application Figure 2 In practical applications, based on the same disclosure concept of the above embodiments, Fig. 9 As shown, the terminal device 1 of this embodiment includes: a first processor 13, a first memory 14 and a first communication bus 15.

[0137] The first processor 13 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, which is not specifically limited in this embodiment.

[0138] In the embodiment of the present application, the first communication bus 15 is used to realize the connection communication between the first processor 13 and the first memory 14; when the first processor 13 executes the running program stored in the first memory 14, the following data access method is implemented:

[0139] A first message with a first flag bit set to a first value is sent to a gateway device to request the gateway device to allocate an Internet version six IPv6 address; a second message returned by the gateway device is received, wherein the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; the IPv6 address information of the terminal device is generated using the IPv6 address prefix, and data plane access is performed with the IPv6 server based on the IPv6 address information.

[0140] Furthermore, the above-mentioned first processor 13 is also used to receive a third message returned by the gateway device; the first flag bit of the third message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; send a fourth message to the gateway device to confirm the IPv6 address prefix provided by the gateway device through the third message; the first flag bit of the fourth message is set to the first value, the first option bit is filled with the IPv6 address prefix length, and the second option bit is filled with the allocated IPv6 address prefix; receive the second message returned by the gateway device.

[0141] Furthermore, the first message and the second message are extended Dynamic Host Configuration Protocol Internet Protocol version four DHCPv4 messages.

[0142] Furthermore, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit is a first value, which indicates a request for allocation of an IPv6 address; the first flag bit is a second value, which indicates a request for allocation of an IPv4 address; if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; a first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0143] Furthermore, the above-mentioned first processor 13 is also used to perform data plane access to the IPv6 server through the IPv6-covered IPv4 tunnel between the gateway device and the IPv6 tunnel between the gateway device and the IPv6 server in sequence; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the source address information of the message in the tunnel is the IPv6 address information of the terminal device, and the destination address information of the message in the tunnel is the IPv6 address information of the IPv6 server.

[0144] Furthermore, an IPv4 tunnel is established between the terminal device and the gateway device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0145] Based on the above embodiments, the present application embodiment provides a gateway device 2, such as Fig.10 As shown, the gateway device 2 includes:

[0146] A second receiving unit 20, configured to receive a first message sent by a terminal device, wherein a first flag bit of the first message is a first value;

[0147] The second sending unit 21 is used to send a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

[0148] Optionally, the second sending unit 21 is further used to send a third message to the terminal device; to provide the terminal device with a requested IPv6 address prefix; the first flag bit of the third message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length;

[0149] The second receiving unit 20 is further configured to receive a fourth message sent by the terminal device, wherein the first flag bit of the fourth message is the first value, the first option bit is the IPv6 address prefix length, and the second option bit is the allocated IPv6 address prefix;

[0150] The second sending unit 21 is further configured to send the second message to the terminal device.

[0151] Optionally, the first message and the second message are extended DHCPv4 messages.

[0152] Optionally, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit is a first value, which indicates a request for allocation of an IPv6 address; the first flag bit is a second value, which indicates a request for allocation of an IPv4 address; if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; a first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0153] Optionally, the gateway device 2 further includes: a data plane access unit;

[0154] The data plane access unit is used to perform data plane access to the terminal device through the IPv6-covered IPv4 tunnel between the terminal device and the IPv6 tunnel between the IPv6 server; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the message source address information in the tunnel is the IPv6 address information of the terminal device, and the message destination address information in the tunnel is the IPv6 address information of the IPv6 server.

[0155] Optionally, an IPv4 tunnel is established between the gateway device and the terminal device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0156] A gateway device provided in an embodiment of the present application receives a first message sent by a terminal device, wherein the first flag bit of the first message is a first value; sends a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length. It can be seen that the gateway device proposed in this embodiment extends the message transmitted between the terminal device and the gateway device, wherein the first flag bit is used to request the allocation of an IPv6 address, the first field represents the requested IPv6 address prefix, and the first option bit represents the IPv6 address prefix length. The terminal device allocates the IPv6 address of the terminal device by transmitting messages with the gateway device. The message transmission operation is simple to implement and can be implemented on CPEs with any performance parameters, thereby reducing the device power consumption and hardware resource occupation of the CPE.

[0157] Fig.11A schematic diagram of the structure of a gateway device 2 provided in an embodiment of the present application Figure 2 In practical applications, based on the same disclosure concept of the above embodiments, Fig.11 As shown, the gateway device 2 of this embodiment includes: a second processor 22 , a second memory 23 and a second communication bus 24 .

[0158] The second processor 22 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It is understandable that for different devices, the electronic device used to implement the processor function may also be other, which is not specifically limited in this embodiment.

[0159] In the embodiment of the present application, the second communication bus 24 is used to realize the connection and communication between the second processor 22 and the second memory 23; when the second processor 22 executes the running program stored in the second memory 23, the following data access method is implemented:

[0160] Receive a first message sent by a terminal device, wherein the first flag bit of the first message is a first value; send a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

[0161] Furthermore, the above-mentioned second processor 22 is also used to send a third message to the terminal device; to provide the requested IPv6 address prefix to the terminal device; the first flag bit of the third message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length; receive the fourth message sent by the terminal device, the first flag bit of the fourth message is the first value, the first option bit is the IPv6 address prefix length, and the second option bit is the allocated IPv6 address prefix; send the second message to the terminal device.

[0162] Furthermore, the first message and the second message are extended DHCPv4 messages.

[0163] Furthermore, a first flag bit is extended in the flag field of the extended DHCPv4 message; the first flag bit is a first value, which indicates a request for allocation of an IPv6 address; the first flag bit is a second value, which indicates a request for allocation of an IPv4 address; if the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; a first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

[0164] Furthermore, the above-mentioned second processor 22 is also used to perform data plane access to the terminal device through the IPv6-covered IPv4 tunnel between the terminal device and the IPv6 tunnel between the IPv6 server; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the message source address information in the tunnel is the IPv6 address information of the terminal device, and the message destination address information in the tunnel is the IPv6 address information of the IPv6 server.

[0165] Furthermore, an IPv4 tunnel is established between the gateway device and the terminal device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

[0166] An embodiment of the present application provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors. The computer program implements the data access method as described above.

[0167] Based on the above embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by one or more processors, and the computer program implements the data access method as described above.

[0168] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / random access memory (RAM), a disk, or an optical disk), including a number of instructions for enabling an image display device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0170] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A data access method, It is characterized in that Applied to a terminal device, the method comprises: Sending a first message with a first flag bit set to a first value to a gateway device to request the gateway device to allocate an Internet Protocol version 6 IPv6 address; Receive a second message returned by the gateway device, wherein the first flag bit of the second message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; The IPv6 address prefix is ​​used to generate the IPv6 address information of the terminal device, and data plane access is performed with the IPv6 server based on the IPv6 address information.

2. The method according to claim 1, It is characterized in that The receiving a second message returned by the gateway device includes: Receive a third message returned by the gateway device; the first flag bit of the third message is the first value, the first field is the IPv6 address prefix requested by the terminal device, and the first option bit is the IPv6 address prefix length; Sending a fourth message to the gateway device to confirm the IPv6 address prefix provided by the gateway device through the third message; the first flag bit of the fourth message is set to the first value, the first option bit is filled with the IPv6 address prefix length, and the second option bit is filled with the allocated IPv6 address prefix; Receive the second message returned by the gateway device.

3. The method according to claim 1, It is characterized in that The first message and the second message are extended Dynamic Host Configuration Protocol Internet Protocol version 4 DHCPv4 messages.

4. The method according to claim 3, It is characterized in that A first flag bit is extended in the flag field of the extended DHCPv4 message; if the first flag bit is a first value, it indicates a request for allocation of an IPv6 address; if the first flag bit is a second value, it indicates a request for allocation of an IPv4 address; If the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; A first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

5. The method according to claim 1, It is characterized in that The data plane accessing the IPv6 server based on the IPv6 address includes: Data plane access is performed with the IPv6 server via the IPv6-covered IPv4 tunnel between the gateway device and the IPv6 server, and the IPv6 tunnel between the gateway device and the IPv6 server. The tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the message source address information in the tunnel is the IPv6 address information of the terminal device, and the message destination address information in the tunnel is the IPv6 address information of the IPv6 server.

6. The method according to claim 1, It is characterized in that An IPv4 tunnel is established between the terminal device and the gateway device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

7. A data access method, It is characterized in that Applied to a gateway device, the method comprises: Receive a first message sent by a terminal device, wherein a first flag bit of the first message is a first value; A second message is sent to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

8. The method according to claim 7, It is characterized in that The sending a second message to the terminal device includes: Sending a third message to the terminal device; providing the requested IPv6 address prefix to the terminal device; the first flag bit of the third message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length; Receive a fourth message sent by the terminal device, wherein the first flag bit of the fourth message is the first value, the first option bit is the IPv6 address prefix length, and the second option bit is the allocated IPv6 address prefix; Send the second message to the terminal device.

9. The method according to claim 7, It is characterized in that The first message and the second message are extended DHCPv4 messages.

10. The method according to claim 9, It is characterized in that A first flag bit is extended in the flag field of the extended DHCPv4 message; if the first flag bit is a first value, it indicates a request for allocation of an IPv6 address; if the first flag bit is a second value, it indicates a request for allocation of an IPv4 address; If the first flag bit is a first value, the first address field and the second address field of the extended DHCPv4 message are redefined as the first field of the requested IPv6 address prefix; A first option bit and a second option bit are newly added to the extended DHCPv4 message; wherein the first option bit represents the IPv6 address prefix length, and the second option bit represents the allocated IPv6 address prefix.

11. The method according to claim 7, It is characterized in that After sending the second message to the terminal device, the method further includes: The data plane access of the terminal device is performed through the IPv6-covered IPv4 tunnel between the terminal device and the IPv6 tunnel between the IPv6 server; wherein the tunnel source address information of the IPv6-covered IPv4 tunnel is the IPv4 address information of the terminal device, the tunnel destination address information is the IPv4 address information of the IPv6 server, the message source address information in the tunnel is the IPv6 address information of the terminal device, and the message destination address information in the tunnel is the IPv6 address information of the IPv6 server.

12. The method according to claim 7, It is characterized in that An IPv4 tunnel is established between the gateway device and the terminal device for message transmission; wherein the source endpoint information of the IPv4 tunnel is the IPv4 address information of the terminal device, and the destination endpoint information of the IPv4 tunnel is the IPv4 address information of the IPv6 server.

13. A terminal device, It is characterized in that The terminal device comprises: A first sending unit, configured to send a first message with a first flag bit set to a first value to a gateway device, so as to request the gateway device to allocate an Internet version 6 IPv6 address; A first receiving unit, configured to receive a second message returned by the gateway device, wherein a first flag bit of the second message is the first value, a first field is the IPv6 address prefix requested by the terminal device, and a first option bit is the IPv6 address prefix length; A data plane access unit is used to generate IPv6 address information of the terminal device using an IPv6 address prefix, and perform data plane access with an IPv6 server based on the IPv6 address information.

14. A gateway device, It is characterized in that The gateway device comprises: A second receiving unit, configured to receive a first message sent by a terminal device, wherein a first flag bit of the first message is a first value; The second sending unit is used to send a second message to the terminal device to allocate an IPv6 address prefix to the terminal device; the first flag bit of the second message is set to the first value, the first field is filled with the IPv6 address prefix requested by the terminal device, and the first option bit is filled with the IPv6 address prefix length.

15. A terminal device, It is characterized in that The terminal device includes: a first processor and a first memory; when the first processor executes the running program stored in the first memory, the method according to any one of claims 1 to 6 is implemented.

16. A gateway device, It is characterized in that The gateway device includes: a second processor and a second memory; when the second processor executes the running program stored in the second memory, it implements the method according to any one of claims 7 to 12.

17. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a first processor, the method according to any one of claims 1 to 6 is implemented; or when the computer program is executed by a second processor, the method according to any one of claims 7 to 12 is implemented.

18. A computer program product comprising a computer program, It is characterized in that The computer program implements the method according to any one of claims 1 to 6 when executed by a first processor, or the computer program implements the method according to any one of claims 7 to 12 when executed by a second processor.

Citation Information

Patent Citations

  • Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network

    CN102158563A

  • Message transmission method and device

    CN107580079A

  • Access control method for dual-stack terminal and access device

    CN108243261A

  • Address allocation method and device

    CN113132503A

  • Method and apparatus for connecting IPV6 devices through an IPV4 network using a tunneling protocol

    US20040013130A1

Cited By

  • Communication method and device, storage medium and computer program product

    CN119342032A

  • Communication method, apparatus, storage medium, and computer program product

    CN119342032B