CN112217862A - Data communication method, device, terminal equipment and storage medium - Google Patents

Data communication method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112217862A
CN112217862A CN202010917541.6A CN202010917541A CN112217862A CN 112217862 A CN112217862 A CN 112217862A CN 202010917541 A CN202010917541 A CN 202010917541A CN 112217862 A CN112217862 A CN 112217862A
Authority
CN
China
Prior art keywords
service server
receiving end
sending
sending end
server
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.)
Pending
Application number
CN202010917541.6A
Other languages
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010917541.6A priority Critical patent/CN112217862A/en
Publication of CN112217862A publication Critical patent/CN112217862A/en
Pending legal-status Critical Current

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/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data communication method, a device, terminal equipment and a storage medium, wherein the data communication method comprises the following steps: the signaling server sends a request instruction of communication information to a service server of a receiving end, wherein the request instruction is sent by the service server of a sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server at the receiving end is sent to the service server at the sending end, the service server at the sending end establishes connection with the service server at the receiving end according to the communication information of the service server at the receiving end and carries out data communication with the service server at the receiving end according to the established connection, so that the service server receives the communication information of other service servers returned by the signaling server by sending a request instruction of the communication information to the signaling server, and the service servers can carry out data communication through the communication information, thereby improving the communication efficiency.

Description

Data communication method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data communication method, an apparatus, a terminal device, and a storage medium.
Background
With the development of video networking services, the same server may need to establish communication with a plurality of other servers, and before the communication is established, file configuration of communication addresses on the servers is needed so that the servers can communicate with each other. If the communication address of one server changes, a worker needs to modify the configuration file on each server, maintenance is complex, and communication efficiency is low.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data communication method, apparatus, terminal device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a data communication method, where the method is applied to a signaling server in a video networking data communication system, where the signaling server establishes a connection with multiple service servers in advance, and each service server includes a service server at a sending end and a service server at a receiving end, where the method includes:
sending a request instruction of communication information to a service server of the receiving end, wherein the request instruction is sent by the service server of the sending end;
receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Optionally, before the sending the request instruction of the communication information to the service server of the receiving end, the method further includes:
receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
and sending the verification identification of the service server of the sending end to the service server of the sending end.
Optionally, the first communication information at least includes a verification identifier of the service server of the sending end;
the sending of the request instruction of the communication information sent by the service server of the sending end to the service servers of at least two receiving ends includes:
decrypting the verification identifier of the service server of the sending end according to a preset encryption mode identifier in the verification identifier of the service server of the sending end to obtain verification information of the service server of the sending end, wherein the verification information comprises a first mac address, a first user name and a first login password;
comparing the verification information of the service server of the sending end with the login information;
and if the verification information is the same as the login information, forwarding the request instruction to a service server of the receiving end.
Optionally, the sending the communication information of the service server at the receiving end to the service server at the sending end, so that the service server at the sending end establishes a connection with the service server at the receiving end according to the communication information of the service server at the receiving end, and performs data communication with the service server at the receiving end according to the established connection, includes:
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end analyzes the communication information of the service server of the receiving end to obtain a verification identifier, a second transmission protocol type, a second communication address and a second transfer server address of the service server of the receiving end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and performs data communication with the service server of the receiving end according to the established connection.
Optionally, the communication information of the service server at the sending end includes a first transport protocol type and a first communication address;
the method for establishing connection between the service server of the sending end and the service server of the receiving end according to the communication information of the service server of the receiving end and performing data communication with the service server of the receiving end according to the established connection comprises the following steps:
the service server of the sending end sends a first test request to the service server of the receiving end corresponding to the second communication address;
the service server of the sending end receives a first response instruction returned by the service server of the receiving end;
and the service server of the sending end sends a service data packet to the service server of the receiving end through the transmission protocol corresponding to the first transmission protocol type.
Optionally, the communication information of the service server at the sending end further includes a first transit server address;
the method for establishing connection between the service server of the sending end and the service server of the receiving end according to the communication information of the service server of the receiving end and performing data communication with the service server of the receiving end according to the established connection comprises the following steps:
the service server of the sending end sends a second test request to the service server of the receiving end corresponding to the second communication address;
and under the condition that the service server of the sending end does not receive a second response instruction returned by the service server of the receiving end, the service server of the sending end sends the second test request to a first transfer server corresponding to a first transfer server address, so that the first transfer server sends the second test request to the service server of the receiving end corresponding to the second communication address according to the second communication address and the second transfer server address, and the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the first transmission protocol type.
Optionally, the first communication address and the second communication address comprise an internet address and an internet of view address, wherein the internet address comprises an IP address and a port, and the internet of view address comprises a virtual internet of view number;
the first transport protocol type and the second transport protocol type comprise at least one of TCP, UDP, HTTP, or video networking.
In a second aspect, an embodiment of the present invention provides a data communication apparatus, where the apparatus is applied to a signaling server in a video networking data communication system, where the signaling server establishes a connection with multiple service servers in advance, and each service server includes a service server at a sending end and a service server at a receiving end, where the apparatus includes:
a sending module, configured to send a request instruction of communication information to a service server at the receiving end, where the request instruction is sent by the service server at the sending end;
the receiving module is used for receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
and the communication module is used for sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Optionally, the apparatus further includes an obtaining module of the verification identifier, where the obtaining module of the verification identifier is configured to:
receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
and sending the verification identification of the service server of the sending end to the service server of the sending end.
Optionally, the first communication information at least includes a verification identifier of the service server of the sending end;
the sending module is used for:
decrypting the verification identifier of the service server of the sending end according to a preset encryption mode identifier in the verification identifier of the service server of the sending end to obtain verification information of the service server of the sending end, wherein the verification information comprises a first mac address, a first user name and a first login password;
comparing the verification information of the service server of the sending end with the login information;
and if the verification information is the same as the login information, forwarding the request instruction to a service server of the receiving end.
Optionally, the communication module is configured to:
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end analyzes the communication information of the service server of the receiving end to obtain a verification identifier, a second transmission protocol type, a second communication address and a second transfer server address of the service server of the receiving end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and performs data communication with the service server of the receiving end according to the established connection.
Optionally, the communication information of the service server at the sending end includes a first transport protocol type and a first communication address; the service server of the sending end comprises a testing module, and the testing module is used for:
sending a first test request to a service server of a receiving end corresponding to the second communication address;
receiving a first response instruction returned by the service server of the receiving end;
and sending a service data packet to the service server of the receiving end through the transmission protocol corresponding to the first transmission protocol type.
Optionally, the communication information of the service server at the sending end further includes a first transit server address;
the test module is used for:
sending a second test request to a service server of a receiving end corresponding to the second communication address;
and under the condition that the service server of the sending end does not receive a second response instruction returned by the service server of the receiving end, sending the second test request to a first transfer server corresponding to a first transfer server address, so that the first transfer server sends the second test request to the service server of the receiving end corresponding to the second communication address according to the second communication address and the second transfer server address, and the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the type of the first transmission protocol.
Optionally, the first communication address and the second communication address comprise an internet address and an internet of view address, wherein the internet address comprises an IP address and a port, and the internet of view address comprises a virtual internet of view number;
the first transport protocol type and the second transport protocol type comprise at least one of TCP, UDP, HTTP, or video networking.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data communication method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed, implements the data communication method provided in the first aspect.
The embodiment of the invention has the following advantages:
the embodiment of the invention is applied to a signaling server in a video network data communication system, the signaling server is connected with a plurality of service servers in advance, the service servers comprise a service server at a sending end and a service server at a receiving end, and the method comprises the following steps: sending a request instruction of communication information to a service server of the receiving end, wherein the request instruction is sent by the service server of the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Drawings
FIG. 1 is a flow chart of the steps of a data communication method embodiment of the present invention;
FIG. 2 is a flow chart of the steps of another data communication method embodiment of the present invention;
FIG. 3 is a block diagram of an embodiment of a data communication device of the present invention;
fig. 4 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
An embodiment of the present invention provides a data communication method, which is used for data communication between service servers. The execution subject of the embodiment is a data communication device, which is arranged on a signaling server in the video networking data communication system.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data communication method according to the present invention is shown, where the method may be applied to a signaling server in a video networking data communication system, where the signaling server establishes a connection with multiple service servers in advance, and the service servers include a service server at a sending end and a service server at a receiving end, and specifically may include the following steps:
s101, sending a request instruction of communication information to a service server of the receiving end, wherein the request instruction is sent by the service server of the sending end;
specifically, a service server at a sending end wants to perform data communication with a service server at a receiving end, for example, to perform a certain service, such as video telephone, video conference, live broadcast, etc., the service server at the sending end needs to know communication information of the service server at the receiving end, so as to communicate with the service server at the receiving end, an embodiment of the present invention provides a signaling server, which forwards the communication information of each service server, in actual operation, the service server at the sending end sends a request instruction of the communication information to the signaling server, the request instruction includes the communication information of the service server at the sending end, the communication information of the service server at the sending end includes a first transmission protocol type, a first communication address, a first relay server address, etc., the signaling server sends the request instruction to other service servers, i.e. the service server at the receiving end.
The communication address is a video network number or an IP number of the service server and a corresponding port number.
S102, receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
specifically, after receiving a request instruction sent by the signaling server, the service server at the receiving end returns a response instruction to the signaling server, and loads the communication information of the service server in the response instruction and sends the communication information to the signaling server.
S103, sending the communication information of the service server of the receiving end to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end, and performs data communication with the service server of the receiving end according to the established connection.
Specifically, after receiving communication information sent by a service server of a plurality of receiving ends, a signaling server sends the communication information of the service server of the plurality of receiving ends to a service server of a sending end, the service server of the sending end analyzes the communication information of the service server of the receiving end to obtain the communication information of the service server of the receiving end, establishes connection with the corresponding service server of the receiving end according to the communication information, and performs data communication with the service server of the receiving end according to the established connection.
Illustratively, the signaling server is respectively connected with a service server a, a service server B, a service server C, a service server D and a service server E, the service server a sends a request instruction of communication information to the signaling server, the signaling server sends the request instruction to the service server B, the service server C, the service server D and the service server E and receives the communication information respectively returned by the service server B, the service server C, the service server D and the service server E, and the service server a establishes connection with other corresponding servers, such as the service server B, the service server C, the service server D and the service server E, according to the communication information, and performs data communication according to the established connection.
In the data communication method provided by the embodiment of the invention, a signaling server sends a request instruction of communication information to a service server of a receiving end, wherein the request instruction is sent by the service server of the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
The present invention further provides a supplementary explanation of the data communication method provided in the above embodiment.
As shown in fig. 2, a flowchart illustrating steps of another embodiment of a data communication method according to the present invention is shown, where the method may be applied to a signaling server in a video networking data communication system, where the signaling server establishes a connection with multiple service servers in advance, and the service servers include a service server at a sending end and a service server at a receiving end, and the data communication method includes:
s201, receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
specifically, the embodiment of the present invention provides a signaling server, where the signaling server is specially used to forward signaling, and the signaling types include request signaling, response signaling, and relay signaling.
The method includes that a service server of a sending end needs to perform authentication on a signaling server, the service server of the sending end sends a login request to the signaling server, the login request includes a login request, and the login request includes a preset mac (Media Access Control) address of the service server of the sending end, which is translated into a Media Access Control, or called a physical address, a hardware address, and used for defining the position of a network device), a preset user name, and a preset login password.
S202, according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
specifically, the preset encryption mode includes a Base64 encryption mode, an MD5 encryption mode, a key string encryption mode, a symmetric encryption algorithm, an RSA encryption mode, and the like, which is not specifically limited in the embodiment of the present invention, and no matter which encryption mode is used, the encryption mode identifier needs to be placed in the verification identifier, so that the service server at the sending end decrypts according to the decryption mode corresponding to the encryption mode identifier.
Illustratively, each encryption mode is as follows, and the corresponding encryption mode can be selected according to actual needs:
1. base64 encryption mode (reversible)
Printable characters in Base64 included the letters A-Z/a-Z/the array 0-9/plus sign '+' slash '/', thus totaling 62 characters;
base64 ios7 was later added to the system library.
2. MD5 encryption mode
Message Digest Algorithm MD5 (the name of chinese is the fifth version of the Message Digest Algorithm) is a hash function to provide integrity protection for messages, and the process is irreversible because the original plaintext cannot be obtained according to the output value of the Digest Algorithm and the hash Algorithm.
The MD5 algorithm has the following characteristics:
1) compressibility: for any length of data, the calculated length of the MD5 value is fixed.
2) Easy to calculate: it is easy to calculate the MD5 value from the raw data.
3) Resistance to modification: any change to the original data, even if only 1 byte is modified, can result in a great difference in the value of MD 5.
4) Strong collision resistance: knowing the original data and its MD5 value, it is very difficult to find a data with the same MD5 value (i.e., counterfeit data).
MD5 functions to allow large volumes of information to be "compressed" into a secure format (i.e., a string of bytes of arbitrary length is converted into a fixed-length hexadecimal digital string) before the private key is signed by digital signature software. Besides MD5, sha-1, RIPEMD, Haval, MD5, and the like are also known among others.
3. Key string encryption mode
iCloud key string, a sandbox:
1) if the mobile phone is out of the prison, the password is easy to steal.
2) When the software is updated, the content in the sandbox is not deleted. However, if the software is unloaded and reloaded, the data in the sandbox is not available.
3) The sandbox of each APP is relatively independent, and the password cannot be shared.
4. Symmetric encryption algorithm
The advantages are that: the algorithm is open, the calculated amount is small, the encryption speed is high, the encryption efficiency is high, and the method is reversible;
the disadvantages are as follows: the two parties use the same key, and the security is not guaranteed
The current situation is as follows: symmetric encryption is much faster than public key encryption, and symmetric encryption is required in many occasions,
the algorithm commonly used in the symmetric encryption algorithm comprises the following steps: DES, 3DES, TDEA, Blowfish, RC2, RC4, RC5, IDEA, SKIPJACK, AES, etc. Different algorithms have different implementation mechanisms, and details of the corresponding algorithms can be referred to
Compared with DES and 3DES algorithms, AES algorithm has higher speed and resource utilization efficiency, higher security level, and is called next generation encryption standard
nECB: electronic codebooks, that is, each block is independently encrypted;
nCBC: cipher block chain, using a key and an Initialization Vector (IV) to perform a cryptographic transformation on data
ECB and CBC differences: the CBC is more complex and secure, with an 8-bit vector added (8 0 s result in ECB). And a letter is changed in the plaintext, the line corresponding to the ECB ciphertext is changed, and the CBC ciphertext is changed from the line to the back.
5. RSA encryption (asymmetric encryption algorithm) (secret. frame system library)
Asymmetric encryption algorithms require two keys: public key (public key) and private key (private key)
The main algorithms used in asymmetric encryption are: RSA, Elgamal, knapsack algorithm, Rabin, D-H, ECC (elliptic curve cryptography algorithm), etc.
The public key and the private key are a pair, and if the public key is used for encrypting data, only the corresponding private key can be used for decrypting the data; if the data is encrypted with a private key, it can only be decrypted with the corresponding public key.
The method is characterized in that:
the asymmetric cryptosystem has the characteristics that: the algorithm has complex strength and security depending on the algorithm and the secret key, but the algorithm is complex, so that the encryption and decryption speed is not as fast as the symmetric encryption and decryption speed
The symmetric cryptosystem has only one kind of key and is not public, and if the key is required to be decrypted, the opposite party can know the key. Therefore, the security of the key is ensured, and the asymmetric key body is provided with two keys, wherein one of the two keys is public, so that the key of the other party does not need to be transmitted like a symmetric cipher.
S203, the verification identification of the service server of the sending end is sent to the service server of the sending end.
S204, decrypting the verification identifier of the service server of the sending end according to a preset encryption mode identifier in the verification identifier of the service server of the sending end to obtain verification information of the service server of the sending end, wherein the verification information comprises a first mac address, a first user name and a first login password;
s205, comparing the verification information of the service server of the sending end with the login information;
and S206, if the verification information is the same as the login information, forwarding the request instruction to the service server of the receiving end.
S207, receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
and S208, sending the communication information of the service server of the receiving end to the service server of the sending end, so that the service server of the sending end analyzes the communication information of the service server of the receiving end, and obtains the verification identifier, the second transmission protocol type, the second communication address and the second transfer server address of the service server of the receiving end.
S209, the service server of the sending end and the service server of the receiving end are in the same local area network, and the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the first transmission protocol type;
specifically, the service server at the sending end sends a first test request to the service server at the receiving end corresponding to the second communication address;
the service server of the sending end receives a first response instruction returned by the service server of the receiving end;
and the service server of the sending end sends a service data packet to the service server of the receiving end through the transmission protocol corresponding to the first transmission protocol type.
In particular, this step is generally applied to data communication within a local area network.
S210, the service server of the sending end and the service server of the receiving end are not in the same local area network, the service server of the sending end establishes connection with the service server of the receiving end through a transfer server address, and then the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the first transmission protocol type;
specifically, the service server at the sending end sends a second test request to the service server at the receiving end corresponding to the second communication address;
under the condition that the service server of the sending end does not receive a second response instruction returned by the service server of the receiving end, the service server of the sending end sends the second test request to a first transit server corresponding to the address of the first transit server;
and the first transfer server sends the second test request to the service server of the receiving end corresponding to the second communication address according to the second communication address and the second transfer server address, so that the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the first transmission protocol type.
Specifically, the step is generally applied to data communication of different local area networks, and a terminal needs to be performed through a relay server, where the number of relay servers is not specifically limited in the embodiment of the present invention.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
In the data communication method provided by the embodiment of the invention, a signaling server sends a request instruction of communication information to a service server of a receiving end, wherein the request instruction is sent by the service server of the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Another embodiment of the present invention provides a data communication apparatus, configured to perform the data communication method provided in the foregoing embodiment.
Referring to fig. 3, a block diagram of a data communication apparatus according to an embodiment of the present invention is shown, where the apparatus may be applied to a signaling server in a video networking data communication system, where the signaling server establishes a connection with multiple service servers in advance, and the service servers include a service server at a sending end and a service server at a receiving end, and specifically include the following modules: a sending module 301, a receiving module 302 and a communication module 303, wherein:
the sending module 301 is configured to send a request instruction of communication information to a service server at the receiving end, where the request instruction is sent by the service server at the sending end;
the receiving module 302 is configured to receive a response instruction returned by the service server of the receiving end, where the response instruction includes communication information of the service server of the receiving end;
the communication module 303 is configured to send the communication information of the service server at the receiving end to the service server at the sending end, so that the service server at the sending end establishes a connection with the service server at the receiving end according to the communication information of the service server at the receiving end, and performs data communication with the service server at the receiving end according to the established connection.
The data communication device provided by the embodiment of the invention sends a request instruction of communication information to a service server of a receiving end through a signaling server, wherein the request instruction is sent by the service server of the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
The data communication device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the apparatus further includes an obtaining module of the verification identifier, where the obtaining module of the verification identifier is configured to:
receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
and sending the verification identification of the service server of the sending end to the service server of the sending end.
Optionally, the first communication information at least includes a verification identifier of the service server of the sending end;
the sending module is used for:
decrypting the verification identifier of the service server of the sending end according to a preset encryption mode identifier in the verification identifier of the service server of the sending end to obtain verification information of the service server of the sending end, wherein the verification information comprises a first mac address, a first user name and a first login password;
comparing the verification information of the service server of the sending end with the login information;
and if the verification information is the same as the login information, forwarding the request instruction to a service server of the receiving end.
Optionally, the communication module is configured to:
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end analyzes the communication information of the service server of the receiving end to obtain a verification identifier, a second transmission protocol type, a second communication address and a second transfer server address of the service server of the receiving end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and performs data communication with the service server of the receiving end according to the established connection.
Optionally, the communication information of the service server at the sending end includes a first transport protocol type and a first communication address; the service server of the sending end comprises a testing module, and the testing module is used for:
sending a first test request to a service server of a receiving end corresponding to the second communication address;
receiving a first response instruction returned by the service server of the receiving end;
and sending a service data packet to the service server of the receiving end through the transmission protocol corresponding to the first transmission protocol type.
Optionally, the communication information of the service server at the sending end further includes a first transit server address;
the test module is used for:
sending a second test request to a service server of a receiving end corresponding to the second communication address;
and under the condition that the service server of the sending end does not receive a second response instruction returned by the service server of the receiving end, sending the second test request to a first transfer server corresponding to a first transfer server address, so that the first transfer server sends the second test request to the service server of the receiving end corresponding to the second communication address according to the second communication address and the second transfer server address, and the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the type of the first transmission protocol.
Optionally, the first communication address and the second communication address comprise an internet address and an internet of view address, wherein the internet address comprises an IP address and a port, and the internet of view address comprises a virtual internet of view number;
the first transport protocol type and the second transport protocol type comprise at least one of TCP, UDP, HTTP, or video networking.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The data communication device provided by the embodiment of the invention sends a request instruction of communication information to a service server of a receiving end through a signaling server, wherein the request instruction is sent by the service server of the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Still another embodiment of the present invention provides a terminal device, configured to execute the data communication method provided in the foregoing embodiment.
Fig. 4 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 4, the terminal device includes: at least one processor 401 and memory 402;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data communication method provided by the above-described embodiments.
The terminal device provided in this embodiment sends a request instruction of communication information to the service server at the receiving end through the signaling server, where the request instruction is sent by the service server at the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the data communication method provided in any of the above embodiments.
According to the computer-readable storage medium of this embodiment, a request instruction of communication information is sent to a service server at the receiving end through a signaling server, where the request instruction is sent by the service server at the sending end; receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end; the communication information of the service server of the receiving end is sent to the service server of the sending end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or electronic device that comprises the element.
The data communication method and the data communication device provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A data communication method is characterized in that the method is applied to a signaling server in a video networking data communication system, the signaling server is connected with a plurality of service servers in advance, the service servers comprise a service server at a sending end and a service server at a receiving end, and the method comprises the following steps:
sending a request instruction of communication information to a service server of the receiving end, wherein the request instruction is sent by the service server of the sending end;
receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
2. The method according to claim 1, wherein before the instruction for sending the request for communication information to the service server at the receiving end, the method further comprises:
receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
and sending the verification identification of the service server of the sending end to the service server of the sending end.
3. The method according to claim 2, wherein the first communication information at least includes an authentication identifier of a service server of the transmitting end;
the sending of the request instruction of the communication information sent by the service server of the sending end to the service servers of at least two receiving ends includes:
decrypting the verification identifier of the service server of the sending end according to a preset encryption mode identifier in the verification identifier of the service server of the sending end to obtain verification information of the service server of the sending end, wherein the verification information comprises a first mac address, a first user name and a first login password;
comparing the verification information of the service server of the sending end with the login information;
and if the verification information is the same as the login information, forwarding the request instruction to a service server of the receiving end.
4. The method according to claim 3, wherein the sending the communication information of the service server at the receiving end to the service server at the sending end, so that the service server at the sending end establishes a connection with the service server at the receiving end according to the communication information of the service server at the receiving end, and performs data communication with the service server at the receiving end according to the established connection, comprises:
and sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end analyzes the communication information of the service server of the receiving end to obtain a verification identifier, a second transmission protocol type, a second communication address and a second transfer server address of the service server of the receiving end, so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and performs data communication with the service server of the receiving end according to the established connection.
5. The method according to claim 4, wherein the communication information of the service server at the sending end comprises a first transport protocol type and a first communication address;
the method for establishing connection between the service server of the sending end and the service server of the receiving end according to the communication information of the service server of the receiving end and performing data communication with the service server of the receiving end according to the established connection comprises the following steps:
the service server of the sending end sends a first test request to the service server of the receiving end corresponding to the second communication address;
the service server of the sending end receives a first response instruction returned by the service server of the receiving end;
and the service server of the sending end sends a service data packet to the service server of the receiving end through the transmission protocol corresponding to the first transmission protocol type.
6. The method of claim 4, wherein the communication information of the service server at the sending end further includes a first transit server address;
the method for establishing connection between the service server of the sending end and the service server of the receiving end according to the communication information of the service server of the receiving end and performing data communication with the service server of the receiving end according to the established connection comprises the following steps:
the service server of the sending end sends a second test request to the service server of the receiving end corresponding to the second communication address;
and under the condition that the service server of the sending end does not receive a second response instruction returned by the service server of the receiving end, the service server of the sending end sends the second test request to a first transfer server corresponding to a first transfer server address, so that the first transfer server sends the second test request to the service server of the receiving end corresponding to the second communication address according to the second communication address and the second transfer server address, and the service server of the sending end sends a service data packet to the service server of the receiving end through a transmission protocol corresponding to the first transmission protocol type.
7. A data communication apparatus, applied to a signaling server in a video-networking data communication system, where the signaling server establishes a connection with a plurality of service servers in advance, and each service server includes a service server at a transmitting end and a service server at a receiving end, the apparatus comprising:
a sending module, configured to send a request instruction of communication information to a service server at the receiving end, where the request instruction is sent by the service server at the sending end;
the receiving module is used for receiving a response instruction returned by the service server of the receiving end, wherein the response instruction comprises communication information of the service server of the receiving end;
and the communication module is used for sending the communication information of the service server of the receiving end to the service server of the sending end so that the service server of the sending end establishes connection with the service server of the receiving end according to the communication information of the service server of the receiving end and carries out data communication with the service server of the receiving end according to the established connection.
8. The apparatus of claim 7, further comprising an obtaining module of the verification identifier, wherein the obtaining module of the verification identifier is configured to:
receiving a login request of the service server of the sending end, wherein the login request comprises login information, and the login information comprises a preset mac address, a preset user name and a preset login password of the service server of the sending end;
according to a preset encryption mode, carrying out encryption calculation on a preset mac address, a preset user name and a preset login password of the service server of the sending end to obtain a verification identifier of the service server of the sending end, wherein the verification identifier comprises a preset encryption mode identifier;
and sending the verification identification of the service server of the sending end to the service server of the sending end.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data communication method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the data communication method of any one of claims 1-6.
CN202010917541.6A 2020-09-03 2020-09-03 Data communication method, device, terminal equipment and storage medium Pending CN112217862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010917541.6A CN112217862A (en) 2020-09-03 2020-09-03 Data communication method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010917541.6A CN112217862A (en) 2020-09-03 2020-09-03 Data communication method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112217862A true CN112217862A (en) 2021-01-12

Family

ID=74049119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010917541.6A Pending CN112217862A (en) 2020-09-03 2020-09-03 Data communication method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112217862A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125024A (en) * 2021-11-12 2022-03-01 兰州乐智教育科技有限责任公司 Audio transmission method, electronic device and readable storage medium
WO2023160076A1 (en) * 2022-02-25 2023-08-31 腾讯科技(深圳)有限公司 Information interaction method and apparatus, computer device, storage medium and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2456245A1 (en) * 2010-11-19 2012-05-23 Research In Motion Limited System, devices and method for secure authentication
CN102547239A (en) * 2011-12-29 2012-07-04 浙江工业大学 Android mobile terminal-based video monitoring system
CN105187796A (en) * 2015-09-14 2015-12-23 北京奇虎科技有限公司 Data transmission method, device and system
CN107294968A (en) * 2017-06-21 2017-10-24 北京奇艺世纪科技有限公司 The monitoring method and system of a kind of audio, video data
US20190379735A1 (en) * 2017-07-18 2019-12-12 Tencent Technology (Shenzhen) Company Limited Method and apparatus for multimedia communication, and storage medium
CN110650171A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video networking service scheduling system and method
CN111049901A (en) * 2019-12-11 2020-04-21 深圳市优必选科技股份有限公司 Load balancing method, load balancing system and registration server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2456245A1 (en) * 2010-11-19 2012-05-23 Research In Motion Limited System, devices and method for secure authentication
CN102547239A (en) * 2011-12-29 2012-07-04 浙江工业大学 Android mobile terminal-based video monitoring system
CN105187796A (en) * 2015-09-14 2015-12-23 北京奇虎科技有限公司 Data transmission method, device and system
CN107294968A (en) * 2017-06-21 2017-10-24 北京奇艺世纪科技有限公司 The monitoring method and system of a kind of audio, video data
US20190379735A1 (en) * 2017-07-18 2019-12-12 Tencent Technology (Shenzhen) Company Limited Method and apparatus for multimedia communication, and storage medium
CN110650171A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video networking service scheduling system and method
CN111049901A (en) * 2019-12-11 2020-04-21 深圳市优必选科技股份有限公司 Load balancing method, load balancing system and registration server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125024A (en) * 2021-11-12 2022-03-01 兰州乐智教育科技有限责任公司 Audio transmission method, electronic device and readable storage medium
CN114125024B (en) * 2021-11-12 2023-10-17 兰州乐智教育科技有限责任公司 Audio transmission method, electronic device and readable storage medium
WO2023160076A1 (en) * 2022-02-25 2023-08-31 腾讯科技(深圳)有限公司 Information interaction method and apparatus, computer device, storage medium and program product

Similar Documents

Publication Publication Date Title
US5812671A (en) Cryptographic communication system
US6779111B1 (en) Indirect public-key encryption
CN104219051B (en) The communication means and system of a kind of inner group message
US11303431B2 (en) Method and system for performing SSL handshake
CN114448730B (en) Packet forwarding method and device based on block chain network and transaction processing method
Alsmirat et al. A security framework for cloud-based video surveillance system
CN105376261A (en) Encryption method and system for instant communication message
CN111049738B (en) E-mail data security protection method based on hybrid encryption
CN112217862A (en) Data communication method, device, terminal equipment and storage medium
Reshma et al. Pairing-free CP-ABE based cryptography combined with steganography for multimedia applications
Isobe et al. Breaking message integrity of an end-to-end encryption scheme of LINE
CN103997405B (en) A kind of key generation method and device
Youn et al. Authorized client‐side deduplication using CP‐ABE in cloud storage
WO2017197968A1 (en) Data transmission method and device
Somaiya et al. Implementation and evaluation of EMAES–A hybrid encryption algorithm for sharing multimedia files with more security and speed
Döring et al. Post-Quantum Cryptography key exchange to extend a high-security QKD platform into the mobile 5G/6G networks
CN114205077B (en) Mixed encryption secure communication method based on boom key distribution algorithm
Kadam et al. Hybrid rsa-aes encryption for web services
Eltaief Flex-CC: A flexible connected chains scheme for multicast source authentication in dynamic SDN environment
Zheng et al. Improved anonymous proxy re-encryption with CCA security
CN115766119A (en) Communication method, communication apparatus, communication system, and storage medium
Yau et al. Cryptanalysis of a chaotic map-based password-authenticated key agreement protocol using smart cards
CN110995730B (en) Data transmission method and device, proxy server and proxy server cluster
RU2707398C1 (en) Method and system for secure storage of information in file storages of data
CN111279655B (en) Data sharing method, system and server, communication terminal and recording medium

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