CN114866514B - Multi-user data flow control and processing method, device, equipment and medium - Google Patents

Multi-user data flow control and processing method, device, equipment and medium Download PDF

Info

Publication number
CN114866514B
CN114866514B CN202210475066.0A CN202210475066A CN114866514B CN 114866514 B CN114866514 B CN 114866514B CN 202210475066 A CN202210475066 A CN 202210475066A CN 114866514 B CN114866514 B CN 114866514B
Authority
CN
China
Prior art keywords
processing
data
algorithm
control command
control
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.)
Active
Application number
CN202210475066.0A
Other languages
Chinese (zh)
Other versions
CN114866514A (en
Inventor
李凤华
李恒
张玲翠
耿魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN202210475066.0A priority Critical patent/CN114866514B/en
Publication of CN114866514A publication Critical patent/CN114866514A/en
Application granted granted Critical
Publication of CN114866514B publication Critical patent/CN114866514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention provides a method, a device, equipment and a medium for controlling and processing multi-user data flow, wherein the method comprises the following steps: receiving a first message; acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address; executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data, and generating a second message carrying the second data; and sending the second message based on the target address. The method, the device, the equipment and the medium provided by the invention realize that one or more first data are subjected to different data processing and sent to different target addresses in a parallel processing mode, enhance the control capability of an information transfer node on information transfer, simultaneously improve the processing efficiency, reduce the time delay of user receiving and improve the user experience.

Description

Multi-user data flow control and processing method, device, equipment and medium
Technical Field
The present invention relates to the field of information technology, computer technology, network technology, internet technology, and communications technology, and in particular, to a method, an apparatus, a device, and a medium for controlling and processing a multi-user data flow.
Background
The continuous evolution and deep application of communication technology, network technology and computing technology promote the intelligent interconnection of everything and the ubiquitous sharing of information. In the process of information sharing, even the same source information has different control requirements in the process of transmission because of different network environments where information receivers are located and different identities of the information receivers, and different processing modes are required to be adopted.
In the internet field, aiming at the characteristics and requirements of the internet heterogeneous object mass, resource management dispersion, various service requirements and the like, in the information propagation process of the above scenes, information needs to be processed, for example: the method comprises the steps of distributing and sharing remote sensing image data as required, intelligently compressing video image data, performing extension control on graded streaming data, encrypting and decrypting important data or distributing authority and the like.
At present, when information is transmitted, information processing is performed in a one-to-one processing mode at a transfer node of the information, after a data message is received, data in the message is processed through a processing algorithm and parameters carried in the message, and then the processed data is sent to a specified target address in the message, but when different data processing is performed on one data and the differently processed data is sent to different target address scenes, the data message carrying different data processing modes and parameters needs to be received for multiple times and processed and forwarded respectively, and the mode cannot meet the application scene of efficient sending of multiple receivers under different control conditions aiming at the same information, so that the information transmission efficiency is low, and the user experience is poor.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for controlling and processing multi-user data flow, which are used for solving the defect of low transmission efficiency caused by low concurrency of data processing modes of information flow transfer nodes in the prior art.
The invention provides a multi-user data flow control and processing method, which comprises the following steps:
receiving a first message;
acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address;
executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generate a second message carrying the second data;
and sending the second message based on the target address.
According to the method for controlling and processing the multi-user data flow provided by the invention, the step of acquiring the first data and the first control set from the first message comprises the following steps:
a first data set, a processing algorithm set, a processing parameter set, a control command set and a target address set are obtained from the first message, the first data set comprises at least one first data, the processing algorithm set comprises at least one processing algorithm, the processing parameter set comprises at least one processing parameter, the control command set comprises at least one control command, and the target address set comprises at least one target address.
According to the method for controlling and processing the multi-user data flow provided by the present invention, in the case that there is a first data in the first data set, the executing the control command on the first data based on the processing algorithm and the processing parameter to obtain a second data, and generating a second packet carrying the second data, includes:
executing each control command in the control command set on the first data based on each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set to obtain second data corresponding to each processing algorithm and/or each processing parameter;
and based on the corresponding relation between each target address in the target address set and each processing algorithm and/or each processing parameter, applying the second data corresponding to each processing algorithm and/or each processing parameter to generate a second message corresponding to each target address.
According to the multi-user data flow control and processing method provided by the present invention, the executing each control command in the control command set on the first data based on each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set to obtain second data corresponding to each processing algorithm and/or each processing parameter comprises:
under the condition that one processing algorithm exists in the processing algorithm set, executing a control command corresponding to the processing algorithm on the first data based on the processing algorithm and the processing parameters to obtain second data corresponding to the processing parameters;
and when a plurality of processing algorithms exist in the processing algorithm set, executing control commands under the processing algorithms respectively corresponding to the processing parameters on the first data based on the corresponding relation between the processing algorithms and the processing parameters to obtain second data corresponding to the processing algorithms and/or the processing parameters.
According to the method for controlling and processing multi-user data flow provided by the present invention, in the case that a plurality of first data exist in the first data set, the executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generating a second packet carrying the second data includes:
based on the corresponding relation between each first data in the first data set and each control command in the control command set, each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set are applied, and the corresponding control command is executed on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter;
and based on the corresponding relation between each target address in the target address set and each first data and each processing algorithm and/or each processing parameter, applying the first data and second data corresponding to each processing algorithm and/or each processing parameter to generate second messages corresponding to each target address.
According to a multi-user data flow control and processing method provided by the present invention, the method for controlling and processing multi-user data flow, based on the corresponding relationship between each first data in the first data set and each control command in the control command set, applying each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set, and executing a corresponding control command on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter, includes:
under the condition that one processing algorithm exists in the processing algorithm set, the processing algorithm and the processing parameters should be based on the corresponding relation between the first data and the control commands, and the corresponding control commands are executed on the first data to obtain second data corresponding to the first data and the processing parameters;
and when a plurality of processing algorithms exist in the processing algorithm set, executing the control commands under the processing algorithms corresponding to the corresponding processing parameters on the first data based on the corresponding relation between the first data and the control commands and the corresponding relation between the first data and the processing algorithms and the processing parameters to obtain the first data and the second data corresponding to the processing algorithms and/or the processing parameters.
According to the method for controlling and processing the multi-user data flow provided by the invention, the generating of the second message carrying the second data comprises the following steps:
generating an extended control set, or acquiring the extended control set from the first message;
determining a second control set based on the extended control set and/or the first control set;
and generating a second message carrying the second data and the second control set.
The invention also provides a multi-user data flow control and processing device, which comprises:
the receiving module is used for receiving the first message;
the analysis module is used for acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address;
the processing module is used for executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generating a second message carrying the second data;
and the sending module is used for sending the second message based on the target address.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the multi-user data flow control and processing method is realized.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a multi-user data flow control and processing method as described in any of the above.
The present invention also provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements any of the above-described multi-user data flow control and processing methods.
According to the multi-user data flow control and processing method, device, equipment and medium, the information flow node applies the processing algorithm, the processing parameters, the control command and the target address in the first control set to perform the same or different processing on the first data and forward the first data to different target addresses, and the first data is processed in a parallel mode, so that the concurrency capability of the information flow node is enhanced, the transmission efficiency of information is improved, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a multi-user data flow control and processing method provided by the present invention;
FIG. 2 is a schematic flow chart of a first data processing method provided by the present invention;
FIG. 3 is a flow chart illustrating a plurality of first data processing methods provided by the present invention;
fig. 4 is a schematic flow chart of a second message generation method provided in the present invention;
FIG. 5 is a schematic diagram of a method for selecting a single-processing algorithm and a single-processing parameter according to the present invention;
FIG. 6 is a schematic diagram of a method for selecting single-processing algorithms and multiple processing parameters according to the present invention;
FIG. 7 is a schematic diagram of a method for selecting multiprocessing algorithms and multiprocessing parameters provided by the present invention;
FIG. 8 is a diagram illustrating a multiple first data selection multiprocessing algorithm and a multiple processing parameter method according to the present invention;
FIG. 9 is a schematic structural diagram of a multi-user data flow control and processing apparatus provided in the present invention;
fig. 10 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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.
In the data processing in the current information flow, after a data flow node receives a data packet, the data in the packet is processed according to a processing algorithm and parameters carried in the packet, and then the processed data is sent to a designated destination address in the packet, but in the one-to-one data processing mode, when different data processing is performed on one data and different processed data are sent to different destination address scenes, the data packet carrying different data processing modes and parameters needs to be received for multiple times and processed and forwarded respectively, for example: in a multi-person teleconference scene, different encryption measures are taken according to different positions of different persons, or in a video on demand scene, different users, such as paid users and free users, can obtain different resources and different use permissions. For example, a paying user can support online watching and downloading, a free user only supports online watching, or in a scene of data acquisition at a terminal of the internet of things, the same data can be sent to different target addresses after being processed for supporting different subsequent purposes, so that differentiated different-place storage of the data can be realized, and different reading and using rights can be given to different users. For example, video image acquisition may only transmit and store some information of a particular key time period when transmitting to a supervision department, and may perform 100% transmission and storage on the information when transmitting to a cell property, and in the above scenario, an existing one-to-one data processing mode of a streaming node can only receive a message for many times, process data in the message in sequence, and forward the data to a destination address specified by the message, and this serial manner is used for processing, and the concurrency is low, resulting in low processing efficiency, and different receiving ends cannot simultaneously acquire target information generated based on the same information, resulting in low experience of a user at the receiving end.
Therefore, how to add control to different target address data, increase the amount of concurrency, and increase the processing and sending efficiency in the information transfer node is a technical problem to be solved urgently by those skilled in the art.
In view of the above technical problems, an embodiment of the present invention provides a method for controlling and processing a multi-user data flow. Fig. 1 is a flow chart of a multi-user data stream forwarding control and processing method provided by the present invention. As shown in fig. 1, the method is applied to an information transfer node, and includes:
step 110, receiving a first message;
step 120, acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address;
in view of the fact that different processing needs to be performed on data in a message and then the data needs to be sent to a target address, different control commands need to be carried in the message, and the data in the message is processed according to the different control commands, in the embodiment of the present invention, a set of control commands is carried in the message to process first data of a first message.
Specifically, a first message sent by a previous node is received, and first data and a first control set are obtained by analyzing the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address.
It should be noted that the first control set may include only one processing algorithm, one or more processing parameters corresponding to the processing algorithm, one control command, and one target address, and may further include a processing algorithm set, a processing parameter set, a control command set, and a target address set, where the processing algorithm set may include one or more processing algorithms, the processing parameter set may include one or more processing parameters, the control command set may include one or more control commands, and the target address set may include one target address or multiple target addresses, which is not limited in this embodiment of the present invention. In addition, there may be one or more first data in the first message. The control command is used to indicate a specific processing manner of the first data, for example, the processing manner may be encryption or decryption, or may also be authority addition or authority deletion, and the like, which is not limited in this embodiment of the present invention.
Step 130, based on the processing algorithm and the processing parameter, executing a control command on the first data to obtain second data, and generating a second message carrying the second data;
step 140, sending the second message based on the destination address.
Specifically, data processing is performed on the first data according to a processing algorithm and a processing parameter in the first control set and a processing mode in the control command to obtain second data, a second message is generated according to the second data, and then the second message is sent to a target address in the first control set.
It should be noted that, when the first data is processed, the corresponding relationship is used, for example: when only one processing algorithm exists in the processing algorithm set, the obtained second message needs to be sent to the corresponding target address according to the corresponding relation between the processing parameter and the target address, or when a plurality of first data exist, the corresponding relation between the first data and the first control set is also needed to perform data processing on the first data. (1) At this time, the corresponding relationship may be formed by recording the positions in the memory areas of different contents, for example: a memory area used for storing processing parameters and a memory area used for storing target addresses in the memory, wherein a first processing parameter in the memory area for processing the parameters forms a corresponding relation with a first target address in the memory area for the target addresses, and the corresponding relation between each processing parameter in the memory area for processing the parameters and each target address in the memory area for the target addresses is finished by analogy; (2) The corresponding relationship may also be created by recording the content of the index added to the memory areas with different contents, and establishing the corresponding relationship with the same index in different memory areas, for example: the embodiment of the present invention is not limited in specific, and the method for establishing the correspondence includes that a memory area for storing processing parameters and a memory area for storing a target address are included in a memory, 4 bytes are allocated in a memory in front of a memory of each processing parameter in the memory area for processing parameters to store an index of the processing parameter, and the memory area for the target address performs the same operation, that is, 4 bytes are allocated in a memory in front of a memory of each target address to store an index of the target address. The pairwise correspondence between the contents recorded in each memory area in the first message may be established by using the same method, which is not specifically limited in this embodiment of the present invention. In addition, the correspondence between the three contents recorded in each memory area in the first message or the correspondence between the three contents may be transmitted by selecting the intermediate content, taking the correspondence between the three contents as an example: A. b and C, where a and B have a corresponding relationship, and B and C have a corresponding relationship, the corresponding relationship between a and C is transmitted through B, and the above three may also be mapped through intermediate content, and may also be stored separately in the memory of the communication protocol packet or the corresponding relationship between the three or more contents. Further, the correspondence between two sets represents the correspondence between elements in the two sets, for example: the corresponding relation between the processing algorithm set and the processing parameter set represents the corresponding relation between each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set.
When only one first data exists in the first message, only one data to be processed exists at this time, and the data processing can be divided into the following cases:
the first case is that when the first control set comprises only one processing algorithm, one or more processing parameters, one control command and one target address, the first data is directly processed by the processing algorithm and the processing parameters in a control command processing mode to obtain second data, and a second packet carrying the second data is sent to the target address.
The second case is when the first control set comprises a processing algorithm, a plurality of processing parameters, one or more control commands and a plurality of target addresses: (1) If only one control command exists, the processing algorithm respectively uses a plurality of processing parameters to respectively process the first data in a processing mode of the control command to obtain second data corresponding to the plurality of processing parameters, then respectively constructs the second data corresponding to the plurality of processing parameters into second messages corresponding to a plurality of target addresses according to the corresponding relation between the plurality of processing parameters and the plurality of target addresses, and sends the second messages to the plurality of target addresses; (2) If a plurality of control commands exist, the processing algorithm respectively uses a plurality of processing parameters according to the corresponding relation between the plurality of processing parameters and the plurality of control commands, respectively processes the first data in a processing mode of the control commands corresponding to the plurality of processing parameters to obtain second data corresponding to the plurality of processing parameters, respectively constructs the second data corresponding to the plurality of processing parameters into second messages corresponding to a plurality of target addresses according to the corresponding relation between the plurality of processing parameters and the plurality of target addresses, and sends the second messages to the plurality of target addresses.
A third case is when the first control set includes a plurality of processing algorithms, a plurality of processing parameters, one or more control commands, and a plurality of target addresses: (1) If only one control command exists, processing the first data by using the processing parameter corresponding to each processing algorithm by each processing algorithm according to the corresponding relation between the processing algorithms and the processing parameters in a processing mode of the control command to obtain second data corresponding to a plurality of processing algorithms and/or a plurality of processing parameters, and then constructing second data corresponding to the processing algorithms and/or the processing parameters into second messages corresponding to a plurality of target addresses according to the corresponding relation between the processing algorithms and the target addresses, or the corresponding relation between the processing parameters and the target addresses, or the corresponding relation between the processing algorithms and the target addresses, and the processing parameters and the target addresses, and sending the second messages to the target addresses; (2) If there are a plurality of control commands, the first data may be processed in the processing manner of the control commands corresponding to the plurality of processing algorithms and/or the plurality of processing parameters according to the corresponding relationship between the plurality of processing algorithms and the plurality of control commands, or the corresponding relationship between the plurality of processing algorithms and the plurality of processing parameters, respectively, to obtain second data corresponding to the plurality of processing algorithms and/or the plurality of processing parameters, then the second packet corresponding to the plurality of target addresses may be constructed according to the corresponding relationship between the plurality of processing algorithms and the plurality of target addresses, or the corresponding relationship between the plurality of processing parameters and the plurality of target addresses, or the corresponding relationship between the plurality of processing algorithms and the plurality of processing parameters and the plurality of target addresses, respectively, and finally the second packet corresponding to the plurality of target addresses may be constructed according to the corresponding relationship between the plurality of processing algorithms and the plurality of target addresses, and sent to the plurality of target addresses.
The embodiment of the present invention does not specifically limit the data processing situation of only one first data.
When a plurality of first data exist in the first packet, there are a plurality of data to be processed at this time, and the data processing may be divided into the following cases:
the first case is in particular that the first control set comprises a processing algorithm, a plurality of processing parameters, one or more control commands and a plurality of target addresses. For the first case, the data processing may be performed on the first data corresponding to the first control set according to the correspondence between the plurality of first data and the plurality of processing parameters, and includes the following two processing manners:
(1) If only one control command exists, the processing algorithm respectively uses a plurality of processing parameters, and respectively carries out data processing on first data corresponding to the first control set in a processing mode of the control command to obtain second data corresponding to the plurality of processing parameters, and then respectively constructs the second data corresponding to the plurality of processing parameters into second messages corresponding to a plurality of target addresses according to the corresponding relation among the plurality of first data, the plurality of processing parameters and the plurality of target addresses, and sends the second messages to the plurality of target addresses.
(2) If a plurality of control commands exist, the processing algorithm respectively uses a plurality of processing parameters according to the corresponding relation between the plurality of processing parameters and the plurality of control commands, respectively processes first data corresponding to the plurality of processing parameters in a processing mode of the control commands corresponding to the plurality of processing parameters to obtain second data corresponding to the plurality of processing parameters, respectively constructs second data corresponding to the plurality of processing parameters into second messages corresponding to a plurality of target addresses according to the corresponding relation between the plurality of first data, the plurality of processing parameters and the plurality of target addresses, and sends the second messages to the plurality of target addresses.
The second case is in particular that the first control set comprises a plurality of processing algorithms, a plurality of processing parameters, one or more control commands and a plurality of target addresses. For the second case, the data processing may be performed on the plurality of first data according to the correspondence between the plurality of first data and the plurality of processing algorithms; or respectively carrying out data processing on the plurality of first data according to the corresponding relation between the plurality of first data and the plurality of processing parameters; or, according to the correspondence among the plurality of first data, the plurality of processing algorithms, and the plurality of processing parameter correspondences, performing data processing on the plurality of first data, respectively, may include the following two processing methods:
(1) If only one control command exists, processing parameters corresponding to each processing algorithm are used by each processing algorithm according to the corresponding relation of the processing algorithms and the processing parameters, the first data are processed according to the corresponding relation in a processing mode of the control command respectively to obtain second data corresponding to the processing algorithms and/or the processing parameters, and then second messages corresponding to the target addresses can be constructed by the processing algorithms and/or the second data corresponding to the processing parameters respectively according to the corresponding relation between the processing algorithms and the target addresses, or the corresponding relation between the processing parameters and the target addresses, or the corresponding relation between the processing algorithms and the target addresses, and the processing parameters and the target addresses, and the second messages are sent to the target addresses.
(2) If there are multiple control commands, the multiple first data may be processed respectively according to the corresponding relationship between the multiple processing algorithms and the multiple control commands, or the corresponding relationship between the multiple processing parameters and the multiple control commands, or the corresponding relationship between the multiple processing algorithms, the multiple processing parameters, and the multiple control commands, and according to the corresponding relationship between the multiple processing algorithms and the multiple processing parameters, in a processing manner of the corresponding control commands, to obtain second data corresponding to the multiple processing algorithms and/or the multiple processing parameters, and then the second data corresponding to the multiple processing algorithms and/or the multiple processing parameters may be constructed into second messages corresponding to the multiple target addresses according to the corresponding relationship between the multiple processing algorithms and the multiple target addresses, or the corresponding relationship between the multiple processing parameters and the multiple target addresses, or the corresponding relationship between the multiple processing algorithms, the multiple processing parameters, and the multiple target addresses, and sent to the multiple target addresses.
The embodiment of the present invention does not specifically limit the data processing condition with a plurality of first data.
According to the multi-user data flow control and processing method provided by the embodiment of the invention, the information flow node performs the same or different processing on the first data and forwards the first data to different target addresses by applying the processing algorithm, the processing parameters, the control command and the target addresses in the first control set, and the first data is processed in a parallel mode, so that the concurrency capability of the information flow node is enhanced, the information transmission efficiency is improved, and the user experience is further improved.
Based on the above embodiment, step 120 includes:
the method comprises the steps of obtaining a first data set from a first message, and a processing algorithm set, a processing parameter set, a control command set and a target address set in a first control set, wherein the first data set comprises at least one piece of first data, the processing algorithm set comprises at least one processing algorithm processing parameter set comprising at least one processing parameter, the control command set comprises at least one control command, and the target address set comprises at least one target address.
The consistency of the message structure of the communication protocol is considered, the communication protocol is convenient to process by using a universal method, the development cost can be reduced, and the portability and the universality of the communication protocol can be improved. Therefore, the embodiment of the invention stores the first data, the processing algorithm, the processing parameter, the control command and the target address into the communication protocol message in a set form, and ensures the consistency of the format of the communication protocol message under the condition that the communication protocol can support many-to-many application.
Specifically, the first packet is parsed to obtain a first data set including at least one first data, a processing algorithm set including at least one processing algorithm, a processing parameter set including at least one processing parameter, a control command set including at least one control command, and a target address set including at least one target address in the first control set.
It should be noted that, each set may sequentially write and read a message in sequence, for example, 4 bytes are reserved at the front end of the memory of each set to store the number of elements in the set or the length of bytes of the memory occupied by the set, if 4 bytes are reserved to store the number of elements in the set, the memory of each element in the set is 4 bytes plus bytes occupied by the element, where the first 4 bytes are used to record the number of bytes occupied by the current element, for example: the processing algorithm set comprises two algorithms named as "hash" and "compress", and the structure of the processing algorithm set in the protocol is 4 bytes for storing the number of the processing algorithm set, 4 bytes for storing the length of the "hash" byte, 4 bytes for storing the memory of the "hash", 4 bytes for storing the length of the "compress" byte, and 8 bytes for storing the memory of the "compress" byte in sequence. If 4 bytes are reserved for storing the length of the memory bytes occupied by the set, the elements in the processing algorithm set are connected by using special characters in the processing algorithm set to obtain an integrated element corresponding to the processing algorithm set, and then 4 bytes are reserved for recording the number of bytes of the integrated element in the memory, for example: the processing algorithm set includes two algorithms, namely "hash" and "compress", and the special character "#" is used for integration to obtain the integrated element "hash # compress", so that the structure of the processing algorithm set in the protocol sequentially includes 4 bytes for storing the byte length of the integrated element and 13 bytes for storing the memory of the "hash # compress", and the embodiment of the invention does not specifically limit the structure of the element communication protocol message memory in the set. In addition, through the memory storage structure of the above-mentioned sets, each set can be sequentially written in or read from the communication protocol message by the memory storage structure.
Based on the above embodiments, fig. 2 is a schematic flow chart of a first data processing method provided by the present invention. As shown in fig. 2, in the case that there is one first data in the first data set, step 130 includes:
131-1, executing each control command in the control command set on the first data based on each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set to obtain second data corresponding to each processing algorithm and/or each processing parameter;
specifically, each corresponding control command may be executed on the first data according to a corresponding relationship between each control command in the control command set and each processing algorithm; or executing corresponding control commands on the first data according to the corresponding relation between the control commands and the processing parameters; or executing corresponding control commands on the first data according to the corresponding relation among the control commands, the processing algorithms and the processing parameters and the corresponding relation among the processing algorithms in the processing algorithm set and the processing parameters in the processing parameter set to obtain second data corresponding to the processing algorithms and/or the processing parameters.
And 131-2, based on the corresponding relationship between each target address in the target address set and each processing algorithm and/or each processing parameter, applying the second data corresponding to each processing algorithm and/or each processing parameter to generate a second message corresponding to each target address.
Specifically, according to the corresponding relationship between each target address and each processing algorithm in the target address set, or the corresponding relationship between each target address and each processing parameter, or the corresponding relationship between each target address, each processing algorithm and each processing parameter, the second data corresponding to each processing algorithm and/or each processing parameter may be constructed into the second message corresponding to each target address.
It should be noted that there may be only one processing algorithm in the processing algorithm set, there may be only one control command in the control command set, and there may be only one target address in the target address set.
When there is only one processing algorithm, the following two processing methods can be used:
(1) If only one control command exists in the control command set, the first data is processed according to the control command by using each parameter in the processing parameter set.
(2) If there are multiple control commands in the control command set, the processing algorithm may use the processing parameters in the processing parameter set respectively according to the correspondence between the processing parameter set and the control command set, so as to process the first data with the control commands corresponding to the processing parameters.
When there are multiple processing algorithms, determining a processing parameter corresponding to each processing algorithm according to a corresponding relationship between the processing algorithm set and the processing parameter, and simultaneously determining a control command corresponding to each processing algorithm and/or each processing parameter according to a corresponding relationship between the processing algorithm set and the control command set, or according to a corresponding relationship between the processing parameter set and the control command set, or according to a corresponding relationship between the processing algorithm set, the processing parameter set, and the control command set, where each processing algorithm uses each corresponding processing parameter, and processes the first data with the processing algorithm and/or the control command corresponding to each processing parameter, which is not particularly limited in the embodiments of the present invention.
After the first data is processed to obtain the second data, the second packet can be constructed in the following two ways:
(1) Under the condition that only one processing algorithm exists in the processing algorithm set, the second data can be constructed into a second message corresponding to each target address according to the corresponding relation between the processing parameter set and the target address set.
(2) In a scenario where multiple processing algorithms exist in the processing algorithm set, the second data may be constructed into a second packet corresponding to each target address according to a correspondence relationship between at least one of the processing algorithm set, the processing parameter set, and the control command set and the target address set, where each second packet may be directly sent to a target address when only one target address exists in the target address set.
In addition, the correspondence between at least one of the three sets of the processing algorithm set, the processing parameter set and the control command set and the target address set comprises: the processing method comprises the steps of processing a corresponding relation between an algorithm set and a target address set, a corresponding relation between a parameter set and the target address set, a corresponding relation between a control command set and the target address set, a corresponding relation among the algorithm set, the parameter set and the target address set, a corresponding relation among the algorithm set, the control command set and the target address set, a corresponding relation among the parameter set, the control command set and the target address set, and a corresponding relation among the algorithm set, the parameter set, the control command set and the target address set.
Based on the above embodiment, step 131-1 includes:
under the condition that one processing algorithm exists in the processing algorithm set, executing a control command corresponding to the processing algorithm on the first data based on the processing algorithm and each processing parameter to obtain second data corresponding to each processing parameter;
and under the condition that a plurality of processing algorithms exist in the processing algorithm set, executing control commands under the processing algorithms respectively corresponding to the processing parameters on the first data based on the corresponding relation between each processing algorithm and each processing parameter to obtain second data corresponding to each processing algorithm and/or each processing parameter.
Specifically, under the condition that only one processing algorithm exists in the processing algorithm set, if only one control command exists in the control command set, the processing algorithm respectively uses each processing parameter to process the first data by the control command, so as to obtain second data corresponding to each processing parameter; if a plurality of control commands exist in the control command set, the processing algorithm respectively uses each processing parameter according to the corresponding relation between the control command set and the processing parameter set, and processes the first data by the control command corresponding to each processing parameter to obtain second data corresponding to each processing parameter.
When a plurality of processing algorithms exist in the processing algorithm set, determining processing parameters corresponding to each processing algorithm according to the corresponding relation between the processing algorithm set and the processing parameter set, and if only one control command exists in the control command set, processing the first data by the processing algorithms respectively by using the corresponding processing parameters through the control commands to obtain second data corresponding to each processing parameter; if there are multiple control commands in the control command set, the processing algorithm may use the corresponding processing parameters according to the correspondence between at least one of the processing algorithm set and the processing parameter set and the control command set, and process the first data with the control commands corresponding to the processing algorithm and/or the processing parameters, so as to obtain second data corresponding to each processing parameter.
It should be noted that the correspondence between at least one of the processing algorithm set and the processing parameter set and the control command set includes a correspondence between the processing algorithm set and the control command set, a correspondence between the processing parameter set and the control command, and a correspondence between the processing algorithm set, the processing parameter set, and the control command set.
Based on the above embodiments, fig. 3 is a schematic flowchart of a plurality of first data processing methods provided by the present invention. As shown in fig. 3, in the case where there are a plurality of first data in the first data set, step 130 includes:
step 132-1, based on the corresponding relationship between each first data in the first data set and each control command in the control command set, applying each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set, and executing a corresponding control command on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter;
step 132-2, based on the corresponding relationship between each target address in the target address set and each first data and each processing algorithm and/or each processing parameter, applying each first data and each second data corresponding to each processing algorithm and/or each processing parameter to generate a second message corresponding to each target address.
Specifically, the first data corresponding to each control command is determined according to the corresponding relationship between each first data in the first data set and each control command in the control command set, the corresponding control command is executed on the first data corresponding to each control command according to the corresponding relationship between each control command and each processing algorithm in the control command set, or according to the corresponding relationship between each control command and each processing parameter, or according to the corresponding relationship between each control command, each processing algorithm and each processing parameter, and the corresponding relationship between each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set, so as to obtain the second data corresponding to each first data, and then the second data corresponding to each first data is constructed into the second message corresponding to each target address according to the corresponding relationship between at least one of each processing algorithm and each processing parameter and each target address in the target address set, and each first data.
It should be noted that there may be only one processing algorithm in the processing algorithm set, and the first data corresponding to each processing parameter may be determined according to the correspondence between the processing parameter set and the control command set, and the processing algorithm uses each processing parameter, and processes the first data corresponding to the control command with the control command corresponding to each processing parameter; when there are multiple processing algorithms, determining a processing parameter corresponding to each processing algorithm according to a corresponding relationship between a processing algorithm set and a processing parameter, and simultaneously determining a control command corresponding to each processing algorithm and/or each processing parameter according to a corresponding relationship between a processing algorithm set and a control command set, or according to a corresponding relationship between a processing parameter set and a control command set, or according to a corresponding relationship between a processing algorithm set, a processing parameter set and a control command set, where each processing algorithm uses each corresponding processing parameter, and processes first data corresponding to the control command with the processing algorithm and/or the control command corresponding to each processing parameter, and this is not particularly limited in the embodiments of the present invention. After the first data corresponding to each control command is processed to obtain the second data corresponding to each control command, in a scenario where only one processing algorithm exists in the processing algorithm set, the second data may be constructed into the second packet corresponding to each target address according to a correspondence between at least one of each processing parameter and each control command, each target address in the target address set, and each first data, and in a scenario where a plurality of processing algorithms exist in the processing algorithm set, the second data may be constructed into the second packet corresponding to each target address according to a correspondence between at least one of the processing algorithm set, the processing parameter set, the control command set, each target address, and each first data, where, when only one target address exists in the target address set, each second packet may be directly sent to the target address. The corresponding relationship between at least one of the processing algorithm set, the processing parameter set and the control command set and the target address set comprises the corresponding relationship between the processing algorithm set and the target address set, the corresponding relationship between the processing parameter set and the target address set, the corresponding relationship between the control command set and the target address set, the corresponding relationship between the processing algorithm set, the processing parameter set and the target address set, the corresponding relationship between the processing algorithm set, the control command set and the target address set, the corresponding relationship between the processing parameter set, the control command set and the target address set, and the corresponding relationship between the processing algorithm set, the processing parameter set, the control command set and the target address set.
Based on the above embodiment, step 132-1 includes:
under the condition that one processing algorithm exists in the processing algorithm set, applying the processing algorithm and each processing parameter based on the corresponding relation between each first data and each control command, and executing the corresponding control command on each first data to obtain second data corresponding to each first data and each processing parameter;
and when a plurality of processing algorithms exist in the processing algorithm set, executing the control commands under the processing parameters respectively corresponding to the corresponding processing algorithms on each first data based on the corresponding relation between each first data and each control command and the corresponding relation between each first data, each processing algorithm and each processing parameter to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter.
Specifically, when only one processing algorithm exists in the processing algorithm set, the first data corresponding to each control command is determined according to the corresponding relationship between each first data and each control command, and the processing algorithm uses each processing parameter according to the corresponding relationship between each control command and each processing parameter, and processes the first data corresponding to the control command by using the control command corresponding to each processing parameter, so as to obtain second data corresponding to each first data.
When a plurality of processing algorithms exist in the processing algorithm set, determining first data corresponding to each control command according to the corresponding relation between each first data and each control command, determining processing parameters corresponding to each processing algorithm according to the corresponding relation between the processing algorithm set and the processing parameter set, and processing the first data corresponding to the control command by the processing algorithm and/or the control command corresponding to the processing parameters by using the corresponding processing parameters according to the corresponding relation between at least one of each processing algorithm and each processing parameter and each control command and the corresponding relation between the four data of each first data to obtain second data corresponding to each first data.
It should be noted that the correspondence between at least one of the processing algorithm set and the processing parameter set and the control command set includes a correspondence between the processing algorithm set and the control command set, a correspondence between the processing parameter set and the control command, and a correspondence between the processing algorithm set, the processing parameter set, and the control command set.
Based on any of the above embodiments, fig. 4 is a schematic flow chart of a second message generation method provided by the present invention. As shown in fig. 4, in step 130, generating a second packet carrying the second data includes:
step 410, generating an extended control set, or acquiring the extended control set from the first message;
step 420, determining a second control set based on the extended control set and/or the first control set;
step 430, a second packet carrying the second data and the second control set is generated.
In consideration of the fact that the second data needs to be further operated at the next node of the current information transfer node or the specific method flow for generating the second data needs to be known, the embodiment of the invention is realized by carrying the extension control set in the communication protocol message.
Specifically, the extended control set may be generated at the current node, or may be obtained from the first packet, and a second control set is constructed according to the extended control set and/or the first control set, and finally a second packet is constructed according to the second data and the second control set.
It should be noted that the second control set may be constructed separately according to the extended control set or the first control set, for example: the next forwarding node only needs to know how the current node processes the first data, and the first control set may be directly used as the second control set, and may also be constructed by extending the control set and the first control set, for example: the next forwarding node needs to know how the current node processes the first data, and needs to further process the second data, and at this time, the next forwarding node needs to be constructed by the extended control set and the first control set, which is not particularly limited in this embodiment of the present invention.
In particular, there may be h elements in the extended control set in practice, i.e. containing h extended control commands { ph } e E,0 ≦ e ≦ h), and each extended control command is also a set, which may be expressed as { { ph { (ph) 1 },{ph 2 },…,{ph q Q is more than or equal to 0 and less than or equal to N), and the number of elements of the extension control set is recorded as: t = { { ph 1 },{ph 2 },……,{ph q A control command is sent to a plurality of extension control sets, each extension control command corresponds to one or more target addresses, namely all control over one or more target addresses can be realized through one element, namely, the extension control sets and the target addresses are in one-to-many relation; the extended control set is in one-to-many relation with the first data in the first data set, each element in the extended control set can be different, and any extended control command { ph ] in the extended control set e Is corresponding to the firstAny one or more first data in a data set; in particular, the control command { ph ] is extended e It can be empty. The h extended control commands may not be used, or some or all of them may be used in the actual use process.
Based on the foregoing embodiment, the present invention further provides a preferred embodiment, and provides a method for controlling and processing multi-user data flow, including:
the number of target addresses in the target address set is set to be N, the number of first data in the first data set is set to be M, the number of processing algorithms in the processing algorithm set is set to be i, the number of processing parameters in the processing parameter set is set to be j, and the number of control commands in the control commands is set to be k.
When N is more than or equal to 1,M =1,i =1; j =1,0 ≦ k ≦ N, indicating that the first data set includes a first data, the target address set includes a plurality of target addresses, the processing algorithm set includes a processing algorithm, and the processing parameter set includes a processing parameter, in this scenario, when the processed data object is a first data, the processed second data is sent to one or more target addresses according to a processing algorithm in the processing algorithm set and a processing parameter in the processing parameter set, and optionally, the first data may not include or include one or more extended control sets. The first message also contains a control command set used for distinguishing the processing mode of the first data. The method can be applied to remote conferences, video on demand, data acquisition of the internet of things, data distribution and sharing, data compression, hierarchical control of information flow, privacy protection and other application scenes, can select the same processing algorithm, the same processing parameter and a plurality of control commands for the first data under different scenes, achieves different processing on the same data aiming at different application scenes, and achieves the aim of realizing different processing results, and fig. 5 is a schematic diagram of the method for selecting the single processing algorithm and the single processing parameter. The sequence of the control command, the processing algorithm, and the processing parameter in fig. 5 is not particularly limited in the embodiments of the present invention, and preferably, the sequence of the control command, the processing algorithm, and the processing parameter is the control command, the processing algorithm, and the processing parameter sequentially from front to back. As shown in fig. 5: the specific steps of the scene are as follows:
the first step is to obtain a first message.
The first message contains a first set of data.
The first data set contains 1 first data, which can be expressed as { first data } 1 (M = 1), wherein one first data is 1 Storing a copy of data to be processed and other parameters thereof; first data 1 Is the smallest unit that the scheme handles.
The first message includes, but is not limited to, the following fields: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set; it should be noted that the fields of the target address set, the processing algorithm set, the processing parameter set, the extended control set, and the control command set may be shared by all the first data in the first data set, or may be shared by each piece of the first data.
Wherein the packet type is used to identify a data type of the first packet.
The source address is used to identify the sending address of the first message.
The set of target addresses may contain N target addresses, which may be denoted as { target address 1 Target address 2 ,., target address N And (N is more than or equal to 1) for marking the receiving address of the processed second message.
The set of processing algorithms contains 1 processing algorithm, which can be expressed as { processing algorithm } 1 }, processing algorithm 1 Applied to first data in a first data set 1 The treatment of (1); processing algorithm herein 1 The first packet may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
The processing parameter set contains 1 processing parameter, which can be expressed as { processing parameter } 1 }, process parameters 1 And processing algorithm 1 Simultaneous application to first data in a first data set 1 The treatment of (1); processing parameters herein 1 The first packet may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
In practice, there may be h elements in the extended control set, i.e. h extended control commands { ph } e E,0 ≦ e ≦ h), and each extended control command is also a set, which may be expressed as { { ph { (ph) 1 },{ph 2 },…,{ph q Q is more than or equal to 0 and less than or equal to N), and the number of elements of the extension control set is recorded as: t = { { ph 1 },{ph 2 },……,{ph q A control command is sent to a plurality of extension control sets, each extension control command corresponds to one or more target addresses, namely all control over one or more target addresses can be realized through one element, namely, the extension control sets and the target addresses are in one-to-many relation; the extended control set and the first data in the first data set are in one-to-many relationship, each element in the extended control set can be different, and any extended control command { ph ] in the extended control set e Corresponding to any one or more first data in the first data set; in particular, the control command { ph ] is extended e It can be empty.
The set of control commands contains k control commands, which can be denoted as { control command } 1 Control command 2 ,. k And (k is greater than or equal to 0 and less than or equal to N) for distinguishing which processing mode should be corresponded to all the first data in the first data set or each first data in the first data set. The control command set to be described includes k control commands, and only some or all of the k control commands may be used in the actual use process.
The first data is the payload of the first packet and is a field that requires other fields for comprehensive processing.
Secondly, analyzing the first message to obtain each field, wherein the fields include but are not limited to: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set.
For example, the main body for parsing the first packet may be: the system comprises a data distribution sharing center, an AI video image processing device and an information processing management and control terminal.
The actual types of the fields of the first packet may also be different according to the application scenario and the type of the body for parsing the first packet.
For example,
when the application scene is data distribution sharing, the data distribution sharing center is used as an information transfer node to analyze the multi-source heterogeneous remote sensing image data packet to obtain a remote sensing image data type, a data center address, a user node address set, a distribution sharing algorithm set, a sharing range number set, an extension control set, a control command set and a remote sensing image data set to be processed.
When the application scene is data compression, the AI video image processing equipment is used as an information transfer node to analyze the video image data packet to obtain a video image type, a camera address, a play address set, a compression processing algorithm set, a compression algorithm parameter set, an extension control set, a control command set and a first video image data set to be processed;
when the application scene is information flow hierarchical control, the information processing end is used as an information flow node to analyze the data packet to obtain an information type, a sending address, a receiving address set, an information processing operation set, an information processing parameter set, an extension control set, a control command set and a flow data set to be processed.
Thirdly, determining a control command according to the control command set, the processing algorithm set and the processing parameter set in the first message 1 Processing algorithm 1 And process parameters 1 And for the first data 1 Processing the data to obtain second data 1
When the application scene is data distribution sharing, the data distribution sharing center processes the remote sensing image data set (first data) according to the control command, the distribution sharing algorithm and the sharing range number to obtain second data which is a remote sensing image data set to be sent;
when the application scene is data compression, the AI video image processing equipment processes a video image data set (first data) according to the control command, the compression processing algorithm and the compression algorithm parameter to obtain second data which is a video image data set to be sent;
when the application scene is information flow hierarchical management and control, the information processing end processes the to-be-processed flow data set (first data) according to the control command, the data hierarchical algorithm and the hierarchical algorithm parameters to obtain second data which are to-be-sent flow data sets.
The fourth step, will carry the second data 1 And sending the second message of the corresponding extended control command to a target address set, namely the target address 1 Target address 2 ,., target address N The address in (N ≧ 1).
When N is more than or equal to 1,M =1,i =1; j >1,0 ≤ k ≤ N, which indicates that the first data set includes a first data, the target address set includes a plurality of target addresses, the processing algorithm set includes a processing algorithm, and the processing parameter set includes a plurality of processing parameters, in this scenario, when the processed data object is a first data, according to a processing algorithm of the processing algorithm set and a plurality of processing parameters of the processing parameter set, and according to a corresponding relationship between each target address and each processing parameter, the processed second data, the processing algorithm and each processing parameter are sent to one or more target addresses, optionally, one or more extended control sets may not be included or included. The first message also contains a control command set used for distinguishing the processing mode of the first data. The method can be applied to remote conferences, video on demand, data acquisition of the internet of things, data distribution and sharing, data compression, hierarchical control of information flow, privacy protection and other application scenes, different processing parameters can be selected for the first data under the same processing algorithm under different scenes, different processing on the same data is achieved under different application scenes, and the aim of achieving different processing results is achieved, and fig. 6 is a schematic diagram of a method for selecting a single processing algorithm and multiple processing parameters. The sequence of the control command, the processing algorithm, and the processing parameter in fig. 6 is not particularly limited in the embodiments of the present invention, and preferably, the sequence of the control command, the processing algorithm, and the processing parameter is the control command, the processing algorithm, and the processing parameter sequentially from front to back. As shown in fig. 6: the specific steps of the scene are as follows:
the first step is to obtain a first message.
The first message contains a first set of data.
The first data set contains 1 first data, which can be expressed as { first data } 1 (M = 1), wherein one first data is 1 Storing a copy of data to be processed and other parameters thereof; first data 1 Is the smallest unit that the scheme handles.
The first message includes, but is not limited to, the following fields: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set; it should be noted that the fields of the target address set, the processing algorithm set, the processing parameter set, the extended control set, and the control command set may be shared by all the first data in the first data set, or may be shared by each piece of the first data.
And the packet type is used for identifying the data type of the first message.
And the source address is used for identifying the sending address of the first message.
The set of target addresses may contain N target addresses, which may be denoted as { target address 1 Target address 2 ,., target address N And (N is more than or equal to 1), the message forwarding module is used for marking the receiving address of the processed second message.
The set of processing algorithms contains 1 processing algorithm, which can be expressed as { processing algorithm } 1 }, processing algorithm 1 Applied to first data in a first data set 1 The treatment of (1); the processing algorithm may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
The processing parameter set comprises j processing parameters, which can be expressed as aProcessing parameters 1 Processing parameters 2 ,., treatment parameters j }(j>1) Selecting s processing parameters { processing parameters from the j processing parameters 1 Processing parameters 2 ,., treatment parameters s S is more than or equal to 1 and less than or equal to j and processing algorithm 1 Simultaneous application to first data in a first data set 1 The treatment of (1); processing parameters herein 1 The first packet may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
In practice, there may be h elements in the extended control set, i.e. h extended control commands { ph } e E,0 ≦ e ≦ h), and each extended control command is also a set, which may be expressed as { { ph { (ph) 1 },{ph 2 },…,{ph q And (q is more than or equal to 0 and less than or equal to N), recording the number of elements of the extension control set as: t = { { ph 1 },{ph 2 },……,{ph q A control command is sent to a plurality of extension control sets, each extension control command corresponds to one or more target addresses, namely all control over one or more target addresses can be realized through one element, namely, the extension control sets and the target addresses are in one-to-many relation; the extended control set is in one-to-many relation with the first data in the first data set, each element in the extended control set can be different, and any extended control command { ph ] in the extended control set e Corresponding to any one or more first data in the first data set; in particular, the control command { ph ] is extended e It can be empty.
The set of control commands contains k control commands, which can be denoted as { control command } 1 Control command 2 ,. k And (k is greater than or equal to 0 and less than or equal to N) for distinguishing which processing mode should be corresponded to all the first data in the first data set or each first data in the first data set.
The first data is the payload of the first packet and is a field that requires other fields for comprehensive processing.
Secondly, analyzing the first message to obtain each field, wherein the fields include but are not limited to: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set.
For example, the main body for parsing the first packet may be: the system comprises a data distribution and sharing center, AI video image processing equipment and an information processing management and control end;
the actual types of the fields of the first packet may also be different according to the application scenario and the type of the body for parsing the first packet.
For example, in the case of a liquid,
when the application scene is data distribution sharing, the data distribution sharing center is used as an information transfer node to analyze the multi-source heterogeneous remote sensing image data packet to obtain a remote sensing image data type, a data center address, a user node address set, a distribution sharing algorithm set, a sharing range number set, an extension control set, a control command set and a remote sensing image data set to be processed.
When the application scene is data compression, the AI video image processing equipment is used as an information transfer node to analyze the video image data packet to obtain a video image type, a camera address, a play address set, a compression processing algorithm set, a compression algorithm parameter set, an extension control set, a control command set and a first video image data set to be processed;
when the application scene is information flow hierarchical control, the information processing end is used as an information flow node to analyze the data packet to obtain an information type, a sending address, a receiving address set, an information processing operation set, an information processing parameter set, an extension control set, a control command set and a flow data set to be processed.
Thirdly, determining k 'control commands (k' is more than or equal to 1 and less than or equal to k) and processing algorithms according to the control command set, the processing algorithm set and the processing parameter set in the first message 1 And s processing parameter corresponding relations, and corresponding relations to the first data 1 Processing the data to obtain second data 1
When the application scene is data distribution and sharing, the data distribution and sharing center processes a remote sensing image data set (first data) according to a control command, a distribution and sharing algorithm and a sharing range number to obtain second data which is a remote sensing image data set to be sent;
when the application scene is data compression, the AI video image processing equipment processes a video image data set (first data) according to the control command, the compression processing algorithm and the compression algorithm parameter to obtain second data which is a video image data set to be sent;
when the application scene is information flow hierarchical control, the information processing terminal processes the flow data set (first data) to be processed according to the control command, the data hierarchical algorithm and the hierarchical algorithm parameter to obtain second data which is a flow data set to be sent.
Fourthly, carrying second data according to the corresponding relation between the target address set and the processing parameter set 1 And with the second data 1 The corresponding message of the extended control instruction, the processing algorithm and the processing parameter is sent to a target address set, namely a target address 1 Target address 2 ,., target address N The address in the (N ≧ 1).
When the application scene is data distribution and sharing, the data distribution and sharing center sends the remote sensing image data set to be sent, the corresponding extended control set, the distribution and sharing algorithm set and the sharing range number set to the user node address set according to the corresponding relation between the user node address set and the sharing range number set;
when the application scene is data compression, the AI video image processing equipment integrates the video image data set to be sent with the corresponding extended control set, the compression processing algorithm set and the compression algorithm parameter set thereof and sends the integrated data to the play address set according to the corresponding relationship between the play address set and the compression algorithm parameter set;
when the application scenario is information flow hierarchical management and control, the information processing terminal integrates the flow data set to be sent with the corresponding extended control set, the information processing operation set and the information processing parameter set thereof and sends the integrated data to the receiving address set according to the corresponding relation between the receiving address set and the hierarchical algorithm parameter set.
When N is more than or equal to 1, M =1, i >1; j >1,0 ≤ k ≤ N, which indicates that the first data set includes a first data, the target address set includes a plurality of target addresses, the processing algorithm set includes a plurality of processing algorithms, the processing parameter set includes a plurality of processing parameters, and in this scenario, when the processed data object is a first data, the plurality of processing algorithms are selected from the processing algorithm set and the plurality of parameters are selected from the processing parameter set, and the processed second data, the processing algorithms, and the processing parameters are concurrently sent to one or more target addresses according to the corresponding relationship among the target addresses, the processing algorithms, and the processing parameters, optionally, one or more extension control sets may be excluded or included. The first message also contains a control command set used for distinguishing the processing mode of the first data. The method can be applied to remote conferences, video on demand, data acquisition of the internet of things, data distribution and sharing, data compression, hierarchical control of information flow, privacy protection and other application scenes, different processing algorithms and different processing parameters can be selected for the first data in different scenes, and different processing on the same data can be realized in different application scenes to achieve the aim of realizing different processing results, and fig. 7 is a schematic diagram of the method for selecting the multiprocessing algorithms and the multiprocessing parameters. The sequence of the control command, the processing algorithm, and the processing parameter in fig. 7 is not particularly limited in the embodiments of the present invention, and preferably, the sequence of the control command, the processing algorithm, and the processing parameter is the control command, the processing algorithm, and the processing parameter sequentially from front to back. As shown in fig. 7: the specific steps of the scene are as follows:
the first step is to obtain a first message.
The first message contains a first set of data.
The first data set contains 1 first data, which can be expressed as { first data } 1 (M = 1), wherein one first data is 1 Storing a copy of data to be processed and other parameters thereof; first data 1 Is the smallest unit that the scheme handles.
The first message includes, but is not limited to, the following fields: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set; it should be noted that the fields of the target address set, the processing algorithm set, the processing parameter set, the extended control set, and the control command set may be shared by all the first data in the first data set, or may be shared by each piece of the first data.
And the packet type is used for identifying the data type of the first message.
And the source address is used for identifying the sending address of the first message.
The set of target addresses may contain N target addresses, which may be denoted as { target address 1 Target address 2 ,., target address N And (N is more than or equal to 1) for marking the receiving address of the processed second message.
The set of processing algorithms contains i processing algorithms, which may be denoted as { processing algorithm } 1, Processing algorithm 2 ,., processing algorithm i } (i)>1) Selecting y data processing algorithms { processing algorithms from the i processing algorithms 1 Processing algorithm 2 ,., processing algorithm y Applied (1 ≦ y ≦ i) to the first data in the first data set 1 The treatment of (1); the processing algorithm may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
The processing parameter set contains j processing parameters, which may be expressed as { processing parameters } 1 Processing parameters 2 ,., treatment parameters j }(j>1) Selecting s processing parameters { processing parameters } from the j processing parameters 1 Processing parameters 2 ,., treatment parameters s S is more than or equal to 1 and less than or equal to j, and y processing algorithms (processing algorithms) 1 Processing algorithm 2 ,., processing algorithm y Applied to first data in a first data set simultaneously (1 ≦ y ≦ i) 1 The treatment of (2); the processing parameter may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is referred to in the embodiment of the present inventionAnd is not particularly limited.
In practice, there may be h elements in the extended control set, i.e. h extended control commands { ph } e E,0 ≦ e ≦ h), and each extended control command is also a set, which may be expressed as { { ph { (ph) 1 },{ph 2 },…,{ph q Q is more than or equal to 0 and less than or equal to N), and the number of elements of the extension control set is recorded as: t = { { ph 1 },{ph 2 },……,{ph q A control command is generated, each extended control command corresponds to one or more target addresses, that is, all control over one or more target addresses can be realized through a certain element, that is, the extended control set and the target addresses are in a one-to-many relationship; the extended control set and the first data in the first data set are in one-to-many relationship, each element in the extended control set can be different, and any extended control command { ph ] in the extended control set e Corresponding to any one or more first data in the first data set; in particular, the control command { ph ] is extended e It can be empty.
The set of control commands contains k control commands, which can be denoted as { control command } 1 Control command 2 ,. k And (k is greater than or equal to 0 and less than or equal to N) for distinguishing which processing mode should be corresponded to all the first data in the first data set or each first data in the first data set.
The first data is a payload of the first packet, and is a field requiring other fields for comprehensive processing.
Secondly, analyzing the first message to obtain each field, wherein the fields include but are not limited to: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set.
For example, the main body for parsing the first packet may be: the system comprises a data distribution sharing center, an AI video image processing device and an information processing management and control terminal.
The actual types of the fields of the first packet may also be different according to the application scenario and the type of the body for parsing the first packet.
For example,
when the application scene is data distribution sharing, the data distribution sharing center is used as an information transfer node to analyze the multi-source heterogeneous remote sensing image data packet to obtain a remote sensing image data type, a data center address, a user node address set, a distribution sharing algorithm set, a sharing range number set, an extension control set, a control command set and a remote sensing image data set to be processed.
When the application scene is data compression, the AI video image processing equipment is used as an information transfer node to analyze the video image data packet to obtain a video image type, a camera address, a play address set, a compression processing algorithm set, a compression algorithm parameter set, an extension control set, a control command set and a first video image data set to be processed;
when the application scene is information flow hierarchical control, the information processing end is used as an information flow node to analyze the data packet to obtain an information type, a sending address, a receiving address set, an information processing operation set, an information processing parameter set, an extension control set, a control command set and a flow data set to be processed.
Thirdly, determining the corresponding relation among k 'control commands (k' is more than or equal to 1 and less than or equal to k), y processing algorithms and s processing parameters according to the control command set, the processing algorithm set and the processing parameter set, and performing data matching on the first data according to the corresponding relation 1 Processing the data to obtain second data 1
When the application scene is data distribution sharing, the data distribution sharing center processes the remote sensing image data set (first data) according to the control command, the distribution sharing algorithm and the sharing range number to obtain second data which is a remote sensing image data set to be sent;
when the application scene is data compression, the AI video image processing equipment processes a video image data set (first data) according to the control command, the compression processing algorithm and the compression algorithm parameter to obtain second data which is a video image data set to be sent;
when the application scene is information flow hierarchical management and control, the information processing end processes the to-be-processed flow data set (first data) according to the control command, the data hierarchical algorithm and the hierarchical algorithm parameters to obtain second data which are to-be-sent flow data sets.
Fourthly, carrying second data according to the corresponding relation among the target address set, the processing algorithm set and the processing parameter set 1 And with the second data 1 The second message of the corresponding extended control instruction, processing algorithm and processing parameter is sent to the target address set, namely the target address 1 Target address 2 ,., target address N The address in (N ≧ 1).
When the application scene is data distribution and sharing, the data distribution and sharing center sends the remote sensing image data set to be sent, the corresponding extension control set, the distribution and sharing algorithm set and the sharing range number set to the user node address set according to the corresponding relation among the user node address set, the distribution and sharing algorithm set and the sharing range number set;
when the application scene is data compression, the AI video image processing equipment integrates and sends a video image data set to be sent and an extension control set, a compression processing algorithm set and a compression algorithm parameter set corresponding to the video image data set to be sent to a play address set according to the corresponding relation among the play address set, the compression processing algorithm set and the compression algorithm parameter set;
when the application scene is information flow hierarchical management and control, the information processing terminal integrates the flow data set to be sent with the corresponding extended control set, the information processing operation set and the information processing parameter set thereof and sends the integrated data to be sent to the receiving address set according to the corresponding relation among the receiving address set, the data hierarchical algorithm set and the hierarchical algorithm parameter set.
When N is more than or equal to 1, M >; j >1,0 ≤ k ≤ N, which indicates that the first data set includes a plurality of first data, the target address set includes a plurality of target addresses, the processing algorithm set includes a plurality of processing algorithms, the processing parameter set includes a plurality of processing parameters, and in this scenario, when the processed data object is a plurality of first data, a plurality of processing algorithms are selected from the processing algorithm set and a plurality of parameters are selected from the processing parameter set, and according to the corresponding relationship among the target addresses, the first data, the processing algorithms, and the processing parameters, the processed second data, the processing algorithms, and the processing parameters are concurrently sent to one or more target addresses, optionally, one or more extended control sets may be excluded or included. The first message also contains a control command set used for distinguishing the processing mode of the first data. The method can be applied to remote conferences, video on demand, data acquisition of the internet of things, data distribution and sharing, data compression, hierarchical control of information flow, privacy protection and other application scenes, different processing algorithms can be selected for the first data in different scenes, and different processing on the same data can be realized in different application scenes to achieve the aim of realizing different processing results, and fig. 8 is a schematic diagram of a method for selecting multiple processing algorithms and multiple processing parameters by multiple first data. The sequence of the control commands, the processing algorithm, and the processing parameters in fig. 8 is not specifically limited in the embodiment of the present invention, and preferably, the sequence of the control commands, the processing algorithm, and the processing parameters is from front to back. As shown in fig. 8: the specific steps of the scene are as follows:
the first step is to obtain a first message.
The first message includes a first set of data.
The first data set contains M first data, which may be expressed as { first data 1 First data of 2 ,. M And (M > 1). Wherein, each first data stores a copy of data to be processed and other parameters; each first data is the minimum unit processed by the scheme;
the first message includes, but is not limited to, the following fields: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set; it should be noted that, the fields of the target address set, the processing algorithm set, the processing parameter set, the extended control set, and the control command set may be shared by all the first data in the first data set, or may be shared by one copy of each first data.
And the packet type is used for identifying the data type of the first message.
And the source address is used for identifying the sending address of the first message.
The target address set contains N target addresses, which can be expressed as { target address } 1 Target address 2 ,., target address N And (N is more than or equal to 1) for marking the receiving address of the processed second message.
The set of processing algorithms contains i processing algorithms, which may be denoted as { processing algorithm } 1 Processing algorithm 2 ,., processing algorithm i }(i>1) Selecting y data processing algorithms { processing algorithms from the i processing algorithms 1 Processing algorithm 2 ,., processing algorithm y Applying (1 ≦ y ≦ i) to the processing of the M first data in the first data set; the processing algorithm may be obtained from the first packet, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
The processing parameter set contains j processing parameters, which may be expressed as { processing parameters } 1 Processing parameters 2 ,., treatment parameters j }(j>1) Selecting s processing parameters { processing parameters from the j processing parameters 1 Processing parameters 2 ,., treatment parameters s S is more than or equal to 1 and less than or equal to j, and y processing algorithms (processing algorithms) 1 Processing algorithm 2 ,., processing algorithm y H) (1 ≦ y ≦ i)) applied to the processing of the M first data in the first data set at the same time; the processing parameter may be obtained from the first message, or obtained from a processing algorithm pre-stored in the forwarding node, which is not limited in this embodiment of the present invention.
In practice, there may be h elements in the extended control set, i.e. h extended control commands { ph } e E,0 ≦ e ≦ h }, and each extended control command is also a set which can be expressed as { { ph ≦ h { (h) } 1 },{ph 2 },…,{ph q (0 ≦ q ≦ N), extending the elements of the control setThe number is recorded as: t = { { ph 1 },{ph 2 },……,{ph q A control command is sent to a plurality of extension control sets, each extension control command corresponds to one or more target addresses, namely all control over one or more target addresses can be realized through one element, namely, the extension control sets and the target addresses are in one-to-many relation; the extended control set is in one-to-many relation with the first data in the first data set, each element in the extended control set can be different, and any extended control command { ph ] in the extended control set e Corresponding to any one or more first data in the first data set; in particular, the control command { ph ] is extended e It can be empty.
The set of control commands contains k control commands, which can be denoted as { control command } 1 Control command 2 ,. k And (k is greater than or equal to 0 and less than or equal to N) for distinguishing which processing mode should be corresponded to all the first data in the first data set or each first data in the first data set.
Each first data is a payload of the first packet, and is a field requiring other fields for comprehensive processing.
Secondly, analyzing the first message to obtain each field, wherein the fields include but are not limited to: the method comprises the steps of packet type, source address, target address set, processing algorithm set, processing parameter set, extended control set, control command set and first data set.
For example, the main body for parsing the first packet may be: the system comprises a data distribution and sharing center, AI video image processing equipment and an information processing management and control terminal.
The actual types of the fields of the first packet may also be different according to the application scenario and the type of the body for parsing the first packet.
For example,
when the application scene is data distribution sharing, the data distribution sharing center analyzes the multi-source heterogeneous remote sensing image data packet to obtain a remote sensing image data type, a data center address, a user node address set, a distribution sharing algorithm set, a sharing range number set, an extension control set, a control command set and a remote sensing image data set to be processed;
when the application scene is data compression, the AI video image processing equipment analyzes the video image data packet to obtain a video image type, a camera address, a play address set, a compression processing algorithm set, a compression algorithm parameter set, an extension control set, a control command set and a to-be-processed video image data set;
when the application scene is information flow hierarchical control, the information processing end analyzes the data packet to obtain an information type, a sending address, a receiving address set, an information processing operation set, an information processing parameter set, an extension control set, a control command set and a flow data set to be processed.
Thirdly, determining the corresponding relation among M first data, k 'control commands (k' is more than or equal to 1 and less than or equal to k), y processing algorithms and s processing parameters according to the first data set, the control command set, the processing algorithm set and the processing parameter set, and carrying out data processing on the M first data in the first data set according to the corresponding relation to obtain second data { second data } corresponding to each first data 1 Second data 2 ,., second data M }(M>1)。
When the application scene is data distribution sharing, the data distribution sharing center processes the remote sensing image data set (first data) according to the control command, the distribution sharing algorithm and the sharing range number to obtain second data which is a remote sensing image data set to be sent;
when the application scene is data compression, the AI video image processing equipment processes a video image data set (first data) according to the control command, the compression processing algorithm and the compression algorithm parameter to obtain second data which is a video image data set to be sent;
when the application scene is information flow hierarchical control, the information processing terminal processes the flow data set (first data) to be processed according to the control command, the data hierarchical algorithm and the hierarchical algorithm parameter to obtain second data which is a flow data set to be sent.
The fourth step is based onThe target address set, the first data set, the processing algorithm set and the processing parameter set are in corresponding relation, and M second data, namely { second data, are carried 1 Second data 2 ,., second data M (M > 1), and M second data, i.e. { second data 1 Second data 2 ,., second data M Sending the second message of the extended control instruction, the processing algorithm and the processing parameter corresponding to the (M > 1) to a target address set, namely the { target address 1 Target address 2 ,., target address N The address in the (N ≧ 1).
When the application scene is data distribution and sharing, the data distribution and sharing center sends the remote sensing image data set to be sent, the corresponding extension control set, the distribution and sharing algorithm set and the sharing range number set to the user node address set according to the corresponding relation of the user node address set, the remote sensing image data set to be processed, the distribution and sharing algorithm set and the sharing range number set;
when the application scene is data compression, the AI video image processing device integrates and sends a video image data set to be sent and an extension control set, a compression processing algorithm set and a compression algorithm parameter set corresponding to the video image data set to be sent to a play address set according to the corresponding relation of the play address set, the video image data set to be processed, the compression processing algorithm set and the compression algorithm parameter set;
when the application scene is information flow hierarchical control, the information processing terminal integrates the flow data set to be sent with the corresponding extension control set, the information processing operation set and the information processing parameter set and sends the integrated data set to be sent to the receiving address set according to the corresponding relation of the receiving address set, the data set to be processed, the data hierarchical algorithm set and the hierarchical algorithm parameter set.
The following describes the multi-user data flow control and processing apparatus provided in the present invention, and the multi-user data flow control and processing apparatus described below and the multi-user data flow control and processing method described above may be referred to in correspondence with each other.
Fig. 9 is a schematic structural diagram of data processing provided by the present invention. As shown in fig. 9, the apparatus includes: a receiving module 910, a parsing module 920, a processing module 930, and a sending module 940.
Wherein,
a receiving module 910, configured to receive a first packet;
the parsing module 920 is configured to obtain first data and a first control set from the first packet, where the first control set includes a processing algorithm, a processing parameter, a control command, and a target address;
a processing module 930, configured to execute a control command on the first data based on the processing algorithm and the processing parameter to obtain second data, and generate a second message carrying the second data;
a sending module 940, configured to send the second packet based on the destination address.
In the embodiment of the invention, the receiving module is used for receiving a first message; the analysis module is used for acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address; the processing module is used for executing a control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generating a second message carrying the second data; the sending module is used for sending the second message based on the target address, so that one or more first data are subjected to different data processing in a parallel processing mode and sent to different target addresses, the control capability of an information transfer node on information transfer is enhanced, the processing efficiency is improved, the time delay of user receiving is reduced, and the user experience is improved.
Based on any of the above embodiments, the parsing module 920 is specifically configured to obtain a first data set from the first packet, and a processing algorithm set, a processing parameter set, a control command set, and a target address set in the first control set, where the first data set includes at least one first data, the processing algorithm set includes at least one processing algorithm, the processing parameter set includes at least one processing parameter, the control command set includes at least one control command, and the target address set includes at least one target address.
The processing module 930 according to any of the above embodiments includes:
the second data generation submodule is used for executing each control command in the control command set on the first data on the basis of each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set under the condition that one piece of first data exists in the first data set, so as to obtain second data corresponding to each processing algorithm and/or each processing parameter;
and the second message generation sub-module is used for applying second data corresponding to each processing algorithm and/or each processing parameter to generate second messages corresponding to each target address respectively on the basis of the corresponding relation between each target address in the target address set and each processing algorithm and/or each processing parameter under the condition that one piece of first data exists in the first data set.
Based on any of the embodiments, the second data generation sub-module is specifically configured to, when there is one first data in the first data set and one processing algorithm in the processing algorithm set, execute a control command corresponding to the processing algorithm on the first data based on the processing algorithm and each processing parameter, and obtain second data corresponding to each processing parameter;
and under the condition that a plurality of processing algorithms exist in the processing algorithm set, executing control commands under the processing algorithms respectively corresponding to the processing parameters on the first data based on the corresponding relation between each processing algorithm and each processing parameter to obtain second data corresponding to each processing algorithm and/or each processing parameter.
The processing module 930 according to any of the above embodiments includes:
the second data generation submodule is used for applying each processing algorithm in the processing algorithm set and each processing parameter in the processing parameter set based on the corresponding relation between each first data in the first data set and each control command in the control command set when a plurality of first data exist in the first data set, and executing the corresponding control command on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter;
and the second message generation sub-module is used for applying the first data and the second data corresponding to the processing algorithms and/or the processing parameters to generate second messages corresponding to the target addresses respectively on the basis of the corresponding relation between the target addresses in the target address set and the first data and the processing algorithms and/or the processing parameters respectively under the condition that a plurality of first data exist in the first data set.
Based on any of the above embodiments, the second data generation sub-module is specifically configured to, when there are multiple pieces of first data in the first data set and one processing algorithm in the processing algorithm set, apply the processing algorithm and each processing parameter based on a correspondence between each piece of first data and each piece of control command, and execute the corresponding control command on each piece of first data to obtain second data corresponding to each piece of first data and each processing parameter;
and under the condition that a plurality of processing algorithms exist in the processing algorithm set, executing the control commands under the processing algorithms corresponding to the corresponding processing parameters on the first data based on the corresponding relation between the first data and the control commands and the corresponding relation between the first data and the processing algorithms and the processing parameters, and obtaining the first data and the second data corresponding to the processing algorithms and/or the processing parameters.
According to any of the above embodiments, the processing module 930 includes:
the extension control submodule is used for generating an extension control set or acquiring the extension control set from the first message;
an extended control set submodule for determining a second control set based on the extended control set and/or the first control set;
and the second message generation submodule is used for generating a second message carrying second data and a second control set.
Fig. 10 illustrates a physical structure diagram of an electronic device, and as shown in fig. 10, the electronic device may include: a processor (processor) 1010, a communication Interface (Communications Interface) 1020, a memory (memory) 1030, and a communication bus 1040, wherein the processor 1010, the communication Interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. Processor 1010 may invoke logic instructions in memory 1030 to perform a multi-user data flow control and processing method comprising: receiving a first message; acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address; executing a control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generate a second message carrying the second data; and sending the second message based on the target address.
Furthermore, the above logic instructions in the memory 1030 can be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the method for controlling and processing multi-user data flow provided by the above methods, the method comprising: receiving a first message; acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address; executing a control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generate a second message carrying the second data; and sending the second message based on the target address.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method for performing multi-user data flow control and processing provided by the above methods, the method comprising: receiving a first message; acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address; executing a control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generate a second message carrying the second data; and sending the second message based on the target address.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A multi-user data flow control and processing method is characterized by comprising the following steps:
receiving a first message;
acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address;
executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data, and generating a second message carrying the second data;
sending the second message based on the target address;
the executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generate a second packet carrying the second data includes:
under the condition that the number of the first data is one, executing each control command on the first data based on each processing algorithm and each processing parameter to obtain second data corresponding to each processing algorithm and/or each processing parameter; based on the corresponding relation between each target address and each processing algorithm and/or each processing parameter, second data corresponding to each processing algorithm and/or each processing parameter is applied to generate second messages corresponding to each target address;
under the condition that the first data are multiple, each processing algorithm and each processing parameter are applied based on the corresponding relation between each first data and each control command, and the corresponding control command is executed on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter; and applying the first data and the second data corresponding to the processing algorithms and/or the processing parameters based on the corresponding relation between each target address and the first data and the processing algorithms and/or the processing parameters, and generating second messages corresponding to the target addresses.
2. The method of claim 1, wherein the obtaining a first data and a first control set from the first packet comprises:
a first data set, a processing algorithm set, a processing parameter set, a control command set and a target address set are obtained from the first message, the first data set comprises at least one first data, the processing algorithm set comprises at least one processing algorithm, the processing parameter set comprises at least one processing parameter, the control command set comprises at least one control command, and the target address set comprises at least one target address.
3. The method for controlling and processing multi-user data flow according to claim 2, wherein the step of executing each control command on the first data based on each processing algorithm and each processing parameter to obtain second data corresponding to each processing algorithm and/or each processing parameter comprises:
under the condition that one processing algorithm exists in the processing algorithm set, executing a control command corresponding to the processing algorithm on the first data based on the processing algorithm and each processing parameter to obtain second data corresponding to each processing parameter;
and when a plurality of processing algorithms exist in the processing algorithm set, executing control commands under the processing algorithms corresponding to the processing parameters on the first data based on the corresponding relation between the processing algorithms and the processing parameters to obtain second data corresponding to the processing algorithms and/or the processing parameters.
4. The method for controlling and processing the multi-user data flow according to claim 2, wherein the step of applying each processing algorithm and each processing parameter based on the corresponding relationship between each first data and each control command, and executing the corresponding control command on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter comprises:
under the condition that one processing algorithm exists in the processing algorithm set, the processing algorithm and the processing parameters should be based on the corresponding relation between the first data and the control commands, and the corresponding control commands are executed on the first data to obtain second data corresponding to the first data and the processing parameters;
and when a plurality of processing algorithms exist in the processing algorithm set, executing the control commands under the processing algorithms corresponding to the corresponding processing parameters on the first data based on the corresponding relation between the first data and the control commands and the corresponding relation between the first data and the processing algorithms and the processing parameters to obtain the first data and the second data corresponding to the processing algorithms and/or the processing parameters.
5. The multi-user data flow control and processing method according to any one of claims 1 to 4, wherein the generating a second packet carrying the second data includes:
generating an extended control set, or acquiring the extended control set from the first message;
determining a second control set based on the extended control set and/or the first control set;
and generating a second message carrying the second data and the second control set.
6. A multi-user data flow control and processing apparatus, comprising:
the receiving module is used for receiving the first message;
the analysis module is used for acquiring first data and a first control set from the first message, wherein the first control set comprises a processing algorithm, a processing parameter, a control command and a target address;
the processing module is used for executing the control command on the first data based on the processing algorithm and the processing parameter to obtain second data and generating a second message carrying the second data;
a sending module, configured to send the second packet based on the destination address;
the processing module is specifically configured to:
under the condition that the number of the first data is one, executing each control command on the first data based on each processing algorithm and each processing parameter to obtain second data corresponding to each processing algorithm and/or each processing parameter; based on the corresponding relation between each target address and each processing algorithm and/or each processing parameter, second data corresponding to each processing algorithm and/or each processing parameter is applied to generate second messages corresponding to each target address;
under the condition that the first data are multiple, each processing algorithm and each processing parameter are applied based on the corresponding relation between each first data and each control command, and the corresponding control command is executed on each first data to obtain each first data and second data corresponding to each processing algorithm and/or each processing parameter; and applying the first data and the second data corresponding to the processing algorithms and/or the processing parameters based on the corresponding relation between each target address and the first data and the processing algorithms and/or the processing parameters, and generating second messages corresponding to the target addresses.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the multi-user data flow control and processing method according to any one of claims 1 to 5 when executing the program.
8. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the multi-user data flow control and processing method according to any one of claims 1 to 5.
CN202210475066.0A 2022-04-29 2022-04-29 Multi-user data flow control and processing method, device, equipment and medium Active CN114866514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210475066.0A CN114866514B (en) 2022-04-29 2022-04-29 Multi-user data flow control and processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210475066.0A CN114866514B (en) 2022-04-29 2022-04-29 Multi-user data flow control and processing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114866514A CN114866514A (en) 2022-08-05
CN114866514B true CN114866514B (en) 2023-02-28

Family

ID=82635092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210475066.0A Active CN114866514B (en) 2022-04-29 2022-04-29 Multi-user data flow control and processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114866514B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346135A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method, device and system for parallel processing of data flows
CN109347845A (en) * 2018-10-30 2019-02-15 中国科学院信息工程研究所 A kind of information flow method, apparatus and system
CN110287016A (en) * 2019-07-01 2019-09-27 武汉兆格信息技术有限公司 A kind of distribution flow chart Heterogeneous Computing dispatching method
CN113420308A (en) * 2021-07-01 2021-09-21 联芸科技(杭州)有限公司 Data access control method and control system for encryption memory

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103931146B (en) * 2014-01-03 2016-11-16 华为技术有限公司 The method and apparatus that data process
JP6574974B2 (en) * 2015-09-29 2019-09-18 Run.Edge株式会社 Moving picture reproduction apparatus, moving picture distribution server, moving picture reproduction method, moving picture distribution method, moving picture reproduction program, and moving picture distribution program
US11630826B2 (en) * 2020-05-29 2023-04-18 Rn Technologies, Llc Real-time processing of a data stream using a graph-based data model
US11539796B2 (en) * 2020-07-08 2022-12-27 Bank Of America Corporation System for intelligent sensor data transfer and device manipulation leveraging quantum optimization engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346135A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method, device and system for parallel processing of data flows
CN109347845A (en) * 2018-10-30 2019-02-15 中国科学院信息工程研究所 A kind of information flow method, apparatus and system
CN110287016A (en) * 2019-07-01 2019-09-27 武汉兆格信息技术有限公司 A kind of distribution flow chart Heterogeneous Computing dispatching method
CN113420308A (en) * 2021-07-01 2021-09-21 联芸科技(杭州)有限公司 Data access control method and control system for encryption memory

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
支持高并发的Hadoop高性能加密方法研究;金伟,余铭洁,李凤华,杨正坤,耿魁;《通信学报》;20191231;全文 *
面向数据跨域流转的延伸访问控制机制;谢绒娜,郭云川,李凤华,史国振,王亚琼,耿魁;《通信学报》;20190731;全文 *

Also Published As

Publication number Publication date
CN114866514A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
US10924783B2 (en) Video coding method, system and server
KR101882347B1 (en) block chain-based decentralized contents distribution system for IP network and method for the same
US20070274344A1 (en) Method and system for replacing media stream in a communication process of a terminal
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN109688365B (en) Video conference processing method and computer-readable storage medium
CN112165596A (en) Monitoring video data transmission method and device, terminal equipment and storage medium
CN108933801B (en) Method and device for establishing cloud desktop channel and cloud desktop communication
EP3417367B1 (en) Implementing a storage system using a personal user device and a data distribution device
CN112188144B (en) Audio transmission method and device, storage medium and electronic device
US20230208615A1 (en) Online-Streamer Image Model File Transmission in Co-Hosting During Livestreaming
JP2023510822A (en) Point cloud data encapsulation method and transmission method
CN110719526B (en) Video playing method and device
CN109522462A (en) A kind of cloud querying method, device, equipment and storage medium based on block chain
CN113141352B (en) Multimedia data transmission method and device, computer equipment and storage medium
US11431770B2 (en) Method, system, apparatus, and electronic device for managing data streams in a multi-user instant messaging system
CN114866514B (en) Multi-user data flow control and processing method, device, equipment and medium
CN113726801A (en) AB experiment method, device, equipment and medium applied to server
WO2020140616A1 (en) Data encryption method and related device
CN111885351A (en) Screen display method and device, terminal equipment and storage medium
US7844685B2 (en) Apparatus and method for performing contents distribution process
CN110719309B (en) Virtual desktop connection method, proxy device, system, equipment and storage medium
CN114760602A (en) Holographic communication method, device, system and computer readable storage medium
US20230333800A1 (en) Screen projection method and apparatus, electronic device and computer readable storage medium
CN112532534B (en) Data transmission method, device and computer readable storage medium
CN114928641A (en) Data sharing method and device based on cloud application, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant