Communication method and device, storage medium and computer program product

By dynamically allocating and processing the source address and destination address of the user equipment by the first network device, the problem in the prior art that the user equipment needs to be upgraded to achieve network address translation is solved, and efficient and economical network communication and interoperability are achieved.

CN119342032AActive Publication Date: 2025-01-21CHINA MOBILE COMM LTD RES INST +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411476713.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-01-21
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

In the prior art, user equipment (such as CPE) needs to be upgraded to realize network address conversion, resulting in excessive upgrade cost. How to access external network without modifying the existing CPE has become an urgent problem.

Method used

Receive the request information of the user equipment through the first network device, dynamically allocate the source address and target address for the user's device, and use these addresses to perform the centralized processing of address conversion and access request to achieve communication between user equipment and external networks.

Benefits of technology

It effectively reduces the need for modification of user equipment, enables communication between home terminals and external networks, promotes network interoperability and flexibility, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342032A_ABST
    Figure CN119342032A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network communication, and particularly provides a communication method and device, a storage medium and a computer program product. The communication method is applied to a first network device, and the method comprises: in response to receiving first request information from a user equipment, obtaining a second source address corresponding to a first source address, the first request information being used for requesting to allocate the first source address to the user equipment; in response to second request information received from the user equipment, a second target address corresponding to the first target address of the target network equipment is acquired, and the second request information is used for requesting the first target address; and initiating an access to the second target address based on the second source address. According to the method, the first request information and the second request information sent by the user equipment are received by the first network equipment, and address conversion and access requests are processed in a centralized manner through the first network equipment, so that the modification requirement on the user equipment is effectively reduced, and the communication between the home terminal and the external network is realized in a more economical and efficient manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network communication technology, and in particular to a communication method, device, storage medium and computer program product. Background Art

[0002] As the scale of the network expands and the number of devices increases, user equipment (such as customer premises equipment (CPE)) needs to support network address translation to ensure that home terminals can communicate with external networks.

[0003] However, there are a large number of CPEs. If all of them are upgraded to perform network address translation and access to external networks, the upgrade cost is too high. Therefore, how to access external networks without modifying existing CPEs is an urgent problem to be solved. Summary of the invention

[0004] In view of the above problems, the present disclosure is proposed. The present disclosure provides a communication method, device, storage medium and computer program product.

[0005] According to one aspect of the present disclosure, a communication method is provided, which is applied to a first network device, and the method includes: in response to receiving a first request message from a user device, obtaining a second source address corresponding to a first source address, the first request message being used to request allocation of the first source address to the user device; in response to receiving a second request message from the user device, obtaining a second target address corresponding to a first target address of a target network device, the second request message being used to request the first target address; and initiating access to the second target address based on the second source address.

[0006] In addition, according to a communication method of one aspect of the present disclosure, in response to receiving a first request message from a user device, obtaining a second source address corresponding to the first source address includes: based on the first request message received from the user device, allocating a first source address and a second source address prefix to the user device, and saving a first mapping relationship between the first source address and the second source address prefix; sending a first response message to the user device, the first response message carrying the first source address; receiving a data packet containing the first source address from the user device, and based on the first mapping relationship, obtaining the second source address corresponding to the first source address.

[0007] In addition, according to a communication method of one aspect of the present disclosure, the first network device includes a first forwarding plane UP network device and a first control plane CP network device; based on the first request information received from the user device, a first source address and a second source address prefix are allocated to the user device, and a first mapping relationship between the first source address and the second source address prefix is ​​saved, including: the first UP network device sends a fourth request information to the first CP network device based on the first request information received from the user device; the first CP network device allocates a first source address and a second source address prefix to the user device based on the fourth request information, and saves the first mapping relationship between the first source address and the second source address prefix; the first CP network device sends the first source address and the second source address prefix to the first UP network device, and the first UP network device saves the first mapping relationship between the first source address and the second source address prefix.

[0008] In addition, according to a communication method of one aspect of the present disclosure, a data packet containing a first source address is received from a user device, and based on a first mapping relationship, a second source address corresponding to the first source address is obtained, including: a first UP network device receives a data packet containing a first source address from a user device; based on the first mapping relationship, a second source address corresponding to the first source address is obtained.

[0009] In addition, according to a communication method according to one aspect of the present disclosure, the method also includes: the first UP network receives a fifth request message from a user device, and the fifth request message carries a first source address; based on the fifth request message, a sixth request message is sent to the first CP network device, and the sixth request message is used to request confirmation of the first source address and the second source address prefix; the first UP network receives a sixth response message from the first CP network device, and the sixth response message is used to agree to the use of the first source address and the second source address prefix; based on the first mapping relationship, the first UP network sends a fifth response message to the user device, and the fifth response message is used to agree to the use of the first source address.

[0010] In addition, according to a communication method of one aspect of the present disclosure, in response to receiving a second request information from a user device, obtaining a second target address corresponding to the first target address of the target network device includes: receiving the second request information from the user device; based on the second request information, sending a third request information to the second network device, the third request information being used to request the second target address corresponding to the first target address of the target network device; in response to the third response information generated by the second network device processing the third request information, obtaining the second target address.

[0011] In addition, according to a communication method of one aspect of the present disclosure, the first network device includes a first forwarding plane UP network device and a first control plane CP network device; receives second request information from a user device; based on the second request information, sends third request information to the second network device, and the third request information is used to request a second target address corresponding to the first target address of the target network device, including: the first UP network device receives the second request information from the user device; based on the second request information, sends a seventh request information to the first CP network device, and the seventh request information is used to request the first target address and the second target address; the first CP network device sends a third request information to the second network device based on the seventh request information.

[0012] In addition, according to a communication method of one aspect of the present disclosure, in response to the third response information generated by the second network device processing the third request information, obtaining the second target address includes: the first CP network device receives the third response information generated by processing the third request information from the second network device, and the third response information carries the second target address; the first CP network device generates a first table entry based on a preset first network address pool and the second target address, and the first table entry is used to represent a second mapping relationship between the first target address and the second target address; the first CP network device sends a seventh response information to the first UP network device, and the seventh response information carries the first table entry; based on the first table entry, the first UP network device obtains the second target address; the first UP network device sends a second response information to the user device, and the second response information carries the first target address; receives an eighth request information from the user device, and the eighth request information carries the first target address; based on the eighth request information and the first table entry, obtain the second target address.

[0013] In addition, according to a communication method in one aspect of the present disclosure, the first source address and the first destination address are Internet Protocol version 4 IPv4 addresses, the second source address and the second destination address are Internet Protocol version 6 IPv6 addresses, and the user device is a user-end front-end device.

[0014] According to another aspect of the present disclosure, a communication apparatus is provided, including a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the first ground network device executes the communication method as described above.

[0015] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the method described in any of the above embodiments is implemented.

[0016] According to another aspect of the present disclosure, a computer program product is provided, including computer-readable instructions, which implement the method described in any of the above embodiments when executed by a processor.

[0017] As described in detail below, according to a communication method, apparatus, storage medium and computer program product of an embodiment of the present disclosure, the present disclosure utilizes a first network device to receive first request information and second request information sent by a user device, and centrally processes address conversion and access requests through the first network device, thereby effectively reducing the need for modification of user devices (such as CPE), thereby achieving communication between a home terminal and an external network in a more economical and efficient manner, and promoting network interoperability and flexibility.

[0018] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0020] Figure 1 is a schematic diagram illustrating a communication system according to an embodiment of the present disclosure.

[0021] Figure 2 is a flow chart illustrating a communication method according to an embodiment of the present disclosure.

[0022] Figure 3 is a flow chart further illustrating a communication method according to an embodiment of the present disclosure.

[0023] Figure 4 is a flow chart further illustrating a communication method according to an embodiment of the present disclosure.

[0024] Figure 5 is an interaction diagram further illustrating a communication method according to an embodiment of the present disclosure.

[0025] Figure 6 is a flow chart further illustrating a communication method according to an embodiment of the present disclosure.

[0026] Figure 7 is an interaction diagram further illustrating a communication method according to an embodiment of the present disclosure.

[0027] Figure 8 is a block diagram illustrating a communication device according to an embodiment of the present disclosure.

[0028] Fig. 9is a schematic diagram illustrating a computer storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0030] Figure 1 is a schematic diagram illustrating a communication system according to an embodiment of the present disclosure.

[0031] like Figure 1 As shown, the communication system 100 according to the embodiment of the present disclosure mainly includes a terminal 101, a customer terminal equipment (Custom premise Equipment, CPE) 102, a virtual broadband remote access server (Virtual Broadband Remote Access Server, VBRAS) 103, and an Internet Service Provider (Internet Service Provider, ISP) network 104.

[0032] Among them, the terminal 101 can access the virtual broadband remote access server 103 through the user-side front-end device 102, and by implementing network address translation and domain name translation on the virtual broadband remote access server 103, and the virtual broadband remote access server 103 accesses the Internet service provider network 104, the IPv4 address terminal 101 can access the IPv6 address Internet service provider network 104.

[0033] The terminal 101 may be a user equipment (UE), an access terminal, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, an intelligent terminal, a wireless communication device, a user agent or a user device. The terminal may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a relay device, a vehicle-mounted device, a wearable device, a terminal in a next-generation communication system such as an NR network or a terminal in a future-evolved public land mobile network (PLMN), etc., without specific limitation.

[0034] It should be understood that the embodiments of the present disclosure are only described by taking the communication system 100 as an example, but the embodiments of the present disclosure are not limited thereto, that is, the technical solutions of the embodiments of the present disclosure can be applied to various communication systems. Exemplarily, the various communication systems may include, but are not limited to, Long Term Evolution (LTE) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Internet of Things (IoT) system, Narrow Band Internet of Things (NB-IoT) system, Enhanced Machine Type Communications (eMTC) system, 5th Generation Mobile Communication Technology (5G) communication system, also known as New Radio (NR) communication system, or future communication system.

[0035] Figure 2 is a flowchart illustrating a communication method according to an embodiment of the present disclosure.

[0036] like Figure 2 As shown, according to the communication method of the embodiment of the present disclosure, it is executed by a first network device, wherein the first network device may be Figure 1The virtual broadband remote access server 103 shown, the communication method specifically includes the following steps.

[0037] In step S201, in response to receiving first request information from a user equipment, a second source address corresponding to a first source address is acquired, wherein the first request information is used to request allocation of the first source address to the user equipment.

[0038] In an embodiment of the present disclosure, when a user device needs to establish communication with a first network device, it will propose an Internet Protocol (IP) address configuration requirement by sending a first request message to the first network device. Specifically, the first request message may be used to request the first network device to allocate a first source address to the user device. After receiving the first request message, the first network device will parse and identify the first request message, allocate a first source address to the user device, and generate a second source address corresponding to the first source address according to the communication requirements. Here, the first source address is the IP address required by the user device, and the second source address is generated by address conversion or mapping, and is used to represent or map the first source address so that the first network device can communicate in the network according to the communication requirements of the user device.

[0039] Here, the first source address may be an IPv4 address, and the second source address may be an IPv6 address. Figure 1 CPE102 shown.

[0040] Exemplarily, the first request information is an Internet Protocol Control Protocol (IPCP) configuration request Config Nak information. The user equipment sends an IPCPConfig Nak information to the first network equipment, and the IPCPConfig Nak information carries an IP address parameter (such as: IP Address: 0.0.0.0) for requesting the first network equipment to allocate a first source address. The first network equipment allocates a first source address to the user equipment according to the received first request information, and generates a second source address corresponding to the first source address.

[0041] In step S202, in response to receiving second request information from the user equipment, a second target address corresponding to the first target address of the target network device is acquired, where the second request information is used to request the first target address.

[0042] In the embodiment of the present disclosure, the second request information is sent by the user device to the first network device, and is used to request the first target address. After receiving the second request information, the first network device will parse the second request information to identify the first destination address that the user device wants to access. And according to the communication needs of the user device, the second target address corresponding to the first target address is found, and the user realizes the communication between the user device and the ISP network. Here, the second target address can be the actual address of the first target address in the ISP network, which has been processed by network address translation or other address mapping mechanisms.

[0043] Here, the first target address may be an IPv4 address, and the second target address may be an IPv6 address.

[0044] In step S203, based on the second source address, an access is initiated to the second target address.

[0045] In an embodiment of the present disclosure, the first network device initiates access to the second target address using the acquired second source address according to the request of the user device.

[0046] In summary, according to the technical solution provided by the embodiment of the present disclosure, the present disclosure utilizes a first network device to receive first request information and second request information sent by a user device, and centrally processes address conversion and access requests through the first network device, thereby effectively reducing the need for modification of user devices (such as CPE), thereby realizing communication between home terminals and external networks in a more economical and efficient manner, and promoting network interoperability and flexibility.

[0047] Figure 3 is a flow chart further illustrating a communication method according to an embodiment of the present disclosure.

[0048] like Figure 3 As shown, according to the communication method of an embodiment of the present disclosure, in response to receiving a first request message from a user device, obtaining a second source address corresponding to the first source address specifically includes the following steps.

[0049] In step S301, based on first request information received from the user equipment, a first source address and a second source address prefix are allocated to the user equipment, and a first mapping relationship between the first source address and the second source address prefix is ​​saved.

[0050] In an embodiment of the present disclosure, upon receiving a first request message sent from a user device, the first network device will parse the first request message and allocate a first source address and a second source address prefix to the user device according to the content of the first request message. The first source address can be used to uniquely identify the user device in the network. The second source address prefix can define an address range, and can select or allocate additional addresses within a specific range for the user device. After allocating the first source address and the second source address prefix, the first network device will save the mapping relationship between the first source address and the second source address prefix. Through the above process, the first network device can effectively manage and allocate network address resources to ensure that the user device can successfully access the network and communicate. At the same time, by saving the mapping relationship, the network device can also achieve efficient data packet processing and routing forwarding functions.

[0051] Exemplarily, by extending the Internet Protocol Control Protocol (IPCP) of the Ethernet-based Point-to-Point Protocol version PPPoEv4, a new option OPTION is added, and a second source address (such as an IPv6 address) prefix corresponding to the first source address can be requested while requesting the first source address (such as an IPv4 address). Specifically, a new Internet Protocol Control Protocol option IPCP OPTION representing the second source address prefix is ​​added, and the type is: second source address prefix.

[0052] Type: IPv6 prefix, assuming its value is 255. If it is a 64-bit (8-byte) IPv6 prefix:

[0053] Type=255;

[0054] Length = 10; (10 bytes, Type and Length are 1 byte each, and the IPv6 prefix is ​​8 bytes, for a total of 10 bytes).

[0055] Then IPv6 Prefix=1212:0:0:1:: / 64.

[0056] In step S302, a first response message is sent to the user equipment, where the first response message carries a first source address.

[0057] In an embodiment of the present disclosure, upon receiving the first request information sent from the user equipment, the first network device will parse the first request information, generate first response information including the first source address, and send the first response information to the user equipment, so that the user equipment knows the first source address according to the received first response information.

[0058] In step S303, a data message including a first source address is received from a user equipment, and a second source address corresponding to the first source address is acquired based on a first mapping relationship.

[0059] In an embodiment of the present disclosure, after receiving the first response information, the user equipment sends a data message containing the first source address to the first user equipment. Thus, the first user equipment knows the first source address according to the received data message. The first source address is converted into a corresponding second source address by using the first mapping relationship stored on the first network device, so as to realize subsequent communication.

[0060] In summary, according to the technical solution provided by the embodiment of the present disclosure, the present disclosure dynamically allocates a first source address and a second source address prefix to a user device through a first network device, and obtains the second source address by utilizing the first source address and the second source address prefix and their mapping relationship, which helps to achieve efficient utilization of network address resources and provides strong support for building an efficient, flexible and secure network environment.

[0061] Figure 4 is a flow chart further illustrating a communication method according to an embodiment of the present disclosure.

[0062] like Figure 4 As shown, according to the communication method of the embodiment of the present disclosure, the first network device may include a first forwarding plane UP network device and a first control plane CP network device. Based on the first request information received from the user equipment, the first source address and the second source address prefix are allocated to the user equipment, and the first mapping relationship between the first source address and the second source address prefix is ​​saved, which specifically includes the following steps.

[0063] In step S401, the first UP network device sends fourth request information to the first CP network device based on the first request information received from the user equipment.

[0064] In an embodiment of the present disclosure, the first UP network device parses the first request information received from the user device, and sends a fourth request information to the first CP network device based on the content of the parsed first request information, for requesting the first source address and the second source address prefix from the first CP network device.

[0065] In step S402, the first CP network device allocates a first source address and a second source address prefix to the user equipment based on the fourth request information, and saves a first mapping relationship between the first source address and the second source address prefix.

[0066] In an embodiment of the present disclosure, after receiving the fourth request information, the first CP network device will parse the fourth request information, and assign a first source address and a second source address prefix to the user device according to the content requested by the fourth request information, while saving the first mapping relationship between the first source address and the second source address prefix.

[0067] In step S403, the first CP network device sends the first source address and the second source address prefix to the first UP network device, and the first UP network device saves a first mapping relationship between the first source address and the first IPv6 address prefix.

[0068] In an embodiment of the present disclosure, the first CP network device returns a response message to the first UP network device based on the received fourth request information, and the response message may include the first source address and the second source address. After receiving the first source address and the second source address prefix, the first UP network device saves the first mapping relationship between the first source address and the second source address prefix.

[0069] In summary, according to the technical solution provided by the embodiment of the present disclosure, the present application obtains the first source address and the second source address prefix and their mapping relationship through information interaction between the first UP network device and the first CP network device, and can flexibly adjust and optimize the network configuration on the first network device, thereby improving the efficiency of network management.

[0070] Further, receiving a data message including a first source address from a user equipment, and acquiring a second source address corresponding to the first source address based on a first mapping relationship, includes:

[0071] The first UP network device receives a data message including a first source address from a user device; and acquires a second source address corresponding to the first source address based on a first mapping relationship.

[0072] Specifically, the user equipment sends a data packet containing a first source address to the first UP network device. After receiving the data packet, the first UP network device obtains the second source address prefix corresponding to the first source address according to the first mapping relationship, and can obtain the second source address through address conversion.

[0073] Exemplarily, the user device uses a first source address to initiate data plane access and sends a data packet containing the first source address to a first UP network device. After receiving the data packet, the first UP network device queries the second source address prefix corresponding to the first source address through a first mapping relationship, and uses address conversion to convert the first source address into a second source address. The first UP network device initiates data plane access through the second source address.

[0074] Furthermore, the communication method further includes:

[0075] The first UP network device receives a fifth request message from a user device, the fifth request message carrying a first source address; based on the fifth request message, sends a sixth request message to the first CP network device, the sixth request message is used to request the first source address and the second source address prefix; the first UP network device receives a sixth response message from the first CP network device, the sixth response message is used to agree to use the first source address and the second source address prefix; based on the first mapping relationship, the first UP network device sends a fifth response message to the user device, the fifth response message is used to agree to use the first source address.

[0076] Specifically, the fifth request information is sent by the user device to the first UP network device, and the fifth request information carries the first source address. When the first UP network device receives the fifth request information, it will query the second source address prefix corresponding to the first source address according to the first mapping relationship, and send the sixth request information to the first CP network device to request the first source address and the second source address prefix. After receiving the sixth request information, the first CP network device will confirm the correspondence between the first source address and the second source address prefix according to the first mapping relationship. Then the first CP network device sends the sixth response information to the first UP network device to confirm the first mapping relationship and agree to the use of the first source address and the second source address prefix. After querying the mapping relationship between the first source address and the second source address prefix according to the first mapping relationship, the first UP sends the fifth response message to the user device to confirm the use of the first source address.

[0077] In summary, according to the technical solution provided by the embodiment of the present disclosure, the present disclosure improves the reliability and stability of address allocation and management through the collaborative work between the first CP device and the first UP device.

[0078] To describe the technical solution of the present disclosure in detail, refer to Figure 5 The communication method according to the embodiment of the present disclosure is described by the interaction between CPE, BRAS-UP (abbreviated as UP), BRAS-CP (abbreviated as CP), and IPv6 service server, wherein the IPv6 service server is deployed in the ISP network.

[0079] Step 1: UP (the aforementioned first UP network device) and CP (the aforementioned first CP network device) negotiate to establish a virtual extended local area network VXLAN tunnel for subsequent control plane message transmission.

[0080] Step 2: CPE (user equipment) uses UP to implement PPPoE Discovery interaction, LCP negotiation, and CHAP authentication between CPE and CP via the VXLAN tunnel between UP and CP.

[0081] Step 3: CPE sends an IPCP Config Request (such as the first request information above) message to UP, carrying the parameter of IP Address: 0.0.0.0.

[0082] Step 4: After receiving the message, UP sends an IPCP Config Request (as shown in the fourth request message above) (IP Address: 0.0.0.0, IPv6 Prefix: 0::0 / 64) to CP through the VXLAN tunnel, requesting the IPv4 address and IPv6 prefix.

[0083] Step 5: The CP allocates an IPv4 address (10.0.0.100) (such as the first source address mentioned above) and an IPv6 prefix (1212:0:0:1:: / 64) (such as the second source address prefix mentioned above) to the CPE, saves the mapping relationship (10.0.0.100<->1212:0:0:1:: / 64) (such as the first mapping relationship mentioned above), and then sends these two parameters to the UP through an IPCP Config Nak message.

[0084] Step 6: The UP saves the mapping relationship between the IPv4 address and the IPv6 prefix (10.0.0.100<->1212:0:0:1:: / 64), and sends only the IPv4 address 10.0.0.100 to the CPE through the IPCP Config Nak message (such as the aforementioned first response information).

[0085] Step 7: CPE requests the 10.0.0.100 address through IPCP Config Request (fifth request information).

[0086] Step 8: After receiving the message, UP searches the first mapping relationship to find that the IPv6 prefix corresponding to 10.0.0.100 is 1212:0:0:1:: / 64, and requests the IPv4 address 10.0.0.100 and the IPv6 prefix 1212:0:0:1:: / 64 from CP through IPCP Config Request (sixth request information).

[0087] Step 9: After querying the mapping relationship, the CP recognizes the correspondence between the IPv4 address and the IPv6 prefix, and indicates to the UP through an IPCPConfig Ack (such as the aforementioned sixth response information) message that it agrees to use the IPv4 address 10.0.0.100 and the IPv6 prefix 1212:0:0:1:: / 64.

[0088] Step 10: After querying the mapping relationship, the UP recognizes the correspondence between the IPv4 address and the IPv6 prefix, and indicates to the CPE that it agrees to use the IPv4 address 10.0.0.100 through an IPCP Config Ack (fifth response information) message.

[0089] Step 11: The CPE uses the IPv4 address 10.0.0.100 to initiate data plane access.

[0090] Step 12: After the message carrying the IPv4 address reaches UP, UP finds out that the IPv6 prefix of the address is 1212:0:0:1:: / 64, and performs stateless NAT46 conversion: 10.0.0.100<->1212:0:0:1::10.0.0.100; the converted message initiates data plane access to the IPv6 service server through the source address 1212:0:0:1::10.0.0.100 (such as the second source address mentioned above).

[0091] Figure 6 is a flowchart illustrating a communication method according to an embodiment of the present disclosure.

[0092] like Figure 6 As shown, according to the communication method of an embodiment of the present disclosure, in response to receiving the second request information from the user device, obtaining the second target address corresponding to the first target address of the target network device specifically includes the following steps.

[0093] In step S601, second request information is received from a user device; based on the second request information, third request information is sent to a second network device, where the third request information is used to request a second target address corresponding to a first target address of a target network device.

[0094] In an embodiment of the present disclosure, the second request information is sent by the user device to the first network device. After receiving the second request information, the first network device parses the second request information and sends a third request message to the second network device according to the second request information, for requesting the second network device for the second target address corresponding to the first address of the target network device.

[0095] In step S602, in response to the third response information generated by the second network device processing the third request information, a second target address is obtained.

[0096] In an embodiment of the present disclosure, the second network device receives the third request information, parses the third request information, generates a third response information according to the content of the third request information, and the third response information includes the second destination address. The second network device sends the third response information to the first network device. The first network device obtains the second destination address according to the received third response information.

[0097] In summary, according to the technical solution provided by the embodiment of the present disclosure, the first network device of the present application acts as an intermediate bridge, receives a request from a user device (second request information), and initiates a further request (third request information) to the second network device based on the request, and finally obtains the required second target address from the second network device. This mechanism enables the user device to not directly know the internal address of the target network device, simplifies the access process, and enhances the security and flexibility of the system. Furthermore, the first network device includes a first forwarding plane UP network device and a first control plane CP network device;

[0098] Receiving second request information from a user device; based on the second request information, sending third request information to a second network device, the third request information being used to request a second target address corresponding to a first target address of a target network device, including:

[0099] The first UP network device receives second request information from the user equipment;

[0100] Based on the second request information, sending seventh request information to the first CP network device, where the seventh request information is used to request the first target address and the second target address;

[0101] The first CP network device sends third request information to the second network device based on the seventh request information.

[0102] Specifically, the user device needs to access resources on a target network device (which may be a server, database, etc.), and sends a second request message to the first UP network device to request the first target address. After receiving the second request message from the user device, the first UP network device sends a seventh request message to the first CP network device to request the first target address and the second target address. The first CP network device processes the request: The first CP network device receives the seventh request message from the first UP network device, and sends a third request message to the second network device according to the content of the seventh request message.

[0103] Exemplarily, the user device needs to access a target network device, and sends a domain name query request to the first network device according to the target domain name of the target network device (such as a server used by the ISP network), for requesting a first target address corresponding to the target domain name. The first network device sends a third request message to the second network device (such as a domain name system server) according to the domain name query request, for requesting a second target address corresponding to the target domain name.

[0104] Further, in response to the third response information generated by the second network device processing the third request information, obtaining the second target address includes:

[0105] The first CP network device receives, from the second network device, third response information generated by processing the third request information, where the third response information carries the second target address;

[0106] The first CP network device generates a first table entry based on a preset first network address pool and a second target address, where the first table entry is used to indicate a second mapping relationship between the first target address and the second target address;

[0107] The first CP network device sends a seventh response message to the first UP network device, where the seventh response message carries the first table entry;

[0108] Based on the first table entry, the first UP network device obtains the second target address;

[0109] The first UP network device sends a second response message to the user device, where the second response message carries the first target address;

[0110] receiving an eighth request message from the user equipment, where the eighth request message carries the first target address;

[0111] Based on the eighth request information and the first table entry, a second target address is acquired.

[0112] Specifically, the second network device generates a third response message according to the received third request message, and the third response message includes the second network address. The second network device sends the third response message to the first CP network device, and the first CP network device generates a first table entry according to the first network address pool and the second target address stored therein. The first table entry is used to represent the second mapping relationship between the first target address and the second target address. And the first network address pool is used to pre-store a number of different first target addresses.

[0113] Further, the first CP network device sends the seventh response information containing the first table entry to the first UP device, the first UP network device parses the seventh response information to obtain the second target address, and at the same time, the first UP network device generates a second response information based on the first table entry and sends the second response information to the user device, wherein the second response information carries the first target address.

[0114] Further, the user equipment sends eighth request information according to the received second response information, where the eighth request information carries the first target address.

[0115] Furthermore, the user device needs to access a target network device and initiates data plane access to the first UP network device for the first target address. The first UP network device finds the second target address corresponding to the first target address according to the first table entry, and then initiates data plane access to the second target address from the first UP network device.

[0116] In summary, according to the solution provided by the present disclosure, access from the user device to the target network device is jointly achieved through information interaction between different components (user device, UP network device, CP network device, second network device).

[0117] Furthermore, the first source address and the first destination address may be IPv4 addresses, and the second source address and the second destination address may be IPv6 addresses.

[0118] In summary, according to the technical solution provided by the embodiment of the present disclosure, the NAT46 / DNS46 capability is collaboratively implemented by implementing IPv4 address conversion to IPv6 (NAT46) data plane conversion (data plane functions of stateful NAT46 and stateless NAT46) on the distributed BRAS-UP, and uniformly completing DNS46 and NAT46 control plane functions on the centrally deployed BRAS-CP. Under the unified control and management of the BRAS-CP, the service demand of IPv4 terminals accessing IPv6 content is finally realized through the signaling interaction between the DNS46 / NAT46 control plane of the BRAS-CP and the NAT46 data plane of the BRAS-UP. The service demand of IPv4 terminals accessing IPv6 content can be realized without upgrading the CPE.

[0119] In summary, according to the technical solution provided by the embodiment of the present disclosure, since BRAS-CP is centrally deployed (generally one set is deployed in one province) and is implemented by software, most of the communication steps of this proposal are implemented on the centrally deployed BRAS-CP, and only a small amount of modification is required for BRAS-UP. Therefore, it can well solve the problem of difficulty and high cost in upgrading massive CPEs (hundreds of millions) to support NAT46 / DNS46.

[0120] To describe the technical solution of the present disclosure in detail, refer to Figure 7 , describes the communication method according to an embodiment of the present disclosure through the interaction between CPE, BRAS-UP (abbreviated as UP), BRAS-CP (abbreviated as CP), IPv6 address domain name system server DNS6 Server, and IPv6 service server.

[0121] Among them, in order to uniformly implement the DNS46 function by CP, that is, converting IPv4 addresses into IPv6 addresses through domain name queries, the domain name system DNS message sent by CPE to UP needs to be sent to CP through the VXLAN tunnel. However, the VXLAN tunnel can only forward PPPoE / IPoE dial-up messages to CP. Therefore, the original VXLAN GPE protocol needs to be extended to support the encapsulation and forwarding of DNS messages.

[0122] The current VXLAN general protocol encapsulation GPE protocol only supports PPPoE / IPoE. A new Next Protocol is extended, and the Protocol represents the DNS protocol, and the assumed value is 255. In this way, the UP can use the VXLAN tunnel to encapsulate the DNS message sent by the CPE to the CP.

[0123] Step 1: The UP and CP negotiate to establish a VXLAN tunnel for subsequent control plane message transmission.

[0124] Step 2: CPE sends a DNS Query (Name: www.abc.com, Type: A) (such as the second request information in the previous text), requesting the IPv4 address of the domain name www.abc.com (such as the first target address in the previous text).

[0125] Step 3: After receiving it, UP sends DNS Query (Name: www.abc.com, Type: A, Type: AAAA) (such as the seventh request letter above) to CP through the VXLAN tunnel (Next Protocol = 255 in the VXLAN GPE protocol header), requesting the IPv4 address (such as the first destination address above) and IPv6 address (such as the second destination address above) of the domain name.

[0126] Step 4: CP sends a DNS Query (Name: www.abc.com, Type: AAAA) (such as the third request information above) to the DNS6 Server, requesting the IPv6 address of the domain name (such as the second destination address above).

[0127] Step 5: DNS6 Server sends DNS Response (Name: www.abc.com, AAAA:2001::1) (as the third response information above) to CP.

[0128] Step 6: The CP generates and saves a NAT46 entry (first entry) for 2001::1 according to the configured IPv4 address pool (first network address pool): 100.0.0.1<->2001::1.

[0129] Step 7: CP sends DNSResponse (such as the seventh response information in the previous text) Name: www.abc.com, A: 100.0.0.1, AAAA: 2001::1) to UP through the VXLAN tunnel (Next Protocol = 255 in the VXLAN GPE protocol header).

[0130] Step 8: UP saves the NAT46 entry for 2001::1: 100.0.0.1<->2001::1;

[0131] Step 9: UP sends DNS Response (Name: www.abc.com, A: 100.0.0.1) (as the second response information above) to CPE.

[0132] Step 10: The CPE initiates data plane access to the destination address 100.0.0.1 (such as the eighth request information above).

[0133] Step 11: After receiving the packet, UP finds out the IPv6 address corresponding to the IPv4 address according to the NAT46 table entry: 2001::1. UP initiates data plane access to the destination address 2001::1.

[0134] The present disclosure also provides a communication device. Figure 8 A structural block diagram of a communication device provided in an embodiment of the present disclosure, such as Figure 8 As shown, the communication device 800 includes: a memory 801 and a processor 802.

[0135] Specifically, the memory 801 is used to store computer-readable instructions.

[0136] Specifically, the processor 802 is used to execute the computer-readable instructions so that the communication device executes the communication method as described above.

[0137] Fig. 9 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure. Fig. 9 As shown, a computer-readable storage medium 900 according to an embodiment of the present disclosure has computer-readable instructions 901 stored thereon. When the computer-readable instructions 901 are executed by a processor, the communication method described in any of the foregoing embodiments of the present disclosure is implemented. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.

[0138] The present disclosure further provides a computer program product, including a computer program / instruction, which implements the communication method described in any of the foregoing embodiments of the present disclosure when executed by a processor.

[0139] As described above, with reference to the accompanying drawings, the communication method, apparatus, computer-readable storage medium, and computer program product according to the embodiments of the present disclosure are described in detail. The present disclosure utilizes a first network device to receive a first request message and a second request message sent by a user device, and centrally processes address conversion and access requests through the first network device, thereby effectively reducing the need for modification of user devices (such as CPE), thereby achieving communication between home terminals and external networks in a more economical and efficient manner, and promoting network interoperability and flexibility. Furthermore, the communication method provided by the embodiments of the present disclosure is centrally deployed due to the BRAS-CP (generally one set is deployed in one province), and is implemented by software. Because for this proposal, most of the communication steps are implemented on the centrally deployed BRAS-CP, and only a small amount of coordinated modifications are required to the BRAS-UP. Therefore, it can well solve the problem of difficulty and high cost in upgrading massive CPEs (hundreds of millions of levels) to support NAT46 / DNS46.

[0140] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0141] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0142] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0143] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0144] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0145] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0146] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A communication method, characterized in that: Applied to a first network device, the method comprises: In response to receiving a first request message from a user equipment, acquiring a second source address corresponding to a first source address, wherein the first request message is used to request allocation of the first source address to the user equipment; In response to receiving a second request message from the user equipment, acquiring a second target address corresponding to the first target address of the target network device, wherein the second request message is used to request the first target address; Based on the second source address, an access is initiated to the second target address.

2. The communication method according to claim 1, characterized in that: The step of acquiring, in response to receiving the first request information from the user equipment, a second source address corresponding to the first source address comprises: Based on the first request information received from the user equipment, allocating the first source address and the second source address prefix to the user equipment, and saving a first mapping relationship between the first source address and the second source address prefix; Sending a first response message to the user equipment, where the first response message carries the first source address; A data packet including the first source address is received from the user equipment, and based on the first mapping relationship, the second source address corresponding to the first source address is acquired.

3. The communication method according to claim 2, characterized in that: The first network device includes a first forwarding plane UP network device and a first control plane CP network device; The allocating the first source address and the second source address prefix to the user equipment based on the first request information received from the user equipment, and saving a first mapping relationship between the first source address and the second source address prefix, comprises: The first UP network device sends fourth request information to the first CP network device based on the first request information received from the user equipment; The first CP network device allocates a first source address and a second source address prefix to the user equipment based on the fourth request information, and saves a first mapping relationship between the first source address and the second source address prefix; The first CP network device sends the first source address and the second source address prefix to the first UP network device, and the first UP network device saves the first mapping relationship between the first source address and the second source address prefix.

4. The communication method according to claim 3, characterized in that: The receiving, from the user equipment, a data packet including the first source address, and acquiring, based on the first mapping relationship, a second source address corresponding to the first source address, comprises: The first UP network device receives a data packet including the first source address from the user equipment; Based on the first mapping relationship, a second source address corresponding to the first source address is obtained.

5. The communication method according to claim 4, characterized in that: The method further comprises: The first UP network device receives fifth request information from the user equipment, where the fifth request information carries the first source address; Based on the fifth request information, sending a sixth request information to the first CP network device, wherein the sixth request information is used to request a first source address and a second source address prefix; The first UP network device receives sixth response information from the first CP network device, where the sixth response information is used to agree to use the first source address and the second source address prefix; Based on the first mapping relationship, the first UP network device sends fifth response information to the user equipment, where the fifth response information is used to agree to use the first source address.

6. The communication method according to claim 1, characterized in that: The step of acquiring, in response to receiving the second request information from the user equipment, a second target address corresponding to the first target address of the target network device comprises: receiving second request information from the user equipment; and sending third request information to a second network device based on the second request information, wherein the third request information is used to request the second target address corresponding to the first target address of the target network device; In response to the third response information generated by the second network device processing the third request information, the second target address is acquired.

7. The communication method according to claim 6, characterized in that: The first network device includes a first forwarding plane UP network device and a first control plane CP network device; Receiving second request information from the user equipment; and sending third request information to the second network equipment based on the second request information, wherein the third request information is used to request the second target address corresponding to the first target address of the target network equipment, including: The first UP network device receives the second request information from the user equipment; Based on the second request information, sending seventh request information to the first CP network device, where the seventh request information is used to request the first target address and the second target address; The first CP network device sends third request information to the second network device based on the seventh request information.

8. The communication method according to claim 7, characterized in that: The acquiring the second target address in response to the third response information generated by the second network device processing the third request information includes: The first CP network device receives, from the second network device, third response information generated by processing the third request information, where the third response information carries the second target address; The first CP network device generates a first table entry based on a preset first network address pool and the second target address, where the first table entry is used to indicate a second mapping relationship between the first target address and the second target address; The first CP network device sends seventh response information to the first UP network device, where the seventh response information carries the first table entry; Based on the first table entry, the first UP network device acquires the second target address; The first UP network device sends a second response message to the user equipment, where the second response message carries the first target address; receiving an eighth request message from the user equipment, where the eighth request message carries the first target address; A second target address is acquired based on the eighth request information and the first table entry.

9. The communication method according to any one of claims 1 to 8, characterized in that: The first source address and the first destination address are Internet Protocol version 4 IPv4 addresses, the second source address and the second destination address are Internet Protocol version 6 IPv6 addresses, and the user equipment is a user-end front-end device.

10. A communication device, characterized in that: include: a memory for storing computer readable instructions; as well as A processor, configured to execute the computer-readable instructions so that the communication device executes the communication method according to any one of claims 1 to 9.

11. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the communication method according to any one of claims 1 to 9 is implemented.

12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the communication method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Network forwarding method and device

    CN104052830A

  • Method, device, equipment and system for obtaining mapping rule and readable storage medium

    CN114513485A

  • Address allocation method, device and equipment

    CN115208857A

  • Data transmission method and device, network equipment, system and storage medium

    CN116389340A

  • Network communication system

    CN116800710A