WO2021238259A1 - 一种数据传输方法、装置、设备及计算机可读存储介质 - Google Patents

一种数据传输方法、装置、设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2021238259A1
WO2021238259A1 PCT/CN2021/073441 CN2021073441W WO2021238259A1 WO 2021238259 A1 WO2021238259 A1 WO 2021238259A1 CN 2021073441 W CN2021073441 W CN 2021073441W WO 2021238259 A1 WO2021238259 A1 WO 2021238259A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
target data
data stream
identification information
transmission
Prior art date
Application number
PCT/CN2021/073441
Other languages
English (en)
French (fr)
Inventor
刘一
张东
Original Assignee
浪潮电子信息产业股份有限公司
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 浪潮电子信息产业股份有限公司 filed Critical 浪潮电子信息产业股份有限公司
Publication of WO2021238259A1 publication Critical patent/WO2021238259A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Definitions

  • the present invention relates to the field of computer application technology, in particular to a data transmission method, device, equipment and computer readable storage medium.
  • the socket-based data transmission method of JAVA code is used. By opening the server port and monitoring the connection, the data is obtained for transmission.
  • This solution can meet the simple file transmission, but when the business scenario expands In the face of concurrent transmission of multiple servers, the disorder of the connection establishment will cause the received data to be disordered, resulting in the inability to accurately control the direction of the received data.
  • the server side obtains how to process the currently received data (save it into a file or forward it to other interfaces).
  • the object of the present invention is to provide a data transmission method, which greatly reduces the occupation of port resources and improves system security; another object of the present invention is to provide a data transmission device, equipment and computer readable Storage medium.
  • the present invention provides the following technical solutions:
  • a data transmission method including:
  • the data transmission table stores the correspondence between each identification information and each task transmission queue, and each of the task transmission queues is respectively Bind the corresponding data processing instance with the identification information as the key;
  • the target task transmission queue is used to perform a transmission operation on the target data stream according to the pre-bound target data processing instance.
  • parsing the target data stream to be transmitted to obtain the target identification information of the target data stream includes:
  • the method further includes:
  • receiving service processing logic configuration information corresponding to the target data stream includes:
  • Calling the standard callback interface corresponding to the target data processing instance to perform business processing operations according to the business processing logic configuration information includes:
  • receiving service processing logic configuration information corresponding to the target data stream includes:
  • Calling the standard callback interface corresponding to the target data processing instance to perform business processing operations according to the business processing logic configuration information includes:
  • a data transmission device includes:
  • the identification information obtaining module is used to analyze the target data stream to be transmitted to obtain the target identification information of the target data stream;
  • the queue lookup module is used to look up the target task transmission queue corresponding to the target identification information from the data transmission table; wherein the data transmission table stores the corresponding relationship between each identification information and each task transmission queue, and each The task transmission queues are respectively bound to corresponding data processing instances by using identification information as a key;
  • the data transmission module is configured to use the target task transmission queue to perform a transmission operation on the target data stream according to a pre-bound target data processing instance.
  • the identification information obtaining module is specifically a module that reads the header information of the target data stream to obtain the target identification information.
  • the configuration information receiving module is configured to receive the business processing logic configuration information corresponding to the target data stream after performing a transmission operation on the target data stream according to the pre-bound target data processing instance by using the target task transmission queue;
  • the business processing module is used to call the standard callback interface corresponding to the target data processing instance to perform business processing operations according to the business processing logic configuration information.
  • a data transmission device including:
  • Memory used to store computer programs
  • the processor is used to implement the steps of the aforementioned data transmission method when the computer program is executed.
  • the target data stream to be transmitted is analyzed to obtain the target identification information of the target data stream; the target task transmission queue corresponding to the target identification information is searched from the data transmission table; among them, in the data transmission table The corresponding relationship between each identification information and each task transmission queue is stored, and each task transmission queue is respectively bound to the corresponding data processing instance with the identification information as a key; the target task transmission queue is used to process the instance according to the pre-bound target data Perform transmission operations on the target data stream.
  • each task transmission queue uses the identification information as a key to bind the corresponding data processing instance, and preset storage of each identification information and each task
  • the data transmission table of the correspondence relationship between the transmission queues, the data stream is transmitted through the corresponding task transmission queue, only a single port is required to receive each target data stream to be transmitted, and the data stream to be transmitted is allocated to the corresponding task
  • the transmission queue performs transmission, which greatly reduces the occupation of port resources and improves system security.
  • the embodiments of the present invention also provide data transmission devices, equipment, and computer-readable storage media corresponding to the above-mentioned data transmission method, which have the above-mentioned technical effects, and will not be repeated here.
  • Figure 1 is an implementation flowchart of a data transmission method in an embodiment of the present invention
  • FIG. 3 is another implementation flowchart of the data transmission method in the embodiment of the present invention.
  • Figure 5 is a structural block diagram of a data transmission device in an embodiment of the present invention.
  • Fig. 6 is a structural block diagram of a data transmission device in an embodiment of the present invention.
  • Fig. 1 is an implementation flowchart of a data transmission method in an embodiment of the present invention. The method may include the following steps:
  • S101 Parse the target data stream to be transmitted to obtain target identification information of the target data stream.
  • the target data to be transmitted is sent to the data transmission management center, and the target data stream carries the target identification information.
  • the data transmission management center receives the target data stream to be transmitted, and analyzes the target data stream to be transmitted to obtain the target identification information of the target data stream.
  • the data transmission management center may be set on the server side, or may be set independently from the server side, which is not limited in the embodiment of the present invention.
  • the target data stream may be a binary data stream or other types of data streams, which is not limited in the embodiment of the present invention.
  • the data transmission table stores the correspondence between each identification information and each task transmission queue, and each task transmission queue binds the corresponding data processing instance with the identification information as a key.
  • Multiple task transmission queues are pre-deployed, and a data transmission table storing the correspondence between each identification information and each task transmission queue is preset, and corresponding data processing instances are preset for each identification information, and each task transmission queue is separately Bind the corresponding data processing instance with the identification information as the key. After the target identification information of the target data stream is parsed, the target task transmission queue corresponding to the target identification information is searched from the data transmission table.
  • S103 Use the target task transmission queue to perform a transmission operation on the target data stream according to the pre-bound target data processing instance.
  • the target task transmission queue After finding the target task transmission queue corresponding to the target identification information, the target task transmission queue is used to transmit the target data stream according to the pre-bound target data processing instance.
  • the target identification information of the target data stream to be transmitted multiple task transmission queues are pre-deployed, and each task transmission queue uses the identification information as a key to bind the corresponding data processing instance, and preset storage of each identification information and each task
  • the data transmission table of the correspondence relationship between the transmission queues transmits the data stream through the corresponding task transmission queue, which realizes that only a single port is required to receive each target data stream to be transmitted, so as to achieve the integrated transmission of multiple service types.
  • the purpose is to realize the data transmission function of single-port multi-service scenarios.
  • the target data stream to be transmitted is analyzed to obtain the target identification information of the target data stream; the target task transmission queue corresponding to the target identification information is searched from the data transmission table; among them, in the data transmission table The corresponding relationship between each identification information and each task transmission queue is stored, and each task transmission queue is respectively bound to the corresponding data processing instance with the identification information as a key; the target task transmission queue is used to process the instance according to the pre-bound target data Perform transmission operations on the target data stream.
  • each task transmission queue uses the identification information as a key to bind the corresponding data processing instance, and preset storage of each identification information and each task
  • the data transmission table of the correspondence relationship between the transmission queues, the data stream is transmitted through the corresponding task transmission queue, only a single port is required to receive each target data stream to be transmitted, and the data stream to be transmitted is allocated to the corresponding task
  • the transmission queue performs transmission, which greatly reduces the occupation of port resources and improves system security.
  • the embodiment of the present invention also provides a corresponding improvement solution.
  • the steps that are the same as those in the first embodiment or the corresponding steps can be referred to each other, and the corresponding beneficial effects can also be referred to each other, which will not be repeated in the following improved embodiments.
  • Fig. 2 is another implementation flowchart of a data transmission method in an embodiment of the present invention.
  • the method may include the following steps:
  • S201 Read the header information of the target data stream to obtain target identification information.
  • the client that needs to transmit the target data stream encapsulates the target data stream in advance, and sets target identification information, such as ID (Identity document, identity identification number) information, in the header of the target data stream.
  • target identification information such as ID (Identity document, identity identification number) information
  • the data transmission management center After receiving the target data stream, the data transmission management center obtains the target identification information by reading the header information of the target data stream.
  • the data transmission table stores the correspondence between each identification information and each task transmission queue, and each task transmission queue binds the corresponding data processing instance with the identification information as a key.
  • S203 Use the target task transmission queue to perform a transmission operation on the target data stream according to the pre-bound target data processing instance.
  • the client can send the business processing logic configuration information to the data transmission management center, and the data transmission management center receives the business processing logic configuration information corresponding to the target data stream.
  • S205 Call the standard callback interface corresponding to the target data processing instance to perform business processing operations according to the business processing logic configuration information.
  • a unified standard callback interface is set for each data processing instance. After receiving the business processing logic configuration information corresponding to the target data stream, the personalized data processing logic is triggered, and the standard callback interface corresponding to the target data processing instance is called according to the business Process logic configuration information for business processing operations.
  • Figure 3 is another implementation flowchart of a data transmission method in an embodiment of the present invention.
  • the method may include the following steps:
  • S301 Read the header information of the target data stream to obtain target identification information.
  • S302 Find the target task transmission queue corresponding to the target identification information from the data transmission table.
  • the data transmission table stores the correspondence between each identification information and each task transmission queue, and each task transmission queue uses the identification information as a key to bind the corresponding data processing instance.
  • S303 Use the target task transmission queue to perform a transmission operation on the target data stream according to the pre-bound target data processing instance.
  • S304 Receive dump configuration information for dumping the target data stream into a file.
  • the client can send dump configuration information that dumps the target data stream into a file to the data transmission management center, and the data transmission management center receives the dump configuration information.
  • S305 Call the standard callback interface corresponding to the target data processing instance to dump the target data stream into a target file according to the dump configuration information.
  • FIG. 4 is another implementation flowchart of the data transmission method in the embodiment of the present invention.
  • the method may include the following steps:
  • S401 Read the header information of the target data stream to obtain target identification information.
  • S402 Find the target task transmission queue corresponding to the target identification information from the data transmission table.
  • the data transmission table stores the correspondence between each identification information and each task transmission queue, and each task transmission queue binds the corresponding data processing instance with the identification information as a key.
  • S403 Use the target task transmission queue to perform a transmission operation on the target data stream according to the pre-bound target data processing instance.
  • S404 Receive forwarding configuration information for forwarding the target data stream.
  • the client can send forwarding configuration information for forwarding the target data stream to the data transmission management center, and the data transmission management center receives the forwarding configuration information.
  • S405 Call the standard callback interface corresponding to the target data processing instance to perform a forwarding operation on the target data stream according to the forwarding configuration information.
  • the standard callback interface corresponding to the target data processing instance After receiving the forwarding configuration information for forwarding the target data stream, the standard callback interface corresponding to the target data processing instance is called to forward the target data stream according to the forwarding configuration information, thereby realizing the forwarding of the data stream.
  • the embodiment of the present invention also provides a data transmission device, and the data transmission device described below and the data transmission method described above can be referenced correspondingly.
  • FIG. 5 is a structural block diagram of a data transmission device in an embodiment of the present invention.
  • the device may include:
  • the identification information obtaining module 51 is configured to analyze the target data stream to be transmitted to obtain the target identification information of the target data stream;
  • the queue search module 52 is used to find the target task transmission queue corresponding to the target identification information from the data transmission table; wherein the data transmission table stores the correspondence between each identification information and each task transmission queue, and each task transmission queue Bind the corresponding data processing instance with the identification information as the key respectively;
  • the data transmission module 53 is configured to use the target task transmission queue to perform transmission operations on the target data stream according to the pre-bound target data processing instance.
  • the target data stream to be transmitted is analyzed to obtain the target identification information of the target data stream; the target task transmission queue corresponding to the target identification information is searched from the data transmission table; among them, in the data transmission table The corresponding relationship between each identification information and each task transmission queue is stored, and each task transmission queue is respectively bound to the corresponding data processing instance with the identification information as a key; the target task transmission queue is used to process the instance according to the pre-bound target data Perform transmission operations on the target data stream.
  • each task transmission queue uses the identification information as a key to bind the corresponding data processing instance, and preset storage of each identification information and each task
  • the data transmission table of the correspondence relationship between the transmission queues, the data stream is transmitted through the corresponding task transmission queue, only a single port is required to receive each target data stream to be transmitted, and the data stream to be transmitted is allocated to the corresponding task
  • the transmission queue performs transmission, which greatly reduces the occupation of port resources and improves system security.
  • the identification information obtaining module 51 is specifically a module that reads the header information of the target data stream to obtain the target identification information.
  • the device may further include:
  • the configuration information receiving module is used to receive the business processing logic configuration information corresponding to the target data stream after the target task transmission queue is used to transmit the target data stream according to the pre-bound target data processing instance;
  • the business processing module is used to call the standard callback interface corresponding to the target data processing instance to perform business processing operations according to the business processing logic configuration information.
  • the configuration information receiving module is specifically a module that receives dump configuration information for dumping the target data stream into a file
  • the business processing module is specifically a module that calls the standard callback interface corresponding to the target data processing instance to dump the target data stream into a target file according to the dump configuration information.
  • the configuration information receiving module is specifically a module that receives forwarding configuration information for forwarding the target data stream
  • the service processing module is specifically a module that calls the standard callback interface corresponding to the target data processing instance to perform a forwarding operation on the target data stream according to the forwarding configuration information.
  • FIG. 6 is a schematic diagram of a data transmission device provided by the present invention.
  • the device may include:
  • the memory 61 is used to store computer programs
  • the processor 62 is configured to execute the computer program stored in the aforementioned memory 61 and can implement the following steps:
  • the present invention also provides a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored on a computer-readable storage medium.
  • the computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes Medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种数据传输方法、装置、设备及存储介质,该方法包括以下步骤: 对待传输的目标数据流进行解析,得到目标数据流的目标标识信息; 从数据传输表中查找目标标识信息对应的目标任务传输队列; 其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例; 利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。应用本发明实施例所提供的技术方案,较大地降低了对端口资源的占用量,提升了系统安全性。

Description

一种数据传输方法、装置、设备及计算机可读存储介质
本申请要求于2020年05月29日提交至中国专利局、申请号为202010471569.1、发明名称为“一种数据传输方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机应用技术领域,特别是涉及一种数据传输方法、装置、设备及计算机可读存储介质。
背景技术
在当前服务器虚拟化系统ICS(International Classification for Standards,国际标准分类法)平台中,服务器间存在着数据的传输或接收。目前主流的技术有基于FTP(File Transfer Protocol,文件传输协议)以及TCP(Transmission Control Protocol,传输控制协议)两种传输方式。FTP传输方式存在诸多可用第三方软件,TCP传输一般使用套接字(socket)进行传输。
当前在服务器虚拟化系统平台中,使用的是JAVA代码基于socket的数据传输方式,通过开启服务器端口并监听连接的方式,获取数据进行传输,此方案能够满足简单的文件传输,但当业务场景扩张,面对多服务器并发传输时,其建立连接的无序性会导致接收数据紊乱,导致无法准确控制接收数据的指向性,比如同时进行文件传输以及数据流传输时,由于不确定性,无法在服务server端获取到当前所接收的数据要如何处理(转存成文件还是转发至其他接口)。
现有的应对多服务器并发传输的方式为使用多开端口的方式来解决,既一个特定端口对应一种传输业务,避免对数据处理逻辑混用的情况。在数据传输业务量扩张时,端口数量也会随之增加,过多的对外暴露端口极大的降低了系统安全性,并且过度占用端口资源,存在隐患。
综上所述,如何有效地解决现有的多服务器并发传输方式过多的对外暴露端口极大的降低了系统安全性,并且过度占用端口资源,存在隐患等问题,是目前本领域技术人员急需解决的问题。
发明内容
本发明的目的是提供一种数据传输方法,该方法较大地降低了对端口资源的占用量,提升了系统安全性;本发明的另一目的是提供一种数据传输装置、设备及计算机可读存储介质。
为解决上述技术问题,本发明提供如下技术方案:
一种数据传输方法,包括:
对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息;
从数据传输表中查找所述目标标识信息对应的目标任务传输队列;其中,所述数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各所述任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;
利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作。
在本发明的一种具体实施方式中,对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息,包括:
读取所述目标数据流的头部信息,得到所述目标标识信息。
在本发明的一种具体实施方式中,在利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作之后,还包括:
接收所述目标数据流对应的业务处理逻辑配置信息;
调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作。
在本发明的一种具体实施方式中,接收所述目标数据流对应的业务处理逻辑配置信息,包括:
接收将所述目标数据流转储为文件的转储配置信息;
调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作,包括:
调用所述目标数据处理实例对应的标准回调接口根据所述转储配置信息将所述目标数据流转储为目标文件。
在本发明的一种具体实施方式中,接收所述目标数据流对应的业务处理逻辑配置信息,包括:
接收对所述目标数据流进行转发的转发配置信息;
调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作,包括:
调用所述目标数据处理实例对应的标准回调接口根据所述转发配置信息对所述目标数据流进行转发操作。
一种数据传输装置,包括:
标识信息获得模块,用于对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息;
队列查找模块,用于从数据传输表中查找所述目标标识信息对应的目标任务传输队列;其中,所述数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各所述任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;
数据传输模块,用于利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作。
在本发明的一种具体实施方式中,所述标识信息获得模块具体为读取所述目标数据流的头部信息,得到所述目标标识信息的模块。
在本发明的一种具体实施方式中,还包括:
配置信息接收模块,用于在利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作之后,接收所述目标数据流对应的业务处理逻辑配置信息;
业务处理模块,用于调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作。
一种数据传输设备,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如前所述数据传输方法的步骤。
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如前所述数据传输方法的步骤。
应用本发明实施例所提供的方法,对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。通过对待传输的目标数据流封装目标标识信息,预先部署多个任务传输队列,各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例,并预先设置存储有各标识信息与各任务传输队列之间的对应关系的数据传输表,通过相应任务传输队列对数据流进行传输,仅需要单端口对各待传输的目标数据流进行接收,通过将待传输的数据流分配给对应的任务传输队列进行传输,较大地降低了对端口资源的占用量,提升了系统安全性。
相应的,本发明实施例还提供了与上述数据传输方法相对应的数据传输装置、设备和计算机可读存储介质,具有上述技术效果,在此不再赘述。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中数据传输方法的一种实施流程图;
图2为本发明实施例中数据传输方法的另一种实施流程图;
图3为本发明实施例中数据传输方法的另一种实施流程图;
图4为本发明实施例中数据传输方法的另一种实施流程图;
图5为本发明实施例中一种数据传输装置的结构框图;
图6为本发明实施例中一种数据传输设备的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一:
参见图1,图1为本发明实施例中数据传输方法的一种实施流程图,该方法可以包括以下步骤:
S101:对待传输的目标数据流进行解析,得到目标数据流的目标标识信息。
当客户端需要向服务端传输数据时,将待传输的目标数据发送给数据传输管理中心,目标数据流中携带有目标标识信息。数据传输管理中心接收待传输的目标数据流,并对待传输的目标数据流进行解析,得到目标数据流的目标标识信息。
数据传输管理中心可以设置于服务端,也可以与服务端独立设置,本发明实施例对此不做限定。
目标数据流可以为二进制数据流,也可以是其它类型的数据流,本发明实施例对此不做限定。
S102:从数据传输表中查找目标标识信息对应的目标任务传输队列。
其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例。
预先部署多个任务传输队列,并预先设置存储有各标识信息与各任务传输队列之间的对应关系的数据传输表,针对每个标识信息预先设置对应的数据处理实例,将各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例。在解析得到目标数据流的目标标识信息之后,从数据传输表中查找目标标识信息对应的目标任务传输队列。
S103:利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
在查找到目标标识信息对应的目标任务传输队列之后,利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。通过对待传输的目标数据流封装目标标识信息,预先部署多个任务传输队列,各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例,并预先设置存储有各标识信息与各任务传输队列之间的对应关系的数据传输表,通过相应任务传输队列对数据流进行传输,实现了仅需要单端口对各待传输的目标数据流进行接收,从而达到多种业务类型数据整合传输的目的,实现了单端口多业务场景的数据传输功能,通过将待传输的数据流分配给对应的任务传输队列进行传输,较大地降低了对端口资源的占用量,在满足多业务的情况下,使用单端口准确且稳定地完成并发数据流的传输,提升了系统安全性,提升了系统整体性能。
应用本发明实施例所提供的方法,对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。通过对待传输的目标数据流封装目标标识信息,预先部署多个任务传输队列,各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例,并预先设置存储有各标识信息与各任务传输队列之间的对应关系的数据传输表,通过相应任务传输队列对数据流进行传输,仅需要单端口对各待传输的目标数据流进行接收,通过将待传输的数据流分配给对应的任务传输队列进行传输,较大地降低了对端口资源的占用量,提升了系统安全性。
需要说明的是,基于上述实施例一,本发明实施例还提供了相应的改进方案。在后续实施例中涉及与上述实施例一中相同步骤或相应步骤之间可相互参考,相应的有益效果也可相互参照,在下文的改进实施例中不再一一赘述。
实施例二:
参见图2,图2为本发明实施例中数据传输方法的另一种实施流程图,该方法可以包括以下步骤:
S201:读取目标数据流的头部信息,得到目标标识信息。
需要对目标数据流进行传输的客户端预先对目标数据流进行封装,在目标数据流的头部设置目标标识信息,如ID(Identity document,身份标识号)信息。数据传输管理中心接收到目标数据流之后,通过读取目标数据流的头部信息,得到目标标识信息。
S202:从数据传输表中查找目标标识信息对应的目标任务传输队列。
其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例。
S203:利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
S204:接收目标数据流对应的业务处理逻辑配置信息。
在对目标数据流传输完成时,客户端可以向数据传输管理中心发送业务处理逻辑配置信息,数据传输管理中心接收目标数据流对应的业务处理逻辑配置信息。
S205:调用目标数据处理实例对应的标准回调接口根据业务处理逻辑配置信息进行业务处理操作。
针对每个数据处理实例均对应设置有统一的标准回调接口,在接收到目标数据流对应的业务处理逻辑配置信息之后,触发个性化数据处理逻辑,调用目标数据处理实例对应的标准回调接口根据业务处理逻辑配置信息进行业务处理操作。
实施例三:
参见图3,图3为本发明实施例中数据传输方法的另一种实施流程图,该方法可以包括以下步骤:
S301:读取目标数据流的头部信息,得到目标标识信息。
S302:从数据传输表中查找目标标识信息对应的目标任务传输队列。
其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应 关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例。
S303:利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
S304:接收将目标数据流转储为文件的转储配置信息。
客户端可以向数据传输管理中心发送将目标数据流转储为文件的转储配置信息,数据传输管理中心接收转储配置信息。
S305:调用目标数据处理实例对应的标准回调接口根据转储配置信息将目标数据流转储为目标文件。
在接收到将目标数据流转储为文件的转储配置信息之后,调用目标数据处理实例对应的标准回调接口根据转储配置信息将目标数据流转储为目标文件,从而实现从数据流到文件的转储。
实施例四:
参见图4,图4为本发明实施例中数据传输方法的另一种实施流程图,该方法可以包括以下步骤:
S401:读取目标数据流的头部信息,得到目标标识信息。
S402:从数据传输表中查找目标标识信息对应的目标任务传输队列。
其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例。
S403:利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
S404:接收对目标数据流进行转发的转发配置信息。
客户端可以向数据传输管理中心发送对目标数据流进行转发的转发配置信息,数据传输管理中心接收转发配置信息。
S405:调用目标数据处理实例对应的标准回调接口根据转发配置信息对目标数据流进行转发操作。
在接收对目标数据流进行转发的转发配置信息,调用目标数据处理实例对应的标准回调接口根据转发配置信息对目标数据流进行转发操作,从而实现对数据流的转发。
相应于上面的方法实施例,本发明实施例还提供了一种数据传输装置,下文描述的数据传输装置与上文描述的数据传输方法可相互对应参照。
参见图5,图5为本发明实施例中一种数据传输装置的结构框图,该装置可以包括:
标识信息获得模块51,用于对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;
队列查找模块52,用于从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;
数据传输模块53,用于利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
应用本发明实施例所提供的装置,对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。通过对待传输的目标数据流封装目标标识信息,预先部署多个任务传输队列,各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例,并预先设置存储有各标识信息与各任务传输队列之间的对应关系的数据传输表,通过相应任务传输队列对数据流进行传输,仅需要单端口对各待传输的目标数据流进行接收,通过将待传输的数据流分配给对应的任务传输队列进行传输,较大地降低了对端口资源的占用量,提升了系统安全性。
在本发明的一种具体实施方式中,标识信息获得模块51具体为读取目 标数据流的头部信息,得到目标标识信息的模块。
在本发明的一种具体实施方式中,该装置还可以包括:
配置信息接收模块,用于在利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作之后,接收目标数据流对应的业务处理逻辑配置信息;
业务处理模块,用于调用目标数据处理实例对应的标准回调接口根据业务处理逻辑配置信息进行业务处理操作。
在本发明的一种具体实施方式中,配置信息接收模块具体为接收将目标数据流转储为文件的转储配置信息的模块;
业务处理模块具体为调用目标数据处理实例对应的标准回调接口根据转储配置信息将目标数据流转储为目标文件的模块。
在本发明的一种具体实施方式中,配置信息接收模块具体为接收对目标数据流进行转发的转发配置信息的模块;
业务处理模块具体为调用目标数据处理实例对应的标准回调接口根据转发配置信息对目标数据流进行转发操作的模块。
相应于上面的方法实施例,参见图6,图6为本发明所提供的数据传输设备的示意图,该设备可以包括:
存储器61,用于存储计算机程序;
处理器62,用于执行上述存储器61存储的计算机程序时可实现如下步骤:
对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
对于本发明提供的设备的介绍请参照上述方法实施例,本发明在此不做赘述。
相应于上面的方法实施例,本发明还提供一种计算机可读存储介质, 计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现如下步骤:
对待传输的目标数据流进行解析,得到目标数据流的目标标识信息;从数据传输表中查找目标标识信息对应的目标任务传输队列;其中,数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;利用目标任务传输队列根据预绑定的目标数据处理实例对目标数据流进行传输操作。
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
对于本发明提供的计算机可读存储介质的介绍请参照上述方法实施例,本发明在此不做赘述。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置、设备及计算机可读存储介质而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的技术方案及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。

Claims (10)

  1. 一种数据传输方法,其特征在于,包括:
    对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息;
    从数据传输表中查找所述目标标识信息对应的目标任务传输队列;其中,所述数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各所述任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;
    利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作。
  2. 根据权利要求1所述的数据传输方法,其特征在于,对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息,包括:
    读取所述目标数据流的头部信息,得到所述目标标识信息。
  3. 根据权利要求1或2所述的数据传输方法,其特征在于,在利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作之后,还包括:
    接收所述目标数据流对应的业务处理逻辑配置信息;
    调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作。
  4. 根据权利要求3所述的数据传输方法,其特征在于,接收所述目标数据流对应的业务处理逻辑配置信息,包括:
    接收将所述目标数据流转储为文件的转储配置信息;
    调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作,包括:
    调用所述目标数据处理实例对应的标准回调接口根据所述转储配置信息将所述目标数据流转储为目标文件。
  5. 根据权利要求3所述的数据传输方法,其特征在于,接收所述目标数据流对应的业务处理逻辑配置信息,包括:
    接收对所述目标数据流进行转发的转发配置信息;
    调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻 辑配置信息进行业务处理操作,包括:
    调用所述目标数据处理实例对应的标准回调接口根据所述转发配置信息对所述目标数据流进行转发操作。
  6. 一种数据传输装置,其特征在于,包括:
    标识信息获得模块,用于对待传输的目标数据流进行解析,得到所述目标数据流的目标标识信息;
    队列查找模块,用于从数据传输表中查找所述目标标识信息对应的目标任务传输队列;其中,所述数据传输表中存储有各标识信息与各任务传输队列之间的对应关系,且各所述任务传输队列分别以标识信息为关键字绑定对应的数据处理实例;
    数据传输模块,用于利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作。
  7. 根据权利要求6所述的数据传输装置,其特征在于,所述标识信息获得模块具体为读取所述目标数据流的头部信息,得到所述目标标识信息的模块。
  8. 根据权利要求6或7所述的数据传输装置,其特征在于,还包括:
    配置信息接收模块,用于在利用所述目标任务传输队列根据预绑定的目标数据处理实例对所述目标数据流进行传输操作之后,接收所述目标数据流对应的业务处理逻辑配置信息;
    业务处理模块,用于调用所述目标数据处理实例对应的标准回调接口根据所述业务处理逻辑配置信息进行业务处理操作。
  9. 一种数据传输设备,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述数据传输方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述数据传输方法的步骤。
PCT/CN2021/073441 2020-05-29 2021-01-23 一种数据传输方法、装置、设备及计算机可读存储介质 WO2021238259A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010471569.1A CN111756649A (zh) 2020-05-29 2020-05-29 一种数据传输方法、装置、设备及计算机可读存储介质
CN202010471569.1 2020-05-29

Publications (1)

Publication Number Publication Date
WO2021238259A1 true WO2021238259A1 (zh) 2021-12-02

Family

ID=72674030

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073441 WO2021238259A1 (zh) 2020-05-29 2021-01-23 一种数据传输方法、装置、设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN111756649A (zh)
WO (1) WO2021238259A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756649A (zh) * 2020-05-29 2020-10-09 浪潮电子信息产业股份有限公司 一种数据传输方法、装置、设备及计算机可读存储介质
CN114282271A (zh) * 2021-12-22 2022-04-05 国汽大有时空科技(安庆)有限公司 基于gnss的数据实时处理方法、系统及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040085978A1 (en) * 2002-11-04 2004-05-06 Bly Keith Michael System and method for prioritizing and queuing traffic
CN1975680A (zh) * 2006-11-27 2007-06-06 浙江大学 基于Java的进程间异步通信的实现方法
CN104346135A (zh) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 数据流并行处理的方法、设备及系统
CN110471746A (zh) * 2019-08-22 2019-11-19 中国工商银行股份有限公司 一种分布式事务回调方法、装置及系统
CN111756649A (zh) * 2020-05-29 2020-10-09 浪潮电子信息产业股份有限公司 一种数据传输方法、装置、设备及计算机可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018094743A1 (zh) * 2016-11-28 2018-05-31 华为技术有限公司 处理报文的方法和计算机设备
CN111013133A (zh) * 2019-11-29 2020-04-17 北京奇艺世纪科技有限公司 数据处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040085978A1 (en) * 2002-11-04 2004-05-06 Bly Keith Michael System and method for prioritizing and queuing traffic
CN1975680A (zh) * 2006-11-27 2007-06-06 浙江大学 基于Java的进程间异步通信的实现方法
CN104346135A (zh) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 数据流并行处理的方法、设备及系统
CN110471746A (zh) * 2019-08-22 2019-11-19 中国工商银行股份有限公司 一种分布式事务回调方法、装置及系统
CN111756649A (zh) * 2020-05-29 2020-10-09 浪潮电子信息产业股份有限公司 一种数据传输方法、装置、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN111756649A (zh) 2020-10-09

Similar Documents

Publication Publication Date Title
CN106161537B (zh) 远程过程调用的处理方法、装置、系统及电子设备
CN108494817B (zh) 数据传输方法、相关装置及系统
US7877091B2 (en) Method and system for executing a container managed application on a processing device
US10303529B2 (en) Protocol for communication of data structures
WO2021238259A1 (zh) 一种数据传输方法、装置、设备及计算机可读存储介质
US7818752B2 (en) Interface for application components
WO2021189257A1 (zh) 恶意进程的检测方法、装置、电子设备及存储介质
CN112100146B (zh) 一种高效的纠删分布式存储写入方法、系统、介质及终端
CN114124929A (zh) 跨网络的数据处理方法和装置
CN111737022A (zh) 一种基于微服务的接口调用方法、系统、设备及介质
CN112835632B (zh) 一种端能力的调用方法、设备和计算机存储介质
CN109951532B (zh) 一种基于dpdk的流量模型自动变换装置
US11870746B2 (en) Method for chatting messages by topic based on subscription channel reference in server and user device
CN114253792A (zh) 日志跟踪方法、装置、设备和存储介质
CN110245027B (zh) 一种进程间通信的方法和设备
CN107911317B (zh) 一种报文调度方法及装置
CN114244758A (zh) 安卓平台的网络诊断方法、存储介质、电子设备及系统
CN116668415A (zh) 流媒体数据处理方法及系统
CN114186163A (zh) 一种应用层网络数据缓存方法
CN112306695A (zh) 数据的处理方法、装置、电子设备及计算机存储介质
CN112769638B (zh) 一种基于dpdk技术的提高jain sip服务器性能的方法
US20090106395A1 (en) Satellite Data Network Acceleration
WO2024061179A1 (zh) 逻辑绑定口的管理方法、装置、系统及存储介质
CN113032010B (zh) 命令的传输控制方法、终端及计算机可读存储介质
WO2023098530A1 (zh) 一种事务的处理方法及设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21813496

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21813496

Country of ref document: EP

Kind code of ref document: A1