CN112398943A - Information intercommunication method and device, storage medium and electronic equipment - Google Patents

Information intercommunication method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112398943A
CN112398943A CN202011272644.8A CN202011272644A CN112398943A CN 112398943 A CN112398943 A CN 112398943A CN 202011272644 A CN202011272644 A CN 202011272644A CN 112398943 A CN112398943 A CN 112398943A
Authority
CN
China
Prior art keywords
information
network access
access equipment
network
connection
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.)
Granted
Application number
CN202011272644.8A
Other languages
Chinese (zh)
Other versions
CN112398943B (en
Inventor
李雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011272644.8A priority Critical patent/CN112398943B/en
Publication of CN112398943A publication Critical patent/CN112398943A/en
Application granted granted Critical
Publication of CN112398943B publication Critical patent/CN112398943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/14Mobility data transfer between corresponding nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

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

Abstract

The embodiment of the application discloses an information intercommunication method, an information intercommunication device, a storage medium and electronic equipment, wherein after the electronic equipment and network access equipment establish network connection, TCP connection is initiated to the network access equipment through a preset port; if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol; receiving first capability information sent by the network access equipment in response to the first information intercommunication request; and when a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol is received, responding to the second information intercommunication request, and sending second capability information to the network access equipment. In this way, the electronic device and the network access device mutually confirm the network connection mode supported by the opposite terminal before establishing the network, and subsequently, when transmitting data, the electronic device and the network access device can select the network connection mode supported together to establish corresponding network connection and perform data transmission.

Description

Information intercommunication method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information interworking method, apparatus, storage medium, and electronic device.
Background
The Multi Path Transmission Control Protocol (MPTCP) is an extended protocol of the TCP, and the MPTCP can improve the utilization rate of resources by parallel transmission of multiple TCP connections. For example: when a user watches videos, the mobile phone establishes a plurality of TCP connections through a plurality of network access points and simultaneously transmits data streams, so that the advantages of larger aggregate bandwidth and higher downloading rate are provided. At present, MPTCP needs to be supported by both a terminal device side and a router side, and if one side does not support the MPTCP, MPTCP connection cannot be successfully established.
Disclosure of Invention
The embodiment of the application provides an information intercommunication method, an information intercommunication device, a storage medium and electronic equipment, which can perform capability intercommunication between the electronic equipment and network access equipment to determine a network connection mode which can be supported by two ends.
In a first aspect, an embodiment of the present application provides an information interworking method, which is applied to an electronic device, and the method includes:
after establishing network connection with the network access equipment, initiating TCP connection to the network access equipment through a preset port;
if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol;
receiving first capability information sent by the network access equipment in response to the first information interworking request, wherein the first capability information represents a network connection mode supported by the network access equipment;
when a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol is received, responding to the second information intercommunication request, and sending second capability information to the network access equipment, wherein the second capability information represents a network connection mode supported by the electronic equipment.
In a second aspect, an embodiment of the present application further provides an information interworking apparatus, including:
the connection initiating module is used for initiating TCP connection to the network access equipment through a preset port after network connection is established with the network access equipment;
the intercommunication request module is used for sending a first information intercommunication request to the network access equipment according to an information intercommunication protocol if the TCP connection is successfully established;
an information receiving module, configured to receive first capability information sent by the network access device in response to the first information interworking request, where the first capability information represents a network connection mode supported by the network access device;
and the information sending module is used for responding to a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol and sending second capacity information to the network access equipment when receiving the second information intercommunication request, wherein the second capacity information represents a network connection mode supported by the electronic equipment.
In a third aspect, an embodiment of the present application further provides an information interworking method, which is applied to a network access device, and the method includes:
establishing a TCP connection with the electronic equipment based on a preset port;
when a first information intercommunication request sent by the electronic equipment based on an information intercommunication protocol is received, responding to the first information intercommunication request, and sending first capability information to the electronic equipment, wherein the first capability information represents a network connection mode supported by the network access equipment;
sending a second information intercommunication request to the electronic equipment according to the information intercommunication protocol;
and receiving second capability information sent by the electronic equipment in response to the second information interworking request, wherein the second capability information represents a network connection mode supported by the electronic equipment.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the information interworking method provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the information interworking method provided in any embodiment of the present application by calling the computer program.
According to the technical scheme provided by the embodiment of the application, after the network connection is established between the electronic equipment and the network access equipment, the TCP connection is initiated to the network access equipment through the preset port, if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol to obtain first capacity information of the network access equipment, similarly, the network access equipment also sends a second information intercommunication request to the electronic equipment according to the information intercommunication protocol to obtain second capacity information of the electronic equipment, the network connection mode supported by the opposite end is mutually confirmed before the network is established between the electronic equipment and the network access equipment through the mode, and subsequently, when data is transmitted, the network connection mode supported together can be selected to establish corresponding network connection and perform data transmission.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of an information interworking method according to an embodiment of the present application.
Fig. 2 is a schematic view of an application scenario of an information interworking method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an information interworking apparatus according to an embodiment of the present application.
Fig. 4 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a second structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the information intercommunication method may be the information intercommunication device provided in the embodiment of the present application, or an electronic device integrated with the information intercommunication device, where the information intercommunication device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a first flowchart illustrating an information interworking method according to an embodiment of the present application. The specific process of the information intercommunication method provided by the embodiment of the application can be as follows:
in 101, after establishing a network connection with a network access device, a TCP connection is initiated to the network access device through a preset port.
In 102, if the TCP connection is successfully established, a first interworking request is sent to the network access device according to an interworking protocol.
The scheme of the embodiment of the application provides an information intercommunication protocol, and the information intercommunication protocol is used for information intercommunication between electronic equipment and network access equipment. The network access device may be a device capable of providing a wireless network access service, such as a router, a wireless CPE (Customer Premise Equipment), or a device capable of providing a wired network access service. The following describes a scheme of an embodiment of the present application, taking a network access device as a router and a network connection as a WIFI (Wireless Fidelity) connection as an example.
Since the communication between the electronic device and the router is a local area network communication, the information interworking protocol may be designed based on a C/S (server/client) architecture, where the electronic device is a client and the router is a server. In addition, because the data transmitted between the two devices is generally signaling data, and the requirement on the reliability of data transmission is high, the TCP socket mode can be adopted for communication. The information intercommunication protocol specifies a specific port number of the router to establish TCP connection, and after the TCP connection is successfully established, information intercommunication is carried out according to a preset message format.
For example, the message may adopt a Json (JS Object Notation) format, for example, the format specification of the message is as follows:
1. request message:
{"version":"1.0","method":"get","data":["data1","data2"]}
{"version":"1.0","method":"notify","data":{"data1":"XXX","data2":"XXX"}}
2. replying the message:
{"version":"1.0","method":"reply","error_code":"0","error_msg":"XXX","data":{"data1":"XXX","data2":"XXX"}}
{"version":"1.0","method":"ack","error_code":"0","error_msg":"XXX"}
3. the basic rule is as follows:
1) a primary directory comprising: version, method, error _ code, error _ msg, data. Wherein, version is a protocol version number, method is a message type, error _ code is an abnormal code, error _ msg is abnormal content, and data is data content.
2) method, including the 4 keywords get, notify, reply, ack; get corresponds to reply and notify corresponds to ack. Wherein get indicates that the message type is a request message, reply indicates that the message type is a reply message, notify indicates that the message type is a notification message, and ack indicates that the message type is a response message.
3) When the data is get, the data is an array, and each keyword in the array represents that the data expects to acquire information.
4) When the data gets, an ap _ all _ info is used to represent that all information of an ap (access point) end is obtained. For example, ap is a router.
5) When the data is at get, all information of the electronic equipment side is acquired by using a "sta _ all _ info" mark.
6) data is a child Json in notify/reply.
7) An error _ code is an exception definition after a message processed by a reply end to a sending end, and the default value is 0, which indicates no exception;
8) the error _ msg is a description of a recovery end error _ code and is mainly used for debug (troubleshooting); when error _ code is 0, error _ msg may not be carried in the message.
The traditional TCP only supports single-path transmission, and the introduction of a multi-path transmission mechanism realizes the simultaneous utilization and sharing of multi-host resources on the premise of not changing the basic architecture of the TCP. The principle of MPTCP is that in a resource sharing manner, a data stream can be distributed to multiple parallel paths for simultaneous transmission, so as to improve the bandwidth of a network. That is, the multipath communication protocol allows multiple links to be established between two communicating parties simultaneously for data transmission, and there are multiple ways to select a link when data transmission is performed using the multiple links.
The link in MPTCP may be established through a WIFI network or a cellular network, and the network access device may be a router, a base station, or other devices capable of providing network access services. For example, in one embodiment, the two communication parties are an electronic device and a router, and the MPTCP connection here mainly refers to an MPTCP connection between the electronic device and an router, and the MPTCP connection is composed of a plurality of TCP connections. The MPTCP connection may have a plurality of data transmission modes, such as an aggregation transmission mode, a redundancy transmission mode, and a backup transmission mode.
In the aggregation transmission mode, at least two links are used for transmitting a plurality of data packets of a message at the same time, one data packet is transmitted only through one link, and at least two links transmit different data packets. After the data stream transmitted by the upper layer application is split into a plurality of data packets, different data packets can be simultaneously transmitted through two links. The aggregation transmission mode can save network resources, furthest utilize broadband resources to improve data transmission efficiency, and is suitable for application programs with large data flow or high requirements on data real-time performance. If the data sent by the electronic device and received by the router is the multi-link aggregation transmission, the data transmitted to the electronic device is also transmitted in a multi-link aggregation transmission mode.
In the redundant transmission mode, two links are used simultaneously to transmit the same data packet. That is, one data packet is repeatedly transmitted through a plurality of links, and this transmission mode can ensure the reliability of data and reduce the burden of the receiving end. However, the transmission mode requires that the gateways of the two connected WIFI hotspots are the same, and the router side performs deduplication processing on at least two paths of received data and then sends the data to the server. And after receiving the data sent by the server, the router also needs to transmit the data to the electronic device according to the redundancy mode, and after receiving the data, the electronic device also needs to perform deduplication processing on the received data packet and then sends the data packet to the upper layer application.
In the standby transmission mode, although two or more links are established, only one link is generally selected for transmitting data packets, but when the currently used link is detected to be out of service requirements, the other link is switched to transmit data packets. After the new link is switched, if the data packet of the application program is received again next time, the switched link can be used for data transmission.
In the three transmission modes, the processing requirements of the electronic device on data are different, and therefore, the electronic device can set one or more supportable transmission modes according to needs.
If the electronic equipment selects to transmit data according to a certain network connection mode, information can be communicated with the connected router before data transmission to determine whether the other party supports the network connection mode, so that a transmission mode with higher efficiency or higher reliability is selected to transmit the data.
For example, if the electronic device supports dual WIFI functionality, the electronic device may establish an MPTCP connection with a router that supports MPTCP connections. For example, the electronic device may establish two links with two WIFI hotspots at the same time, assuming that one 2.4GHz hotspot and one 5GHz hotspot have no interference between different frequency bands, and may concurrently and independently receive and transmit data, where the two hotspots may be of the same router (e.g., a home dual-frequency router) or of different routers. When two hotspots belong to the same router, redundant transmission of data can be performed between the electronic device and the router.
The capability information of the device represents a network connection mode supported by the device, the capability information of the router is recorded as first capability information, and the capability information of the electronic device is recorded as second capability information. For example, the first capability information is: the MPTCP connection indicates that the electronic device supports the MPTCP connection. For another example, the first capability information is: the aggregate transmission mode of the MPTCP connection indicates that the electronic device supports the MPTCP connection, but can only transmit data according to the aggregate transmission mode.
Referring to fig. 2, fig. 2 is a scene diagram illustrating an information interworking method according to an embodiment of the present application. After the electronic device establishes the WIFI connection with the router, for example, after a DHCP (Dynamic Host Configuration Protocol) process is finished, the electronic device initiates a TCP connection to the router through a preset port, where the preset port is a port specified by an information interworking Protocol.
If the TCP connection is successfully established, the subsequent information intercommunication is continued, and a first information intercommunication request is initiated to the router according to the message format specified by the information intercommunication protocol. If the TCP connection establishment fails, the electronic device may determine that the router does not support the interworking protocol. Subsequent information interworking is not performed.
In 103, first capability information sent by the network access device in response to the first information interworking request is received, where the first capability information characterizes a network connection mode supported by the network access device.
At 104, when a second information interworking request sent by the network access device according to the information interworking protocol is received, second capability information is sent to the network access device in response to the second information interworking request, where the second capability information represents a network connection mode supported by the electronic device.
Referring to fig. 2, after receiving the first information interworking request, the router responds to the capability information requested by the electronic device according to the message format specified by the information interworking protocol. Then, the router sends a second information intercommunication request to the electronic equipment according to the message format specified by the information intercommunication protocol, and the electronic equipment responds to the capability information requested by the router after receiving the request.
Wherein, in some embodiments, the network connection mode is an MPTCP connection; after establishing WIFI connection with the router, initiating TCP connection to the router through a preset port, including: after the WIFI connection with the first access point of the router is established, TCP connection is initiated to the router through the preset port.
After the sending the second capability information to the network access device, the method further includes:
if the network connection mode supported by the electronic equipment and the wireless network access equipment is determined to be a multi-path transmission control protocol (MPTCP) connection according to the first capability information and the second capability information, triggering the MPTCP connection with the network access equipment when detecting that the network connection is established with at least one second access point of the network access equipment, and transmitting data based on the MPTCP connection.
For a router with at least two access points (hotspots), after the electronic device establishes a WIFI connection with a first access point of the router, capability intercommunication is performed according to the above information intercommunication protocol to confirm a commonly supported network connection mode. For example, the first capability information is: the MPTCP connection is connected to the MPUDP (multi path User Datagram Protocol), and the second capability information is: MPTCP connection. It can be determined that the network connection mode commonly supported by the electronic device and the router is an MPTCP connection. For another example, in some embodiments, the first capability information is: the second capability information of the redundant transmission mode of the MPTCP connection is: redundant transmission mode of MPTCP connection. It can thus be determined that both the electronic device and the router support an MPTCP connection and that the transmission of data can be performed in accordance with the redundant transmission mode of the MPTCP connection.
After that, if the electronic device detects that the WIFI connection is also established with the at least one second access point of the router, the electronic device may send notification information to the router based on the information interworking protocol, where the notification information is used to notify the router that the WIFI connection is established next time. Then, an MPTCP connection between the router and the MPTCP is triggered, and data transmission is carried out based on the MPTCP connection.
For a router capable of providing multiple WIFI hotspots simultaneously, one of the WIFI hotspots can be regarded as a main WIFI and recorded as a first access point, and the other WIFI hotspots can be regarded as a secondary WIFI and recorded as a second access point. For example, the router may provide two access points, the frequency bands of which are 2.4GHz and 5GHz, respectively, and the two frequency bands do not interfere with each other and transmit data together. MPTCP connection is established between the electronic equipment and the router based on two hot spots, and data redundant transmission is carried out according to a redundant transmission mode. Or in other embodiments, when it is detected that the device accesses the WIFI network, the electronic device may further use the first connected WIFI hotspot as the first access point, and use the second connected WIFI hotspot as the second access point.
In some embodiments, after the sending the first information interworking request to the network access device according to the information interworking protocol between the electronic device and the network access device, the method further includes: and if the network access equipment does not respond to the first information intercommunication request within a preset time length, releasing the TCP connection.
It can be understood that if the network access device does not receive the response information returned by the router within 3 seconds in the preset market after initiating the first information interworking request, it is determined that the router does not support the information interworking protocol, and the TCP connection can be actively released.
Wherein, in some embodiments, the method further comprises: and when the disconnection of the WIFI connection is detected, emptying the stored first capability information of the network access equipment.
In this embodiment, after the WIFI connection is disconnected, the electronic device clears the stored capability information of the router, and performs information intercommunication again when the router is connected next time. Therefore, the problem that the matching of the capability information is wrong due to the fact that the SSIDs (Service Set identifiers) of the hot spots are the same can be avoided.
In addition, in some embodiments, if the TCP connection is successfully established, sending a first information interworking request to the network access device according to an information interworking protocol includes:
if the TCP connection is successfully established, a secret key is sent to the network access equipment according to the information intercommunication protocol;
when first message data sent by the network access equipment is received and the key is used for decrypting the first message data to obtain response information, the key is used for encrypting a first information intercommunication request to obtain second message data;
and sending the second message data to the network access equipment, wherein the network access equipment decrypts the second message data by using the secret key to obtain a first information intercommunication request. .
In this embodiment, to improve the security of message transmission, the message between the electronic device and the router is encrypted according to the agreed key.
For example, the electronic device and the network access device encrypt the message in a symmetric encryption manner. Specifically, after the electronic device and the network access device successfully establish the TCP, an AES (Advanced Encryption Standard) key is generated, the key is sent to the router according to a message format specified by an information interworking protocol, the router receives the key and stores the key, and the router sends first message data to the electronic device, where the first message data includes response information encrypted by using the key.
After the electronic equipment receives the first message data, if response information is obtained after information in the first message data is decrypted according to the secret key, a first information intercommunication request is generated, the secret key is used for carrying out encryption processing on the first information intercommunication request, second message data is generated, and the second message data is sent to the network access equipment. And after receiving the second message data, the network access equipment decrypts the second message data according to the stored secret key to obtain the first information intercommunication request.
It can be understood that, in the above process, the router and the electronic device respectively send the first message data and the second message data according to the message format specified by the information interworking protocol.
For another example, in an embodiment, the sending the key to the network access device according to the information interworking protocol includes:
requesting a public key from the network access equipment according to the information intercommunication protocol, wherein the network access equipment generates a key pair comprising the public key and a private key after establishing the TCP connection;
when a public key returned by the network access equipment according to the information intercommunication protocol is received, the public key is used for carrying out encryption processing on the secret key to obtain third message data;
and sending the third message data to the network access equipment, wherein the network access equipment decrypts the received first message data according to the private key to obtain the first secret key.
After the electronic device and the network access device successfully establish the TCP, the electronic device generates an AES key, the router generates an RSA (an asymmetric encryption algorithm) key pair, the key pair comprises a public key and a private key, wherein the public key is sent to the electronic device to be used for encrypting the AES key generated by the electronic device, and the private key is used for decrypting information encrypted by the public key.
Then, the electronic equipment requests the router for the RSA public key, the router returns the RSA public key, the electronic equipment encrypts the AES secret key through the RSA public key to obtain third message data, and the third message data are sent to the router according to a message format specified by the information intercommunication protocol. The router decrypts the third message data by using the RSA private key to obtain an AES key, then sends response information to the electronic equipment, and after receiving the response information, the electronic equipment encrypts the first information intercommunication request by using the key and then sends the first information intercommunication request to the network access equipment.
It can be understood that, in the above process, the electronic devices respectively transmit the third message data according to the message format specified by the information interworking protocol.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the information interworking method provided in the embodiment of the present application, an information interworking scheme based on an information interworking protocol between the electronic device and the router is provided, and if both the electronic device and the router support the protocol, the electronic device and the network access device can mutually confirm a network connection mode supported by an opposite terminal before establishing a network in this way, and subsequently, when transmitting data, the network connection mode supported together can be selected to establish a corresponding network connection and perform data transmission.
In addition, an information interworking method is further provided in an embodiment of the present application, and is applied to a network access device, where the method includes:
establishing a TCP connection with the electronic equipment based on a preset port;
when a first information intercommunication request sent by the electronic equipment based on an information intercommunication protocol is received, responding to the first information intercommunication request, and sending first capability information to the electronic equipment, wherein the first capability information represents a network connection mode supported by the network access equipment;
sending a second information intercommunication request to the electronic equipment according to the information intercommunication protocol;
and receiving second capability information sent by the electronic equipment in response to the second information interworking request, wherein the second capability information represents a network connection mode supported by the electronic equipment.
For a specific implementation of this embodiment, please refer to the above information interworking method applied to the electronic device, which is not described herein again.
In an embodiment, an information interworking apparatus is also provided. Referring to fig. 3, fig. 3 is a schematic structural diagram of an information interworking device 300 according to an embodiment of the present application. The information interworking apparatus 300 is applied to an electronic device, and the information interworking apparatus 300 includes a connection initiating module 301, an interworking request module 302, an information receiving module 303, and an information sending module 304, as follows:
the connection initiating module 301 is configured to initiate a TCP connection to the network access device through a preset port after establishing a network connection with the network access device;
an interworking request module 302, configured to send a first information interworking request to the network access device according to an information interworking protocol if the TCP connection is successfully established;
an information receiving module 303, configured to receive first capability information sent by the network access device in response to the first information interworking request, where the first capability information represents a network connection mode supported by the network access device;
an information sending module 304, configured to send, when receiving a second information interworking request sent by the network access device according to the information interworking protocol, second capability information to the network access device in response to the second information interworking request, where the second capability information represents a network connection mode supported by the electronic device.
In some embodiments, the network connection mode is an MPTCP connection; the connection initiation module 301 is further configured to: after establishing network connection with a first access point of the network access equipment, initiating TCP connection to the network access equipment through a preset port;
the device also includes: and the network transmission module is configured to trigger an MPTCP connection with the network access device when it is detected that a network connection is established with at least one second access point of the network access device, and transmit data based on the MPTCP connection if it is determined that a network connection mode supported by the electronic device and the wireless network access device is an MPTCP connection according to the first capability information and the second capability information.
In some embodiments, the connection initiation module 301 is further configured to: and if the network access equipment does not respond to the first information intercommunication request within a preset time length, releasing the TCP connection.
In some embodiments, the connection initiation module 301 is further configured to: and when the disconnection of the network connection is detected, emptying the stored first capability information of the network access equipment.
In some embodiments, interworking request module 302 is further operable to: if the TCP connection is successfully established, reporting a secret key to the network access equipment; and when response information of the network access equipment based on key encryption is received, the first information intercommunication request is encrypted by using the key and then is sent to the network access equipment.
In some embodiments, interworking request module 302 is further operable to: requesting a public key from the network access device; and when a public key returned by the network access equipment is received, the public key is used for encrypting the secret key and reporting the encrypted secret key to the network access equipment, wherein the network access equipment decrypts the encrypted secret key according to a private key matched with the public key.
It should be noted that the information interworking apparatus provided in the embodiment of the present application and the information interworking method in the above embodiment belong to the same concept, and any method provided in the embodiment of the information interworking method can be implemented by the information interworking apparatus, and the specific implementation process thereof is described in detail in the embodiment of the information interworking method, and is not described herein again.
As can be seen from the above, the information interworking apparatus provided in this embodiment of the present application includes a connection initiation module 301, an interworking request module 302, an information receiving module 303, and an information sending module 304, where after a network connection is established between an electronic device and a network access device, the connection initiation module 301 initiates a TCP connection to the network access device through a preset port, and if the TCP connection is successfully established, the interworking request module 302 sends a first information interworking request to the network access device according to an information interworking protocol to obtain first capability information of the network access device, and similarly, the network access device sends a second information interworking request to the electronic device according to the information interworking protocol to obtain second capability information of the electronic device, and in this way, before the electronic device and the network access device establish a network, a network connection mode supported by an opposite terminal is mutually confirmed, and subsequently when data is transmitted, the network connection modes supported together can be selected to establish corresponding network connection and perform data transmission.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
Memory 402 may be used to store computer programs and data. The memory 402 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
after establishing network connection with the network access equipment, initiating TCP connection to the network access equipment through a preset port;
if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol;
receiving first capability information sent by the network access equipment in response to the first information interworking request, wherein the first capability information represents a network connection mode supported by the network access equipment;
when a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol is received, responding to the second information intercommunication request, and sending second capability information to the network access equipment, wherein the second capability information represents a network connection mode supported by the electronic equipment.
In some embodiments, please refer to fig. 5, and fig. 5 is a second structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 further comprises: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in the drawings, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
after establishing network connection with the network access equipment, initiating TCP connection to the network access equipment through a preset port;
if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol;
receiving first capability information sent by the network access equipment in response to the first information interworking request, wherein the first capability information represents a network connection mode supported by the network access equipment;
when a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol is received, responding to the second information intercommunication request, and sending second capability information to the network access equipment, wherein the second capability information represents a network connection mode supported by the electronic equipment.
Therefore, after the network connection is established by the electronic device network access device, a TCP connection is initiated to the network access device through a preset port, if the TCP connection is successfully established, a first information interworking request is sent to the network access device according to an information interworking protocol to obtain first capability information of the network access device, similarly, the network access device also sends a second information interworking request to the electronic device according to the information interworking protocol to obtain second capability information of the electronic device, by this way, the network connection mode supported by the opposite end is mutually confirmed before the network is established by the electronic device and the network access device, and subsequently, when data is transmitted, the network connection mode supported together can be selected to establish a corresponding network connection and perform data transmission.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer executes the information interworking method described in any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The information interworking method, apparatus, storage medium, and electronic device provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An information intercommunication method applied to electronic equipment is characterized by comprising the following steps:
after establishing network connection with the network access equipment, initiating Transmission Control Protocol (TCP) connection to the network access equipment through a preset port;
if the TCP connection is successfully established, a first information intercommunication request is sent to the network access equipment according to an information intercommunication protocol;
receiving first capability information sent by the network access equipment in response to the first information interworking request, wherein the first capability information represents a network connection mode supported by the network access equipment;
when a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol is received, responding to the second information intercommunication request, and sending second capability information to the network access equipment, wherein the second capability information represents a network connection mode supported by the electronic equipment.
2. The information interworking method of claim 1, wherein the initiating a TCP connection to the network access device through a predetermined port after establishing a network connection with the network access device comprises:
after establishing network connection with a first access point of the network access equipment, initiating TCP connection to the network access equipment through a preset port;
after the sending the second capability information to the network access device, the method further includes:
if the network connection mode supported by the electronic equipment and the wireless network access equipment is determined to be a multi-path transmission control protocol (MPTCP) connection according to the first capability information and the second capability information, triggering the MPTCP connection with the network access equipment when detecting that the network connection is established with at least one second access point of the network access equipment, and transmitting data based on the MPTCP connection.
3. The information interworking method of claim 1, wherein after sending the first information interworking request to the network access device according to an information interworking protocol between the electronic device and the network access device, further comprising:
and if the network access equipment does not respond to the first information intercommunication request within a preset time length, releasing the TCP connection.
4. The information interworking method of claim 1, further comprising:
and when the disconnection of the network connection is detected, emptying the stored first capability information of the network access equipment.
5. The information interworking method of any one of claims 1 through 4, wherein the sending a first information interworking request to the network access device according to an information interworking protocol if the TCP connection is successfully established comprises:
if the TCP connection is successfully established, a secret key is sent to the network access equipment according to the information intercommunication protocol;
when first message data sent by the network access equipment is received and the key is used for decrypting the first message data to obtain response information, the key is used for encrypting a first information intercommunication request to obtain second message data;
and sending the second message data to the network access equipment, wherein the network access equipment decrypts the second message data by using the secret key to obtain a first information intercommunication request.
6. The information interworking method of claim 5, wherein the sending the key to the network access device in accordance with the information interworking protocol comprises:
requesting a public key from the network access equipment according to the information intercommunication protocol, wherein the network access equipment generates a key pair comprising the public key and a private key after establishing the TCP connection;
when a public key returned by the network access equipment according to the information intercommunication protocol is received, the public key is used for carrying out encryption processing on the secret key to obtain third message data;
and sending the third message data to the network access equipment, wherein the network access equipment decrypts the received first message data according to the private key to obtain the first secret key.
7. An information interworking method applied to a network access device is characterized in that the method comprises the following steps:
establishing a TCP connection with the electronic equipment based on a preset port;
when a first information intercommunication request sent by the electronic equipment based on an information intercommunication protocol is received, responding to the first information intercommunication request, and sending first capability information to the electronic equipment, wherein the first capability information represents a network connection mode supported by the network access equipment;
sending a second information intercommunication request to the electronic equipment according to the information intercommunication protocol;
and receiving second capability information sent by the electronic equipment in response to the second information interworking request, wherein the second capability information represents a network connection mode supported by the electronic equipment.
8. An information intercommunication device applied to electronic equipment, the device comprising:
the connection initiating module is used for initiating TCP connection to the network access equipment through a preset port after network connection is established with the network access equipment;
the intercommunication request module is used for sending a first information intercommunication request to the network access equipment according to an information intercommunication protocol if the TCP connection is successfully established;
an information receiving module, configured to receive first capability information sent by the network access device in response to the first information interworking request, where the first capability information represents a network connection mode supported by the network access device;
and the information sending module is used for responding to a second information intercommunication request sent by the network access equipment according to the information intercommunication protocol and sending second capacity information to the network access equipment when receiving the second information intercommunication request, wherein the second capacity information represents a network connection mode supported by the electronic equipment.
9. A computer-readable storage medium, on which a computer program is stored, which, when run on a computer, causes the computer to perform the information interworking method according to any one of claims 1 through 6;
alternatively, when the computer program runs on a computer, the computer is caused to execute the information intercommunication method as claimed in claim 7.
10. An electronic device comprising a processor and a memory, said memory storing a computer program, wherein said processor is adapted to perform the information interworking method according to any one of claims 1 through 6 by calling said computer program.
CN202011272644.8A 2020-11-13 2020-11-13 Information intercommunication method and device, storage medium and electronic equipment Active CN112398943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011272644.8A CN112398943B (en) 2020-11-13 2020-11-13 Information intercommunication method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011272644.8A CN112398943B (en) 2020-11-13 2020-11-13 Information intercommunication method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112398943A true CN112398943A (en) 2021-02-23
CN112398943B CN112398943B (en) 2022-10-21

Family

ID=74599735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011272644.8A Active CN112398943B (en) 2020-11-13 2020-11-13 Information intercommunication method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112398943B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760878A (en) * 2023-08-21 2023-09-15 每日互动股份有限公司 Processing method, device, equipment and medium for network connection and transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729007A (en) * 2017-10-28 2019-05-07 华为技术有限公司 A kind of method, apparatus and equipment for transmitting data
US20190273809A1 (en) * 2016-06-24 2019-09-05 Orange Method for multi-path udp communication method between two terminals
CN111200557A (en) * 2019-11-22 2020-05-26 华为技术有限公司 Connection establishing method and terminal equipment
CN111416794A (en) * 2019-01-08 2020-07-14 华为技术有限公司 Data transmission method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190273809A1 (en) * 2016-06-24 2019-09-05 Orange Method for multi-path udp communication method between two terminals
CN109729007A (en) * 2017-10-28 2019-05-07 华为技术有限公司 A kind of method, apparatus and equipment for transmitting data
CN111416794A (en) * 2019-01-08 2020-07-14 华为技术有限公司 Data transmission method and electronic equipment
CN111200557A (en) * 2019-11-22 2020-05-26 华为技术有限公司 Connection establishing method and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760878A (en) * 2023-08-21 2023-09-15 每日互动股份有限公司 Processing method, device, equipment and medium for network connection and transmission
CN116760878B (en) * 2023-08-21 2023-12-01 每日互动股份有限公司 Processing method, device, equipment and medium for network connection and transmission

Also Published As

Publication number Publication date
CN112398943B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
JP7263396B2 (en) DATA TRANSMISSION METHOD, ACCESS POINT, AND DATA TRANSMISSION SYSTEM
KR101697414B1 (en) Shared network access via a peer-to-peer link
US9544718B2 (en) Method and apparatus for transmitting and receiving audio stream in wireless communication system
US10849171B2 (en) Device and method for maintaining a security level
CN108323246B (en) Networking method, chip and wireless network system
EP3893109B1 (en) Method and device for connecting bluetooth devices
US9743225B2 (en) Method and apparatus for forming communication link using bluetooth
KR102056416B1 (en) Methods and apparatus for establishing a tunneled direct link setup (tdls) session between devices in a wireless network
KR20230118849A (en) Communication device and method for multi-link peer-to-peer communication
CN104205933B (en) Seamless transition of cellular phone from cellular communication to Wi-Fi communication
US20130346553A1 (en) Apparatus and method for providing universal plug and play service based on wi-fi direct connection in portable terminal
CN109088799B (en) Client access method, device, terminal and storage medium
WO2007057758A2 (en) System and method for establishing bearer-independent and secure connections
CN101416542A (en) Methods and apparatus for providing an access profile system associated with a broadband wireless access network
WO2022143071A1 (en) Connection establishment method and electronic device
CN112119673B (en) Electronic device supporting multiple wireless communication protocols and method thereof
CN105451368B (en) Communication method and device
EP4258710A1 (en) Method for transmitting data in near field, device and system
WO2021043095A1 (en) Key generation and terminal provisioning method and apparatus, and devices
JP4225743B2 (en) Wireless terminal and communication control method
WO2020238957A1 (en) Verification method and apparatus
KR102036686B1 (en) Apparatus and method for selecting channel in wireless communication system
CN112398943B (en) Information intercommunication method and device, storage medium and electronic equipment
WO2019237291A1 (en) Transmission control method and device
CN112994946A (en) Link aggregation method

Legal Events

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