EP-4738766-A2 - DATA TRANSMISSION CONTROL METHOD AND SYSTEM, AND FIRST END, DEVICE AND READABLE STORAGE MEDIUM
Abstract
The control apparatus according to the present disclosure is in communication connection with the first end based on a first communication protocol, some of a plurality of communication nodes included in the first communication protocol are unidirectional communication nodes, and the first control apparatus is configured to determine first configuration information in response to a communication node configuration operation on the control apparatus for the first end, wherein communication nodes included in the first configuration information are communication nodes in the first communication protocol; to start, for the first end, at least one first communication node according to the first configuration information during a non-handshake data transmission process with the first end, wherein a node type to which the first communication node belongs is capable of reflecting a data transmission function enabled by the first communication node for the first end; and to control data transmission capability of the first end through each first communication node according to the node type to which each first communication node belongs. According to the present disclosure, the data transmission capability of the first end may be controlled by the constrains based on communication protocol with a simple construction and low cost.
Inventors
- HUANG, JIANFANG
Assignees
- Huang, Jianfang
Dates
- Publication Date
- 20260506
- Application Date
- 20240630
Claims (20)
- A data transmission method, characterized in that , applicable to a first control module inside a first application on a first terminal, the method comprises: determining first transaction information of a first transmission transaction in correspondence to a first data stream of the first application; when a first data block of the first data stream needs to be transmitted to a second terminal, determining first target header information for the first data block on the basis of the first transaction information; generating a first message to be sent according to the first data block and the first target header information; sending the first message to the second terminal; wherein the first target header information is used for verifying whether the first message meets requirements.
- The method according to claim 1, characterized in that said determining first target header information for the first data block on the basis of the first transaction information comprises: obtaining a header information transmission manner in correspondence to data blocks in the first data stream; determining target header fields for the first data block from multiple header fields included in a preset message header format according to the header information transmission manner and relevant information of the first data block; configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block, and obtaining a message header that is determined for the first data block.
- The method according to claim 2, characterized in that said determining target header fields for the first data block from multiple header fields included in a preset message header format according to the header information transmission manner and relevant information of the first data block comprises: determining the ranking of the first data block in the first data stream according to block number of the first data block as included in the relevant information; determining that the multiple header fields are the target header fields if the header information transmission manner is a first manner, or the header information transmission manner is a second manner and the first data block is ranked last in the first data stream, or the header information transmission manner is a third manner and the first data block is ranked first in the first data stream; determining that some header fields in the multiple header fields are the target header fields if the header information transmission manner is a second manner and the first data block is not ranked last in the first data stream, or the header information transmission manner is the third manner and the first data block is not ranked first in the first data stream.
- The method according to claim 3, characterized in that when the multiple header fields are the target header fields, said configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block and obtaining a message header that is determined for the first data block comprises: determining address information of the first terminal for the first transmission transaction; configuring field values of the target header fields according to the address information of the first terminal, the first transaction information, and the relevant information of the first data block, and obtaining a first message header that is determined for the first data block; wherein the first message header comprises: the address information of the first terminal, the address information of the second terminal, transaction attribute identification of the first transmission transaction, transaction identification of the first transmission transaction, the total number of the data blocks in the first data stream, the block number of the first data block, the total size of the first target header information and the first data block, and annotated information; when the total number is a set value, it indicates that the first data stream is a stream with an unknown number of data blocks.
- The method according to claim 4, characterized in that said determining address information of the first terminal for the first transmission transaction comprises: obtaining a first correspondence between the address information of the first terminal and transaction type; determining the address information of the first terminal, which information has a correspondence with the transaction type of the first transmission transaction, on the basis of the first correspondence.
- The method according to claim 4, characterized in that when the first data block is ranked first or last in the first data stream, said determining first target header information for the first data block on the basis of the first transaction information further comprises: determining whether a data header needs to be added to the first data block according to transmission transaction attribute information of the first transmission transaction in the first transaction information; if yes, determining the data header for the first data block according to stream information of the first data stream; wherein the data header is adapted to the first data stream and meets preset data header format requirements.
- The method according to claim 6, characterized in that said determining the data header for the first data block according to stream information of the first data stream comprises: selecting one data header format that is adapted from multiple preset data header formats on the basis of data header usage information included in the transmission transaction attribute information; generating the data header in the data header format as selected according to the stream information of the first data stream.
- The method according to claim 3, characterized in that when some header fields in the multiple header fields are the target header fields, said configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block and obtaining a message header that is determined for the first data block comprises: configuring field values of the target header fields according to transaction identification of the first transmission transaction in the first transaction information, and obtaining a second message header that is determined for the first data block; wherein the second message header comprises the transaction identification.
- The method according to any one of claims 1 to 8, characterized in that said determining first transaction information of a first transmission transaction in correspondence to a first data stream of the first application comprises: Generating transaction identification for the first transmission transaction; obtaining transmission transaction attribute information of the first transmission transaction.
- The method according to claim 9, characterized in that said obtaining transmission transaction attribute information of the first transmission transaction comprises: determining transaction attribute identification of the first transmission transaction; inquiring the transmission transaction attribute information of the first transmission transaction from multiple pieces of preset transmission transaction attribute information on the basis of the transaction attribute identification.
- The method according to claim 10, characterized in that said determining transaction attribute identification of the first transmission transaction comprises: determining the transaction type of the first transmission transaction according to transmission demand information of the first data stream; determining the transaction attribute identification that has a correspondence with the transaction type of the first transmission transaction on the basis of a second correspondence between the transaction type and the transaction attribute identification.
- The method according to any one of claims 1 to 8, characterized in that said sending the first message to the second terminal comprises: sending the first message to a second control module, verifying the first target header information included in the first message through the second control module, and when it is verified that the first message meets the requirements, sending the first message to the second terminal; wherein the second control module is a module that is external to the first application on the first terminal.
- The method according to any one of claims 1 to 8, characterized by further comprising: receiving a second message sent by the second terminal; wherein the second message is generated according to a second data block and second target header information, which is determined for the second data block of a second data stream by a third control module on the second terminal according to second transaction information of a second transmission transaction in correspondence to the second data stream of a second application on the second terminal; the second target header information is used for verifying whether the second message meets the requirements; the third control module is located inside or outside the second application.
- A data transmission method, characterized in that , applicable to a second control module that is external to a first application on a first terminal, the method comprises: determining first transaction information of a first transmission transaction to which a first data block belongs in response to the first data block that is sent by the first application and needs to be transmitted to a second terminal; determining first target header information for the first data block on the basis of the first transaction information; generating a first message to be sent according to the first data block and the first target header information; sending the first message to the second terminal; wherein the first target header information is used for verifying whether the first message meets requirements.
- The method according to claim 14, characterized in that said determining first target header information for the first data block on the basis of the first transaction information comprises: obtaining a header information transmission manner in correspondence to data blocks in the first data stream to which the first data block belongs; determining target header fields for the first data block from multiple header fields included in a preset message header format according to the header information transmission manner and relevant information of the first data block; configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block, and obtaining a message header that is determined for the first data block.
- The method according to claim 15, characterized in that said determining target header fields for the first data block from multiple header fields included in a preset message header format according to the header information transmission manner and relevant information of the first data block comprises: determining the ranking of the first data block in the first data stream according to block number of the first data block as included in the relevant information; determining that the multiple header fields are the target header fields if the header information transmission manner is a first manner, or the header information transmission manner is a second manner and the first data block is ranked last in the first data stream, or the header information transmission manner is a third manner and the first data block is ranked first in the first data stream; determining that some header fields in the multiple header fields are the target header fields if the header information transmission manner is the second manner and the first data block is not ranked last in the first data stream, or the header information transmission manner is the third manner and the first data block is not ranked first in the first data stream.
- The method according to claim 16, characterized in that when the multiple header fields are the target header fields, said configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block and obtaining a message header that is determined for the first data block comprises: determining a second preset string in correspondence to the first terminal for the first transmission transaction; configuring field values of the target header fields according to the second preset string, the first transaction information, and the relevant information of the first data block, and obtaining a first message header that is determined for the first data block; wherein the first message header comprises: a first preset string in correspondence to the second terminal, the second preset string, transaction attribute identification of the first transmission transaction, transaction identification of the first transmission transaction, the total number of the data blocks in the first data stream, the block number of the first data block, the total size of the first target header information and the first data block, and annotated information; when the total number is a set value, it indicates that the first data stream is a stream with an unknown number of data blocks; preset strings are address information of corresponding terminals, or the preset strings are used for hiding the address information of the corresponding terminals.
- The method according to claim 17, characterized in that when the preset strings are used for hiding the address information of the corresponding terminals, said sending the first message to the second terminal comprises: obtaining the first preset string in correspondence to the second terminal from transmission transaction attribute information of the first transmission transaction as included in the first transaction information; obtaining the address information of the second terminal according to the first preset string; sending the first message to the second terminal according to the address information of the second terminal.
- The method according to claim 18, characterized in that said sending the first message to the second terminal according to the address information of the second terminal comprises: sending the first message to an intermediate network apparatus according to the address information of the second terminal, so as to send the first message to the second terminal through the intermediate network apparatus; wherein the intermediate network apparatus executes any one of steps as follows before sending the first message to the second terminal: verifying the first target header information included in the first message; generating log information of the first transmission transaction according to the first message.
- The method according to claim 16, characterized in that when some header fields in the multiple header fields are the target header fields, said configuring field values of the target header fields according to at least one of the first transaction information and the relevant information of the first data block and obtaining a message header that is determined for the first data block comprises: configuring field values of the target header fields according to transaction identification of the first transmission transaction in the first transaction information, and obtaining a second message header that is determined for the first data block; wherein the second message header comprises the transaction identification.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present disclosure claims priority to Chinese patent applications listed in the table below, the entire content of which are incorporated herein by reference. Filing DateApplication NumberTitle of Application for Patent2023-06-30202310801511.2Data transmission control method, system, control apparatus and readable storage medium2023-11-30PCT/CN2023/135531Data transmission control method, system, first end, intermediate network apparatus, and control apparatus TECHNICAL FIELD The present application pertains to the computer field, and particularly relates to a data transmission method, a data transmission control method, a system, a first end, an intermediate network apparatus, a control apparatus, and a computer-readable storage medium. BACKGROUND ART With the development of communication technology, it is an important way of information exchange for people to transmit data information through a network. At present, data transmission between different ends such as clients and servers in the network is mostly realized by using TCP/IP (Transmission Control Protocol/Internet Protocol (also known as Network Communication Protocol). However, due to the lack of consideration for transmission security in the design of TCP/IP, there exists the problem of failing to perform security management on transmitted data content; moreover, since it is open and bidirectional, there also exists the problem that apparatuses in the network are vulnerable to malicious attacks and data leakage. CONTENTS OF THE INVENTION In view of the above problems, a data transmission method, a data transmission control method, a system, a first end, an intermediate network apparatus, a control apparatus, and a computer-readable storage medium, which can at least partially ameliorate or solve the existing problems, are provided in the embodiments of the present application. In one embodiment of the present application, there is provided a data transmission method, applicable to a first control module inside a first application on a first end, which method comprises: determining first transaction information of a first transmission transaction corresponding to a first data stream of the first application;when a first data block of the first data stream needs to be transmitted to a second end, determining first target header information for the first data block on the basis of the first transaction information;generating a first message to be sent according to the first data block and the first target header information;sending the first message to the second end;wherein the first target header information is used for verifying whether the first message meets requirements. In another embodiment of the present application, there is further provided a data transmission method, applicable to a second control module that is external to a first application on a first end, which method comprises: in response to a first data block that is sent by the first application and needs to be transmitted to a second end, determining first transaction information of a first transmission transaction to which the first data block belongs;determining first target header information for the first data block on the basis of the first transaction information;generating a first message to be sent according to the first data block and the first target header information;sending the first message to the second end;wherein the first target header information is used for verifying whether the first message meets requirements. In another embodiment of the present application, there is further provided a data transmission method, applicable to a fourth control module on an intermediate network apparatus, which method comprises: in response to a first data block that is sent by a first end and needs to be transmitted to a second end, determining first transaction information of a first transmission transaction to which the first data block belongs;determining first target header information for the first data block on the basis of the first transaction information;generating a first message to be sent according to the first data block and the first target header information;sending the first message to the second end;wherein the first target header information is used for verifying whether the first message meets requirements. In another embodiment of the present application, there is further provided a data transmission method, applicable to a control apparatus that is connected to a first end, which method comprises: in response to a first data block that is sent by the first end and needs to be transmitted to a second end, obtaining a first preset string corresponding to the second end, wherein the first preset string is used for hiding address information of the second end;obtaining the address information of the second end according to the first preset string;sending the first data block to the second end according to the addres