CN113014679B - Communication method, device and system - Google Patents

Communication method, device and system Download PDF

Info

Publication number
CN113014679B
CN113014679B CN201911318356.9A CN201911318356A CN113014679B CN 113014679 B CN113014679 B CN 113014679B CN 201911318356 A CN201911318356 A CN 201911318356A CN 113014679 B CN113014679 B CN 113014679B
Authority
CN
China
Prior art keywords
ipv6
data packet
address
server
systems
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911318356.9A
Other languages
Chinese (zh)
Other versions
CN113014679A (en
Inventor
何立志
蒋兴
夏博
蒋辉
曹龙杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201911318356.9A priority Critical patent/CN113014679B/en
Publication of CN113014679A publication Critical patent/CN113014679A/en
Application granted granted Critical
Publication of CN113014679B publication Critical patent/CN113014679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/686Types of network addresses using dual-stack hosts, e.g. in Internet protocol version 4 [IPv4]/Internet protocol version 6 [IPv6] networks

Abstract

The embodiment of the invention provides a communication method, a device and a system, wherein the method is applied to a modem and comprises the following steps: receiving a sixth version of internet protocol (IPV 6) data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the two systems comprise the target system, and the IPV6 data packet comprises an IPV6 address; sending the IPV6 data packet to a server; receiving a response data packet corresponding to the IPV6 data packet from the server; and sending the response data packet to the terminal equipment according to the IPV6 address. The communication method, the device and the system provided by the embodiment of the invention can solve the problem that two systems of the dual-system terminal equipment surf the internet simultaneously based on the IPV6 protocol.

Description

Communication method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method, apparatus, and system.
Background
The dual-system terminal device means that two systems operate on one terminal device, for example, a mobile phone, two android systems exist in one mobile phone, and processes, networks and data of the two systems are isolated from each other, so that data security of the two systems is guaranteed.
When two systems of the existing dual-system terminal equipment surf the internet simultaneously, the two systems surf the internet based on the IPV4 protocol, because IPV4 addresses are limited, with the development of the internet, IPV4 addresses have failed to meet the increasing requirement for equipment connection, and the popularization of IPV6 is becoming more and more urgent, so that a method is urgently needed to realize the function of two systems of the dual-system terminal equipment surfing the internet simultaneously based on the IPV6 protocol.
Disclosure of Invention
The embodiment of the invention provides a communication method, a communication device and a communication system, which aim to solve the problem that two systems of dual-system terminal equipment surf the internet simultaneously based on an IPV6 protocol.
In a first aspect, an embodiment of the present invention provides a communication method applied to a modem, where the method includes:
receiving a sixth internet protocol IPV6 data packet sent by terminal equipment through a target system, wherein the terminal equipment is provided with two systems, the two systems comprise the target system, and the IPV6 data packet comprises an IPV6 address;
sending the IPV6 data packet to a server;
receiving a response data packet corresponding to the IPV6 data packet from the server;
and sending the response data packet to the terminal equipment according to the IPV6 address.
In one possible implementation, before sending the IPV6 data packet to the server, the method further includes:
and carrying out network address conversion processing on the IPV6 address to obtain a corresponding network address.
In a possible implementation manner, the IPV6 address is an address allocated to the IPV6 data packet by the terminal device.
In one possible implementation, sending the IPV6 data packet to a server includes:
and sending the IPV6 data packet to the server according to the network address.
In a possible implementation manner, receiving a response packet corresponding to the IPV6 packet from the server includes:
and receiving a response data packet corresponding to the IPV6 data packet from the server according to the network address.
In a possible implementation manner, before sending the response packet to the terminal device according to the IPV6 address, the method further includes:
and performing network address conversion processing on the network address of the response data packet to obtain the IPV6 address.
In a second aspect, an embodiment of the present invention provides a communication apparatus, including:
the first receiving module is used for receiving an IPV6 data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the two systems comprise the target system, and the IPV6 data packet comprises an IPV6 address;
the first sending module is used for sending the IPV6 data packet to a server;
the second receiving module is used for receiving a response data packet corresponding to the IPV6 data packet from the server;
and the second sending module is used for sending the response data packet to the terminal equipment according to the IPV6 address.
In a possible implementation manner, the first sending module is further configured to, before sending the IPV6 data packet to the server:
and carrying out network address conversion processing on the IPV6 address to obtain a corresponding network address.
In a possible implementation manner, the IPV6 address is an address allocated to the IPV6 data packet by the terminal device.
In a possible implementation manner, the first sending module is specifically configured to:
and sending the IPV6 data packet to the server according to the network address.
In a possible implementation manner, the second receiving module is specifically configured to:
and receiving a response data packet corresponding to the IPV6 data packet from the server according to the network address.
In a possible implementation manner, the second sending module is further configured to, before sending the response packet to the terminal device according to the IPV6 address:
and performing network address conversion processing on the network address of the response data packet to obtain the IPV6 address.
In a third aspect, an embodiment of the present invention provides a communication system, including a terminal device, a modem, and a server, where:
the terminal equipment is used for sending an IPV6 data packet to the modem through a target system, two systems are arranged in the terminal equipment, the two systems comprise the target system, and the IPV6 data packet comprises an IPV6 address;
the modem is used for receiving the IPV6 data packet and sending the IPV6 data packet to the server;
the server is used for receiving the IPV6 data packet, obtaining a corresponding response data packet according to the IPV6 data packet and sending the response data packet to the modem;
the modem is further configured to receive the response packet from the server, and send the response packet to the terminal device according to the IPV6 address.
In a fourth aspect, an embodiment of the present invention provides a communication device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the communication method of any of the first aspects.
In a fifth aspect, the embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the communication method according to any one of the first aspect is implemented.
The communication method, the device and the system provided by the embodiment of the invention firstly receive an IPV6 data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; then, the modem sends the received IPV6 data packet to the server, receives a response data packet corresponding to the IPV6 data packet from the server, and sends the response data packet to the terminal equipment according to the IPV6 address. The communication method provided by the embodiment of the invention is realized by the modem when the terminal equipment needs to access the internet, the IPv6 data packet sent to the modem comprises an IPv6 address, then the response data packet sent by the server is obtained, and then the corresponding response data packet is sent to the target system of the terminal equipment according to the IPv6 address, when two systems of the terminal equipment need to access the internet, the IPv6 data packets sent by the two systems can be processed, because the IPv6 addresses of the IPv6 data packets of different systems are different, the data on the two systems can be distinguished according to the IPv6 address, the data of the two systems are ensured to be independent and not interfered with each other, and the internet access of the double-system terminal equipment based on the IPv6 protocol is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present invention;
fig. 3 is a signaling diagram of a communication method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of data transmission of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 7 is a schematic hardware structure diagram of a communication device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
First, the concept to which the present invention relates will be explained.
And (4) IPV6: internet Protocol Version 6, is the next generation IP Protocol used to replace Internet Protocol Version 4 (IPV 4). Because the network address resources of the IPV4 are limited, the application and the development of the Internet are severely restricted, and therefore, the IPV6 is designed for solving the problem of the number of the network address resources.
Dual system terminal equipment: the terminal equipment with two systems, such as a dual-system mobile phone, is characterized in that the two systems run on a one-step mobile phone, and processes, networks and data of the two systems are isolated from each other and do not affect each other, so that the data security of the two systems is ensured.
Socket: and the socket is used for completing data transmission between the two application programs.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention, as shown in fig. 1, including a terminal device 11, a modem 12, and a server 13, where the terminal device 11 is a device having two systems, which are a first system and a second system, respectively, and the two systems operate on the same terminal device 11. When the terminal device 11 needs to access the internet, a connection is made with the server 13 through the body modem 12, and IPV6 data packets are sent to the server 13 to access the internet.
The following describes the technical solution of the present invention and how to solve the above technical problems in detail by using specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a communication method according to an embodiment of the present invention, and as shown in fig. 2, the method may include:
s21, receiving an IPV6 data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the two systems comprise the target system, and the IPV6 data packet comprises an IPV6 address.
The IPV6 data packet is based on an IPV6 protocol, two systems are arranged in the terminal equipment, and processes, networks and data of the two systems are isolated from each other, so that the working independence and data safety of the two systems are guaranteed.
When two systems in the terminal equipment need to access the internet based on the IPV6 protocol to realize simultaneous internet access of the two systems, for each system, the modem first receives an IPV6 data packet sent by the terminal equipment through the target system, where the IPV6 data packet includes a corresponding IPV6 address. The modem can also obtain the corresponding IPV6 address after receiving the IPV6 data packet.
In the embodiment of the present invention, the target system is any one of two systems of the terminal device. When any one system of the terminal equipment needs to be connected with the internet for communication, the above operation is referred to, if two systems of the terminal equipment need to be connected with the internet for communication at the same time, the terminal equipment sends corresponding IPV6 data packets to the modem through the two systems respectively, and then for each IPV6 data packet, the above operation is referred to, where IPV6 addresses of IPV6 data packets of different systems are different.
And S22, sending the IPV6 data packet to a server.
And after acquiring the IPV6 data packet, the modem sends the IPV6 data packet to a server, wherein the server is a server to be accessed by a target system.
And S23, receiving a response data packet corresponding to the IPV6 data packet from the server.
After receiving the IPV6 data packet, the server responds to the IPV6 data packet to obtain a response data packet, and then sends the response data packet to the modem. The modem receives the response data packet sent by the server.
And S24, sending the response data packet to the terminal equipment according to the IPV6 address.
After receiving the response data packet, the modem sends the response data packet to the terminal equipment according to the IPV6 address, and because the IPV6 addresses corresponding to different systems are different, the terminal equipment can judge which system the response data packet corresponds to according to the IPV6 address, so that the response data packet can be sent to a corresponding target system of the terminal equipment according to the IPV6 address, and data transmission of the target system and the server is realized.
The communication method provided by the embodiment of the invention is applied to a modem, and the method firstly receives an IPV6 data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; then, the modem sends the received IPV6 data packet to the server, receives a response data packet corresponding to the IPV6 data packet from the server, and sends the response data packet to the terminal equipment according to the IPV6 address. The communication method provided by the embodiment of the invention is realized by a modem when a terminal device needs to access the internet, the IPv6 data packet sent to the modem comprises an IPv6 address, then the response data packet sent by a server is obtained, and then the corresponding response data packet is sent to a target system of the terminal device according to the IPv6 address, when two systems of the terminal device need to access the internet, the IPv6 data packets sent by the two systems can be processed, because the IPv6 addresses of the IPv6 data packets of different systems are different, the data of the two systems can be distinguished according to the IPv6 address, the data of the two systems are ensured to be independent and not interfered with each other, and the internet access of the dual-system terminal device based on the IPv6 protocol is realized.
The embodiment of the present invention will be described in detail below using specific examples. The two systems of the terminal equipment are respectively a first system and a second system, the IPV6 data packet sent by the terminal equipment through the first system is a first IPV6 data packet, the first IPV6 data packet comprises a first IPV6 address, the IPV6 data packet sent by the terminal equipment through the second system is a second IPV6 data packet, and the first IPV6 data packet comprises a first IPV6 address.
Fig. 3 is a signaling diagram of a communication method according to an embodiment of the present invention, as shown in fig. 3, including:
s301, the terminal device allocates a first IPV6 address to the first IPV6 data packet, and allocates a second IPV6 address to the second IPV6 data packet.
The first system and the second system are two systems of the terminal device, for example, the terminal device may include two android systems, and data of the two systems are independent.
Fig. 4 is a schematic diagram of data transmission of a terminal device according to an embodiment of the present invention, and as shown in fig. 4, two systems of the terminal device are respectively a working system and a living system, and network data of the two systems are isolated from each other, where the working system may be used as a first system and the living system as a second system, or the living system may be used as the first system and the working system as the second system. The embodiment of the invention takes a working system as a first system and a living system as a second system as an example.
S302, the terminal device sends a first IPV6 data packet to the modem through the first system, and sends a second IPV6 data packet to the modem through the second system.
When two systems access the internet through an IPV6 protocol at the same time, an IPV6 data packet of each system needs to be sent to a modem through a route, the rule of the route needs to be configured in advance at a terminal device when the terminal device dials up, and only if the relevant route rule is configured in advance, the two systems of the terminal device can surf the internet based on the IPV6 protocol. As shown in fig. 4, the working system includes APP, the living system also includes APP, when a user operates APP in the working system and APP in the living system, the terminal device needs to access the IPV6 network through the working system and the living system at the same time, and at this time, the corresponding first IPV6 data packet and second IPV6 data packet are sent to the virtual network cards corresponding to the respective systems through sockets (sockets). In fig. 4, the first IPV6 address of the first IPV6 packet is shown as rmnet10 dd00: 0. The first IPV6 address and the second IPV6 address are internal addresses of IPV6 packets, and it can be seen that the first IPV6 packet and the first IPV6 address are different from the second IPV6 address of the second IPV6 packet.
S303, the modem receives the first IPV6 data packet and the second IPV6 data packet.
The terminal equipment sends the first IPV6 data packet to a virtual network card corresponding to a first system through a socket, and sends the second IPV6 data packet to a virtual network card corresponding to a second system through the socket, and then according to a preset routing rule, the terminal equipment sends the first IPV6 data packet of the first system and the second IPV6 data packet of the second system to a corresponding real network card in the modem through a network bridge route, so that the first IPV6 data packet and the second IPV6 data packet are successfully sent to the modem, and the modem successfully receives the first IPV6 data packet and the second IPV6 data packet.
S304, the modem carries out network address conversion processing on the first IPV6 address and the second IPV6 address to obtain a corresponding first network address and a corresponding second network address.
Before the modem sends the IPV6 data packet to the server, it is also necessary to perform network address translation processing on the IPV6 address of the IPV6 data packet to obtain a corresponding network address. Network address translation is a technique of rewriting the original IPV6 address when an IPV6 packet passes through a route, and can perform broadband sharing.
The reason why the network address conversion processing is required in the embodiment of the present invention is that the address header of the IPV6 packet on the terminal device is an intranet IP, and if the IPV6 packet inside the terminal device is directly sent to the internet, the internal IP address of the terminal device cannot be routed on the internet, that is, the IPV6 address cannot be identified by the network. Therefore, if the terminal device needs to access the IPV6 network, the terminal device first performs network address conversion processing on the IPV6 address of the intranet.
Specifically, before sending data on the modem network card to the base station, according to the IPV6 network address translation rule configured by the system, the local first IPV6 address of the first IPV6 data packet of the first system is dynamically translated into the first network address allocated by the server, and the local second IPV6 address of the second IPV6 data packet of the second system is dynamically translated into the second network address allocated by the server.
For example, the data forwarding function of the IPV6 may be opened on the terminal device by executing the script, and meanwhile, when the terminal device dials up to access the internet, a network address conversion rule of the IPV6 address is configured by using a certain tool (e.g., ip6 tables), so that the local IPV6 address in the IPV6 data in the working system and the living system is dynamically converted into a network address that can be recognized by the network.
As shown in fig. 4, after the bridge routing and network address translation processing, the first IPV6 address is translated into the first network address rmnet0 XX: XX: XX: XX: XX: XX: XX/64, the second IPV6 address is translated into the first network address rmnet1 XX: XX: XX: XX: XX: XX: XX/64, and the first network address and the second network address are addresses that can be identified by a network or a server.
S305, the modem sends the first IPV6 data packet and the second IPV6 data packet to the server according to the first network address and the second network address.
After the first IPV6 address and the second IPV6 address are subjected to network address conversion processing, a first network address and a second network address which can be identified by a network or a server are obtained, then the modem sends a first IPV6 data packet to the server according to the first network address, and sends a second IPV6 data packet to the server according to the second network address, so that the IPV6 data packets of a working system and a living system are successfully sent to a network side.
S306, the server receives the first IPV6 data packet and the second IPV6 data packet.
S307, the server responds to the first IPV6 data packet to obtain a first response data packet, and responds to the second IPV6 data packet to obtain a second response data packet.
After receiving the first IPV6 data packet, the server responds according to the content of the first IPV6 data packet to obtain a first response data packet, and similarly, after receiving the second IPV6 data packet, the server responds according to the content of the second IPV6 data packet to obtain a second response data packet. The first response data packet and the second response data packet are both required to be sent to the terminal device, the first response data packet is a response obtained by operating the first system, and the second response data packet is a response obtained by operating the second system.
As shown in fig. 4, after receiving the first IPV6 data packet, the modem sends the first IPV6 data packet to the base station, and accesses the private network server through the base station, where the private network server is a server to be accessed by the first system (i.e., the operating system), and then the private network server responds to the first IPV6 data packet to obtain a first response data packet. Similarly, after receiving the second IPV6 data packet, the modem sends the second IPV6 data packet to the base station, and accesses the public network server through the base station, where the public network server is a server to be accessed by the second system (i.e., a living system), and then the public network server responds to the second IPV6 data packet to obtain a second response data packet. The data flow diagram for both systems is shown in fig. 4, where the solid lines indicate the data flow for the working system and the dashed lines indicate the data flow for the living system. It can be seen that the data flow directions of the two systems are independent from each other, and the data of the two systems are distinguished without affecting each other according to the different IPV6 addresses of the IPV6 data packets of the two systems.
S308, the server sends the first response data packet and the second response data packet to the modem.
The server obtains a first response data packet according to the content response of the first IPV6 data packet, and sends the first response data packet and a second response data packet to the modem after obtaining the second response data packet according to the content response of the second IPV6 data packet, wherein the first response data packet comprises a first network address, and the second response data packet comprises a second network address.
S309, the modem receives the first response data packet according to the first network address and receives the second response data packet according to the second network address.
After the server sends the response data packet to the modem, the modem receives the response data packet corresponding to the IPV6 data packet from the server according to the network address of the IPV6 data packet. Specifically, the modem receives a first response packet from the server according to the first network address and receives a second response packet from the server according to the second network address.
S310, the modem converts the first network address to obtain a first IPV6 address, and converts the second network address to obtain a second IPV6 address.
After receiving the response data packet, the modem performs network address conversion processing on the network address in the response data packet to obtain a corresponding IPV6 address. The network address translation process here is a reverse process to the aforementioned network address translation process, in which the IPV6 address is translated into a corresponding network address, and the network address translation process here is a process of translating a network address into a corresponding IPV6 address.
Specifically, the modem performs network address translation processing on the first network address to obtain a first IPV6 address, and performs network address translation processing on the second network address to obtain a second IPV6 address. Through the conversion, the network address of the IPV data packet is converted into the local IPV6 address in the terminal equipment, and the local IPV6 address can be identified by the terminal equipment.
And S311, sending a first response data packet to the terminal equipment according to the first IPV6 address, and sending a second response data packet to the terminal equipment according to the second IPV6 address.
After the second network address conversion processing is performed to obtain the corresponding IPV6 address, a response packet may be sent to the terminal device according to the IPV6 address. Specifically, a first response data packet and a second response data packet are sent to the terminal device, where the first response data packet includes a first IPV6 address, and the second response data packet includes a second IPV6 address.
S312, the terminal device receives the first response packet and the second response packet.
After receiving the first response data packet and the second response data packet, the terminal device can also obtain a first IPV6 address of the first response data packet and a second IPV6 address of the second response data packet. Because the first IPV6 address and the second IPV6 address are different, and the first IPV6 address is carried when the first system sends the first IPV6 data packet, and the second IPV6 address is carried when the second system sends the second IPV6 data packet, the terminal device can know that the first response data packet is a response of the first IPV6 data packet according to the first IPV6 address, and can know that the second response data packet is a response of the second IPV6 data packet according to the second IPV6 address, so that the first response data packet is distributed to the APP of the first system for processing according to the first IPV6 address and the second IPV6 address, and the second response data packet is distributed to the APP of the second system for processing.
And sending the second response data packet to the second system according to the second IPV6 address allocated to the second IPV6 data packet by the second system, thereby realizing the surfing of the second system. Because the address information of the first system and the second system is different, the two systems do not influence each other when accessing the internet, and the function that the two systems access the IPV6 network simultaneously can be realized.
The communication method provided by the embodiment of the invention is applied to a modem, and the method firstly receives an IPV6 data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; then, the modem sends the received IPV6 data packet to the server, receives a response data packet corresponding to the IPV6 data packet from the server, and sends the response data packet to the terminal equipment according to the IPV6 address. The communication method provided by the embodiment of the invention is realized by the modem when the terminal equipment needs to access the internet, the IPv6 data packet sent to the modem comprises an IPv6 address, then the response data packet sent by the server is obtained, and then the corresponding response data packet is sent to the target system of the terminal equipment according to the IPv6 address, when two systems of the terminal equipment need to access the internet, the IPv6 data packets sent by the two systems can be processed, because the IPv6 addresses of the IPv6 data packets of different systems are different, the data on the two systems can be distinguished according to the IPv6 address, the data of the two systems are ensured to be independent and not interfered with each other, and the internet access of the double-system terminal equipment based on the IPv6 protocol is realized.
Fig. 5 is a schematic structural diagram of a communication apparatus according to an embodiment of the present invention, and as shown in fig. 5, the communication apparatus includes a first receiving module 51, a first sending module 52, a second receiving module 53, and a second sending module 54, where:
the first receiving module 51 is configured to receive an IPV6 data packet sent by a terminal device through a target system, where the terminal device is provided with two systems, the two systems include the target system, and the IPV6 data packet includes an IPV6 address;
the first sending module 52 is configured to send the IPV6 data packet to a server;
the second receiving module 53 is configured to receive a response data packet corresponding to the IPV6 data packet from the server;
the second sending module 54 is configured to send the response packet to the terminal device according to the IPV6 address.
In a possible implementation manner, the first sending module 52 is further configured to, before sending the IPV6 data packet to the server:
and carrying out network address conversion processing on the IPV6 address to obtain a corresponding network address.
In a possible implementation manner, the IPV6 address is an address allocated to the IPV6 data packet by the terminal device.
In a possible implementation manner, the first sending module 52 is specifically configured to:
and sending the IPV6 data packet to the server according to the network address.
In a possible implementation manner, the second receiving module 53 is specifically configured to:
and receiving a response data packet corresponding to the IPV6 data packet from the server according to the network address.
In a possible implementation manner, the second sending module 54 is further configured to, before sending the response packet to the terminal device according to the IPV6 address:
and performing network address conversion processing on the network address of the response data packet to obtain the IPV6 address.
The apparatus provided in the embodiment of the present invention may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a communication system according to an embodiment of the present invention, as shown in fig. 6, including a terminal device 61, a modem 62, and a server 63, where:
the terminal device 61 is configured to send an IPV6 data packet to the modem through a target system, where the terminal device 61 is provided with two systems, the two systems include the target system, and the IPV6 data packet includes an IPV6 address;
the modem 62 is configured to receive the IPV6 data packet and send the IPV6 data packet to the server;
the server 63 is configured to receive the IPV6 data packet, obtain a corresponding response data packet according to the IPV6 data packet, and send the response data packet to the modem 62;
the modem 62 is further configured to receive the response packet from the server 63, and send the response packet to the terminal device 61 according to the IPV6 address.
Fig. 7 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present invention, and as shown in fig. 7, the communication device includes: at least one processor 71 and a memory 72. The processor 71 and the memory 72 are connected by a bus 73.
Optionally, the model determination further comprises a communication component. For example, the communication component may include a receiver and/or a transmitter.
In particular implementations, the at least one processor 71 executes computer-executable instructions stored by the memory 72 to cause the at least one processor 71 to perform the communication methods described above.
For a specific implementation process of the processor 71, reference may be made to the above method embodiments, which implement similar principles and technical effects, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The buses in the figures of the present invention are not limited to only one bus or type of bus for ease of illustration.
The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the communication method as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of communication, applied to a modem, the method comprising:
receiving a sixth version of internet protocol (IPV 6) data packet sent by a terminal device through a target system, wherein the terminal device is provided with two systems, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; wherein, the IPV6 address corresponds to the target system, and the IPV6 addresses corresponding to the two systems are different;
sending the IPV6 data packet to a server;
receiving a response data packet corresponding to the IPV6 data packet from the server;
and sending the response data packet to the terminal equipment according to the IPV6 address so that the target system receives the response data packet.
2. The method of claim 1, wherein prior to sending the IPV6 data packet to a server, the method further comprises:
and carrying out network address conversion processing on the IPV6 address to obtain a corresponding network address.
3. The method of claim 2, wherein the IPV6 address is an address assigned to the IPV6 packet by the terminal device.
4. A method according to claim 2 or 3, wherein sending the IPV6 data packet to a server comprises:
and sending the IPV6 data packet to the server according to the network address.
5. The method of claim 4, wherein receiving a response packet from the server corresponding to the IPV6 packet comprises:
and receiving a response data packet corresponding to the IPV6 data packet from the server according to the network address.
6. The method according to claim 5, wherein before sending the response packet to the terminal device according to the IPV6 address, the method further comprises:
and performing network address conversion processing on the network address of the response data packet to obtain the IPV6 address.
7. A communications apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an IPV6 data packet sent by a terminal device through a target system, the terminal device is provided with two systems, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; wherein, the IPV6 address corresponds to the target system, and the IPV6 addresses corresponding to the two systems are different;
the first sending module is used for sending the IPV6 data packet to a server;
the second receiving module is used for receiving a response data packet corresponding to the IPV6 data packet from the server;
and a second sending module, configured to send the response packet to the terminal device according to the IPV6 address, so that the target system receives the response packet.
8. A communication system comprising a terminal device, a modem, and a server, wherein:
the terminal equipment is used for sending an IPV6 data packet to the modem through a target system, two systems are arranged in the terminal equipment, the target system is any one of the two systems, and the IPV6 data packet comprises an IPV6 address; wherein the IPV6 address corresponds to the target system, and the IPV6 addresses corresponding to the two systems are different;
the modem is used for receiving the IPV6 data packet and sending the IPV6 data packet to the server;
the server is used for receiving the IPV6 data packet, obtaining a corresponding response data packet according to the IPV6 data packet and sending the response data packet to the modem;
the modem is further configured to receive the response packet from the server, and send the response packet to the terminal device according to the IPV6 address, so that the target system receives the response packet.
9. A communication device, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the communication method of any of claims 1 to 6.
10. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the communication method of any one of claims 1 to 6.
CN201911318356.9A 2019-12-19 2019-12-19 Communication method, device and system Active CN113014679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911318356.9A CN113014679B (en) 2019-12-19 2019-12-19 Communication method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911318356.9A CN113014679B (en) 2019-12-19 2019-12-19 Communication method, device and system

Publications (2)

Publication Number Publication Date
CN113014679A CN113014679A (en) 2021-06-22
CN113014679B true CN113014679B (en) 2022-11-01

Family

ID=76381221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911318356.9A Active CN113014679B (en) 2019-12-19 2019-12-19 Communication method, device and system

Country Status (1)

Country Link
CN (1) CN113014679B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523953A (en) * 2006-10-12 2009-09-02 艾利森电话股份有限公司 Inter-system handoffs in multi-access environments

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100825758B1 (en) * 2006-06-19 2008-04-29 한국전자통신연구원 Apparatus and Method on network-based mobility support for dual stack nodes
KR100948693B1 (en) * 2008-10-08 2010-03-18 한국전자통신연구원 Ip conversion apparatus and method for supporting interoperability between different networks using virtualization platform
KR20120085635A (en) * 2011-01-24 2012-08-01 엘지전자 주식회사 Dual mode mobile terminal in wireless communication system and controlling method therefor
CN103856436B (en) * 2012-11-28 2017-12-05 中国电信股份有限公司 Method, home gateway and the Internet of selecting network by user equipment layer protocol
CN204046826U (en) * 2014-05-12 2014-12-24 深圳市沃特沃德科技有限公司 A kind of intelligent mobile terminal without blind area, location
CN106850554B (en) * 2016-12-22 2019-12-17 广州视源电子科技股份有限公司 Method and device for dual-system directional connection
WO2018175470A1 (en) * 2017-03-23 2018-09-27 Intel Corporation Systems, methods and devices for measurement configuration by a secondary node in en-dc
KR102610823B1 (en) * 2017-11-27 2023-12-07 삼성전자주식회사 Communication system and method for network address translation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523953A (en) * 2006-10-12 2009-09-02 艾利森电话股份有限公司 Inter-system handoffs in multi-access environments

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Design of broadband IPv6/lPv4 dual-stack access router based on service stream";Jiming Gao等;《Proceedings of the Fourth International Conference on Parallel and Distributed Computing, Applications and Technologies》;20031020;全文 *
"基于IPv6的省域广电宽带网络认证系统改造设计与实践";陈起等;《广播与电视技术》;20170315;全文 *

Also Published As

Publication number Publication date
CN113014679A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN105939239B (en) Data transmission method and device of virtual network card
CN110177010B (en) Link switching method and device
CN109728984B (en) Access system, method and device
CN110012118B (en) Method and controller for providing Network Address Translation (NAT) service
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN106533973B (en) Method, equipment and system for distributing service message
CN114025021A (en) Communication method, system, medium and electronic device across Kubernetes cluster
CN109547350B (en) Route learning method and gateway equipment
CN111294416A (en) Method for obtaining IP address and related product
CN112235175A (en) Access method and access device of network bridge equipment and network bridge equipment
CN110691110B (en) Communication method, device, system, terminal, equipment and medium
CN112449752A (en) IPv6 address configuration method and routing equipment
CN114697388B (en) Data transmission method and device
CN108183978B (en) Communication equipment IP address configuration method and communication equipment
CN107483369B (en) Message processing method and virtual switch
CN104426816A (en) Virtual machine communication method and device
CN113014679B (en) Communication method, device and system
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN107534585B (en) Communication method and terminal
CN110351394B (en) Network data processing method and device, computer device and readable storage medium
US20100238930A1 (en) Router and method of forwarding ipv6 packets
CN113179295B (en) Message processing method and device
CN114024903A (en) Network switching method and device and gateway equipment
CN114070816A (en) Server message processing method, system, electronic equipment and readable storage medium
CN108667951B (en) Virtual MAC address mapping method and device, storage medium and relay equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant