[go: up one dir, main page]

WO2017012142A1 - Dual-connection security communication method and apparatus - Google Patents

Dual-connection security communication method and apparatus Download PDF

Info

Publication number
WO2017012142A1
WO2017012142A1 PCT/CN2015/085860 CN2015085860W WO2017012142A1 WO 2017012142 A1 WO2017012142 A1 WO 2017012142A1 CN 2015085860 W CN2015085860 W CN 2015085860W WO 2017012142 A1 WO2017012142 A1 WO 2017012142A1
Authority
WO
WIPO (PCT)
Prior art keywords
login
server
network connection
network
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/085860
Other languages
French (fr)
Chinese (zh)
Inventor
蒋颁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2017012142A1 publication Critical patent/WO2017012142A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/082Access security using revocation of authorisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for dual connectivity secure communication.
  • the method of improving network security is mainly through software, and how to improve the security of the user login server by providing reliable communication is currently a blank.
  • the embodiment of the invention discloses a method and a device for dual-connection secure communication, which divides the communication message of the user and the server into different data packets, and the two network connections established between the terminal and the server are respectively in two Different data packets are transmitted on the connection, and different data packets received from the two connections are combined into a communication message to complete the secure communication, which can prevent the network attacker from intercepting the complete communication message of the user on the same network connection, thereby enhancing the user.
  • Security with the server login method which divides the communication message of the user and the server into different data packets, and the two network connections established between the terminal and the server are respectively in two Different data packets are transmitted on the connection, and different data packets received from the two connections are combined into a communication message to complete the secure communication, which can prevent the network attacker from intercepting the complete communication message of the user on the same network connection, thereby enhancing the user.
  • the first aspect of the embodiments of the present invention provides a method for dual-connection secure communication, which is used in a terminal device, and includes:
  • the server After receiving the server login command sent by the user, establishing a first network connection with the server through the mobile data network, through a wireless local area network (WLAN, Wireless Local Access Network)
  • WLAN Wireless Local Access Network
  • the server establishes a second network connection;
  • the login response message includes a login success message or a login failure message
  • the method further includes:
  • the login response message sent by the server is a login failure message
  • the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN to end the user login.
  • the login response message sent by the server is a login success message
  • the user logs in successfully, and disconnects the first network connection established with the server through the mobile data network to complete the user login;
  • the login response message sent by the server is a login success message
  • the user logs in successfully, and disconnects the second network established by the WLAN with the server to complete the user login.
  • the method before the first network connection is established with the server by using the mobile data network, the method further includes:
  • the method further includes:
  • the security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.
  • a second aspect of the embodiments of the present invention provides a method for dual-connection secure communication, which is used in a server, and includes:
  • the login response message includes a login success message or a login failure message
  • the method further includes:
  • the login response message is a login failure message
  • the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.
  • a third aspect of the embodiments of the present invention provides a terminal device, including:
  • a receiving unit configured to receive a server login instruction sent by the user
  • a processing unit configured to establish a first network connection with the server through the mobile data network, and establish a second network connection with the server through the WLAN;
  • the processing unit is further configured to: generate a login request message sent to the server according to the server login instruction received by the receiving unit, and split the login request message into the first request data packet and the second request data packet;
  • a sending unit configured to send a first request data packet to the server on the first network connection, and send a second request data packet to the server on the second network connection;
  • the receiving unit is further configured to: receive, by the first network connection, a first response data packet sent by the server, and receive, by the second network connection, a second response data packet sent by the server;
  • the processing unit is further configured to: encapsulate the first response data packet and the second response data received by the receiving unit And the login response message sent to the server to complete the user login.
  • the processing unit is further configured to:
  • the login response message sent by the server received by the receiving unit is a login failure message
  • the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN.
  • the login response message sent by the server received by the receiving unit is a login success message
  • the user logs in successfully, and disconnects the first network connection established with the server through the mobile data network to complete the user login;
  • the login response message sent by the server received by the receiving unit is a login success message
  • the user logs in successfully, and disconnects the second network established by the WLAN and the server to complete the user login.
  • the processing unit is specifically configured to:
  • the security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.
  • a fourth aspect of the embodiments of the present invention provides a server device, including:
  • a processing unit configured to establish a first network connection with the terminal through the mobile data network, and establish a second network connection with the terminal by using the WLAN;
  • a receiving unit configured to receive a first request data packet sent by the terminal from the first network connection, and receive a second request data packet sent by the terminal from the second network connection;
  • the processing unit is further configured to: merge the first request data packet and the second request data packet received by the receiving unit to obtain a login request message sent by the terminal; and generate a login response message sent to the terminal according to the login request message, and log in The response message is split into a first response data packet and a second response data packet;
  • a sending unit configured to send a first response data packet to the terminal on the first network connection, and send a second response data packet to the terminal on the second network connection, to complete the user login.
  • the login response message includes a login success message or a login failure message
  • the processing unit is also used to:
  • the login response message is a login failure message
  • the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.
  • the technical solution provided by the embodiment of the present invention is capable of establishing a first network connection with a server through a mobile data network, establishing a second network connection with the server through the WLAN, and splitting the server login request message sent by the user into the first request data packet and the second Requesting a data packet, sending the first request data packet and the second request data packet to the server through two network connections, and respectively receiving the first response data packet and the second response data packet through two network connections and merging and transmitting to the server Login response message to complete user login to the server.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • FIG. 1 is a schematic diagram of a network for dual connectivity secure communication according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic flowchart of a method for dual connectivity secure communication according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of another terminal device according to Embodiment 6 of the present invention.
  • FIG. 9 is a schematic structural diagram of a server device according to Embodiment 7 of the present invention.
  • FIG. 10 is a schematic structural diagram of another server device according to Embodiment 7 of the present invention.
  • the mobile terminal communicates with the server through a network connection, for example, through WLAN or through a mobile data network to communicate with the server, the network attacker is easier to The network device tampers or forges the communication message between the user and the server by intercepting the communication message between the user and the server, thereby reducing the security of the network communication.
  • the embodiment of the invention provides a method and a device for dual-connection secure communication, which are used for implementing secure login of a mobile terminal to an application server, so as to prevent an attacker from stealing a complete communication message of the user in the same network, thereby leaking user information or Tampering with user information and infringing on the rights of users.
  • the application will present various aspects, embodiments, or features in a system that can include multiple devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and/or may not include all of the devices, components, modules, etc. discussed in connection with the figures. This In addition, a combination of these schemes can also be used.
  • the "application server” and the “server” can be mixed. It should be noted that the meanings to be expressed are consistent when the difference is not emphasized.
  • the network architecture and the service scenario described in the embodiments of the present invention are used to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation of the technical solutions provided by the embodiments of the present invention.
  • the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
  • the embodiment of the present invention is based on the scenario of using a 3GPP network and a WLAN network. It should be noted that the solution in the embodiment of the present invention can also be applied to scenarios using other mobile communication networks and WLANs, such as HRPD of 3GPP2 and WiMAX of IEEE.
  • the corresponding name can also be replaced by the name of the corresponding function in other wireless communication networks.
  • FIG. 2 is a schematic flowchart diagram of a method for dual-connection secure communication according to Embodiment 1 of the present invention.
  • the method for dual-connection secure communication provided by the first embodiment of the present invention is used for a mobile terminal device, and the mobile terminal device supports the mobile data network and the WLAN transmission, and may include the following steps:
  • the terminal After receiving the server login command sent by the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. Establish a first network connection with the server, and establish a second network connection with the server through the WLAN. As shown in FIG. 1, the terminal establishes a first network connection and a second network connection with the server through the mobile data network and the WLAN, and the mobile data network transceiver and the mobile network protocol stack software are disposed in the terminal for processing the first network connection. A WLAN transceiver and WLAN protocol stack software are provided for processing the second network connection.
  • the support terminal simultaneously performs network registration and authentication in the 3GPP network and the non-3GPP network, and the terminal can simultaneously perform IP stream transmission through the 3GPP network and the WLAN.
  • the WLAN user can be authenticated and authenticated by the 3GPP network, which can also be connected to the packet data gateway of the 3GPP network.
  • the current solution of the 3GPP network and the non-3GPP network integration introduced in the 3GPP system does not support establishing a network connection with the same server through the 3GPP network and the non-3GPP network.
  • the first network connection and the second network connection may be a TCP/IP connection or a UDP/IP connection, identified by a transmission port number, a receiving port number, a source IP address, and a destination IP address.
  • the first network connection can be established with the application server through the mobile data network, and the terminal can establish a second network connection with the server through the WLAN after the terminal is authenticated by the WLAN.
  • the packet network registration can be initiated.
  • the network registration process includes an authentication process, a security activation process, and establishing a packet data network connection, etc., when the terminal completes the packet network registration in the LTE network.
  • the first network connection (TCP or UDP connection) can be established with the application server.
  • the terminal user in the WLAN first needs to pass the local security authentication of the WLAN, and then establish a second network connection (TCP or UDP connection) with the application server through the WLAN; in some scenarios where the 3GPP network and the WLAN network are fused, the WLAN
  • the terminal in the terminal performs security authentication through the 3GPP network server, and the terminal that is securely authenticated by the 3GPP network can establish a second network connection with the application server through the WLAN.
  • S102 Generate a login request message sent to the server according to the server login instruction, split the login request message into the first request data packet and the second request data packet, and send the first request data packet to the server on the first network connection, where A second request packet is sent to the server on the second network connection.
  • the terminal may generate a server login request message of the user according to the server login instruction of the user, and the user login request message includes the user. Account and password information. Since the first network connection and the second network connection are different transmission connections, the data transmitted through the first network connection and through the second network connection may pass through different network devices, in order to prevent the user's login request message from being attacked by the network attacker on the network. Intercepted by a device (such as a gateway or router), the terminal can use The user's login request message is split into two data packets, which are respectively sent on the established first network connection and the second network connection. Specifically, the user's server login request message is split into the first request data packet and the first The second request packet transmits a first request packet to the server on the first network connection and a second request packet to the server on the second network connection.
  • a device such as a gateway or router
  • the login response message generated by the server according to the login request message sent by the terminal includes a login success message and a login failure message.
  • the server After receiving the login request message, the server first verifies whether the user is a valid user. If the user is an invalid user (for example, the user account does not exist or the password is incorrect), the server can directly disconnect the first network connection established by the terminal through the mobile data network. And disconnecting from the second network established by the terminal through the WLAN.
  • the terminal When the terminal receives the first network connection disconnection request sent by the server, or after the terminal sends the first request data packet and the second request data packet for more than a specified time, disconnects the first network connection, when the terminal receives Disconnect the second network connection when the second network connection disconnect request sent by the server, or after the first request packet and the second request packet are sent, exceeds the specified time; One of them ends the user login. If the server verifies that the user is a valid user, the login response message, including the login success message or the login failure message, may be generated according to the user information or other conditions, such as the total number of connections of the server, the processing capability, or the network speed. For example, if the user has a higher priority. If the server is low and the total number of connections to the server is high, the server may generate a login failure message for the user.
  • the server splits the generated login response message into the first response data packet and the second response data packet, respectively, in order to prevent the network attacker from intercepting the user message from the network.
  • the first response data packet is sent to the terminal on the network connection
  • the second response data packet is sent to the terminal on the second network connection.
  • the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.
  • the two may be merged into a login response message sent by the server.
  • the login response message is a login failure message
  • the terminal disconnects the first network connection established with the server through the mobile data network, and disconnects the second network established by the server with the WLAN.
  • the disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated.
  • the disconnection of the TCP connection may be disconnected immediately after receiving the login failure response message, or may be disconnected in the case of failure after multiple login attempts. If the login response message sent by the server is a login success message, the user logs in successfully, and the terminal can disconnect the first network connection established with the server through the mobile data network, or disconnect the second network connection established with the server through the WLAN, and Alternatively, the first network connection and the second network connection are kept disconnected. After the terminal completes the user login, the service data can be transmitted using the disconnected network connection.
  • the login success message received by the terminal may be a login success message of one of the multiple user login attempts.
  • the disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated.
  • the closing of the TCP connection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The closing of the TCP connection.
  • the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request.
  • the data packet and the second request data packet are sent to the server through the two network connections by the first request data packet and the second request data packet, respectively, and then receive the first response data packet and the second response data packet through the two network connections respectively.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • FIG. 3 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 2 of the present invention. Wherein, as shown in FIG. 3, the method may include the following steps:
  • the terminal After receiving the server login command sent by the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. Establish a first network connection with the server, and establish a second network connection with the server through the wireless local area network WLAN.
  • TCP Transmission Control Protocol
  • UDP User Data Network
  • step S201 For the detailed description of the step S201, refer to step S101 of the first embodiment, and details are not described herein again.
  • S202 Generate a login request message sent to the server according to the server login instruction, split the login request message into the first request data packet and the second request data packet, and send the first request data packet to the server on the first network connection, where A second request packet is sent to the server on the second network connection.
  • step S202 For the detailed description of the step S202, refer to the step S102 of the first embodiment, and details are not described herein again.
  • S203 Receive a first response data packet sent by the server from the first network connection, receive a second response data packet sent by the server from the second network connection, and combine the first response data packet and the second response data packet into a server. Login reply message.
  • the server Receiving, by the server, the first request data packet sent by the terminal from the first network connection, and after receiving the second request data packet sent by the terminal from the second network connection, performing the first request data packet and the second request data packet Merge to get the login request message sent by the terminal.
  • the server After the server generates a login response message according to the login request message, similar to the method for the terminal to send the login request message, the server splits the generated login response message into the first response packet in order to prevent the network attacker from intercepting the user message from the network. And transmitting, by the second response packet, a first response data packet to the terminal on the first network connection, and transmitting the second response data packet to the terminal on the second network connection.
  • the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.
  • the terminal may merge the two into a login response message sent by the server to complete the user login process.
  • the terminal merges the first response data packet and the second response data packet into a login response message, where the login response message includes a login success message and a login failure message. If the login success message is successful, the user logs in to the server successfully, and if it is a login failure message, The user failed to log in to the server.
  • the login response message is a login failure message
  • the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN to end the user login.
  • the terminal disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN.
  • the disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated.
  • the disconnection of the TCP connection may be disconnected immediately after the terminal receives the login failure response message, or may be disconnected after the login failure message is received each time the terminal receives the multiple login attempts.
  • the login response message is a login success message
  • the user logs in successfully, disconnects the first network connection established with the server through the mobile data network, or disconnects the second network connection established with the server through the WLAN to complete the user login.
  • the login response message is a login success message, disconnect the first network connection established with the server through the mobile data network, or disconnect the second network connection established with the server through the WLAN, or maintain the first network connection and the second network
  • the connection is not broken.
  • the login success message received by the terminal may be one of the multiple login attempts.
  • the disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The closing of the TCP connection.
  • the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request.
  • the data packet and the second request data packet are sent to the server through the two network connections by the first request data packet and the second request data packet, respectively, and then receive the first response data packet and the second response data packet through the two network connections respectively.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • FIG. 4 is a schematic flowchart diagram of a method for dual-connection secure communication according to Embodiment 3 of the present invention. Wherein, as shown in FIG. 4, the method may include the following steps:
  • step S301 For the specific implementation of step S301, reference may be made to step S101 of the first embodiment, and details are not described herein again.
  • step S302 For the specific implementation of step S302, refer to step S102 of the first embodiment, and details are not described herein again.
  • the server After receiving the login request message, the server first verifies whether the user is a valid user. If the user is an invalid user (for example, the user account does not exist or the password is incorrect), the server can directly disconnect the first network connection established by the terminal through the mobile data network. And disconnecting the second network connection established by the terminal through the WLAN, the server may also send the invalid user indication information to the terminal before disconnecting the network connection. If the first network connection or the second network connection is a TCP connection, the server initiates the TCP connection to be closed. If the first network connection or the second network connection is a UDP connection, the server disconnects the UDP connection by itself. After receiving the TCP connection close request of the server, the terminal disconnects the TCP connection, or the terminal disconnects the UDP connection after the login request message expires. The terminal may receive invalid user indication information sent by the server before disconnecting.
  • the server After receiving the TCP connection close request of the server, the terminal disconnects the TCP connection, or the terminal disconnects the UDP connection after the login request message expires
  • the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request.
  • the data packet and the second request data packet respectively send the first request data packet and the second request data packet to the server through two connections, and may disconnect the network connection before receiving the login response message sent by the server, thereby achieving secure login. the goal of.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • FIG. 5 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 4 of the present invention. Wherein, as shown in FIG. 5, the method may include the following steps:
  • the terminal After receiving the server login command from the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network.
  • the server establishes a first network connection and establishes a second network connection with the server through the wireless local area network WLAN.
  • the support terminal simultaneously performs network registration and authentication in the 3GPP network and the non-3GPP network, and the terminal can simultaneously perform IP stream transmission through the 3GPP network and the WLAN.
  • the WLAN user can be authenticated and authenticated by the 3GPP network, which can also be connected to the packet data gateway of the 3GPP network.
  • the current solution of the 3GPP network and the non-3GPP network integration introduced in the 3GPP system does not support establishing a network connection with the same server through the 3GPP network and the non-3GPP network.
  • the server establishes a first network connection with the terminal through the mobile data network, and the terminal establishes a first network connection with the terminal through the mobile data network after the terminal successfully registers in the mobile data network; the server establishes a second network connection with the terminal through the WLAN, including After the WLAN security certification
  • the second network connection is established between the WLAN and the terminal, or the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.
  • the first network connection and the second network connection may be a TCP/IP connection or a UDP/IP connection, identified by a transmission port number, a receiving port number, a source IP address, and a destination IP address.
  • the first network connection can be established with the application server through the mobile data network. Therefore, after the terminal is authenticated by the WLAN, the server can establish a second network connection with the terminal through the WLAN.
  • the packet network registration can be initiated.
  • the network registration process includes an authentication process, a security activation process, and establishing a packet data network connection, etc., when the terminal completes the packet network registration in the LTE network.
  • the first network connection (TCP or UDP connection) can be established with the application server.
  • the terminal user in the WLAN first needs to pass the local security authentication of the WLAN, and then establish a second network connection (TCP or UDP connection) with the application server through the WLAN; in some scenarios where the 3GPP network and the WLAN network are fused, the WLAN
  • the terminal in the terminal performs security authentication through the 3GPP network server, and the terminal that is securely authenticated by the 3GPP network can establish a second network connection with the application server through the WLAN.
  • the first request data packet sent by the terminal is received from the first network connection, and the second request data packet sent by the terminal is received from the second network connection, and the first request data packet and the second request data packet are combined to obtain the terminal.
  • the terminal may generate a server login request message of the user according to the server login instruction, where the user's server login request message includes the user's Account and password information. Since the first network connection and the second network connection are different transmission connections, the data transmitted through the first network connection and through the second network connection may pass through different network devices, in order to prevent the user's login request message from being attacked by the network attacker on the network.
  • the device intercepts the user, and the terminal can split the user's login request message into two data packets, which are respectively sent on the established first network connection and the second network connection, specifically, the user's server.
  • the login request message is split into a first request packet and a second request packet, and the first request packet is sent to the server on the first network connection, and the second request packet is sent to the server on the second network connection.
  • the server Receiving, by the server, the first request packet sent by the terminal from the first network connection, from the second After receiving the second request data packet sent by the terminal on the network connection, the first request data packet and the second request data packet are combined to obtain a login request message sent by the terminal.
  • the server When the server combines the first request packet and the second request packet to obtain the login request message sent by the terminal, first verify whether the user is a valid user, and if it is an invalid user (for example, the user account does not exist or the password is incorrect), The server may directly disconnect the first network connection established by the terminal through the mobile data network and disconnect the second network connection established by the terminal through the WLAN; the server may also initiate the disconnection of the first network connection or initiate the second due to other abnormal reasons. If the network connection is disconnected, the login response message may not be sent to the terminal and the first network connection or the second network connection may be disconnected by itself. At this time, as long as one of the two network connections is disconnected, the user login is ended.
  • the login response message including the login success message or the login failure message, may be generated according to the user information or other conditions, such as the total number of connections, processing capacity, or network speed of the server, for example, if the user has a lower priority. And if the total number of connections to the server is large, the server may generate a login failure message for the user.
  • the server splits the generated login response message into a first response data packet and a second response data packet, respectively, in the first
  • the first response data packet is sent to the terminal on the network connection
  • the second response data packet is sent to the terminal on the second network connection.
  • the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.
  • the server disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN.
  • the disconnection may be a disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the service or the disconnection of the UDP connection by the server, or the disconnection initiated by the terminal after receiving the login failure message, such as the terminal initiated.
  • the closing of the TCP connection; the disconnection may be disconnected immediately after the server first sends the login failure response message, or Therefore, the disconnection after the user login failure message is sent each time the server receives the multiple user login request message.
  • the server disconnects the first network connection established with the server through the mobile data network, or disconnects the second network connection established with the server through the WLAN, or maintains the first network connection and the second The network connection is not broken.
  • the login success message sent by the server may be the login success message of one of the multiple login attempts.
  • the disconnection may be a disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the server, or the disconnection initiated by the terminal after receiving the login failure message, such as the terminal initiated. The closing of the TCP connection.
  • the technical solution provided by the embodiment of the present invention enables the server to establish a first network connection with the terminal through the mobile data network, establish a second network connection with the terminal through the WLAN, and the server receives the first request data packet and the second through the two network connections respectively.
  • the second request data packet is merged into a login request message sent by the terminal to the server, and the login response request message sent by the server to the terminal is split into a first response data packet and a second response data packet, which are respectively sent to the terminal through two network connections.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • the terminal After receiving the server login command from the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network.
  • the server establishes a first network connection and establishes a second network connection with the server through the wireless local area network WLAN.
  • the support terminal establishes two packet data network connections through the 3GPP network and the WLAN, and simultaneously performs IP stream transmission through the 3GPP network and the WLAN, and the GPP user can be provided by the 3GPP network.
  • QoS and authentication, WLAN can also be connected to the packet data gateway of the 3GPP network.
  • step S501 For the detailed description of the step S501, refer to step S401 of the above embodiment 4, and details are not described herein again.
  • S502. Receive a first request data packet sent by the terminal from the first network connection, and connect from the second network.
  • the second request data packet sent by the receiving terminal is connected, and the first request data packet and the second request data packet are combined to obtain a login request message sent by the terminal.
  • step S502 For the detailed description of the step S502, refer to step S402 of the foregoing embodiment 4, and details are not described herein again.
  • S503. Determine, according to the login request message, whether the user is an invalid user.
  • the login request message sent by the terminal is obtained, where the login request message includes information such as the user's account and password, and the user is first determined to be a valid user according to the login request message. .
  • the server can directly disconnect the first network connection established by the terminal through the mobile data network and disconnect the second network connection established by the terminal through the WLAN, and the server can also Disconnect the network connection after sending invalid user indication information to the terminal.
  • the first network connection or the second network connection is a TCP connection
  • the server initiates the TCP connection to be closed.
  • the first network connection or the second network connection is a UDP connection
  • the server disconnects the UDP connection by itself.
  • the terminal disconnects the TCP connection, or the terminal disconnects the UDP connection after the time after the login request message is sent to the server exceeds the specified time threshold, and the terminal may receive the connection before disconnecting. Invalid user indication sent by the server.
  • the server may generate a login response message according to user information or other conditions, such as the total number of connections, processing capabilities, or network speed of the server.
  • the login response message includes a login success message or a login failure message. For example, if the user has a lower priority and the total number of connections of the server is large, the server may generate a login failure message for the user.
  • the server splits the generated login response message into the first response data packet and the second. And responding to the data packet, respectively sending a first response data packet to the terminal on the first network connection, and sending the second response data packet to the terminal on the second network connection.
  • the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.
  • the server When the server sends the first response data packet to the terminal on the first network connection, and after transmitting the second response data packet to the terminal on the second network connection, it is determined whether the login response message is a login success message or a login failure message.
  • the login response message is a login failure message
  • the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login.
  • the server disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login.
  • the disconnection may be disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the terminal after receiving the login failure message sent by the server.
  • the disconnection of the TCP connection initiated by the terminal may be disconnected immediately after the server sends the login failure response message, or may be the login failure message sent by the server to the terminal each time the terminal attempts to log in multiple times. Disconnected.
  • the login response message is a login success message
  • the user logs in successfully, disconnects the first network connection established by the mobile data network with the terminal, or disconnects the second network established by the WLAN and the terminal to complete the user login.
  • the server disconnects the first network connection established with the terminal through the mobile data network, or disconnects the second network connection established with the terminal through the WLAN, or remains the first The network connection and the second network connection are not disconnected.
  • the service data can be transmitted through the disconnected network connection.
  • the login success message sent by the server may be the login success message sent by the server in one of the multiple login attempts of the terminal.
  • the disconnection may be disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the server, or the terminal may receive the login loss.
  • the connection initiated after the failure message is disconnected, such as the shutdown of the TCP connection initiated by the terminal.
  • the technical solution provided by the embodiment of the present invention enables the server to establish a first network connection with the terminal through the mobile data network, establish a second network connection with the terminal through the WLAN, and the server receives the first request data packet and the second through the two network connections respectively.
  • the second request data packet is merged into a login request message sent by the terminal, and the server splits the login response request message sent to the terminal into a first response data packet and a second response data packet, which are respectively sent to the terminal through two network connections, according to Whether the invalid user and the user login successfully disconnected or maintain the network connection, thereby achieving the purpose of user secure login.
  • the solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • the sixth embodiment of the present invention provides a terminal device for implementing a dual-connection secure communication method proposed by the present invention.
  • the device a00 may include a receiving unit a10, a processing unit a20, and a transmitting unit a30.
  • the receiving unit a10 is configured to receive a server login instruction sent by the user;
  • the processing unit a20 is configured to establish a first network connection with the server through the mobile data network, and establish a second network connection with the server by using the WLAN;
  • the processing unit a20 is further configured to: generate a login request message sent to the server according to the server login instruction received by the receiving unit a10, and split the login request message into the first request data packet and the second request data packet;
  • the sending unit a30 is configured to send a first request data packet to the server on the first network connection, and send a second request data packet to the server on the second network connection;
  • the receiving unit a10 is further configured to: receive a first response data packet sent by the server from the first network connection, and receive a second response data packet sent by the server from the second network connection;
  • the processing unit a20 is further configured to combine the first response data packet and the second response data packet received by the receiving unit into a login response message sent by the server, to complete the user login.
  • processing unit a20 is further configured to:
  • the login response message sent by the server received by the receiving unit a10 is a login failure message
  • the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the server established with the server through the WLAN.
  • the login response message sent by the server received by the receiving unit a10 is a login success message
  • the user successfully logs in, disconnects the first network connection established with the server through the mobile data network, to complete the user login; or
  • the login response message sent by the server received by the receiving unit a10 is a login success message
  • the user logs in successfully, and disconnects the second network connection established with the server through the WLAN to complete the user login.
  • the processing unit a20 is specifically configured to:
  • the security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.
  • the technical solution provided by the embodiment of the present invention can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • Embodiment 6 of the present invention provides another terminal device for implementing a dual connectivity secure communication method proposed by the present invention.
  • the device b00 includes a processor b10, a memory b20, a bus system b30, a receiver b40, and a transmitter b50.
  • the processor b10, the memory b20, the receiver b40 and the transmitter b50 are connected by a bus system b30 for storing instructions for executing the instructions stored in the memory b20 to control the receiver b40 to receive.
  • Signal, and control transmitter b50 to send a signal to complete the steps in the above mobile payment method.
  • the receiver b40 and the transmitter b50 may be the same or different physical entities.
  • the method steps performed by the device b00 may at least include:
  • Embodiment 7 of the present invention provides a server device for implementing a dual-connection secure communication method proposed by the present invention.
  • the device c00 may include a processing unit c10, a receiving unit c20, and a transmitting unit c30.
  • the processing unit c10 is configured to establish a first network connection with the terminal by using the mobile data network, and establish a second network connection with the terminal by using the WLAN;
  • the receiving unit c20 is configured to receive, by the first network connection, the first request data packet sent by the terminal, and receive the second request data packet sent by the terminal from the second network connection;
  • the processing unit c10 is further configured to: merge the first request data packet and the second request data packet received by the receiving unit c20 to obtain a login request message sent by the terminal; and generate a login response message sent to the terminal according to the login request message, Splitting the login response message into a first response data packet and a second response data packet;
  • the sending unit c30 is configured to send a first response data packet to the terminal on the first network connection, and send a second response data packet to the terminal on the second network connection to complete the user login.
  • the login response message includes a login success message or a login failure message.
  • the processing unit c10 is further configured to:
  • the login response message is a login failure message
  • the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login;
  • the login response message is a login success message
  • the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.
  • the technical solution provided by the embodiment of the present invention can prevent a network attacker from intercepting a complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.
  • Embodiment 7 of the present invention provides another server device for implementing a dual connectivity secure communication method proposed by the present invention.
  • the device d00 includes a processor d10, a memory d20, Bus system d30, receiver d40 and transmitter d50.
  • the processor d10, the memory d20, the receiver d40 and the transmitter d50 are connected by a bus system d30 for storing instructions, and the processor d10 is configured to execute the instructions stored in the memory d20 to control the receiver d40 to receive Signal, and control the transmitter d50 to send a signal to complete the steps in the above mobile payment method.
  • the receiver d40 and the transmitter d50 may be the same or different physical entities.
  • the method steps performed by the device d00 may at least include:
  • aspects of the present invention, or possible implementations of various aspects may be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
  • the computer readable medium can be a computer readable data medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
  • the processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step of the flowchart, or a combination of steps; A device that functions as specified in each block, or combination of blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's local computer and partly on the remote computer, or entirely on the remote computer or server. carried out. It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the functional units is only a logical function division.
  • there may be other division manners for example, multiple units may be combined into the same subsystem.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a dual-connection security communication method and apparatus. The method comprises: establishing a first network connection with a server by means of a mobile data network, and establishing a second network connection with the server by means of a WLAN; splitting a login request message sent, by a terminal, to the server into a first request data packet and a second request data packet; sending the first request data packet on the first network connection, and sending the second request data packet on the second network connection; and receiving a first answer data packet from the first network connection, receiving a second answer data packet from the second network connection, and combining the first answer data packet and the second answer data packet into a login answer message sent, by the server, to the terminal, so as to complete user login. The present solution prevents a network attacker from intercepting a complete communication message of a user in a network, thereby improving the security of login modes of the user and a server.

Description

一种双连接安全通讯的方法及装置Method and device for double connection safety communication

本申请要求于2015年07月22日提交中国专利局,申请号为201510434054.3、发明名称为“一种双连接安全通讯的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510434054.3, entitled "A Method and Apparatus for Dual-Connected Secure Communication", filed on July 22, 2015, the entire contents of which are incorporated herein by reference. In this application.

技术领域Technical field

本发明涉及通信技术领域,尤其涉及一种双连接安全通讯的方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for dual connectivity secure communication.

背景技术Background technique

随着移动设备的普及应用,用户通过移动终端登录网上服务器以获得网络服务已经成为人们生活中必不可少的活动,因此网络的安全问题也越来越受到人们的重视。目前有很多黑客利用网络软件的漏洞,通过对网关、路由器等网络设备的攻击、信息截获等手段获取用户的账号和密码信息,以谋取利益。用户的信息遭到泄露和篡改,侵害了用户的权益,严重的情况下,可能使用户受到经济损失。With the popularization and application of mobile devices, users logging in to online servers through mobile terminals to obtain network services have become an indispensable activity in people's lives. Therefore, network security issues have received more and more attention. At present, many hackers use the loopholes of network software to obtain user account and password information through attacks on network devices such as gateways and routers, and information interception, in order to obtain benefits. The user's information has been leaked and tampered with, infringing on the user's rights and interests, and in severe cases, the user may suffer economic losses.

目前提高网络安全性的方法主要是通过软件方式,如何通过提供可靠的通信方式提高用户登录服务器的安全性目前属于一项空白。At present, the method of improving network security is mainly through software, and how to improve the security of the user login server by providing reliable communication is currently a blank.

发明内容Summary of the invention

本发明实施例公开了一种双连接安全通讯的方法及装置,将用户与服务器的通信消息拆分为不同的数据包,通过终端与服务器之间建立的两条网络连接的方式分别在两条连接上传输不同的数据包,同时将从两条连接上接收到的不同数据包合并为通信消息以完成安全通讯,可以避免网络攻击者在同一网络连接上截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。The embodiment of the invention discloses a method and a device for dual-connection secure communication, which divides the communication message of the user and the server into different data packets, and the two network connections established between the terminal and the server are respectively in two Different data packets are transmitted on the connection, and different data packets received from the two connections are combined into a communication message to complete the secure communication, which can prevent the network attacker from intercepting the complete communication message of the user on the same network connection, thereby enhancing the user. Security with the server login method.

本发明实施例第一方面提供了一种双连接安全通讯的方法,用于终端设备,包括:The first aspect of the embodiments of the present invention provides a method for dual-connection secure communication, which is used in a terminal device, and includes:

当接收到用户发送的服务器登录指令后,通过移动数据网络与服务器建立第一网络连接,通过无线局域网(WLAN,Wireless Local Access Network)与 服务器建立第二网络连接;After receiving the server login command sent by the user, establishing a first network connection with the server through the mobile data network, through a wireless local area network (WLAN, Wireless Local Access Network) The server establishes a second network connection;

根据服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包;Generating a login request message sent to the server according to the server login instruction, splitting the login request message into the first request data packet and the second request data packet, and transmitting the first request data packet to the server on the first network connection, in the second Sending a second request packet to the server on the network connection;

从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包,将第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息,以完成用户登录。Receiving, by the first network connection, the first response data packet sent by the server, receiving the second response data packet sent by the server from the second network connection, and combining the first response data packet and the second response data packet into the login sent by the server. Answer the message to complete the user login.

结合第一方面,在第一种可能的实现方式中,登录应答消息包括登录成功消息或登录失败消息;With reference to the first aspect, in a first possible implementation manner, the login response message includes a login success message or a login failure message;

在将第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息之后,该方法还包括:After the first response data packet and the second response data packet are combined into a login response message sent by the server, the method further includes:

若服务器发送的登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接,以结束用户登录;If the login response message sent by the server is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN to end the user login. ;

若服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与服务器建立的第一网络连接,以完成用户登录;或者,If the login response message sent by the server is a login success message, the user logs in successfully, and disconnects the first network connection established with the server through the mobile data network to complete the user login; or

若服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开通过WLAN与服务器建立的第二网络连接,以完成用户登录。If the login response message sent by the server is a login success message, the user logs in successfully, and disconnects the second network established by the WLAN with the server to complete the user login.

结合第一方面,在第二种可能的实现方式中,在通过移动数据网络与服务器建立第一网络连接之前,该方法还包括:In conjunction with the first aspect, in a second possible implementation, before the first network connection is established with the server by using the mobile data network, the method further includes:

在移动数据网络中发起网络注册,若网络注册成功,则通过移动数据网络与服务器建立第一网络连接;Initiating network registration in the mobile data network, and if the network registration is successful, establishing a first network connection with the server through the mobile data network;

在通过WLAN与服务器建立第二网络连接之前,该方法还包括:Before establishing a second network connection with the server through the WLAN, the method further includes:

在WLAN中发起安全认证,若安全认证成功,则通过WLAN与服务器建立第二网络连接;或者,在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与服务器建立第二网络连接。The security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.

本发明实施例第二方面提供了一种双连接安全通讯的方法,用于服务器,包括:A second aspect of the embodiments of the present invention provides a method for dual-connection secure communication, which is used in a server, and includes:

通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第 二网络连接;Establishing a first network connection with the terminal through the mobile data network, establishing a first connection through the WLAN and the terminal Two network connections;

从第一网络连接上接收终端发送的第一请求数据包,从第二网络连接上接收终端发送的第二请求数据包,合并第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息;Receiving, by the first network connection, the first request data packet sent by the terminal, receiving the second request data packet sent by the terminal from the second network connection, and combining the first request data packet and the second request data packet, to obtain the sent by the terminal. Login request message;

根据登录请求消息生成向终端发送的登录应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包,在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包,以完成用户登录。Generating a login response message sent to the terminal according to the login request message, splitting the login response message into the first response data packet and the second response data packet, and transmitting the first response data packet to the terminal on the first network connection, in the second The second response packet is sent to the terminal on the network connection to complete the user login.

结合第二方面,在第一种可能的实现方式中,登录应答消息包括登录成功消息或登录失败消息;With reference to the second aspect, in a first possible implementation manner, the login response message includes a login success message or a login failure message;

在向终端发送第一应答数据包和第二应答数据包的步骤之后,该方法还包括:After the step of sending the first response data packet and the second response data packet to the terminal, the method further includes:

若登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录;If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;

若登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与终端建立的第一网络连接,以完成用户登录;或者,If the login response message is a login success message, the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login; or

若登录应答消息为登录成功消息,则用户登录成功,断开通过WLAN与终端建立的第二网络连接,以完成用户登录。If the login response message is a login success message, the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.

本发明实施例第三方面提供了一种终端设备,包括:A third aspect of the embodiments of the present invention provides a terminal device, including:

接收单元,用于接收用户发送的服务器登录指令;a receiving unit, configured to receive a server login instruction sent by the user;

处理单元,用于通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;a processing unit, configured to establish a first network connection with the server through the mobile data network, and establish a second network connection with the server through the WLAN;

处理单元还用于,根据接收单元收到的服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包;The processing unit is further configured to: generate a login request message sent to the server according to the server login instruction received by the receiving unit, and split the login request message into the first request data packet and the second request data packet;

发送单元,用于在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包;a sending unit, configured to send a first request data packet to the server on the first network connection, and send a second request data packet to the server on the second network connection;

接收单元还用于,从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包;The receiving unit is further configured to: receive, by the first network connection, a first response data packet sent by the server, and receive, by the second network connection, a second response data packet sent by the server;

处理单元还用于,将接收单元收到的第一应答数据包和第二应答数据包合 并为服务器发送的登录应答消息,以完成用户登录。The processing unit is further configured to: encapsulate the first response data packet and the second response data received by the receiving unit And the login response message sent to the server to complete the user login.

结合第三方面,在第一种可能的实现方式中,处理单元还用于:In combination with the third aspect, in a first possible implementation, the processing unit is further configured to:

若接收单元收到的服务器发送的登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接,以结束用户登录;If the login response message sent by the server received by the receiving unit is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN. To end user login;

若接收单元收到的服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与服务器建立的第一网络连接,以完成用户登录;或者,If the login response message sent by the server received by the receiving unit is a login success message, the user logs in successfully, and disconnects the first network connection established with the server through the mobile data network to complete the user login; or

若接收单元收到的服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开通过WLAN与服务器建立的第二网络连接,以完成用户登录。If the login response message sent by the server received by the receiving unit is a login success message, the user logs in successfully, and disconnects the second network established by the WLAN and the server to complete the user login.

结合第三方面,在第二种可能的实现方式中,处理单元具体用于:In combination with the third aspect, in a second possible implementation manner, the processing unit is specifically configured to:

在移动数据网络中发起网络注册,若网络注册成功,则通过移动数据网络与服务器建立第一网络连接;Initiating network registration in the mobile data network, and if the network registration is successful, establishing a first network connection with the server through the mobile data network;

在WLAN中发起安全认证,若安全认证成功,则通过WLAN与服务器建立第二网络连接;或者,在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与服务器建立第二网络连接。The security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.

本发明实施例第四方面提供了一种服务器设备,包括:A fourth aspect of the embodiments of the present invention provides a server device, including:

处理单元,用于通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接;a processing unit, configured to establish a first network connection with the terminal through the mobile data network, and establish a second network connection with the terminal by using the WLAN;

接收单元,用于从第一网络连接上接收终端发送的第一请求数据包,从第二网络连接上接收终端发送的第二请求数据包;a receiving unit, configured to receive a first request data packet sent by the terminal from the first network connection, and receive a second request data packet sent by the terminal from the second network connection;

处理单元还用于,合并接收单元收到的第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息;并且,根据登录请求消息生成向终端发送的登录应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包;The processing unit is further configured to: merge the first request data packet and the second request data packet received by the receiving unit to obtain a login request message sent by the terminal; and generate a login response message sent to the terminal according to the login request message, and log in The response message is split into a first response data packet and a second response data packet;

发送单元,用于在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包,以完成用户登录。And a sending unit, configured to send a first response data packet to the terminal on the first network connection, and send a second response data packet to the terminal on the second network connection, to complete the user login.

结合第四方面,在第一种可能的实现方式中,登录应答消息包括登录成功消息或登录失败消息; With reference to the fourth aspect, in a first possible implementation manner, the login response message includes a login success message or a login failure message;

处理单元还用于:The processing unit is also used to:

若登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录;If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;

若登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与终端建立的第一网络连接,以完成用户登录;或者,If the login response message is a login success message, the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login; or

若登录应答消息为登录成功消息,则用户登录成功,断开通过WLAN与终端建立的第二网络连接,以完成用户登录。If the login response message is a login success message, the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.

本发明实施例提供的技术方案能够通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;将用户发送的服务器登录请求消息拆分为第一请求数据包和第二请求数据包,将第一请求数据包和第二请求数据包分别通过两个网络连接发送到服务器,再分别通过两个网络连接接收第一应答数据包和第二应答数据包并合并为服务器发送的登陆应答消息,以完成用户到服务器的登录。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。The technical solution provided by the embodiment of the present invention is capable of establishing a first network connection with a server through a mobile data network, establishing a second network connection with the server through the WLAN, and splitting the server login request message sent by the user into the first request data packet and the second Requesting a data packet, sending the first request data packet and the second request data packet to the server through two network connections, and respectively receiving the first response data packet and the second response data packet through two network connections and merging and transmitting to the server Login response message to complete user login to the server. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

附图说明DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in 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. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.

图1是本发明实施例一提供的一种双连接安全通讯的网络示意图;1 is a schematic diagram of a network for dual connectivity secure communication according to Embodiment 1 of the present invention;

图2是本发明实施例一提供的一种双连接安全通讯的方法的流程示意图;2 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 1 of the present invention;

图3是本发明实施例二提供的一种双连接安全通讯的方法的流程示意图;3 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 2 of the present invention;

图4是本发明实施例三提供的一种双连接安全通讯的方法的流程示意图;4 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 3 of the present invention;

图5是本发明实施例四提供的一种双连接安全通讯的方法的流程示意图;FIG. 5 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 4 of the present invention; FIG.

图6是本发明实施例五提供的一种双连接安全通讯的方法的流程示意图; 6 is a schematic flowchart of a method for dual connectivity secure communication according to Embodiment 5 of the present invention;

图7是本发明实施例六提供的一种终端设备的结构示意图;FIG. 7 is a schematic structural diagram of a terminal device according to Embodiment 6 of the present invention; FIG.

图8是本发明实施例六提供的另一种终端设备的结构示意图;FIG. 8 is a schematic structural diagram of another terminal device according to Embodiment 6 of the present invention; FIG.

图9是本发明实施例七提供的一种服务器设备的结构示意图;9 is a schematic structural diagram of a server device according to Embodiment 7 of the present invention;

图10是本发明实施例七提供的另一种服务器设备的结构示意图。FIG. 10 is a schematic structural diagram of another server device according to Embodiment 7 of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

以下分别对每个实施例进行说明。Each embodiment will be described below separately.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.

本领域的研究人员在研发过程中发现,在目前的网络通讯中,移动终端都是通过一条网络连接与服务器进行通讯,例如通过WLAN或通过移动数据网络与服务器进行通讯,网络攻击者较容易在网络设备上通过截获用户与服务器之间的通讯消息对用户与服务器之间的通讯消息进行篡改或伪造,从而使网络通信的安全性降低。In the process of research and development, researchers in the field found that in the current network communication, the mobile terminal communicates with the server through a network connection, for example, through WLAN or through a mobile data network to communicate with the server, the network attacker is easier to The network device tampers or forges the communication message between the user and the server by intercepting the communication message between the user and the server, thereby reducing the security of the network communication.

本发明实施例提供了一种双连接安全通讯的方法及装置,用于实现移动终端到应用服务器的安全登录,避免网络攻击者在同一个网络中窃取用户的完整通信消息,从而泄露用户信息或篡改用户信息,侵害用户的权益。The embodiment of the invention provides a method and a device for dual-connection secure communication, which are used for implementing secure login of a mobile terminal to an application server, so as to prevent an attacker from stealing a complete communication message of the user in the same network, thereby leaking user information or Tampering with user information and infringing on the rights of users.

本申请将围绕可包括多个设备、组件、模块等的系统来呈现各个方面、实施例或特征。应当理解和明白的是,各个系统可以包括另外的设备、组件、模块等,并且/或者可以并不包括结合附图讨论的所有设备、组件、模块等。此 外,还可以使用这些方案的组合。The application will present various aspects, embodiments, or features in a system that can include multiple devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and/or may not include all of the devices, components, modules, etc. discussed in connection with the figures. This In addition, a combination of these schemes can also be used.

本发明实施例中,“应用服务器”和“服务器”,两者可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。In the embodiment of the present invention, the "application server" and the "server" can be mixed. It should be noted that the meanings to be expressed are consistent when the difference is not emphasized.

本发明实施例描述的网络架构以及业务场景是为了更加清楚的说明本发明实施例的技术方案,并不构成对于本发明实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本发明实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and the service scenario described in the embodiments of the present invention are used to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation of the technical solutions provided by the embodiments of the present invention. The technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.

本发明实施例依托使用3GPP网络与WLAN网络的场景进行说明,应当指出的是,本发明实施例中的方案还可以应用于使用其他移动通信网络与WLAN的场景,例如3GPP2的HRPD和IEEE的WiMAX,相应的名称也可以用其他无线通信网络中的对应功能的名称进行替代。The embodiment of the present invention is based on the scenario of using a 3GPP network and a WLAN network. It should be noted that the solution in the embodiment of the present invention can also be applied to scenarios using other mobile communication networks and WLANs, such as HRPD of 3GPP2 and WiMAX of IEEE. The corresponding name can also be replaced by the name of the corresponding function in other wireless communication networks.

首先参见图2,图2为本发明实施例一提供的一种双连接安全通讯的方法的流程示意图。本发明实施例一提供的一种双连接安全通讯的方法,用于移动终端设备,移动终端设备支持移动数据网络和WLAN传输,可以包括以下步骤:Referring first to FIG. 2, FIG. 2 is a schematic flowchart diagram of a method for dual-connection secure communication according to Embodiment 1 of the present invention. The method for dual-connection secure communication provided by the first embodiment of the present invention is used for a mobile terminal device, and the mobile terminal device supports the mobile data network and the WLAN transmission, and may include the following steps:

S101、当接收到用户发送的服务器登录指令后,通过移动数据网络与服务器建立第一网络连接,通过无线局域网(WLAN,Wireless Local Area Network)与服务器建立第二网络连接。S101. After receiving the server login command sent by the user, establish a first network connection with the server through the mobile data network, and establish a second network connection with the server through a wireless local area network (WLAN).

终端在接收到用户发送的服务器登录指令后,可以分别通过移动数据网络,例如3GPP网络(WCDMA,LTE或TD-SCDMA),和WLAN建立两条连接(TCP或UDP连接),即通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接。如图1所示,终端分别通过移动数据网络和WLAN与服务器建立第一网络连接和第二网络连接,终端中设有移动数据网络收发器和移动网络协议栈软件用于处理第一网络连接,并且设有WLAN收发器和WLAN协议栈软件用于处理第二网络连接。After receiving the server login command sent by the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. Establish a first network connection with the server, and establish a second network connection with the server through the WLAN. As shown in FIG. 1, the terminal establishes a first network connection and a second network connection with the server through the mobile data network and the WLAN, and the mobile data network transceiver and the mobile network protocol stack software are disposed in the terminal for processing the first network connection. A WLAN transceiver and WLAN protocol stack software are provided for processing the second network connection.

在3GPP组织提出的3GPP网络与非3GPP网络(包括WLAN)融合的技术中,支持终端同时在3GPP网络和非3GPP网络中进行网络注册和认证,终端可同时通过3GPP网络和WLAN进行IP流传输,可以由3GPP网络提供对WLAN用户的鉴权和认证,WLAN也可以连接到3GPP网络的分组数据网关。 但是目前在3GPP系统中引入的3GPP网络与非3GPP网络融合的技术方案中不支持通过3GPP网络和非3GPP网络与同一个服务器建立网络连接。In the technology of the 3GPP network and the non-3GPP network (including WLAN) proposed by the 3GPP organization, the support terminal simultaneously performs network registration and authentication in the 3GPP network and the non-3GPP network, and the terminal can simultaneously perform IP stream transmission through the 3GPP network and the WLAN. The WLAN user can be authenticated and authenticated by the 3GPP network, which can also be connected to the packet data gateway of the 3GPP network. However, the current solution of the 3GPP network and the non-3GPP network integration introduced in the 3GPP system does not support establishing a network connection with the same server through the 3GPP network and the non-3GPP network.

通过移动数据网络与应用服务器建立第一网络连接,包括在移动数据网络中网络注册成功之后通过移动数据网络与应用服务器建立第一网络连接;通过WLAN与服务器建立第二网络连接,包括在通过WLAN的安全认证之后通过WLAN与服务器建立第二网络连接,或者在通过移动数据网络的安全认证之后通过WLAN与服务器建立第二网络连接。第一网络连接和第二网络连接可以是TCP/IP连接或UDP/IP连接,用发送端口号、接收端口号、源IP地址和目标IP地址标识。Establishing a first network connection with the application server through the mobile data network, including establishing a first network connection with the application server through the mobile data network after the network registration is successful in the mobile data network; establishing a second network connection with the server through the WLAN, including through the WLAN After the security authentication, a second network connection is established with the server via the WLAN, or a second network connection is established with the server via the WLAN after the security authentication by the mobile data network. The first network connection and the second network connection may be a TCP/IP connection or a UDP/IP connection, identified by a transmission port number, a receiving port number, a source IP address, and a destination IP address.

在具体实现中,终端在移动数据网络中注册成功后,才能通过移动数据网络与应用服务器建立第一网络连接,终端通过WLAN的安全认证之后,才能通过WLAN与服务器建立第二网络连接。举例来说,在3GPP中系统中,终端开机后即可发起分组网络注册,网络注册的过程包括鉴权过程、安全激活过程和建立分组数据网络连接等,当终端在LTE网络中完成分组网络注册后才可以与应用服务器建立第一网络连接(TCP或UDP连接)。又举例来说,WLAN中的终端用户首先要通过WLAN的本地安全认证,之后通过WLAN与应用服务器建立第二网络连接(TCP或UDP连接);在一些3GPP网络和WLAN网络融合的场景中,WLAN中的终端通过3GPP网络服务器进行安全认证,通过3GPP网络的安全认证的终端才可以通过WLAN与应用服务器建立第二网络连接。In a specific implementation, after the terminal is successfully registered in the mobile data network, the first network connection can be established with the application server through the mobile data network, and the terminal can establish a second network connection with the server through the WLAN after the terminal is authenticated by the WLAN. For example, in the 3GPP system, after the terminal is powered on, the packet network registration can be initiated. The network registration process includes an authentication process, a security activation process, and establishing a packet data network connection, etc., when the terminal completes the packet network registration in the LTE network. The first network connection (TCP or UDP connection) can be established with the application server. For example, the terminal user in the WLAN first needs to pass the local security authentication of the WLAN, and then establish a second network connection (TCP or UDP connection) with the application server through the WLAN; in some scenarios where the 3GPP network and the WLAN network are fused, the WLAN The terminal in the terminal performs security authentication through the 3GPP network server, and the terminal that is securely authenticated by the 3GPP network can establish a second network connection with the application server through the WLAN.

S102、根据服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包。S102. Generate a login request message sent to the server according to the server login instruction, split the login request message into the first request data packet and the second request data packet, and send the first request data packet to the server on the first network connection, where A second request packet is sent to the server on the second network connection.

在通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接之后,终端可以根据用户的服务器登录指令,生成用户的服务器登录请求消息,用户的服务器登录请求消息中包含用户的账号和密码信息。由于第一网络连接和第二网络连接是不同的传输连接,通过第一网络连接和通过第二网络连接传输的数据可经过不同的网络设备,为了避免用户的登录请求消息被网络攻击者在网络设备(如网关或路由器)处截获,终端可以将用 户的登录请求消息拆分成两个数据包,分别在建立的第一网络连接和第二网络连接上发送,具体来说,将用户的服务器登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包。After establishing a first network connection with the server through the mobile data network and establishing a second network connection with the server through the WLAN, the terminal may generate a server login request message of the user according to the server login instruction of the user, and the user login request message includes the user. Account and password information. Since the first network connection and the second network connection are different transmission connections, the data transmitted through the first network connection and through the second network connection may pass through different network devices, in order to prevent the user's login request message from being attacked by the network attacker on the network. Intercepted by a device (such as a gateway or router), the terminal can use The user's login request message is split into two data packets, which are respectively sent on the established first network connection and the second network connection. Specifically, the user's server login request message is split into the first request data packet and the first The second request packet transmits a first request packet to the server on the first network connection and a second request packet to the server on the second network connection.

S103、从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包,将第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息,以完成用户登录。S103. Receive a first response data packet sent by the server from the first network connection, receive a second response data packet sent by the server from the second network connection, and combine the first response data packet and the second response data packet into a server. The login response message to complete the user login.

当服务器从第一网络连接上接收到终端发送的第一请求数据包,从第二网络连接上接收到终端发送的第二请求数据包之后,将第一请求数据包和第二请求数据包进行合并,以得到终端发送的登录请求消息。Receiving, by the server, the first request data packet sent by the terminal from the first network connection, and after receiving the second request data packet sent by the terminal from the second network connection, performing the first request data packet and the second request data packet Merge to get the login request message sent by the terminal.

服务器根据终端发送的登录请求消息生成的登录应答消息包括登录成功消息和登录失败消息。当服务器接收到登录请求消息后,先验证该用户是否为有效用户,若为无效用户(例如用户账号不存在或密码错误),服务器可直接断开与终端通过移动数据网络建立的第一网络连接和断开与终端通过WLAN建立的第二网络连接。当终端接收到服务器发送的第一网络连接断开请求时,或在终端发送第一请求数据包和第二请求数据包之后的时间超过指定时间后,断开第一网路连接,当终端接收到服务器发送的第二网络连接断开请求时,或在发送第一请求数据包和第二请求数据包之后的时间超过指定时间后,断开第二网路连接;只要断开两条网络连接中的一条,即结束用户登录。若服务器验证用户为有效用户,可根据用户信息或其他条件,如服务器的连接总数、处理能力或网速,来生成登录应答消息,包括登录成功消息或登录失败消息,例如,若用户优先级较低并且服务器的连接总数较多的情况下服务器可能为用户生成登录失败消息。The login response message generated by the server according to the login request message sent by the terminal includes a login success message and a login failure message. After receiving the login request message, the server first verifies whether the user is a valid user. If the user is an invalid user (for example, the user account does not exist or the password is incorrect), the server can directly disconnect the first network connection established by the terminal through the mobile data network. And disconnecting from the second network established by the terminal through the WLAN. When the terminal receives the first network connection disconnection request sent by the server, or after the terminal sends the first request data packet and the second request data packet for more than a specified time, disconnects the first network connection, when the terminal receives Disconnect the second network connection when the second network connection disconnect request sent by the server, or after the first request packet and the second request packet are sent, exceeds the specified time; One of them ends the user login. If the server verifies that the user is a valid user, the login response message, including the login success message or the login failure message, may be generated according to the user information or other conditions, such as the total number of connections of the server, the processing capability, or the network speed. For example, if the user has a higher priority. If the server is low and the total number of connections to the server is high, the server may generate a login failure message for the user.

与终端发送登录请求消息的方法相类似,为了防止网络攻击者从网络中截获用户消息,服务器将所生成的登录应答消息拆分为第一应答数据包和第二应答数据包,分别在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包。服务器发送之后终端从第一网络连接上可接收服务器发送的第一应答数据包,在第二网络连接上可接收服务器发送的第二应答数据包。 Similar to the method for the terminal to send the login request message, the server splits the generated login response message into the first response data packet and the second response data packet, respectively, in order to prevent the network attacker from intercepting the user message from the network. The first response data packet is sent to the terminal on the network connection, and the second response data packet is sent to the terminal on the second network connection. After the server sends the terminal, the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.

终端获取第一应答数据包和第二应答数据之后,可将两者合并为服务器发送的登录应答消息。在一些可行的实施方式中,若登录应答消息为登录失败消息,则用户登录失败,终端断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接,以结束用户登录。所述断开可以是终端主动发起的连接断开,如终端发起的TCP连接的关闭或终端自动断开UDP连接,也可以是服务器在发送了登录失败消息后发起的连接断开,如服务器发起的TCP连接的关闭;所述断开可以是接收到登录失败应答消息后立即断开,也可以是经过多次登录尝试后依然失败的情况下的断开。若服务器发送的登录应答消息为登录成功消息,则用户登录成功,终端可以断开通过移动数据网络与服务器建立的第一网络连接,或者,断开通过WLAN与服务器建立的第二网络连接,又或者,保持第一网络连接和第二网络连接不断开,当终端完成用户登录后,可以使用未断开的网络连接传输业务数据。终端接收到的登录成功消息,可能是多次用户登录尝试中的一次的登录成功消息。所述断开可以是终端主动发起的连接断开,如终端发起的TCP连接的关闭或终端自动断开UDP连接,也可以是服务器在发送了登录失败消息后发起的连接断开,如服务器发起的TCP连接的关闭。After the terminal acquires the first response data packet and the second response data, the two may be merged into a login response message sent by the server. In some feasible implementation manners, if the login response message is a login failure message, the user login fails, the terminal disconnects the first network connection established with the server through the mobile data network, and disconnects the second network established by the server with the WLAN. Connect to end the user login. The disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The disconnection of the TCP connection; the disconnection may be disconnected immediately after receiving the login failure response message, or may be disconnected in the case of failure after multiple login attempts. If the login response message sent by the server is a login success message, the user logs in successfully, and the terminal can disconnect the first network connection established with the server through the mobile data network, or disconnect the second network connection established with the server through the WLAN, and Alternatively, the first network connection and the second network connection are kept disconnected. After the terminal completes the user login, the service data can be transmitted using the disconnected network connection. The login success message received by the terminal may be a login success message of one of the multiple user login attempts. The disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The closing of the TCP connection.

可见,本发明实施例提供的技术方案能够使终端通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;将终端发送给服务器的登录请求消息拆分为第一请求数据包和第二请求数据包,将第一请求数据包和第二请求数据包分别通过两个网络连接发送到服务器,再分别通过两个网络连接接收第一应答数据包和第二应答数据包并合并为服务器发送给终端的登录应答消息,以完成用户到服务器的安全登录。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request. The data packet and the second request data packet are sent to the server through the two network connections by the first request data packet and the second request data packet, respectively, and then receive the first response data packet and the second response data packet through the two network connections respectively. And merged into a login response message sent by the server to the terminal to complete the secure login of the user to the server. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例二提供了一种双连接安全通讯的方法,用于移动终端设备,参见图3,图3为本发明实施例二提供的一种双连接安全通讯的方法的流程示意图。其中,如图3所示,本方法可包括以下步骤:A second embodiment of the present invention provides a dual-connection secure communication method for a mobile terminal device. Referring to FIG. 3, FIG. 3 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 2 of the present invention. Wherein, as shown in FIG. 3, the method may include the following steps:

S201、当接收到用户发送的服务器登录指令后,通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接。 S201. After receiving the server login command sent by the user, establish a first network connection with the server through the mobile data network, and establish a second network connection with the server through the WLAN.

终端在接收到用户发送的服务器登录指令后,可以分别通过移动数据网络,例如3GPP网络(WCDMA,LTE或TD-SCDMA),和WLAN建立两条连接(TCP或UDP连接),即通过移动数据网络与服务器建立第一网络连接,通过无线局域网WLAN与服务器建立第二网络连接。After receiving the server login command sent by the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. Establish a first network connection with the server, and establish a second network connection with the server through the wireless local area network WLAN.

关于步骤S201的具体描述可参见上述实施例一的步骤S101,此处不再赘述。For the detailed description of the step S201, refer to step S101 of the first embodiment, and details are not described herein again.

S202、根据服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包。S202. Generate a login request message sent to the server according to the server login instruction, split the login request message into the first request data packet and the second request data packet, and send the first request data packet to the server on the first network connection, where A second request packet is sent to the server on the second network connection.

关于步骤S202的具体描述可参见上述实施例一的步骤S102,此处不再赘述。For the detailed description of the step S202, refer to the step S102 of the first embodiment, and details are not described herein again.

S203、从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包,将第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息。S203. Receive a first response data packet sent by the server from the first network connection, receive a second response data packet sent by the server from the second network connection, and combine the first response data packet and the second response data packet into a server. Login reply message.

当服务器从第一网络连接上接收到终端发送的第一请求数据包,从第二网络连接上接收到终端发送的第二请求数据包之后,将第一请求数据包和第二请求数据包进行合并,以得到终端发送的登录请求消息。之后服务器根据登录请求消息生成登录应答消息,与终端发送登录请求消息的方法相类似,为了防止网络攻击者从网络中截获用户消息,服务器将所生成的登录应答消息拆分为第一应答数据包和第二应答数据包,分别在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包。服务器发送之后终端从第一网络连接上可接收服务器发送的第一应答数据包,在第二网络连接上可接收服务器发送的第二应答数据包。Receiving, by the server, the first request data packet sent by the terminal from the first network connection, and after receiving the second request data packet sent by the terminal from the second network connection, performing the first request data packet and the second request data packet Merge to get the login request message sent by the terminal. After the server generates a login response message according to the login request message, similar to the method for the terminal to send the login request message, the server splits the generated login response message into the first response packet in order to prevent the network attacker from intercepting the user message from the network. And transmitting, by the second response packet, a first response data packet to the terminal on the first network connection, and transmitting the second response data packet to the terminal on the second network connection. After the server sends the terminal, the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.

终端获取第一应答数据包和第二应答数据之后,可将两者合并为服务器发送的登录应答消息,以完成用户登录过程。After obtaining the first response data packet and the second response data, the terminal may merge the two into a login response message sent by the server to complete the user login process.

S204、判断登录应答消息是登录成功消息还是登录失败消息。S204. Determine whether the login response message is a login success message or a login failure message.

终端将第一应答数据包和第二应答数据包合并为登录应答消息,登录应答消息包括登录成功消息和登录失败消息,若为登录成功消息,则用户登录服务器成功,若为登录失败消息,则用户登录服务器失败。 The terminal merges the first response data packet and the second response data packet into a login response message, where the login response message includes a login success message and a login failure message. If the login success message is successful, the user logs in to the server successfully, and if it is a login failure message, The user failed to log in to the server.

S205、若登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接,以结束用户登录。S205. If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN to end the user login.

若登录应答消息为登录失败消息,终端断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接。所述断开可以是终端主动发起的连接断开,如终端发起的TCP连接的关闭或终端自动断开UDP连接,也可以是服务器在发送了登录失败消息后发起的连接断开,如服务器发起的TCP连接的关闭;所述断开可以是终端接收到登录失败应答消息后立即断开,也可以是经过多次登录尝试时每次终端收到的都是登录失败消息之后的断开。If the login response message is a login failure message, the terminal disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN. The disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The disconnection of the TCP connection may be disconnected immediately after the terminal receives the login failure response message, or may be disconnected after the login failure message is received each time the terminal receives the multiple login attempts.

S206、若登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与服务器建立的第一网络连接,或者断开通过WLAN与服务器建立的第二网络连接,以完成用户登录。S206. If the login response message is a login success message, the user logs in successfully, disconnects the first network connection established with the server through the mobile data network, or disconnects the second network connection established with the server through the WLAN to complete the user login.

若登录应答消息为登录成功消息,断开通过移动数据网络与服务器建立的第一网络连接,或者,断开通过WLAN与服务器建立的第二网络连接,或者,保持第一网络连接和第二网络连接不断开,当终端完成用户登录后,可以使用未断开的网络连接传输业务数据。终端接收到的登录成功消息,可能是多次登录尝试中的一次的登录成功消息。所述断开可以是终端主动发起的连接断开,如终端发起的TCP连接的关闭或终端自动断开UDP连接,也可以是服务器在发送了登录失败消息后发起的连接断开,如服务器发起的TCP连接的关闭。If the login response message is a login success message, disconnect the first network connection established with the server through the mobile data network, or disconnect the second network connection established with the server through the WLAN, or maintain the first network connection and the second network The connection is not broken. When the terminal completes the user login, the service data can be transmitted using the unconnected network connection. The login success message received by the terminal may be one of the multiple login attempts. The disconnection may be disconnection initiated by the terminal, such as the shutdown of the TCP connection initiated by the terminal or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the server after sending the login failure message, such as a server initiated. The closing of the TCP connection.

可见,本发明实施例提供的技术方案能够使终端通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;将终端发送给服务器的登录请求消息拆分为第一请求数据包和第二请求数据包,将第一请求数据包和第二请求数据包分别通过两个网络连接发送到服务器,再分别通过两个网络连接接收第一应答数据包和第二应答数据包并合并为服务器发送给终端的登录应答消息,根据用户登录是否成功断开或保持网络连接,从而达到安全登录的目的。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。 It can be seen that the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request. The data packet and the second request data packet are sent to the server through the two network connections by the first request data packet and the second request data packet, respectively, and then receive the first response data packet and the second response data packet through the two network connections respectively. And merged into a login response message sent by the server to the terminal, according to whether the user login successfully disconnects or maintains the network connection, thereby achieving the purpose of secure login. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例三提供了一种双连接安全通讯的方法,用于移动终端设备,参见图4,图4为本发明实施例三提供的一种双连接安全通讯的方法的流程示意图。其中,如图4所示,本方法可包括以下步骤:A third embodiment of the present invention provides a dual-connection secure communication method for a mobile terminal device. Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of a method for dual-connection secure communication according to Embodiment 3 of the present invention. Wherein, as shown in FIG. 4, the method may include the following steps:

S301、当接收到用户发送的服务器登录指令后,通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接。S301. After receiving the server login command sent by the user, establish a first network connection with the server through the mobile data network, and establish a second network connection with the server through the WLAN.

步骤S301的具体实施可参考实施例一的步骤S101,此处不再赘述。For the specific implementation of step S301, reference may be made to step S101 of the first embodiment, and details are not described herein again.

S302、根据服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包。S302. Generate a login request message sent to the server according to the server login instruction, split the login request message into the first request data packet and the second request data packet, and send the first request data packet to the server on the first network connection, where A second request packet is sent to the server on the second network connection.

步骤S302的具体实施可参考实施例一的步骤S102,此处不再赘述。For the specific implementation of step S302, refer to step S102 of the first embodiment, and details are not described herein again.

S303、当终端接收到服务器发送的第一网络连接断开请求时,或在终端发送第一请求数据包和第二请求数据包之后的时间超过指定时间后,断开第一网路连接;当终端接收到服务器发送的第二网络连接断开请求时,或在发送第一请求数据包和第二请求数据包之后的时间超过指定时间后,断开第二网路连接;结束用户登录。S303. When the terminal receives the first network connection disconnection request sent by the server, or after the terminal sends the first request data packet and the second request data packet for more than a specified time, disconnecting the first network connection; When the terminal receives the second network connection disconnection request sent by the server, or after the time after the first request data packet and the second request data packet are sent, the terminal disconnects the second network connection; and ends the user login.

当服务器从第一网络连接上接收到终端发送的第一请求数据包,从第二网络连接上接收到终端发送的第二请求数据包之后,将第一请求数据包和第二请求数据包进行合并,以得到终端发送给服务器的登录请求消息。Receiving, by the server, the first request data packet sent by the terminal from the first network connection, and after receiving the second request data packet sent by the terminal from the second network connection, performing the first request data packet and the second request data packet Merge to get the login request message sent by the terminal to the server.

当服务器接收到登录请求消息后,先验证该用户是否为有效用户,若为无效用户(例如用户账号不存在或密码错误),服务器可直接断开与终端通过移动数据网络建立的第一网络连接和断开与终端通过WLAN建立的第二网络连接,服务器也可向终端发送无效用户指示信息之后再断开网络连接。若第一网络连接或第二网络连接为TCP连接,则服务器主动发起的TCP连接的关闭,若第一网络连接或第二网络连接为UDP连接,服务器自行断开UDP连接。当终端接收到服务器的TCP连接关闭请求后,断开TCP连接,或者终端在发送登录请求消息超时后自行断开UDP连接,终端在断开连接之前可能收到服务器发送的无效用户指示信息。After receiving the login request message, the server first verifies whether the user is a valid user. If the user is an invalid user (for example, the user account does not exist or the password is incorrect), the server can directly disconnect the first network connection established by the terminal through the mobile data network. And disconnecting the second network connection established by the terminal through the WLAN, the server may also send the invalid user indication information to the terminal before disconnecting the network connection. If the first network connection or the second network connection is a TCP connection, the server initiates the TCP connection to be closed. If the first network connection or the second network connection is a UDP connection, the server disconnects the UDP connection by itself. After receiving the TCP connection close request of the server, the terminal disconnects the TCP connection, or the terminal disconnects the UDP connection after the login request message expires. The terminal may receive invalid user indication information sent by the server before disconnecting.

当终端接收到服务器发送的第一网络连接断开请求时断开第一网络连接,或在终端发送第一请求数据包和第二请求数据包之后的时间超过指定时间后 断开第一网路连接;当终端接收到服务器发送的第二网络连接断开请求时断开第二网络连接,或在发送第一请求数据包和第二请求数据包之后的时间超过指定时间后断开第二网路连接;只要断开两条网络连接中的一条,即结束用户登录。Disconnecting the first network connection when the terminal receives the first network connection disconnection request sent by the server, or after the terminal sends the first request data packet and the second request data packet for more than a specified time Disconnecting the first network connection; disconnecting the second network connection when the terminal receives the second network connection disconnection request sent by the server, or after transmitting the first request packet and the second request packet for more than a specified time After disconnecting the second network connection; as long as one of the two network connections is disconnected, the user login is ended.

可见,本发明实施例提供的技术方案能够使终端通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;将终端发送给服务器的登录请求消息拆分为第一请求数据包和第二请求数据包,将第一请求数据包和第二请求数据包分别通过两个连接发送到服务器,在接收到服务器发送的登录应答消息前可以断开网络连接,从而达到安全登录的目的。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention enables the terminal to establish a first network connection with the server through the mobile data network, establish a second network connection with the server through the WLAN, and split the login request message sent by the terminal to the server into the first request. The data packet and the second request data packet respectively send the first request data packet and the second request data packet to the server through two connections, and may disconnect the network connection before receiving the login response message sent by the server, thereby achieving secure login. the goal of. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例四提供了一种双连接安全通讯的方法,用于服务器,参见图5,图5为本发明实施例四提供的一种双连接安全通讯的方法的流程示意图。其中,如图5所示,本方法可包括以下步骤:A fourth embodiment of the present invention provides a dual-connection secure communication method for a server. Referring to FIG. 5, FIG. 5 is a schematic flowchart of a method for dual-connection secure communication according to Embodiment 4 of the present invention. Wherein, as shown in FIG. 5, the method may include the following steps:

S401、通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接。S401. Establish a first network connection with the terminal through the mobile data network, and establish a second network connection with the terminal by using the WLAN.

终端在接收到用户的服务器登录指令后,可以分别通过移动数据网络,例如3GPP网络(WCDMA,LTE或TD-SCDMA),和WLAN建立两条连接(TCP或UDP连接),即通过移动数据网络与服务器建立第一网络连接,通过无线局域网WLAN与服务器建立第二网络连接。After receiving the server login command from the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. The server establishes a first network connection and establishes a second network connection with the server through the wireless local area network WLAN.

在3GPP组织提出的3GPP网络与非3GPP网络(包括WLAN)融合的技术中,支持终端同时在3GPP网络和非3GPP网络中进行网络注册和认证,终端可同时通过3GPP网络和WLAN进行IP流传输,可以由3GPP网络提供对WLAN用户的鉴权和认证,WLAN也可以连接到3GPP网络的分组数据网关。但是目前在3GPP系统中引入的3GPP网络与非3GPP网络融合的技术方案中不支持通过3GPP网络和非3GPP网络与同一个服务器建立网络连接。In the technology of the 3GPP network and the non-3GPP network (including WLAN) proposed by the 3GPP organization, the support terminal simultaneously performs network registration and authentication in the 3GPP network and the non-3GPP network, and the terminal can simultaneously perform IP stream transmission through the 3GPP network and the WLAN. The WLAN user can be authenticated and authenticated by the 3GPP network, which can also be connected to the packet data gateway of the 3GPP network. However, the current solution of the 3GPP network and the non-3GPP network integration introduced in the 3GPP system does not support establishing a network connection with the same server through the 3GPP network and the non-3GPP network.

服务器通过移动数据网络与终端建立第一网络连接,包括终端在移动数据网络中注册成功之后通过移动数据网络与终端建立第一网络连接;服务器通过WLAN与终端建立第二网络连接,包括在终端通过WLAN的安全认证之后通 过WLAN与终端建立第二网络连接,或者在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与所述服务器建立所述第二网络连接。第一网络连接和第二网络连接可以是TCP/IP连接或UDP/IP连接,用发送端口号、接收端口号、源IP地址和目标IP地址标识。The server establishes a first network connection with the terminal through the mobile data network, and the terminal establishes a first network connection with the terminal through the mobile data network after the terminal successfully registers in the mobile data network; the server establishes a second network connection with the terminal through the WLAN, including After the WLAN security certification The second network connection is established between the WLAN and the terminal, or the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN. The first network connection and the second network connection may be a TCP/IP connection or a UDP/IP connection, identified by a transmission port number, a receiving port number, a source IP address, and a destination IP address.

在具体实现中,终端在移动数据网络中注册成功后,才能通过移动数据网络与应用服务器建立第一网络连接,因此终端通过WLAN的安全认证之后,服务器才能通过WLAN与终端建立第二网络连接。举例来说,在3GPP中系统中,终端开机后即可发起分组网络注册,网络注册的过程包括鉴权过程、安全激活过程和建立分组数据网络连接等,当终端在LTE网络中完成分组网络注册后才可以与应用服务器建立第一网络连接(TCP或UDP连接)。又举例来说,WLAN中的终端用户首先要通过WLAN的本地安全认证,然后通过WLAN与应用服务器建立第二网络连接(TCP或UDP连接);在一些3GPP网络和WLAN网络融合的场景中,WLAN中的终端通过3GPP网络服务器进行安全认证,通过3GPP网络的安全认证的终端才可以通过WLAN与应用服务器建立第二网络连接。In a specific implementation, after the terminal is successfully registered in the mobile data network, the first network connection can be established with the application server through the mobile data network. Therefore, after the terminal is authenticated by the WLAN, the server can establish a second network connection with the terminal through the WLAN. For example, in the 3GPP system, after the terminal is powered on, the packet network registration can be initiated. The network registration process includes an authentication process, a security activation process, and establishing a packet data network connection, etc., when the terminal completes the packet network registration in the LTE network. The first network connection (TCP or UDP connection) can be established with the application server. For example, the terminal user in the WLAN first needs to pass the local security authentication of the WLAN, and then establish a second network connection (TCP or UDP connection) with the application server through the WLAN; in some scenarios where the 3GPP network and the WLAN network are fused, the WLAN The terminal in the terminal performs security authentication through the 3GPP network server, and the terminal that is securely authenticated by the 3GPP network can establish a second network connection with the application server through the WLAN.

S402、从第一网络连接上接收终端发送的第一请求数据包,从第二网络连接上接收终端发送的第二请求数据包,合并第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息。S402. The first request data packet sent by the terminal is received from the first network connection, and the second request data packet sent by the terminal is received from the second network connection, and the first request data packet and the second request data packet are combined to obtain the terminal. The login request message sent.

在服务器通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接之后,终端可以根据服务器登录指令,生成用户的服务器登录请求消息,用户的服务器登录请求消息中包含用户的账号和密码信息。由于第一网络连接和第二网络连接是不同的传输连接,通过第一网络连接和通过第二网络连接传输的数据可经过不同的网络设备,为了避免用户的登录请求消息被网络攻击者在网络设备(如网关或路由器)处截获,终端可以将用户的登录请求消息拆分成两个数据包,分别在建立的第一网络连接和第二网络连接上发送,具体来说,将用户的服务器登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包。After the server establishes a first network connection with the server through the mobile data network, and establishes a second network connection with the server through the WLAN, the terminal may generate a server login request message of the user according to the server login instruction, where the user's server login request message includes the user's Account and password information. Since the first network connection and the second network connection are different transmission connections, the data transmitted through the first network connection and through the second network connection may pass through different network devices, in order to prevent the user's login request message from being attacked by the network attacker on the network. The device (such as a gateway or a router) intercepts the user, and the terminal can split the user's login request message into two data packets, which are respectively sent on the established first network connection and the second network connection, specifically, the user's server. The login request message is split into a first request packet and a second request packet, and the first request packet is sent to the server on the first network connection, and the second request packet is sent to the server on the second network connection.

当服务器从第一网络连接上接收到终端发送的第一请求数据包,从第二 网络连接上接收到终端发送的第二请求数据包之后,将第一请求数据包和第二请求数据包进行合并,以得到终端发送的登录请求消息。Receiving, by the server, the first request packet sent by the terminal from the first network connection, from the second After receiving the second request data packet sent by the terminal on the network connection, the first request data packet and the second request data packet are combined to obtain a login request message sent by the terminal.

S403、根据登录请求消息生成向终端发送的登录应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包,在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包,以完成用户登录。S403. Generate a login response message sent to the terminal according to the login request message, split the login response message into the first response data packet and the second response data packet, and send the first response data packet to the terminal on the first network connection. The second response packet is sent to the terminal on the second network connection to complete the user login.

当服务器将第一请求数据包和第二请求数据包进行合并,得到终端发送的登录请求消息后,先验证该用户是否为有效用户,若为无效用户(例如用户账号不存在或密码错误),服务器可直接断开与终端通过移动数据网络建立的第一网络连接和断开与终端通过WLAN建立的第二网络连接;服务器也可能由于其他异常原因发起第一网络连接的断开或发起第二网络连接的断开,也可能不向终端发送登录应答消息并自行断开第一网络连接或第二网络连接,此时,只要断开两条网络连接中的一条,即结束用户登录。若服务器验证用户为有效用户,可根据用户信息或其他条件,如服务器的连接总数、处理能力或网速,生成登录应答消息,包括登录成功消息或登录失败消息,例如,若用户优先级较低并且服务器的连接总数较多的情况下服务器可能为用户生成登录失败消息。When the server combines the first request packet and the second request packet to obtain the login request message sent by the terminal, first verify whether the user is a valid user, and if it is an invalid user (for example, the user account does not exist or the password is incorrect), The server may directly disconnect the first network connection established by the terminal through the mobile data network and disconnect the second network connection established by the terminal through the WLAN; the server may also initiate the disconnection of the first network connection or initiate the second due to other abnormal reasons. If the network connection is disconnected, the login response message may not be sent to the terminal and the first network connection or the second network connection may be disconnected by itself. At this time, as long as one of the two network connections is disconnected, the user login is ended. If the server authenticates the user as a valid user, the login response message, including the login success message or the login failure message, may be generated according to the user information or other conditions, such as the total number of connections, processing capacity, or network speed of the server, for example, if the user has a lower priority. And if the total number of connections to the server is large, the server may generate a login failure message for the user.

与终端发送服务器登录请求的方法相类似,为了防止网络攻击者从网络中截获用户消息,服务器将所生成的登录应答消息拆分为第一应答数据包和第二应答数据包,分别在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包。服务器发送之后终端从第一网络连接上可接收服务器发送的第一应答数据包,在第二网络连接上可接收服务器发送的第二应答数据包。Similar to the method for the terminal to send a server login request, in order to prevent the network attacker from intercepting the user message from the network, the server splits the generated login response message into a first response data packet and a second response data packet, respectively, in the first The first response data packet is sent to the terminal on the network connection, and the second response data packet is sent to the terminal on the second network connection. After the server sends the terminal, the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.

在一些可行的实施方式中,若登录应答消息为服务器登录失败消息,服务器断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与服务器建立的第二网络连接。所述断开可以是服务器主动发起的连接断开,如服务发起的TCP连接的关闭或服务器自动断开UDP连接,也可以是终端在接收到登录失败消息后发起的连接断开,如终端发起的TCP连接的关闭;所述断开可以是服务器首次发送完登录失败应答消息后立即断开,也可 以是在服务器接收到多次用户登录请求消息时每次都发送用户登录失败消息后的断开。若登录应答消息为登录成功消息,服务器断开通过移动数据网络与服务器建立的第一网络连接,或者,断开通过WLAN与服务器建立的第二网络连接,或者,保持第一网络连接和第二网络连接不断开,当服务器发送完登录成功消息后,可以通过不断开的网络连接传输业务数据。服务器发送的登录成功消息,可能是多次登录尝试中的一次的登录成功消息。所述断开可以是服务器主动发起的连接断开,如服务器发起的TCP连接的关闭或服务器自动断开UDP连接,也可以是终端在接收到登录失败消息后发起的连接断开,如终端发起的TCP连接的关闭。In some possible implementations, if the login response message is a server login failure message, the server disconnects the first network connection established with the server through the mobile data network, and disconnects the second network connection established with the server through the WLAN. The disconnection may be a disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the service or the disconnection of the UDP connection by the server, or the disconnection initiated by the terminal after receiving the login failure message, such as the terminal initiated. The closing of the TCP connection; the disconnection may be disconnected immediately after the server first sends the login failure response message, or Therefore, the disconnection after the user login failure message is sent each time the server receives the multiple user login request message. If the login response message is a login success message, the server disconnects the first network connection established with the server through the mobile data network, or disconnects the second network connection established with the server through the WLAN, or maintains the first network connection and the second The network connection is not broken. When the server sends the login success message, the service data can be transmitted through the uninterrupted network connection. The login success message sent by the server may be the login success message of one of the multiple login attempts. The disconnection may be a disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the server, or the disconnection initiated by the terminal after receiving the login failure message, such as the terminal initiated. The closing of the TCP connection.

可见,本发明实施例提供的技术方案能够使服务器通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接,服务器分别通过两个网络连接接收第一请求数据包和第二请求数据包并合并为终端发送给服务器的登录请求消息,将服务器发送给终端的登录应答请求消息拆分为第一应答数据包和第二应答数据包,分别通过两个网络连接发送到终端,以完成用户到服务器的安全登录。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention enables the server to establish a first network connection with the terminal through the mobile data network, establish a second network connection with the terminal through the WLAN, and the server receives the first request data packet and the second through the two network connections respectively. The second request data packet is merged into a login request message sent by the terminal to the server, and the login response request message sent by the server to the terminal is split into a first response data packet and a second response data packet, which are respectively sent to the terminal through two network connections. To complete the secure login of the user to the server. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

S501、通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接。S501. Establish a first network connection with the terminal through the mobile data network, and establish a second network connection with the terminal by using the WLAN.

终端在接收到用户的服务器登录指令后,可以分别通过移动数据网络,例如3GPP网络(WCDMA,LTE或TD-SCDMA),和WLAN建立两条连接(TCP或UDP连接),即通过移动数据网络与服务器建立第一网络连接,通过无线局域网WLAN与服务器建立第二网络连接。After receiving the server login command from the user, the terminal can establish two connections (TCP or UDP connection) through the mobile data network, such as 3GPP network (WCDMA, LTE or TD-SCDMA), and the WLAN, that is, through the mobile data network. The server establishes a first network connection and establishes a second network connection with the server through the wireless local area network WLAN.

在3GPP组织提出的移动网络与WLAN融合的技术中,支持终端通过3GPP网络和WLAN建立两条分组数据网络连接,同时通过3GPP网络和WLAN进行IP流传输,可以由3GPP网络提供对WLAN用户的鉴权和认证,WLAN也可以连接到3GPP网络的分组数据网关。In the technology of mobile network and WLAN convergence proposed by the 3GPP organization, the support terminal establishes two packet data network connections through the 3GPP network and the WLAN, and simultaneously performs IP stream transmission through the 3GPP network and the WLAN, and the GPP user can be provided by the 3GPP network. QoS and authentication, WLAN can also be connected to the packet data gateway of the 3GPP network.

关于步骤S501的具体描述可参见上述实施例四的步骤S401,此处不再赘述。For the detailed description of the step S501, refer to step S401 of the above embodiment 4, and details are not described herein again.

S502、从第一网络连接上接收终端发送的第一请求数据包,从第二网络连 接上接收终端发送的第二请求数据包,合并第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息。S502. Receive a first request data packet sent by the terminal from the first network connection, and connect from the second network. The second request data packet sent by the receiving terminal is connected, and the first request data packet and the second request data packet are combined to obtain a login request message sent by the terminal.

关于步骤S502的具体描述可参见上述实施例四的步骤S402,此处不再赘述。For the detailed description of the step S502, refer to step S402 of the foregoing embodiment 4, and details are not described herein again.

S503、根据登录请求消息判断用户是否为无效用户。S503. Determine, according to the login request message, whether the user is an invalid user.

当服务器合并第一请求数据包和第二请求数据包,得到终端发送的登录请求消息,该登录请求消息中包含用户的账户和密码等信息,先根据该登陆请求消息验证该用户是否为有效用户。When the server merges the first request data packet and the second request data packet, the login request message sent by the terminal is obtained, where the login request message includes information such as the user's account and password, and the user is first determined to be a valid user according to the login request message. .

S504、若验证该用户为无效用户,断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录。S504. If the user is verified as an invalid user, disconnect the first network connection established by the mobile data network with the terminal, and disconnect the second network connection established with the terminal through the WLAN to end the user login.

若验证为无效用户(例如用户账号不存在或密码错误),服务器可直接断开与终端通过移动数据网络建立的第一网络连接并断开与终端通过WLAN建立的第二网络连接,服务器也可向终端发送无效用户指示信息之后再断开网络连接。若第一网络连接或第二网络连接为TCP连接,则服务器主动发起的TCP连接的关闭,若第一网络连接或第二网络连接为UDP连接,服务器自行断开UDP连接。当终端接收到服务器的TCP连接关闭请求后,断开TCP连接,或者终端在向服务器发送登录请求消息之后的时间超过指定时间阈值后,自行断开UDP连接,终端在断开连接之前可能收到服务器发送的无效用户指示信息。If the verification is invalid (for example, the user account does not exist or the password is incorrect), the server can directly disconnect the first network connection established by the terminal through the mobile data network and disconnect the second network connection established by the terminal through the WLAN, and the server can also Disconnect the network connection after sending invalid user indication information to the terminal. If the first network connection or the second network connection is a TCP connection, the server initiates the TCP connection to be closed. If the first network connection or the second network connection is a UDP connection, the server disconnects the UDP connection by itself. After receiving the TCP connection close request from the server, the terminal disconnects the TCP connection, or the terminal disconnects the UDP connection after the time after the login request message is sent to the server exceeds the specified time threshold, and the terminal may receive the connection before disconnecting. Invalid user indication sent by the server.

S505、若验证该用户不为无效用户,根据服务器登录请求消息生成向终端发送的应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包,在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包。S505. If it is verified that the user is not an invalid user, generate a response message sent to the terminal according to the server login request message, and split the login response message into the first response data packet and the second response data packet, and connect to the first network connection. The terminal sends the first response data packet, and sends the second response data packet to the terminal on the second network connection.

当验证该用户不为无效用户,服务器可根据用户信息或其他条件,如服务器的连接总数、处理能力或网速,生成登录应答消息。登录应答消息包括登录成功消息或登录失败消息,例如,若用户优先级较低并且服务器的连接总数较多的情况下服务器可能为用户生成登录失败消息。When it is verified that the user is not an invalid user, the server may generate a login response message according to user information or other conditions, such as the total number of connections, processing capabilities, or network speed of the server. The login response message includes a login success message or a login failure message. For example, if the user has a lower priority and the total number of connections of the server is large, the server may generate a login failure message for the user.

与终端发送服务器登录请求的方法相类似,为了防止网络攻击者从网络中截获用户消息,服务器将所生成的登录应答消息拆分为第一应答数据包和第二 应答数据包,分别在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包。服务器发送之后终端从第一网络连接上可接收服务器发送的第一应答数据包,在第二网络连接上可接收服务器发送的第二应答数据包。Similar to the method for the terminal to send a server login request, in order to prevent the network attacker from intercepting the user message from the network, the server splits the generated login response message into the first response data packet and the second. And responding to the data packet, respectively sending a first response data packet to the terminal on the first network connection, and sending the second response data packet to the terminal on the second network connection. After the server sends the terminal, the terminal may receive the first response data packet sent by the server from the first network connection, and receive the second response data packet sent by the server on the second network connection.

S506、判断登录应答消息是登录成功消息还是登录失败消息。S506. Determine whether the login response message is a login success message or a login failure message.

当服务器在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包之后,判断登录应答消息是登录成功消息还是登录失败消息。When the server sends the first response data packet to the terminal on the first network connection, and after transmitting the second response data packet to the terminal on the second network connection, it is determined whether the login response message is a login success message or a login failure message.

S507、若登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录。S507. If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login.

若登录应答消息为登录失败消息,则用户登录失败,服务器断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录。所述断开可以是服务器主动发起的连接断开,如服务器发起的TCP连接的关闭或终端自动断开UDP连接,也可以是终端在接收到服务器发送的登录失败消息后发起的连接断开,如终端发起的TCP连接的关闭;所述断开可以是服务器发送完登录失败应答消息后立即断开,也可以是终端经过多次登录尝试时每次服务器向终端发送的都是登录失败消息之后的断开。If the login response message is a login failure message, the user fails to log in, the server disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login. The disconnection may be disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the terminal, or the disconnection initiated by the terminal after receiving the login failure message sent by the server. For example, the disconnection of the TCP connection initiated by the terminal may be disconnected immediately after the server sends the login failure response message, or may be the login failure message sent by the server to the terminal each time the terminal attempts to log in multiple times. Disconnected.

S508、若登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与终端建立的第一网络连接,或者断开通过WLAN与终端建立的第二网络连接,以完成用户登录。S508. If the login response message is a login success message, the user logs in successfully, disconnects the first network connection established by the mobile data network with the terminal, or disconnects the second network established by the WLAN and the terminal to complete the user login.

若登录应答消息为登录成功消息,则用户登录成功,服务器断开通过移动数据网络与终端建立的第一网络连接,或者,断开通过WLAN与终端建立的第二网络连接,或者,保持第一网络连接和第二网络连接不断开,当服务器发送完用户的登录成功消息后,可以通过未断开的网络连接传输业务数据。服务器发送的登录成功消息,可能是终端多次登录尝试中的一次中服务器发送的登录成功消息。所述断开可以是服务器主动发起的连接断开,如服务器发起的TCP连接的关闭或服务器自动断开UDP连接,也可以是终端在接收到登录失 败消息后发起的连接断开,如终端发起的TCP连接的关闭。If the login response message is a login success message, the user logs in successfully, the server disconnects the first network connection established with the terminal through the mobile data network, or disconnects the second network connection established with the terminal through the WLAN, or remains the first The network connection and the second network connection are not disconnected. After the server sends the user's login success message, the service data can be transmitted through the disconnected network connection. The login success message sent by the server may be the login success message sent by the server in one of the multiple login attempts of the terminal. The disconnection may be disconnection initiated by the server, such as the shutdown of the TCP connection initiated by the server or the automatic disconnection of the UDP connection by the server, or the terminal may receive the login loss. The connection initiated after the failure message is disconnected, such as the shutdown of the TCP connection initiated by the terminal.

可见,本发明实施例提供的技术方案能够使服务器通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接,服务器分别通过两个网络连接接收第一请求数据包和第二请求数据包并合并为终端发送的登录请求消息,服务器将向终端发送的登录应答请求消息拆分为第一应答数据包和第二应答数据包,分别通过两个网络连接发送到终端,根据是否为无效用户和用户登录是否成功断开或保持网络连接,从而达到用户安全登录的目的。本方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention enables the server to establish a first network connection with the terminal through the mobile data network, establish a second network connection with the terminal through the WLAN, and the server receives the first request data packet and the second through the two network connections respectively. The second request data packet is merged into a login request message sent by the terminal, and the server splits the login response request message sent to the terminal into a first response data packet and a second response data packet, which are respectively sent to the terminal through two network connections, according to Whether the invalid user and the user login successfully disconnected or maintain the network connection, thereby achieving the purpose of user secure login. The solution can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例六提供了一种终端设备,用于实现本发明提出的一种双连接安全通讯的方法。参见图7,所述设备a00可包括接收单元a10、处理单元a20和发送单元a30。The sixth embodiment of the present invention provides a terminal device for implementing a dual-connection secure communication method proposed by the present invention. Referring to FIG. 7, the device a00 may include a receiving unit a10, a processing unit a20, and a transmitting unit a30.

接收单元a10,用于接收用户发送的服务器登录指令;The receiving unit a10 is configured to receive a server login instruction sent by the user;

处理单元a20,用于通过移动数据网络与服务器建立第一网络连接,通过WLAN与服务器建立第二网络连接;The processing unit a20 is configured to establish a first network connection with the server through the mobile data network, and establish a second network connection with the server by using the WLAN;

处理单元a20还用于,根据接收单元a10收到的服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包;The processing unit a20 is further configured to: generate a login request message sent to the server according to the server login instruction received by the receiving unit a10, and split the login request message into the first request data packet and the second request data packet;

发送单元a30,用于在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包;The sending unit a30 is configured to send a first request data packet to the server on the first network connection, and send a second request data packet to the server on the second network connection;

接收单元a10还用于,从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包;The receiving unit a10 is further configured to: receive a first response data packet sent by the server from the first network connection, and receive a second response data packet sent by the server from the second network connection;

处理单元a20还用于,将接收单元收到的第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息,以完成用户登录。The processing unit a20 is further configured to combine the first response data packet and the second response data packet received by the receiving unit into a login response message sent by the server, to complete the user login.

在一些可行的实施方式中,处理单元a20还用于:In some possible implementations, the processing unit a20 is further configured to:

若接收单元a10收到的服务器发送的登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与服务器建立的第一网络连接,并且断开通过WLAN与所述服务器建立的第二网络连接,以结束用户登录;If the login response message sent by the server received by the receiving unit a10 is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the server established with the server through the WLAN. Two network connections to end user login;

若接收单元a10收到的服务器发送的登录应答消息为登录成功消息,则用 户登录成功,断开通过移动数据网络与所述服务器建立的第一网络连接,以完成用户登录;或者,If the login response message sent by the server received by the receiving unit a10 is a login success message, The user successfully logs in, disconnects the first network connection established with the server through the mobile data network, to complete the user login; or

若接收单元a10收到的服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开所述通过WLAN与所述服务器建立的第二网络连接,以完成用户登录。If the login response message sent by the server received by the receiving unit a10 is a login success message, the user logs in successfully, and disconnects the second network connection established with the server through the WLAN to complete the user login.

在一些可行的实施例中,处理单元a20具体用于:In some possible embodiments, the processing unit a20 is specifically configured to:

在移动数据网络中发起网络注册,若网络注册成功,则通过移动数据网络与服务器建立所述第一网络连接;Initiating network registration in the mobile data network, and if the network registration is successful, establishing the first network connection with the server through the mobile data network;

在WLAN中发起安全认证,若安全认证成功,则通过WLAN与服务器建立第二网络连接;或者,在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与服务器建立第二网络连接。The security authentication is initiated in the WLAN. If the security authentication succeeds, the second network connection is established with the server through the WLAN. Alternatively, the network registration is initiated in the mobile data network. If the network registration is successful, the second network connection is established with the server through the WLAN.

可见,本发明实施例提供的技术方案可以避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention can prevent the network attacker from intercepting the complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例六提供了另一种终端设备,用于实现本发明提出的一种双连接安全通讯的方法。参见图8,该设备b00包括处理器b10、存储器b20、总线系统b30、接收器b40和发送器b50。其中,处理器b10、存储器b20、接收器b40和发送器b50通过总线系统b30相连,该存储器b20用于存储指令,该处理器b10用于执行该存储器b20存储的指令,以控制接收器b40接收信号,并控制发送器b50发送信号,完成上述移动支付方法中的步骤。其中,接收器b40和发送器b50可以为相同或者不同的物理实体。Embodiment 6 of the present invention provides another terminal device for implementing a dual connectivity secure communication method proposed by the present invention. Referring to Figure 8, the device b00 includes a processor b10, a memory b20, a bus system b30, a receiver b40, and a transmitter b50. The processor b10, the memory b20, the receiver b40 and the transmitter b50 are connected by a bus system b30 for storing instructions for executing the instructions stored in the memory b20 to control the receiver b40 to receive. Signal, and control transmitter b50 to send a signal to complete the steps in the above mobile payment method. The receiver b40 and the transmitter b50 may be the same or different physical entities.

该设备b00完成的方法步骤至少可以包括:The method steps performed by the device b00 may at least include:

当接收到用户发送的服务器登录指令后,通过移动数据网络与服务器建立第一网络连接,通过无线局域网WLAN与服务器建立第二网络连接;After receiving the server login command sent by the user, establishing a first network connection with the server through the mobile data network, and establishing a second network connection with the server through the wireless local area network WLAN;

根据服务器登录指令生成向服务器发送的登录请求消息,将登录请求消息拆分为第一请求数据包和第二请求数据包,在第一网络连接上向服务器发送第一请求数据包,在第二网络连接上向服务器发送第二请求数据包;Generating a login request message sent to the server according to the server login instruction, splitting the login request message into the first request data packet and the second request data packet, and transmitting the first request data packet to the server on the first network connection, in the second Sending a second request packet to the server on the network connection;

从第一网络连接上接收服务器发送的第一应答数据包,从第二网络连接上接收服务器发送的第二应答数据包,将第一应答数据包和第二应答数据包合并为服务器发送的登录应答消息,以完成用户登录。 Receiving, by the first network connection, the first response data packet sent by the server, receiving the second response data packet sent by the server from the second network connection, and combining the first response data packet and the second response data packet into the login sent by the server. Answer the message to complete the user login.

上述终端设备所涉及的与本发明实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或实施例中关于这些内容的描述,此处不做赘述。For the concepts, explanations, detailed descriptions and other steps related to the technical solutions provided by the embodiments of the present invention, refer to the descriptions of the foregoing methods or embodiments, and no further details are provided herein.

本发明实施例七提供了一种服务器设备,用于实现本发明提出的一种双连接安全通讯的方法。参见图9,所述设备c00可包括处理单元c10、接收单元c20和发送单元c30。Embodiment 7 of the present invention provides a server device for implementing a dual-connection secure communication method proposed by the present invention. Referring to FIG. 9, the device c00 may include a processing unit c10, a receiving unit c20, and a transmitting unit c30.

处理单元c10,用于通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接;The processing unit c10 is configured to establish a first network connection with the terminal by using the mobile data network, and establish a second network connection with the terminal by using the WLAN;

接收单元c20,用于从第一网络连接上接收终端发送的第一请求数据包,从第二网络连接上接收终端发送的第二请求数据包;The receiving unit c20 is configured to receive, by the first network connection, the first request data packet sent by the terminal, and receive the second request data packet sent by the terminal from the second network connection;

处理单元c10还用于,合并接收单元c20收到的第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息;并且,根据登录请求消息生成向终端发送的登录应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包;The processing unit c10 is further configured to: merge the first request data packet and the second request data packet received by the receiving unit c20 to obtain a login request message sent by the terminal; and generate a login response message sent to the terminal according to the login request message, Splitting the login response message into a first response data packet and a second response data packet;

发送单元c30,用于在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包,以完成用户登录。The sending unit c30 is configured to send a first response data packet to the terminal on the first network connection, and send a second response data packet to the terminal on the second network connection to complete the user login.

登录应答消息包括登录成功消息或登录失败消息,在一些可行的实施方式中,处理单元c10还用于:The login response message includes a login success message or a login failure message. In some possible implementations, the processing unit c10 is further configured to:

若登录应答消息为登录失败消息,则用户登录失败,断开通过移动数据网络与终端建立的第一网络连接,并且断开通过WLAN与终端建立的第二网络连接,以结束用户登录;If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established with the terminal through the mobile data network, and disconnects the second network connection established with the terminal through the WLAN to end the user login;

若登录应答消息为登录成功消息,则用户登录成功,断开通过移动数据网络与终端建立的第一网络连接,以完成用户登录;或者,If the login response message is a login success message, the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete the user login; or

若登录应答消息为登录成功消息,则用户登录成功,断开通过WLAN与终端建立的第二网络连接,以完成用户登录。If the login response message is a login success message, the user logs in successfully, and disconnects the second network established by the WLAN with the terminal to complete the user login.

可见,本发明实施例提供的技术方案能够避免网络攻击者在网络设备中截获用户的完整通信消息,从而增强用户跟服务器登录方式的安全性。It can be seen that the technical solution provided by the embodiment of the present invention can prevent a network attacker from intercepting a complete communication message of the user in the network device, thereby enhancing the security of the user and the server login mode.

本发明实施例七提供了另一种服务器设备,用于实现本发明提出的一种双连接安全通讯的方法。参见图10,该设备d00包括处理器d10、存储器d20、 总线系统d30、接收器d40和发送器d50。其中,处理器d10、存储器d20、接收器d40和发送器d50通过总线系统d30相连,该存储器d20用于存储指令,该处理器d10用于执行该存储器d20存储的指令,以控制接收器d40接收信号,并控制发送器d50发送信号,完成上述移动支付方法中的步骤。其中,接收器d40和发送器d50可以为相同或者不同的物理实体。Embodiment 7 of the present invention provides another server device for implementing a dual connectivity secure communication method proposed by the present invention. Referring to FIG. 10, the device d00 includes a processor d10, a memory d20, Bus system d30, receiver d40 and transmitter d50. The processor d10, the memory d20, the receiver d40 and the transmitter d50 are connected by a bus system d30 for storing instructions, and the processor d10 is configured to execute the instructions stored in the memory d20 to control the receiver d40 to receive Signal, and control the transmitter d50 to send a signal to complete the steps in the above mobile payment method. The receiver d40 and the transmitter d50 may be the same or different physical entities.

该设备d00完成的方法步骤至少可以包括:The method steps performed by the device d00 may at least include:

通过移动数据网络与终端建立第一网络连接,通过WLAN与终端建立第二网络连接;Establishing a first network connection with the terminal through the mobile data network, and establishing a second network connection with the terminal through the WLAN;

从第一网络连接上接收终端发送的第一请求数据包,从第二网络连接上接收终端发送的第二请求数据包,合并第一请求数据包和第二请求数据包,以得到终端发送的登录请求消息;Receiving, by the first network connection, the first request data packet sent by the terminal, receiving the second request data packet sent by the terminal from the second network connection, and combining the first request data packet and the second request data packet, to obtain the sent by the terminal. Login request message;

根据登录请求消息生成向终端发送的登录应答消息,将登录应答消息拆分为第一应答数据包和第二应答数据包,在第一网络连接上向终端发送第一应答数据包,在第二网络连接上向终端发送第二应答数据包,以完成用户登录。Generating a login response message sent to the terminal according to the login request message, splitting the login response message into the first response data packet and the second response data packet, and transmitting the first response data packet to the terminal on the first network connection, in the second The second response packet is sent to the terminal on the network connection to complete the user login.

上述服务器设备所涉及的与本发明实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或实施例中关于这些内容的描述,此处不做赘述。For the concepts, explanations, detailed descriptions and other steps related to the technical solutions provided by the embodiments of the present invention, refer to the descriptions of the foregoing methods or embodiments, and no further details are provided herein.

本领域普通技术人员将会理解,本发明的各个方面、或各个方面的可能实现方式可以被具体实施为系统、方法或者计算机程序产品。此外,本发明的各方面、或各个方面的可能实现方式可以采用计算机程序产品的形式,计算机程序产品是指存储在计算机可读介质中的计算机可读程序代码。Those of ordinary skill in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, may be embodied as a system, method, or computer program product. Furthermore, aspects of the invention, or possible implementations of various aspects, may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.

计算机可读介质可以是计算机可读数据介质或者计算机可读存储介质。计算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、设备或者装置,或者前述的任意适当组合,如随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、光纤、便携式只读存储器(CD-ROM)。The computer readable medium can be a computer readable data medium or a computer readable storage medium. The computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).

计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代码,使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作;生成实施在框图的每一块、或各块的组合中规定的功能动作的装置。 The processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step of the flowchart, or a combination of steps; A device that functions as specified in each block, or combination of blocks.

计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算机上执行、作为单独的软件包、部分在用户的本地计算机上并且部分在远程计算机上,或者完全在远程计算机或者服务器上执行。也应该注意,在某些替代实施方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注明的顺序发生。例如,依赖于所涉及的功能,接连示出的两个步骤、或两个块实际上可能被大致同时执行,或者这些块有时候可能被以相反顺序执行。The computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's local computer and partly on the remote computer, or entirely on the remote computer or server. carried out. It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,所述功能单元的划分,仅仅为一种逻辑功能划分,具体实现时可能有其他的划分方式,例如多个单元可以结合到同一个子系统或模块中实现,或将一个单元拆分成几个单元实现,或一些实现特征可以忽略或不执行。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. The division of the functional units is only a logical function division. In the specific implementation, there may be other division manners, for example, multiple units may be combined into the same subsystem. Or implemented in a module, or split a unit into several unit implementations, or some implementation features can be ignored or not executed.

以上对本发明实施例公开的一种双连接安全通讯的方法、装置及设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The method, device and device for dual-connection secure communication disclosed in the embodiments of the present invention are described in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiments is only used for To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. It should not be construed as limiting the invention.

Claims (10)

一种双连接安全通讯的方法,用于终端设备,其特征在于,所述方法包括:A method for dual-connection secure communication, for a terminal device, characterized in that the method comprises: 当接收到用户发送的服务器登录指令后,通过移动数据网络与所述服务器建立第一网络连接,通过无线局域网WLAN与所述服务器建立第二网络连接;After receiving the server login command sent by the user, establishing a first network connection with the server through the mobile data network, and establishing a second network connection with the server through the wireless local area network WLAN; 根据所述服务器登录指令生成向服务器发送的登录请求消息,将所述登录请求消息拆分为第一请求数据包和第二请求数据包,在所述第一网络连接上向所述服务器发送所述第一请求数据包,在所述第二网络连接上向所述服务器发送第二请求数据包;Generating a login request message sent to the server according to the server login instruction, splitting the login request message into a first request data packet and a second request data packet, and transmitting the information to the server on the first network connection Determining, by the first request data packet, a second request data packet to the server on the second network connection; 从所述第一网络连接上接收所述服务器发送的第一应答数据包,从所述第二网络连接上接收所述服务器发送的第二应答数据包,将所述第一应答数据包和所述第二应答数据包合并为所述服务器发送的登录应答消息,以完成用户登录。Receiving, by the first network connection, a first response data packet sent by the server, receiving, by the second network connection, a second response data packet sent by the server, and using the first response data packet and the The second response data packet is merged into a login response message sent by the server to complete the user login. 根据权利要求1所述的方法,其特征在于,所述登录应答消息包括登录成功消息或登录失败消息;The method according to claim 1, wherein the login response message comprises a login success message or a login failure message; 在所述将所述第一应答数据包和所述第二应答数据包合并为所述服务器发送的登录应答消息之后,所述方法还包括:After the first response data packet and the second response data packet are merged into the login response message sent by the server, the method further includes: 若所述服务器发送的登录应答消息为登录失败消息,则用户登录失败,断开所述通过移动数据网络与所述服务器建立的第一网络连接,并且断开所述通过WLAN与所述服务器建立的第二网络连接,以结束用户登录;If the login response message sent by the server is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the server and establishes the server through the WLAN. Second network connection to end user login; 若所述服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开所述通过移动数据网络与所述服务器建立的第一网络连接,以完成用户登录;或者,If the login response message sent by the server is a login success message, the user successfully logs in, and disconnects the first network connection established by the mobile data network with the server to complete the user login; or 若所述服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开所述通过WLAN与所述服务器建立的第二网络连接,以完成用户登录。If the login response message sent by the server is a login success message, the user logs in successfully, and disconnects the second network connection established by the server with the server to complete the user login. 根据权利要求1所述的方法,其特征在于,在所述通过移动数据网络与所述服务器建立第一网络连接之前,所述方法还包括:The method of claim 1, wherein before the establishing a first network connection with the server via the mobile data network, the method further comprises: 在移动数据网络中发起网络注册,若网络注册成功,则通过所述移动数据 网络与所述服务器建立所述第一网络连接;Initiating network registration in the mobile data network, and if the network registration is successful, passing the mobile data Establishing, by the network, the first network connection with the server; 在所述通过WLAN与所述服务器建立第二网络连接之前,所述方法还包括:Before the establishing a second network connection with the server by using the WLAN, the method further includes: 在WLAN中发起安全认证,若安全认证成功,则通过WLAN与所述服务器建立所述第二网络连接;或者,在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与所述服务器建立所述第二网络连接。Initiating security authentication in the WLAN, if the security authentication is successful, establishing the second network connection with the server through the WLAN; or initiating network registration in the mobile data network, and if the network registration is successful, using the WLAN and the server Establishing the second network connection. 一种双连接安全通讯的方法,用于服务器,其特征在于,包括:A dual-connection secure communication method for a server, comprising: 通过移动数据网络与终端建立第一网络连接,通过WLAN与所述终端建立第二网络连接;Establishing a first network connection with the terminal through the mobile data network, and establishing a second network connection with the terminal through the WLAN; 从所述第一网络连接上接收所述终端发送的第一请求数据包,从所述第二网络连接上接收所述终端发送的第二请求数据包,合并所述第一请求数据包和所述第二请求数据包,以得到所述终端发送的登录请求消息;Receiving, by the first network connection, a first request data packet sent by the terminal, receiving, by using the second network connection, a second request data packet sent by the terminal, and combining the first request data packet and the Determining a second request packet to obtain a login request message sent by the terminal; 根据所述登录请求消息生成向终端发送的登录应答消息,将所述登录应答消息拆分为第一应答数据包和第二应答数据包,在所述第一网络连接上向所述终端发送第一应答数据包,在所述第二网络连接上向所述终端发送第二应答数据包,以完成用户登录。Generating a login response message sent to the terminal according to the login request message, splitting the login response message into a first response data packet and a second response data packet, and transmitting the first response to the terminal on the first network connection And in response to the data packet, sending a second response data packet to the terminal on the second network connection to complete user login. 根据权利要求4所述的方法,其特征在于,所述登录应答消息包括登录成功消息或登录失败消息;The method according to claim 4, wherein the login response message comprises a login success message or a login failure message; 所述在所述向所述终端发送第一应答数据包和第二应答数据包的步骤之后,所述方法还包括:After the step of sending the first response data packet and the second response data packet to the terminal, the method further includes: 若所述登录应答消息为登录失败消息,则用户登录失败,断开所述通过所述移动数据网络与所述终端建立的第一网络连接,并且断开所述通过WLAN与所述终端建立的第二网络连接,以结束用户登录;If the login response message is a login failure message, the user fails to log in, disconnects the first network connection established by the mobile data network with the terminal, and disconnects the establishment established by the WLAN with the terminal. Second network connection to end user login; 若所述登录应答消息为登录成功消息,则用户登录成功,断开所述通过所述移动数据网络与所述终端建立的第一网络连接,以完成用户登录;或者,If the login response message is a login success message, the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete user login; or 若所述登录应答消息为登录成功消息,则用户登录成功,断开所述通过WLAN与所述终端建立的第二网络连接,以完成用户登录。If the login response message is a login success message, the user logs in successfully, and disconnects the second network connection established by the WLAN with the terminal to complete the user login. 一种终端设备,其特征在于,包括:A terminal device, comprising: 接收单元,用于接收用户发送的服务器登录指令; a receiving unit, configured to receive a server login instruction sent by the user; 处理单元,用于通过移动数据网络与所述服务器建立第一网络连接,通过WLAN与所述服务器建立第二网络连接;a processing unit, configured to establish a first network connection with the server by using a mobile data network, and establish a second network connection with the server by using a WLAN; 所述处理单元还用于,根据所述接收单元收到的服务器登录指令生成向服务器发送的登录请求消息,将所述登录请求消息拆分为第一请求数据包和第二请求数据包;The processing unit is further configured to: generate a login request message sent to the server according to the server login instruction received by the receiving unit, and split the login request message into a first request data packet and a second request data packet; 发送单元,用于在所述第一网络连接上向所述服务器发送所述第一请求数据包,在所述第二网络连接上向所述服务器发送第二请求数据包;a sending unit, configured to send the first request data packet to the server on the first network connection, and send a second request data packet to the server on the second network connection; 所述接收单元还用于,从所述第一网络连接上接收所述服务器发送的第一应答数据包,从所述第二网络连接上接收所述服务器发送的第二应答数据包;The receiving unit is further configured to receive a first response data packet sent by the server from the first network connection, and receive a second response data packet sent by the server from the second network connection; 所述处理单元还用于,将所述接收单元收到的所述第一应答数据包和所述第二应答数据包合并为所述服务器发送的登录应答消息,以完成用户登录。The processing unit is further configured to merge the first response data packet and the second response data packet received by the receiving unit into a login response message sent by the server, to complete user login. 根据权利要求6所述的设备,其特征在于,所述处理单元还用于:The device according to claim 6, wherein the processing unit is further configured to: 若所述接收单元收到的所述服务器发送的登录应答消息为登录失败消息,则用户登录失败,断开所述通过移动数据网络与所述服务器建立的第一网络连接,并且断开所述通过WLAN与所述服务器建立的第二网络连接,以结束用户登录;If the login response message sent by the server received by the receiving unit is a login failure message, the user fails to log in, disconnects the first network connection established with the server through the mobile data network, and disconnects the Ending the user login by establishing a second network connection with the server through the WLAN; 若所述接收单元收到的所述服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开所述通过移动数据网络与所述服务器建立的第一网络连接,以完成用户登录;或者,If the login response message sent by the server is the login success message, the user successfully logs in, and disconnects the first network connection established by the mobile data network with the server to complete the user login; or, 若所述接收单元收到的服务器发送的登录应答消息为登录成功消息,则用户登录成功,断开所述通过WLAN与所述服务器建立的第二网络连接,以完成用户登录。If the login response message sent by the server received by the receiving unit is a login success message, the user logs in successfully, and disconnects the second network connection established by the server with the server to complete the user login. 根据权利要求6所述的设备,其特征在于,所述处理单元具体用于:The device according to claim 6, wherein the processing unit is specifically configured to: 在移动数据网络中发起网络注册,若网络注册成功,则通过所述移动数据网络与所述服务器建立所述第一网络连接;Initiating network registration in the mobile data network, and if the network registration is successful, establishing the first network connection with the server through the mobile data network; 在WLAN中发起安全认证,若安全认证成功,则通过WLAN与所述服务器建立所述第二网络连接;或者,在移动数据网络中发起网络注册,若网络注册成功,则通过WLAN与所述服务器建立所述第二网络连接。Initiating security authentication in the WLAN, if the security authentication is successful, establishing the second network connection with the server through the WLAN; or initiating network registration in the mobile data network, and if the network registration is successful, using the WLAN and the server Establishing the second network connection. 一种服务器设备,其特征在于,包括: A server device, comprising: 处理单元,用于通过移动数据网络与终端建立第一网络连接,通过WLAN与所述终端建立第二网络连接;a processing unit, configured to establish a first network connection with the terminal through the mobile data network, and establish a second network connection with the terminal by using the WLAN; 接收单元,用于从所述第一网络连接上接收所述终端发送的第一请求数据包,从所述第二网络连接上接收所述终端发送的第二请求数据包;a receiving unit, configured to receive, by using the first network connection, a first request data packet sent by the terminal, and receive, by using the second network connection, a second request data packet sent by the terminal; 所述处理单元还用于,合并所述接收单元收到的所述第一请求数据包和所述第二请求数据包,以得到所述终端发送的登录请求消息;并且,根据所述登录请求消息生成向终端发送的登录应答消息,将所述登录应答消息拆分为第一应答数据包和第二应答数据包;The processing unit is further configured to merge the first request data packet and the second request data packet received by the receiving unit to obtain a login request message sent by the terminal; and, according to the login request The message generates a login response message sent to the terminal, and splits the login response message into a first response data packet and a second response data packet; 发送单元,用于在所述第一网络连接上向所述终端发送第一应答数据包,在所述第二网络连接上向所述终端发送第二应答数据包,以完成用户登录。And a sending unit, configured to send a first response data packet to the terminal on the first network connection, and send a second response data packet to the terminal on the second network connection to complete user login. 根据权利要求9所述的设备,其特征在于,所述登录应答消息包括登录成功消息或登录失败消息;The device according to claim 9, wherein the login response message comprises a login success message or a login failure message; 所述处理单元还用于:The processing unit is further configured to: 若所述登录应答消息为服务器登录失败消息,则用户登录失败,断开所述通过所述移动数据网络与所述终端建立的第一网络连接,并且断开所述通过WLAN与所述终端建立的第二网络连接,以结束用户登录;If the login response message is a server login failure message, the user fails to log in, disconnects the first network connection established by the mobile data network with the terminal, and disconnects the establishment of the terminal through the WLAN. Second network connection to end user login; 若所述登录应答消息为登录成功消息,则用户登录成功,断开所述通过所述移动数据网络与所述终端建立的第一网络连接,以完成用户登录;或者,If the login response message is a login success message, the user logs in successfully, and disconnects the first network connection established by the mobile data network with the terminal to complete user login; or 若所述登录应答消息为登录成功消息,则用户登录成功,断开所述通过WLAN与所述终端建立的第二网络连接,以完成用户登录。 If the login response message is a login success message, the user logs in successfully, and disconnects the second network connection established by the WLAN with the terminal to complete the user login.
PCT/CN2015/085860 2015-07-22 2015-07-31 Dual-connection security communication method and apparatus Ceased WO2017012142A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510434054.3 2015-07-22
CN201510434054.3A CN105578463B (en) 2015-07-22 2015-07-22 Method and device for dual connection secure communication

Publications (1)

Publication Number Publication Date
WO2017012142A1 true WO2017012142A1 (en) 2017-01-26

Family

ID=55888020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085860 Ceased WO2017012142A1 (en) 2015-07-22 2015-07-31 Dual-connection security communication method and apparatus

Country Status (2)

Country Link
CN (1) CN105578463B (en)
WO (1) WO2017012142A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965630A (en) * 2021-10-25 2022-01-21 深圳市元征科技股份有限公司 UDP connection method, electronic equipment and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162568A (en) * 2016-06-06 2016-11-23 深圳市贝美互动科技有限公司 Internet of things equipment and networked deployment method, intelligent terminal and Internet of things system
CN106209833A (en) * 2016-07-08 2016-12-07 汉柏科技有限公司 A kind of method preventing webpage from kidnapping and gateway
CN106779648B (en) * 2016-12-16 2020-10-16 Oppo广东移动通信有限公司 Network data sending method and mobile terminal
CN108811034A (en) 2017-05-05 2018-11-13 中兴通讯股份有限公司 Message transmission method and device
CN110120932B (en) 2018-02-06 2020-10-23 华为技术有限公司 Multipath establishing method and device
CN111107093B (en) * 2019-12-25 2022-07-19 苏州达家迎信息技术有限公司 Application login method, device, terminal and storage medium
CN111432444B (en) * 2020-03-06 2022-04-19 宇龙计算机通信科技(深圳)有限公司 Network connection method, device, storage medium and terminal
CN114125031B (en) * 2022-01-28 2022-06-21 南湖实验室 Broadcast response method and system based on internet regional linkage

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684410A (en) * 2004-04-13 2005-10-19 株式会社日立制作所 Encrypted backup method and decryption recovery method
CN1852284A (en) * 2006-04-11 2006-10-25 潘国纲 Network parallel data transmission method
EP2273417A2 (en) * 2009-06-23 2011-01-12 Uniloc Usa, Inc. Device authority for authenticating a user of an on-line service
CN103780375A (en) * 2012-10-19 2014-05-07 中国电信股份有限公司 Data transmitting method and device, and data receiving method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG136120A1 (en) * 2004-01-28 2007-10-29 Univ Singapore Systems and methods for communication
CN1960300A (en) * 2005-11-01 2007-05-09 华为技术有限公司 Method and system of access registration in intercommunicated wireless local area network
CN103493398B (en) * 2011-06-03 2017-05-03 Sk电信有限公司 device and method for simultaneous data transmission service in heterogeneous network
KR101437364B1 (en) * 2011-07-19 2014-09-03 에스케이텔레콤 주식회사 Transmission device and receiving device and operation method thereof
CN102368768B (en) * 2011-10-12 2014-04-02 北京星网锐捷网络技术有限公司 Identification method, equipment and system as well as identification server
CN103501293B (en) * 2013-09-25 2017-06-13 国网重庆市电力公司 The authentication method that trusted end-user is accessed in a kind of intelligent grid
CN104202346A (en) * 2014-09-29 2014-12-10 联想(北京)有限公司 Method for handling network connection request and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684410A (en) * 2004-04-13 2005-10-19 株式会社日立制作所 Encrypted backup method and decryption recovery method
CN1852284A (en) * 2006-04-11 2006-10-25 潘国纲 Network parallel data transmission method
EP2273417A2 (en) * 2009-06-23 2011-01-12 Uniloc Usa, Inc. Device authority for authenticating a user of an on-line service
CN103780375A (en) * 2012-10-19 2014-05-07 中国电信股份有限公司 Data transmitting method and device, and data receiving method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965630A (en) * 2021-10-25 2022-01-21 深圳市元征科技股份有限公司 UDP connection method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105578463A (en) 2016-05-11
CN105578463B (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN105578463B (en) Method and device for dual connection secure communication
US10412083B2 (en) Dynamically generated SSID
EP3021549B1 (en) Terminal authentication apparatus and method
CN107534651B (en) Method and apparatus for communicating session identifier
EP2815551B1 (en) Peer to peer networking and sharing systems and methods
US11297107B2 (en) Message queuing telemetry transport (MQTT) data transmission method, apparatus, and system
US9319439B2 (en) Secured wireless session initiate framework
CN102843682A (en) Access point authorizing method, device and system
CN107005534A (en) Secure connection is set up
CN104426837A (en) Application specific packet filter method and device of file transfer protocol
JP5068495B2 (en) Distributed authentication function
US11405362B2 (en) Apparatus and method for secure communication over restricted network
CN102104872A (en) Method, device and system for securely accessing WAPI network
CN107113278B (en) Method, device and system for establishing neighbors
CN111586017A (en) Communication user authentication method and device
CN107566418B (en) Security management method and access device
US11178542B1 (en) Method and system for secure device-to-device data communications
CN118802320B (en) Network access methods, devices, electronic equipment, storage media and products
US20250351013A1 (en) System and method for optimized authentication in communication networks
CN120567542A (en) Authentication method and device
CN103108325A (en) Method of information safety transmission and system thereof and access service node
CN114389880A (en) A cross-cloud pool security access method and system combined with the idea of zero trust
CN106162633A (en) A kind of cipher key transmission methods and device
CN105812416A (en) Method and system for transmitting files between different networks
CN101662473A (en) User equipment authentication method, authentication equipment and trunk equipment

Legal Events

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

Ref document number: 15898698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15898698

Country of ref document: EP

Kind code of ref document: A1