CN114513312A - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN114513312A
CN114513312A CN202210409281.0A CN202210409281A CN114513312A CN 114513312 A CN114513312 A CN 114513312A CN 202210409281 A CN202210409281 A CN 202210409281A CN 114513312 A CN114513312 A CN 114513312A
Authority
CN
China
Prior art keywords
plaintext
judgment
identification code
data transmission
data
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
CN202210409281.0A
Other languages
Chinese (zh)
Other versions
CN114513312B (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.)
Beijing Tianwei Communication Technology Co ltd
Original Assignee
Beijing Tianwei Communication 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 Beijing Tianwei Communication Technology Co ltd filed Critical Beijing Tianwei Communication Technology Co ltd
Priority to CN202210409281.0A priority Critical patent/CN114513312B/en
Publication of CN114513312A publication Critical patent/CN114513312A/en
Application granted granted Critical
Publication of CN114513312B publication Critical patent/CN114513312B/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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application relates to a data transmission method, a device and electronic equipment, wherein a first data transmission path and a second data transmission path which are parallel to each other are arranged in the same network environment, and the method comprises the following steps: receiving a communication ciphertext uploaded by a first data transmission path and a judgment plaintext uploaded by a second transmission path, judging that the plaintext is the same as the communication ciphertext in length, and judging that the plaintext is preset and stored in a database and each judgment plaintext carries a unique identification code; calling a judgment plaintext carrying an identification code in a database according to the received unique identification code of the judgment plaintext; comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code, and outputting a comparison result; judging whether a communication ciphertext needs to be acquired again or not based on the comparison result; if yes, outputting a first data acquisition instruction to acquire the communication ciphertext again based on the comparison result. The method and the device have the effect of improving the accuracy of data transmission.

Description

Data transmission method and device and electronic equipment
Technical Field
The present application relates to the field of data transmission, and in particular, to a data transmission method and apparatus, and an electronic device.
Background
With the rapid development of the science and technology level in the information age, although the speed of information transmission is faster and faster, the problem of information security is also solved, in order to improve the security of information transmission, in the related art, a first plaintext and a second plaintext are obtained through an encryption end, the first plaintext is a plaintext to be encrypted at the current time, the second plaintext is a plaintext encrypted at the current time, a first ciphertext is generated based on the first plaintext and the second plaintext, the first ciphertext is sent to a decryption end, wherein when plaintext encryption sending is carried out at the first time, a one-time codebook is obtained, and a corresponding ciphertext is generated and sent according to the one-time codebook and the plaintext to be sent at the first time. And acquiring a second plaintext and a first ciphertext at a decryption end, wherein the second plaintext is the plaintext obtained by the last decryption at the current time, the first ciphertext is the ciphertext to be decrypted at the current time, and the first plaintext is generated based on the second plaintext and the first ciphertext, wherein when the ciphertext is decrypted at the first time, a one-time codebook is acquired, and a corresponding plaintext is generated according to the one-time codebook and the ciphertext to be decrypted at the first time.
By adopting the above mode, the security of the information in the information transmission process is ensured to a certain extent, but when the sending end sends each ciphertext in sequence, due to network fluctuation and other reasons, when data transmission is carried out, the data received by the receiving end is lost wholly or a certain field in each ciphertext is lost or the field sequence is changed, so that decryption is wrong, and correct plaintext cannot be obtained.
Disclosure of Invention
In order to improve the accuracy of data transmission, the application provides a data transmission method, a data transmission device and electronic equipment.
In a first aspect, the present application provides a data transmission method, which adopts the following technical scheme:
a data transmission method in which a first data transmission path and a second data transmission path are provided in parallel in the same network environment, the method comprising:
receiving a communication ciphertext uploaded by a first data transmission path and a judgment plaintext uploaded by a second transmission path, wherein the judgment plaintext and the communication ciphertext have the same length, the judgment plaintext is preset and stored in a database, and each judgment plaintext carries a unique identification code;
calling a judgment plaintext carrying the identification code in a database according to the received unique identification code of the judgment plaintext;
comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code, and outputting a comparison result;
judging whether the communication ciphertext needs to be acquired again or not based on the comparison result;
and if so, outputting a first data acquisition instruction to acquire the communication ciphertext again based on the comparison result.
By adopting the technical scheme, the first data transmission path and the second data transmission path are arranged in parallel, when data transmission is carried out, the sending end outputs a communication ciphertext and a judgment plaintext, the communication ciphertext is sent to the receiving end along the first data transmission path and the judgment plaintext along the second data transmission path at the same time, the receiving end compares the received judgment plaintext with the judgment plaintext stored in the database in advance, a comparison result is output, whether the communication ciphertext needs to be obtained again is judged according to the comparison result, if yes, a data acquisition instruction is output based on the comparison result to obtain the communication ciphertext again, by adopting the mode, the plaintext and the communication ciphertext are judged to be transmitted at the same network environment at the same time, when the plaintext is judged to be wrong, the corresponding communication ciphertext transmitted at the same time can have the same error, and therefore, the judgment of the error in the communication ciphertext transmission can be realized by judging the communication plaintext, at this time, a corresponding first data acquisition instruction is output, and the appointed communication ciphertext is acquired again, so that the possibility that the receiving end decrypts the error data and acquires the error data is reduced to a certain extent, and the accuracy of data transmission is improved.
Optionally, the method for calling the plaintext judgment reference carrying the identification code in the database according to the received unique identification code of the plaintext judgment reference specifically includes:
reading a binary field corresponding to a specific byte according to the received judgment plaintext;
and searching a judgment plaintext corresponding to the identification code from a database according to the binary field and the specific byte.
Optionally, the method for outputting the comparison result by comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code specifically includes:
determining all binary data corresponding to the judgment plaintext according to the judgment plaintext carrying the identification code and stored in a database;
sequentially storing judgment plaintext carrying the identification code and received binary data of the judgment plaintext in a database according to a preset comparison sequence;
judging whether the two are the same;
if yes, the comparison result is correct.
Optionally, the determining is performed to determine whether the two are the same, and if not, the method further includes:
determining the length of judgment plaintext carrying the identification code and binary data corresponding to the received judgment plaintext, which are stored in a database;
when the lengths are equal, judging that data transmission errors exist, and determining target binary data;
when the lengths are not equal, judging that data missing exists, and determining target binary data.
Optionally, the method for outputting the first data obtaining instruction to obtain the communication ciphertext again based on the comparison result specifically includes:
acquiring timestamp information corresponding to target binary data;
and outputting a first data acquisition instruction according to the timestamp information so as to acquire a communication ciphertext corresponding to the timestamp information.
Optionally, after the method for receiving the communication ciphertext uploaded by the first data transmission path and the plaintext judgment uploaded by the second transmission path, the method further includes:
acquiring timestamp information of a communication ciphertext currently sent by a sending end and timestamp information of a received communication ciphertext;
judging whether a communication ciphertext is missing or not according to timestamp information of a communication ciphertext currently sent by a sending end and timestamp information of a received communication ciphertext;
and if so, outputting a second data acquisition instruction, and re-acquiring the communication ciphertext currently sent by the sending end.
By adopting the technical scheme, when the currently acquired communication ciphertext is decrypted, the communication plaintext acquired last time is needed, so that when data transmission is carried out, the current ciphertext decryption error can be caused when the communication ciphertext is lost, the timestamp information of the communication ciphertext currently transmitted by the transmitting end and the timestamp information of the communication ciphertext received by the receiving end are acquired, whether the communication ciphertext is missing or delayed is judged according to the timestamp information of the transmitted communication ciphertext and the timestamp information of the communication ciphertext received by the receiving end, if the data is lost or the communication ciphertext sequence error is caused by delay, a second data acquisition instruction is output to reacquire the specific communication ciphertext, and the accuracy of data transmission is ensured.
In a second aspect, the present application provides a data transmission device, which adopts the following technical solutions:
a data transmission apparatus comprising:
the data receiving module is used for receiving a communication ciphertext uploaded by a first data transmission path and a judgment plaintext uploaded by a second transmission path, the judgment plaintext and the communication ciphertext have the same length, the judgment plaintext is preset and stored in a database, and each judgment plaintext carries a unique identification code;
the data calling module is used for calling the judgment plaintext carrying the identification code in the database according to the received unique identification code for judging the plaintext;
the comparison module is used for comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code and outputting a comparison result;
the judging module is used for judging whether the communication ciphertext needs to be acquired again or not based on the comparison result;
and the instruction output module is used for outputting a first data acquisition instruction to acquire the communication ciphertext again based on the comparison result if the communication ciphertext is obtained.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device comprising a memory and a processor, the memory having stored thereon a computer program of a data transfer method that can be loaded and executed by the processor.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium storing a computer program of a data transmission method that can be loaded and executed by a processor.
In summary, the present application includes at least one of the following beneficial technical effects:
1. by setting the judgment plaintext and the communication ciphertext to be transmitted simultaneously in the same network environment, when an error occurs in the received judgment plaintext, the same error also occurs in the corresponding communication ciphertext transmitted simultaneously, so that the judgment of the error occurring in the transmission of the communication ciphertext can be realized by judging the communication plaintext, at the moment, a corresponding first data acquisition instruction is output, the possibility that a receiving end decrypts the error to acquire the error data is reduced to a certain extent by acquiring the appointed communication ciphertext again, and the accuracy of data transmission is improved;
2. the method comprises the steps of obtaining timestamp information of a communication ciphertext currently sent by a sending end and timestamp information of the communication ciphertext received by a receiving end, judging whether the communication ciphertext is missing or delayed according to the timestamp information of the sent communication ciphertext and the timestamp information of the communication ciphertext received by the receiving end, and outputting a second data obtaining instruction to obtain a specific communication ciphertext again if data loss occurs or the communication ciphertext is in wrong sequence due to delay, so that the accuracy of data transmission is guaranteed.
Drawings
Fig. 1 is a flowchart of a data transmission method provided in the present application.
Fig. 2 is a schematic structural diagram of a data transmission device provided in the present application.
Fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Description of reference numerals: 200. a data transmission device; 201. a data receiving module; 202. a data calling module; 203. a comparison module; 204. a judgment module; 205. an instruction output module; 301. A CPU; 302. a ROM; 303. a RAM; 304. an I/O interface; 305. an input section; 306. an output section; 307. a storage section; 308. a communication section; 309. a driver; 310. a removable media.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless specifically defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment of the application discloses a data transmission method. A first data transmission path and a second data transmission path which are parallel are arranged in the same network environment, and when the network fluctuates in the same network environment, the same fluctuation occurs in data transmitted on the first data transmission path and the second data transmission path. Referring to fig. 1, the data transmission method includes:
s101: and receiving the communication ciphertext uploaded by the first data transmission path and the judgment plaintext uploaded by the second transmission path.
Specifically, the communication ciphertext comprises data to be transmitted, the judgment plaintext and the communication ciphertext are the same in length, when data transmission is carried out, the transmitting end simultaneously transmits the communication ciphertext through the first data transmission path, the second data transmission path transmits the judgment plaintext to the receiving end, the judgment plaintext is preset by a worker, the judgment plaintext is stored in a database of the receiving end, and each judgment plaintext carries a unique identification code.
S102: and calling the judgment plaintext carrying the identification code in the database according to the received unique identification code of the judgment plaintext.
Specifically, each judgment plaintext carries a unique identification code, after receiving a specific judgment plaintext, the receiving end sequentially reads binary data corresponding to each byte to determine the received binary data corresponding to the identification code corresponding to the judgment plaintext and the binary data corresponding to the judgment plaintext, and according to the received identification code corresponding to the judgment plaintext, the receiving end searches the judgment plaintext containing the identification code in the database. For example, judging the plaintext: when the identification code corresponding to "01101101" is "0000", when the plaintext transmission is determined, the sending end sends the determined plaintext "01101101" and the identification code "0000" corresponding thereto to the receiving end through the second data transmission path, in this embodiment, the identification code corresponds to the first byte, so that the binary data corresponding to the first byte read after the determined plaintext is received is the identification code corresponding to the determined plaintext, and after the identification code corresponding to the received determined plaintext is determined, the receiving end sequentially reads the identification codes stored in the database for determining plaintext, and determines the determined plaintext stored in the database that the determined plaintext is the same as the received identification code for determining plaintext.
Further, after the first byte data is read, the identification code cannot be determined, a stop instruction is output at this time, the subsequent communication ciphertext is stopped being acquired, and the acquisition instruction is simultaneously output to the sending end, the sending end receives the acquisition instruction to resend the communication ciphertext sent simultaneously with the judgment plaintext and simultaneously send the judgment plaintext, the corresponding relation between the plaintext and the communication ciphertext is judged to be absent, and the plaintext is judged to be only used for judging whether the received communication ciphertext is correct or not.
S103: and comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code, and outputting a comparison result.
Specifically, after finding the judgment plaintext carrying the identification code in the database, determining binary data corresponding to the judgment plaintext, and comparing the binary data with the received binary data corresponding to the judgment plaintext in sequence according to a preset comparison sequence, in this embodiment, the comparison sequence is to compare the binary data from the first binary data in sequence, and when the received binary data corresponding to the judgment plaintext is the same as the binary data corresponding to the judgment plaintext stored in the data storage and the digits corresponding to the same digits are the same, judging that the received judgment plaintext is the same as the judgment plaintext stored in the database; when the binary data corresponding to the received judgment plaintext is different from the binary data corresponding to the same judgment plaintext stored in the data storage or the digits corresponding to the same digits, the received judgment plaintext is judged to be different from the judgment plaintext stored in the database, namely, the data transmission error is caused by the fluctuation of the network environment at the moment, and the same error also occurs in the transmission of the corresponding communication ciphertext.
S104: and judging whether the communication ciphertext needs to be acquired again or not based on the comparison result.
Specifically, the received judgment plaintext is the same as the judgment plaintext stored in the database, and at this time, the communication ciphertext does not need to be acquired again. And when the communication ciphertext does not need to be acquired again, the system works normally.
S105: if yes, outputting a first data acquisition instruction to acquire the communication ciphertext again based on the comparison result.
Specifically, when it is determined that the communication ciphertext needs to be obtained again, a first data obtaining instruction is output based on the comparison result, for example: the received judgment plaintext is: the corresponding judgment plaintext stored in the 001101010111 database is "0011010101110100", and the data is determined to be missing, and the missing target binary data is "0100", which is transmitted by two parallel data transmission paths in the same network environment, and the length of the communication ciphertext and the length of the judgment plaintext are the same, so that the communication ciphertext has data missing, the timestamp information corresponding to the target binary data is acquired, the receiving end outputs a first data acquisition instruction to the transmitting end, and the receiving end retransmits the binary data in the communication ciphertext corresponding to the timestamp information according to the timestamp information corresponding to the target binary data after receiving the first data acquisition instruction; the received judgment plaintext is: the corresponding judgment plaintext stored in the 001101010111 database is 001101010101, and the data is judged to be a data error at this moment, and the wrong binary data is 10111, so that the timestamp information corresponding to the wrong data is determined, the receiving end outputs a first data acquisition instruction, and the sending end receives the first data acquisition instruction and retransmits the binary data in the communication plaintext corresponding to the timestamp information to the receiving end. In other embodiments, when a data transmission error occurs, all data of the communication ciphertext can be directly acquired again.
It can be understood that, since data transmission is sequential transmission and when decrypting the currently acquired communication ciphertext, the communication plaintext after the previous decryption needs to be used, when data transmission is performed, the situation that the entire communication ciphertext is lost may cause a current ciphertext decryption error, and in order to solve the problem, after the step S101 is executed, the method further includes: the method comprises the steps of obtaining timestamp information of a communication ciphertext sent by a sending end and timestamp information of a received communication ciphertext, when data transmission is carried out, the timestamp information of the communication ciphertext sent by the sending end at present is the same as the timestamp information from a current receiving end to the received communication ciphertext, when the timestamp information of the communication ciphertext sent by the sending end at present is different from the timestamp information from the current receiving end to the received communication ciphertext, stopping receiving subsequent communication ciphertext by a receiving end, deleting the currently received communication ciphertext, outputting a second data acquisition instruction, receiving the second data acquisition instruction by the sending end, resending the communication ciphertext needing to be sent at present to the receiving end, and continuing to obtain the subsequent communication ciphertext when the receiving end judges that the currently received communication ciphertext is correct.
The embodiment of the application discloses a data transmission device. Referring to fig. 2, the data transmission apparatus 200 includes:
the data receiving module 201 is configured to receive a communication ciphertext uploaded by the first data transmission path and a judgment plaintext uploaded by the second transmission path, judge that the plaintext is the same as the communication ciphertext in length, judge that the plaintext is preset and stored in the database, and each judgment plaintext carries a unique identification code;
the data calling module 202 is configured to call the judgment plaintext carrying the identification code in the database according to the received unique identification code for judging the plaintext;
the comparison module 203 is used for comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code, and outputting a comparison result;
the judging module 204 is configured to judge whether to reacquire the communication ciphertext based on the comparison result;
and if so, outputting a data acquisition instruction to acquire the communication ciphertext again based on the comparison result.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiment of the application discloses an electronic device. Referring to fig. 3, the electronic device includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 307 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus. An input/output (I/O) interface 304 is also connected to the bus.
The following components are connected to the I/O interface 304: an input section 305 including a keyboard, a mouse, and the like; an output section 306 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 307 including a hard disk and the like; and a communication section 308 including a network interface card such as a LAN card, a modem, or the like. The communication section 308 performs communication processing via a network such as the internet. Drivers 309 are also connected to the I/O interface 304 as needed. A removable medium 310 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 309 as necessary, so that a computer program read out therefrom is mounted into the storage section 307 as necessary.
In particular, according to embodiments of the present application, the process described above with reference to the flowchart fig. 1 may be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication section 308, and/or installed from the removable medium 310. The above-described functions defined in the apparatus of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (9)

1. A method of data transmission, characterized by: setting a first data transmission path and a second data transmission path in parallel in the same network environment, the method comprising:
receiving a communication ciphertext uploaded by a first data transmission path and a judgment plaintext uploaded by a second transmission path, wherein the judgment plaintext and the communication ciphertext have the same length, the judgment plaintext is preset and stored in a database, and each judgment plaintext carries a unique identification code;
calling a judgment plaintext carrying the identification code in a database according to the received unique identification code of the judgment plaintext;
comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code, and outputting a comparison result;
judging whether the communication ciphertext needs to be acquired again or not based on the comparison result;
and if so, outputting a first data acquisition instruction to acquire the communication ciphertext again based on the comparison result.
2. The data transmission method according to claim 1, characterized in that: the method for calling the identification code carried in the database according to the received unique identification code for judging the plaintext specifically comprises the following steps:
reading a binary field corresponding to a specific byte according to the received judgment plaintext;
and searching a judgment plaintext corresponding to the identification code from a database according to the binary field and the specific byte.
3. The data transmission method according to claim 2, characterized in that: the method for outputting the comparison result by the judgment plaintext carrying the identification code in the comparison database and the received judgment plaintext carrying the identification code specifically comprises the following steps:
determining all binary data corresponding to the judgment plaintext according to the judgment plaintext carrying the identification code and stored in a database;
sequentially storing judgment plaintext carrying the identification code and received binary data of the judgment plaintext in a database according to a preset comparison sequence;
judging whether the two are the same;
if yes, the comparison result is correct.
4. The data transmission method according to claim 3, characterized in that: and judging whether the two are the same, if not, the method also comprises the following steps:
determining the length of judgment plaintext carrying the identification code and binary data corresponding to the received judgment plaintext, which are stored in a database;
when the lengths are equal, judging that data transmission errors exist, and determining target binary data;
when the lengths are not equal, judging that data missing exists, and determining target binary data.
5. The data transmission method according to claim 4, characterized in that: the method for outputting the first data acquisition instruction to reacquire the communication ciphertext based on the comparison result specifically comprises the following steps:
acquiring timestamp information corresponding to target binary data;
and outputting a first data acquisition instruction according to the timestamp information so as to acquire a communication ciphertext corresponding to the timestamp information.
6. The data transmission method according to claim 1, characterized in that: after the method for receiving the communication ciphertext uploaded by the first data transmission path and the plaintext judgment uploaded by the second transmission path, the method further comprises the following steps:
acquiring timestamp information of a communication ciphertext currently sent by a sending end and timestamp information of a received communication ciphertext;
judging whether a communication ciphertext is missing or not according to timestamp information of a communication ciphertext currently sent by a sending end and timestamp information of a received communication ciphertext;
if yes, outputting a second data acquisition instruction, and re-acquiring the communication ciphertext currently sent by the sending end.
7. A data transmission apparatus, characterized by: the method comprises the following steps:
the data receiving module (201) is used for receiving a communication ciphertext uploaded by a first data transmission path and a judgment plaintext uploaded by a second transmission path, the judgment plaintext and the communication ciphertext have the same length, the judgment plaintext is preset and stored in a database, and each judgment plaintext carries a unique identification code;
the data calling module (202) is used for calling the judgment plaintext carrying the identification code in the database according to the received unique identification code of the judgment plaintext;
the comparison module (203) is used for comparing the judgment plaintext carrying the identification code in the database with the received judgment plaintext carrying the identification code and outputting a comparison result;
a judging module (204) for judging whether the communication ciphertext needs to be obtained again based on the comparison result;
and the instruction output module (205) is used for outputting a data acquisition instruction to acquire the communication ciphertext again based on the comparison result if the communication ciphertext is obtained.
8. An electronic device, characterized in that: comprising a memory and a processor, said memory having stored thereon a computer program which can be loaded by the processor and which executes the data transfer method according to any of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes a data transmission method according to any one of claims 1 to 6.
CN202210409281.0A 2022-04-19 2022-04-19 Data transmission method and device and electronic equipment Active CN114513312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210409281.0A CN114513312B (en) 2022-04-19 2022-04-19 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210409281.0A CN114513312B (en) 2022-04-19 2022-04-19 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114513312A true CN114513312A (en) 2022-05-17
CN114513312B CN114513312B (en) 2022-06-28

Family

ID=81555505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210409281.0A Active CN114513312B (en) 2022-04-19 2022-04-19 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114513312B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000115162A (en) * 1998-10-08 2000-04-21 Kodo Ido Tsushin Security Gijutsu Kenkyusho:Kk Secure communication equipment and storage device
CN1593033A (en) * 2002-02-01 2005-03-09 思科技术公司 Method and system for securely storing and transmitting data by applying a one-time pad
CN106100814A (en) * 2016-08-12 2016-11-09 佛山市云端容灾信息技术有限公司 A kind of intellectual secure multi-path network transmission system and method
US20190215188A1 (en) * 2018-01-11 2019-07-11 Nexvortex, Inc. Cipher Stream Based Secure Packet Communications with Key Stream Transmission over Diverse Paths
CN110191052A (en) * 2019-04-23 2019-08-30 北京交通大学 Across the protocol network transmission method of one kind and system
CN110856170A (en) * 2019-11-18 2020-02-28 中国联合网络通信集团有限公司 Data transmission method and device and communication system of Internet of things

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000115162A (en) * 1998-10-08 2000-04-21 Kodo Ido Tsushin Security Gijutsu Kenkyusho:Kk Secure communication equipment and storage device
CN1593033A (en) * 2002-02-01 2005-03-09 思科技术公司 Method and system for securely storing and transmitting data by applying a one-time pad
CN106100814A (en) * 2016-08-12 2016-11-09 佛山市云端容灾信息技术有限公司 A kind of intellectual secure multi-path network transmission system and method
US20190215188A1 (en) * 2018-01-11 2019-07-11 Nexvortex, Inc. Cipher Stream Based Secure Packet Communications with Key Stream Transmission over Diverse Paths
CN110191052A (en) * 2019-04-23 2019-08-30 北京交通大学 Across the protocol network transmission method of one kind and system
CN110856170A (en) * 2019-11-18 2020-02-28 中国联合网络通信集团有限公司 Data transmission method and device and communication system of Internet of things

Also Published As

Publication number Publication date
CN114513312B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN110377440B (en) Information processing method and device
CN109818962B (en) Service data processing method and device, electronic equipment and storage medium
CN110351281B (en) Universal data frame analysis method, device and equipment
CN112231765A (en) Data transmission method and device, electronic equipment and storage medium
CN115529130A (en) Data processing method, terminal, server, system, device, medium and product
CN109981671B (en) Data processing method based on encryption machine and encryption machine
CN114513312B (en) Data transmission method and device and electronic equipment
US8499092B2 (en) Validating download success
CN109871294B (en) Method and device for checking data and processing request
CN109145591B (en) Plug-in loading method of application program
US20050220343A1 (en) Automatic character code recognition/display system, method, and program using mobile telephone
CN111739190A (en) Vehicle diagnostic file encryption method, device, equipment and storage medium
US20230418470A1 (en) Data processing method and apparatus, and electronic device
CN115333851A (en) Automatic driving data transmission method and device and electronic equipment
CN114202332A (en) Digital currency wallet management method, device and system
CN109358875B (en) Ubuntu system-based hardware wallet offline upgrading device and method
CN112713963A (en) Signal nondestructive protection method and device, signal receiver and readable storage medium
CN111225402B (en) Charging middleware testing system and method
CN111314021A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113141263A (en) Upgrading method, device, system and storage medium
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof
CN116738472B (en) Task data encryption method, device and equipment applied to task data interaction
CN109831293B (en) Decryption method and system based on Aes algorithm
CN108089823B (en) Information output method and device for storage system
CN113313594B (en) Order processing method, order processing device, electronic equipment, storage medium and program product

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