WO2017156704A1 - Method for establishing data channel and transmitting data packet, terminal, server, and system - Google Patents

Method for establishing data channel and transmitting data packet, terminal, server, and system Download PDF

Info

Publication number
WO2017156704A1
WO2017156704A1 PCT/CN2016/076356 CN2016076356W WO2017156704A1 WO 2017156704 A1 WO2017156704 A1 WO 2017156704A1 CN 2016076356 W CN2016076356 W CN 2016076356W WO 2017156704 A1 WO2017156704 A1 WO 2017156704A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
terminal
data
resource pool
virtual
Prior art date
Application number
PCT/CN2016/076356
Other languages
French (fr)
Chinese (zh)
Inventor
张军
钱湘江
刘亚林
胡亨捷
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/076356 priority Critical patent/WO2017156704A1/en
Publication of WO2017156704A1 publication Critical patent/WO2017156704A1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • H04W36/144Reselecting a network or an air interface over a different radio air interface technology
    • H04W36/1443Reselecting a network or an air interface over a different radio air interface technology between licensed networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data channel establishment and data packet transmission method, terminal, server, and system.
  • the intelligentization of power grid is the development trend of the power industry. More and more power equipments are connected through communication networks to form power communication systems to realize information sharing and control of power systems.
  • the power communication system includes an access network, which is used to support terminals in the power communication system for network connection. Since the wireless access network has a great advantage in construction cost and deployment flexibility compared to the fiber-optic cable network, Therefore, wireless access networks are receiving more and more attention in the field of power communication. Meanwhile, since the power system is an industrial system, the wireless power communication system using the wireless access network requires high reliability of data packet transmission.
  • the wireless power communication system may include at least two wireless access networks, and when the wireless power communication system is interfered or the signal of the wireless access network for which the terminal is currently connected for data packet transmission is poor, the wireless access The data channel of the network will be interrupted, and the terminal will initiate a wireless connection request to another wireless access network.
  • the other wireless access network allocates a new Internet protocol to the terminal (English: Internet Protocol; referred to as IP)
  • IP Internet Protocol
  • the terminal performs data packet transmission on the data channel of the other radio access network according to the new IP address.
  • the current time terminal transmits data packets through the fourth generation communication technology (English: the fourth generation mobile communication technology; 4G) network.
  • the data channel of the 4G network is interrupted.
  • the terminal initiates a wireless connection request to the third generation mobile communication technology (English: the third generation mobile communication technology; 3G) network.
  • the 3G network assigns a new IP address to the terminal, and the terminal according to the new IP
  • the data channel is transmitted on the data channel of the address on the 3G network.
  • the terminal When the terminal in the wireless power communication system performs network switching, the terminal needs to initiate a wireless connection request to another wireless access network, and after the request is successful, the terminal is to receive the other wireless access network.
  • the packet transmission is performed after the new IP address. In this process, the packet transmission is interrupted, resulting in communication delay and data loss. Therefore, the reliability of packet transmission is low.
  • the present invention provides a data channel establishment and data packet transmission method, terminal, server and system.
  • the application to the power communication system in the implementation of the present invention is a typical scenario.
  • a data channel establishing method for a terminal in a wireless power communication system, the data channel establishing method comprising: generating a virtual IP address; establishing according to the virtual IP address and each communication network in the n communication networks Connection, n is greater than or equal to 2; obtains an IP address assigned to the terminal by each communication network in the n communication networks, and obtains n IP addresses; and establishes a data channel with the server by using each of the n IP addresses.
  • the data channel establishing method can be applied to a terminal in a wireless power communication system.
  • the terminal can establish a connection with each communication network of the n communication networks, and obtain an IP address assigned by each communication network to the terminal, and then use each of the n IP addresses to respectively connect with the server.
  • Establishing a data channel increases the number of data channels used to transmit data packets and improves the reliability of packet transmission.
  • the data channel establishing method may further include: establishing a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses; sending the virtual IP address and the first IP resource pool to the server Information, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
  • the terminal can establish a first IP resource pool according to the obtained n IP addresses, and send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the terminal indicated by the virtual IP address.
  • the second IP resource pool in this way, the terminal and the server can select different data channels to transmit data packets, thereby improving the reliability of data packet transmission.
  • the data channel establishing method further includes: determining a service quality of each of the n data channels; sorting the n data channels according to a service quality of each of the n data channels, and obtaining the sorting information. Recording the quality of service and ordering information of each of the n data channels to the first IP resource pool.
  • the terminal determines the quality of service of each data channel, and sorts multiple data channels according to the quality of service, so that different priorities can be selected according to the importance of the data to be transmitted.
  • the data channel transmits data packets, such as selecting a data channel with better quality of service to transmit data packets with higher importance of data, which improves the reliability of data packet transmission.
  • the data channel establishing method may further include: detecting whether an interrupt occurs in the first data channel, where the first data channel is any one of n data channels; when the first data channel is interrupted, The information corresponding to the first data channel in an IP resource pool is set to the prohibited use state.
  • the terminal sets the information corresponding to the interrupted data channel in the first IP resource pool to the forbidden state, so that the data channel with poor service quality can be excluded in time, and the data channel with better service quality is selected. Perform packet transmission.
  • other information corresponding to the data channel that does not satisfy the transmission requirement may be set to the prohibited use state, for example, the data channel whose service quality is less than a certain value is corresponding. The information is set to the prohibited state.
  • the second aspect provides a data channel establishing method for a server in a wireless power communication system, where the data channel establishing method includes: receiving a virtual IP address sent by the terminal and information of the first IP resource pool, the first IP
  • the resource pool includes n IP addresses, each IP address is used for the terminal to access a different communication network, and the virtual IP address is a virtual IP address generated by the terminal; the virtual IP address is established according to the virtual IP address and the information of the first IP resource pool.
  • a second IP resource pool of the indicated terminal, the second resource pool includes n IP addresses; and each of the n IP addresses establishes a data channel with the terminal.
  • the data channel establishment method can be applied to a server in a wireless power communication system.
  • the server can establish a second IP resource pool according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use each of the n IP addresses in the second IP resource pool.
  • the data channel is respectively established with the terminal, which increases the number of data channels used for transmitting data packets, and improves the reliability of data packet transmission.
  • the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
  • the server can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
  • a data packet transmission method for a terminal in a wireless power communication system, the data packet transmission method includes: acquiring a first IP address in a first IP resource pool when data packet transmission is required
  • the first IP address is a target source IP address for performing packet transmission
  • the first The 1P resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first The source IP address is the virtual IP address of the terminal, and the first destination IP address is the IP address of the server; the first source IP address of the data packet is replaced by the virtual IP address to the first IP address, and the processed data packet is obtained; The data channel of the communication network indicated by an IP address and the first destination IP address transmits the processed data packet to the server.
  • the data channel establishing method can be applied to a terminal in a wireless power communication system.
  • the terminal can obtain the first IP address in the first IP resource pool, and replace the first source IP address of the data packet with the virtual IP address and the first IP address.
  • the processed data packet is transmitted to the server through the data channel, and when the terminal performs network switching, the terminal does not need to initiate a wireless connection request to another communication network to perform a new IP address according to another communication network.
  • the data packet transmission solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission.
  • the data packet transmission method may further include: generating a virtual IP address; establishing a connection with each communication network in the n communication networks according to the virtual IP address; acquiring an IP allocated by each communication network in the n communication networks to the terminal. Address; establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
  • the terminal establishes a first IP resource pool in advance, so that when the data packet needs to be transmitted, the first IP address is obtained in the first IP resource pool, and then the first source IP address of the data packet is virtualized. The IP address is replaced with the first IP address, and the processed data packet is obtained, and the data packet transmission process is completed.
  • establishing a connection with each of the n communication networks according to the virtual IP address including: sending a connection request message to the packet gateway of each of the n communication networks according to the virtual IP address, where the connection request message includes a virtual IP address; receiving a connection response message sent by a packet gateway of each communication network, each connection response message including an IP address assigned by the communication network to the terminal.
  • the terminal receives the connection response message sent by the packet gateway of each communication network, acquires the IP address in the connection response message, and establishes the first IP resource pool.
  • the connection response message may further include a port number assigned by the communication network to the terminal.
  • the first IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels
  • the data packet transmission method further includes: determining n data. Quality of service for each data channel in the channel; based on each of the n data channels The service quality of the channel sorts the n data channels to obtain sorting information; and records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the terminal determines the quality of service of each data channel, and sorts multiple data channels according to the quality of service, so that different data channels can be selected according to the importance of the data to be transmitted, such as selecting A data channel with better quality of service transmits data packets with higher importance of data, which improves the reliability of data packet transmission.
  • the data packet further includes: a type of the data to be transmitted, and acquiring the first IP address in the first IP resource pool, including: determining an important level of the data to be transmitted according to the type of the data to be transmitted; Level, quality of service and ranking information for each of the n data channels, m data channels are determined in n data channels, m is greater than or equal to 1, and less than n; each data channel of m data channels
  • the corresponding communication network is the IP address assigned by the terminal as the first IP address.
  • the terminal can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
  • the data packet transmission method may further include: detecting whether the first data channel is interrupted, the first data channel is any one of the n data channels; when the first data channel is interrupted, the first The information corresponding to the first data channel in the IP resource pool is set to the forbidden state.
  • the terminal sets the information corresponding to the interrupted data channel in the first IP resource pool to the prohibited use state, so that the data channel with poor service quality can be excluded in time, and the data channel with better service quality is selected. Perform packet transmission.
  • other information corresponding to the data channel that does not satisfy the transmission requirement may be set to the prohibited use state, for example, the data channel whose service quality is less than a certain value is corresponding. The information is set to the prohibited state.
  • the data packet transmission method may further include: sending, to the server, the virtual IP address and the information of the first IP resource pool, so that the server indicates the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the terminal sends the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the second IP resource pool of the terminal indicated by the virtual IP address, so that the server can select different data.
  • Channels transmit data packets, improving the reliability of packet transmission.
  • the data packet transmission method may further include: when the information of the first IP resource pool changes, sending the changed information of the first IP resource pool to the server, so that the server changes according to the server.
  • the information of the first IP resource pool is updated to the second IP resource pool.
  • the terminal may send the changed information of the first IP resource pool to the server, so that the server performs the second IP resource pool according to the changed information of the first IP resource pool.
  • the update enables the server to exclude data channels that do not meet the transmission requirements, and select a data channel with better quality of service for packet transmission. For example, when the data channel is interrupted, after the terminal sets the information corresponding to the data channel to the forbidden state, the information of the changed first IP resource pool may be sent to the server, so that the server accesses the second IP resource pool.
  • the information corresponding to the data channel in the middle is set to the prohibited use state.
  • the data packet transmission method may further include: the terminal updates the service quality and the sorting information of each data channel in the first IP resource pool every preset time period, so that the data with better service quality can be selected in time.
  • the channel carries out packet transmission, which further improves the reliability of data packet transmission.
  • obtaining the first IP address in the first IP resource pool includes: the terminal uses the IP address corresponding to the communication network corresponding to each data channel of the n data channels as the first IP address, and the n data channels.
  • the link hot backup is formed, which greatly improves the reliability of data packet transmission.
  • the quality of service may be a parameter such as a signal to noise ratio, a number of packet retransmissions, a number of channel carriers, a channel bandwidth, a channel delay, a channel type, and a channel scheduling level.
  • the communication network may be a wireless local area network, a wireless cellular network, a wireless private network, a ZigBee network, and a low-power wireless personal area network 6LowPAN based on the Internet Protocol version 6.
  • a fourth aspect provides a data packet transmission method for a server in a wireless power communication system, where the data packet transmission method includes: acquiring a second IP in a second IP resource pool when data packet transmission is required The address, the second IP address is a target destination IP address for data packet transmission, and the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, and n is greater than or equal to 2.
  • the second IP resource pool is established according to the virtual IP address of the terminal and the information of the first IP resource pool, where the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, and the second source IP address.
  • the IP address of the server, the second destination IP address is a virtual IP address; the second destination IP address of the data packet is replaced by the virtual IP address to the second IP address, and the processed data packet is obtained; the second source IP address is The data channel of the communication network indicated by the second IP address transmits the processed data packet to the terminal; wherein the first IP resource pool includes n IP addresses.
  • the data channel establishment method can be applied to a server in a wireless power communication system.
  • the server can obtain the second IP address in the second IP resource pool, and replace the second destination IP address of the data packet with the virtual IP address.
  • the second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
  • the data packet transmission method may further include: receiving the virtual IP address sent by the terminal and the information of the first IP resource pool; establishing the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second IP resource pool may further include: receiving the virtual IP address sent by the terminal and the information of the first IP resource pool; establishing the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. The second IP resource pool.
  • the server pre-establishes a second IP resource pool, so that when the data packet needs to be transmitted, the second IP address is obtained in the second IP resource pool, and then the second destination IP address of the data packet is virtualized.
  • the IP address is replaced with the second IP address, and the processed data packet is obtained, and the data packet transmission process is completed.
  • the data packet further includes: a type of data to be transmitted
  • the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, where Obtaining the second IP address in the second IP resource pool, including: determining an important level of the data to be transmitted according to the type of the data to be transmitted; according to the important level of the data to be transmitted, the quality of service and the ordering of each data channel in the n data channels
  • the p data channels are determined in the n data channels, p is greater than or equal to 1, and is less than n; and the communication network corresponding to each data channel of the p data channels is the IP address assigned by the terminal as the second IP address.
  • the server can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
  • the data packet transmission method further includes: receiving information of the changed first IP resource pool sent by the terminal; and updating the second IP resource pool according to the changed information of the first IP resource pool.
  • the terminal may send the changed information of the first IP resource pool to the server, and the server according to the changed information of the first IP resource pool.
  • the second IP resource pool is updated, so that the server can exclude data channels that do not meet the transmission requirements, and select a data channel with better quality of service for data packet transmission.
  • the information of the changed first IP resource pool may be sent to the server, and the server may be in the second IP resource pool.
  • the information corresponding to the data channel is set to the prohibited use state.
  • a terminal includes: a generating unit, configured to generate a virtual IP address, and a first establishing unit, configured to establish a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than Or equal to 2; an acquisition unit for acquiring each communication network in n communication networks The network assigns an IP address to the terminal, and obtains n IP addresses.
  • the second establishing unit is configured to establish a data channel with the server by using each of the n IP addresses.
  • the terminal may further include: a third establishing unit, configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses, and a sending unit, configured to send the virtual IP to the server And the information of the first IP resource pool, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
  • a third establishing unit configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses
  • a sending unit configured to send the virtual IP to the server And the information of the first IP resource pool, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
  • the terminal may further include: a determining unit, configured to determine a quality of service of each of the n data channels; and a sorting unit, configured to compare n quality of service data according to each of the n data channels The data channel is sorted to obtain sorting information; and the recording unit is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • a determining unit configured to determine a quality of service of each of the n data channels
  • a sorting unit configured to compare n quality of service data according to each of the n data channels The data channel is sorted to obtain sorting information
  • the recording unit is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the terminal may further include: a detecting unit, configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
  • a detecting unit configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
  • a server includes: a receiving unit, configured to receive a virtual IP address sent by the terminal and information of a first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address The terminal is used to access a different communication network, and the virtual IP address is a virtual IP address generated by the terminal.
  • the first establishing unit is configured to establish a terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second IP resource pool includes a plurality of IP addresses, and the second establishing unit is configured to establish a data channel with the terminal by using each of the n IP addresses.
  • the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
  • the seventh aspect provides a terminal, where the terminal includes: a first acquiring unit, configured to acquire a first IP address in a first IP resource pool when the data packet needs to be transmitted, where the first IP address is used for performing The destination IP address of the data packet transmission, the first IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, the first source.
  • the IP address and the first destination IP address, the first source IP address is the virtual IP address of the terminal, the first destination IP address is the IP address of the server, and the replacement unit is configured to use the virtual IP address of the first source IP address of the data packet.
  • Replacing with the first IP address obtaining the processed data packet; and transmitting, for transmitting to the server by the data channel of the communication network indicated by the first IP address and the first destination IP address The processed packet.
  • the terminal may further include: a generating unit, configured to generate a virtual IP address, a first establishing unit, configured to establish a connection with each of the n communication networks according to the virtual IP address, and a second acquiring unit, Obtaining an IP address assigned by each communication network to the terminal in the n communication networks; a second establishing unit, configured to establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
  • a generating unit configured to generate a virtual IP address
  • a first establishing unit configured to establish a connection with each of the n communication networks according to the virtual IP address
  • a second acquiring unit Obtaining an IP address assigned by each communication network to the terminal in the n communication networks
  • a second establishing unit configured to establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
  • the first establishing unit is specifically configured to: send, according to the virtual IP address, a connection request message to a packet gateway of each communication network in the n communication networks, where the connection request message includes a virtual IP address; and receive a packet of each communication network.
  • a connection response message sent by the gateway, and each connection response message includes an IP address assigned by the communication network to the terminal.
  • the first IP resource pool further includes the service quality of the data channel of each communication network of the n communication networks and the ranking information of the service quality of the n data channels
  • the terminal may further include: a determining unit, configured to determine Quality of service for each of the n data channels; a sorting unit for sorting n data channels according to the quality of service of each of the n data channels to obtain sorting information; and a recording unit for n The quality of service and ordering information of each data channel in each data channel are recorded to the first IP resource pool.
  • the data packet further includes: a type of the data to be transmitted, where the first acquiring unit is specifically configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; and according to an important level of the data to be transmitted, n data channels
  • the service quality and the sorting information of each data channel, determining m data channels in n data channels, m is greater than or equal to 1, and less than n; the communication network corresponding to each data channel in the m data channels is a terminal
  • the assigned IP address is used as the first IP address.
  • the terminal may further include: a detecting unit, configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
  • a detecting unit configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
  • the terminal may further include: a first sending unit, configured to send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes a virtual IP according to the virtual IP address and the information of the first IP resource pool.
  • the second IP resource pool of the terminal indicated by the address, and the second resource pool includes n IP addresses.
  • the terminal may further include: a second sending unit, configured to: when the information of the first IP resource pool changes, send the changed information of the first IP resource pool to the server, so that the server changes according to the The information of the first IP resource pool is updated to the second IP resource pool.
  • a second sending unit configured to: when the information of the first IP resource pool changes, send the changed information of the first IP resource pool to the server, so that the server changes according to the The information of the first IP resource pool is updated to the second IP resource pool.
  • a server includes: an obtaining unit, configured to acquire a second IP address in a second IP resource pool when the data packet needs to be transmitted, where the second IP address is used for performing a data packet
  • the destination IP address of the transmission the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is based on the terminal sent by the terminal.
  • the virtual IP address and the information of the first IP resource pool are established, and the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, where the second source IP address is the IP address of the server, and the second destination IP address is a virtual IP address; a replacement unit, configured to replace the second destination IP address of the data packet by the virtual IP address with the second IP address to obtain the processed data packet; and the transmission unit, configured to pass the second source IP address and the second The data channel of the communication network indicated by the IP address transmits the processed data packet to the terminal; wherein the first IP resource pool includes n IP addresses.
  • the server may further include: a first receiving unit, configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool; and the establishing unit, configured to use the virtual IP address and the information of the first IP resource pool Establish a second IP resource pool of the terminal indicated by the virtual IP address.
  • a first receiving unit configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool
  • the establishing unit configured to use the virtual IP address and the information of the first IP resource pool Establish a second IP resource pool of the terminal indicated by the virtual IP address.
  • the data packet further includes: a type of data to be transmitted, where the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, and obtains
  • the unit is specifically configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; according to the important level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, in the n data channels
  • the p data channels are determined, p is greater than or equal to 1, and is less than n; the communication network corresponding to each data channel of the p data channels is the IP address assigned by the terminal as the second IP address.
  • the server may further include: a second receiving unit, configured to receive information about the changed first IP resource pool sent by the terminal; and an update unit, configured to use, according to the changed information of the first IP resource pool The second IP resource pool is updated.
  • a ninth aspect provides a data channel establishing system, including a terminal and a server, wherein the terminal is the terminal according to the fifth aspect; the server is the server according to the sixth aspect.
  • the tenth aspect provides a data packet transmission system, including a terminal and a server, where the terminal is the terminal according to the seventh aspect; the server is the server according to the eighth aspect.
  • a terminal comprising: at least one processor, a memory, a communication module, at least one communication bus, and a communication antenna.
  • the communication bus is used to implement connection communication between these components.
  • the communication module can be used for remote communication.
  • the communication antenna is used to receive and transmit communication signals.
  • the processor is configured to execute an application stored in the memory, the application including the first aspect The data channel establishment method described.
  • a server comprising: a processor, a network interface, a memory, and a bus.
  • the bus is used to connect the processor, network interface and memory.
  • the processor is configured to execute a program stored in the memory, the program comprising the data channel establishing method of the second aspect.
  • a terminal comprising at least one processor, a memory, a communication module, at least one communication bus, and a communication antenna.
  • the communication bus is used to implement connection communication between these components.
  • the communication module can be used for remote communication.
  • the communication antenna is used to receive and transmit communication signals.
  • the processor is configured to execute an application stored in the memory, the application comprising the data packet transmission method of the third aspect.
  • a server comprising: a processor, a network interface, a memory, and a bus.
  • the bus is used to connect the processor, network interface and memory.
  • the processor is configured to execute a program stored in the memory, the program comprising the data packet transmission method of the fourth aspect.
  • a data channel establishing system comprising a terminal and a server, wherein the terminal is the terminal according to the eleventh aspect; the server is the server according to the twelfth aspect.
  • a data packet transmission system comprising a terminal and a server, wherein the terminal is the terminal according to the thirteenth aspect; the server is the server according to the fourteenth aspect.
  • the data channel establishment and data packet transmission method, the terminal, the server and the system provided by the present invention when the data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the first IP address to the data packet.
  • the address information in the process is processed, and the processed data packet is transmitted to the server through the data channel, and the server can obtain the second IP address in the second IP resource pool, and use the second IP address to perform the address information in the data packet.
  • the processed data packet is transmitted to the terminal through the data channel, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission.
  • FIG. 1 is a schematic diagram of an implementation environment involved in various embodiments of the present invention.
  • FIG. 2 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for establishing a data channel according to an embodiment of the present invention.
  • 4-1 is a flowchart of still another method for establishing a data channel according to an embodiment of the present invention.
  • 4-2 is a flowchart of establishing a connection between a terminal and a communication network in the embodiment shown in FIG. 4-1;
  • FIG. 4-3 is a schematic structural diagram of a terminal in the embodiment shown in FIG. 4-1;
  • FIG. 4-4 is a schematic structural diagram of a server in the embodiment shown in FIG. 4-1;
  • FIG. 5 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of another method for transmitting a data packet according to an embodiment of the present invention.
  • 7-1 is a flowchart of still another method for transmitting a data packet according to an embodiment of the present invention.
  • FIG. 7-2 is a flowchart of obtaining, by the terminal, the first IP address in the first IP resource pool in the embodiment shown in FIG. 7-1;
  • FIG. 7-3 is a flowchart of the server acquiring the second IP address in the second IP resource pool in the embodiment shown in FIG. 7-1;
  • FIG. 7-5 is a flowchart of the network switching performed by the terminal in FIG. 7-4;
  • FIGS. 7-6 are schematic diagrams of a model involved in a data packet transmission method in the prior art.
  • FIGS. 7-7 are schematic diagrams of models involved in a data packet transmission method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • 12-1 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • 12-2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 14-1 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 15-1 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 15-2 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the terminal 11 may be any one of the wireless power communication systems.
  • the server 12 may be a server in a wireless power communication system (the server is a service server), and the server 12 may be a server, or a server cluster composed of several servers, or a cloud computing service center.
  • the terminal 11 can establish a connection with each communication network of n (n is greater than or equal to 2) communication networks 13 according to the generated virtual IP address, and obtain an IP address allocated by each communication network in the n communication networks for the terminal, and obtain n
  • the IP address, and each of the n IP addresses, respectively, establishes a data channel with the server 12, so that the terminal and the server transmit the data packet through the data channel.
  • the implementation environment is described by taking n equal to 2 as an example.
  • the embodiments of the present invention are applicable to the wireless power communication system, and can be applied to any other scenario in which data packet transmission is performed.
  • the method for establishing a data channel is applied to the terminal 11 in FIG. 1 as an example.
  • the method for establishing a data channel may include:
  • Step 201 Generate a virtual IP address.
  • Step 202 Establish a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
  • Step 203 Obtain an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses.
  • Step 204 Establish a data channel with the server by using each of the n IP addresses.
  • the terminal can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire each pass in the n communication networks.
  • the IP address assigned by the network to the terminal obtains n IP addresses, and then uses each of the n IP addresses to establish a data channel with the server respectively.
  • the terminal and the server are used to transmit data packets. The number of data channels is larger, thus improving the reliability of packet transmission.
  • FIG. 3 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention.
  • the method for establishing a data channel is applied to the server 12 in FIG. 1 as an example.
  • the method for establishing a data channel may include:
  • Step 301 Receive a virtual IP address sent by the terminal and information of the first IP resource pool, where the first IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, and the virtual IP address is generated by the terminal. Virtual IP address.
  • Step 302 Establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
  • Step 303 Establish a data channel with the terminal by using each of the n IP addresses.
  • the server can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and reuse
  • Each of the n IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses, compared to the prior art, the terminal and the server.
  • the number of data channels used to transmit data packets is larger, thus improving the reliability of packet transmission.
  • 4-1 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention. The method for establishing a data channel is applied to the implementation environment shown in FIG.
  • Step 401 The terminal generates a virtual IP address.
  • the virtual IP address is visible to the application layer of the terminal, and the application layer of the terminal can see the virtual IP address, thereby realizing the effect that the data channel is transparent to the application layer.
  • the application layer in the terminal may generate a virtual identity number (abbreviation: ID), and the terminal may use the virtual ID as the virtual IP address of the terminal. This virtual IP address can always be used by the terminal.
  • the terminal can be a mobile phone, and the mobile phone can be a multi-mode mobile phone.
  • Multi-mode mobile phones refer to networks that can be used in different technical standards, such as Global System For Mobile Communications (GSM) networks and code division multiple access (English: CodeDivisionMultipleAccess; referred to as: CDMA) Mobile phones used between networks, multi-mode phones can reside in multiple networks at the same time.
  • the terminal may be a single user identity supporting a long term evolution (English: Long Term Evolution; LTE for short) network, a second generation mobile communication technology (English: the second generation mobile communication technology; 2G) network, and a 3G network.
  • Identification module (English: Subscriber Identity Module; referred to as: SIM) card multi-mode mobile phone or dual SIM card multi-mode mobile phone.
  • Step 402 The terminal establishes a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
  • the terminal can detect n communication networks (ie, wireless access networks) that the terminal can connect through automatic frequency sweeping technology.
  • the communication network may be a wireless local area network, a wireless cellular network, a wireless private network, a ZigBee network, and a low-power wireless personal area network based on the Internet Protocol version 6. (English: Internet Protocol Version 6 over Low- The power wireless personal area network (abbreviation: 6LowPAN) and the like, the embodiment of the present invention does not limit the network form of the communication network.
  • the terminal includes a packet switching (English: Packet Switch; PS) domain and a circuit switching (English: Circuit Switch; CS: abbreviation: CS) domain, where the PS domain is mainly responsible for session control related to the packet type service.
  • PS Packet Switch
  • CS Circuit Switch
  • the PS domain is mainly used for data transmission
  • the CS domain is mainly responsible for call control and mobility management functions related to circuit-type services
  • the CS domain is mainly used for voice calls.
  • the embodiment of the present invention can solve the problem of communication delay and data loss in the PS domain data packet transmission process, and the embodiment of the present invention can be applied to various scenarios involving PS domain data transmission.
  • step 402 may include:
  • Step 4021 Send a connection request message to a packet gateway of each communication network in the n communication networks according to the virtual IP address.
  • the connection request message includes a virtual IP address.
  • the terminal sends a connection request message to the packet gateway of each communication network in the n communication networks according to the virtual IP address.
  • the n communication networks are respectively a 2G network, a 3G network, and a 4G network
  • the terminal according to the virtual IP address The packet gateway of the 2G network sends a connection establishment request, and the terminal sends a connection request message to the packet gateway of the 3G network according to the virtual IP address, and the terminal sends a connection request message to the packet gateway of the 4G network according to the virtual IP address.
  • Step 4022 Receive a connection response message sent by a packet gateway of each communication network, where each connection response message includes an IP address allocated by the communication network for the terminal.
  • the terminal sends a connection to the packet gateway of each communication network in the n communication networks according to the virtual IP address. After receiving the request message, a connection response message sent by the packet gateway of each communication network is received.
  • the terminal sends a connection establishment request to the packet gateway of the 2G network according to the virtual IP address, and the packet gateway of the 2G network sends a connection response message to the terminal, where the connection response message includes The IP address assigned by the 2G network to the terminal.
  • the terminal sends a connection establishment request to the packet gateway of the 3G network according to the virtual IP address, and the packet gateway of the 3G network sends a connection response message to the terminal, where the connection response message includes an IP address allocated by the 3G network for the terminal.
  • the terminal sends a connection establishment request to the packet gateway of the 4G network according to the virtual IP address, and the packet gateway of the 4G network sends a connection response message to the terminal, where the connection response message includes an IP address allocated by the 4G network for the terminal.
  • the terminal is attached to 2G networks, 3G networks, and 4G networks.
  • each connection response message may further include a port number assigned by the communication network to the terminal, the port number being a number of a port for distinguishing the service.
  • Step 403 The terminal acquires an IP address allocated by each communication network in the n communication networks for the terminal, and obtains n IP addresses.
  • the n IP addresses are invisible to the application layer of the terminal, so that the application layer cannot perceive the change of the underlying IP address, thereby realizing the effect of shielding different data channels from the application layer software.
  • the terminal After the terminal establishes a connection with each communication network in the n communication networks according to the virtual IP address, the terminal can obtain an IP address assigned to the terminal by each communication network in the n communication networks, and the terminal acquires the IP address and registers with the corresponding communication network. in. At the same time, the terminal can also obtain the port number assigned by the communication network to the terminal. Taking the 2G network, the 3G network, and the 4G network in step 4022 as an example, the terminal acquires an IP address assigned to the terminal by each communication network in the three communication networks, and obtains three IP addresses.
  • Step 404 The terminal establishes a first IP resource pool according to the n IP addresses.
  • the first IP resource pool includes n IP addresses.
  • the terminal may establish a first IP resource pool according to the n addresses obtained in step 403.
  • the first IP resource pool includes an IP address assigned to the terminal by each of the n communication networks to which the terminal is connected.
  • the first IP resource pool may further include a port number assigned to the terminal by each communication network.
  • the terminal may set a virtual internet protocol proxy (English: Virtual Internet Protocol Proxy; referred to as: VIPP) module, and the terminal may establish a first IP resource pool according to n IP addresses through the VIPP module.
  • VIPP Virtual Internet Protocol Proxy
  • 4-3 shows a schematic structural diagram of a terminal provided with a VIPP module.
  • n communication networks connected to the terminal are respectively a communication network 1, a communication network 2, a communication network 3, .
  • the communication network n, n communication networks assigned IP addresses for the terminals are IP1, IP2, IP3, ..., IPn.
  • the application layer of the terminal generates a virtual IP address.
  • the VIPP module uses the virtual ID as a virtual IP address.
  • the VIPP module can automatically scan the communication network that the terminal can connect, and control the terminal to establish a connection with each communication network in the n communication networks according to the virtual IP address, and the VIPP module acquires each communication network in the n communication networks as the terminal.
  • the assigned IP address obtains n IP addresses, and then establishes a first IP resource pool according to n IP addresses.
  • Step 405 The terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • the terminal may send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the information according to the virtual IP address and the information of the first IP resource pool.
  • the second IP resource pool of the terminal indicated by the virtual IP address.
  • the terminal may send the virtual IP address and the information of the first IP resource pool to the server through the VIPP module shown in FIG. 4-3.
  • the server can set a virtual link control (English: Virtual Internet Protocol Control; referred to as: VIPC) module, and Figure 4-4 shows the structure of the server with the VIPC module.
  • the n communication networks connected to the server are respectively a communication network 1, a communication network 2, a communication network 3, ..., a communication network n.
  • the terminal can automatically send the transmission control protocol to the VIPC module shown in Figure 4-4 (English: Transmission Control Protocol; TCP).
  • TCP Transmission Control Protocol
  • a link setup request establishes a TCP link.
  • the VIPP module After the TCP link is established, the VIPP module sends the virtual IP address and the information of the first IP resource pool to the VIPC module through the established TCP link. As shown in Figure 4-4, the n IP addresses in the first IP resource pool can be centrally stored in the IP module.
  • Step 406 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second resource pool includes n IP addresses.
  • the server may establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second IP resource pool may also include a port number assigned to the terminal by each communication network.
  • the server may establish a second IP resource pool according to the virtual IP address and the information of the first IP resource pool by using the VIPC module shown in FIG. 4-4.
  • the information of the second IP resource pool is the same as the information of the first IP resource pool.
  • the VIPC module can establish its own IP resource pool according to the information of the first IP resource pool sent by the VIPP module, and maintain the information of the IP resource pool.
  • Step 407 The terminal establishes a data channel with the server by using each of the n IP addresses.
  • the terminal establishes a data channel with the server by using each of the n IP addresses, including: the terminal separately sends a channel to the server according to each of the n IP addresses. Request; the terminal receiving server establishes a response based on the channel respectively sent by each of the n IP addresses.
  • the terminal acquires an IP address assigned to each terminal in each of the three communication networks, obtains three IP addresses, and then uses each of the three IP addresses.
  • Each IP address establishes a data channel with the server. Assuming that the three IP addresses are IPa, IPb, and IPc, the terminal can establish three data channels with the server by using IPa, IPb, and IPc.
  • the terminal and the server are used to transmit the data channel of the data packet. More numbers increase the reliability of packet transmission.
  • the terminal may refer to the prior art, and details are not described herein.
  • the VIPP module in Figure 4-3 can manage multiple data channels upwards and shield different data channels for the application layer.
  • the VIPC module in Figure 4-4 functions similarly to the VIPP module. Manage the underlying multiple data channels down and shield different data channels for the business layer.
  • the terminal establishes a data channel with the server by using each of the n IP addresses, and the server establishes a data channel with the terminal by using each of the n IP addresses.
  • the server may establish a data channel with the terminal by using the n IP addresses in the first IP resource pool sent by the terminal, or establish a data channel with the terminal by using the n IP addresses in the established second IP resource pool.
  • Step 408 The terminal determines a quality of service of each of the n data channels.
  • the terminal can measure and record the quality of service of each data channel in real time through the VIPP module shown in Figure 4-3 (English: Quality of Service; QoS for short).
  • the service quality of the data channel may be the signal-to-noise ratio of the uplink and downlink channels of the data channel (English: Signal-Noise Ratio; SNR), number of data packet retransmissions, number of channel carriers, channel bandwidth, channel delay, channel type.
  • SNR Signal-Noise Ratio
  • the specific form of the service quality is not limited in the embodiment of the present invention. For example, the higher the signal-to-noise ratio, the better the quality of the data channel. The smaller the number of packet retransmissions, the better the quality of the data channel.
  • the VIPP module can also comprehensively consider a plurality of parameters to calculate the service quality of the data channel. For the specific calculation process, reference may be made to the prior art, and details are not described herein again.
  • Step 409 The terminal sorts the n data channels according to the service quality of each of the n data channels to obtain the sorting information.
  • the terminal can sort the n data channels according to the service quality of each data channel in the n data channels by using the VIPP module shown in Figure 4-3 to obtain sorting information.
  • the data channel established by the terminal using IPa and the server is PS channel A
  • the terminal utilizes IPb and service.
  • the data channel established by the device is PS channel B
  • the data channel established by the terminal using IPc and the server is PS channel C. If the quality of service of the data channel is represented by a number, the larger the number, the better the quality of service of the data channel.
  • the VIPP module sorts the data channels according to the service quality of the data channel from good to bad, and obtains: PS channel C, PS channel B and PS channel A.
  • Step 410 The terminal records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the VIPP module shown in Figure 4-3 records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the VIPP module can provide the quality of service of PS channel A: 2, the quality of service of PS channel B: 3, the quality of service of PS channel C: 4, And sorting information: PS channel C, PS channel B, and PS channel A are recorded in the first IP resource pool.
  • the second IP resource pool may further include a quality of service of each of the n data channels and a quality of service of the n data channels. information.
  • Step 411 The terminal detects whether an interruption occurs in the first data channel.
  • the first data channel is any one of the n data channels.
  • the terminal can detect whether the data channel is interrupted by using the VIPP module shown in Figure 4-3.
  • Step 412 When the first data channel is interrupted, the terminal sets the information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  • the terminal When the terminal detects that there is a data channel interruption through the VIPP module shown in Figure 4-3, the terminal can set the information corresponding to the data channel in the first IP resource pool, such as the IP address of the data channel, through the VIPP module.
  • the use of the state is prohibited, so that the data channel with poor service quality can be eliminated in time, and the data channel with better quality of service is selected for data packet transmission.
  • the terminal sets the information corresponding to the first data channel in the first IP resource pool to the forbidden state, that is, the terminal sets the information corresponding to the first communication channel in the first IP resource pool, such as the IP address corresponding to the first data channel, to be unavailable. For example, after the information corresponding to the first data channel is set to be unavailable, the terminal cannot transmit the data packet through the first data channel.
  • the terminal can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire each communication network in the n communication networks for the terminal. IP address, get n IP addresses, and then use each of the n IP addresses to establish a data channel with the server.
  • the server can establish a virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool.
  • the second IP resource pool of the indicated terminal, and each of the n IP addresses respectively establishes a data channel with the terminal, and the number of data channels used by the terminal and the server to transmit the data packet is compared with the prior art. More, therefore, improves the reliability of packet transmission.
  • FIG. 5 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method may be applied to the terminal 11 in FIG. 1 as an example.
  • the data packet transmission method may include:
  • Step 501 When the data packet transmission is required, obtain the first IP address in the first IP resource pool, where the first IP address is a target source IP address used for data packet transmission, and the first IP resource pool includes n IP addresses. Address, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first source IP address is a virtual terminal. IP address, the first destination IP address is the IP address of the server.
  • Step 502 Replace the first source IP address of the data packet with the virtual IP address and the first IP address, and obtain the processed data packet.
  • Step 503 Transmit the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
  • the data packet transmission method can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and the first source IP address of the data packet is virtualized.
  • the IP address is replaced with the first IP address, and the processed data packet is obtained, and then the processed data packet is transmitted to the server through the data channel.
  • the terminal does not need to initiate to another communication network when performing network switching.
  • the wireless connection request performs data packet transmission according to the new IP address allocated by another communication network, and solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
  • FIG. 6 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method may be applied to the server 12 in FIG. 1 as an example.
  • the data packet transmission method may include:
  • Step 601 When a data packet transmission is required, obtain a second IP address in the second IP resource pool, where the second IP address is a destination destination IP address used for data packet transmission, and the second IP resource pool includes n IP addresses. Address, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is established according to the virtual IP address of the terminal sent by the terminal and the information of the first IP resource pool, the data packet The data source to be transmitted, the second source IP address, and the second destination IP address, the second source IP address is the IP address of the server, the second destination IP address is the virtual IP address, and the first IP resource pool includes n IP addresses.
  • Step 602 Replace the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
  • Step 603 Transmit the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
  • the data packet transmission method provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet transmission needs to be performed, and the second destination IP address of the data packet is virtualized.
  • the IP address is replaced with the second IP address, and the processed data packet is obtained, and then the processed data packet is transmitted to the terminal through the data channel, which solves the problem of data loss during the data packet transmission process and improves the reliability of the data packet transmission.
  • FIG. 7-1 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method may be applied to the implementation environment shown in FIG.
  • Step 701 The terminal generates a virtual IP address.
  • step 701 can be described with reference to step 401.
  • Step 702 The terminal establishes a connection with each of the n communication networks according to the virtual IP address.
  • n is greater than or equal to 2.
  • Step 703 The terminal acquires an IP address assigned by each communication network in the n communication networks to the terminal.
  • step 703 The specific process of step 703 can be described with reference to step 403.
  • Step 704 The terminal establishes a first IP resource pool.
  • the first IP resource pool includes n IP addresses.
  • the specific process of step 704 can be described with reference to step 404.
  • Step 705 The terminal determines a quality of service of each of the n data channels.
  • the first IP resource pool further includes the service quality of the data channel of each communication network in the n communication networks and the ranking information of the service quality of the n data channels.
  • the specific process of step 705 can be described with reference to step 408.
  • Step 706 The terminal sorts the n data channels according to the service quality of each of the n data channels to obtain the sorting information.
  • step 706 The specific process of step 706 can be described with reference to step 409.
  • Step 707 The terminal records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • step 707 The specific process of step 707 can be described with reference to step 410.
  • the terminal updates the service quality and the sorting information of each data channel in the first IP resource pool every preset time period, and the terminal accesses the first IP resource pool every preset time period.
  • the information is updated, and the data channel with better service quality can be selected in time for data packet transmission, thereby further improving the reliability of data packet transmission.
  • the terminal may update the information of the first IP resource pool through the VIPP module shown in Figure 4-3. Taking PS channel A, PS channel B, and PS channel C in step 410 as an example, assume that the current time, the VIPP module detects that the quality of service of PS channel A is 2, the quality of service of PS channel B is 3, and the service of PS channel C.
  • the quality is 4, after the preset time period, the VIPP module detects that the service quality of PS channel A is 3, the service quality of PS channel B is 4, and the service quality of PS channel C is 2, then the VIPP module can access the first IP resource.
  • the original quality of service of the three data channels in the pool is updated, that is, the quality of service of PS channel A is updated from 2 to 3, the quality of service of PS channel B is updated from 3 to 4, and the quality of service of PS channel C is updated by 4. 2, and reordering the 3 data channels according to the quality of service from good to bad, obtaining: PS channel B, PS channel A and PS channel C.
  • Step 708 The terminal detects whether an interruption occurs in the first data channel.
  • the first data channel is any one of n data channels.
  • the specific process of step 708 can be described with reference to step 411.
  • Step 709 When the first data channel is interrupted, the terminal sets the information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  • step 709 The specific process of step 709 can be described with reference to step 412.
  • Step 710 The terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • step 710 The specific process of step 710 can be described with reference to step 405.
  • Step 711 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second resource pool includes n IP addresses.
  • the second IP resource pool further includes ranking information of the quality of service of the data channel of each of the n communication networks and the quality of service of the n data channels.
  • the specific process of step 711 can be described with reference to step 406.
  • Step 712 When the information of the first IP resource pool changes, the terminal sends the changed information of the first IP resource pool to the server.
  • the terminal may change the first IP resource pool.
  • the information is sent to the server, so that the server updates the second IP resource pool according to the changed information of the first IP resource pool, so that the server can select a data channel with better quality of service for data packet transmission.
  • the terminal can send the changed information of the first IP resource pool to the VIPC module of the server through the VIPP module shown in Figure 4-3.
  • the VIPC module is the VIPC module shown in Figure 4-4.
  • the information of the changed first IP resource pool may be changed. Sending to the server, so that the server sets the information corresponding to the first data channel in the second IP resource pool to the prohibited use state.
  • Step 713 The server updates the second IP resource pool according to the changed information of the first IP resource pool.
  • the server may update the second IP resource pool according to the changed information of the first IP resource pool by using the VIPC module shown in FIG. 4-4.
  • Step 714 When the data packet transmission needs to be performed, the terminal acquires the first IP address in the first IP resource pool.
  • the first IP address is the target source IP address used for packet transmission.
  • the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, the first source IP address is a virtual IP address of the terminal, and the first destination IP address is an IP address of the server.
  • the number of the first IP address obtained by the terminal in the first IP resource pool may be equal to 1 or greater than 1.
  • the terminal can obtain the first IP address in the first IP resource pool through the VIPP module shown in Figure 4-3.
  • step 714 may include: using the n IP addresses in the first IP resource pool as the first IP address.
  • the VIPP module shown in Figure 4-3 can have data channel selection capability.
  • the VIPP module can use the n IP addresses in the first IP resource pool together as the first IP address for data packet transmission.
  • the terminal transmits data packets to the server through n data channels, and the n data channels form a link hot backup, which greatly improves the reliability of data packet transmission.
  • the data packet further includes: a type of data to be transmitted, and correspondingly, as shown in FIG. 7-2, step 714 may include:
  • Step 7141 Determine an important level of data to be transmitted according to the type of data to be transmitted.
  • the embodiment of the present invention is applied to a wireless power communication system, and the data of the wireless power communication system is classified into key data, important data, general data, and file type data according to the type, and the important level of the key data is higher than the important level of the important data, and the important data.
  • the important level is higher than the important level of the general data, and the important level of the general data is higher than the important level of the file type data.
  • the terminal can select one or more data channels with better quality of service to transmit data packets through the VIPP module; for general data and file type data, if the data channel with better quality of service is in the data channel Working status, the terminal can select a data channel with a poor quality of service to transmit data packets through the VIPP module.
  • Step 7142 Determine m data channels in the n data channels according to the importance level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, where m is greater than or equal to 1, and less than n.
  • the type of data to be transmitted is critical data
  • the critical data since the critical data has the highest importance level, it is necessary to select a data channel with better quality of service to transmit the data packet.
  • PS channel A, PS channel B, and PS channel C in step 410 assume that the quality of service of PS channel A is 2, the quality of service of PS channel B is 3, and the quality of service of PS channel C is 4, and the VIPP module is The three data channels are sorted according to the quality of the data channel from good to bad, and PS channel C, PS channel B and PS channel A are obtained. Then, the VIPP module can select the data channel with better quality of service according to two strategies.
  • the first strategy is: the VIPP module selects the PS channel C transmission data packet located in the first name; the second strategy is: the VIPP module selects the first two PS channel C and PS channel B transmission data packets. It should be added that in the second strategy, the VIPP module can first select the first two PS channels C and PS channel B, according to the preset threshold and the quality of service of the selected PS channel C and the quality of service of the PS channel B, further screening the PS channel C and the PS channel B, such as selecting data with a service quality greater than a preset threshold.
  • the channel transmits data packets, excluding data channels whose quality of service is less than a preset threshold.
  • Step 7143 The IP address assigned by the communication network corresponding to each data channel of the m data channels is the first IP address.
  • the terminal can use the VIPP module to assign the IP address corresponding to the communication network corresponding to each of the three data channels to the terminal as the IP address of the terminal. First IP address.
  • Step 715 The terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
  • the terminal can replace the first source IP address of the data packet with the virtual IP address by using the VIPP module shown in FIG. 4-3.
  • the VIPP module provides a TCP/IP protocol interface for the application layer.
  • the VIPP module can convert the application layer TCP/IP interface call into a call to the underlying first IP resource pool to shield different data channels from the application layer. The difference. Assuming that m is equal to 1 in step 7143, the IP address corresponding to the communication network corresponding to the data channel is IPA, and the terminal uses IPA as the first IP address. Then, according to step 715, the terminal uses the first source in the data packet through the VIPP module.
  • the IP address is replaced by the virtual IP address to IPA, and the processed data packet is obtained.
  • the VIPP module replaces the command of the application layer transmission packet: (first source IP address: virtual IP address of the terminal, first destination IP address: IP address of the server) with a new command: (first source) IP address: IPA, first destination IP address: IP address of the server), to achieve mapping of data channels.
  • Step 716 The terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  • the terminal After processing the address information in the data packet to be transmitted, the terminal transmits the processed data packet to the server.
  • the terminal can directly process the address information in the data packet through the VIPP module, replace the first IP address with another IP address that satisfies the transmission requirement, and then communicate the communication indicated by the IP address satisfying the transmission requirement and the IP address of the server.
  • the data channel of the network transmits the processed data packet to the server. Throughout the process, the terminal does not need to initiate a wireless connection request to another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission in the prior art.
  • Step 717 When data packet transmission is required, the server acquires the second IP address in the second IP resource pool.
  • the second IP address is a target destination IP address used for data packet transmission, and the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, and the second source IP address is an IP address of the server, and the second destination The IP address is a virtual IP address.
  • the server may use the VIP IP address shown in FIG. 4-4 to use the n IP addresses in the second IP resource pool as the second IP address; the server may also determine the second level according to the importance level of the data to be transmitted through the VIPC module. IP address. Specifically, as shown in FIG. 7-3, step 717 may include:
  • Step 7171 Determine an important level of data to be transmitted according to the type of data to be transmitted.
  • the data packet also includes the type of data to be transmitted.
  • the server can determine the importance level of the data to be transmitted according to the type of data to be transmitted included in the data packet.
  • the specific process of step 7171 can be described with reference to step 7141.
  • Step 7172 Determine p data channels in the n data channels according to the importance level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, where p is greater than or equal to 1, and less than n.
  • step 7172 can be described with reference to step 7142.
  • Step 7173 The IP address assigned to the terminal by the communication network corresponding to each of the p data channels is used as the second IP address.
  • the server can use the VIPC module to assign the IP address corresponding to the communication network corresponding to each of the four data channels to the terminal as the IP address of the terminal. Second IP address.
  • the specific process for the server to obtain the second IP address in the second IP resource pool may be described with reference to step 714.
  • Step 718 The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
  • the server can replace the second destination IP address of the data packet from the virtual IP address to the second IP address through the VIPC module shown in FIG. 4-4.
  • the VIPC module provides a TCP/IP protocol interface for the service layer.
  • the VIPC module can convert the TCP/IP interface call of the service layer into a call to the underlying second IP resource pool to shield different data channels from the software of the service layer. The difference. Assuming that p is equal to 1 in step 7173, the IP address corresponding to the communication network corresponding to the data channel is IPE, and the server uses the IPE as the second IP address. Then, according to step 718, the server uses the VIPC module to set the second destination in the data packet. The IP address is replaced by a virtual IP address with an IPE.
  • the VIPC module will The command to transmit the data packet at the service layer: (the second source IP address: the IP address of the server, the second destination IP address: the virtual IP address of the terminal) is replaced with a new command: (second source IP address: IP address of the server) , the second destination IP address: IPE), to achieve the mapping of the data channel.
  • Step 719 The server transmits the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
  • the server After processing the address information in the data packet to be transmitted, the server transmits the processed data packet to the terminal.
  • the server can directly process the address information in the data packet through the VIPC module, replace the second IP address with another IP address that satisfies the transmission requirement, and then indicate by the second source IP address and the IP address satisfying the transmission requirement.
  • the data channel of the communication network transmits the processed data packet to the terminal. This process solves the problem of communication delay and data loss caused by interruption of data packet transmission in the prior art.
  • FIG. 7-4 shows a startup flowchart of a terminal in the prior art.
  • the terminal may be a single SIM multimode dual standby terminal, and the terminal supports an access process of a 4G network.
  • the terminal when the terminal is powered on, the terminal preferentially searches for the 4G network. If the 4G network is available, the terminal resides on the 4G network, and the terminal sends a PS domain registration request message to the 4G network.
  • the 4G network according to the PS domain.
  • the registration request sends a PS domain registration accept message and a PS domain registration completion message to the terminal, and the 4G network assigns an IP address to the terminal, and the terminal performs data packet transmission.
  • the terminal initiates a CS domain registration request message of the 3G network, and the 3G network sends a CS domain registration accept message and a CS domain registration complete message to the terminal according to the CS domain registration request message.
  • the terminal successfully registers with the 3G network and makes voice calls over the 3G network. After the terminal's boot process is completed, it can enter the dual standby state.
  • FIG. 7-5 are flowcharts showing the network switching of the terminal in FIG. 7-4.
  • the terminal transmits data packets through the 4G network.
  • the terminal detects that the data channel (PS channel) of the 4G network is interrupted
  • the terminal initiates a PS domain registration request to the 3G network.
  • the 3G network allocates a new IP address to the terminal, and the terminal reconstructs and recovers the PS domain data on the 3G network.
  • the terminal detects that the data channel of the 3G network is interrupted, the terminal searches for the 4G network and resides on the 4G network, and the terminal resends the PS domain registration request message to the 4G network. After the PS domain is successfully registered, the 4G network allocates the terminal to the terminal.
  • the terminal rebuilds and recovers the PS domain data on the 4G network, and the 3G network and the terminal release the connection related to the 3G network and Host resources.
  • the CS domain of the terminal is in the standby state during the handover.
  • FIG. 7-6 are schematic diagrams showing the model involved in a data packet transmission method in the prior art.
  • the terminal can only transmit through one communication network (ie, communication network 1, communication network 2, communication network 3, ..., one of the communication networks n) at the same time.
  • the data packet FIG. 7-6 shows that the terminal transmits the data packet through the communication network 1 at the current time, and therefore, the reliability of the data packet transmission is low; when the terminal performs the network switching, the current bearer link needs to be interrupted, and the other communication is performed.
  • the network initiates a wireless connection request, acquires a new IP address, and the data packet transmission is interrupted, resulting in communication delay and data loss, and the reliability of data packet transmission is low; n IP addresses (ie, IP1, IP2, IP3, .... .., IPn) is visible to the application layer of the terminal.
  • the application layer of the terminal needs to manage the switching process of the underlying data channel, and the development complexity of the application layer is high.
  • n IP addresses are also visible to the service layer of the server, and the service of the server is The layer needs to manage the underlying data channel, and the development complexity of the business layer is high.
  • the IP addresses of the underlying multiple data channels in the server are stored centrally in the IP module.
  • FIG. 7-7 is a schematic diagram of a model involved in a data packet transmission method according to an embodiment of the present invention.
  • a terminal is provided with a VIPP module
  • a server is provided with a VIPC module, and the terminal can pass multiple times at the same time.
  • Communication networks (ie, communication network 1, communication network 2, communication network 3, ..., communication network n) transmit data packets, which improves the reliability of data packet transmission; when the terminal performs network switching, it is not necessary to Another communication network initiates a wireless connection request to acquire a new IP address, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission;
  • n IP addresses (ie, IP1, IP2, IP3) , ..., IPn) is invisible to the application layer of the terminal.
  • the application layer of the terminal does not need to manage the switching process of the underlying data channel, which reduces the development complexity of the application layer, and the n IP addresses also serve the server.
  • the layer is not visible, and the server's business layer does not need to manage the underlying data channel, which reduces the development complexity of the business layer.
  • the data packet transmission method provided by the embodiment of the present invention is a multi-data channel transmission method, and the terminal can establish a connection with multiple communication networks at the same time, and the terminal can work in two or more frequency bands at the same time, and the data packet can simultaneously be in multiple data.
  • the transmission is performed on the channel; the terminal can establish a wireless packet data channel for each connection, and the terminal is provided with a virtual IP address, and the application layer of the terminal can see the virtual IP address without perceiving the change of the IP address of the underlying communication layer.
  • the terminal sets the VIPP module, and sets the VIPC module on the server to realize the effect that the data channel is transparent to the application layer of the terminal, and realizes the effect that the data channel is transparent to the service layer of the server; the terminal can measure the wireless communication capability of different data channels, that is, the quality of service (such as the downlink channel SNR, number of packet retransmissions, number of channel carriers, channel bandwidth, channel delay, channel type and channel scheduling level, etc.)
  • a certain strategy allocates different data packets to different data channels, and multiple data channels form a link hot backup to achieve optimal packet transmission reliability and low deployment cost.
  • the channel type can be 2G, 3G, 4G, wireless fidelity (English: WIreless-Fidelity; referred to as: WIFI) and private network LTE and so on.
  • the VIPP module in the method can measure the service quality of the data channel in real time, and perceive the service to achieve the best matching of the data channel and the data requirement. For example, for the highest priority data, the VIPP module can distribute the corresponding data packets to multiple data channels for simultaneous transmission, improving the reliability of data packet transmission. For data with low reliability requirements, the VIPP module can allocate corresponding data packets. Transmission to a data channel with poor quality of service, thus improving the reliability of data packet transmission and ensuring the quality of the service.
  • the method solves the problem of communication delay and data loss caused by interruption of data packet transmission, avoids the influence of channel interference and data channel service quality degradation on communication quality.
  • the data packet transmission method enables wireless communication technology to be applied. In the field of power control where high reliability is required.
  • the terminal when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address.
  • the information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data.
  • the data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission.
  • the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal
  • the layer does not need to manage the switching process of the underlying data channel
  • the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
  • FIG. 8 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method is applied to the implementation environment shown in FIG. 1 for example.
  • the terminal in FIG. 1 may be Single SIM card multimode terminal, the single SIM card multimode terminal supports the access process of 2G network, 3G network, 4G network and WIFI network.
  • the data packet transmission method may include:
  • Step 801 A single SIM card multimode terminal generates a virtual IP address.
  • Step 802 The single SIM card multimode terminal establishes a connection with the 2G network, the 3G network, the 4G network, and the WIFI network according to the virtual IP address.
  • a single SIM card multimode terminal establishes a connection with a 2G network, a 3G network, a 4G network, and a WIFI network.
  • Each communication network allocates an IP address to a single SIM card multimode terminal, assuming that the 2G network is an IP assigned to a single SIM card multimode terminal.
  • the address is IP1, the IP address assigned by the 3G network for the single SIM card multimode terminal is IP2, the IP address assigned by the 4G network to the single SIM card multimode terminal is IP3, and the IP address assigned by the WIFI network to the single SIM card multimode terminal is IP4.
  • the single SIM card multimode terminal registers with the corresponding communication network.
  • Step 803 The single SIM card multimode terminal acquires an IP address allocated by each communication network in the four communication networks as a single SIM card multimode terminal.
  • the single SIM card multimode terminal can also obtain the port number assigned to each communication network as a single SIM card multimode terminal.
  • Step 804 The single SIM card multimode terminal establishes a first IP resource pool.
  • Step 805 The single SIM card multimode terminal determines the quality of service of each of the four data channels.
  • the VIPP module of a single SIM card multimode terminal measures and records the quality of service of each data channel in real time.
  • Step 806 The single SIM card multimode terminal sorts the four data channels according to the service quality of each of the four data channels to obtain the sorting information.
  • the VIPP module of the single SIM card multimode terminal sorts the four data channels according to the service quality of each of the four data channels to obtain the sorting information.
  • Step 807 The single SIM card multimode terminal records the quality of service and the sorting information of each of the four data channels to the first IP resource pool.
  • the VIPP module of the single SIM card multimode terminal records the quality of service and the sorting information of each of the four data channels to the first IP resource pool.
  • Step 808 The single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • the VIPP module of the single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
  • the TCP link will always exist during the business application, and the TCP link is used to synchronize the information of the virtual resource pool in the terminal and the server.
  • Step 809 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the information of the second IP resource pool is the same as the information of the first IP resource pool.
  • the VIPP module of the single SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
  • the VIPP module of the single SIM card multimode terminal can also detect whether there is a data channel interruption, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
  • the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
  • Step 810 When a data packet transmission is required, the single SIM card multimode terminal acquires the first IP address in the first IP resource pool.
  • the first IP address is the target source IP address used for packet transmission.
  • the VIPP module of the single SIM card multimode terminal can use the four IP addresses (ie, IP1, IP2, IP3, and IP4) in the first IP resource pool as the first IP address.
  • the data packet further includes: the type of data to be transmitted, and the VIPP module of the single SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, 4
  • the quality of service and the sorting information of each data channel in the data channel determine m (m is greater than or equal to 1, and less than 4) data channels in the four data channels, and then corresponding to each data channel in the m data channels
  • the communication network assigns the IP address assigned to the terminal as the first IP address.
  • Step 811 The single SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
  • the VIPP module of the single SIM card multimode terminal selects IP1 as the first IP address
  • the VIPP module replaces the first source IP address of the data packet with the virtual IP address with IP1.
  • Step 812 The single SIM card multimode terminal transmits the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
  • the single SIM card multimode terminal transmits the processed data packet to the server through the data channel of the communication network (ie, 2G network) indicated by the IP1 and the IP address of the server.
  • the communication network ie, 2G network
  • Step 813 When the data packet transmission needs to be performed, the server acquires the second in the second IP resource pool. IP address.
  • the second IP address is the destination destination IP address used for packet transmission.
  • the VIPC module of the server may use the four IP addresses (ie, IP1, IP2, IP3, and IP4) in the second IP resource pool as the second IP address.
  • the data packet further includes: a type of data to be transmitted, and the VIPC module of the server can determine an important level of the data to be transmitted according to the type of the data to be transmitted, and then according to the important level of the data to be transmitted, each of the four data channels.
  • the service quality and the sorting information of the data channel determine p (p is greater than or equal to 1, and less than 4) data channels in the four communication channels, and then the communication network corresponding to each of the p data channels is the terminal
  • the assigned IP address is used as the second IP address.
  • Step 814 The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
  • the VIPC module replaces the second destination IP address of the packet with the virtual IP address with IP1.
  • Step 815 The server transmits the processed data packet to the single SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
  • the server transmits the processed data packet to the terminal through the IP address of the server and the data channel of the communication network (ie, 2G network) indicated by IP1.
  • the terminal when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address.
  • the information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data.
  • the data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission.
  • the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal
  • the layer does not need to manage the switching process of the underlying data channel
  • the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
  • FIG. 9 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example.
  • the terminal in FIG. 1 may be Dual SIM multimode terminal, the dual SIM multimode terminal can access two carrier networks: Y1 and Y2, and the dual SIM multimode terminal supports 2G network, 3G network, 4G network and WIFI network Network access process.
  • the data packet transmission method may include:
  • Step 901 The dual SIM card multimode terminal generates a virtual IP address.
  • Step 902 The dual SIM card multimode terminal establishes a connection with the 2G network, the 3G network, the 4G network, and the WIFI network of each carrier network according to the virtual IP address.
  • Each carrier network includes a 2G network, a 3G network, a 4G network, and a WIFI network.
  • the dual SIM card multimode terminals respectively establish a connection with the 2G network, the 3G network, the 4G network and the WIFI network of each operator network, and each communication network allocates an IP address for the dual SIM card multimode terminal, assuming the operator network Y1
  • the IP address assigned to the dual SIM card multimode terminal in the 2G network is IP1
  • the IP address assigned to the dual SIM card multimode terminal of the carrier network Y1 is IP2
  • the 4G network of the carrier network Y1 is dual SIM multimode.
  • the IP address assigned by the terminal is IP3, and the IP address assigned by the WIFI network of the operator network Y1 to the dual SIM card multimode terminal is IP4.
  • the IP address of the 2G network of the carrier network Y2 is IP5 for the dual SIM card multimode terminal
  • the IP address of the 3G network of the carrier network Y2 is IP6 for the dual SIM card multimode terminal
  • the 4G network of the operator network Y2 is
  • the IP address assigned by the dual SIM card multimode terminal is IP7
  • the IP address assigned by the WIFI network of the operator network Y2 to the dual SIM card multimode terminal is IP8.
  • Step 903 The dual SIM card multimode terminal acquires an IP address allocated by each communication network in the eight communication networks as a dual SIM card multimode terminal.
  • the dual SIM multimode terminal can also obtain the port number assigned to each dual SIM card multimode terminal by each communication network.
  • Step 904 The dual SIM card multimode terminal establishes a first IP resource pool.
  • Step 905 The dual SIM card multimode terminal determines the quality of service of each of the eight data channels.
  • the VIPP module of the dual SIM multimode terminal measures and records the quality of service of each data channel in real time.
  • Step 906 The dual SIM card multimode terminal sorts the eight data channels according to the service quality of each of the eight data channels to obtain the sorting information.
  • the VIPP module of the dual SIM card multimode terminal sorts 8 data channels according to the service quality of each of the 8 data channels to obtain sorting information.
  • Step 907 the dual SIM card multimode terminal will provide quality of service for each of the eight data channels. And sorting information is recorded to the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal records the quality of service and the sorting information of each of the eight data channels to the first IP resource pool.
  • Step 908 The dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • the VIPP module of the dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
  • Step 909 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the information of the second IP resource pool is the same as the information of the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
  • the VIPP module of the dual SIM card multimode terminal can also detect whether there is an interruption of the data channel, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or when the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
  • the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
  • Step 910 When a data packet transmission is required, the dual SIM card multimode terminal acquires the first IP address in the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal can use the eight IP addresses (ie, IP1 to IP8) in the first IP resource pool as the first IP address.
  • the VIPP module of the dual SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, the quality of service of each data channel in the 8 data channels, and Sorting information, determining m (m is greater than or equal to 1, and less than 8) data channels in 8 data channels, and then assigning an IP address assigned by the communication network corresponding to each data channel of the m data channels to the terminal as the first An IP address.
  • Step 911 The dual SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
  • VIPP Assuming that the VIPP module of the dual SIM card multimode terminal selects IP1 as the first IP address, then VIPP The module replaces the first source IP address of the packet with the virtual IP address with IP1.
  • Step 912 The dual SIM card multimode terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  • the dual SIM card multimode terminal transmits the processed data packet to the server through the data channel of the communication network indicated by the IP1 and the IP address of the server (ie, the 2G network of the carrier network Y1).
  • Step 913 When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
  • step 913 The specific process of step 913 can be described with reference to step 813.
  • Step 914 The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, to obtain the processed data packet.
  • Step 915 The server transmits the processed data packet to the dual SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
  • the terminal when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address.
  • the information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data.
  • the data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission.
  • the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal
  • the layer does not need to manage the switching process of the underlying data channel
  • the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
  • FIG. 10 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example.
  • the terminal in FIG. 1 may be Dual SIM multimode terminal, the dual SIM multimode terminal supports LTE 1.8G (Gigabit) frequency band, 230M (mega) frequency band private network cluster, and carrier network: 2G network, 3G network, 4G network, WIFI network connection Into the process.
  • One SIM card of the dual SIM card multimode terminal is used to support the industry private network (ie, LTE 1.8G private network and 230M private network), and another SIM card is used to support the carrier network.
  • the data packet transmission method may include:
  • Step 1001 A dual SIM card multimode terminal generates a virtual IP address.
  • Step 1002 The dual SIM card multimode terminal is separately associated with the LTE 1.8G private network according to the virtual IP address.
  • the 230M private network establishes a connection with the carrier network.
  • the dual SIM card multimode terminal After the dual SIM card multimode terminal is powered on, the LTE 1.8G private network, the 230M private network, and the carrier network are detected by the automatic frequency sweeping technology.
  • the carrier network includes the 2G network, the 3G network, the 4G network, and the WIFI network.
  • the dual SIM card multimode terminal establishes a connection with the LTE 1.8G private network, the 230M private network and the carrier network, and each communication network allocates an IP address for the dual SIM card multimode, assuming that the 2G network is the IP of the dual SIM multimode allocation.
  • the IP address assigned to the dual SIM card multimode is IP2, the IP address assigned to the dual SIM card multimode is IP3, and the IP address assigned by the WIFI network to the dual SIM card multimode is IP4, LTE.
  • the IP address assigned by the 1.8G private network to the dual SIM card multimode is IP5, and the IP address assigned by the 230M private network to the dual SIM card multimode is IP6.
  • the dual SIM multimode terminal registers with the corresponding communication network.
  • Step 1003 The dual SIM card multimode terminal acquires an IP address allocated by each communication network in the six communication networks as a dual SIM card multimode terminal.
  • the dual SIM multimode terminal can also obtain the port number assigned to each dual SIM card multimode terminal by each communication network.
  • Step 1004 The dual SIM card multimode terminal establishes a first IP resource pool.
  • Step 1005 The dual SIM card multimode terminal determines the quality of service of each of the six data channels.
  • the VIPP module of the dual SIM multimode terminal measures and records the quality of service of each data channel in real time.
  • Step 1006 The dual SIM card multimode terminal sorts the six data channels according to the service quality of each of the six data channels to obtain the sorting information.
  • the VIPP module of the dual SIM card multimode terminal sorts the six data channels according to the service quality of each of the six data channels to obtain the sorting information.
  • Step 1007 The dual SIM card multimode terminal records the quality of service and the sorting information of each of the six data channels to the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal records the quality of service and the sorting information of each of the six data channels to the first IP resource pool.
  • Step 1008 The dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • the VIPP module of the dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
  • Step 1009 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
  • the VIPP module of the dual SIM card multimode terminal can also detect whether there is an interruption of the data channel, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or when the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
  • the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
  • Step 1010 When a data packet transmission is required, the dual SIM card multimode terminal acquires the first IP address in the first IP resource pool.
  • the VIPP module of the dual SIM card multimode terminal can use the six IP addresses (ie, IP1 to IP6) in the first IP resource pool as the first IP address.
  • the VIPP module of the dual SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, the quality of service of each of the six data channels, and Sorting information, determining m (m is greater than or equal to 1, and less than 6) data channels in 6 data channels, and then assigning an IP address assigned by the communication network corresponding to each data channel of the m data channels to the terminal as the first An IP address.
  • Step 1011 The dual SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
  • step 1011 The specific process of step 1011 can be described with reference to step 811.
  • Step 1012 The dual SIM card multimode terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  • Step 1013 When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
  • step 1013 The specific process of step 1013 can be described with reference to step 813.
  • Step 1014 The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
  • step 1014 The specific process of step 1014 can be described with reference to step 814, and details are not described herein again.
  • Step 1015 The server transmits the processed data packet to the dual SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
  • the terminal when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address.
  • the information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data.
  • the data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission.
  • the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal
  • the layer does not need to manage the switching process of the underlying data channel
  • the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
  • FIG. 11 is a flowchart of a data packet transmission method according to an embodiment of the present invention.
  • the data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example.
  • the terminal in FIG. 1 may be Single SIM card multimode terminal, the single SIM card multimode terminal supports the access process of LTE 1.8G private network and 230M private network, and LTE 1.8G private network and 230M private network belong to the power company.
  • the data packet transmission method may include:
  • Step 1101 A single SIM card multimode terminal generates a virtual IP address.
  • Step 1102 The single SIM card multimode terminal establishes a connection with the LTE 1.8G private network and the 230M private network according to the virtual IP address.
  • the LTE 1.8G private network and the 230M private network are detected by the automatic frequency sweeping technology.
  • a single SIM card multimode terminal establishes a connection with an LTE 1.8G private network and a 230M private network, and each communication network allocates an IP address to a single SIM card multimode terminal, assuming that the LTE 1.8G private network is allocated for a single SIM card multimode terminal.
  • the IP address is IP1
  • the IP address assigned to the single SIM card multimode terminal by the 230M private network is IP2.
  • the single SIM card multimode terminal registers with the corresponding communication network.
  • Step 1103 The single SIM card multimode terminal acquires an IP address allocated by each communication network in the two communication networks as a single SIM card multimode terminal.
  • the single SIM card multimode terminal can also obtain the port number assigned to each communication network as a single SIM card multimode terminal.
  • Step 1104 The single SIM card multimode terminal establishes a first IP resource pool.
  • Step 1105 The single SIM card multimode terminal determines the quality of service of each of the two data channels.
  • the VIPP module of a single SIM card multimode terminal measures and records the quality of service of each data channel in real time.
  • Step 1106 The single SIM card multimode terminal sorts the two data channels according to the service quality of each of the two data channels to obtain the sorting information.
  • Step 1107 The single SIM card multimode terminal records the quality of service and the sorting information of each of the two data channels to the first IP resource pool.
  • Step 1108 The single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
  • the VIPP module of the single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
  • Step 1109 The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the information of the second IP resource pool is the same as the information of the first IP resource pool.
  • Step 1110 When a data packet transmission is required, the single SIM card multimode terminal acquires the first IP address in the first IP resource pool.
  • Step 1111 The single SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
  • Step 1112 The single SIM card multimode terminal transmits the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
  • Step 1113 When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
  • step 1113 The specific process of step 1113 can be described with reference to step 813, and details are not described herein again.
  • Step 1114 The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
  • step 1114 For the specific process of step 1114, reference may be made to step 814, and details are not described herein again.
  • Step 1115 The server transmits the processed data packet to the single SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
  • the data packet transmission method can obtain the first IP address in the first IP resource pool and use the first IP address to compare the data packet when the data packet transmission needs to be performed.
  • the address information in the process is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then Transmitting the processed data packet to the terminal, solving the problem of communication delay and data loss caused by the interruption of the data packet transmission, and the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and
  • the application layer of the terminal does not need to manage the switching process of the underlying data channel
  • the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
  • FIG. 12-1 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal may include:
  • the generating unit 1201 is configured to generate a virtual IP address.
  • the first establishing unit 1202 is configured to establish a connection with each of the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
  • the obtaining unit 1203 is configured to acquire an IP address allocated by each communication network in the n communication networks for the terminal, and obtain n IP addresses.
  • the second establishing unit 1204 is configured to establish a data channel with the server by using each of the n IP addresses.
  • the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively.
  • the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
  • the terminal may further include:
  • the third establishing unit 1205 is configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses.
  • the sending unit 1206 is configured to send, to the server, the virtual IP address and the information of the first IP resource pool, so that the server establishes the second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second resource pool includes n IP addresses.
  • the terminal may further include:
  • the determining unit 1207 is configured to determine a quality of service of each of the n data channels.
  • the sorting unit 1208 is configured to sort the n data channels according to the quality of service of each of the n data channels to obtain sorting information.
  • the recording unit 1209 is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the terminal may further include:
  • the detecting unit 1210 is configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels.
  • the setting unit 1211 is configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  • FIG. 12-1 The specific working process of each unit in Figure 12-1 can be described with reference to the embodiment shown in Figure 2.
  • the specific working process of each unit in Figure 12-2 can be described with reference to the embodiment shown in Figure 4-1.
  • the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively.
  • the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
  • FIG. 13 is a schematic structural diagram of a server according to an embodiment of the present disclosure, where the server may include:
  • the receiving unit 1301 is configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address is used for the terminal to access different communication networks, and the virtual IP address.
  • the first establishing unit 1302 is configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address, where the second resource pool includes n IP addresses.
  • the second establishing unit 1303 is configured to establish a data channel with the terminal by using each of the n IP addresses.
  • the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
  • the server provided by the embodiment of the present invention can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use n IP addresses.
  • Each of the IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses.
  • the terminal and the server are used to transmit data. The number of data channels of the packet is more, thus improving the reliability of packet transmission.
  • An embodiment of the present invention provides a data channel establishing system, where the data channel establishing system includes a terminal and a server.
  • the terminal is the terminal shown in Figure 12-1 or Figure 12-2;
  • This server is the server shown in FIG.
  • FIG. 14-1 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure, where the terminal may include:
  • the first obtaining unit 1401 is configured to acquire a first IP address in the first IP resource pool when the data packet needs to be transmitted, where the first IP address is a target source IP address used for data packet transmission, and the first IP resource is used.
  • the pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first source IP address.
  • the address is the virtual IP address of the terminal, and the first destination IP address is the IP address of the server.
  • the replacing unit 1402 is configured to replace the first source IP address of the data packet with the virtual IP address and the first IP address, to obtain the processed data packet.
  • the transmitting unit 1403 is configured to transmit the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  • the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address.
  • the first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel.
  • the terminal does not need to initiate a wireless connection request to another communication network when performing network switching.
  • the data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
  • the terminal may further include:
  • the generating unit 1404 is configured to generate a virtual IP address.
  • the first establishing unit 1405 is configured to establish a connection with each of the n communication networks according to the virtual IP address.
  • the second obtaining unit 1406 is configured to acquire an IP address allocated by each communication network in the n communication networks for the terminal.
  • the second establishing unit 1407 is configured to establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
  • the first establishing unit 1405 is specifically configured to:
  • connection request message includes a virtual IP address; receiving a connection response message sent by the packet gateway of each communication network, and each connection response message Including the IP address assigned by the communication network to the terminal.
  • the first IP resource pool further includes the service quality of the data channel of each communication network in the n communication networks and the ranking information of the service quality of the n data channels, as shown in FIG. 14-2, the terminal may also be include:
  • the determining unit 1408 is configured to determine a quality of service of each of the n data channels.
  • the sorting unit 1409 is configured to sort the n data channels according to the quality of service of each of the n data channels to obtain sorting information.
  • the recording unit 1410 is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  • the data packet further includes: a type of the data to be transmitted, where the first acquiring unit 1401 is configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; and according to an important level of the data to be transmitted, n data.
  • the terminal may further include:
  • the detecting unit 1411 is configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels.
  • the setting unit 1412 is configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  • the terminal may further include:
  • the first sending unit 1413 is configured to send a virtual IP address and a letter of the first IP resource pool to the server. So that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, and the second resource pool includes n IP addresses.
  • the second sending unit 1414 is configured to: when the information of the first IP resource pool changes, send the changed information of the first IP resource pool to the server, so that the server can perform information according to the changed first IP resource pool.
  • the second IP resource pool is updated.
  • the first obtaining unit 1401, the replacing unit 1402, and the transmitting unit 1403 in FIG. 14-2 can be explained with reference to FIG. 14-1.
  • the specific working process of each unit in FIG. 14-1 can be described with reference to the embodiment shown in FIG. 5.
  • the specific working process of each unit in FIG. 14-2 can be described with reference to the embodiment shown in FIG. 7-1.
  • the units in FIG. 14-2 can be applied to the models shown in FIG. 7-7, such as the first obtaining unit 1401, the replacing unit 1402, the second establishing unit 1407, the determining unit 1408, the sorting unit 1409, the recording unit 1410, and the detecting.
  • the unit 1411, the setting unit 1412, the first transmitting unit 1413, and the like can be used to implement the functions of the VIPP module in the terminal shown in FIGS. 7-7.
  • the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address.
  • the first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel.
  • the terminal does not need to initiate a wireless connection request to another communication network when performing network switching.
  • the data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
  • FIG. 15-1 is a schematic structural diagram of another server according to an embodiment of the present disclosure, where the server may include:
  • the obtaining unit 1501 is configured to obtain a second IP address in the second IP resource pool when the data packet needs to be transmitted, where the second IP address is a target destination IP address used for data packet transmission, and the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is established according to the virtual IP address of the terminal sent by the terminal and the information of the first IP resource pool.
  • the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, the second source IP address is an IP address of the server, and the second destination IP address is a virtual IP address.
  • the first IP resource pool includes n IP addresses.
  • the replacing unit 1502 is configured to replace the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
  • the transmitting unit 1503 is configured to transmit the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
  • the server provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet needs to be transmitted, and replace the second destination IP address of the data packet with the virtual IP address.
  • the second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
  • the server may further include:
  • the first receiving unit 1504 is configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool.
  • the establishing unit 1505 is configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address.
  • the data packet further includes: a type of data to be transmitted, where the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, and obtains
  • the unit 1501 is specifically configured to:
  • the server may further include:
  • the second receiving unit 1506 is configured to receive information about the changed first IP resource pool sent by the terminal.
  • the updating unit 1507 is configured to update the second IP resource pool according to the changed information of the first IP resource pool.
  • FIG. 15-1 the obtaining unit 1501, the replacing unit 1502, and the transmitting unit 1503 in FIG. 15-2 can be explained with reference to FIG. 15-1.
  • the specific working process of each unit in Figure 15-1 can be described with reference to the embodiment shown in Figure 6.
  • the specific working process of each unit in Figure 15-2 can be described with reference to the embodiment shown in Figure 7-1.
  • the units in FIG. 15-2 can be applied to the models shown in FIG. 7-7, such as the obtaining unit 1501, the replacing unit 1502, the first receiving unit 1504, the establishing unit 1505, the second receiving unit 1506, and the updating unit 1507, etc. Used to implement the functions of the VIPC module in the server shown in Figure 7-7.
  • the server provided by the embodiment of the present invention can perform data packet transmission when Obtaining a second IP address in the second IP resource pool, replacing the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtaining the processed data packet, and transmitting the processed data packet to the terminal through the data channel
  • the data packet solves the problem of data loss during data packet transmission and improves the reliability of data packet transmission.
  • An embodiment of the present invention provides a data packet transmission system, where the data packet transmission system includes a terminal and a server.
  • the terminal is a terminal shown in Figure 14-1 or Figure 14-2;
  • This server is the server shown in Figure 15-1 or Figure 15-2.
  • FIG. 16 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. It should be understood that the terminal may have more or fewer components than those shown in FIG. 16, and two or more components may be combined. Or can have different component configurations.
  • the various components shown in Figure 16 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the terminal shown in FIG. 16 is taken as an example for specific description.
  • the terminal includes at least one processor 1601, a memory 1602, a communication module 1603, at least one communication bus 1604, and a communication antenna 1605.
  • the terminal also includes other functional components such as battery modules, wired/wireless charging structures, and the like.
  • Communication bus 1604 is used to implement connection communication between these components.
  • Memory 1602 may include non-volatile solid state memory and/or dynamic non-volatile storage devices such as flash memory, rotatable disk drives.
  • the communication module 1603 can be used for long-distance communication, such as GSM, CDMA, General Packet Radio Service (GPRS), and Enhanced Data Rate for GSM Evolution (English: Enhanced Data Rate for GSM Evolution; EDGE), 3G technologies such as Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (English: Time Division-Synchronous Code Division Multiple Access; TD-SCDMA), 4G technologies such as LTE.
  • Communication antenna 1605 is used to receive and transmit communication signals.
  • the memory 1602 includes an operating system 16021 and an application program 16022.
  • the operating system 16021 includes various operating system programs for implementing hardware-based operations.
  • the application program 16022 includes various applications for implementing various application functions. For example, a virtual IP address generation program, a communication network connection program, and a data channel establishment program enable the terminal to generate a virtual IP address, establish a connection with n (n is greater than or equal to 2) communication networks according to the virtual IP address, and acquire n communication networks. Medium Each communication network assigns an IP address to the terminal, and obtains n IP addresses, thereby establishing a data channel with the server by using each of the n IP addresses.
  • the processor 1601 communicates with various modules and components via a communication bus 1604, and the processor 1601 can execute an application stored in the memory 1602 to implement the terminal, such that the terminal generates a virtual IP address, and then according to the virtual IP address and each of the n communication networks.
  • the communication networks establish a connection, and then obtain an IP address assigned to each terminal by each communication network in the n communication networks, and obtain n IP addresses, thereby establishing a data channel with the server by using each of the n IP addresses.
  • the terminal provided by the embodiment of the present invention implements the method embodiment shown in FIG. 2 or FIG. 4-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 12-1 or FIG. 12-2, and the foregoing data channel establishment.
  • the detecting unit 1210 and the setting unit 1211 may be implemented by the processor 1601 executing an application stored in the memory 1602; the transmitting unit 1206 of FIG. 12-2 may be implemented by the communication module 1603 and the communication antenna 1605.
  • the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively.
  • the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
  • FIG. 17 is a schematic structural diagram of still another server according to an embodiment of the present invention. It should be understood that the server may have more or fewer components than those shown in FIG. 17, and two or more components may be combined. Or can have different component configurations.
  • the various components shown in Figure 17 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the server shown in FIG. 17 is taken as an example for specific description. As shown in FIG. 17, the server may include a processor 1710, a network interface 1720, a memory 1730, and a bus 1740.
  • the bus 1740 is used to connect the processor 1710, the network interface 1720, and the memory 1730.
  • the processor 1710 can execute the program 1731 stored in the memory 1730 to implement the server, so that the server can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
  • the second resource pool includes n IP addresses, and is reused. Each of the n IP addresses establishes a data channel with the terminal.
  • the server provided by the embodiment of the present invention implements the method embodiment shown in FIG. 3 or FIG. 4-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 13 , and the servers completed in the data channel establishment system.
  • the receiving unit 1301 of FIG. 13 as above may be implemented by the network interface 1720; the first establishing unit 1302 and the second establishing unit 1303 of FIG. 13 may be implemented by the processor 1710 executing the program 1731 stored in the memory 1730.
  • the server provided by the embodiment of the present invention can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use n IP addresses.
  • Each of the IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses.
  • the terminal and the server are used to transmit data. The number of data channels of the packet is more, thus improving the reliability of packet transmission.
  • An embodiment of the present invention provides another data channel establishing system, where the data channel establishing system includes a terminal and a server.
  • the terminal is the terminal shown in FIG. 16;
  • This server is the server shown in FIG.
  • FIG. 18 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. It should be understood that the terminal may have more or fewer components than those shown in FIG. 18, and two or more components may be combined. Or can have different component configurations.
  • the various components shown in Figure 18 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the terminal shown in FIG. 18 is taken as an example for specific description.
  • the terminal includes at least one processor 1801, a memory 1802, a communication module 1803, at least one communication bus 1804, and a communication antenna 1805.
  • the terminal also includes other functional components such as battery modules, wired/wireless charging structures, and the like.
  • Communication bus 1804 is used to implement connection communication between these components.
  • Memory 1802 may include non-volatile solid state memory and/or dynamic non-volatile storage devices such as flash memory, rotatable disk drives.
  • the communication module 1803 can be used for long-distance communication, such as GSM, CDMA, GPRS, EDGE, WCDMA, TD-SCDMA, 4G technologies such as LTE, and the like.
  • Communication antenna 1805 is used to receive and transmit communication signals.
  • the memory 1802 includes an operating system 18021 and an application 18022, an operating system.
  • 18021 includes various operating system programs for implementing hardware-based operations
  • application 18022 includes various applications for implementing various application functions, such as a first IP address acquisition program and an IP address replacement program, enabling When the terminal needs to perform data packet transmission, the terminal obtains the first IP address in the first IP resource pool, and then replaces the first source IP address of the data packet with the virtual IP address to the first IP address, and obtains the processed data packet.
  • the processor 1801 communicates with the various modules and components through the communication bus 1804.
  • the processor 1801 can execute the application stored in the memory 1802 to implement the terminal, so that the terminal acquires the first IP resource pool when the data packet needs to be transmitted.
  • An IP address, and then the first source IP address of the data packet is replaced by the virtual IP address to the first IP address, and the processed data packet is obtained.
  • the terminal provided by the embodiment of the present invention implements the method embodiment shown in FIG. 5 or FIG. 7-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 14-1 or FIG. 14-2, and the foregoing data packet transmission.
  • the sorting unit 1409, the recording unit 1410, the detecting unit 1411, and the setting unit 1412 may be implemented by the processor 1801 executing an application stored in the memory 1802; the transmitting unit 1403 of FIG. 14-1, and the first of FIG. 14-2
  • the transmitting unit 1413 and the second transmitting unit 1414 may be implemented by the communication module 1803 and the communication antenna 1805.
  • the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address.
  • the first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel.
  • the terminal does not need to initiate a wireless connection request to another communication network when performing network switching.
  • the data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
  • FIG. 19 is a schematic structural diagram of still another server according to an embodiment of the present invention. It should be understood that the server may have more or fewer components than those shown in FIG. 19, and two or more components may be combined. Or can have different component configurations.
  • the various components shown in Figure 19 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the server shown in FIG. 19 is taken as an example for specific description, as shown in FIG.
  • the server can include a processor 1910, a network interface 1920, a memory 1930, and a bus 1940.
  • the bus 1940 is used to connect the processor 1910, the network interface 1920, and the memory 1930.
  • the processor 1910 can execute the program 1931 stored in the memory 1930 to implement the server, so that the server can acquire the second IP address in the second IP resource pool when the data packet needs to be transmitted, and then the second destination IP address of the data packet.
  • the address is replaced by the virtual IP address to the second IP address, and the processed data packet is obtained.
  • the server provided by the embodiment of the present invention implements the method embodiment shown in FIG. 6 or FIG. 7-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 15-1 or FIG. 15-2, and the foregoing data channel establishment.
  • the obtaining unit 1501 and the replacing unit 1502 of FIG. 15-1, and the establishing unit 1505 and the updating unit 1507 of FIG. 15-2, may be implemented by the processor 1910 executing the program 1931 stored in the memory 1930; FIG. 15-1
  • the transmission unit 1503, and the first receiving unit 1504 and the second receiving unit 1506 of FIG. 15-2 may be implemented by the network interface 1920.
  • the server provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet needs to be transmitted, and replace the second destination IP address of the data packet with the virtual IP address.
  • the second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
  • An embodiment of the present invention provides another data packet transmission system, where the data packet transmission system includes a terminal and a server.
  • the terminal is the terminal shown in FIG. 18;
  • This server is the server shown in FIG.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of communications. Provided are a method for establishing a data channel and transmitting a data packet, a terminal, a server, and a system. The method for establishing a data channel comprises: generating a virtual IP address; establishing, according to the virtual IP address, connection with each of n communication networks, where n is greater than or equal to 2; acquiring an IP address assigned to a terminal by each of the n communication networks to obtain n IP addresses; and using each of the n IP addresses to establish respective data channels with a server. The invention solves a problem of low reliability of data packet transmission, thereby enhancing reliability of data packet transmission. The invention is applied to data packet transmission.

Description

数据通道建立及数据包传输方法、终端、服务器及系统Data channel establishment and data packet transmission method, terminal, server and system 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种数据通道建立及数据包传输方法、终端、服务器及系统。The present invention relates to the field of communications technologies, and in particular, to a data channel establishment and data packet transmission method, terminal, server, and system.
背景技术Background technique
电网智能化是电力行业的发展趋势,越来越多的电力设备通过通信网络连接,形成电力通信系统,以实现电力系统的信息共享与控制。电力通信系统包括接入网络,该接入网络用于支持电力通信系统中的终端进行网络连接,由于无线接入网络相比光纤有线网络在建设成本上和部署灵活性上具备很大的优势,因此无线接入网络在电力通信领域中受到越来越多的关注。同时,由于电力系统是一种工业系统,所以采用无线接入网络的无线电力通信系统要求数据包传输的可靠性较高。The intelligentization of power grid is the development trend of the power industry. More and more power equipments are connected through communication networks to form power communication systems to realize information sharing and control of power systems. The power communication system includes an access network, which is used to support terminals in the power communication system for network connection. Since the wireless access network has a great advantage in construction cost and deployment flexibility compared to the fiber-optic cable network, Therefore, wireless access networks are receiving more and more attention in the field of power communication. Meanwhile, since the power system is an industrial system, the wireless power communication system using the wireless access network requires high reliability of data packet transmission.
现有技术中,无线电力通信系统可以包括至少两个无线接入网络,当无线电力通信系统受到干扰或终端当前连接的进行数据包传输的无线接入网络的信号较差时,该无线接入网络的数据通道会发生中断,终端会向另一无线接入网络发起无线连接请求,请求成功后,该另一无线接入网络给终端分配一个新的互联网协议(英文:Internet Protocol;简称:IP)地址,终端根据该新的IP地址在该另一无线接入网络的数据通道上进行数据包传输。示例的,当前时刻终端通过第四代通讯技术(英文:the fourth Generation mobile communication technology;简称:4G)网络进行数据包传输,当无线电力通信系统受到干扰时,4G网络的数据通道会发生中断,终端会向第三代移动通信技术(英文:the third Generation mobile communication technology;简称:3G)网络发起无线连接请求,请求成功后,3G网络给终端分配一个新的IP地址,终端根据该新的IP地址在3G网络上的数据通道进行数据包传输。In the prior art, the wireless power communication system may include at least two wireless access networks, and when the wireless power communication system is interfered or the signal of the wireless access network for which the terminal is currently connected for data packet transmission is poor, the wireless access The data channel of the network will be interrupted, and the terminal will initiate a wireless connection request to another wireless access network. After the request is successful, the other wireless access network allocates a new Internet protocol to the terminal (English: Internet Protocol; referred to as IP) The address, the terminal performs data packet transmission on the data channel of the other radio access network according to the new IP address. For example, the current time terminal transmits data packets through the fourth generation communication technology (English: the fourth generation mobile communication technology; 4G) network. When the wireless power communication system is interfered, the data channel of the 4G network is interrupted. The terminal initiates a wireless connection request to the third generation mobile communication technology (English: the third generation mobile communication technology; 3G) network. After the request is successful, the 3G network assigns a new IP address to the terminal, and the terminal according to the new IP The data channel is transmitted on the data channel of the address on the 3G network.
由于无线电力通信系统中的终端在进行网络切换时,终端需要向另一无线接入网络发起无线连接请求,请求成功后,待接收该另一无线接入网络分配的 新的IP地址后再进行数据包传输,该过程中,数据包传输会发生中断,造成通信延迟和数据丢失,因此,数据包传输的可靠性较低。When the terminal in the wireless power communication system performs network switching, the terminal needs to initiate a wireless connection request to another wireless access network, and after the request is successful, the terminal is to receive the other wireless access network. The packet transmission is performed after the new IP address. In this process, the packet transmission is interrupted, resulting in communication delay and data loss. Therefore, the reliability of packet transmission is low.
发明内容Summary of the invention
为了提高数据包传输的可靠性,本发明提供了一种数据通道建立及数据包传输方法、终端、服务器及系统。本发明实施中应用于电力通信系统是较为典型的场景。In order to improve the reliability of data packet transmission, the present invention provides a data channel establishment and data packet transmission method, terminal, server and system. The application to the power communication system in the implementation of the present invention is a typical scenario.
第一方面,提供了一种数据通道建立方法,用于无线电力通信系统中的终端,该数据通道建立方法包括:生成虚拟IP地址;根据虚拟IP地址与n个通信网络中每个通信网络建立连接,n大于或等于2;获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址;利用n个IP地址中的每个IP地址分别与服务器建立数据通道。In a first aspect, a data channel establishing method is provided for a terminal in a wireless power communication system, the data channel establishing method comprising: generating a virtual IP address; establishing according to the virtual IP address and each communication network in the n communication networks Connection, n is greater than or equal to 2; obtains an IP address assigned to the terminal by each communication network in the n communication networks, and obtains n IP addresses; and establishes a data channel with the server by using each of the n IP addresses.
示例的,该数据通道建立方法可以应用于无线电力通信系统中的终端。该数据通道建立方法中,终端能够与n个通信网络中每个通信网络建立连接,并获取每个通信网络为终端分配的IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,增加了用于传输数据包的数据通道的数量,提高了数据包传输的可靠性。For example, the data channel establishing method can be applied to a terminal in a wireless power communication system. In the data channel establishing method, the terminal can establish a connection with each communication network of the n communication networks, and obtain an IP address assigned by each communication network to the terminal, and then use each of the n IP addresses to respectively connect with the server. Establishing a data channel increases the number of data channels used to transmit data packets and improves the reliability of packet transmission.
可选的,该数据通道建立方法还可以包括:根据n个IP地址建立第一IP资源池,该第一IP资源池包括n个IP地址;向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,该第二资源池包括n个IP地址。Optionally, the data channel establishing method may further include: establishing a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses; sending the virtual IP address and the first IP resource pool to the server Information, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
该数据通道建立方法中,终端能够根据获取的n个IP地址建立第一IP地资源池,并向服务器发送虚拟IP地址和第一IP资源池的信息,使得服务器建立虚拟IP地址所指示的终端的第二IP资源池,这样一来,终端和服务器能够选择不同的数据通道传输数据包,提高了数据包传输的可靠性。In the data channel establishment method, the terminal can establish a first IP resource pool according to the obtained n IP addresses, and send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the terminal indicated by the virtual IP address. The second IP resource pool, in this way, the terminal and the server can select different data channels to transmit data packets, thereby improving the reliability of data packet transmission.
可选的,该数据通道建立方法还包括:确定n个数据通道中每个数据通道的服务质量;根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息;将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Optionally, the data channel establishing method further includes: determining a service quality of each of the n data channels; sorting the n data channels according to a service quality of each of the n data channels, and obtaining the sorting information. Recording the quality of service and ordering information of each of the n data channels to the first IP resource pool.
该数据通道建立方法中,终端确定每个数据通道的服务质量,并按照服务质量对多个数据通道进行排序,从而能够根据待传输数据的重要性选择不同的 数据通道传输数据包,如选择服务质量较好的数据通道传输数据重要等级较高的数据包,提高了数据包传输的可靠性。In the data channel establishing method, the terminal determines the quality of service of each data channel, and sorts multiple data channels according to the quality of service, so that different priorities can be selected according to the importance of the data to be transmitted. The data channel transmits data packets, such as selecting a data channel with better quality of service to transmit data packets with higher importance of data, which improves the reliability of data packet transmission.
可选的,该数据通道建立方法还可以包括:检测第一数据通道是否发生中断,该第一数据通道为n个数据通道中的任一数据通道;当第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Optionally, the data channel establishing method may further include: detecting whether an interrupt occurs in the first data channel, where the first data channel is any one of n data channels; when the first data channel is interrupted, The information corresponding to the first data channel in an IP resource pool is set to the prohibited use state.
该数据通道建立方法中,终端将第一IP资源池中发生中断的数据通道对应的信息设置为禁止使用状态,从而能够及时排除服务质量较差的数据通道,而选择服务质量较好的数据通道进行数据包传输。此外,除了将发生中断的数据通道对应的信息设置为禁止使用状态外,还可以将其他不满足传输要求的数据通道对应的信息设置为禁止使用状态,如将服务质量小于一定值的数据通道对应的信息设置为禁止使用状态。In the data channel establishment method, the terminal sets the information corresponding to the interrupted data channel in the first IP resource pool to the forbidden state, so that the data channel with poor service quality can be excluded in time, and the data channel with better service quality is selected. Perform packet transmission. In addition, in addition to setting the information corresponding to the interrupted data channel to the prohibited use state, other information corresponding to the data channel that does not satisfy the transmission requirement may be set to the prohibited use state, for example, the data channel whose service quality is less than a certain value is corresponding. The information is set to the prohibited state.
第二方面,提供了一种数据通道建立方法,用于无线电力通信系统中的服务器,该数据通道建立方法包括:接收终端发送的虚拟IP地址和第一IP资源池的信息,该第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,虚拟IP地址为终端生成的虚拟IP地址;根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,该第二资源池包括n个IP地址;利用n个IP地址中的每个IP地址分别与终端建立数据通道。The second aspect provides a data channel establishing method for a server in a wireless power communication system, where the data channel establishing method includes: receiving a virtual IP address sent by the terminal and information of the first IP resource pool, the first IP The resource pool includes n IP addresses, each IP address is used for the terminal to access a different communication network, and the virtual IP address is a virtual IP address generated by the terminal; the virtual IP address is established according to the virtual IP address and the information of the first IP resource pool. a second IP resource pool of the indicated terminal, the second resource pool includes n IP addresses; and each of the n IP addresses establishes a data channel with the terminal.
示例的,该数据通道建立方法可以应用于无线电力通信系统中的服务器。该数据通道建立方法中,服务器能够根据终端发送的虚拟IP地址和第一IP资源池的信息建立第二IP资源池,再利用第二IP资源池中的n个IP地址中的每个IP地址分别与终端建立数据通道,增加了用于传输数据包的数据通道的数量,提高了数据包传输的可靠性。By way of example, the data channel establishment method can be applied to a server in a wireless power communication system. In the data channel establishment method, the server can establish a second IP resource pool according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use each of the n IP addresses in the second IP resource pool. The data channel is respectively established with the terminal, which increases the number of data channels used for transmitting data packets, and improves the reliability of data packet transmission.
可选的,第二IP资源池还包括n个数据通道中每个数据通道的服务质量和n个数据通道的服务质量的排序信息。Optionally, the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
该数据通道建立方法中,服务器能够根据待传输数据的重要性选择不同的数据通道传输数据包,如选择服务质量较好的数据通道传输数据重要等级较高的数据包,提高了数据包传输的可靠性。In the data channel establishing method, the server can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
第三方面,提供了一种数据包传输方法,用于无线电力通信系统中的终端,该数据包传输方法包括:当需要进行数据包传输时,在第一IP资源池中获取第一IP地址,该第一IP地址为用于进行数据包传输的目标源IP地址,该第一 1P资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,数据包包括待传输数据、第一源IP地址和第一目的IP地址,第一源IP地址为终端的虚拟IP地址,第一目的IP地址为服务器的IP地址;将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包;通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。In a third aspect, a data packet transmission method is provided for a terminal in a wireless power communication system, the data packet transmission method includes: acquiring a first IP address in a first IP resource pool when data packet transmission is required The first IP address is a target source IP address for performing packet transmission, the first The 1P resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first The source IP address is the virtual IP address of the terminal, and the first destination IP address is the IP address of the server; the first source IP address of the data packet is replaced by the virtual IP address to the first IP address, and the processed data packet is obtained; The data channel of the communication network indicated by an IP address and the first destination IP address transmits the processed data packet to the server.
示例的,该数据通道建立方法可以应用于无线电力通信系统中的终端。该数据通道建立方法中,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,再通过数据通道向服务器传输处理后的数据包,终端在进行网络切换时,无需向另一通信网络发起无线连接请求以根据另一通信网络分配的新的IP地址进行数据包传输,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,提高了数据包传输的可靠性。For example, the data channel establishing method can be applied to a terminal in a wireless power communication system. In the data channel establishment method, when the data packet transmission is required, the terminal can obtain the first IP address in the first IP resource pool, and replace the first source IP address of the data packet with the virtual IP address and the first IP address. After the processed data packet is obtained, the processed data packet is transmitted to the server through the data channel, and when the terminal performs network switching, the terminal does not need to initiate a wireless connection request to another communication network to perform a new IP address according to another communication network. The data packet transmission solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission.
可选的,该数据包传输方法还可以包括:生成虚拟IP地址;根据虚拟IP地址与n个通信网络中每个通信网络建立连接;获取n个通信网络中每个通信网络为终端分配的IP地址;建立第一IP资源池,第一IP资源池包括n个IP地址。Optionally, the data packet transmission method may further include: generating a virtual IP address; establishing a connection with each communication network in the n communication networks according to the virtual IP address; acquiring an IP allocated by each communication network in the n communication networks to the terminal. Address; establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
该数据包传输方法中,终端预先建立第一IP资源池,从而在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,进而将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,完成数据包的传输过程。In the data packet transmission method, the terminal establishes a first IP resource pool in advance, so that when the data packet needs to be transmitted, the first IP address is obtained in the first IP resource pool, and then the first source IP address of the data packet is virtualized. The IP address is replaced with the first IP address, and the processed data packet is obtained, and the data packet transmission process is completed.
可选的,根据虚拟IP地址与n个通信网络中每个通信网络建立连接,包括:根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连接请求消息,该连接请求消息包括虚拟IP地址;接收每个通信网络的分组网关发送的连接响应消息,每个连接响应消息包括通信网络为终端分配的IP地址。Optionally, establishing a connection with each of the n communication networks according to the virtual IP address, including: sending a connection request message to the packet gateway of each of the n communication networks according to the virtual IP address, where the connection request message includes a virtual IP address; receiving a connection response message sent by a packet gateway of each communication network, each connection response message including an IP address assigned by the communication network to the terminal.
该数据通道建立方法中,终端接收每个通信网络的分组网关发送的连接响应消息,获取连接响应消息中的IP地址,从而建立第一IP资源池。此外,该连接响应消息还可以包括通信网络为终端分配的端口号。In the data channel establishing method, the terminal receives the connection response message sent by the packet gateway of each communication network, acquires the IP address in the connection response message, and establishes the first IP resource pool. In addition, the connection response message may further include a port number assigned by the communication network to the terminal.
可选的,第一IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,该数据包传输方法还包括:确定n个数据通道中每个数据通道的服务质量;根据n个数据通道中每个数据 通道的服务质量对n个数据通道进行排序,得到排序信息;将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Optionally, the first IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, where the data packet transmission method further includes: determining n data. Quality of service for each data channel in the channel; based on each of the n data channels The service quality of the channel sorts the n data channels to obtain sorting information; and records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
该数据通道建立方法中,终端确定每个数据通道的服务质量,并对按照服务质量对多个数据通道进行排序,从而能够根据待传输数据的重要性选择不同的数据通道传输数据包,如选择服务质量较好的数据通道传输数据重要等级较高的数据包,提高了数据包传输的可靠性。In the data channel establishing method, the terminal determines the quality of service of each data channel, and sorts multiple data channels according to the quality of service, so that different data channels can be selected according to the importance of the data to be transmitted, such as selecting A data channel with better quality of service transmits data packets with higher importance of data, which improves the reliability of data packet transmission.
可选的,数据包还包括:待传输数据的类型,在第一IP资源池中获取第一IP地址,包括:根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定m个数据通道,m大于或等于1,且小于n;将m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。Optionally, the data packet further includes: a type of the data to be transmitted, and acquiring the first IP address in the first IP resource pool, including: determining an important level of the data to be transmitted according to the type of the data to be transmitted; Level, quality of service and ranking information for each of the n data channels, m data channels are determined in n data channels, m is greater than or equal to 1, and less than n; each data channel of m data channels The corresponding communication network is the IP address assigned by the terminal as the first IP address.
该数据包传输方法中,终端能够根据待传输数据的重要性选择不同的数据通道传输数据包,如选择服务质量较好的数据通道传输数据重要等级较高的数据包,提高了数据包传输的可靠性。In the data packet transmission method, the terminal can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
可选的,该数据包传输方法还可以包括:检测第一数据通道是否发生中断,第一数据通道为n个数据通道中的任一数据通道;当第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Optionally, the data packet transmission method may further include: detecting whether the first data channel is interrupted, the first data channel is any one of the n data channels; when the first data channel is interrupted, the first The information corresponding to the first data channel in the IP resource pool is set to the forbidden state.
该数据包传输方法中,终端将第一IP资源池中发生中断的数据通道对应的信息设置为禁止使用状态,从而能够及时排除服务质量较差的数据通道,而选择服务质量较好的数据通道进行数据包传输。此外,除了将发生中断的数据通道对应的信息设置为禁止使用状态外,还可以将其他不满足传输要求的数据通道对应的信息设置为禁止使用状态,如将服务质量小于一定值的数据通道对应的信息设置为禁止使用状态。In the data packet transmission method, the terminal sets the information corresponding to the interrupted data channel in the first IP resource pool to the prohibited use state, so that the data channel with poor service quality can be excluded in time, and the data channel with better service quality is selected. Perform packet transmission. In addition, in addition to setting the information corresponding to the interrupted data channel to the prohibited use state, other information corresponding to the data channel that does not satisfy the transmission requirement may be set to the prohibited use state, for example, the data channel whose service quality is less than a certain value is corresponding. The information is set to the prohibited state.
可选的,该数据包传输方法还可以包括:向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,该第二资源池包括n个IP地址。Optionally, the data packet transmission method may further include: sending, to the server, the virtual IP address and the information of the first IP resource pool, so that the server indicates the virtual IP address according to the virtual IP address and the information of the first IP resource pool. A second IP resource pool of the terminal, where the second resource pool includes n IP addresses.
该数据通道建立方法中,终端向服务器发送虚拟IP地址和第一IP资源池的信息,使得服务器建立虚拟IP地址所指示的终端的第二IP资源池,这样一来,服务器能够选择不同的数据通道传输数据包,提高了数据包传输的可靠性。In the data channel establishment method, the terminal sends the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the second IP resource pool of the terminal indicated by the virtual IP address, so that the server can select different data. Channels transmit data packets, improving the reliability of packet transmission.
可选的,该数据包传输方法还可以包括:当第一IP资源池的信息发生变化时,将变化后的第一IP资源池的信息发送至服务器,以便于服务器根据变 化后的第一IP资源池的信息对第二IP资源池进行更新。Optionally, the data packet transmission method may further include: when the information of the first IP resource pool changes, sending the changed information of the first IP resource pool to the server, so that the server changes according to the server. The information of the first IP resource pool is updated to the second IP resource pool.
当第一IP资源池的信息发生变化时,终端可以将变化后的第一IP资源池的信息发送至服务器,以便于服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新,从而使服务器能够排除不满足传输要求的数据通道,而选择服务质量较好的数据通道进行数据包传输。示例的,当数据通道发生中断时,终端将该数据通道对应的信息设置为禁止使用状态后,可以将变化后的第一IP资源池的信息发送至服务器,以便于服务器对第二IP资源池中的数据通道对应的信息设置为禁止使用状态。When the information of the first IP resource pool changes, the terminal may send the changed information of the first IP resource pool to the server, so that the server performs the second IP resource pool according to the changed information of the first IP resource pool. The update enables the server to exclude data channels that do not meet the transmission requirements, and select a data channel with better quality of service for packet transmission. For example, when the data channel is interrupted, after the terminal sets the information corresponding to the data channel to the forbidden state, the information of the changed first IP resource pool may be sent to the server, so that the server accesses the second IP resource pool. The information corresponding to the data channel in the middle is set to the prohibited use state.
可选的,该数据包传输方法还可以包括:终端每隔预设时间段对第一IP资源池中每个数据通道的服务质量和排序信息进行更新,从而能够及时选择服务质量较好的数据通道进行数据包传输,进一步提高了数据包传输的可靠性。Optionally, the data packet transmission method may further include: the terminal updates the service quality and the sorting information of each data channel in the first IP resource pool every preset time period, so that the data with better service quality can be selected in time. The channel carries out packet transmission, which further improves the reliability of data packet transmission.
可选的,在第一IP资源池中获取第一IP地址,包括:终端将n个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址,n个数据通道形成链路热备份,大大提高了数据包传输的可靠性。Optionally, obtaining the first IP address in the first IP resource pool includes: the terminal uses the IP address corresponding to the communication network corresponding to each data channel of the n data channels as the first IP address, and the n data channels. The link hot backup is formed, which greatly improves the reliability of data packet transmission.
可选的,服务质量可以为信噪比、数据包重传次数、通道载波数量、通道带宽、通道延迟、通道类型和通道调度等级等参数。Optionally, the quality of service may be a parameter such as a signal to noise ratio, a number of packet retransmissions, a number of channel carriers, a channel bandwidth, a channel delay, a channel type, and a channel scheduling level.
可选的,通信网络可以为无线局域网、无线蜂窝网、无线专网、紫蜂ZigBee网和基于互联网协议版本6的低功耗无线个人区域网络6LowPAN等。Optionally, the communication network may be a wireless local area network, a wireless cellular network, a wireless private network, a ZigBee network, and a low-power wireless personal area network 6LowPAN based on the Internet Protocol version 6.
第四方面,提供了一种数据包传输方法,用于无线电力通信系统中的服务器,该数据包传输方法可以包括:当需要进行数据包传输时,在第二IP资源池中获取第二IP地址,第二IP地址为用于进行数据包传输的目标目的IP地址,第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,第二IP资源池是根据终端发送的终端的虚拟IP地址和第一IP资源池的信息建立的,数据包包括待传输数据、第二源IP地址和第二目的IP地址,第二源IP地址为服务器的IP地址,第二目的IP地址为虚拟IP地址;将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包;通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向终端传输处理后的数据包;其中,第一IP资源池包括n个IP地址。A fourth aspect provides a data packet transmission method for a server in a wireless power communication system, where the data packet transmission method includes: acquiring a second IP in a second IP resource pool when data packet transmission is required The address, the second IP address is a target destination IP address for data packet transmission, and the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, and n is greater than or equal to 2. The second IP resource pool is established according to the virtual IP address of the terminal and the information of the first IP resource pool, where the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, and the second source IP address. The IP address of the server, the second destination IP address is a virtual IP address; the second destination IP address of the data packet is replaced by the virtual IP address to the second IP address, and the processed data packet is obtained; the second source IP address is The data channel of the communication network indicated by the second IP address transmits the processed data packet to the terminal; wherein the first IP resource pool includes n IP addresses.
示例的,该数据通道建立方法可以应用于无线电力通信系统中的服务器。该数据通道建立方法中,当需要进行数据包传输时,服务器能够在第二IP资源池中获取第二IP地址,将数据包的第二目的IP地址由虚拟IP地址替换为第 二IP地址,得到处理后的数据包,再通过数据通道向终端传输处理后的数据包,解决了数据包传输过程中数据丢失的问题,提高了数据包传输的可靠性。By way of example, the data channel establishment method can be applied to a server in a wireless power communication system. In the data channel establishment method, when data packet transmission is required, the server can obtain the second IP address in the second IP resource pool, and replace the second destination IP address of the data packet with the virtual IP address. The second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
可选的,该数据包传输方法还可以包括:接收终端发送的虚拟IP地址和第一IP资源池的信息;根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Optionally, the data packet transmission method may further include: receiving the virtual IP address sent by the terminal and the information of the first IP resource pool; establishing the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. The second IP resource pool.
该数据包传输方法中,服务器预先建立第二IP资源池,从而在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,进而将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包,完成数据包的传输过程。In the data packet transmission method, the server pre-establishes a second IP resource pool, so that when the data packet needs to be transmitted, the second IP address is obtained in the second IP resource pool, and then the second destination IP address of the data packet is virtualized. The IP address is replaced with the second IP address, and the processed data packet is obtained, and the data packet transmission process is completed.
可选的,数据包还包括:待传输数据的类型,第二IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,在第二IP资源池中获取第二IP地址,包括:根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定p个数据通道,p大于或等于1,且小于n;将p个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。Optionally, the data packet further includes: a type of data to be transmitted, and the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, where Obtaining the second IP address in the second IP resource pool, including: determining an important level of the data to be transmitted according to the type of the data to be transmitted; according to the important level of the data to be transmitted, the quality of service and the ordering of each data channel in the n data channels For the information, the p data channels are determined in the n data channels, p is greater than or equal to 1, and is less than n; and the communication network corresponding to each data channel of the p data channels is the IP address assigned by the terminal as the second IP address.
该数据包传输方法中,服务器能够根据待传输数据的重要性选择不同的数据通道传输数据包,如选择服务质量较好的数据通道传输数据重要等级较高的数据包,提高了数据包传输的可靠性。In the data packet transmission method, the server can select different data channels to transmit data packets according to the importance of the data to be transmitted, for example, selecting a data channel with better quality of service to transmit data packets with higher importance of data, thereby improving data packet transmission. reliability.
可选的,该数据包传输方法还包括:接收终端发送的变化后的第一IP资源池的信息;根据变化后的第一IP资源池的信息对第二IP资源池进行更新。Optionally, the data packet transmission method further includes: receiving information of the changed first IP resource pool sent by the terminal; and updating the second IP resource pool according to the changed information of the first IP resource pool.
在该数据包传输方法中,当第一IP资源池的信息发生变化时,终端可以将变化后的第一IP资源池的信息发送至服务器,服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新,从而使服务器能够排除不满足传输要求的数据通道,而选择服务质量较好的数据通道进行数据包传输。示例的,当数据通道发生中断时,终端将该数据通道对应的信息设置为禁止使用状态后,可以将变化后的第一IP资源池的信息发送至服务器,服务器可以对第二IP资源池中的数据通道对应的信息设置为禁止使用状态。In the data packet transmission method, when the information of the first IP resource pool changes, the terminal may send the changed information of the first IP resource pool to the server, and the server according to the changed information of the first IP resource pool. The second IP resource pool is updated, so that the server can exclude data channels that do not meet the transmission requirements, and select a data channel with better quality of service for data packet transmission. For example, when the data channel is interrupted, after the terminal sets the information corresponding to the data channel to the forbidden state, the information of the changed first IP resource pool may be sent to the server, and the server may be in the second IP resource pool. The information corresponding to the data channel is set to the prohibited use state.
第五方面,提供了一种终端,该终端包括:生成单元,用于生成虚拟IP地址;第一建立单元,用于根据虚拟IP地址与n个通信网络中每个通信网络建立连接,n大于或等于2;获取单元,用于获取n个通信网络中每个通信网 络为终端分配的IP地址,得到n个IP地址;第二建立单元,用于利用n个IP地址中的每个IP地址分别与服务器建立数据通道。According to a fifth aspect, a terminal is provided, the terminal includes: a generating unit, configured to generate a virtual IP address, and a first establishing unit, configured to establish a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than Or equal to 2; an acquisition unit for acquiring each communication network in n communication networks The network assigns an IP address to the terminal, and obtains n IP addresses. The second establishing unit is configured to establish a data channel with the server by using each of the n IP addresses.
可选的,该终端还可以包括:第三建立单元,用于根据n个IP地址建立第一IP资源池,第一IP资源池包括n个IP地址;发送单元,用于向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。Optionally, the terminal may further include: a third establishing unit, configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses, and a sending unit, configured to send the virtual IP to the server And the information of the first IP resource pool, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
可选的,该终端还可以包括:确定单元,用于确定n个数据通道中每个数据通道的服务质量;排序单元,用于根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息;记录单元,用于将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Optionally, the terminal may further include: a determining unit, configured to determine a quality of service of each of the n data channels; and a sorting unit, configured to compare n quality of service data according to each of the n data channels The data channel is sorted to obtain sorting information; and the recording unit is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
可选的,该终端还可以包括:检测单元,用于检测第一数据通道是否发生中断,第一数据通道为n个数据通道中的任一数据通道;设置单元,用于在第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Optionally, the terminal may further include: a detecting unit, configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
第六方面,提供了一种服务器,该服务器包括:接收单元,用于接收终端发送的虚拟IP地址和第一IP资源池的信息,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,虚拟IP地址为终端生成的虚拟IP地址;第一建立单元,用于根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址;第二建立单元,用于利用n个IP地址中的每个IP地址分别与终端建立数据通道。According to a sixth aspect, a server is provided, the server includes: a receiving unit, configured to receive a virtual IP address sent by the terminal and information of a first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address The terminal is used to access a different communication network, and the virtual IP address is a virtual IP address generated by the terminal. The first establishing unit is configured to establish a terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. The second IP resource pool includes a plurality of IP addresses, and the second establishing unit is configured to establish a data channel with the terminal by using each of the n IP addresses.
可选的,第二IP资源池还包括n个数据通道中每个数据通道的服务质量和n个数据通道的服务质量的排序信息。Optionally, the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
第七方面,提供了一种终端,该终端包括:第一获取单元,用于在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,第一IP地址为用于进行数据包传输的目标源IP地址,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,数据包包括待传输数据、第一源IP地址和第一目的IP地址,第一源IP地址为终端的虚拟IP地址,第一目的IP地址为服务器的IP地址;替换单元,用于将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包;传输单元,用于通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输 处理后的数据包。The seventh aspect provides a terminal, where the terminal includes: a first acquiring unit, configured to acquire a first IP address in a first IP resource pool when the data packet needs to be transmitted, where the first IP address is used for performing The destination IP address of the data packet transmission, the first IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, the first source. The IP address and the first destination IP address, the first source IP address is the virtual IP address of the terminal, the first destination IP address is the IP address of the server, and the replacement unit is configured to use the virtual IP address of the first source IP address of the data packet. Replacing with the first IP address, obtaining the processed data packet; and transmitting, for transmitting to the server by the data channel of the communication network indicated by the first IP address and the first destination IP address The processed packet.
可选的,该终端还可以包括:生成单元,用于生成虚拟IP地址;第一建立单元,用于根据虚拟IP地址与n个通信网络中每个通信网络建立连接;第二获取单元,用于获取n个通信网络中每个通信网络为终端分配的IP地址;第二建立单元,用于建立第一IP资源池,第一IP资源池包括n个IP地址。Optionally, the terminal may further include: a generating unit, configured to generate a virtual IP address, a first establishing unit, configured to establish a connection with each of the n communication networks according to the virtual IP address, and a second acquiring unit, Obtaining an IP address assigned by each communication network to the terminal in the n communication networks; a second establishing unit, configured to establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
可选的,第一建立单元,具体用于:根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连接请求消息,连接请求消息包括虚拟IP地址;接收每个通信网络的分组网关发送的连接响应消息,每个连接响应消息包括通信网络为终端分配的IP地址。Optionally, the first establishing unit is specifically configured to: send, according to the virtual IP address, a connection request message to a packet gateway of each communication network in the n communication networks, where the connection request message includes a virtual IP address; and receive a packet of each communication network. A connection response message sent by the gateway, and each connection response message includes an IP address assigned by the communication network to the terminal.
可选的,第一IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,该终端还可以包括:确定单元,用于确定n个数据通道中每个数据通道的服务质量;排序单元,用于根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息;记录单元,用于将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Optionally, the first IP resource pool further includes the service quality of the data channel of each communication network of the n communication networks and the ranking information of the service quality of the n data channels, and the terminal may further include: a determining unit, configured to determine Quality of service for each of the n data channels; a sorting unit for sorting n data channels according to the quality of service of each of the n data channels to obtain sorting information; and a recording unit for n The quality of service and ordering information of each data channel in each data channel are recorded to the first IP resource pool.
可选的,数据包还包括:待传输数据的类型,第一获取单元,具体用于:根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定m个数据通道,m大于或等于1,且小于n;将m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。Optionally, the data packet further includes: a type of the data to be transmitted, where the first acquiring unit is specifically configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; and according to an important level of the data to be transmitted, n data channels The service quality and the sorting information of each data channel, determining m data channels in n data channels, m is greater than or equal to 1, and less than n; the communication network corresponding to each data channel in the m data channels is a terminal The assigned IP address is used as the first IP address.
可选的,该终端还可以包括:检测单元,用于检测第一数据通道是否发生中断,第一数据通道为n个数据通道中的任一数据通道;设置单元,用于在第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Optionally, the terminal may further include: a detecting unit, configured to detect whether the first data channel is interrupted, the first data channel is any one of the n data channels; and the setting unit is configured to be in the first data channel When an interrupt occurs, the information corresponding to the first data channel in the first IP resource pool is set to the prohibited use state.
可选的,该终端还可以包括:第一发送单元,用于向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。Optionally, the terminal may further include: a first sending unit, configured to send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes a virtual IP according to the virtual IP address and the information of the first IP resource pool. The second IP resource pool of the terminal indicated by the address, and the second resource pool includes n IP addresses.
可选的,该终端还可以包括:第二发送单元,用于在第一IP资源池的信息发生变化时,将变化后的第一IP资源池的信息发送至服务器,以便于服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新。 Optionally, the terminal may further include: a second sending unit, configured to: when the information of the first IP resource pool changes, send the changed information of the first IP resource pool to the server, so that the server changes according to the The information of the first IP resource pool is updated to the second IP resource pool.
第八方面,提供了一种服务器,该服务器包括:获取单元,用于在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,第二IP地址为用于进行数据包传输的目标目的IP地址,第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,第二IP资源池是根据终端发送的终端的虚拟IP地址和第一IP资源池的信息建立的,数据包包括待传输数据、第二源IP地址和第二目的IP地址,第二源IP地址为服务器的IP地址,第二目的IP地址为虚拟IP地址;替换单元,用于将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包;传输单元,用于通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向终端传输处理后的数据包;其中,第一IP资源池包括n个IP地址。According to an eighth aspect, a server is provided, the server includes: an obtaining unit, configured to acquire a second IP address in a second IP resource pool when the data packet needs to be transmitted, where the second IP address is used for performing a data packet The destination IP address of the transmission, the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is based on the terminal sent by the terminal. The virtual IP address and the information of the first IP resource pool are established, and the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, where the second source IP address is the IP address of the server, and the second destination IP address is a virtual IP address; a replacement unit, configured to replace the second destination IP address of the data packet by the virtual IP address with the second IP address to obtain the processed data packet; and the transmission unit, configured to pass the second source IP address and the second The data channel of the communication network indicated by the IP address transmits the processed data packet to the terminal; wherein the first IP resource pool includes n IP addresses.
可选的,该服务器还可以包括:第一接收单元,用于接收终端发送的虚拟IP地址和第一IP资源池的信息;建立单元,用于根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Optionally, the server may further include: a first receiving unit, configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool; and the establishing unit, configured to use the virtual IP address and the information of the first IP resource pool Establish a second IP resource pool of the terminal indicated by the virtual IP address.
可选的,数据包还包括:待传输数据的类型,第二IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,获取单元,具体用于:根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定p个数据通道,p大于或等于1,且小于n;将p个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。Optionally, the data packet further includes: a type of data to be transmitted, where the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, and obtains The unit is specifically configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; according to the important level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, in the n data channels The p data channels are determined, p is greater than or equal to 1, and is less than n; the communication network corresponding to each data channel of the p data channels is the IP address assigned by the terminal as the second IP address.
可选的,该服务器还可以包括:第二接收单元,用于接收终端发送的变化后的第一IP资源池的信息;更新单元,用于根据变化后的第一IP资源池的信息对第二IP资源池进行更新。Optionally, the server may further include: a second receiving unit, configured to receive information about the changed first IP resource pool sent by the terminal; and an update unit, configured to use, according to the changed information of the first IP resource pool The second IP resource pool is updated.
第九方面,提供了一种数据通道建立系统,包括终端和服务器,该终端为第五方面所述的终端;该服务器为第六方面所述的服务器。A ninth aspect provides a data channel establishing system, including a terminal and a server, wherein the terminal is the terminal according to the fifth aspect; the server is the server according to the sixth aspect.
第十方面,提供了一种数据包传输系统,包括终端和服务器,该终端为第七方面所述的终端;该服务器为第八方面所述的服务器。The tenth aspect provides a data packet transmission system, including a terminal and a server, where the terminal is the terminal according to the seventh aspect; the server is the server according to the eighth aspect.
第十一方面,提供了一种终端,该终端包括:至少一个处理器、存储器、通讯模块、至少一个通信总线和通讯天线。其中,通信总线用于实现这些组件之间的连接通信。通讯模块可以用于远距通信。通讯天线用于接收和发送通讯信号。处理器用于执行存储器中存储的应用程序,该应用程序包括第一方面所 述的数据通道建立方法。In an eleventh aspect, a terminal is provided, the terminal comprising: at least one processor, a memory, a communication module, at least one communication bus, and a communication antenna. Among them, the communication bus is used to implement connection communication between these components. The communication module can be used for remote communication. The communication antenna is used to receive and transmit communication signals. The processor is configured to execute an application stored in the memory, the application including the first aspect The data channel establishment method described.
第十二方面,提供了一种服务器,该服务器包括:处理器、网络接口、存储器和总线。其中,总线用于连接处理器、网络接口和存储器。处理器用于执行存储器中存储的程序,该程序包括第二方面所述的数据通道建立方法。In a twelfth aspect, a server is provided, the server comprising: a processor, a network interface, a memory, and a bus. Among them, the bus is used to connect the processor, network interface and memory. The processor is configured to execute a program stored in the memory, the program comprising the data channel establishing method of the second aspect.
第十三方面,提供了一种终端,该终端包括至少一个处理器、存储器、通讯模块、至少一个通信总线和通讯天线。其中,通信总线用于实现这些组件之间的连接通信。通讯模块可以用于远距通信。通讯天线用于接收和发送通讯信号。处理器用于执行存储器中存储的应用程序,该应用程序包括第三方面所述的数据包传输方法。In a thirteenth aspect, a terminal is provided, the terminal comprising at least one processor, a memory, a communication module, at least one communication bus, and a communication antenna. Among them, the communication bus is used to implement connection communication between these components. The communication module can be used for remote communication. The communication antenna is used to receive and transmit communication signals. The processor is configured to execute an application stored in the memory, the application comprising the data packet transmission method of the third aspect.
第十四方面,提供了一种服务器,该服务器包括:处理器、网络接口、存储器和总线。其中,总线用于连接处理器、网络接口和存储器。处理器用于执行存储器中存储的程序,该程序包括第四方面所述的数据包传输方法。In a fourteenth aspect, a server is provided, the server comprising: a processor, a network interface, a memory, and a bus. Among them, the bus is used to connect the processor, network interface and memory. The processor is configured to execute a program stored in the memory, the program comprising the data packet transmission method of the fourth aspect.
第十五方面,提供了一种数据通道建立系统,该数据通道建立系统包括终端和服务器,该终端为第十一方面所述的终端;该服务器为第十二方面所述的服务器。According to a fifteenth aspect, a data channel establishing system is provided, the data channel establishing system comprising a terminal and a server, wherein the terminal is the terminal according to the eleventh aspect; the server is the server according to the twelfth aspect.
第十六方面,提供了一种数据包传输系统,该数据包传输系统包括终端和服务器,该终端为第十三方面所述的终端;该服务器为第十四方面所述的服务器。According to a sixteenth aspect, a data packet transmission system is provided, the data packet transmission system comprising a terminal and a server, wherein the terminal is the terminal according to the thirteenth aspect; the server is the server according to the fourteenth aspect.
本发明提供的数据通道建立及数据包传输方法、终端、服务器及系统,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包中的地址信息进行处理,再将处理后的数据包通过数据通道传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包通过数据通道传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,提高了数据包传输的可靠性。The data channel establishment and data packet transmission method, the terminal, the server and the system provided by the present invention, when the data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the first IP address to the data packet. The address information in the process is processed, and the processed data packet is transmitted to the server through the data channel, and the server can obtain the second IP address in the second IP resource pool, and use the second IP address to perform the address information in the data packet. After processing, the processed data packet is transmitted to the terminal through the data channel, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明各个实施例所涉及的实施环境的示意图;1 is a schematic diagram of an implementation environment involved in various embodiments of the present invention;
图2是本发明实施例提供的一种数据通道建立方法的流程图;2 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention;
图3是本发明实施例提供的另一种数据通道建立方法的流程图;3 is a flowchart of another method for establishing a data channel according to an embodiment of the present invention;
图4-1是本发明实施例提供的又一种数据通道建立方法的流程图;4-1 is a flowchart of still another method for establishing a data channel according to an embodiment of the present invention;
图4-2是图4-1所示实施例中终端与通信网络建立连接的流程图;4-2 is a flowchart of establishing a connection between a terminal and a communication network in the embodiment shown in FIG. 4-1;
图4-3是图4-1所示实施例中终端的结构示意图;4-3 is a schematic structural diagram of a terminal in the embodiment shown in FIG. 4-1;
图4-4是图4-1所示实施例中服务器的结构示意图;4-4 is a schematic structural diagram of a server in the embodiment shown in FIG. 4-1;
图5是本发明实施例提供的一种数据包传输方法的流程图;FIG. 5 is a flowchart of a data packet transmission method according to an embodiment of the present invention;
图6是本发明实施例提供的另一种数据包传输方法的流程图;FIG. 6 is a flowchart of another method for transmitting a data packet according to an embodiment of the present invention;
图7-1是本发明实施例提供的又一种数据包传输方法的流程图;7-1 is a flowchart of still another method for transmitting a data packet according to an embodiment of the present invention;
图7-2是图7-1所示实施例中终端在第一IP资源池中获取第一IP地址的流程图;7-2 is a flowchart of obtaining, by the terminal, the first IP address in the first IP resource pool in the embodiment shown in FIG. 7-1;
图7-3是图7-1所示实施例中服务器在第二IP资源池中获取第二IP地址的流程图;7-3 is a flowchart of the server acquiring the second IP address in the second IP resource pool in the embodiment shown in FIG. 7-1;
图7-4是现有技术中终端的开机流程图;7-4 is a flowchart of booting of a terminal in the prior art;
图7-5是图7-4中的终端进行网络切换的流程图;7-5 is a flowchart of the network switching performed by the terminal in FIG. 7-4;
图7-6是现有技术中一种数据包传输方法所涉及的模型示意图;7-6 are schematic diagrams of a model involved in a data packet transmission method in the prior art;
图7-7是本发明实施例提供的数据包传输方法所涉及的模型示意图;7-7 are schematic diagrams of models involved in a data packet transmission method according to an embodiment of the present invention;
图8是本发明实施例提供的一种数据包传输方法的流程图;FIG. 8 is a flowchart of a data packet transmission method according to an embodiment of the present invention;
图9是本发明实施例提供的一种数据包传输方法的流程图;FIG. 9 is a flowchart of a data packet transmission method according to an embodiment of the present invention;
图10是本发明实施例提供的一种数据包传输方法的流程图;FIG. 10 is a flowchart of a data packet transmission method according to an embodiment of the present invention;
图11是本发明实施例提供的一种数据包传输方法的流程图;11 is a flowchart of a data packet transmission method according to an embodiment of the present invention;
图12-1是本发明实施例提供的一种终端的结构示意图;12-1 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图12-2是本发明实施例提供的一种终端的结构示意图;12-2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图13是本发明实施例提供的一种服务器的结构示意图;FIG. 13 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图14-1是本发明实施例提供的一种终端的结构示意图;FIG. 14-1 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图14-2是本发明实施例提供的一种终端的结构示意图;14 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图15-1是本发明实施例提供的一种服务器的结构示意图;FIG. 15-1 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图15-2是本发明实施例提供的一种服务器的结构示意图;FIG. 15-2 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图16是本发明实施例提供的一种终端的结构示意图;FIG. 16 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图17是本发明实施例提供的一种服务器的结构示意图; FIG. 17 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图18是本发明实施例提供的一种终端的结构示意图;FIG. 18 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图19是本发明实施例提供的一种服务器的结构示意图。FIG. 19 is a schematic structural diagram of a server according to an embodiment of the present invention.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。The above general description and the following detailed description are intended to be illustrative and not restrictive.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
图1是本发明各个实施例所涉及的实施环境的示意图,该实施环境可以包括:终端11和服务器12。示例的,终端11可以是无线电力通信系统中的任一电力终端设备。服务器12可以是无线电力通信系统中的服务器(该服务器为业务服务器),服务器12可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。终端11能够根据生成的虚拟IP地址与n(n大于或等于2)个通信网络13中每个通信网络建立连接,获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器12建立数据通道,以便于终端和服务器通过数据通道传输数据包。该实施环境以n等于2为例进行说明。本发明各个实施例除了可以应用于无线电力通信系统,还可以应用于其他任何进行数据包传输的场景,本发明实施例对此不做限定。1 is a schematic diagram of an implementation environment involved in various embodiments of the present invention, which may include a terminal 11 and a server 12. For example, the terminal 11 may be any one of the wireless power communication systems. The server 12 may be a server in a wireless power communication system (the server is a service server), and the server 12 may be a server, or a server cluster composed of several servers, or a cloud computing service center. The terminal 11 can establish a connection with each communication network of n (n is greater than or equal to 2) communication networks 13 according to the generated virtual IP address, and obtain an IP address allocated by each communication network in the n communication networks for the terminal, and obtain n The IP address, and each of the n IP addresses, respectively, establishes a data channel with the server 12, so that the terminal and the server transmit the data packet through the data channel. The implementation environment is described by taking n equal to 2 as an example. The embodiments of the present invention are applicable to the wireless power communication system, and can be applied to any other scenario in which data packet transmission is performed.
图2是本发明实施例提供的一种数据通道建立方法的流程图,本实施例以该数据通道建立方法应用于图1中的终端11来举例说明,该数据通道建立方法可以包括:2 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention. The method for establishing a data channel is applied to the terminal 11 in FIG. 1 as an example. The method for establishing a data channel may include:
步骤201、生成虚拟IP地址。Step 201: Generate a virtual IP address.
步骤202、根据虚拟IP地址与n个通信网络中每个通信网络建立连接,n大于或等于2。Step 202: Establish a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
步骤203、获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址。Step 203: Obtain an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses.
步骤204、利用n个IP地址中的每个IP地址分别与服务器建立数据通道。Step 204: Establish a data channel with the server by using each of the n IP addresses.
综上所述,本发明实施例提供的数据通道建立方法,终端能够根据虚拟IP地址与n个通信网络中每个通信网络建立连接,并获取n个通信网络中每个通 信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, in the data channel establishment method provided by the embodiment of the present invention, the terminal can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire each pass in the n communication networks. The IP address assigned by the network to the terminal obtains n IP addresses, and then uses each of the n IP addresses to establish a data channel with the server respectively. Compared with the prior art, the terminal and the server are used to transmit data packets. The number of data channels is larger, thus improving the reliability of packet transmission.
图3是本发明实施例提供的一种数据通道建立方法的流程图,本实施例以该数据通道建立方法应用于图1中的服务器12来举例说明,该数据通道建立方法可以包括:FIG. 3 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention. The method for establishing a data channel is applied to the server 12 in FIG. 1 as an example. The method for establishing a data channel may include:
步骤301、接收终端发送的虚拟IP地址和第一IP资源池的信息,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,虚拟IP地址为终端生成的虚拟IP地址。Step 301: Receive a virtual IP address sent by the terminal and information of the first IP resource pool, where the first IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, and the virtual IP address is generated by the terminal. Virtual IP address.
步骤302、根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。Step 302: Establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes n IP addresses.
步骤303、利用n个IP地址中的每个IP地址分别与终端建立数据通道。Step 303: Establish a data channel with the terminal by using each of the n IP addresses.
综上所述,本发明实施例提供的数据通道建立方法,服务器能够根据终端发送的虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,再利用n个IP地址中的每个IP地址分别与终端建立数据通道,其中,第一IP资源池包括n个IP地址,第二资源池包括n个IP地址,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the data channel establishment method provided by the embodiment of the present invention, the server can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and reuse Each of the n IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses, compared to the prior art, the terminal and the server. The number of data channels used to transmit data packets is larger, thus improving the reliability of packet transmission.
图4-1是本发明实施例提供的一种数据通道建立方法的流程图,本实施例以该数据通道建立方法应用于图1所示实施环境来举例说明,该数据通道建立方法可以包括:4-1 is a flowchart of a method for establishing a data channel according to an embodiment of the present invention. The method for establishing a data channel is applied to the implementation environment shown in FIG.
步骤401、终端生成虚拟IP地址。Step 401: The terminal generates a virtual IP address.
虚拟IP地址对终端的应用层可见,终端的应用层能够看见虚拟IP地址,实现了数据通道对于应用层透明的效果。终端中的应用层可以生成一个虚拟身份标识号码(简称:ID),终端可以将该虚拟ID作为终端的虚拟IP地址。该虚拟IP地址可以一直被终端所使用。The virtual IP address is visible to the application layer of the terminal, and the application layer of the terminal can see the virtual IP address, thereby realizing the effect that the data channel is transparent to the application layer. The application layer in the terminal may generate a virtual identity number (abbreviation: ID), and the terminal may use the virtual ID as the virtual IP address of the terminal. This virtual IP address can always be used by the terminal.
示例的,该终端可以为手机,该手机可以为多模手机。多模手机指的是可以在不同技术标准的网络如全球移动通信系统(英文:Global System For Mobile Communications;简称:GSM)网络和码分多址(英文: CodeDivisionMultipleAccess;简称:CDMA)网络之间使用的手机,多模手机可以同时在多个网络中驻留。示例的,终端可以为支持长期演进(英文:Long Term Evolution;简称:LTE)网络、第二代移动通信技术(英文:the second Generation mobile communication technology;简称:2G)网络和3G网络的单用户身份识别模块(英文:Subscriber Identity Module;简称:SIM)卡多模手机或双SIM卡多模手机。For example, the terminal can be a mobile phone, and the mobile phone can be a multi-mode mobile phone. Multi-mode mobile phones refer to networks that can be used in different technical standards, such as Global System For Mobile Communications (GSM) networks and code division multiple access (English: CodeDivisionMultipleAccess; referred to as: CDMA) Mobile phones used between networks, multi-mode phones can reside in multiple networks at the same time. For example, the terminal may be a single user identity supporting a long term evolution (English: Long Term Evolution; LTE for short) network, a second generation mobile communication technology (English: the second generation mobile communication technology; 2G) network, and a 3G network. Identification module (English: Subscriber Identity Module; referred to as: SIM) card multi-mode mobile phone or dual SIM card multi-mode mobile phone.
步骤402、终端根据虚拟IP地址与n个通信网络中每个通信网络建立连接,n大于或等于2。Step 402: The terminal establishes a connection with each communication network in the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
示例的,在预设的网络接入场景下,终端每次开机之后,可以通过自动扫频技术检测到终端能够连接的n个通信网络(即无线接入网络)。示例的,通信网络可以为无线局域网、无线蜂窝网、无线专网、紫蜂(英文:ZigBee)网和基于互联网协议版本6的低功耗无线个人区域网络(英文:Internet Protocol Version 6 over Low-power wireless Personal Area Networks;简称:6LowPAN)等等,本发明实施例对通信网络的网络形态不作限定。现有技术中,终端包括分组交换(英文:Packet Switch;简称:PS)域和电路交换(英文:Circuit Switch;简称:CS)域,其中,PS域主要负责与分组型业务相关的会话控制和移动性管理等功能,PS域主要用于数据传输;CS域主要负责与电路型业务相关的呼叫控制和移动性管理等功能,CS域主要用于语音通话。本发明实施例可以解决PS域数据包传输过程中的通信延迟和数据丢失的问题,本发明实施例可以应用于各种涉及PS域数据传输的场景。For example, in a preset network access scenario, each time the terminal is powered on, the terminal can detect n communication networks (ie, wireless access networks) that the terminal can connect through automatic frequency sweeping technology. For example, the communication network may be a wireless local area network, a wireless cellular network, a wireless private network, a ZigBee network, and a low-power wireless personal area network based on the Internet Protocol version 6. (English: Internet Protocol Version 6 over Low- The power wireless personal area network (abbreviation: 6LowPAN) and the like, the embodiment of the present invention does not limit the network form of the communication network. In the prior art, the terminal includes a packet switching (English: Packet Switch; PS) domain and a circuit switching (English: Circuit Switch; CS: abbreviation: CS) domain, where the PS domain is mainly responsible for session control related to the packet type service. For mobility management and other functions, the PS domain is mainly used for data transmission; the CS domain is mainly responsible for call control and mobility management functions related to circuit-type services, and the CS domain is mainly used for voice calls. The embodiment of the present invention can solve the problem of communication delay and data loss in the PS domain data packet transmission process, and the embodiment of the present invention can be applied to various scenarios involving PS domain data transmission.
具体的,如图4-2所示,步骤402可以包括:Specifically, as shown in FIG. 4-2, step 402 may include:
步骤4021、根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连接请求消息。Step 4021: Send a connection request message to a packet gateway of each communication network in the n communication networks according to the virtual IP address.
连接请求消息包括虚拟IP地址。终端根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连接请求消息,示例的,假设该n个通信网络分别为2G网络、3G网络和4G网络,则终端根据虚拟IP地址向2G网络的分组网关发送连接建立请求,终端根据虚拟IP地址向3G网络的分组网关发送连接请求消息,终端根据虚拟IP地址向4G网络的分组网关发送连接请求消息。The connection request message includes a virtual IP address. The terminal sends a connection request message to the packet gateway of each communication network in the n communication networks according to the virtual IP address. For example, if the n communication networks are respectively a 2G network, a 3G network, and a 4G network, the terminal according to the virtual IP address The packet gateway of the 2G network sends a connection establishment request, and the terminal sends a connection request message to the packet gateway of the 3G network according to the virtual IP address, and the terminal sends a connection request message to the packet gateway of the 4G network according to the virtual IP address.
步骤4022、接收每个通信网络的分组网关发送的连接响应消息,每个连接响应消息包括通信网络为终端分配的IP地址。Step 4022: Receive a connection response message sent by a packet gateway of each communication network, where each connection response message includes an IP address allocated by the communication network for the terminal.
终端根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连 接请求消息之后,接收每个通信网络的分组网关发送的连接响应消息。以步骤4021中的2G网络、3G网络和4G网络为例,则终端根据虚拟IP地址向2G网络的分组网关发送连接建立请求,2G网络的分组网关向终端发送连接响应消息,该连接响应消息包括2G网络为终端分配的IP地址。终端根据虚拟IP地址向3G网络的分组网关发送连接建立请求,3G网络的分组网关向终端发送连接响应消息,该连接响应消息包括3G网络为终端分配的IP地址。终端根据虚拟IP地址向4G网络的分组网关发送连接建立请求,4G网络的分组网关向终端发送连接响应消息,该连接响应消息包括4G网络为终端分配的IP地址。最终,终端附着于2G网络、3G网络和4G网络。此外,每个连接响应消息还可以包括通信网络为终端分配的端口号,该端口号为用于区分服务的端口的编号。The terminal sends a connection to the packet gateway of each communication network in the n communication networks according to the virtual IP address. After receiving the request message, a connection response message sent by the packet gateway of each communication network is received. Taking the 2G network, the 3G network, and the 4G network in step 4021 as an example, the terminal sends a connection establishment request to the packet gateway of the 2G network according to the virtual IP address, and the packet gateway of the 2G network sends a connection response message to the terminal, where the connection response message includes The IP address assigned by the 2G network to the terminal. The terminal sends a connection establishment request to the packet gateway of the 3G network according to the virtual IP address, and the packet gateway of the 3G network sends a connection response message to the terminal, where the connection response message includes an IP address allocated by the 3G network for the terminal. The terminal sends a connection establishment request to the packet gateway of the 4G network according to the virtual IP address, and the packet gateway of the 4G network sends a connection response message to the terminal, where the connection response message includes an IP address allocated by the 4G network for the terminal. Finally, the terminal is attached to 2G networks, 3G networks, and 4G networks. In addition, each connection response message may further include a port number assigned by the communication network to the terminal, the port number being a number of a port for distinguishing the service.
步骤403、终端获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址。Step 403: The terminal acquires an IP address allocated by each communication network in the n communication networks for the terminal, and obtains n IP addresses.
n个IP地址对终端的应用层不可见,这样一来,应用层无法感知底层IP地址的变化,从而实现了屏蔽不同的数据通道对于应用层的软件的差异的效果。终端根据虚拟IP地址与n个通信网络中每个通信网络建立连接后,可以获取n个通信网络中每个通信网络为终端分配的IP地址,终端获取到IP地址后会注册到对应的通信网络中。同时,终端还可以获取通信网络为终端分配的端口号。以步骤4022中的2G网络、3G网络和4G网络为例,终端获取3个通信网络中每个通信网络为终端分配的IP地址,得到3个IP地址。The n IP addresses are invisible to the application layer of the terminal, so that the application layer cannot perceive the change of the underlying IP address, thereby realizing the effect of shielding different data channels from the application layer software. After the terminal establishes a connection with each communication network in the n communication networks according to the virtual IP address, the terminal can obtain an IP address assigned to the terminal by each communication network in the n communication networks, and the terminal acquires the IP address and registers with the corresponding communication network. in. At the same time, the terminal can also obtain the port number assigned by the communication network to the terminal. Taking the 2G network, the 3G network, and the 4G network in step 4022 as an example, the terminal acquires an IP address assigned to the terminal by each communication network in the three communication networks, and obtains three IP addresses.
步骤404、终端根据n个IP地址建立第一IP资源池。Step 404: The terminal establishes a first IP resource pool according to the n IP addresses.
第一IP资源池包括n个IP地址。可选的,终端可以根据步骤403获取的n个地址,建立第一IP资源池。该第一IP资源池包括与终端已连接的n个通信网络中每个通信网络为终端分配的IP地址。此外,第一IP资源池还可以包括每个通信网络为终端分配的端口号。The first IP resource pool includes n IP addresses. Optionally, the terminal may establish a first IP resource pool according to the n addresses obtained in step 403. The first IP resource pool includes an IP address assigned to the terminal by each of the n communication networks to which the terminal is connected. In addition, the first IP resource pool may further include a port number assigned to the terminal by each communication network.
可选的,终端可以设置一个虚拟互联网协议代理(英文:Virtual Internet Protocol Proxy;简称:VIPP)模块,终端可以通过VIPP模块根据n个IP地址建立第一IP资源池。图4-3示出了设置有VIPP模块的终端的结构示意图,图4-3中,与终端连接的n个通信网络分别为通信网络1、通信网络2、通信网络3,......,通信网络n,n个通信网络为终端分配的IP地址分别为IP1、IP2、IP3,......,IPn。按照步骤401至步骤404,终端的应用层生成虚拟IP地址, VIPP模块将该虚拟ID作为虚拟IP地址。终端开机后,VIPP模块可以自动扫描终端能够连接的通信网络,并控制终端根据虚拟IP地址与n个通信网络中每个通信网络建立连接,VIPP模块获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再根据n个IP地址建立第一IP资源池。Optionally, the terminal may set a virtual internet protocol proxy (English: Virtual Internet Protocol Proxy; referred to as: VIPP) module, and the terminal may establish a first IP resource pool according to n IP addresses through the VIPP module. 4-3 shows a schematic structural diagram of a terminal provided with a VIPP module. In FIG. 4-3, n communication networks connected to the terminal are respectively a communication network 1, a communication network 2, a communication network 3, ..... The communication network n, n communication networks assigned IP addresses for the terminals are IP1, IP2, IP3, ..., IPn. According to steps 401 to 404, the application layer of the terminal generates a virtual IP address. The VIPP module uses the virtual ID as a virtual IP address. After the terminal is powered on, the VIPP module can automatically scan the communication network that the terminal can connect, and control the terminal to establish a connection with each communication network in the n communication networks according to the virtual IP address, and the VIPP module acquires each communication network in the n communication networks as the terminal. The assigned IP address obtains n IP addresses, and then establishes a first IP resource pool according to n IP addresses.
步骤405、终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 405: The terminal sends the virtual IP address and the information of the first IP resource pool to the server.
可选的,终端根据n个IP地址建立第一IP资源池之后,可以向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Optionally, after the terminal establishes the first IP resource pool according to the n IP addresses, the terminal may send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the information according to the virtual IP address and the information of the first IP resource pool. The second IP resource pool of the terminal indicated by the virtual IP address.
示例的,终端可以通过图4-3所示的VIPP模块向服务器发送虚拟IP地址和第一IP资源池的信息。同样的,服务器可以设置一个虚拟链路控制(英文:Virtual Internet Protocol Control;简称:VIPC)模块,图4-4示出了设置有VIPC模块的服务器的结构示意图。图4-4中,与服务器连接的n个通信网络分别为通信网络1、通信网络2、通信网络3,......,通信网络n。终端通过图4-3所示的VIPP模块根据n个IP地址建立第一IP资源池之后,可以自动向图4-4所示VIPC模块发送传输控制协议(英文:Transmission Control Protocol;简称:TCP)链接建立请求,建立TCP链接。TCP链接建立之后,VIPP模块通过所建立的TCP链接将虚拟IP地址和第一IP资源池的信息发送至VIPC模块。如图4-4所示,第一IP资源池中的n个IP地址可以被集中存储在IP模块中。For example, the terminal may send the virtual IP address and the information of the first IP resource pool to the server through the VIPP module shown in FIG. 4-3. Similarly, the server can set a virtual link control (English: Virtual Internet Protocol Control; referred to as: VIPC) module, and Figure 4-4 shows the structure of the server with the VIPC module. In Figure 4-4, the n communication networks connected to the server are respectively a communication network 1, a communication network 2, a communication network 3, ..., a communication network n. After the terminal establishes the first IP resource pool according to the n IP addresses, the terminal can automatically send the transmission control protocol to the VIPC module shown in Figure 4-4 (English: Transmission Control Protocol; TCP). A link setup request establishes a TCP link. After the TCP link is established, the VIPP module sends the virtual IP address and the information of the first IP resource pool to the VIPC module through the established TCP link. As shown in Figure 4-4, the n IP addresses in the first IP resource pool can be centrally stored in the IP module.
步骤406、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 406: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
该第二资源池包括n个IP地址。可选的,服务器接收到终端发送的虚拟IP地址和第一IP资源池的信息后,可以根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。第二IP资源池还可以包括每个通信网络为终端分配的端口号。示例的,服务器可以通过图4-4所示的VIPC模块根据虚拟IP地址和第一IP资源池的信息建立第二IP资源池。第二IP资源池的信息与第一IP资源池的信息相同。VIPC模块能够根据VIPP模块发送的第一IP资源池的信息建立自身的IP资源池,并维护该IP资源池的信息。The second resource pool includes n IP addresses. Optionally, after receiving the virtual IP address sent by the terminal and the information of the first IP resource pool, the server may establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. . The second IP resource pool may also include a port number assigned to the terminal by each communication network. For example, the server may establish a second IP resource pool according to the virtual IP address and the information of the first IP resource pool by using the VIPC module shown in FIG. 4-4. The information of the second IP resource pool is the same as the information of the first IP resource pool. The VIPC module can establish its own IP resource pool according to the information of the first IP resource pool sent by the VIPP module, and maintain the information of the IP resource pool.
步骤407、终端利用n个IP地址中的每个IP地址分别与服务器建立数据通道。Step 407: The terminal establishes a data channel with the server by using each of the n IP addresses.
具体的,终端利用n个IP地址中的每个IP地址分别与服务器建立数据通道,包括:终端根据n个IP地址中的每个IP地址分别向服务器发送通道建立 请求;终端接收服务器根据n个IP地址中的每个IP地址分别发送的通道建立响应。以步骤4022中的2G网络、3G网络和4G网络为例,终端获取3个通信网络中每个通信网络为终端分配的IP地址,得到3个IP地址,再利用该3个IP地址中的每个IP地址分别与服务器建立数据通道。假设该3个IP地址分别为IPa、IPb和IPc,那么终端可以利用IPa、IPb和IPc与服务器建立3个数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,提高了数据包传输的可靠性。终端利用n个IP地址中的每个IP地址分别与服务器建立数据通道的过程可以参考现有技术,本发明实施例对此不再赘述。Specifically, the terminal establishes a data channel with the server by using each of the n IP addresses, including: the terminal separately sends a channel to the server according to each of the n IP addresses. Request; the terminal receiving server establishes a response based on the channel respectively sent by each of the n IP addresses. Taking the 2G network, the 3G network, and the 4G network in step 4022 as an example, the terminal acquires an IP address assigned to each terminal in each of the three communication networks, obtains three IP addresses, and then uses each of the three IP addresses. Each IP address establishes a data channel with the server. Assuming that the three IP addresses are IPa, IPb, and IPc, the terminal can establish three data channels with the server by using IPa, IPb, and IPc. Compared with the prior art, the terminal and the server are used to transmit the data channel of the data packet. More numbers increase the reliability of packet transmission. For the process of establishing a data channel with the server by using each of the n IP addresses, the terminal may refer to the prior art, and details are not described herein.
需要补充说明的是,图4-3中的VIPP模块能够向上管理多个数据通道,向下为应用层屏蔽不同的数据通道,图4-4中的VIPC模块与VIPP模块的功能类似,也能够向下管理底层多个数据通道,向上为业务层屏蔽不同的数据通道。It should be added that the VIPP module in Figure 4-3 can manage multiple data channels upwards and shield different data channels for the application layer. The VIPC module in Figure 4-4 functions similarly to the VIPP module. Manage the underlying multiple data channels down and shield different data channels for the business layer.
终端利用n个IP地址中的每个IP地址分别与服务器建立数据通道,同时,服务器利用n个IP地址中的每个IP地址分别与终端建立数据通道。服务器可以利用终端发送的第一IP地资源池中的n个IP地址与终端建立数据通道,也可以利用建立的第二IP资源池中的n个IP地址与终端建立数据通道。The terminal establishes a data channel with the server by using each of the n IP addresses, and the server establishes a data channel with the terminal by using each of the n IP addresses. The server may establish a data channel with the terminal by using the n IP addresses in the first IP resource pool sent by the terminal, or establish a data channel with the terminal by using the n IP addresses in the established second IP resource pool.
步骤408、终端确定n个数据通道中每个数据通道的服务质量。Step 408: The terminal determines a quality of service of each of the n data channels.
终端可以通过图4-3所示的VIPP模块实时测量并记录每个数据通道的服务质量(英文:Quality of Service;简称:QoS)。其中,数据通道的服务质量可以为数据通道的上下行通道的信噪比(英文:Signal-Noise Ratio;简称:SNR)、数据包重传次数、通道载波数量、通道带宽、通道延迟、通道类型和通道调度等级等参数,本发明实施例对服务质量的具体形式不做限定。示例的,信噪比越高,数据通道的服务质量就越好;数据包重传次数越小,数据通道的服务质量就越好。此外,VIPP模块还可以对多个参数进行综合考虑,计算出数据通道的服务质量,具体的计算过程可以参考现有技术,本发明实施例在此不再赘述。The terminal can measure and record the quality of service of each data channel in real time through the VIPP module shown in Figure 4-3 (English: Quality of Service; QoS for short). The service quality of the data channel may be the signal-to-noise ratio of the uplink and downlink channels of the data channel (English: Signal-Noise Ratio; SNR), number of data packet retransmissions, number of channel carriers, channel bandwidth, channel delay, channel type. The specific form of the service quality is not limited in the embodiment of the present invention. For example, the higher the signal-to-noise ratio, the better the quality of the data channel. The smaller the number of packet retransmissions, the better the quality of the data channel. In addition, the VIPP module can also comprehensively consider a plurality of parameters to calculate the service quality of the data channel. For the specific calculation process, reference may be made to the prior art, and details are not described herein again.
步骤409、终端根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息。Step 409: The terminal sorts the n data channels according to the service quality of each of the n data channels to obtain the sorting information.
可选的,终端可以通过图4-3所示的VIPP模块根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息。假设步骤407中,终端利用IPa与服务器建立的数据通道为PS通道A,终端利用IPb与服务 器建立的数据通道为PS通道B,终端利用IPc与服务器建立的数据通道为PS通道C。如果数据通道的服务质量用数字来表示,那么数字越大,表明数据通道的服务质量越好。如果PS通道A的服务质量为2,PS通道B的服务质量为3,PS通道C的服务质量为4,VIPP模块对3个数据通道按照数据通道的服务质量由好到差进行排序,得到:PS通道C、PS通道B和PS通道A。Optionally, the terminal can sort the n data channels according to the service quality of each data channel in the n data channels by using the VIPP module shown in Figure 4-3 to obtain sorting information. Assume that in step 407, the data channel established by the terminal using IPa and the server is PS channel A, and the terminal utilizes IPb and service. The data channel established by the device is PS channel B, and the data channel established by the terminal using IPc and the server is PS channel C. If the quality of service of the data channel is represented by a number, the larger the number, the better the quality of service of the data channel. If the quality of service of PS channel A is 2, the quality of service of PS channel B is 3, and the quality of service of PS channel C is 4, the VIPP module sorts the data channels according to the service quality of the data channel from good to bad, and obtains: PS channel C, PS channel B and PS channel A.
步骤410、终端将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Step 410: The terminal records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
可选的,图4-3所示的VIPP模块可以将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。以步骤409中的PS通道A、PS通道B和PS通道C为例,VIPP模块可以将PS通道A的服务质量:2,PS通道B的服务质量:3,PS通道C的服务质量:4,及排序信息:PS通道C、PS通道B和PS通道A,记录至第一IP资源池中。由于第二IP资源池的信息与第一IP资源池的信息相同,所以,第二IP资源池还可以包括n个数据通道中每个数据通道的服务质量和n个数据通道的服务质量的排序信息。Optionally, the VIPP module shown in Figure 4-3 records the quality of service and the sorting information of each of the n data channels to the first IP resource pool. Taking PS channel A, PS channel B and PS channel C in step 409 as an example, the VIPP module can provide the quality of service of PS channel A: 2, the quality of service of PS channel B: 3, the quality of service of PS channel C: 4, And sorting information: PS channel C, PS channel B, and PS channel A are recorded in the first IP resource pool. Since the information of the second IP resource pool is the same as the information of the first IP resource pool, the second IP resource pool may further include a quality of service of each of the n data channels and a quality of service of the n data channels. information.
步骤411、终端检测第一数据通道是否发生中断。Step 411: The terminal detects whether an interruption occurs in the first data channel.
第一数据通道为n个数据通道中的任一数据通道。示例的,终端可以通过图4-3所示的VIPP模块检测数据通道是否发生中断。The first data channel is any one of the n data channels. For example, the terminal can detect whether the data channel is interrupted by using the VIPP module shown in Figure 4-3.
步骤412、当第一数据通道发生中断时,终端将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Step 412: When the first data channel is interrupted, the terminal sets the information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
终端通过图4-3所示的VIPP模块检测到有数据通道发生中断,那么终端可以通过VIPP模块将第一IP资源池中发生中断的数据通道对应的信息如数据通道的IP地址等,设置为禁止使用状态,从而能够及时排除服务质量较差的数据通道,而选择服务质量较好的数据通道进行数据包传输。终端将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态,即终端将第一IP资源池中第一通信通道对应的信息如第一数据通道对应的IP地址等设置为不可用,在第一数据通道对应的信息被设置为不可用之后,终端则无法通过第一数据通道进行数据包传输。需要补充说明的是,除了将发生中断的数据通道对应的信息设置为禁止使用状态外,还可以将其他不满足传输要求的数据通道对应的信息设置为禁止使用状态,如将服务质量小于一定值的数据通道对应的信息设置为禁止使用状态。When the terminal detects that there is a data channel interruption through the VIPP module shown in Figure 4-3, the terminal can set the information corresponding to the data channel in the first IP resource pool, such as the IP address of the data channel, through the VIPP module. The use of the state is prohibited, so that the data channel with poor service quality can be eliminated in time, and the data channel with better quality of service is selected for data packet transmission. The terminal sets the information corresponding to the first data channel in the first IP resource pool to the forbidden state, that is, the terminal sets the information corresponding to the first communication channel in the first IP resource pool, such as the IP address corresponding to the first data channel, to be unavailable. For example, after the information corresponding to the first data channel is set to be unavailable, the terminal cannot transmit the data packet through the first data channel. It should be added that, in addition to setting the information corresponding to the data channel in which the interruption occurs to the prohibited use state, other information corresponding to the data channel that does not satisfy the transmission requirement may be set to the prohibited use state, for example, the service quality is less than a certain value. The information corresponding to the data channel is set to the prohibited use state.
需要说明的是,本发明实施例提供的数据通道建立方法步骤的先后顺序可 以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本发明的保护范围之内,因此不再赘述。It should be noted that the sequence of steps of the data channel establishment method provided by the embodiment of the present invention may be In order to make appropriate adjustments, the steps may also be correspondingly increased or decreased according to the situation, and any method that can be easily conceived within the technical scope of the present invention by any person skilled in the art should be covered by the scope of the present invention. Therefore, I will not repeat them.
综上所述,本发明实施例提供的数据通道建立方法,终端能够根据虚拟IP地址与n个通信网络中每个通信网络建立连接,并获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,服务器能够根据终端发送的虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,再利用n个IP地址中的每个IP地址分别与终端建立数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, in the data channel establishment method provided by the embodiment of the present invention, the terminal can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire each communication network in the n communication networks for the terminal. IP address, get n IP addresses, and then use each of the n IP addresses to establish a data channel with the server. The server can establish a virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool. The second IP resource pool of the indicated terminal, and each of the n IP addresses respectively establishes a data channel with the terminal, and the number of data channels used by the terminal and the server to transmit the data packet is compared with the prior art. More, therefore, improves the reliability of packet transmission.
图5是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1中的终端11来举例说明,该数据包传输方法可以包括:FIG. 5 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method may be applied to the terminal 11 in FIG. 1 as an example. The data packet transmission method may include:
步骤501、当需要进行数据包传输时,在第一IP资源池中获取第一IP地址,第一IP地址为用于进行数据包传输的目标源IP地址,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,数据包包括待传输数据、第一源IP地址和第一目的IP地址,第一源IP地址为终端的虚拟IP地址,第一目的IP地址为服务器的IP地址。Step 501: When the data packet transmission is required, obtain the first IP address in the first IP resource pool, where the first IP address is a target source IP address used for data packet transmission, and the first IP resource pool includes n IP addresses. Address, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first source IP address is a virtual terminal. IP address, the first destination IP address is the IP address of the server.
步骤502、将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 502: Replace the first source IP address of the data packet with the virtual IP address and the first IP address, and obtain the processed data packet.
步骤503、通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 503: Transmit the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,再通过数据通道向服务器传输处理后的数据包,相较于现有技术,终端在进行网络切换时,无需向另一通信网络发起无线连接请求以根据另一通信网络分配的新的IP地址进行数据包传输,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,因此,提高了数据包传输的可靠性。 In summary, the data packet transmission method provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and the first source IP address of the data packet is virtualized. The IP address is replaced with the first IP address, and the processed data packet is obtained, and then the processed data packet is transmitted to the server through the data channel. Compared with the prior art, the terminal does not need to initiate to another communication network when performing network switching. The wireless connection request performs data packet transmission according to the new IP address allocated by another communication network, and solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
图6是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1中的服务器12来举例说明,该数据包传输方法可以包括:FIG. 6 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method may be applied to the server 12 in FIG. 1 as an example. The data packet transmission method may include:
步骤601、当需要进行数据包传输时,在第二IP资源池中获取第二IP地址,第二IP地址为用于进行数据包传输的目标目的IP地址,第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,第二IP资源池是根据终端发送的终端的虚拟IP地址和第一IP资源池的信息建立的,数据包包括待传输数据、第二源IP地址和第二目的IP地址,第二源IP地址为服务器的IP地址,第二目的IP地址为虚拟IP地址,第一IP资源池包括n个IP地址。Step 601: When a data packet transmission is required, obtain a second IP address in the second IP resource pool, where the second IP address is a destination destination IP address used for data packet transmission, and the second IP resource pool includes n IP addresses. Address, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is established according to the virtual IP address of the terminal sent by the terminal and the information of the first IP resource pool, the data packet The data source to be transmitted, the second source IP address, and the second destination IP address, the second source IP address is the IP address of the server, the second destination IP address is the virtual IP address, and the first IP resource pool includes n IP addresses.
步骤602、将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 602: Replace the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
步骤603、通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向终端传输处理后的数据包。Step 603: Transmit the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,服务器能够在第二IP资源池中获取第二IP地址,将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包,再通过数据通道向终端传输处理后的数据包,解决了数据包传输过程中数据丢失的问题,提高了数据包传输的可靠性。In summary, the data packet transmission method provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet transmission needs to be performed, and the second destination IP address of the data packet is virtualized. The IP address is replaced with the second IP address, and the processed data packet is obtained, and then the processed data packet is transmitted to the terminal through the data channel, which solves the problem of data loss during the data packet transmission process and improves the reliability of the data packet transmission.
图7-1是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1所示实施环境来举例说明,该数据包传输方法可以包括:FIG. 7-1 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method may be applied to the implementation environment shown in FIG.
步骤701、终端生成虚拟IP地址。Step 701: The terminal generates a virtual IP address.
步骤701的具体过程可以参考步骤401进行说明。The specific process of step 701 can be described with reference to step 401.
步骤702、终端根据虚拟IP地址与n个通信网络中每个通信网络建立连接。Step 702: The terminal establishes a connection with each of the n communication networks according to the virtual IP address.
n大于或等于2。步骤702的具体过程可以参考步骤402进行说明。n is greater than or equal to 2. The specific process of step 702 can be described with reference to step 402.
步骤703、终端获取n个通信网络中每个通信网络为终端分配的IP地址。Step 703: The terminal acquires an IP address assigned by each communication network in the n communication networks to the terminal.
步骤703的具体过程可以参考步骤403进行说明。The specific process of step 703 can be described with reference to step 403.
步骤704、终端建立第一IP资源池。 Step 704: The terminal establishes a first IP resource pool.
该第一IP资源池包括n个IP地址。步骤704的具体过程可以参考步骤404进行说明。The first IP resource pool includes n IP addresses. The specific process of step 704 can be described with reference to step 404.
步骤705、终端确定n个数据通道中每个数据通道的服务质量。Step 705: The terminal determines a quality of service of each of the n data channels.
可选的,第一IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息。步骤705的具体过程可以参考步骤408进行说明。Optionally, the first IP resource pool further includes the service quality of the data channel of each communication network in the n communication networks and the ranking information of the service quality of the n data channels. The specific process of step 705 can be described with reference to step 408.
步骤706、终端根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息。Step 706: The terminal sorts the n data channels according to the service quality of each of the n data channels to obtain the sorting information.
步骤706的具体过程可以参考步骤409进行说明。The specific process of step 706 can be described with reference to step 409.
步骤707、终端将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Step 707: The terminal records the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
步骤707的具体过程可以参考步骤410进行说明。The specific process of step 707 can be described with reference to step 410.
在一种可能的实现方式中,终端每隔预设时间段对第一IP资源池中每个数据通道的服务质量和排序信息进行更新,终端每隔预设时间段对第一IP资源池的信息进行更新,能够及时选择服务质量较好的数据通道进行数据包传输,进一步提高了数据包传输的可靠性。示例的,终端可以通过图4-3所示的VIPP模块对第一IP资源池的信息进行更新。以步骤410中的PS通道A、PS通道B和PS通道C为例,假设当前时刻,VIPP模块检测到PS通道A的服务质量为2,PS通道B的服务质量为3,PS通道C的服务质量为4,预设时间段后,VIPP模块检测到PS通道A的服务质量为3,PS通道B的服务质量为4,PS通道C的服务质量为2,那么VIPP模块可以对第一IP资源池中的3个数据通道的原服务质量进行更新,即将PS通道A的服务质量由2更新为3,将PS通道B的服务质量由3更新为4,将PS通道C的服务质量由4更新为2,并对3个数据通道按照服务质量由好到差重新进行排序,得到:PS通道B、PS通道A和PS通道C。In a possible implementation manner, the terminal updates the service quality and the sorting information of each data channel in the first IP resource pool every preset time period, and the terminal accesses the first IP resource pool every preset time period. The information is updated, and the data channel with better service quality can be selected in time for data packet transmission, thereby further improving the reliability of data packet transmission. For example, the terminal may update the information of the first IP resource pool through the VIPP module shown in Figure 4-3. Taking PS channel A, PS channel B, and PS channel C in step 410 as an example, assume that the current time, the VIPP module detects that the quality of service of PS channel A is 2, the quality of service of PS channel B is 3, and the service of PS channel C. The quality is 4, after the preset time period, the VIPP module detects that the service quality of PS channel A is 3, the service quality of PS channel B is 4, and the service quality of PS channel C is 2, then the VIPP module can access the first IP resource. The original quality of service of the three data channels in the pool is updated, that is, the quality of service of PS channel A is updated from 2 to 3, the quality of service of PS channel B is updated from 3 to 4, and the quality of service of PS channel C is updated by 4. 2, and reordering the 3 data channels according to the quality of service from good to bad, obtaining: PS channel B, PS channel A and PS channel C.
步骤708、终端检测第一数据通道是否发生中断。Step 708: The terminal detects whether an interruption occurs in the first data channel.
该第一数据通道为n个数据通道中的任一数据通道。步骤708的具体过程可以参考步骤411进行说明。The first data channel is any one of n data channels. The specific process of step 708 can be described with reference to step 411.
步骤709、当第一数据通道发生中断时,终端将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。Step 709: When the first data channel is interrupted, the terminal sets the information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
步骤709的具体过程可以参考步骤412进行说明。 The specific process of step 709 can be described with reference to step 412.
步骤710、终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 710: The terminal sends the virtual IP address and the information of the first IP resource pool to the server.
步骤710的具体过程可以参考步骤405进行说明。The specific process of step 710 can be described with reference to step 405.
步骤711、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 711: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
该第二资源池包括n个IP地址。第二IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息。步骤711的具体过程可以参考步骤406进行说明。The second resource pool includes n IP addresses. The second IP resource pool further includes ranking information of the quality of service of the data channel of each of the n communication networks and the quality of service of the n data channels. The specific process of step 711 can be described with reference to step 406.
步骤712、当第一IP资源池的信息发生变化时,终端将变化后的第一IP资源池的信息发送至服务器。Step 712: When the information of the first IP resource pool changes, the terminal sends the changed information of the first IP resource pool to the server.
在一种可能的实现方式中,终端向服务器发送虚拟IP地址和第一IP资源池的信息之后,当第一IP资源池的信息发生变化时,终端可以将变化后的第一IP资源池的信息发送至服务器,以便于服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新,从而使服务器能够选择服务质量较好的数据通道进行数据包传输。示例的,终端可以通过图4-3所示的VIPP模块将变化后的第一IP资源池的信息发送至服务器的VIPC模块,该VIPC模块为图4-4所示的VIPC模块。In a possible implementation, after the terminal sends the virtual IP address and the information of the first IP resource pool to the server, when the information of the first IP resource pool changes, the terminal may change the first IP resource pool. The information is sent to the server, so that the server updates the second IP resource pool according to the changed information of the first IP resource pool, so that the server can select a data channel with better quality of service for data packet transmission. For example, the terminal can send the changed information of the first IP resource pool to the VIPC module of the server through the VIPP module shown in Figure 4-3. The VIPC module is the VIPC module shown in Figure 4-4.
示例的,当步骤708中的第一数据通道发生中断时,终端将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态后,可以将变化后的第一IP资源池的信息发送至服务器,以便于服务器对第二IP资源池中第一数据通道对应的信息设置为禁止使用状态。For example, when the first data channel in the first IP resource pool is set to be in the forbidden state, the information of the changed first IP resource pool may be changed. Sending to the server, so that the server sets the information corresponding to the first data channel in the second IP resource pool to the prohibited use state.
步骤713、服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新。Step 713: The server updates the second IP resource pool according to the changed information of the first IP resource pool.
示例的,服务器可以通过图4-4所示的VIPC模块根据变化后的第一IP资源池的信息对第二IP资源池进行更新。For example, the server may update the second IP resource pool according to the changed information of the first IP resource pool by using the VIPC module shown in FIG. 4-4.
步骤714、当需要进行数据包传输时,终端在第一IP资源池中获取第一IP地址。Step 714: When the data packet transmission needs to be performed, the terminal acquires the first IP address in the first IP resource pool.
第一IP地址为用于进行数据包传输的目标源IP地址。数据包包括待传输数据、第一源IP地址和第一目的IP地址,第一源IP地址为终端的虚拟IP地址,第一目的IP地址为服务器的IP地址。终端在第一IP资源池中获取的第一IP地址的个数可以等于1,也可以大于1。示例的,终端可以通过图4-3所示的VIPP模块在第一IP资源池中获取第一IP地址。 The first IP address is the target source IP address used for packet transmission. The data packet includes data to be transmitted, a first source IP address, and a first destination IP address, the first source IP address is a virtual IP address of the terminal, and the first destination IP address is an IP address of the server. The number of the first IP address obtained by the terminal in the first IP resource pool may be equal to 1 or greater than 1. For example, the terminal can obtain the first IP address in the first IP resource pool through the VIPP module shown in Figure 4-3.
可选的,一方面,步骤714可以包括:将第一IP资源池中的n个IP地址作为第一IP地址。Optionally, in an aspect, step 714 may include: using the n IP addresses in the first IP resource pool as the first IP address.
示例的,图4-3所示的VIPP模块可以具备数据通道选择能力,VIPP模块可以将第一IP资源池中的n个IP地址一起作为用于进行数据包传输的第一IP地址。这样一来,终端通过n个数据通道向服务器传输数据包,n个数据通道形成链路热备份,大大提高了数据包传输的可靠性。For example, the VIPP module shown in Figure 4-3 can have data channel selection capability. The VIPP module can use the n IP addresses in the first IP resource pool together as the first IP address for data packet transmission. In this way, the terminal transmits data packets to the server through n data channels, and the n data channels form a link hot backup, which greatly improves the reliability of data packet transmission.
另一方面,数据包还包括:待传输数据的类型,相应的,如图7-2所示,步骤714可以包括:On the other hand, the data packet further includes: a type of data to be transmitted, and correspondingly, as shown in FIG. 7-2, step 714 may include:
步骤7141、根据待传输数据的类型确定待传输数据的重要等级。Step 7141: Determine an important level of data to be transmitted according to the type of data to be transmitted.
假设本发明实施例应用于无线电力通信系统,无线电力通信系统的数据按照类型分为关键数据、重要数据、一般数据和文件类数据,关键数据的重要等级高于重要数据的重要等级,重要数据的重要等级高于一般数据的重要等级,一般数据的重要等级高于文件类数据的重要等级。当待传输数据的类型为关键数据时,可以确定该待传输数据的重要等级最高;当待传输数据的类型为文件类数据时,可以确定该待传输数据的重要等级最低。示例的,对于关键数据和重要数据,终端可以通过VIPP模块选择一个或者多于一个且服务质量较好的数据通道传输数据包;对于一般数据和文件类数据,如果服务质量较好的数据通道处于工作状态,那么终端可以通过VIPP模块选择服务质量差一点的数据通道传输数据包。It is assumed that the embodiment of the present invention is applied to a wireless power communication system, and the data of the wireless power communication system is classified into key data, important data, general data, and file type data according to the type, and the important level of the key data is higher than the important level of the important data, and the important data. The important level is higher than the important level of the general data, and the important level of the general data is higher than the important level of the file type data. When the type of the data to be transmitted is key data, it may be determined that the importance level of the data to be transmitted is the highest; when the type of the data to be transmitted is file type data, it may be determined that the important level of the data to be transmitted is the lowest. For example, for critical data and important data, the terminal can select one or more data channels with better quality of service to transmit data packets through the VIPP module; for general data and file type data, if the data channel with better quality of service is in the data channel Working status, the terminal can select a data channel with a poor quality of service to transmit data packets through the VIPP module.
步骤7142、根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定m个数据通道,m大于或等于1,且小于n。Step 7142: Determine m data channels in the n data channels according to the importance level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, where m is greater than or equal to 1, and less than n.
假设待传输数据的类型为关键数据,由于关键数据的重要等级最高,所以需要选择服务质量较好的数据通道传输数据包。以步骤410中的PS通道A、PS通道B和PS通道C为例,假设PS通道A的服务质量为2,PS通道B的服务质量为3,PS通道C的服务质量为4,VIPP模块对3个数据通道按照数据通道的服务质量由好到差进行排序,得到PS通道C、PS通道B和PS通道A,那么,VIPP模块可以按照两种策略选择服务质量较好的数据通道。第一种策略为:VIPP模块选择位于第一名的PS通道C传输数据包;第二种策略为:VIPP模块选择位于前两名的PS通道C和PS通道B传输数据包。需要补充说明的是,在第二种策略中,VIPP模块可以先选择位于前两名的PS通道C和 PS通道B,再根据预设阈值和选择出来的PS通道C的服务质量、PS通道B的服务质量,对PS通道C及PS通道B做进一步的筛选,如选择服务质量大于预设阈值的数据通道传输数据包,排除服务质量小于预设阈值的数据通道。Assuming that the type of data to be transmitted is critical data, since the critical data has the highest importance level, it is necessary to select a data channel with better quality of service to transmit the data packet. Taking PS channel A, PS channel B, and PS channel C in step 410 as an example, assume that the quality of service of PS channel A is 2, the quality of service of PS channel B is 3, and the quality of service of PS channel C is 4, and the VIPP module is The three data channels are sorted according to the quality of the data channel from good to bad, and PS channel C, PS channel B and PS channel A are obtained. Then, the VIPP module can select the data channel with better quality of service according to two strategies. The first strategy is: the VIPP module selects the PS channel C transmission data packet located in the first name; the second strategy is: the VIPP module selects the first two PS channel C and PS channel B transmission data packets. It should be added that in the second strategy, the VIPP module can first select the first two PS channels C and PS channel B, according to the preset threshold and the quality of service of the selected PS channel C and the quality of service of the PS channel B, further screening the PS channel C and the PS channel B, such as selecting data with a service quality greater than a preset threshold. The channel transmits data packets, excluding data channels whose quality of service is less than a preset threshold.
步骤7143、将m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。Step 7143: The IP address assigned by the communication network corresponding to each data channel of the m data channels is the first IP address.
假设步骤7142中的n等于10,m等于3,按照步骤7142确定了3个数据通道,那么终端可以通过VIPP模块将3个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。Assuming that n in step 7142 is equal to 10, m is equal to 3, and three data channels are determined according to step 7142, then the terminal can use the VIPP module to assign the IP address corresponding to the communication network corresponding to each of the three data channels to the terminal as the IP address of the terminal. First IP address.
步骤715、终端将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 715: The terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
示例的,终端可以通过图4-3所示的VIPP模块将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址。VIPP模块为应用层提供了类似于TCP/IP协议接口,VIPP模块可以将应用层的TCP/IP接口调用转换成对底层第一IP资源池的调用,以屏蔽不同的数据通道对于应用层的软件的差异。假设步骤7143中的m等于1,数据通道对应的通信网络为终端分配的IP地址为IPA,终端将IPA作为第一IP地址,则按照步骤715,终端通过VIPP模块将数据包中的第一源IP地址由虚拟IP地址替换为IPA,得到处理后的数据包。该过程中,VIPP模块会将应用层传输数据包的命令:(第一源IP地址:终端的虚拟IP地址,第一目的IP地址:服务器的IP地址)替换为新的命令:(第一源IP地址:IPA,第一目的IP地址:服务器的IP地址),实现数据通道的映射。For example, the terminal can replace the first source IP address of the data packet with the virtual IP address by using the VIPP module shown in FIG. 4-3. The VIPP module provides a TCP/IP protocol interface for the application layer. The VIPP module can convert the application layer TCP/IP interface call into a call to the underlying first IP resource pool to shield different data channels from the application layer. The difference. Assuming that m is equal to 1 in step 7143, the IP address corresponding to the communication network corresponding to the data channel is IPA, and the terminal uses IPA as the first IP address. Then, according to step 715, the terminal uses the first source in the data packet through the VIPP module. The IP address is replaced by the virtual IP address to IPA, and the processed data packet is obtained. In the process, the VIPP module replaces the command of the application layer transmission packet: (first source IP address: virtual IP address of the terminal, first destination IP address: IP address of the server) with a new command: (first source) IP address: IPA, first destination IP address: IP address of the server), to achieve mapping of data channels.
步骤716、终端通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 716: The terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
终端对需要传输的数据包中的地址信息进行处理后,将处理后的数据包传输至服务器。After processing the address information in the data packet to be transmitted, the terminal transmits the processed data packet to the server.
需要补充说明的是,当用于传输数据包的数据通道发生中断,需要进行数据通道的切换时,或者,当用于传输数据包的数据通道的服务质量较差,需要进行数据通道的切换时,终端可以通过VIPP模块直接对数据包中的地址信息进行处理,将第一IP地址替换为另一满足传输要求的IP地址,进而通过满足传输要求的IP地址和服务器的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。整个过程,终端无需向另一通信网络发起无线连接请求,解决了现有技术中,数据包传输发生中断而造成通信延迟和数据丢失的问题。 It should be added that when the data channel for transmitting the data packet is interrupted, the data channel needs to be switched, or when the service quality of the data channel for transmitting the data packet is poor, and the data channel needs to be switched. The terminal can directly process the address information in the data packet through the VIPP module, replace the first IP address with another IP address that satisfies the transmission requirement, and then communicate the communication indicated by the IP address satisfying the transmission requirement and the IP address of the server. The data channel of the network transmits the processed data packet to the server. Throughout the process, the terminal does not need to initiate a wireless connection request to another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission in the prior art.
步骤717、当需要进行数据包传输时,服务器在第二IP资源池中获取第二IP地址。Step 717: When data packet transmission is required, the server acquires the second IP address in the second IP resource pool.
第二IP地址为用于进行数据包传输的目标目的IP地址,数据包包括待传输数据、第二源IP地址和第二目的IP地址,第二源IP地址为服务器的IP地址,第二目的IP地址为虚拟IP地址。The second IP address is a target destination IP address used for data packet transmission, and the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, and the second source IP address is an IP address of the server, and the second destination The IP address is a virtual IP address.
示例的,服务器可以通过图4-4所示的VIPC模块将第二IP资源池中的n个IP地址作为第二IP地址;服务器也可以通过VIPC模块根据待传输数据的重要等级,确定第二IP地址。具体的,如图7-3所示,步骤717可以包括:For example, the server may use the VIP IP address shown in FIG. 4-4 to use the n IP addresses in the second IP resource pool as the second IP address; the server may also determine the second level according to the importance level of the data to be transmitted through the VIPC module. IP address. Specifically, as shown in FIG. 7-3, step 717 may include:
步骤7171、根据待传输数据的类型确定待传输数据的重要等级。Step 7171: Determine an important level of data to be transmitted according to the type of data to be transmitted.
数据包还包括:待传输数据的类型。服务器能够根据数据包包括的待传输数据的类型确定待传输数据的重要等级。步骤7171的具体过程可以参考步骤7141进行说明。The data packet also includes the type of data to be transmitted. The server can determine the importance level of the data to be transmitted according to the type of data to be transmitted included in the data packet. The specific process of step 7171 can be described with reference to step 7141.
步骤7172、根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定p个数据通道,p大于或等于1,且小于n。Step 7172: Determine p data channels in the n data channels according to the importance level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, where p is greater than or equal to 1, and less than n.
步骤7172的具体过程可以参考步骤7142进行说明。The specific process of step 7172 can be described with reference to step 7142.
步骤7173、将p个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。Step 7173: The IP address assigned to the terminal by the communication network corresponding to each of the p data channels is used as the second IP address.
假设步骤7172中的n等于10,p等于4,按照步骤7172确定了4个数据通道,那么服务器可以通过VIPC模块将4个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。服务器在第二IP资源池中获取第二IP地址的具体过程可以参考步骤714进行说明。Assuming that n in step 7172 is equal to 10, p is equal to 4, and four data channels are determined according to step 7172, then the server can use the VIPC module to assign the IP address corresponding to the communication network corresponding to each of the four data channels to the terminal as the IP address of the terminal. Second IP address. The specific process for the server to obtain the second IP address in the second IP resource pool may be described with reference to step 714.
步骤718、服务器将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 718: The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
示例的,服务器可以通过图4-4所示的VIPC模块将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址。VIPC模块为业务层提供了类似于TCP/IP协议接口,VIPC模块可以将业务层的TCP/IP接口调用转换成对底层第二IP资源池的调用,以屏蔽不同的数据通道对于业务层的软件的差异。假设步骤7173中的p等于1,数据通道对应的通信网络为终端分配的IP地址为IPE,服务器将IPE作为第二IP地址,则按照步骤718,服务器通过VIPC模块将数据包中的第二目的IP地址由虚拟IP地址替换为IPE。该过程中,VIPC模块会 将业务层传输数据包的命令:(第二源IP地址:服务器的IP地址,第二目的IP地址:终端的虚拟IP地址)替换为新的命令:(第二源IP地址:服务器的IP地址,第二目的IP地址:IPE),实现数据通道的映射。For example, the server can replace the second destination IP address of the data packet from the virtual IP address to the second IP address through the VIPC module shown in FIG. 4-4. The VIPC module provides a TCP/IP protocol interface for the service layer. The VIPC module can convert the TCP/IP interface call of the service layer into a call to the underlying second IP resource pool to shield different data channels from the software of the service layer. The difference. Assuming that p is equal to 1 in step 7173, the IP address corresponding to the communication network corresponding to the data channel is IPE, and the server uses the IPE as the second IP address. Then, according to step 718, the server uses the VIPC module to set the second destination in the data packet. The IP address is replaced by a virtual IP address with an IPE. In the process, the VIPC module will The command to transmit the data packet at the service layer: (the second source IP address: the IP address of the server, the second destination IP address: the virtual IP address of the terminal) is replaced with a new command: (second source IP address: IP address of the server) , the second destination IP address: IPE), to achieve the mapping of the data channel.
步骤719、服务器通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向终端传输处理后的数据包。Step 719: The server transmits the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
服务器对需要传输的数据包中的地址信息进行处理后,将处理后的数据包传输至终端。After processing the address information in the data packet to be transmitted, the server transmits the processed data packet to the terminal.
需要补充说明的是,当用于传输数据包的数据通道发生中断,需要进行数据通道的切换时,或者,当用于传输数据包的数据通道的服务质量较差,需要进行数据通道的切换时,服务器可以通过VIPC模块直接对数据包中的地址信息进行处理,将第二IP地址替换为另一满足传输要求的IP地址,进而通过第二源IP地址和满足传输要求的IP地址所指示的通信网络的数据通道向终端传输处理后的数据包。该过程解决了现有技术中数据包传输发生中断而造成通信延迟和数据丢失的问题。It should be added that when the data channel for transmitting the data packet is interrupted, the data channel needs to be switched, or when the service quality of the data channel for transmitting the data packet is poor, and the data channel needs to be switched. The server can directly process the address information in the data packet through the VIPC module, replace the second IP address with another IP address that satisfies the transmission requirement, and then indicate by the second source IP address and the IP address satisfying the transmission requirement. The data channel of the communication network transmits the processed data packet to the terminal. This process solves the problem of communication delay and data loss caused by interruption of data packet transmission in the prior art.
图7-4示出了现有技术中终端的开机流程图,该终端可为单SIM卡多模双待终端,该终端支持4G网路的接入流程。如图7-4所示,当终端开机时,终端优先搜索4G网络,如果4G网络可用,则终端驻留在4G网络上,终端向4G网络发送PS域注册请求消息,4G网络根据该PS域注册请求向终端发送PS域注册接受消息和PS域注册完成消息,4G网络会给终端分配一个IP地址,终端进行数据包传输。同时,终端会发起3G网络的CS域注册请求消息,3G网络根据该CS域注册请求消息向终端发送CS域注册接受消息和CS域注册完成消息。终端成功注册到3G网络,通过3G网络进行语音通话。终端的开机流程执行完毕,即可进入双待机状态。FIG. 7-4 shows a startup flowchart of a terminal in the prior art. The terminal may be a single SIM multimode dual standby terminal, and the terminal supports an access process of a 4G network. As shown in Figure 7-4, when the terminal is powered on, the terminal preferentially searches for the 4G network. If the 4G network is available, the terminal resides on the 4G network, and the terminal sends a PS domain registration request message to the 4G network. The 4G network according to the PS domain. The registration request sends a PS domain registration accept message and a PS domain registration completion message to the terminal, and the 4G network assigns an IP address to the terminal, and the terminal performs data packet transmission. At the same time, the terminal initiates a CS domain registration request message of the 3G network, and the 3G network sends a CS domain registration accept message and a CS domain registration complete message to the terminal according to the CS domain registration request message. The terminal successfully registers with the 3G network and makes voice calls over the 3G network. After the terminal's boot process is completed, it can enter the dual standby state.
图7-5示出了图7-4中的终端进行网络切换的流程图。如图7-5所示,终端通过4G网络进行数据包传输,当终端检测到4G网络的数据通道(PS通道)发生中断时,终端会向3G网络发起PS域注册请求,PS域注册成功后,3G网络给终端分配一个新的IP地址,终端在3G网络上进行PS域数据的重建和恢复。当终端检测到3G网络的数据通道发生中断时,终端搜索到4G网络并驻留在4G网络上,终端会向4G网络重新发送PS域注册请求消息,PS域注册成功后,4G网络给终端分配一个新的IP地址和承载资源,终端在4G网络上进行PS域数据的重建和恢复,而3G网络和终端释放与3G网络相关的连接和 承载资源。该切换过程中终端的CS域处于待机状态。7-5 are flowcharts showing the network switching of the terminal in FIG. 7-4. As shown in Figure 7-5, the terminal transmits data packets through the 4G network. When the terminal detects that the data channel (PS channel) of the 4G network is interrupted, the terminal initiates a PS domain registration request to the 3G network. After the PS domain is successfully registered, The 3G network allocates a new IP address to the terminal, and the terminal reconstructs and recovers the PS domain data on the 3G network. When the terminal detects that the data channel of the 3G network is interrupted, the terminal searches for the 4G network and resides on the 4G network, and the terminal resends the PS domain registration request message to the 4G network. After the PS domain is successfully registered, the 4G network allocates the terminal to the terminal. A new IP address and bearer resources, the terminal rebuilds and recovers the PS domain data on the 4G network, and the 3G network and the terminal release the connection related to the 3G network and Host resources. The CS domain of the terminal is in the standby state during the handover.
图7-6示出了现有技术中一种数据包传输方法所涉及的模型示意图。如图7-6所示,终端在同一时间仅能通过一个通信网络(即通信网络1、通信网络2、通信网络3,......,通信网络n中的某一个通信网络)传输数据包,图7-6示出了当前时刻终端通过通信网络1传输数据包,因此,数据包传输的可靠性较低;终端在进行网络切换时,需要中断当前承载链路,向另一通信网络发起无线连接请求,获取新的IP地址,数据包传输发生中断,造成通信延迟和数据丢失,数据包传输的可靠性较低;n个IP地址(即IP1,IP2,IP3,......,IPn)对终端的应用层可见,终端的应用层需要管理底层数据通道的切换过程,应用层的开发复杂度较高,同时n个IP地址也对服务器的业务层可见,服务器的业务层需要管理底层数据通道,业务层的开发复杂度较高。图7-6中,服务器中底层多个数据通道的IP地址被集中存储在IP模块中。7-6 are schematic diagrams showing the model involved in a data packet transmission method in the prior art. As shown in Figure 7-6, the terminal can only transmit through one communication network (ie, communication network 1, communication network 2, communication network 3, ..., one of the communication networks n) at the same time. The data packet, FIG. 7-6 shows that the terminal transmits the data packet through the communication network 1 at the current time, and therefore, the reliability of the data packet transmission is low; when the terminal performs the network switching, the current bearer link needs to be interrupted, and the other communication is performed. The network initiates a wireless connection request, acquires a new IP address, and the data packet transmission is interrupted, resulting in communication delay and data loss, and the reliability of data packet transmission is low; n IP addresses (ie, IP1, IP2, IP3, .... .., IPn) is visible to the application layer of the terminal. The application layer of the terminal needs to manage the switching process of the underlying data channel, and the development complexity of the application layer is high. At the same time, n IP addresses are also visible to the service layer of the server, and the service of the server is The layer needs to manage the underlying data channel, and the development complexity of the business layer is high. In Figure 7-6, the IP addresses of the underlying multiple data channels in the server are stored centrally in the IP module.
图7-7示出了本发明实施例提供的数据包传输方法所涉及的模型示意图,如图7-7所示,终端设置有VIPP模块,服务器设置有VIPC模块,终端在同一时间可以通过多个通信网络(即通信网络1,通信网络2,通信网络3,......,通信网络n)传输数据包,提高了数据包传输的可靠性;终端在进行网络切换时,无需向另一通信网络发起无线连接请求获取新的IP地址,解决了数据包传输发生中断造成通信延迟和数据丢失的问题,提高了数据包传输的可靠性;n个IP地址(即IP1,IP2,IP3,......,IPn)对终端的应用层不可见,终端的应用层无需管理底层数据通道的切换过程,降低了应用层的开发复杂度,同时n个IP地址也对服务器的业务层不可见,服务器的业务层无需管理底层数据通道,降低了业务层的开发复杂度。FIG. 7-7 is a schematic diagram of a model involved in a data packet transmission method according to an embodiment of the present invention. As shown in FIG. 7-7, a terminal is provided with a VIPP module, and a server is provided with a VIPC module, and the terminal can pass multiple times at the same time. Communication networks (ie, communication network 1, communication network 2, communication network 3, ..., communication network n) transmit data packets, which improves the reliability of data packet transmission; when the terminal performs network switching, it is not necessary to Another communication network initiates a wireless connection request to acquire a new IP address, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, and improves the reliability of data packet transmission; n IP addresses (ie, IP1, IP2, IP3) , ..., IPn) is invisible to the application layer of the terminal. The application layer of the terminal does not need to manage the switching process of the underlying data channel, which reduces the development complexity of the application layer, and the n IP addresses also serve the server. The layer is not visible, and the server's business layer does not need to manage the underlying data channel, which reduces the development complexity of the business layer.
本发明实施例提供的数据包传输方法为多数据通道传输方法,终端能够在同一时间与多个通信网络建立连接,终端能够同时工作在两个或者多个频段,数据包可以同时在多个数据通道上进行传输;终端能够为每一个连接建立一个无线分组数据通道,同时,终端设置有虚拟IP地址,终端的应用层能够看见虚拟IP地址,不会感知底层通信层IP地址的变化,通过在终端设置VIPP模块,以及在服务器设置VIPC模块,实现数据通道对于终端的应用层透明的效果,实现数据通道对于服务器的业务层透明的效果;终端能够测量不同数据通道的无线通信能力即服务质量(如上下行通道的SNR、数据包重传次数、通道载波数量、通道带宽、通道延迟、通道类型和通道调度等级等参数),并按照 一定策略将不同数据包分配到不同数据通道上,多个数据通道形成链路热备份,以实现最佳的数据包传输可靠性和较低的部署成本。其中,通道类型可以为2G、3G、4G、无线保真(英文:WIreless-Fidelity;简称:WIFI)和专网LTE等等。该方法中的VIPP模块,能够实时测量数据通道的服务质量,并对业务进行感知,实现最佳的数据通道与数据需求的匹配。例如对于最高优先级的数据,VIPP模块可以将对应的数据包分配至多个数据通道上同时传输,提高数据包传输的可靠性,对于低可靠性要求的数据,VIPP模块可以将对应的数据包分配至服务质量较差的数据通道上进行传输,这样一来,提高了数据包传输的可靠性,保证了业务的质量。该方法解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,避免了信道干扰、数据通道服务质量劣化而对通信质量的影响,示例的,该数据包传输方法使得无线通信技术能够应用于高可靠性要求的电力控制领域中。The data packet transmission method provided by the embodiment of the present invention is a multi-data channel transmission method, and the terminal can establish a connection with multiple communication networks at the same time, and the terminal can work in two or more frequency bands at the same time, and the data packet can simultaneously be in multiple data. The transmission is performed on the channel; the terminal can establish a wireless packet data channel for each connection, and the terminal is provided with a virtual IP address, and the application layer of the terminal can see the virtual IP address without perceiving the change of the IP address of the underlying communication layer. The terminal sets the VIPP module, and sets the VIPC module on the server to realize the effect that the data channel is transparent to the application layer of the terminal, and realizes the effect that the data channel is transparent to the service layer of the server; the terminal can measure the wireless communication capability of different data channels, that is, the quality of service ( Such as the downlink channel SNR, number of packet retransmissions, number of channel carriers, channel bandwidth, channel delay, channel type and channel scheduling level, etc.) A certain strategy allocates different data packets to different data channels, and multiple data channels form a link hot backup to achieve optimal packet transmission reliability and low deployment cost. Among them, the channel type can be 2G, 3G, 4G, wireless fidelity (English: WIreless-Fidelity; referred to as: WIFI) and private network LTE and so on. The VIPP module in the method can measure the service quality of the data channel in real time, and perceive the service to achieve the best matching of the data channel and the data requirement. For example, for the highest priority data, the VIPP module can distribute the corresponding data packets to multiple data channels for simultaneous transmission, improving the reliability of data packet transmission. For data with low reliability requirements, the VIPP module can allocate corresponding data packets. Transmission to a data channel with poor quality of service, thus improving the reliability of data packet transmission and ensuring the quality of the service. The method solves the problem of communication delay and data loss caused by interruption of data packet transmission, avoids the influence of channel interference and data channel service quality degradation on communication quality. For example, the data packet transmission method enables wireless communication technology to be applied. In the field of power control where high reliability is required.
需要说明的是,本发明实施例提供的数据包传输方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本发明的保护范围之内,因此不再赘述。It should be noted that the sequence of the steps of the data packet transmission method provided by the embodiment of the present invention may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation, and any person skilled in the art may be within the technical scope disclosed by the present invention. The method that can be easily conceived of the changes should be covered by the scope of the present invention, and therefore will not be described again.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,同时,终端和服务器可以根据待传输数据的重要性选择不同的数据通道传输数据包,且终端的应用层无需管理底层数据通道的切换过程,服务器的业务层无需管理底层数据通道,因此,提高了数据包传输的可靠性,降低了应用层和业务层的开发复杂度。In summary, in the data packet transmission method provided by the embodiment of the present invention, when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address. The information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data. The data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission. At the same time, the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal The layer does not need to manage the switching process of the underlying data channel, and the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
图8是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1所示实施环境来举例说明,示例的,图1中的终端可以为单SIM卡多模终端,该单SIM卡多模终端支持2G网络、3G网络、4G网络和WIFI网络的接入流程。该数据包传输方法可以包括:FIG. 8 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method is applied to the implementation environment shown in FIG. 1 for example. For example, the terminal in FIG. 1 may be Single SIM card multimode terminal, the single SIM card multimode terminal supports the access process of 2G network, 3G network, 4G network and WIFI network. The data packet transmission method may include:
步骤801、单SIM卡多模终端生成虚拟IP地址。 Step 801: A single SIM card multimode terminal generates a virtual IP address.
步骤802、单SIM卡多模终端根据虚拟IP地址分别与2G网络、3G网络、4G网络和WIFI网络建立连接。Step 802: The single SIM card multimode terminal establishes a connection with the 2G network, the 3G network, the 4G network, and the WIFI network according to the virtual IP address.
单SIM卡多模终端开机后,通过自动扫频技术检测到有可用的2G网络、3G网络、4G网络和WIFI网络。单SIM卡多模终端与2G网络、3G网络、4G网络和WIFI网络建立连接,每个通信网络为单SIM卡多模终端分配一个IP地址,假设2G网络为单SIM卡多模终端分配的IP地址为IP1,3G网络为单SIM卡多模终端分配的IP地址为IP2,4G网络为单SIM卡多模终端分配的IP地址为IP3,WIFI网络为单SIM卡多模终端分配的IP地址为IP4。单SIM卡多模终端获取IP地址后,注册到对应的通信网络。After the single SIM card multimode terminal is powered on, the available 2G network, 3G network, 4G network and WIFI network are detected by the automatic frequency sweeping technology. A single SIM card multimode terminal establishes a connection with a 2G network, a 3G network, a 4G network, and a WIFI network. Each communication network allocates an IP address to a single SIM card multimode terminal, assuming that the 2G network is an IP assigned to a single SIM card multimode terminal. The address is IP1, the IP address assigned by the 3G network for the single SIM card multimode terminal is IP2, the IP address assigned by the 4G network to the single SIM card multimode terminal is IP3, and the IP address assigned by the WIFI network to the single SIM card multimode terminal is IP4. After obtaining the IP address, the single SIM card multimode terminal registers with the corresponding communication network.
步骤803、单SIM卡多模终端获取4个通信网络中每个通信网络为单SIM卡多模终端分配的IP地址。Step 803: The single SIM card multimode terminal acquires an IP address allocated by each communication network in the four communication networks as a single SIM card multimode terminal.
单SIM卡多模终端还可以获取每个通信网络为单SIM卡多模终端分配的端口号。The single SIM card multimode terminal can also obtain the port number assigned to each communication network as a single SIM card multimode terminal.
步骤804、单SIM卡多模终端建立第一IP资源池。Step 804: The single SIM card multimode terminal establishes a first IP resource pool.
步骤805、单SIM卡多模终端确定4个数据通道中每个数据通道的服务质量。Step 805: The single SIM card multimode terminal determines the quality of service of each of the four data channels.
单SIM卡多模终端的VIPP模块实时测量并记录每个数据通道的服务质量。The VIPP module of a single SIM card multimode terminal measures and records the quality of service of each data channel in real time.
步骤806、单SIM卡多模终端根据4个数据通道中每个数据通道的服务质量对4个数据通道进行排序,得到排序信息。Step 806: The single SIM card multimode terminal sorts the four data channels according to the service quality of each of the four data channels to obtain the sorting information.
单SIM卡多模终端的VIPP模块根据4个数据通道中每个数据通道的服务质量对4个数据通道进行排序,得到排序信息。The VIPP module of the single SIM card multimode terminal sorts the four data channels according to the service quality of each of the four data channels to obtain the sorting information.
步骤807、单SIM卡多模终端将4个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Step 807: The single SIM card multimode terminal records the quality of service and the sorting information of each of the four data channels to the first IP resource pool.
单SIM卡多模终端的VIPP模块将4个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。The VIPP module of the single SIM card multimode terminal records the quality of service and the sorting information of each of the four data channels to the first IP resource pool.
步骤808、单SIM卡多模终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 808: The single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
单SIM卡多模终端的VIPP模块通过所建立的TCP链接将虚拟IP地址和第一IP资源池的信息发送至服务器中的VIPC模块。该TCP链接在业务应用期间会一直存在,TCP链接用于同步终端和服务器中的虚拟资源池的信息。 The VIPP module of the single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link. The TCP link will always exist during the business application, and the TCP link is used to synchronize the information of the virtual resource pool in the terminal and the server.
步骤809、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 809: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
第二IP资源池的信息与第一IP资源池的信息相同。单SIM卡多模终端的VIPP模块可以每隔预设时间段对第一IP资源池中每个数据通道的服务质量和排序信息进行更新。The information of the second IP resource pool is the same as the information of the first IP resource pool. The VIPP module of the single SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
单SIM卡多模终端的VIPP模块还可以检测是否有数据通道发生中断,或者是否有数据通道的服务质量小于一定值,当有数据通道发生中断,或者有数据通道的服务质量小于一定值时,VIPP模块将第一IP资源池中该数据通道对应的信息设置为禁止使用状态。The VIPP module of the single SIM card multimode terminal can also detect whether there is a data channel interruption, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
当第一IP资源池的信息发生变化时,VIPP模块将变化后的第一IP资源池的信息发送至VIPC模块,VIPC模块根据变化后的第一IP资源池的信息对第二IP资源池进行更新。When the information of the first IP resource pool changes, the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
步骤810、当需要进行数据包传输时,单SIM卡多模终端在第一IP资源池中获取第一IP地址。Step 810: When a data packet transmission is required, the single SIM card multimode terminal acquires the first IP address in the first IP resource pool.
第一IP地址为用于进行数据包传输的目标源IP地址。The first IP address is the target source IP address used for packet transmission.
一方面,单SIM卡多模终端的VIPP模块可以将第一IP资源池中的4个IP地址(即IP1、IP2、IP3和IP4)作为第一IP地址。In one aspect, the VIPP module of the single SIM card multimode terminal can use the four IP addresses (ie, IP1, IP2, IP3, and IP4) in the first IP resource pool as the first IP address.
另一方面,数据包还包括:待传输数据的类型,单SIM卡多模终端的VIPP模块可以根据待传输数据的类型确定待传输数据的重要等级,再根据待传输数据的重要等级、4个数据通道中每个数据通道的服务质量和排序信息,在4个数据通道中确定m(m大于或等于1,且小于4)个数据通道,再将该m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。On the other hand, the data packet further includes: the type of data to be transmitted, and the VIPP module of the single SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, 4 The quality of service and the sorting information of each data channel in the data channel determine m (m is greater than or equal to 1, and less than 4) data channels in the four data channels, and then corresponding to each data channel in the m data channels The communication network assigns the IP address assigned to the terminal as the first IP address.
步骤811、单SIM卡多模终端将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 811: The single SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
假设单SIM卡多模终端的VIPP模块选择IP1作为第一IP地址,则VIPP模块将数据包的第一源IP地址由虚拟IP地址替换为IP1。Assuming that the VIPP module of the single SIM card multimode terminal selects IP1 as the first IP address, the VIPP module replaces the first source IP address of the data packet with the virtual IP address with IP1.
步骤812、单SIM卡多模终端通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 812: The single SIM card multimode terminal transmits the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
单SIM卡多模终端通过IP1和服务器的IP地址所指示的通信网络(即2G网络)的数据通道向服务器传输处理后的数据包。The single SIM card multimode terminal transmits the processed data packet to the server through the data channel of the communication network (ie, 2G network) indicated by the IP1 and the IP address of the server.
步骤813、当需要进行数据包传输时,服务器在第二IP资源池中获取第二 IP地址。Step 813: When the data packet transmission needs to be performed, the server acquires the second in the second IP resource pool. IP address.
第二IP地址为用于进行数据包传输的目标目的IP地址。The second IP address is the destination destination IP address used for packet transmission.
可选的,一方面,服务器的VIPC模块可以将第二IP资源池中的4个IP地址(即IP1、IP2、IP3和IP4)作为第二IP地址。Optionally, on the one hand, the VIPC module of the server may use the four IP addresses (ie, IP1, IP2, IP3, and IP4) in the second IP resource pool as the second IP address.
另一方面,数据包还包括:待传输数据的类型,服务器的VIPC模块可以根据待传输数据的类型确定待传输数据的重要等级,再根据待传输数据的重要等级、4个数据通道中每个数据通道的服务质量和排序信息,在4个通信通道中确定p(p大于或等于1,且小于4)个数据通道,再将该p个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。On the other hand, the data packet further includes: a type of data to be transmitted, and the VIPC module of the server can determine an important level of the data to be transmitted according to the type of the data to be transmitted, and then according to the important level of the data to be transmitted, each of the four data channels. The service quality and the sorting information of the data channel determine p (p is greater than or equal to 1, and less than 4) data channels in the four communication channels, and then the communication network corresponding to each of the p data channels is the terminal The assigned IP address is used as the second IP address.
步骤814、服务器将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 814: The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
假设服务器的VIPC模块选择IP1作为第二IP地址,则VIPC模块将数据包的第二目的IP地址由虚拟IP地址替换为IP1。Assuming that the server's VIPC module selects IP1 as the second IP address, the VIPC module replaces the second destination IP address of the packet with the virtual IP address with IP1.
步骤815、服务器通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向单SIM卡多模终端传输处理后的数据包。Step 815: The server transmits the processed data packet to the single SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
服务器通过服务器的IP地址和IP1所指示的通信网络(即2G网络)的数据通道向终端传输处理后的数据包。The server transmits the processed data packet to the terminal through the IP address of the server and the data channel of the communication network (ie, 2G network) indicated by IP1.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,同时,终端和服务器可以根据待传输数据的重要性选择不同的数据通道传输数据包,且终端的应用层无需管理底层数据通道的切换过程,服务器的业务层无需管理底层数据通道,因此,提高了数据包传输的可靠性,降低了应用层和业务层的开发复杂度。In summary, in the data packet transmission method provided by the embodiment of the present invention, when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address. The information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data. The data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission. At the same time, the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal The layer does not need to manage the switching process of the underlying data channel, and the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
图9是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1所示实施环境来举例说明,示例的,图1中的终端可以为双SIM卡多模终端,该双SIM卡多模终端可以接入两个运营商网络:Y1和Y2,该双SIM卡多模终端支持2G网络、3G网络、4G网络和WIFI网 络的接入流程。该数据包传输方法可以包括:FIG. 9 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example. For example, the terminal in FIG. 1 may be Dual SIM multimode terminal, the dual SIM multimode terminal can access two carrier networks: Y1 and Y2, and the dual SIM multimode terminal supports 2G network, 3G network, 4G network and WIFI network Network access process. The data packet transmission method may include:
步骤901、双SIM卡多模终端生成虚拟IP地址。Step 901: The dual SIM card multimode terminal generates a virtual IP address.
步骤902、双SIM卡多模终端根据虚拟IP地址分别与每个运营商网络的2G网络、3G网络、4G网络和WIFI网络建立连接。Step 902: The dual SIM card multimode terminal establishes a connection with the 2G network, the 3G network, the 4G network, and the WIFI network of each carrier network according to the virtual IP address.
双SIM卡多模终端开机后,通过自动扫频技术检测到有可用的两个运营商网络,每个运营商网络包括2G网络、3G网络、4G网络和WIFI网络。双SIM卡多模终端分别与每个运营商网络的2G网络、3G网络、4G网络和WIFI网络建立连接,每个通信网络为双SIM卡多模终端分配一个IP地址,假设运营商网络Y1的2G网络为双SIM卡多模终端分配的IP地址为IP1,运营商网络Y1的3G网络为双SIM卡多模终端分配的IP地址为IP2,运营商网络Y1的4G网络为双SIM卡多模终端分配的IP地址为IP3,运营商网络Y1的WIFI网络为双SIM卡多模终端分配的IP地址为IP4。运营商网络Y2的2G网络为双SIM卡多模终端分配的IP地址为IP5,运营商网络Y2的3G网络为双SIM卡多模终端分配的IP地址为IP6,运营商网络Y2的4G网络为双SIM卡多模终端分配的IP地址为IP7,运营商网络Y2的WIFI网络为双SIM卡多模终端分配的IP地址为IP8。双SIM卡多模终端获取IP地址后,注册到对应的通信网络。After the dual SIM card multimode terminal is powered on, two carrier networks are available through the automatic frequency sweeping technology. Each carrier network includes a 2G network, a 3G network, a 4G network, and a WIFI network. The dual SIM card multimode terminals respectively establish a connection with the 2G network, the 3G network, the 4G network and the WIFI network of each operator network, and each communication network allocates an IP address for the dual SIM card multimode terminal, assuming the operator network Y1 The IP address assigned to the dual SIM card multimode terminal in the 2G network is IP1, the IP address assigned to the dual SIM card multimode terminal of the carrier network Y1 is IP2, and the 4G network of the carrier network Y1 is dual SIM multimode. The IP address assigned by the terminal is IP3, and the IP address assigned by the WIFI network of the operator network Y1 to the dual SIM card multimode terminal is IP4. The IP address of the 2G network of the carrier network Y2 is IP5 for the dual SIM card multimode terminal, the IP address of the 3G network of the carrier network Y2 is IP6 for the dual SIM card multimode terminal, and the 4G network of the operator network Y2 is The IP address assigned by the dual SIM card multimode terminal is IP7, and the IP address assigned by the WIFI network of the operator network Y2 to the dual SIM card multimode terminal is IP8. After obtaining the IP address, the dual SIM multimode terminal registers with the corresponding communication network.
步骤903、双SIM卡多模终端获取8个通信网络中每个通信网络为双SIM卡多模终端分配的IP地址。Step 903: The dual SIM card multimode terminal acquires an IP address allocated by each communication network in the eight communication networks as a dual SIM card multimode terminal.
双SIM卡多模终端还可以获取每个通信网络为双SIM卡多模终端分配的端口号。The dual SIM multimode terminal can also obtain the port number assigned to each dual SIM card multimode terminal by each communication network.
步骤904、双SIM卡多模终端建立第一IP资源池。Step 904: The dual SIM card multimode terminal establishes a first IP resource pool.
步骤905、双SIM卡多模终端确定8个数据通道中每个数据通道的服务质量。Step 905: The dual SIM card multimode terminal determines the quality of service of each of the eight data channels.
双SIM卡多模终端的VIPP模块实时测量并记录每个数据通道的服务质量。The VIPP module of the dual SIM multimode terminal measures and records the quality of service of each data channel in real time.
步骤906、双SIM卡多模终端根据8个数据通道中每个数据通道的服务质量对8个数据通道进行排序,得到排序信息。Step 906: The dual SIM card multimode terminal sorts the eight data channels according to the service quality of each of the eight data channels to obtain the sorting information.
双SIM卡多模终端的VIPP模块根据8个数据通道中每个数据通道的服务质量对8个数据通道进行排序,得到排序信息。The VIPP module of the dual SIM card multimode terminal sorts 8 data channels according to the service quality of each of the 8 data channels to obtain sorting information.
步骤907、双SIM卡多模终端将8个数据通道中每个数据通道的服务质量 和排序信息记录至第一IP资源池。Step 907, the dual SIM card multimode terminal will provide quality of service for each of the eight data channels. And sorting information is recorded to the first IP resource pool.
双SIM卡多模终端的VIPP模块将8个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。The VIPP module of the dual SIM card multimode terminal records the quality of service and the sorting information of each of the eight data channels to the first IP resource pool.
步骤908、双SIM卡多模终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 908: The dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
双SIM卡多模终端的VIPP模块通过所建立的TCP链接将虚拟IP地址和第一IP资源池的信息发送至服务器中的VIPC模块。The VIPP module of the dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
步骤909、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 909: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
第二IP资源池的信息与第一IP资源池的信息相同。双SIM卡多模终端的VIPP模块可以每隔预设时间段对第一IP资源池中每个数据通道的服务质量和排序信息进行更新。The information of the second IP resource pool is the same as the information of the first IP resource pool. The VIPP module of the dual SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
双SIM卡多模终端的VIPP模块还可以检测是否有数据通道发生中断,或者是否有数据通道的服务质量小于一定值,当有数据通道发生中断,或者有数据通道的服务质量小于一定值时,VIPP模块将第一IP资源池中该数据通道对应的信息设置为禁止使用状态。The VIPP module of the dual SIM card multimode terminal can also detect whether there is an interruption of the data channel, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or when the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
当第一IP资源池的信息发生变化时,VIPP模块将变化后的第一IP资源池的信息发送至VIPC模块,VIPC模块根据变化后的第一IP资源池的信息对第二IP资源池进行更新。When the information of the first IP resource pool changes, the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
步骤910、当需要进行数据包传输时,双SIM卡多模终端在第一IP资源池中获取第一IP地址。Step 910: When a data packet transmission is required, the dual SIM card multimode terminal acquires the first IP address in the first IP resource pool.
一方面,双SIM卡多模终端的VIPP模块可以将第一IP资源池中的8个IP地址(即IP1至IP8)作为第一IP地址。In one aspect, the VIPP module of the dual SIM card multimode terminal can use the eight IP addresses (ie, IP1 to IP8) in the first IP resource pool as the first IP address.
另一方面,双SIM卡多模终端的VIPP模块可以根据待传输数据的类型确定待传输数据的重要等级,再根据待传输数据的重要等级、8个数据通道中每个数据通道的服务质量和排序信息,在8个数据通道中确定m(m大于或等于1,且小于8)个数据通道,再将该m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。On the other hand, the VIPP module of the dual SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, the quality of service of each data channel in the 8 data channels, and Sorting information, determining m (m is greater than or equal to 1, and less than 8) data channels in 8 data channels, and then assigning an IP address assigned by the communication network corresponding to each data channel of the m data channels to the terminal as the first An IP address.
步骤911、双SIM卡多模终端将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 911: The dual SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
假设双SIM卡多模终端的VIPP模块选择IP1作为第一IP地址,则VIPP 模块将数据包的第一源IP地址由虚拟IP地址替换为IP1。Assuming that the VIPP module of the dual SIM card multimode terminal selects IP1 as the first IP address, then VIPP The module replaces the first source IP address of the packet with the virtual IP address with IP1.
步骤912、双SIM卡多模终端通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 912: The dual SIM card multimode terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
双SIM卡多模终端通过IP1和服务器的IP地址所指示的通信网络(即运营商网络Y1的2G网络)的数据通道向服务器传输处理后的数据包。The dual SIM card multimode terminal transmits the processed data packet to the server through the data channel of the communication network indicated by the IP1 and the IP address of the server (ie, the 2G network of the carrier network Y1).
步骤913、当需要进行数据包传输时,服务器在第二IP资源池中获取第二IP地址。Step 913: When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
步骤913的具体过程可以参考步骤813进行说明。The specific process of step 913 can be described with reference to step 813.
步骤914、服务器将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 914: The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, to obtain the processed data packet.
步骤915、服务器通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向双SIM卡多模终端传输处理后的数据包。Step 915: The server transmits the processed data packet to the dual SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,同时,终端和服务器可以根据待传输数据的重要性选择不同的数据通道传输数据包,且终端的应用层无需管理底层数据通道的切换过程,服务器的业务层无需管理底层数据通道,因此,提高了数据包传输的可靠性,降低了应用层和业务层的开发复杂度。In summary, in the data packet transmission method provided by the embodiment of the present invention, when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address. The information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data. The data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission. At the same time, the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal The layer does not need to manage the switching process of the underlying data channel, and the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
图10是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1所示实施环境来举例说明,示例的,图1中的终端可以为双SIM卡多模终端,该双SIM卡多模终端支持LTE 1.8G(吉)频段、230M(兆)频段专网集群、及运营商网络:2G网络、3G网络、4G网络、WIFI网络的接入流程。双SIM卡多模终端的一个SIM卡用于支持行业专网(即LTE 1.8G专网和230M专网),另一SIM卡用于支持运营商网络。该数据包传输方法可以包括:FIG. 10 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example. For example, the terminal in FIG. 1 may be Dual SIM multimode terminal, the dual SIM multimode terminal supports LTE 1.8G (Gigabit) frequency band, 230M (mega) frequency band private network cluster, and carrier network: 2G network, 3G network, 4G network, WIFI network connection Into the process. One SIM card of the dual SIM card multimode terminal is used to support the industry private network (ie, LTE 1.8G private network and 230M private network), and another SIM card is used to support the carrier network. The data packet transmission method may include:
步骤1001、双SIM卡多模终端生成虚拟IP地址。Step 1001: A dual SIM card multimode terminal generates a virtual IP address.
步骤1002、双SIM卡多模终端根据虚拟IP地址分别与LTE 1.8G专网、 230M专网和运营商网络建立连接。Step 1002: The dual SIM card multimode terminal is separately associated with the LTE 1.8G private network according to the virtual IP address. The 230M private network establishes a connection with the carrier network.
双SIM卡多模终端开机后,通过自动扫频技术检测到有可用的LTE 1.8G专网、230M专网和运营商网络,运营商网络包括2G网络、3G网络、4G网络和WIFI网络。双SIM卡多模终端与LTE 1.8G专网、230M专网和运营商网络建立连接,每个通信网络为双SIM卡多模分配一个IP地址,假设2G网络为双SIM卡多模分配的IP地址为IP1,3G网络为双SIM卡多模分配的IP地址为IP2,4G网络为双SIM卡多模分配的IP地址为IP3,WIFI网络为双SIM卡多模分配的IP地址为IP4,LTE 1.8G专网为双SIM卡多模分配的IP地址为IP5,230M专网为双SIM卡多模分配的IP地址为IP6。双SIM卡多模终端获取IP地址后,注册到对应的通信网络。After the dual SIM card multimode terminal is powered on, the LTE 1.8G private network, the 230M private network, and the carrier network are detected by the automatic frequency sweeping technology. The carrier network includes the 2G network, the 3G network, the 4G network, and the WIFI network. The dual SIM card multimode terminal establishes a connection with the LTE 1.8G private network, the 230M private network and the carrier network, and each communication network allocates an IP address for the dual SIM card multimode, assuming that the 2G network is the IP of the dual SIM multimode allocation. The IP address assigned to the dual SIM card multimode is IP2, the IP address assigned to the dual SIM card multimode is IP3, and the IP address assigned by the WIFI network to the dual SIM card multimode is IP4, LTE. The IP address assigned by the 1.8G private network to the dual SIM card multimode is IP5, and the IP address assigned by the 230M private network to the dual SIM card multimode is IP6. After obtaining the IP address, the dual SIM multimode terminal registers with the corresponding communication network.
步骤1003、双SIM卡多模终端获取6个通信网络中每个通信网络为双SIM卡多模终端分配的IP地址。Step 1003: The dual SIM card multimode terminal acquires an IP address allocated by each communication network in the six communication networks as a dual SIM card multimode terminal.
双SIM卡多模终端还可以获取每个通信网络为双SIM卡多模终端分配的端口号。The dual SIM multimode terminal can also obtain the port number assigned to each dual SIM card multimode terminal by each communication network.
步骤1004、双SIM卡多模终端建立第一IP资源池。Step 1004: The dual SIM card multimode terminal establishes a first IP resource pool.
步骤1005、双SIM卡多模终端确定6个数据通道中每个数据通道的服务质量。Step 1005: The dual SIM card multimode terminal determines the quality of service of each of the six data channels.
双SIM卡多模终端的VIPP模块实时测量并记录每个数据通道的服务质量。The VIPP module of the dual SIM multimode terminal measures and records the quality of service of each data channel in real time.
步骤1006、双SIM卡多模终端根据6个数据通道中每个数据通道的服务质量对6个数据通道进行排序,得到排序信息。Step 1006: The dual SIM card multimode terminal sorts the six data channels according to the service quality of each of the six data channels to obtain the sorting information.
双SIM卡多模终端的VIPP模块根据6个数据通道中每个数据通道的服务质量对6个数据通道进行排序,得到排序信息。The VIPP module of the dual SIM card multimode terminal sorts the six data channels according to the service quality of each of the six data channels to obtain the sorting information.
步骤1007、双SIM卡多模终端将6个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Step 1007: The dual SIM card multimode terminal records the quality of service and the sorting information of each of the six data channels to the first IP resource pool.
双SIM卡多模终端的VIPP模块将6个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。The VIPP module of the dual SIM card multimode terminal records the quality of service and the sorting information of each of the six data channels to the first IP resource pool.
步骤1008、双SIM卡多模终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 1008: The dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
双SIM卡多模终端的VIPP模块通过所建立的TCP链接将虚拟IP地址和第一IP资源池的信息发送至服务器中的VIPC模块。 The VIPP module of the dual SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
步骤1009、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 1009: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
双SIM卡多模终端的VIPP模块可以每隔预设时间段对第一IP资源池中每个数据通道的服务质量和排序信息进行更新。The VIPP module of the dual SIM card multimode terminal can update the service quality and the sorting information of each data channel in the first IP resource pool every preset time period.
双SIM卡多模终端的VIPP模块还可以检测是否有数据通道发生中断,或者是否有数据通道的服务质量小于一定值,当有数据通道发生中断,或者有数据通道的服务质量小于一定值时,VIPP模块将第一IP资源池中该数据通道对应的信息设置为禁止使用状态。The VIPP module of the dual SIM card multimode terminal can also detect whether there is an interruption of the data channel, or whether the service quality of the data channel is less than a certain value, when there is a data channel interruption, or when the service quality of the data channel is less than a certain value, The VIPP module sets the information corresponding to the data channel in the first IP resource pool to a prohibited state.
当第一IP资源池的信息发生变化时,VIPP模块将变化后的第一IP资源池的信息发送至VIPC模块,VIPC模块根据变化后的第一IP资源池的信息对第二IP资源池进行更新。When the information of the first IP resource pool changes, the VIPP module sends the changed information of the first IP resource pool to the VIPC module, and the VIPC module performs the second IP resource pool according to the changed information of the first IP resource pool. Update.
步骤1010、当需要进行数据包传输时,双SIM卡多模终端在第一IP资源池中获取第一IP地址。Step 1010: When a data packet transmission is required, the dual SIM card multimode terminal acquires the first IP address in the first IP resource pool.
一方面,双SIM卡多模终端的VIPP模块可以将第一IP资源池中的6个IP地址(即IP1至IP6)作为第一IP地址。In one aspect, the VIPP module of the dual SIM card multimode terminal can use the six IP addresses (ie, IP1 to IP6) in the first IP resource pool as the first IP address.
另一方面,双SIM卡多模终端的VIPP模块可以根据待传输数据的类型确定待传输数据的重要等级,再根据待传输数据的重要等级、6个数据通道中每个数据通道的服务质量和排序信息,在6个数据通道中确定m(m大于或等于1,且小于6)个数据通道,再将该m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。On the other hand, the VIPP module of the dual SIM card multimode terminal can determine the important level of the data to be transmitted according to the type of data to be transmitted, and then according to the important level of the data to be transmitted, the quality of service of each of the six data channels, and Sorting information, determining m (m is greater than or equal to 1, and less than 6) data channels in 6 data channels, and then assigning an IP address assigned by the communication network corresponding to each data channel of the m data channels to the terminal as the first An IP address.
步骤1011、双SIM卡多模终端将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 1011: The dual SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
步骤1011的具体过程可以参考步骤811进行说明。The specific process of step 1011 can be described with reference to step 811.
步骤1012、双SIM卡多模终端通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 1012: The dual SIM card multimode terminal transmits the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
步骤1013、当需要进行数据包传输时,服务器在第二IP资源池中获取第二IP地址。Step 1013: When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
步骤1013的具体过程可以参考步骤813进行说明。The specific process of step 1013 can be described with reference to step 813.
步骤1014、服务器将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 1014: The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
步骤1014的具体过程可以参考步骤814进行说明,在此不再赘述。 The specific process of step 1014 can be described with reference to step 814, and details are not described herein again.
步骤1015、服务器通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向双SIM卡多模终端传输处理后的数据包。Step 1015: The server transmits the processed data packet to the dual SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,同时,终端和服务器可以根据待传输数据的重要性选择不同的数据通道传输数据包,且终端的应用层无需管理底层数据通道的切换过程,服务器的业务层无需管理底层数据通道,因此,提高了数据包传输的可靠性,降低了应用层和业务层的开发复杂度。In summary, in the data packet transmission method provided by the embodiment of the present invention, when data packet transmission is required, the terminal can acquire the first IP address in the first IP resource pool, and use the address in the data packet by using the first IP address. The information is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then process the data. The data packet is transmitted to the terminal, which solves the problem of communication delay and data loss caused by the interruption of the data packet transmission. At the same time, the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and the application of the terminal The layer does not need to manage the switching process of the underlying data channel, and the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
图11是本发明实施例提供的一种数据包传输方法的流程图,本实施例以该数据包传输方法应用于图1所示实施环境来举例说明,示例的,图1中的终端可以为单SIM卡多模终端,该单SIM卡多模终端支持LTE 1.8G专网和230M专网的接入流程,LTE 1.8G专网和230M专网同属于电力公司。该数据包传输方法可以包括:FIG. 11 is a flowchart of a data packet transmission method according to an embodiment of the present invention. The data packet transmission method is applied to the implementation environment shown in FIG. 1 as an example. For example, the terminal in FIG. 1 may be Single SIM card multimode terminal, the single SIM card multimode terminal supports the access process of LTE 1.8G private network and 230M private network, and LTE 1.8G private network and 230M private network belong to the power company. The data packet transmission method may include:
步骤1101、单SIM卡多模终端生成虚拟IP地址。Step 1101: A single SIM card multimode terminal generates a virtual IP address.
步骤1102、单SIM卡多模终端根据虚拟IP地址分别与LTE 1.8G专网和230M专网建立连接。Step 1102: The single SIM card multimode terminal establishes a connection with the LTE 1.8G private network and the 230M private network according to the virtual IP address.
单SIM卡多模终端开机后,通过自动扫频技术检测到有可用的LTE 1.8G专网和230M专网。单SIM卡多模终端与LTE 1.8G专网和230M专网建立连接,每个通信网络为单SIM卡多模终端分配一个IP地址,假设LTE 1.8G专网为单SIM卡多模终端分配的IP地址为IP1,230M专网为单SIM卡多模终端分配的IP地址为IP2。单SIM卡多模终端获取IP地址后,注册到对应的通信网络。After the single SIM card multimode terminal is powered on, the LTE 1.8G private network and the 230M private network are detected by the automatic frequency sweeping technology. A single SIM card multimode terminal establishes a connection with an LTE 1.8G private network and a 230M private network, and each communication network allocates an IP address to a single SIM card multimode terminal, assuming that the LTE 1.8G private network is allocated for a single SIM card multimode terminal. The IP address is IP1, and the IP address assigned to the single SIM card multimode terminal by the 230M private network is IP2. After obtaining the IP address, the single SIM card multimode terminal registers with the corresponding communication network.
步骤1103、单SIM卡多模终端获取2个通信网络中每个通信网络为单SIM卡多模终端分配的IP地址。Step 1103: The single SIM card multimode terminal acquires an IP address allocated by each communication network in the two communication networks as a single SIM card multimode terminal.
单SIM卡多模终端还可以获取每个通信网络为单SIM卡多模终端分配的端口号。The single SIM card multimode terminal can also obtain the port number assigned to each communication network as a single SIM card multimode terminal.
步骤1104、单SIM卡多模终端建立第一IP资源池。 Step 1104: The single SIM card multimode terminal establishes a first IP resource pool.
步骤1105、单SIM卡多模终端确定2个数据通道中每个数据通道的服务质量。Step 1105: The single SIM card multimode terminal determines the quality of service of each of the two data channels.
单SIM卡多模终端的VIPP模块实时测量并记录每个数据通道的服务质量。The VIPP module of a single SIM card multimode terminal measures and records the quality of service of each data channel in real time.
步骤1106、单SIM卡多模终端根据2个数据通道中每个数据通道的服务质量对2个数据通道进行排序,得到排序信息。Step 1106: The single SIM card multimode terminal sorts the two data channels according to the service quality of each of the two data channels to obtain the sorting information.
步骤1107、单SIM卡多模终端将2个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。Step 1107: The single SIM card multimode terminal records the quality of service and the sorting information of each of the two data channels to the first IP resource pool.
步骤1108、单SIM卡多模终端向服务器发送虚拟IP地址和第一IP资源池的信息。Step 1108: The single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the server.
单SIM卡多模终端的VIPP模块通过所建立的TCP链接将虚拟IP地址和第一IP资源池的信息发送至服务器中的VIPC模块。The VIPP module of the single SIM card multimode terminal sends the virtual IP address and the information of the first IP resource pool to the VIPC module in the server through the established TCP link.
步骤1109、服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。Step 1109: The server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool.
第二IP资源池的信息与第一IP资源池的信息相同。The information of the second IP resource pool is the same as the information of the first IP resource pool.
步骤1110、当需要进行数据包传输时,单SIM卡多模终端在第一IP资源池中获取第一IP地址。Step 1110: When a data packet transmission is required, the single SIM card multimode terminal acquires the first IP address in the first IP resource pool.
步骤1111、单SIM卡多模终端将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Step 1111: The single SIM card multimode terminal replaces the first source IP address of the data packet with the virtual IP address and the first IP address, and obtains the processed data packet.
步骤1112、单SIM卡多模终端通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。Step 1112: The single SIM card multimode terminal transmits the processed data packet to the server by using the data channel of the communication network indicated by the first IP address and the first destination IP address.
步骤1113、当需要进行数据包传输时,服务器在第二IP资源池中获取第二IP地址。Step 1113: When data packet transmission is required, the server acquires a second IP address in the second IP resource pool.
步骤1113的具体过程可以参考步骤813进行说明,在此不再赘述。The specific process of step 1113 can be described with reference to step 813, and details are not described herein again.
步骤1114、服务器将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。Step 1114: The server replaces the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtains the processed data packet.
步骤1114的具体过程可以参考步骤814,在此不再赘述。For the specific process of step 1114, reference may be made to step 814, and details are not described herein again.
步骤1115、服务器通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向单SIM卡多模终端传输处理后的数据包。Step 1115: The server transmits the processed data packet to the single SIM card multimode terminal by using the data channel of the communication network indicated by the second source IP address and the second IP address.
综上所述,本发明实施例提供的数据包传输方法,当需要进行数据包传输时,终端能够在第一IP资源池中获取第一IP地址,利用第一IP地址对数据包 中的地址信息进行处理,再将处理后的数据包传输至服务器,而服务器能够在第二IP资源池中获取第二IP地址,利用第二IP地址对数据包中的地址信息进行处理,再将处理后的数据包传输至终端,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,同时,终端和服务器可以根据待传输数据的重要性选择不同的数据通道传输数据包,且终端的应用层无需管理底层数据通道的切换过程,服务器的业务层无需管理底层数据通道,因此,提高了数据包传输的可靠性,降低了应用层和业务层的开发复杂度。In summary, the data packet transmission method provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool and use the first IP address to compare the data packet when the data packet transmission needs to be performed. The address information in the process is processed, and the processed data packet is transmitted to the server, and the server can obtain the second IP address in the second IP resource pool, and process the address information in the data packet by using the second IP address, and then Transmitting the processed data packet to the terminal, solving the problem of communication delay and data loss caused by the interruption of the data packet transmission, and the terminal and the server can select different data channels to transmit the data packet according to the importance of the data to be transmitted, and The application layer of the terminal does not need to manage the switching process of the underlying data channel, and the service layer of the server does not need to manage the underlying data channel, thereby improving the reliability of data packet transmission and reducing the development complexity of the application layer and the service layer.
下述为本发明装置实施例,可以用于执行本发明方法实施例。对于本发明装置实施例中未披露的细节,请参照本发明方法实施例。The following is an embodiment of the apparatus of the present invention, which can be used to carry out the method embodiments of the present invention. For details not disclosed in the embodiment of the device of the present invention, please refer to the method embodiment of the present invention.
图12-1是本发明实施例提供的一种终端的结构示意图,该终端可以包括:FIG. 12-1 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal may include:
生成单元1201,用于生成虚拟IP地址。The generating unit 1201 is configured to generate a virtual IP address.
第一建立单元1202,用于根据虚拟IP地址与n个通信网络中每个通信网络建立连接,n大于或等于2。The first establishing unit 1202 is configured to establish a connection with each of the n communication networks according to the virtual IP address, where n is greater than or equal to 2.
获取单元1203,用于获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址。The obtaining unit 1203 is configured to acquire an IP address allocated by each communication network in the n communication networks for the terminal, and obtain n IP addresses.
第二建立单元1204,用于利用n个IP地址中的每个IP地址分别与服务器建立数据通道。The second establishing unit 1204 is configured to establish a data channel with the server by using each of the n IP addresses.
综上所述,本发明实施例提供的终端,能够根据虚拟IP地址与n个通信网络中每个通信网络建立连接,并获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively. Compared with the prior art, the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
可选的,如图12-2所示,该终端还可以包括:Optionally, as shown in Figure 12-2, the terminal may further include:
第三建立单元1205,用于根据n个IP地址建立第一IP资源池,第一IP资源池包括n个IP地址。The third establishing unit 1205 is configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes n IP addresses.
发送单元1206,用于向服务器发送虚拟IP地址和第一IP资源池的信息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。The sending unit 1206 is configured to send, to the server, the virtual IP address and the information of the first IP resource pool, so that the server establishes the second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. The second resource pool includes n IP addresses.
可选的,如图12-2所示,该终端还可以包括:Optionally, as shown in Figure 12-2, the terminal may further include:
确定单元1207,用于确定n个数据通道中每个数据通道的服务质量。 The determining unit 1207 is configured to determine a quality of service of each of the n data channels.
排序单元1208,用于根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息。The sorting unit 1208 is configured to sort the n data channels according to the quality of service of each of the n data channels to obtain sorting information.
记录单元1209,用于将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。The recording unit 1209 is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
可选的,如图12-2所示,该终端还可以包括:Optionally, as shown in Figure 12-2, the terminal may further include:
检测单元1210,用于检测第一数据通道是否发生中断,第一数据通道为n个数据通道中的任一数据通道。The detecting unit 1210 is configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels.
设置单元1211,用于在第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。The setting unit 1211 is configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
此外,图12-2中的生成单元1201、第一建立单元1202、获取单元1203和第二建立单元1204可以参考图12-1进行说明。图12-1中各单元的具体工作过程可以参考图2所示的实施方式进行说明,图12-2中各单元的具体工作过程可以参考图4-1所示的实施方式进行说明。In addition, the generating unit 1201, the first establishing unit 1202, the obtaining unit 1203, and the second establishing unit 1204 in FIG. 12-2 can be explained with reference to FIG. 12-1. The specific working process of each unit in Figure 12-1 can be described with reference to the embodiment shown in Figure 2. The specific working process of each unit in Figure 12-2 can be described with reference to the embodiment shown in Figure 4-1.
综上所述,本发明实施例提供的终端,能够根据虚拟IP地址与n个通信网络中每个通信网络建立连接,并获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively. Compared with the prior art, the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
图13是本发明实施例提供的一种服务器的结构示意图,该服务器可以包括:FIG. 13 is a schematic structural diagram of a server according to an embodiment of the present disclosure, where the server may include:
接收单元1301,用于接收终端发送的虚拟IP地址和第一IP资源池的信息,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,虚拟IP地址为终端生成的虚拟IP地址。The receiving unit 1301 is configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address is used for the terminal to access different communication networks, and the virtual IP address. The virtual IP address generated for the terminal.
第一建立单元1302,用于根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。The first establishing unit 1302 is configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address, where the second resource pool includes n IP addresses.
第二建立单元1303,用于利用n个IP地址中的每个IP地址分别与终端建立数据通道。The second establishing unit 1303 is configured to establish a data channel with the terminal by using each of the n IP addresses.
可选的,第二IP资源池还包括n个数据通道中每个数据通道的服务质量和n个数据通道的服务质量的排序信息。Optionally, the second IP resource pool further includes the quality of service of each of the n data channels and the ranking information of the quality of service of the n data channels.
图13中各单元的具体工作过程可以参考图3所示的实施方式进行说明。 The specific working process of each unit in FIG. 13 can be explained with reference to the embodiment shown in FIG. 3.
综上所述,本发明实施例提供的服务器,能够根据终端发送的虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,再利用n个IP地址中的每个IP地址分别与终端建立数据通道,其中,第一IP资源池包括n个IP地址,第二资源池包括n个IP地址,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the server provided by the embodiment of the present invention can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use n IP addresses. Each of the IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses. Compared with the prior art, the terminal and the server are used to transmit data. The number of data channels of the packet is more, thus improving the reliability of packet transmission.
本发明实施例提供了一种数据通道建立系统,该数据通道建立系统包括终端和服务器,An embodiment of the present invention provides a data channel establishing system, where the data channel establishing system includes a terminal and a server.
该终端为图12-1或图12-2所示的终端;The terminal is the terminal shown in Figure 12-1 or Figure 12-2;
该服务器为图13所示的服务器。This server is the server shown in FIG.
图14-1是本发明实施例提供的另一种终端的结构示意图,该终端可以包括:FIG. 14-1 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure, where the terminal may include:
第一获取单元1401,用于在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,第一IP地址为用于进行数据包传输的目标源IP地址,第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,数据包包括待传输数据、第一源IP地址和第一目的IP地址,第一源IP地址为终端的虚拟IP地址,第一目的IP地址为服务器的IP地址。The first obtaining unit 1401 is configured to acquire a first IP address in the first IP resource pool when the data packet needs to be transmitted, where the first IP address is a target source IP address used for data packet transmission, and the first IP resource is used. The pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, and the first source IP address. The address is the virtual IP address of the terminal, and the first destination IP address is the IP address of the server.
替换单元1402,用于将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。The replacing unit 1402 is configured to replace the first source IP address of the data packet with the virtual IP address and the first IP address, to obtain the processed data packet.
传输单元1403,用于通过第一IP地址和第一目的IP地址所指示的通信网络的数据通道向服务器传输处理后的数据包。The transmitting unit 1403 is configured to transmit the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
综上所述,本发明实施例提供的终端,能够在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,再通过数据通道向服务器传输处理后的数据包,相较于现有技术,终端在进行网络切换时,无需向另一通信网络发起无线连接请求以根据另一通信网络分配的新的IP地址进行数据包传输,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address. The first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel. Compared with the prior art, the terminal does not need to initiate a wireless connection request to another communication network when performing network switching. The data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
可选的,如图14-2所示,该终端还可以包括: Optionally, as shown in Figure 14-2, the terminal may further include:
生成单元1404,用于生成虚拟IP地址。The generating unit 1404 is configured to generate a virtual IP address.
第一建立单元1405,用于根据虚拟IP地址与n个通信网络中每个通信网络建立连接。The first establishing unit 1405 is configured to establish a connection with each of the n communication networks according to the virtual IP address.
第二获取单元1406,用于获取n个通信网络中每个通信网络为终端分配的IP地址。The second obtaining unit 1406 is configured to acquire an IP address allocated by each communication network in the n communication networks for the terminal.
第二建立单元1407,用于建立第一IP资源池,第一IP资源池包括n个IP地址。The second establishing unit 1407 is configured to establish a first IP resource pool, where the first IP resource pool includes n IP addresses.
可选的,第一建立单元1405,具体用于:Optionally, the first establishing unit 1405 is specifically configured to:
根据虚拟IP地址向n个通信网络中每个通信网络的分组网关发送连接请求消息,该连接请求消息包括虚拟IP地址;接收每个通信网络的分组网关发送的连接响应消息,每个连接响应消息包括通信网络为终端分配的IP地址。Sending a connection request message to the packet gateway of each communication network in the n communication networks according to the virtual IP address, the connection request message includes a virtual IP address; receiving a connection response message sent by the packet gateway of each communication network, and each connection response message Including the IP address assigned by the communication network to the terminal.
可选的,第一IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,如图14-2所示,该终端还可以包括:Optionally, the first IP resource pool further includes the service quality of the data channel of each communication network in the n communication networks and the ranking information of the service quality of the n data channels, as shown in FIG. 14-2, the terminal may also be include:
确定单元1408,用于确定n个数据通道中每个数据通道的服务质量。The determining unit 1408 is configured to determine a quality of service of each of the n data channels.
排序单元1409,用于根据n个数据通道中每个数据通道的服务质量对n个数据通道进行排序,得到排序信息。The sorting unit 1409 is configured to sort the n data channels according to the quality of service of each of the n data channels to obtain sorting information.
记录单元1410,用于将n个数据通道中每个数据通道的服务质量和排序信息记录至第一IP资源池。The recording unit 1410 is configured to record the quality of service and the sorting information of each of the n data channels to the first IP resource pool.
可选的,数据包还包括:待传输数据的类型,第一获取单元1401,具体用于:根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定m个数据通道,m大于或等于1,且小于n;将m个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第一IP地址。Optionally, the data packet further includes: a type of the data to be transmitted, where the first acquiring unit 1401 is configured to: determine an important level of the data to be transmitted according to the type of the data to be transmitted; and according to an important level of the data to be transmitted, n data. The service quality and the sorting information of each data channel in the channel, determining m data channels in n data channels, m is greater than or equal to 1, and less than n; the communication network corresponding to each data channel in the m data channels is The IP address assigned by the terminal is used as the first IP address.
可选的,如图14-2所示,该终端还可以包括:Optionally, as shown in Figure 14-2, the terminal may further include:
检测单元1411,用于检测第一数据通道是否发生中断,第一数据通道为n个数据通道中的任一数据通道。The detecting unit 1411 is configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels.
设置单元1412,用于在第一数据通道发生中断时,将第一IP资源池中第一数据通道对应的信息设置为禁止使用状态。The setting unit 1412 is configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
可选的,如图14-2所示,该终端还可以包括:Optionally, as shown in Figure 14-2, the terminal may further include:
第一发送单元1413,用于向服务器发送虚拟IP地址和第一IP资源池的信 息,以便于服务器根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,第二资源池包括n个IP地址。The first sending unit 1413 is configured to send a virtual IP address and a letter of the first IP resource pool to the server. So that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, and the second resource pool includes n IP addresses.
第二发送单元1414,用于在第一IP资源池的信息发生变化时,将变化后的第一IP资源池的信息发送至服务器,以便于服务器根据变化后的第一IP资源池的信息对第二IP资源池进行更新。The second sending unit 1414 is configured to: when the information of the first IP resource pool changes, send the changed information of the first IP resource pool to the server, so that the server can perform information according to the changed first IP resource pool. The second IP resource pool is updated.
此外,图14-2中的第一获取单元1401、替换单元1402和传输单元1403可以参考图14-1进行说明。图14-1中各单元的具体工作过程可以参考图5所示的实施方式进行说明,图14-2中各单元的具体工作过程可以参考图7-1所示的实施方式进行说明。图14-2中各单元可以应用于图7-7所示的模型中,如第一获取单元1401、替换单元1402、第二建立单元1407、确定单元1408、排序单元1409、记录单元1410、检测单元1411、设置单元1412和第一发送单元1413等可以用于实现图7-7所示的终端中的VIPP模块的功能。In addition, the first obtaining unit 1401, the replacing unit 1402, and the transmitting unit 1403 in FIG. 14-2 can be explained with reference to FIG. 14-1. The specific working process of each unit in FIG. 14-1 can be described with reference to the embodiment shown in FIG. 5. The specific working process of each unit in FIG. 14-2 can be described with reference to the embodiment shown in FIG. 7-1. The units in FIG. 14-2 can be applied to the models shown in FIG. 7-7, such as the first obtaining unit 1401, the replacing unit 1402, the second establishing unit 1407, the determining unit 1408, the sorting unit 1409, the recording unit 1410, and the detecting. The unit 1411, the setting unit 1412, the first transmitting unit 1413, and the like can be used to implement the functions of the VIPP module in the terminal shown in FIGS. 7-7.
综上所述,本发明实施例提供的终端,能够在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,再通过数据通道向服务器传输处理后的数据包,相较于现有技术,终端在进行网络切换时,无需向另一通信网络发起无线连接请求以根据另一通信网络分配的新的IP地址进行数据包传输,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address. The first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel. Compared with the prior art, the terminal does not need to initiate a wireless connection request to another communication network when performing network switching. The data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
图15-1是本发明实施例提供的另一种服务器的结构示意图,该服务器可以包括:FIG. 15-1 is a schematic structural diagram of another server according to an embodiment of the present disclosure, where the server may include:
获取单元1501,用于在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,第二IP地址为用于进行数据包传输的目标目的IP地址,第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,n大于或等于2,第二IP资源池是根据终端发送的终端的虚拟IP地址和第一IP资源池的信息建立的,数据包包括待传输数据、第二源IP地址和第二目的IP地址,第二源IP地址为服务器的IP地址,第二目的IP地址为虚拟IP地址。其中,第一IP资源池包括n个IP地址。The obtaining unit 1501 is configured to obtain a second IP address in the second IP resource pool when the data packet needs to be transmitted, where the second IP address is a target destination IP address used for data packet transmission, and the second IP resource pool includes n IP addresses, each IP address is used for the terminal to access different communication networks, n is greater than or equal to 2, and the second IP resource pool is established according to the virtual IP address of the terminal sent by the terminal and the information of the first IP resource pool. The data packet includes data to be transmitted, a second source IP address, and a second destination IP address, the second source IP address is an IP address of the server, and the second destination IP address is a virtual IP address. The first IP resource pool includes n IP addresses.
替换单元1502,用于将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。 The replacing unit 1502 is configured to replace the second destination IP address of the data packet with the virtual IP address and the second IP address to obtain the processed data packet.
传输单元1503,用于通过第二源IP地址和第二IP地址所指示的通信网络的数据通道向终端传输处理后的数据包。The transmitting unit 1503 is configured to transmit the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address.
综上所述,本发明实施例提供的服务器,能够在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包,再通过数据通道向终端传输处理后的数据包,解决了数据包传输过程中数据丢失的问题,提高了数据包传输的可靠性。In summary, the server provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet needs to be transmitted, and replace the second destination IP address of the data packet with the virtual IP address. The second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
可选的,如图15-2所示,该服务器还可以包括:Optionally, as shown in Figure 15-2, the server may further include:
第一接收单元1504,用于接收终端发送的虚拟IP地址和第一IP资源池的信息。The first receiving unit 1504 is configured to receive the virtual IP address sent by the terminal and the information of the first IP resource pool.
建立单元1505,用于根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池。The establishing unit 1505 is configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address.
可选的,数据包还包括:待传输数据的类型,第二IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,获取单元1501,具体用于:Optionally, the data packet further includes: a type of data to be transmitted, where the second IP resource pool further includes a service quality of the data channel of each communication network in the n communication networks and a sorting information of the service quality of the n data channels, and obtains The unit 1501 is specifically configured to:
根据待传输数据的类型确定待传输数据的重要等级;根据待传输数据的重要等级、n个数据通道中每个数据通道的服务质量和排序信息,在n个数据通道中确定p个数据通道,p大于或等于1,且小于n;将p个数据通道中每个数据通道对应的通信网络为终端分配的IP地址作为第二IP地址。Determining an important level of the data to be transmitted according to the type of the data to be transmitted; determining p data channels in the n data channels according to the importance level of the data to be transmitted, the quality of service and the sorting information of each data channel in the n data channels, p is greater than or equal to 1, and is less than n; the IP address assigned to the terminal by the communication network corresponding to each of the p data channels is used as the second IP address.
可选的,如图15-2所示,该服务器还可以包括:Optionally, as shown in Figure 15-2, the server may further include:
第二接收单元1506,用于接收终端发送的变化后的第一IP资源池的信息。The second receiving unit 1506 is configured to receive information about the changed first IP resource pool sent by the terminal.
更新单元1507,用于根据变化后的第一IP资源池的信息对第二IP资源池进行更新。The updating unit 1507 is configured to update the second IP resource pool according to the changed information of the first IP resource pool.
此外,图15-2中的获取单元1501、替换单元1502和传输单元1503可以参考图15-1进行说明。图15-1中各单元的具体工作过程可以参考图6所示的实施方式进行说明,图15-2中各单元的具体工作过程可以参考图7-1所示的实施方式进行说明。图15-2中各单元可以应用于图7-7所示的模型中,如获取单元1501、替换单元1502、第一接收单元1504、建立单元1505、第二接收单元1506和更新单元1507等可以用于实现图7-7所示的服务器中的VIPC模块的功能。In addition, the obtaining unit 1501, the replacing unit 1502, and the transmitting unit 1503 in FIG. 15-2 can be explained with reference to FIG. 15-1. The specific working process of each unit in Figure 15-1 can be described with reference to the embodiment shown in Figure 6. The specific working process of each unit in Figure 15-2 can be described with reference to the embodiment shown in Figure 7-1. The units in FIG. 15-2 can be applied to the models shown in FIG. 7-7, such as the obtaining unit 1501, the replacing unit 1502, the first receiving unit 1504, the establishing unit 1505, the second receiving unit 1506, and the updating unit 1507, etc. Used to implement the functions of the VIPC module in the server shown in Figure 7-7.
综上所述,本发明实施例提供的服务器,能够在需要进行数据包传输时, 在第二IP资源池中获取第二IP地址,将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包,再通过数据通道向终端传输处理后的数据包,解决了数据包传输过程中数据丢失的问题,提高了数据包传输的可靠性。In summary, the server provided by the embodiment of the present invention can perform data packet transmission when Obtaining a second IP address in the second IP resource pool, replacing the second destination IP address of the data packet with the virtual IP address and the second IP address, and obtaining the processed data packet, and transmitting the processed data packet to the terminal through the data channel The data packet solves the problem of data loss during data packet transmission and improves the reliability of data packet transmission.
本发明实施例提供了一种数据包传输系统,该数据包传输系统包括终端和服务器,An embodiment of the present invention provides a data packet transmission system, where the data packet transmission system includes a terminal and a server.
该终端为图14-1或图14-2所示的终端;The terminal is a terminal shown in Figure 14-1 or Figure 14-2;
该服务器为图15-1或图15-2所示的服务器。This server is the server shown in Figure 15-1 or Figure 15-2.
图16是本发明实施例提供的又一种终端的结构示意图,应该理解的是,终端可以具有比图16中所示的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图16中所示出的各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。现以图16所示的终端为例进行具体的说明,如图16所示,该终端包括至少一个处理器1601、存储器1602、通讯模块1603、至少一个通信总线1604和通讯天线1605。该终端还包括其他功能性的构件,比如:电池模组、有线/无线充电结构等。通信总线1604用于实现这些组件之间的连接通信。存储器1602可能包含非易失性固态存储器和/或动力学的非易失性存储设备,如闪速存储器、可转动的磁盘驱动器。通讯模块1603可以用于远距通信,如GSM、CDMA、通用分组无线服务(英文:General Packet Radio Service;简称:GPRS)、增强型数据速率GSM演进(英文:Enhanced Data Rate for GSM Evolution;简称:EDGE)、3G技术如宽带码分多址(英文:Wideband Code Division Multiple Access;简称:WCDMA)、时分同步码分多址(英文:Time Division-Synchronous Code Division Multiple Access;简称:TD-SCDMA),4G技术如LTE等。通讯天线1605用于接收和发送通讯信号。16 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. It should be understood that the terminal may have more or fewer components than those shown in FIG. 16, and two or more components may be combined. Or can have different component configurations. The various components shown in Figure 16 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. The terminal shown in FIG. 16 is taken as an example for specific description. As shown in FIG. 16, the terminal includes at least one processor 1601, a memory 1602, a communication module 1603, at least one communication bus 1604, and a communication antenna 1605. The terminal also includes other functional components such as battery modules, wired/wireless charging structures, and the like. Communication bus 1604 is used to implement connection communication between these components. Memory 1602 may include non-volatile solid state memory and/or dynamic non-volatile storage devices such as flash memory, rotatable disk drives. The communication module 1603 can be used for long-distance communication, such as GSM, CDMA, General Packet Radio Service (GPRS), and Enhanced Data Rate for GSM Evolution (English: Enhanced Data Rate for GSM Evolution; EDGE), 3G technologies such as Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (English: Time Division-Synchronous Code Division Multiple Access; TD-SCDMA), 4G technologies such as LTE. Communication antenna 1605 is used to receive and transmit communication signals.
具体的,存储器1602包含操作系统16021和应用程序16022,操作系统16021包含各种操作系统程序,用于实现基于硬件的各项操作;应用程序16022包含各种应用程序,用于实现各种应用功能,比如虚拟IP地址生成程序、通信网络连接程序和数据通道建立程序,能够使终端生成虚拟IP地址,根据虚拟IP地址与n(n大于或等于2)个通信网络建立连接,获取n个通信网络中 每个通信网络为终端分配的IP地址,得到n个IP地址,从而利用n个IP地址中的每个IP地址分别与服务器建立数据通道。Specifically, the memory 1602 includes an operating system 16021 and an application program 16022. The operating system 16021 includes various operating system programs for implementing hardware-based operations. The application program 16022 includes various applications for implementing various application functions. For example, a virtual IP address generation program, a communication network connection program, and a data channel establishment program enable the terminal to generate a virtual IP address, establish a connection with n (n is greater than or equal to 2) communication networks according to the virtual IP address, and acquire n communication networks. Medium Each communication network assigns an IP address to the terminal, and obtains n IP addresses, thereby establishing a data channel with the server by using each of the n IP addresses.
处理器1601通过通信总线1604与各个模块和部件通信,处理器1601可以执行存储器1602中存储的应用程序来实现终端,使得该终端生成虚拟IP地址,再根据虚拟IP地址与n个通信网络中每个通信网络建立连接,然后获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,从而利用n个IP地址中的每个IP地址分别与服务器建立数据通道。The processor 1601 communicates with various modules and components via a communication bus 1604, and the processor 1601 can execute an application stored in the memory 1602 to implement the terminal, such that the terminal generates a virtual IP address, and then according to the virtual IP address and each of the n communication networks. The communication networks establish a connection, and then obtain an IP address assigned to each terminal by each communication network in the n communication networks, and obtain n IP addresses, thereby establishing a data channel with the server by using each of the n IP addresses.
本发明实施例提供的终端通过上述各个执行模块的配合实现图2或图4-1所示的方法实施例,图12-1或图12-2所示的装置实施例,以及上述数据通道建立系统中终端完成的各项功能及步骤。如上文中图12-1的生成单元1201、第一建立单元1202、获取单元1203和第二建立单元1204,以及图12-2的第三建立单元1205、确定单元1207、排序单元1208、记录单元1209、检测单元1210和设置单元1211,可以是由处理器1601执行存储器1602中存储的应用程序来实现;图12-2的发送单元1206可以是由通讯模块1603和通讯天线1605来实现。The terminal provided by the embodiment of the present invention implements the method embodiment shown in FIG. 2 or FIG. 4-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 12-1 or FIG. 12-2, and the foregoing data channel establishment. The functions and steps completed by the terminal in the system. The generating unit 1201, the first establishing unit 1202, the obtaining unit 1203, and the second establishing unit 1204 of FIG. 12-1, and the third establishing unit 1205, determining unit 1207, sorting unit 1208, and recording unit 1209 of FIG. 12-2. The detecting unit 1210 and the setting unit 1211 may be implemented by the processor 1601 executing an application stored in the memory 1602; the transmitting unit 1206 of FIG. 12-2 may be implemented by the communication module 1603 and the communication antenna 1605.
综上所述,本发明实施例提供的终端,能够根据虚拟IP地址与n个通信网络中每个通信网络建立连接,并获取n个通信网络中每个通信网络为终端分配的IP地址,得到n个IP地址,再利用n个IP地址中的每个IP地址分别与服务器建立数据通道,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can establish a connection with each communication network in the n communication networks according to the virtual IP address, and acquire an IP address assigned by each communication network in the n communication networks to the terminal, and obtain n IP addresses, and each of the n IP addresses is used to establish a data channel with the server respectively. Compared with the prior art, the number of data channels used by the terminal and the server for transmitting data packets is more, therefore, Improve the reliability of packet transmission.
图17是本发明实施例提供的又一种服务器的结构示意图,应该理解的是,服务器可以具有比图17中所示的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图17中所示出的各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。现以图17所示的服务器为例进行具体的说明,如图17所示,该服务器可以包括:处理器1710、网络接口1720、存储器1730和总线1740。其中,总线1740用于连接处理器1710、网络接口1720和存储器1730。17 is a schematic structural diagram of still another server according to an embodiment of the present invention. It should be understood that the server may have more or fewer components than those shown in FIG. 17, and two or more components may be combined. Or can have different component configurations. The various components shown in Figure 17 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. The server shown in FIG. 17 is taken as an example for specific description. As shown in FIG. 17, the server may include a processor 1710, a network interface 1720, a memory 1730, and a bus 1740. The bus 1740 is used to connect the processor 1710, the network interface 1720, and the memory 1730.
具体的,处理器1710可以执行存储器1730中存储的程序1731来实现服务器,使得该服务器能够根据虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,该第二资源池包括n个IP地址,再利用 n个IP地址中的每个IP地址分别与终端建立数据通道。Specifically, the processor 1710 can execute the program 1731 stored in the memory 1730 to implement the server, so that the server can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool. The second resource pool includes n IP addresses, and is reused. Each of the n IP addresses establishes a data channel with the terminal.
本发明实施例提供的服务器通过上述各个执行模块的配合实现图3或图4-1所示的方法实施例,图13所示的装置实施例,以及上述数据通道建立系统中服务器完成的各项功能及步骤。如上文中图13的接收单元1301,可以是由网络接口1720来实现;图13的第一建立单元1302和第二建立单元1303,可以是由处理器1710执行存储器1730中存储的程序1731来实现。The server provided by the embodiment of the present invention implements the method embodiment shown in FIG. 3 or FIG. 4-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 13 , and the servers completed in the data channel establishment system. Features and steps. The receiving unit 1301 of FIG. 13 as above may be implemented by the network interface 1720; the first establishing unit 1302 and the second establishing unit 1303 of FIG. 13 may be implemented by the processor 1710 executing the program 1731 stored in the memory 1730.
综上所述,本发明实施例提供的服务器,能够根据终端发送的虚拟IP地址和第一IP资源池的信息建立虚拟IP地址所指示的终端的第二IP资源池,再利用n个IP地址中的每个IP地址分别与终端建立数据通道,其中,第一IP资源池包括n个IP地址,第二资源池包括n个IP地址,相较于现有技术,终端和服务器用于传输数据包的数据通道的个数更多,因此,提高了数据包传输的可靠性。In summary, the server provided by the embodiment of the present invention can establish a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address sent by the terminal and the information of the first IP resource pool, and then use n IP addresses. Each of the IP addresses establishes a data channel with the terminal, wherein the first IP resource pool includes n IP addresses, and the second resource pool includes n IP addresses. Compared with the prior art, the terminal and the server are used to transmit data. The number of data channels of the packet is more, thus improving the reliability of packet transmission.
本发明实施例提供了另一种数据通道建立系统,该数据通道建立系统包括终端和服务器,An embodiment of the present invention provides another data channel establishing system, where the data channel establishing system includes a terminal and a server.
该终端为图16所示的终端;The terminal is the terminal shown in FIG. 16;
该服务器为图17所示的服务器。This server is the server shown in FIG.
图18是本发明实施例提供的再一种终端的结构示意图,应该理解的是,终端可以具有比图18中所示的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图18中所示出的各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。现以图18所示的终端为例进行具体的说明,如图18所示,该终端包括至少一个处理器1801、存储器1802、通讯模块1803、至少一个通信总线1804和通讯天线1805。该终端还包括其他功能性的构件,比如:电池模组、有线/无线充电结构等。通信总线1804用于实现这些组件之间的连接通信。存储器1802可能包含非易失性固态存储器和/或动力学的非易失性存储设备,如闪速存储器、可转动的磁盘驱动器。通讯模块1803可以用于远距通信,如GSM、CDMA、GPRS、EDGE、WCDMA、TD-SCDMA,4G技术如LTE等。通讯天线1805用于接收和发送通讯信号。FIG. 18 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. It should be understood that the terminal may have more or fewer components than those shown in FIG. 18, and two or more components may be combined. Or can have different component configurations. The various components shown in Figure 18 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. The terminal shown in FIG. 18 is taken as an example for specific description. As shown in FIG. 18, the terminal includes at least one processor 1801, a memory 1802, a communication module 1803, at least one communication bus 1804, and a communication antenna 1805. The terminal also includes other functional components such as battery modules, wired/wireless charging structures, and the like. Communication bus 1804 is used to implement connection communication between these components. Memory 1802 may include non-volatile solid state memory and/or dynamic non-volatile storage devices such as flash memory, rotatable disk drives. The communication module 1803 can be used for long-distance communication, such as GSM, CDMA, GPRS, EDGE, WCDMA, TD-SCDMA, 4G technologies such as LTE, and the like. Communication antenna 1805 is used to receive and transmit communication signals.
具体的,存储器1802包含操作系统18021和应用程序18022,操作系统 18021包含各种操作系统程序,用于实现基于硬件的各项操作;应用程序18022包含各种应用程序,用于实现各种应用功能,比如第一IP地址获取程序和IP地址替换程序,能够使终端在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,再将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。Specifically, the memory 1802 includes an operating system 18021 and an application 18022, an operating system. 18021 includes various operating system programs for implementing hardware-based operations; application 18022 includes various applications for implementing various application functions, such as a first IP address acquisition program and an IP address replacement program, enabling When the terminal needs to perform data packet transmission, the terminal obtains the first IP address in the first IP resource pool, and then replaces the first source IP address of the data packet with the virtual IP address to the first IP address, and obtains the processed data packet.
处理器1801通过通信总线1804与各个模块和部件通信,处理器1801可以执行存储器1802中存储的应用程序来实现终端,使得该终端在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,再将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包。The processor 1801 communicates with the various modules and components through the communication bus 1804. The processor 1801 can execute the application stored in the memory 1802 to implement the terminal, so that the terminal acquires the first IP resource pool when the data packet needs to be transmitted. An IP address, and then the first source IP address of the data packet is replaced by the virtual IP address to the first IP address, and the processed data packet is obtained.
本发明实施例提供的终端通过上述各个执行模块的配合实现图5或图7-1所示的方法实施例,图14-1或图14-2所示的装置实施例,以及上述数据包传输系统中终端完成的各项功能及步骤。如上文中图14-1的第一获取单元1401、替换单元1402,以及图14-2中的生成单元1404、第一建立单元1405、第二获取单元1406、第二建立单元1407、确定单元1408、排序单元1409、记录单元1410、检测单元1411和设置单元1412,可以是由处理器1801执行存储器1802中存储的应用程序来实现;图14-1的传输单元1403,以及图14-2的第一发送单元1413和第二发送单元1414,可以是由通讯模块1803和通讯天线1805来实现。The terminal provided by the embodiment of the present invention implements the method embodiment shown in FIG. 5 or FIG. 7-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 14-1 or FIG. 14-2, and the foregoing data packet transmission. The functions and steps completed by the terminal in the system. The first obtaining unit 1401, the replacing unit 1402 of FIG. 14-1, and the generating unit 1404, the first establishing unit 1405, the second obtaining unit 1406, the second establishing unit 1407, the determining unit 1408 in FIG. 14-2, The sorting unit 1409, the recording unit 1410, the detecting unit 1411, and the setting unit 1412 may be implemented by the processor 1801 executing an application stored in the memory 1802; the transmitting unit 1403 of FIG. 14-1, and the first of FIG. 14-2 The transmitting unit 1413 and the second transmitting unit 1414 may be implemented by the communication module 1803 and the communication antenna 1805.
综上所述,本发明实施例提供的终端,能够在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,将数据包的第一源IP地址由虚拟IP地址替换为第一IP地址,得到处理后的数据包,再通过数据通道向服务器传输处理后的数据包,相较于现有技术,终端在进行网络切换时,无需向另一通信网络发起无线连接请求以根据另一通信网络分配的新的IP地址进行数据包传输,解决了数据包传输发生中断而造成通信延迟和数据丢失的问题,因此,提高了数据包传输的可靠性。In summary, the terminal provided by the embodiment of the present invention can obtain the first IP address in the first IP resource pool when the data packet needs to be transmitted, and replace the first source IP address of the data packet with the virtual IP address. The first IP address is used to obtain the processed data packet, and then the processed data packet is transmitted to the server through the data channel. Compared with the prior art, the terminal does not need to initiate a wireless connection request to another communication network when performing network switching. The data packet transmission is performed according to the new IP address allocated by another communication network, which solves the problem of communication delay and data loss caused by interruption of data packet transmission, thereby improving the reliability of data packet transmission.
图19是本发明实施例提供的再一种服务器的结构示意图,应该理解的是,服务器可以具有比图19中所示的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图19中所示出的各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。现以图19所示的服务器为例进行具体的说明,如图19所示, 该服务器可以包括:处理器1910、网络接口1920、存储器1930和总线1940。其中,总线1940用于连接处理器1910、网络接口1920和存储器1930。FIG. 19 is a schematic structural diagram of still another server according to an embodiment of the present invention. It should be understood that the server may have more or fewer components than those shown in FIG. 19, and two or more components may be combined. Or can have different component configurations. The various components shown in Figure 19 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits. The server shown in FIG. 19 is taken as an example for specific description, as shown in FIG. The server can include a processor 1910, a network interface 1920, a memory 1930, and a bus 1940. The bus 1940 is used to connect the processor 1910, the network interface 1920, and the memory 1930.
处理器1910可以执行存储器1930中存储的程序1931来实现服务器,使得该服务器能够在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,再将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包。The processor 1910 can execute the program 1931 stored in the memory 1930 to implement the server, so that the server can acquire the second IP address in the second IP resource pool when the data packet needs to be transmitted, and then the second destination IP address of the data packet. The address is replaced by the virtual IP address to the second IP address, and the processed data packet is obtained.
本发明实施例提供的服务器通过上述各个执行模块的配合实现图6或图7-1所示的方法实施例,图15-1或图15-2所示的装置实施例,以及上述数据通道建立系统中服务器完成的各项功能及步骤。如上文中图15-1的获取单元1501和替换单元1502,以及图15-2的建立单元1505和更新单元1507,可以是由处理器1910执行存储器1930中存储的程序1931来实现;图15-1的传输单元1503,以及图15-2的第一接收单元1504和第二接收单元1506,可以是由网络接口1920来实现。The server provided by the embodiment of the present invention implements the method embodiment shown in FIG. 6 or FIG. 7-1 through the cooperation of the foregoing execution modules, the device embodiment shown in FIG. 15-1 or FIG. 15-2, and the foregoing data channel establishment. The functions and steps completed by the server in the system. The obtaining unit 1501 and the replacing unit 1502 of FIG. 15-1, and the establishing unit 1505 and the updating unit 1507 of FIG. 15-2, may be implemented by the processor 1910 executing the program 1931 stored in the memory 1930; FIG. 15-1 The transmission unit 1503, and the first receiving unit 1504 and the second receiving unit 1506 of FIG. 15-2, may be implemented by the network interface 1920.
综上所述,本发明实施例提供的服务器,能够在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,将数据包的第二目的IP地址由虚拟IP地址替换为第二IP地址,得到处理后的数据包,再通过数据通道向终端传输处理后的数据包,解决了数据包传输过程中数据丢失的问题,提高了数据包传输的可靠性。In summary, the server provided by the embodiment of the present invention can obtain the second IP address in the second IP resource pool when the data packet needs to be transmitted, and replace the second destination IP address of the data packet with the virtual IP address. The second IP address obtains the processed data packet, and then transmits the processed data packet to the terminal through the data channel, thereby solving the problem of data loss during the data packet transmission process and improving the reliability of the data packet transmission.
本发明实施例提供了另一种数据包传输系统,该数据包传输系统包括终端和服务器,An embodiment of the present invention provides another data packet transmission system, where the data packet transmission system includes a terminal and a server.
该终端为图18所示的终端;The terminal is the terminal shown in FIG. 18;
该服务器为图19所示的服务器。This server is the server shown in FIG.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (38)

  1. 一种数据通道建立方法,其特征在于,所述数据通道建立方法包括:A data channel establishing method, wherein the data channel establishing method comprises:
    生成虚拟IP地址;Generate a virtual IP address;
    根据所述虚拟IP地址与n个通信网络中每个通信网络建立连接,所述n大于或等于2;Establishing a connection with each of the n communication networks according to the virtual IP address, where n is greater than or equal to 2;
    获取所述n个通信网络中每个通信网络为所述终端分配的IP地址,得到n个IP地址;Obtaining an IP address assigned by each communication network in the n communication networks to the terminal, and obtaining n IP addresses;
    利用所述n个IP地址中的每个IP地址分别与服务器建立数据通道。A data channel is established with the server using each of the n IP addresses.
  2. 根据权利要求1所述的数据通道建立方法,其特征在于,所述数据通道建立方法还包括:The data channel establishing method according to claim 1, wherein the data channel establishing method further comprises:
    根据所述n个IP地址建立第一IP资源池,所述第一IP资源池包括所述n个IP地址;Establishing a first IP resource pool according to the n IP addresses, where the first IP resource pool includes the n IP addresses;
    向所述服务器发送所述虚拟IP地址和所述第一IP资源池的信息,以便于所述服务器根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址。Sending the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the virtual IP address according to the virtual IP address and the information of the first IP resource pool. a second IP resource pool of the terminal, the second resource pool including the n IP addresses.
  3. 根据权利要求2所述的数据通道建立方法,其特征在于,所述数据通道建立方法还包括:The data channel establishing method according to claim 2, wherein the data channel establishing method further comprises:
    确定n个数据通道中每个数据通道的服务质量;Determining the quality of service of each of the n data channels;
    根据所述n个数据通道中每个数据通道的服务质量对所述n个数据通道进行排序,得到所述排序信息;And sorting the n data channels according to the quality of service of each of the n data channels to obtain the sorting information;
    将所述n个数据通道中每个数据通道的服务质量和所述排序信息记录至所述第一IP资源池。Recording a quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  4. 根据权利要求3所述的数据通道建立方法,其特征在于,在所述利用所述n个IP地址中的每个IP地址分别与服务器建立数据通道之后,所述数据通道建立方法还包括:The data channel establishing method according to claim 3, wherein after the data channel is established with the server by using each of the n IP addresses, the data channel establishing method further includes:
    检测第一数据通道是否发生中断,所述第一数据通道为所述n个数据通道 中的任一数据通道;Detecting whether an interruption occurs in the first data channel, where the first data channel is the n data channels Any of the data channels;
    当所述第一数据通道发生中断时,将所述第一IP资源池中所述第一数据通道对应的信息设置为禁止使用状态。When the first data channel is interrupted, the information corresponding to the first data channel in the first IP resource pool is set to a prohibited use state.
  5. 一种数据通道建立方法,其特征在于,所述数据通道建立方法包括:A data channel establishing method, wherein the data channel establishing method comprises:
    接收终端发送的虚拟IP地址和第一IP资源池的信息,所述第一IP资源池包括n个IP地址,每个IP地址用于所述终端接入不同的通信网络,所述虚拟IP地址为所述终端生成的虚拟IP地址;Receiving the virtual IP address sent by the terminal and the information of the first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address is used by the terminal to access a different communication network, the virtual IP address a virtual IP address generated for the terminal;
    根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址;And establishing, by the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address, where the second resource pool includes the n IP addresses;
    利用所述n个IP地址中的每个IP地址分别与所述终端建立数据通道。A data channel is established with the terminal by each of the n IP addresses.
  6. 根据权利要求5所述的数据通道建立方法,其特征在于,所述第二IP资源池还包括n个数据通道中每个数据通道的服务质量和所述n个数据通道的服务质量的排序信息。The data channel establishing method according to claim 5, wherein the second IP resource pool further comprises a service quality of each of the n data channels and a ranking information of quality of service of the n data channels. .
  7. 一种数据包传输方法,其特征在于,所述数据包传输方法包括:A data packet transmission method, characterized in that the data packet transmission method comprises:
    当需要进行数据包传输时,在第一IP资源池中获取第一IP地址,所述第一IP地址为用于进行数据包传输的目标源IP地址,所述第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,所述n大于或等于2,所述数据包包括待传输数据、第一源IP地址和第一目的IP地址,所述第一源IP地址为所述终端的虚拟IP地址,所述第一目的IP地址为服务器的IP地址;When the data packet transmission is required, the first IP address is obtained in the first IP resource pool, where the first IP address is a target source IP address used for data packet transmission, and the first IP resource pool includes n An IP address, where each IP address is used for the terminal to access a different communication network, where n is greater than or equal to 2, the data packet includes data to be transmitted, a first source IP address, and a first destination IP address, where the first The source IP address is a virtual IP address of the terminal, and the first destination IP address is an IP address of the server;
    将所述数据包的第一源IP地址由所述虚拟IP地址替换为所述第一IP地址,得到处理后的数据包;And replacing, by the virtual IP address, the first source IP address of the data packet with the first IP address, to obtain a processed data packet;
    通过所述第一IP地址和所述第一目的IP地址所指示的通信网络的数据通道向所述服务器传输所述处理后的数据包。Transmitting the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  8. 根据权利要求7所述的数据包传输方法,其特征在于,所述数据包传输方法还包括:The data packet transmission method according to claim 7, wherein the data packet transmission method further comprises:
    生成所述虚拟IP地址;Generating the virtual IP address;
    根据所述虚拟IP地址与n个通信网络中每个通信网络建立连接; Establishing a connection with each of the n communication networks according to the virtual IP address;
    获取所述n个通信网络中每个通信网络为所述终端分配的IP地址;Obtaining an IP address assigned by each communication network in the n communication networks to the terminal;
    建立所述第一IP资源池,所述第一IP资源池包括所述n个IP地址。Establishing the first IP resource pool, where the first IP resource pool includes the n IP addresses.
  9. 根据权利要求8所述的数据包传输方法,其特征在于,所述根据所述虚拟IP地址与n个通信网络中每个通信网络建立连接,包括:The data packet transmission method according to claim 8, wherein the establishing a connection with each of the n communication networks according to the virtual IP address comprises:
    根据所述虚拟IP地址向所述n个通信网络中每个通信网络的分组网关发送连接请求消息,所述连接请求消息包括所述虚拟IP地址;Sending a connection request message to a packet gateway of each of the n communication networks according to the virtual IP address, where the connection request message includes the virtual IP address;
    接收所述每个通信网络的分组网关发送的连接响应消息,每个所述连接响应消息包括通信网络为所述终端分配的IP地址。Receiving a connection response message sent by the packet gateway of each communication network, each of the connection response messages including an IP address assigned by the communication network to the terminal.
  10. 根据权利要求8所述的数据包传输方法,其特征在于,所述第一IP资源池还包括所述n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,在所述建立所述第一IP资源池之后,所述数据包传输方法还包括:The data packet transmission method according to claim 8, wherein the first IP resource pool further comprises a service quality of a data channel of each of the n communication networks and a quality of service of the n data channels. The data packet transmission method further includes: after the establishing the first IP resource pool, the data packet transmission method further includes:
    确定所述n个数据通道中每个数据通道的服务质量;Determining a quality of service of each of the n data channels;
    根据所述n个数据通道中每个数据通道的服务质量对所述n个数据通道进行排序,得到所述排序信息;And sorting the n data channels according to the quality of service of each of the n data channels to obtain the sorting information;
    将所述n个数据通道中每个数据通道的服务质量和所述排序信息记录至所述第一IP资源池。Recording a quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  11. 根据权利要求10所述的数据包传输方法,其特征在于,所述数据包还包括:所述待传输数据的类型,The data packet transmission method according to claim 10, wherein the data packet further comprises: a type of the data to be transmitted,
    所述在第一IP资源池中获取第一IP地址,包括:The obtaining the first IP address in the first IP resource pool includes:
    根据所述待传输数据的类型确定所述待传输数据的重要等级;Determining an important level of the data to be transmitted according to the type of the data to be transmitted;
    根据所述待传输数据的重要等级、所述n个数据通道中每个数据通道的服务质量和所述排序信息,在所述n个数据通道中确定m个数据通道,所述m大于或等于1,且小于n;Determining m data channels in the n data channels according to an important level of the data to be transmitted, a quality of service of each of the n data channels, and the sorting information, where the m is greater than or equal to 1, and less than n;
    将所述m个数据通道中每个数据通道对应的通信网络为所述终端分配的IP地址作为所述第一IP地址。The IP address assigned to the terminal by the communication network corresponding to each of the m data channels is used as the first IP address.
  12. 根据权利要求11所述的数据包传输方法,其特征在于,在所述建立所 述第一IP资源池之后,所述数据包传输方法还包括:The data packet transmission method according to claim 11, wherein in said establishment After the first IP resource pool, the data packet transmission method further includes:
    检测第一数据通道是否发生中断,所述第一数据通道为所述n个数据通道中的任一数据通道;Detecting whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels;
    当所述第一数据通道发生中断时,将所述第一IP资源池中所述第一数据通道对应的信息设置为禁止使用状态。When the first data channel is interrupted, the information corresponding to the first data channel in the first IP resource pool is set to a prohibited use state.
  13. 根据权利要求8或10所述的数据包传输方法,其特征在于,在所述建立所述第一IP资源池之后,所述数据包传输方法还包括:The data packet transmission method according to claim 8 or 10, wherein after the establishing the first IP resource pool, the data packet transmission method further comprises:
    向所述服务器发送所述虚拟IP地址和所述第一IP资源池的信息,以便于所述服务器根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址。Sending the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the virtual IP address according to the virtual IP address and the information of the first IP resource pool. a second IP resource pool of the terminal, the second resource pool including the n IP addresses.
  14. 根据权利要求13所述的数据包传输方法,其特征在于,在所述向所述服务器发送所述虚拟IP地址和所述第一IP资源池的信息之后,所述数据包传输方法还包括:The data packet transmission method according to claim 13, wherein after the transmitting the virtual IP address and the information of the first IP resource pool to the server, the data packet transmission method further comprises:
    当所述第一IP资源池的信息发生变化时,将变化后的第一IP资源池的信息发送至所述服务器,以便于所述服务器根据所述变化后的第一IP资源池的信息对所述第二IP资源池进行更新。When the information of the first IP resource pool is changed, the information of the changed first IP resource pool is sent to the server, so that the server is configured according to the information of the changed first IP resource pool. The second IP resource pool is updated.
  15. 一种数据包传输方法,其特征在于,所述数据包传输方法包括:A data packet transmission method, characterized in that the data packet transmission method comprises:
    当需要进行数据包传输时,在第二IP资源池中获取第二IP地址,所述第二IP地址为用于进行数据包传输的目标目的IP地址,所述第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,所述n大于或等于2,所述第二IP资源池是根据所述终端发送的所述终端的虚拟IP地址和第一IP资源池的信息建立的,所述数据包包括待传输数据、第二源IP地址和第二目的IP地址,所述第二源IP地址为所述服务器的IP地址,所述第二目的IP地址为所述虚拟IP地址;When the data packet transmission is required, the second IP address is obtained in the second IP resource pool, where the second IP address is a target destination IP address used for data packet transmission, and the second IP resource pool includes n An IP address, where each IP address is used for the terminal to access a different communication network, and the n is greater than or equal to 2. The second IP resource pool is based on the virtual IP address and the first IP address of the terminal sent by the terminal. The information of the resource pool is established, and the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, where the second source IP address is an IP address of the server, and the second destination IP address is Is the virtual IP address;
    将所述数据包的第二目的IP地址由所述虚拟IP地址替换为所述第二IP地址,得到处理后的数据包;Substituting the second destination IP address of the data packet from the virtual IP address to the second IP address to obtain a processed data packet;
    通过所述第二源IP地址和所述第二IP地址所指示的通信网络的数据通道向所述终端传输所述处理后的数据包; Transmitting, by the data channel of the communication network indicated by the second source IP address and the second IP address, the processed data packet to the terminal;
    其中,所述第一IP资源池包括所述n个IP地址。The first IP resource pool includes the n IP addresses.
  16. 根据权利要求15所述的数据包传输方法,其特征在于,所述数据包传输方法还包括:The data packet transmission method according to claim 15, wherein the data packet transmission method further comprises:
    接收所述终端发送的虚拟IP地址和所述第一IP资源池的信息;Receiving, by the terminal, a virtual IP address and information of the first IP resource pool;
    根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池。And establishing, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address.
  17. 根据权利要求15所述的数据包传输方法,其特征在于,所述数据包还包括:所述待传输数据的类型,所述第二IP资源池还包括n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,The data packet transmission method according to claim 15, wherein the data packet further comprises: a type of the data to be transmitted, and the second IP resource pool further includes each of the n communication networks. The quality of service of the data channel and the ordering information of the quality of service of the n data channels,
    所述在第二IP资源池中获取第二IP地址,包括:The obtaining the second IP address in the second IP resource pool includes:
    根据所述待传输数据的类型确定所述待传输数据的重要等级;Determining an important level of the data to be transmitted according to the type of the data to be transmitted;
    根据所述待传输数据的重要等级、所述n个数据通道中每个数据通道的服务质量和所述排序信息,在所述n个数据通道中确定p个数据通道,所述p大于或等于1,且小于n;Determining p data channels in the n data channels according to an importance level of the data to be transmitted, a quality of service of each of the n data channels, and the sorting information, wherein the p is greater than or equal to 1, and less than n;
    将所述p个数据通道中每个数据通道对应的通信网络为所述终端分配的IP地址作为所述第二IP地址。The IP address assigned to the terminal by the communication network corresponding to each of the p data channels is used as the second IP address.
  18. 根据权利要求16所述的数据包传输方法,其特征在于,在所述根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池之后,所述数据包传输方法还包括:The data packet transmission method according to claim 16, wherein the second IP resource of the terminal indicated by the virtual IP address is established according to the virtual IP address and the information of the first IP resource pool. After the pool, the data packet transmission method further includes:
    接收所述终端发送的变化后的第一IP资源池的信息;Receiving information about the changed first IP resource pool sent by the terminal;
    根据所述变化后的第一IP资源池的信息对所述第二IP资源池进行更新。And updating the second IP resource pool according to the changed information of the first IP resource pool.
  19. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    生成单元,用于生成虚拟IP地址;Generating unit for generating a virtual IP address;
    第一建立单元,用于根据所述虚拟IP地址与n个通信网络中每个通信网络建立连接,所述n大于或等于2;a first establishing unit, configured to establish a connection with each of the n communication networks according to the virtual IP address, where n is greater than or equal to 2;
    获取单元,用于获取所述n个通信网络中每个通信网络为所述终端分配的IP地址,得到n个IP地址; An obtaining unit, configured to acquire an IP address allocated by each communication network in the n communication networks for the terminal, to obtain n IP addresses;
    第二建立单元,用于利用所述n个IP地址中的每个IP地址分别与服务器建立数据通道。And a second establishing unit, configured to establish a data channel with the server by using each of the n IP addresses.
  20. 根据权利要求19所述的终端,其特征在于,所述终端还包括:The terminal according to claim 19, wherein the terminal further comprises:
    第三建立单元,用于根据所述n个IP地址建立第一IP资源池,所述第一IP资源池包括所述n个IP地址;a third establishing unit, configured to establish a first IP resource pool according to the n IP addresses, where the first IP resource pool includes the n IP addresses;
    发送单元,用于向所述服务器发送所述虚拟IP地址和所述第一IP资源池的信息,以便于所述服务器根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址。a sending unit, configured to send the virtual IP address and the information of the first IP resource pool to the server, so that the server establishes the information according to the virtual IP address and information of the first IP resource pool A second IP resource pool of the terminal indicated by the virtual IP address, where the second resource pool includes the n IP addresses.
  21. 根据权利要求20所述的终端,其特征在于,所述终端还包括:The terminal according to claim 20, wherein the terminal further comprises:
    确定单元,用于确定n个数据通道中每个数据通道的服务质量;a determining unit, configured to determine a quality of service of each of the n data channels;
    排序单元,用于根据所述n个数据通道中每个数据通道的服务质量对所述n个数据通道进行排序,得到所述排序信息;a sorting unit, configured to sort the n data channels according to a quality of service of each of the n data channels, to obtain the sorting information;
    记录单元,用于将所述n个数据通道中每个数据通道的服务质量和所述排序信息记录至所述第一IP资源池。a recording unit, configured to record a quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  22. 根据权利要求21所述的终端,其特征在于,所述终端还包括:The terminal according to claim 21, wherein the terminal further comprises:
    检测单元,用于检测第一数据通道是否发生中断,所述第一数据通道为所述n个数据通道中的任一数据通道;a detecting unit, configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels;
    设置单元,用于在所述第一数据通道发生中断时,将所述第一IP资源池中所述第一数据通道对应的信息设置为禁止使用状态。And a setting unit, configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  23. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    接收单元,用于接收终端发送的虚拟IP地址和第一IP资源池的信息,所述第一IP资源池包括n个IP地址,每个IP地址用于所述终端接入不同的通信网络,所述虚拟IP地址为所述终端生成的虚拟IP地址;a receiving unit, configured to receive information about a virtual IP address sent by the terminal and a first IP resource pool, where the first IP resource pool includes n IP addresses, and each IP address is used by the terminal to access a different communication network, The virtual IP address is a virtual IP address generated by the terminal;
    第一建立单元,用于根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址; a first establishing unit, configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address, where the second resource pool includes the n IP addresses;
    第二建立单元,用于利用所述n个IP地址中的每个IP地址分别与所述终端建立数据通道。And a second establishing unit, configured to establish a data channel with the terminal by using each of the n IP addresses.
  24. 根据权利要求23所述的服务器,其特征在于,所述第二IP资源池还包括n个数据通道中每个数据通道的服务质量和所述n个数据通道的服务质量的排序信息。The server according to claim 23, wherein the second IP resource pool further comprises ordering information of a quality of service of each of the n data channels and a quality of service of the n data channels.
  25. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    第一获取单元,用于在需要进行数据包传输时,在第一IP资源池中获取第一IP地址,所述第一IP地址为用于进行数据包传输的目标源IP地址,所述第一IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,所述n大于或等于2,所述数据包包括待传输数据、第一源IP地址和第一目的IP地址,所述第一源IP地址为所述终端的虚拟IP地址,所述第一目的IP地址为服务器的IP地址;a first acquiring unit, configured to acquire a first IP address in a first IP resource pool when the data packet needs to be transmitted, where the first IP address is a target source IP address used for data packet transmission, where An IP resource pool includes n IP addresses, each IP address is used for a terminal to access a different communication network, and the n is greater than or equal to 2. The data packet includes data to be transmitted, a first source IP address, and a first destination. An IP address, where the first source IP address is a virtual IP address of the terminal, and the first destination IP address is an IP address of the server;
    替换单元,用于将所述数据包的第一源IP地址由所述虚拟IP地址替换为所述第一IP地址,得到处理后的数据包;a replacement unit, configured to replace the first source IP address of the data packet by the virtual IP address with the first IP address, to obtain a processed data packet;
    传输单元,用于通过所述第一IP地址和所述第一目的IP地址所指示的通信网络的数据通道向所述服务器传输所述处理后的数据包。And a transmitting unit, configured to transmit the processed data packet to the server by using a data channel of the communication network indicated by the first IP address and the first destination IP address.
  26. 根据权利要求25所述的终端,其特征在于,所述终端还包括:The terminal according to claim 25, wherein the terminal further comprises:
    生成单元,用于生成所述虚拟IP地址;Generating unit, configured to generate the virtual IP address;
    第一建立单元,用于根据所述虚拟IP地址与n个通信网络中每个通信网络建立连接;a first establishing unit, configured to establish a connection with each of the n communication networks according to the virtual IP address;
    第二获取单元,用于获取所述n个通信网络中每个通信网络为所述终端分配的IP地址;a second acquiring unit, configured to acquire an IP address allocated by each communication network in the n communication networks to the terminal;
    第二建立单元,用于建立所述第一IP资源池,所述第一IP资源池包括所述n个IP地址。a second establishing unit, configured to establish the first IP resource pool, where the first IP resource pool includes the n IP addresses.
  27. 根据权利要求26所述的终端,其特征在于,所述第一建立单元,具体用于:The terminal according to claim 26, wherein the first establishing unit is specifically configured to:
    根据所述虚拟IP地址向所述n个通信网络中每个通信网络的分组网关发送 连接请求消息,所述连接请求消息包括所述虚拟IP地址;Transmitting to a packet gateway of each of the n communication networks according to the virtual IP address a connection request message, the connection request message including the virtual IP address;
    接收所述每个通信网络的分组网关发送的连接响应消息,每个所述连接响应消息包括通信网络为所述终端分配的IP地址。Receiving a connection response message sent by the packet gateway of each communication network, each of the connection response messages including an IP address assigned by the communication network to the terminal.
  28. 根据权利要求26所述的终端,其特征在于,所述第一IP资源池还包括所述n个通信网络中每个通信网络的数据通道的服务质量和n个数据通道的服务质量的排序信息,所述终端还包括:The terminal according to claim 26, wherein the first IP resource pool further comprises a service quality of a data channel of each of the n communication networks and a ranking information of quality of service of the n data channels. The terminal further includes:
    确定单元,用于确定所述n个数据通道中每个数据通道的服务质量;a determining unit, configured to determine a quality of service of each of the n data channels;
    排序单元,用于根据所述n个数据通道中每个数据通道的服务质量对所述n个数据通道进行排序,得到所述排序信息;a sorting unit, configured to sort the n data channels according to a quality of service of each of the n data channels, to obtain the sorting information;
    记录单元,用于将所述n个数据通道中每个数据通道的服务质量和所述排序信息记录至所述第一IP资源池。a recording unit, configured to record a quality of service and the sorting information of each of the n data channels to the first IP resource pool.
  29. 根据权利要求28所述的终端,其特征在于,所述数据包还包括:所述待传输数据的类型,The terminal according to claim 28, wherein the data packet further comprises: a type of the data to be transmitted,
    所述第一获取单元,具体用于:The first acquiring unit is specifically configured to:
    根据所述待传输数据的类型确定所述待传输数据的重要等级;Determining an important level of the data to be transmitted according to the type of the data to be transmitted;
    根据所述待传输数据的重要等级、所述n个数据通道中每个数据通道的服务质量和所述排序信息,在所述n个数据通道中确定m个数据通道,所述m大于或等于1,且小于n;Determining m data channels in the n data channels according to an important level of the data to be transmitted, a quality of service of each of the n data channels, and the sorting information, where the m is greater than or equal to 1, and less than n;
    将所述m个数据通道中每个数据通道对应的通信网络为所述终端分配的IP地址作为所述第一IP地址。The IP address assigned to the terminal by the communication network corresponding to each of the m data channels is used as the first IP address.
  30. 根据权利要求29所述的终端,其特征在于,所述终端还包括:The terminal according to claim 29, wherein the terminal further comprises:
    检测单元,用于检测第一数据通道是否发生中断,所述第一数据通道为所述n个数据通道中的任一数据通道;a detecting unit, configured to detect whether an interruption occurs in the first data channel, where the first data channel is any one of the n data channels;
    设置单元,用于在所述第一数据通道发生中断时,将所述第一IP资源池中所述第一数据通道对应的信息设置为禁止使用状态。And a setting unit, configured to set, when the first data channel is interrupted, information corresponding to the first data channel in the first IP resource pool to a prohibited use state.
  31. 根据权利要求26或28所述的终端,其特征在于,所述终端还包括:The terminal according to claim 26 or 28, wherein the terminal further comprises:
    第一发送单元,用于向所述服务器发送所述虚拟IP地址和所述第一IP资源 池的信息,以便于所述服务器根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池,所述第二资源池包括所述n个IP地址。a first sending unit, configured to send the virtual IP address and the first IP resource to the server The information of the pool, so that the server establishes a second IP resource pool of the terminal indicated by the virtual IP address according to the virtual IP address and the information of the first IP resource pool, where the second resource pool includes Said n IP addresses.
  32. 根据权利要求31所述的终端,其特征在于,所述终端还包括:The terminal according to claim 31, wherein the terminal further comprises:
    第二发送单元,用于在所述第一IP资源池的信息发生变化时,将变化后的第一IP资源池的信息发送至所述服务器,以便于所述服务器根据所述变化后的第一IP资源池的信息对所述第二IP资源池进行更新。a second sending unit, configured to send information of the changed first IP resource pool to the server when the information of the first IP resource pool changes, so that the server is configured according to the changed The information of an IP resource pool updates the second IP resource pool.
  33. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    获取单元,用于在需要进行数据包传输时,在第二IP资源池中获取第二IP地址,所述第二IP地址为用于进行数据包传输的目标目的IP地址,所述第二IP资源池包括n个IP地址,每个IP地址用于终端接入不同的通信网络,所述n大于或等于2,所述第二IP资源池是根据所述终端发送的所述终端的虚拟IP地址和第一IP资源池的信息建立的,所述数据包包括待传输数据、第二源IP地址和第二目的IP地址,所述第二源IP地址为所述服务器的IP地址,所述第二目的IP地址为所述虚拟IP地址;An obtaining unit, configured to acquire a second IP address in a second IP resource pool when the data packet needs to be transmitted, where the second IP address is a target destination IP address used for data packet transmission, and the second IP address The resource pool includes n IP addresses, each IP address is used for the terminal to access a different communication network, and the n is greater than or equal to 2, and the second IP resource pool is based on the virtual IP address of the terminal sent by the terminal. Established by the address and the information of the first IP resource pool, the data packet includes data to be transmitted, a second source IP address, and a second destination IP address, where the second source IP address is an IP address of the server, The second destination IP address is the virtual IP address;
    替换单元,用于将所述数据包的第二目的IP地址由所述虚拟IP地址替换为所述第二IP地址,得到处理后的数据包;a replacement unit, configured to replace the second destination IP address of the data packet by the virtual IP address with the second IP address, to obtain a processed data packet;
    传输单元,用于通过所述第二源IP地址和所述第二IP地址所指示的通信网络的数据通道向所述终端传输所述处理后的数据包;a transmitting unit, configured to transmit the processed data packet to the terminal by using a data channel of the communication network indicated by the second source IP address and the second IP address;
    其中,所述第一IP资源池包括所述n个IP地址。The first IP resource pool includes the n IP addresses.
  34. 根据权利要求33所述的服务器,其特征在于,所述服务器还包括:The server according to claim 33, wherein the server further comprises:
    第一接收单元,用于接收所述终端发送的虚拟IP地址和所述第一IP资源池的信息;a first receiving unit, configured to receive a virtual IP address sent by the terminal and information of the first IP resource pool;
    建立单元,用于根据所述虚拟IP地址和所述第一IP资源池的信息建立所述虚拟IP地址所指示的终端的第二IP资源池。And a establishing unit, configured to establish, according to the virtual IP address and the information of the first IP resource pool, a second IP resource pool of the terminal indicated by the virtual IP address.
  35. 根据权利要求33所述的服务器,其特征在于,所述数据包还包括:所述待传输数据的类型,所述第二IP资源池还包括n个通信网络中每个通信网络 的数据通道的服务质量和n个数据通道的服务质量的排序信息,The server according to claim 33, wherein said data packet further comprises: said type of data to be transmitted, said second IP resource pool further comprising each of said n communication networks The quality of service of the data channel and the ordering information of the quality of service of the n data channels,
    所述获取单元,具体用于:The obtaining unit is specifically configured to:
    根据所述待传输数据的类型确定所述待传输数据的重要等级;Determining an important level of the data to be transmitted according to the type of the data to be transmitted;
    根据所述待传输数据的重要等级、所述n个数据通道中每个数据通道的服务质量和所述排序信息,在所述n个数据通道中确定p个数据通道,所述p大于或等于1,且小于n;Determining p data channels in the n data channels according to an importance level of the data to be transmitted, a quality of service of each of the n data channels, and the sorting information, wherein the p is greater than or equal to 1, and less than n;
    将所述p个数据通道中每个数据通道对应的通信网络为所述终端分配的IP地址作为所述第二IP地址。The IP address assigned to the terminal by the communication network corresponding to each of the p data channels is used as the second IP address.
  36. 根据权利要求34所述的服务器,其特征在于,所述服务器还包括:The server according to claim 34, wherein the server further comprises:
    第二接收单元,用于接收所述终端发送的变化后的第一IP资源池的信息;a second receiving unit, configured to receive information about the changed first IP resource pool sent by the terminal;
    更新单元,用于根据所述变化后的第一IP资源池的信息对所述第二IP资源池进行更新。And an updating unit, configured to update the second IP resource pool according to the changed information of the first IP resource pool.
  37. 一种数据通道建立系统,其特征在于,包括终端和服务器,A data channel establishing system, comprising: a terminal and a server,
    所述终端为权利要求19至22任一所述的终端;The terminal is the terminal according to any one of claims 19 to 22;
    所述服务器为权利要求23或24所述的服务器。The server is the server of claim 23 or 24.
  38. 一种数据包传输系统,其特征在于,包括终端和服务器,A data packet transmission system, comprising: a terminal and a server,
    所述终端为权利要求25至32任一所述的终端;The terminal is the terminal according to any one of claims 25 to 32;
    所述服务器为权利要求33至36任一所述的服务器。 The server is the server of any one of claims 33 to 36.
PCT/CN2016/076356 2016-03-15 2016-03-15 Method for establishing data channel and transmitting data packet, terminal, server, and system WO2017156704A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/076356 WO2017156704A1 (en) 2016-03-15 2016-03-15 Method for establishing data channel and transmitting data packet, terminal, server, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/076356 WO2017156704A1 (en) 2016-03-15 2016-03-15 Method for establishing data channel and transmitting data packet, terminal, server, and system

Publications (1)

Publication Number Publication Date
WO2017156704A1 true WO2017156704A1 (en) 2017-09-21

Family

ID=59850563

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076356 WO2017156704A1 (en) 2016-03-15 2016-03-15 Method for establishing data channel and transmitting data packet, terminal, server, and system

Country Status (1)

Country Link
WO (1) WO2017156704A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291363A (en) * 2020-11-06 2021-01-29 腾讯科技(深圳)有限公司 Wireless communication method, device, electronic equipment and computer readable storage medium
CN113341833A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Acquisition and transmission method for operating state data of ground equipment of airport apron
WO2023185484A1 (en) * 2022-03-29 2023-10-05 华能新疆能源开发有限公司新能源东疆分公司 Agc device dual-channel switching method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453768A (en) * 2007-12-03 2009-06-10 Sk电信有限公司 Method for providing packet service while hand-over between different kinds networks and mobile communication terminal for the same
CN101582773A (en) * 2008-05-13 2009-11-18 株式会社日立国际电气 Redundant failover system, redundancy managing apparatus and application processing apparatus
CN101827111A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 TCP (Transfer Control Protocol) linking method, network system, client end and server
CN102811437A (en) * 2011-05-31 2012-12-05 三星Sds株式会社 Apparatus and method for controlling data transmission/reception path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453768A (en) * 2007-12-03 2009-06-10 Sk电信有限公司 Method for providing packet service while hand-over between different kinds networks and mobile communication terminal for the same
CN101582773A (en) * 2008-05-13 2009-11-18 株式会社日立国际电气 Redundant failover system, redundancy managing apparatus and application processing apparatus
CN101827111A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 TCP (Transfer Control Protocol) linking method, network system, client end and server
CN102811437A (en) * 2011-05-31 2012-12-05 三星Sds株式会社 Apparatus and method for controlling data transmission/reception path

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291363A (en) * 2020-11-06 2021-01-29 腾讯科技(深圳)有限公司 Wireless communication method, device, electronic equipment and computer readable storage medium
WO2022095708A1 (en) * 2020-11-06 2022-05-12 腾讯科技(深圳)有限公司 Wireless communication method and apparatus, device, storage medium, and computer program product
CN112291363B (en) * 2020-11-06 2023-09-08 腾讯科技(深圳)有限公司 Method, apparatus, electronic device, and computer-readable storage medium for wireless communication
CN113341833A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Acquisition and transmission method for operating state data of ground equipment of airport apron
WO2023185484A1 (en) * 2022-03-29 2023-10-05 华能新疆能源开发有限公司新能源东疆分公司 Agc device dual-channel switching method

Similar Documents

Publication Publication Date Title
CN111052849B (en) Method and apparatus for mobile network interaction proxy
CN109981316B (en) Switching method of application server, session management network element and terminal equipment
US11510258B2 (en) Direct user equipment to user equipment without data network access identifier
JP6553635B2 (en) Method and apparatus for indicating D2D related information and determining D2D transmission resources
US11190602B2 (en) Communication method and communications device
CN110365727B (en) Communication method and related device
WO2015154392A1 (en) Switching implementation method and device for d2d service
JP2022550517A (en) Service offload method, device, system, electronic device, and computer program
CN114342332B (en) Communication method, device and system
EP3817453A1 (en) Communication method and apparatus
TWI692989B (en) Uplink data packet resource configuration method and user terminal
WO2017156704A1 (en) Method for establishing data channel and transmitting data packet, terminal, server, and system
JP2019510435A (en) Network access method, related device and system
JP2020524462A (en) Downlink control channel resource identification method, apparatus, user equipment and base station
CN108617012B (en) Method and device for establishing connection
CN113261222A (en) Coordinated resource reservation for ultra-reliable low-latency communications
US20230180066A1 (en) Handover method, device and system in multi-connection network
CN112055985A (en) Single-phase downlink control information design for scheduling multiple active bandwidth portions
Tzanakaki et al. Mobility aware dynamic resource management in 5G systems and beyond
WO2020249208A1 (en) Apparatus, method and computer program
WO2022227088A1 (en) Integrated access and backhaul communication
US11039501B2 (en) Converged controller selection method, device, and converged controller selection system
US20240114398A1 (en) Adaptive resource allocation for a wireless telecommunication network fronthaul link
KR101199124B1 (en) Apparatus for establishing call connection in carrier aggregation environment
CN107528681B (en) Data transmission method, transceiver and communication terminal

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16893869

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16893869

Country of ref document: EP

Kind code of ref document: A1