CN106992987A - A kind of information transmission equipment and method based on USB - Google Patents
A kind of information transmission equipment and method based on USB Download PDFInfo
- Publication number
- CN106992987A CN106992987A CN201710246234.8A CN201710246234A CN106992987A CN 106992987 A CN106992987 A CN 106992987A CN 201710246234 A CN201710246234 A CN 201710246234A CN 106992987 A CN106992987 A CN 106992987A
- Authority
- CN
- China
- Prior art keywords
- protocol
- usb
- data packet
- information
- transmission equipment
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 116
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000006243 chemical reaction Methods 0.000 claims abstract description 30
- 238000012546 transfer Methods 0.000 claims abstract description 12
- 238000012545 processing Methods 0.000 claims description 50
- 230000008569 process Effects 0.000 claims description 14
- 238000004806 packaging method and process Methods 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 5
- 238000012856 packing Methods 0.000 claims description 2
- 230000008676 import Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
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)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of information transmission equipment based on USB and method, and described information transmission equipment connects client and server respectively;Wherein, described information transmission equipment includes the USB transmission equipment of the first mainboard, the second mainboard and connection first mainboard and the second mainboard;First mainboard includes outer net service module and the first protocol conversion module, and the client, outer net service module, the first protocol conversion module and USB transmission equipment are sequentially connected;Second mainboard includes second protocol modular converter, and the USB transmission equipment, second protocol modular converter and server are sequentially connected;By being provided with outer net service module and the first protocol conversion module in the first mainboard, second protocol modular converter is set in the second mainboard, so that passing through USB proprietary protocols ferry-boat data between two mainboards, realize interacting for information between client and server, ICP/IP protocol and the attack of other network informations thoroughly have been blocked, the security of network information transfer can be effectively improved.
Description
Technical Field
The invention relates to the technical field of network information transmission, in particular to information transmission equipment and method based on a USB.
Background
Defects of the network itself, openness of the network, and hacking are the main causes of insecurity of the internet. Such as TCP/IP, is a standard set of protocols used by the Internet and is a key target for hackers to implement network attacks. The TCP/IP suite is currently the most widely used internetworking protocol, but the TCP/IP suite itself presents some security issues. The TCP/IP protocol is established under a trusted environment, and firstly, the lack of network interconnection into the consideration of safety is considered; such address-based protocols themselves reveal passwords and often run unrelated programs, which are defects of the network itself. The internet technology shields the details of the hardware of the underlying network, so that heterogeneous networks can communicate with each other, but provides a favorable opportunity for hackers to attack the network. Since a large number of important applications use TCP as their transport layer protocol, TCP security issues can have serious consequences for the network. The openness of the network, the complete disclosure of the TCP/IP protocol, remote access to many attackers without the need to go to the scene, and the insecurity of the network due to the principle of mutual trust of connected hosts.
In order to solve the security problem of the network, each confidential enterprise or unit establishes a physically isolated confidential network for daily work, and with the development of management informatization and scientific research production digitization work in the confidential networks, a confidential information system needs to perform necessary information exchange with other confidential and non-confidential information systems, and the continuous and rapid acquisition requirements of business management and scientific research production work on external information are gradually highlighted, for example, each business department in a group headquarters and a hospital needs to acquire the external information in time, and particularly, the non-confidential data import requirements with high frequency in certain specific application time periods are met.
In order to ensure the safety of the internal server, each confidential enterprise or unit establishes a physically isolated confidential network for daily work, the confidential network is thoroughly disconnected from an external network, and information is transmitted in a manual ferry mode. Although the method blocks the attack of an external network, the manual import mode has low efficiency, especially the requirement of importing non-secret data with high frequency in a fixed time period by specific application, but the current multi-batch manual import mode is difficult to meet the requirement, influences daily scientific research and production work to a certain extent, ensures high-efficiency information exchange between a secret-related network and a non-secret network on the basis of meeting the relevant security and confidentiality standard of the country, and becomes the problem that the secret-related network must solve.
Disclosure of Invention
The invention aims to provide information transmission equipment based on a USB, which can block the attack of a TCP/IP protocol and network information and improve the safety of network transmission.
In order to achieve the purpose, the invention provides the following scheme:
the information transmission equipment based on the USB is respectively connected with a client and a server; the information transmission equipment comprises a first mainboard, a second mainboard and USB transmission equipment for connecting the first mainboard and the second mainboard;
the first mainboard comprises an external network service module and a first protocol conversion module, and the client, the external network service module, the first protocol conversion module and the USB transmission equipment are sequentially connected;
the external network service module is used for converting the information sent by the client into first protocol information; the first protocol conversion module is used for converting and packaging the first protocol information according to a USB private protocol, and writing the packaged first protocol information into the USB transmission equipment; or reading second protocol information written by a second mainboard from the USB transmission equipment, converting and unpacking the second protocol information according to the USB private protocol, and sending the unpacked second protocol information to the external network service module; the extranet service module is further configured to forward the unpacked second protocol information to the client;
the second mainboard comprises a second protocol conversion module, and the USB transmission equipment, the second protocol conversion module and the server are sequentially connected;
the second protocol conversion module is used for reading the packed first protocol information from the USB transmission equipment, converting and unpacking the packed first protocol information according to the USB private protocol, and sending the unpacked first protocol information to the server; or packing the second protocol information sent by the server according to the USB private protocol and writing the second protocol information into the USB transmission equipment.
Optionally, the number of the USB transmission devices is multiple.
Optionally, the first motherboard further includes a first buffer module, configured to place the packaged second protocol information read from the USB transmission device into a preset position in the first buffer module, and wait for processing of a data processing thread; when a data processing thread processes a data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with a second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting a corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module;
the second mainboard further comprises a second buffer module, and the second buffer module is used for putting the packed first protocol information read from the USB transmission equipment into a set position in the second buffer module and waiting for the processing of a data processing thread;
and when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol is set at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting a corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module.
Optionally, the set position is determined by taking the remaining number of the data packets in the corresponding buffer module by the stored data packet sequence number;
the current setting position is determined by the number of data packets in the corresponding buffer area module according to the currently set data packet sequence number.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the information transmission equipment based on the USB, the extranet service module and the first protocol conversion module are arranged in the first main board, and the second protocol conversion module is arranged in the second main board, so that data are ferried between the two main boards through the USB private protocol, information interaction between the client and the server is realized, attacks of a TCP/IP protocol and other network information are thoroughly blocked, and the safety of network information transmission can be effectively improved.
The invention aims to provide an information transmission method based on USB, which can block the attack of TCP/IP protocol and network information and improve the safety of network transmission.
In order to achieve the purpose, the invention provides the following scheme:
an information transmission method based on USB, the information transmission method uses the above-mentioned information transmission equipment based on USB; the information transmission method comprises the following steps:
converting information sent by a client into first protocol information; converting and packaging the first protocol information according to a USB private protocol, and writing the packaged first protocol information into USB transmission equipment;
reading the packed first protocol information from the USB transmission equipment, and converting and unpacking according to the USB private protocol; sending the unpacked first protocol to a server; or,
converting and packaging second protocol information sent by the server according to the USB private protocol, and writing the packaged second protocol into the USB transmission equipment;
and reading the packaged second protocol information from the USB equipment, converting and unpacking according to the USB private protocol to obtain the unpacked second protocol information, and forwarding the unpacked second protocol information to the client.
Optionally, the information sent by the client includes a control instruction and/or data.
Optionally, the second protocol information includes a response and/or data for the control instruction.
Optionally, the number of the USB transmission devices is multiple.
Optionally, the information transmission method further includes:
after the packed first protocol information is read from the USB transmission equipment, a data packet of the first protocol information is put into a preset position in a second buffer module to wait for the processing of a data processing thread;
when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module; or,
after the packaged second protocol information is read from the USB transmission equipment, a data packet of the second protocol information is put into a preset position in the first buffer module to wait for the processing of a data processing thread;
and when the data processing thread processes the data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with the data packet of the second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module.
Optionally, the method for determining the set position includes: determining the number of the data packets in the corresponding buffer area module by the stored data packet sequence number;
the method for determining the current set position comprises the following steps: and the number of the data packets in the corresponding buffer area module is determined by the currently set data packet sequence number.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the information transmission method based on the USB converts the information sent by the client into first protocol information, converts and packs the information according to the USB private protocol, converts and unpacks the information according to the USB private protocol and sends the information to the server; or the second protocol information sent by the server is converted and packaged according to the USB private protocol, converted and unpacked according to the USB private protocol and sent to the client, so that the information interaction between the client and the server is realized through the USB private protocol ferrying data, the attack of a TCP/IP protocol and other network information is thoroughly blocked, and the safety of network information transmission can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a block diagram of a USB-based information transmission apparatus according to an embodiment of the present invention;
FIG. 2 is a block diagram of a USB proprietary protocol;
FIG. 3 is a flowchart illustrating a client sending information to a service in the USB-based information transmission method according to the embodiment of the present invention;
FIG. 4 is a flowchart illustrating a server sending information to a client in the USB-based information transmission method according to the embodiment of the present invention;
FIG. 5 is a flow chart of a process for a USB cluster.
Description of the symbols:
1-client, 2-server, 3-first mainboard, 31-extranet service module, 32-first protocol conversion module, 4-second mainboard, 41-second protocol conversion module, 5-USB transmission equipment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, 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 invention.
The invention aims to provide information transmission equipment based on a USB (universal serial bus). an external network service module and a first protocol conversion module are arranged in a first main board, and a second protocol conversion module is arranged in a second main board, so that data are ferried between the two main boards through a USB private protocol, information interaction between a client and a server is realized, attacks of a TCP/IP (transmission control protocol/Internet protocol) and other network information are thoroughly blocked, and the safety of network information transmission can be effectively improved.
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.
As shown in fig. 1, the USB-based information transmission device of the present invention connects a client 1 and a server 2, respectively. The information transmission equipment based on the USB comprises a first mainboard 3, a second mainboard 4 and USB transmission equipment 5 for connecting the first mainboard 3 and the second mainboard 4.
The first main board 3 includes an external network service module 31 and a first protocol conversion module 32, and the client 1, the external network service module 31, the first protocol conversion module 32 and the USB transmission device 5 are connected in sequence.
The extranet service module 31 is configured to convert information sent by the client 1 into first protocol information; the first Protocol conversion module 32 is configured to convert and package the first Protocol information according to a USB Private Protocol (Private Protocol Over USB, abbreviated as PPOU), and write the packaged first Protocol information into the USB transmission device 5; or reading the second protocol information written by the second motherboard 4 from the USB transmission device 5, performing conversion and unpacking according to the USB private protocol, and sending the unpacked second protocol information to the extranet service module 31; the extranet service module 31 is further configured to forward the unpacked second protocol information to the client 1.
The second motherboard 4 includes a second protocol conversion module 41, and the USB transmission device 5, the second protocol conversion module 41, and the server 2 are connected in sequence.
The second protocol conversion module 41 is configured to read the packed first protocol information from the USB transmission device 5, convert and unpack the first protocol information according to the USB private protocol, and send the unpacked first protocol information to the server 2; or the second protocol information sent by the server 2 is packaged according to the USB private protocol and written into the USB transmission device 5.
The information sent by the client comprises a control instruction and/or data, and the second protocol information comprises a response and/or data aiming at the control instruction.
The USB private protocol PPOU mainly aims to encapsulate and multiplex network control of FTP and data channel data, and is specifically defined as shown in fig. 2:
the sync word is 4 Bytes; the data check is 1 byte, and the check type of a PPDU header and a data load is defined; the data packet type is 1 byte, and a request packet, a response packet and a data packet are defined; the command type 2 bytes, in combination with the FTP standard request command, can be defined as: open/login (equal FTP standard commands)/close; the external network session ID is used for marking the external network FTP session corresponding to the data packet, and 4bytes are reserved; the intranet session ID is used for marking the corresponding extranet FTP session of the data packet, and 4bytes are reserved; the transmission sequence number is used for respectively recording the sequence numbers of the control packet and the data packet, and 4bytes are used; the payload length is used to record the effective length of the payload, excluding the data check area length of the payload, 4 bytes.
The number of the USB transmission devices is multiple, USB cluster transmission can be achieved, and transmission efficiency is improved.
Further, the first motherboard 3 further includes a first buffer module, configured to place the packaged second protocol information read from the USB transmission device 5 at a preset position in the first buffer module, and wait for processing of a data processing thread; and when the data processing thread processes the data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with the data packet of the second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module. Each data packet has a fixed sequence number, and whether packet loss exists can be found through checking the sequence number, so that the safety of data transmission is ensured.
The second motherboard 4 further includes a second buffer module, configured to place the packed first protocol information read from the USB transmission device 5 into a preset position in the second buffer module, and wait for processing of a data processing thread; and when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol is set at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting a corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module.
The set position is determined by the number of the data packets in the corresponding buffer area module according to the stored data packet sequence number; the current setting position is determined by the number of data packets in the corresponding buffer area module according to the currently set data packet sequence number.
The information transmission equipment based on the USB enables the network between the client and the server to carry out protocol isolation and cut off the function of network communication by arranging the first protocol conversion module on the first mainboard and arranging the second protocol conversion module on the second mainboard, and shields the public protocol on a link layer, a network layer and a transmission layer, thereby achieving the purpose of only allowing the USB private protocol to pass, thoroughly blocking the attack of a TCP/IP protocol and other network information and effectively improving the safety of network information transmission.
In addition, the invention also provides an information transmission method based on the USB, and the information transmission equipment based on the USB can block the attack of the TCP/IP protocol and the network information and improve the safety of network transmission.
As shown in fig. 3, the information transmission method based on USB of the present invention includes:
step 101: converting information sent by a client into first protocol information;
step 102: converting and packaging the first protocol information according to a USB private protocol, and writing the packaged first protocol information into USB transmission equipment;
step 103: reading the packed first protocol information from the USB transmission equipment, and converting and unpacking according to the USB private protocol;
step 104: and sending the unpacked first protocol to a server.
The transmission of information from the client to the server is realized through steps 101 to 104.
As shown in fig. 4, the information transmission method based on USB of the present invention further includes:
step 201: converting and packaging second protocol information sent by the server according to the USB private protocol, and writing the packaged second protocol into the USB transmission equipment;
step 202: reading the packaged second protocol information from the USB equipment, and converting and unpacking according to the USB private protocol;
step 203: and forwarding the unpacked second protocol information to the client.
The transmission of information from the server to the client is realized through the steps 201 to 203.
The information sent by the client comprises a control instruction and/or data, and the second protocol information comprises a response and/or data aiming at the control instruction.
Optionally, the number of the USB transmission devices is multiple, so that USB cluster transmission can be realized, and transmission efficiency is improved.
Optionally, the information transmission method further includes:
after the packed first protocol information is read from the USB transmission equipment, a data packet of the first protocol information is put into a preset position in a second buffer module to wait for the processing of a data processing thread;
when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module; or,
after the packaged second protocol information is read from the USB transmission equipment, a data packet of the second protocol information is put into a preset position in the first buffer module to wait for the processing of a data processing thread;
and when the data processing thread processes the data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with the data packet of the second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module.
The method for determining the set position comprises the following steps: determining the number of the data packets in the corresponding buffer area module by the stored data packet sequence number; the method for determining the current set position comprises the following steps: and the number of the data packets in the corresponding buffer area module is determined by the currently set data packet sequence number.
Specifically, as shown in fig. 5, the receive concurrency procedure:
1) when a PPOUD (Private Protocol overtusb Daemon, USB Private Protocol service program) is started, during initialization, the number of devices in a physical transmission line PL2701 of a USB transmission device in the current system is automatically searched, and whether peer connection is successful is determined. At the moment, only the physical transmission line PL2701 with successful connection of the opposite end is counted, and the found equipment is stored in a linked list; according to the number of found physical transmission line PL2701 devices, a designated location within the corresponding buffer is allocated. Step 1) can be realized by the fbox _ transfer _ init function.
2) When the fbox _ transfer _ open function is executed, a receive thread is created for the current PL 2701.
The thread receiving process specifically includes:
a. all receiving threads share one receiving count, and mutually exclusive access is carried out on the receiving count and the write operation of the buffer area;
b. after receiving data, checking the sequence number of the current data packet, judging whether the sequence number is equal to a reception count +1, if so, submitting the reception count +1 to an upper layer for processing, and checking whether the data in the buffer area can be submitted for processing together; if not, the data packet is submitted to the buffer area.
The corresponding sending concurrency flow comprises the following steps:
1) adding multiple threads, and adding one sending thread for each fbox; each thread waits for the semaphore corresponding to the thread, and when the semaphore can be used, data is sent;
2) the Fbox _ transfer _ send function is changed into the following flow: searching for available fbox _ transfer, then submitting the corresponding data to the corresponding fbox _ transfer, and then returning; and if no fbox _ transfer is available, blocking and waiting for the sending thread to finish sending.
Wherein, splitting send into two steps to accomplish:
a. searching available equipment in a current system according to the fbox _ transfer _ send function, copying data to a sending buffer area of the equipment, setting the state of the equipment to be sent, and returning the function;
b. the background starts a corresponding thread for each device, when the first step is finished, the corresponding thread is awakened, after the thread is awakened, data in the device buffer area is sent, and after the sending is finished, the number of globally available devices is increased by 1.
Aiming at each device, the device has a semaphore of 'whether the device is available', so that the thread can sleep and wake up in time conveniently; there is one semaphore for how many devices are available for communication fbox _ transfer _ send and fbox _ transfer _ send _ lastalf.
The embodiments in the present description 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. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (10)
1. The information transmission equipment based on the USB is characterized in that the information transmission equipment is respectively connected with a client and a server; the information transmission equipment comprises a first mainboard, a second mainboard and USB transmission equipment for connecting the first mainboard and the second mainboard;
the first mainboard comprises an external network service module and a first protocol conversion module, and the client, the external network service module, the first protocol conversion module and the USB transmission equipment are sequentially connected;
the external network service module is used for converting the information sent by the client into first protocol information; the first protocol conversion module is used for converting and packaging the first protocol information according to a USB private protocol, and writing the packaged first protocol information into the USB transmission equipment; or reading second protocol information written by a second mainboard from the USB transmission equipment, converting and unpacking the second protocol information according to the USB private protocol, and sending the unpacked second protocol information to the external network service module; the extranet service module is further configured to forward the unpacked second protocol information to the client;
the second mainboard comprises a second protocol conversion module, and the USB transmission equipment, the second protocol conversion module and the server are sequentially connected;
the second protocol conversion module is used for reading the packed first protocol information from the USB transmission equipment, converting and unpacking the packed first protocol information according to the USB private protocol, and sending the unpacked first protocol information to the server; or packing the second protocol information sent by the server according to the USB private protocol and writing the second protocol information into the USB transmission equipment.
2. The USB-based information transfer apparatus according to claim 1, wherein the number of the USB transfer apparatuses is plural.
3. The USB-based information transmission apparatus according to claim 1, wherein the first motherboard further includes a first buffer module, configured to put the packaged second protocol information read from the USB transmission apparatus into a preset position in the first buffer module, and wait for processing of a data processing thread; when a data processing thread processes a data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with a second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting a corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module;
the second mainboard further comprises a second buffer module, and the second buffer module is used for putting the packed first protocol information read from the USB transmission equipment into a set position in the second buffer module and waiting for the processing of a data processing thread;
and when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol is set at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting a corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module.
4. The USB-based information transmission apparatus according to claim 3, wherein the set position is determined by a number of data packets remaining in the corresponding buffer module by the stored data packet sequence number;
the current setting position is determined by the number of data packets in the corresponding buffer area module according to the currently set data packet sequence number.
5. A USB-based information transmission method, characterized in that the information transmission method employs the USB-based information transmission apparatus of any one of claims 1 to 4; the information transmission method comprises the following steps:
converting information sent by a client into first protocol information; converting and packaging the first protocol information according to a USB private protocol, and writing the packaged first protocol information into USB transmission equipment;
reading the packed first protocol information from the USB transmission equipment, and converting and unpacking according to the USB private protocol; sending the unpacked first protocol to a server; or,
converting and packaging second protocol information sent by the server according to the USB private protocol, and writing the packaged second protocol into the USB transmission equipment;
reading the packaged second protocol information from the USB equipment, and converting and unpacking according to the USB private protocol; and forwarding the unpacked second protocol information to the client.
6. The USB-based information transmission method according to claim 5, wherein the information sent by the client comprises control commands and/or data.
7. The USB-based information transmission method according to claim 6, wherein the second protocol information includes a response and/or data for the control command.
8. The USB-based information transmission method according to claim 5, wherein the number of the USB transmission devices is plural.
9. The USB-based information transmission method according to claim 5, further comprising:
after the packed first protocol information is read from the USB transmission equipment, a data packet of the first protocol information is put into a preset position in a second buffer module to wait for the processing of a data processing thread;
when the data processing thread processes the data packet in the second buffer module, reading the data packet at the current set position, if the data packet with the first protocol at the current set position and the sequence number of the data packet with the first protocol is the same as the set sequence number, sending the data packet with the current first protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the second buffer module; or,
after the packaged second protocol information is read from the USB transmission equipment, a data packet of the second protocol information is put into a preset position in the first buffer module to wait for the processing of a data processing thread;
and when the data processing thread processes the data packet in the first buffer module, reading the data packet at the current set position, if the data packet at the current set position is provided with the data packet of the second protocol and the sequence number of the data packet of the second protocol is the same as the set sequence number, sending the data packet of the current second protocol information, setting the corresponding sending sequence number, and waiting for processing the data packet at the next set position in the first buffer module.
10. The USB-based information transmission method according to claim 9, wherein the method for determining the set position includes: determining the number of the data packets in the corresponding buffer area module by the stored data packet sequence number;
the method for determining the current set position comprises the following steps: and the number of the data packets in the corresponding buffer area module is determined by the currently set data packet sequence number.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710246234.8A CN106992987A (en) | 2017-04-15 | 2017-04-15 | A kind of information transmission equipment and method based on USB |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710246234.8A CN106992987A (en) | 2017-04-15 | 2017-04-15 | A kind of information transmission equipment and method based on USB |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106992987A true CN106992987A (en) | 2017-07-28 |
Family
ID=59415621
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710246234.8A Pending CN106992987A (en) | 2017-04-15 | 2017-04-15 | A kind of information transmission equipment and method based on USB |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106992987A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111131154A (en) * | 2019-11-19 | 2020-05-08 | 北京国铁盛阳技术有限公司 | Network management data ferrying method and system, storage medium and computer equipment |
| CN111264049A (en) * | 2017-10-24 | 2020-06-09 | 株式会社索思未来 | Converters and Data Transmission Systems |
| CN111371765A (en) * | 2020-02-27 | 2020-07-03 | 八维通科技有限公司 | Online heterogeneous communication method and system based on link blocking |
| CN111445164A (en) * | 2020-04-17 | 2020-07-24 | 福州明源动力软件有限公司 | Enterprise erp plan management system and information transmission method thereof |
| CN113194085A (en) * | 2021-04-27 | 2021-07-30 | 云南电网有限责任公司信息中心 | Data autonomous safety transmission equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202424770U (en) * | 2011-12-08 | 2012-09-05 | 杭州翼鹏科技有限公司 | Safety isolator for network data |
| CN103209191A (en) * | 2013-05-08 | 2013-07-17 | 天津工业大学 | Method for realizing physical partition of internal and external networks |
| CN105743815A (en) * | 2016-04-06 | 2016-07-06 | 腾讯科技(深圳)有限公司 | Method and device for processing jitter buffer data |
-
2017
- 2017-04-15 CN CN201710246234.8A patent/CN106992987A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202424770U (en) * | 2011-12-08 | 2012-09-05 | 杭州翼鹏科技有限公司 | Safety isolator for network data |
| CN103209191A (en) * | 2013-05-08 | 2013-07-17 | 天津工业大学 | Method for realizing physical partition of internal and external networks |
| CN105743815A (en) * | 2016-04-06 | 2016-07-06 | 腾讯科技(深圳)有限公司 | Method and device for processing jitter buffer data |
Non-Patent Citations (1)
| Title |
|---|
| 肖踞雄: "《USB技术及应用设计》", 30 November 2003 * |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111264049A (en) * | 2017-10-24 | 2020-06-09 | 株式会社索思未来 | Converters and Data Transmission Systems |
| CN111131154A (en) * | 2019-11-19 | 2020-05-08 | 北京国铁盛阳技术有限公司 | Network management data ferrying method and system, storage medium and computer equipment |
| CN111371765A (en) * | 2020-02-27 | 2020-07-03 | 八维通科技有限公司 | Online heterogeneous communication method and system based on link blocking |
| CN111445164A (en) * | 2020-04-17 | 2020-07-24 | 福州明源动力软件有限公司 | Enterprise erp plan management system and information transmission method thereof |
| CN113194085A (en) * | 2021-04-27 | 2021-07-30 | 云南电网有限责任公司信息中心 | Data autonomous safety transmission equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10630784B2 (en) | Facilitating a secure 3 party network session by a network device | |
| CN106992987A (en) | A kind of information transmission equipment and method based on USB | |
| US7200641B1 (en) | Method and system for encoding SCSI requests for transmission using TCP/IP | |
| US7320071B1 (en) | Secure universal serial bus | |
| US11394776B2 (en) | Systems and methods for transport layer processing of server message block protocol messages | |
| US20130055044A1 (en) | Method And Apparatus For Restricting The Operation Of USB Devices | |
| CN103166996B (en) | HTTP connects and HTTPS connects self-adaptation method, Apparatus and system | |
| CN114124929A (en) | Cross-network data processing method and device | |
| WO2014067310A1 (en) | Data packet processing method, electronic device, and storage medium | |
| CN106506510A (en) | Dynamic vibration signal data cross-gateway transmission system and method | |
| CN106330973B (en) | A method of data security exchange based on black and white list | |
| CN101127761A (en) | Unidirectional protocol isolation method and device in network | |
| CN109862039B (en) | Cross-network isolation one-way introduction system and data introduction method based on radio frequency technology | |
| CN103209191A (en) | Method for realizing physical partition of internal and external networks | |
| JP2009044665A (en) | Program for controlling communication device and communication device | |
| AU2013207584B2 (en) | Time-locked network and nodes for exchanging secure data packets | |
| CN111786832A (en) | A method and device for interconnecting an attack-defense platform with a variety of industrial control scenarios | |
| CN113873057B (en) | Data processing methods and devices | |
| US20120041998A1 (en) | Network Interface for Accelerating XML Processing | |
| CN117615042A (en) | Data communication method, device, computer equipment and storage medium | |
| CN112840317A (en) | Data transmission method, device and electronic device based on file transfer protocol | |
| EP3662640B1 (en) | Data communication with devices having no direct access or only restricted access to communication networks | |
| EP3176986A1 (en) | Method, device and system for remote desktop protocol gateway to conduct routing and switching | |
| CN105721453A (en) | Network isolation system and network videocorder | |
| CN119299405B (en) | A system and method for remotely reading and writing PHY chip registers |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |
|
| RJ01 | Rejection of invention patent application after publication |