WO2020078381A1 - Data aggregation method, device, equipment, storage medium and system - Google Patents

Data aggregation method, device, equipment, storage medium and system Download PDF

Info

Publication number
WO2020078381A1
WO2020078381A1 PCT/CN2019/111471 CN2019111471W WO2020078381A1 WO 2020078381 A1 WO2020078381 A1 WO 2020078381A1 CN 2019111471 W CN2019111471 W CN 2019111471W WO 2020078381 A1 WO2020078381 A1 WO 2020078381A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
node
node device
data aggregation
transmission channel
Prior art date
Application number
PCT/CN2019/111471
Other languages
French (fr)
Chinese (zh)
Inventor
王辉
李冰杰
徐志威
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020078381A1 publication Critical patent/WO2020078381A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • This application relates to the field of big data technology, in particular to a data aggregation method, device, equipment, storage medium, and system.
  • the data aggregation system includes at least one collection server and at least one aggregation server.
  • Each collection server is associated with one or more Aggregation server connection.
  • multiple terminal devices are respectively connected to one or more collection servers, and each terminal device can upload the acquired data to the connected collection server, and the collection server classifies the collected data and collects the collected data.
  • the data is sent to the aggregation server, and the aggregation server can store the collected data, realizing the function of aggregating the data on different terminal devices together.
  • the collection server and the aggregation server in the data aggregation system are configured, they cannot be changed and the expansion performance is poor. Even if there are other servers with data collection functions, they cannot be added to the data aggregation system.
  • the embodiments of the present application provide a data aggregation method, device, equipment, storage medium, and system, which can solve the problem that other servers with data collection functions cannot be added to the data aggregation system.
  • the technical solution is as follows:
  • a data aggregation method is provided, which is applied to a control device of a first data aggregation system.
  • the first data aggregation system includes multiple node devices and the control device. Multiple node devices are connected.
  • the method includes:
  • the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, the configuration information includes at least a device identification of an input device and a device identification of an output device
  • the multiple virtual nodes correspond to the multiple node devices in one-to-one correspondence;
  • the starting virtual node corresponding to the starting node device and the destination node device are determined The corresponding destination virtual node;
  • the transmission channel is in order by at least two node devices Connected
  • a data aggregation method is provided, which is applied to any node device in a first data aggregation system.
  • the first data aggregation system includes a plurality of node devices and the control device. To connect with the plurality of node devices, the method includes:
  • the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on
  • the configuration instruction input on the connected configuration device determines that it includes at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local node device;
  • a data aggregation device which is applied to a control device of a first data aggregation system.
  • the first data aggregation system includes a plurality of node devices and the control device. Multiple node devices are connected, and the apparatus includes:
  • An obtaining module configured to obtain configuration information of a plurality of virtual nodes, the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, and the configuration information includes at least a device identifier and an output device of the input device Device identification, the multiple virtual nodes are in one-to-one correspondence with the multiple node devices;
  • the first determining module is configured to, when receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, determine the starting virtual corresponding to the starting node device based on the data aggregation instruction A node and a destination virtual node corresponding to the destination node device;
  • the second determining module is configured to determine a transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is At least two node devices are connected in order;
  • the first sending module is used to deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission to transfer the data of the starting node device Converged into the destination node device.
  • a data aggregation device which is applied to any node device in a first data aggregation system.
  • the first data aggregation system includes a plurality of node devices and the control device.
  • the control devices are respectively Connected to the multiple node devices, the apparatus includes:
  • the receiving module is configured to receive a transmission channel delivered by the control device, and the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on
  • the configuration instruction input on the configuration device connected to the control device is determined to include at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local end Node equipment
  • a first sending module configured to send the data to the local node device in the transmission channel when receiving the data sent by the previous node device of the local node device in the transmission channel The next node device to aggregate the data into the destination node device on the transmission channel.
  • a control device which is applied in a first data aggregation system, where the first data aggregation system includes multiple node devices and the control device, and the control device and the multiple node devices are respectively Connected, the control device includes a processor and a memory, and the memory stores at least one instruction, the at least one instruction is loaded and executed by the processor to implement any one of the data aggregation described in the first aspect above method.
  • a computer-readable storage medium in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement any one of the data aggregation described in the first aspect method.
  • a node device which is applied to a first data aggregation system.
  • the first data aggregation system includes a plurality of node devices and the control device, and the control device and the plurality of node devices are respectively connection;
  • the local node device includes a processor and a memory, where at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement any one of the data aggregation methods described in the second aspect above.
  • a computer-readable storage medium in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement any one of the data aggregation described in the second aspect method.
  • a data aggregation system in a ninth aspect, includes a plurality of node devices and a control device, and the control devices are respectively connected to the plurality of node devices;
  • the control device is the control device as described in the fifth aspect above;
  • Each node device is the node device described in the seventh aspect above.
  • the data aggregation method, apparatus, device, storage medium, and system obtained configuration information of multiple virtual nodes by acquiring configuration information according to the configuration instructions entered on the configuration device, and thus can receive data aggregation
  • determine the starting virtual node and the destination virtual node according to the data aggregation instruction and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node
  • a transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device.
  • the configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system
  • the node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
  • FIG. 1 is a schematic structural diagram of a data aggregation system provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a data aggregation method provided by an embodiment of the present application
  • FIG. 3 is a flowchart of another data aggregation method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a node device performing monitoring tasks provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of yet another node device buffer area provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another data aggregation scenario provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another data aggregation scenario provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a data aggregation device provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of another data aggregation device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the implementation environment includes a configuration device 110 and a first data aggregation system 120.
  • the first data aggregation system 120 includes multiple node devices 121 and
  • the control device 122 and the configuration device 110 are connected to the control device 122, and the control device 122 is connected to a plurality of node devices 121, respectively.
  • any two node devices in the plurality of node devices 121 can be connected, so that a network topology structure is formed in the plurality of node devices 121, and based on the network topology structure, data can be transmitted between any two node devices. It should be noted that when the above network topology is formed, every two node devices in the plurality of node devices 121 may be connected. Of course, only some node devices may be connected.
  • At least one node device of the plurality of node devices 121 may be a collection device, and the collection device has a data collection function for collecting data from the terminal device.
  • at least one node device is an aggregation device.
  • the aggregation device has a data aggregation function, and the data collected by the collection device can be aggregated and stored in the storage device.
  • at least one node device is an intermediate device.
  • the intermediate device has a data forwarding function. During the process of sending data from the collection device to the aggregation device, the intermediate device can play the role of forwarding data.
  • the configuration device 110 is used to generate configuration information of a plurality of virtual nodes according to the received configuration instruction, and send the generated configuration information to the control device 122, and the control device 122 is used to obtain the configuration information of the plurality of virtual nodes from the configuration device 110 .
  • the multiple virtual nodes correspond to the multiple node devices 121 in one-to-one relationship.
  • the virtual nodes are the nodes mapped by the node devices in the configuration information.
  • the configuration information of the virtual nodes is actually information used to describe the node devices.
  • the starting node device is used to send a data aggregation instruction to the control device 122, and the data aggregation instruction carries the device identification of the starting node device And the device identification of the destination node device.
  • the control device 122 is also used to determine the starting virtual node corresponding to the starting node device and the destination virtual node corresponding to the destination node device when receiving the data aggregation instruction, and based on the configuration information of the plurality of virtual nodes and each virtual node
  • the corresponding node device determines a transmission channel from the starting node device to the destination node device, and the transmission channel is formed by connecting at least two node devices in sequence. After that, the control device 122 delivers the transmission channel to each node device on the transmission channel.
  • the starting node device is used to send the data in the local node device to the next node device of the local node device in the transmission channel when receiving the transmission channel; the destination node device is used to receive the transmission channel and receive When data sent to the previous node device of the local node device is stored, the data is stored.
  • the other node devices serve as intermediate node devices for receiving the transmission channel and receiving the local node device
  • the data sent by the last node device of the server is sent, the data is sent to the next node device in the transmission channel of the local node device to converge the data to the destination node device on the transmission channel.
  • the first data aggregation system 120 further includes multiple storage devices, the storage device is used to store data during the data aggregation process, and the input device of the node device refers to the storage device previously connected to the node device , The output device of the node device refers to the storage device connected after the node device, then the two adjacent node devices in the transmission channel are connected through the storage device, that is to say, the output device of the previous node device and the latter node The input device of the device is the same storage device.
  • each node device can output data to the connected storage device, store the data in the storage device, and send the data to the next node device by the storage device. Realize data storage to prevent data loss.
  • FIG. 2 is a flowchart of a data aggregation method provided by an embodiment of the present application, which is applied to the control device of the embodiment shown in FIG. 1. Referring to Figure 2, the method includes the following steps:
  • Step 201 Obtain configuration information of multiple virtual nodes.
  • the configuration information is determined according to configuration instructions entered on the configuration device.
  • the configuration information includes at least the device identification of the input device and the device identification of the output device. Multiple node devices correspond to each other.
  • Step 202 When receiving the data aggregation instruction including the device identification of the device identifier of the starting node device and the device identification of the destination node device, based on the data aggregation instruction, determine the starting virtual node and the destination node corresponding to the starting node device The target virtual node corresponding to the device.
  • Step 203 Determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is formed by connecting at least two node devices in order .
  • Step 204 Deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and converges the data of the starting node device to the destination node device.
  • the control device obtains the configuration information of multiple virtual nodes, and the configuration information is determined according to the configuration instruction input on the configuration device, so the data aggregation instruction can be received
  • determine the starting virtual node and the destination virtual node according to the data aggregation instruction and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node,
  • the transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device.
  • the configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system
  • the node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
  • FIG. 3 is a flowchart of another data aggregation method provided by an embodiment of the present application, which is applied to any node device in the embodiment shown in FIG. 1. Referring to FIG. 3, the method includes the following steps:
  • Step 301 Receive a transmission channel delivered by the control device.
  • the transmission channel is determined by the control device according to the configuration information of multiple virtual nodes and the node device corresponding to each virtual node.
  • the configuration information includes at least the device identification and output device of the input device Device identification, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local node device.
  • Step 302 When receiving the data sent by the previous node device of the local node device in the transmission channel, send the data to the next node device of the local node device in the transmission channel to aggregate the data to the transmission In the destination node device on the channel.
  • any node device receives the transmission channel delivered by the control device, and when receiving the data sent by the previous node device in the transmission channel of the local node device, Send the data to the next node device in the transmission channel of the local node device to converge the data to the destination node device on the transmission channel.
  • the configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information and sends it to each node device in the transmission channel.
  • Any node device can be based on the transmission channel Data aggregation is performed, so configuration information can be updated according to business requirements, thereby changing node devices in the data aggregation system, expanding the business capabilities of the data aggregation system, and increasing flexibility.
  • FIG. 4 is a flowchart of another data aggregation method provided by an embodiment of the present application, which is applied to the implementation environment of the embodiment shown in FIG. 1. Referring to Figure 4, the method includes the following steps:
  • Step 401 The configuration device generates system configuration information according to the received configuration instruction.
  • the configuration device may display an input interface, and a technician inputs a configuration instruction carrying configuration information in the input interface.
  • the configuration device receives the configuration instruction, the system configuration information is generated according to the configuration information in the configuration instruction.
  • the system configuration information includes configuration information of multiple virtual nodes, which are used to describe multiple virtual nodes.
  • the multiple virtual nodes correspond to multiple node devices in the first data aggregation system, and the virtual nodes are nodes.
  • the node to which the device is mapped in the configuration information, and the configuration information of the virtual node is actually used to describe the node device.
  • the configuration information of the virtual node includes at least the device identification of the node device corresponding to the virtual node, the device identification of at least one input device, and the device identification of at least one output device.
  • the input device is a node device that inputs data to the node device corresponding to the virtual node. That is, the previous node device of the node device corresponding to the virtual node, and the output device refers to the node device that receives the data output by the node device corresponding to the virtual node, that is, the next node of the node device corresponding to the virtual node device. Therefore, the configuration information may at least represent at least one node device before or after the node device corresponding to the virtual node.
  • the statistics of the configuration information of the multiple virtual nodes in the system configuration information it can be determined which node devices are included in the first data aggregation system and which node devices are connected before or after each node device.
  • the input device is a storage device that inputs data to the node device corresponding to the virtual node, that is, the storage device connected to the node device corresponding to the virtual node, and output
  • the device refers to a storage device that receives data output by a node device corresponding to the virtual node, that is, a storage device connected after the node device corresponding to the virtual node. Therefore, the configuration information may at least represent at least one storage device before or after the node device corresponding to the virtual node.
  • the device identifier of the input device and the device identifier of the output device in the configuration information are the from end and the to end of the virtual node.
  • the device identifier of the input device of the virtual node node_1 is kafka_1
  • the device identifier of the output device is file_1.
  • each virtual node can have multiple from and to ends.
  • the device identifiers of the input devices in the virtual node node_2 are file_1 and file_2, and the device identifier of the output device is file_1.
  • the other virtual nodes are similar to the aforementioned virtual nodes similar to node_1 and node_2, and will not be elaborated here.
  • the device identifier of the node device is used to determine a unique corresponding node device, and may be the network address, device name, and device number of the node device, such as node device 1, node device 2, and so on.
  • the device identifier of the above storage device is used to determine the unique corresponding storage device, and may be the network address, device name, and device number of the storage device, such as kafka_1, file_1, ftp_1, and so on.
  • the configuration information of the virtual node may also include attribute information of the input device and the output device.
  • the attribute information is determined by the type of data stored by the input device and the output device, and the specific content of the attribute information is passed by the technical Enter the configuration command to configure.
  • the attribute information may be information required by kafka, such as topic (data topic), group.id (queue address).
  • the attribute information may include information required by file such as the directory location (localDir) where the file is stored.
  • the attribute information may include the host name (hostname), the port (port), the storage path (path), and the FTP service username ( username) and password (password), etc.
  • the above data type may also be other data types, and the above attribute information may also include information of other attributes, which is not limited in this embodiment of the present application.
  • the configuration instructions that generate the system configuration information can be as follows:
  • the configuration information of the virtual node further includes a data processing chain, and the data processing chain is used to specify at least one data processing mode when the corresponding node device receives the data to be transmitted.
  • the data processing chain includes at least one processing method, and the at least one processing method is arranged in order.
  • the processing methods in the data processing chain are sequentially used for data processing in order.
  • any node device can filter the received data, by configuring the PROCESS_FILTER process and the corresponding filtering conditions in the virtual node corresponding to the node device, so that the node will filter according to the configured processing method when receiving the data Actions.
  • the configuration device provides a special data processing interface.
  • the processing process including multiple data processing methods customized by the technician can be received through the interface Package, put the process package into the data processing library of the configuration device.
  • the technician can enter the configuration instructions in the configuration device as required to configure the required virtual node to call the process The instruction of any processing method of the package, so that during the aggregation process, the node device corresponding to the virtual node can perform data processing on the aggregated data according to the specified processing method according to the needs of the technician, and realize the custom node device of the technician Data processing method, which can expand the data processing capacity of the node equipment, more in line with the needs of technical staff.
  • the configuration instructions for configuring the processing mode in the data processing chain of a virtual node can be as follows:
  • the data processing methods configured in the above example are to filter the data, convert the data, and call a custom processing method (customize).
  • filtering and conversion are the capabilities of the data processing method originally provided by the node device corresponding to the virtual node
  • the custom processing method is configured by the technician through the data processing interface, that is, the technician expands the node device corresponding to the virtual node Treatment.
  • the data can be directly filtered according to the configuration instructions in the above example.
  • the technician needs to provide a data structure description file (schema.yml) of the data.
  • the description file is used to describe the format of the data to be converted this time, and a description file of the converted data format is also required (XXX.xls).
  • the current data structure description file for the data can be as follows:
  • mapping relationship of format conversion can be obtained according to any description file. For example, as shown in Table 1 below:
  • Table 1 is only an exemplary format conversion mapping relationship provided by the embodiment of the present application, and may also be other mapping relationships, which are not limited in the embodiment of the present application.
  • a new node device may be added, and the new node device is connected to any two original node devices in the first data aggregation system, and the Enter the configuration instruction on the device, add the configuration information of the virtual node corresponding to the new node device, and set the device identifiers of the input device and output device of the virtual node corresponding to the new node device to the device identifiers of the two node devices In order to add the virtual node corresponding to the new node device to the virtual topology network, so as to add a new node device in the first data aggregation system.
  • any idle node device may be removed. Specifically, the idle node device may be removed. Connection of other node devices, then remove the idle node device, and delete the configuration information of the virtual node corresponding to the idle node device by inputting a configuration instruction on the configuration device.
  • the node devices may be connected through a storage device, that is, the input device and the output device of each node device are storage devices.
  • a new node device may be added, and the new node device is connected to two storage devices that have not established a connection through the node device, and through the configuration device Enter the configuration instruction, add the configuration information of the virtual node corresponding to the new node device, and set the device identifiers of the input device and output device of the virtual node corresponding to the new node device to the device identifiers of the two storage devices, respectively, to The virtual node corresponding to the new node device is added to the virtual topology network, so that a new node device is added to the first data aggregation system.
  • any idle node device may be removed.
  • the idle node device may be The connection between the two storage devices of the device and the output device is removed, and then the node device is removed, and the configuration information of the virtual node corresponding to the idle node device is deleted by entering a configuration instruction on the configuration device.
  • a technician can input the above configuration instructions on the configuration device to configure any desired virtual node, so that the node device included in the first data aggregation system can be expanded, Add new node equipment for data aggregation to achieve personalized configuration. It is also possible to delete unnecessary virtual nodes, remove idle node devices in the first data aggregation system, and avoid waste of resources.
  • the system configuration information may be in the form of a configuration file.
  • the configuration device When the configuration device generates configuration information of multiple virtual nodes according to the input configuration instruction, the configuration information of the multiple virtual nodes is encapsulated to obtain the system configuration in the form of a configuration file
  • the information can be obtained by parsing the system configuration information to obtain the configuration information of multiple virtual nodes.
  • Step 402 The configuration device sends system configuration information to the control device.
  • the configuration device is connected to the control device.
  • the specific connection method may be that the configuration device and the control device are connected through a network or other connection methods, which is not limited in this embodiment of the present application.
  • the configuration device can directly send the system configuration information to the control device, or it can store the system configuration information and send the system configuration information to the control device when receiving the acquisition request sent by the control device.
  • Step 403 The control device receives system configuration information, analyzes the system configuration information, and obtains configuration information of multiple virtual nodes.
  • Step 404 The starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the starting node device and the device identifier of the destination node device.
  • the starting node device may be any node device in the first data aggregation system.
  • the starting node device may be a collection device in the first data aggregation system, which is specifically used to collect data and aggregate the data into the aggregation device.
  • the starting node device When the starting node device needs to aggregate data into other node devices, it can send a data aggregation instruction to the control device. Since the control device needs to determine the starting point and the ending point of data aggregation, the transmission channel can be subsequently determined for data aggregation. Therefore, when the starting node device sends the data aggregation instruction, the device identification of the starting node device and the device identifier of the destination node device need to be carried in the data aggregation instruction and sent to the control device.
  • Step 405 When the control device receives the data aggregation instruction, based on the data aggregation instruction, the starting virtual node corresponding to the starting node device and the destination virtual node corresponding to the destination node device are determined.
  • the virtual node device identifier is the same as the device identifier of the starting node device.
  • the node is used as the starting virtual node, and the virtual node with the same node device ID as that of the destination node device is used as the destination virtual node.
  • Step 406 The control device determines the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, and delivers to each node device on the transmission channel A transmission channel, which is formed by connecting at least two node devices in sequence.
  • the device of the output device of one of the virtual nodes After acquiring configuration information of multiple virtual nodes and before receiving a data aggregation instruction, for any two virtual nodes of the multiple virtual nodes, the device of the output device of one of the virtual nodes When the identifier is the same as the device identifier of the input device of another virtual node, connect any two virtual nodes to obtain a virtual topology structure, the virtual topology structure is composed of the multiple virtual node connections, and the virtual topology structure is used for description The connection relationship of the multiple node devices.
  • each virtual node can include the device identification of multiple input devices and the device identification of output devices, after the virtual nodes are connected in the above manner, the resulting virtual topology structure will be a structure in which multiple virtual nodes are connected to each other.
  • the structure can be mapped to the connection relationship between multiple node devices.
  • control device when the control device receives the data aggregation instruction, in the virtual topology, it looks for the virtual transmission channel from the starting virtual node to the destination virtual node; according to the node device corresponding to each virtual node on the virtual transmission channel, determine from The transmission channel from the starting node device to the destination node device.
  • the transmission channel may be a channel in which the device identifiers of multiple node devices are arranged in order.
  • the transmission channel may be multiple. Assuming that the starting virtual node is node_1 and the destination virtual node is node_4, then if node_1 in the virtual topology Connected to node_2, node_3 and node_4 respectively, node_2 is connected to node_3 and node_4, then the virtual transmission channel obtained by the control device may include node_1-> node_2-> node_4, node_1-> node_4; node_1-> node_2-> node_3-> node_4, node_1-> node_3-> node_4 etc.
  • the control device may determine the device identification of the input device and the output device of each virtual node from the configuration information of multiple virtual nodes,
  • the devices corresponding to the two device identifiers are the storage device between the node device corresponding to the virtual node and the previous node device, and the storage device connected to the next node device corresponding to the virtual node, so that the starting node can be determined
  • the device reaches the transmission channel of the destination node device, and then the transmission channel is delivered to each node device in the transmission channel, and the transmission channel includes not only multiple node devices arranged in sequence, but also any two node devices Between storage devices, so that when each node device sends data to the next node device, it can first send the data to the corresponding storage device, and then the corresponding storage device to the next node device.
  • control device may deliver the transmission channel and the monitoring task to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and monitors the data transmission process at the local end.
  • the control device sends the data transmission result.
  • Step 407 When the starting node device receives the transmission channel delivered by the control device, it sends the data of the starting node device to the next node device in the transmission channel of the starting node device.
  • the control device delivers the transmission channel
  • the starting node device receives multiple transmission channels, it can obtain the load of each transmission channel from the control device, and then according to the amount of data to be transmitted
  • Determine the data volume of each transmission channel distribute the data according to the data volume of each transmission channel, and send each distributed data to the storage device between the starting node device and the next node device in the corresponding transmission channel.
  • Sent to the next node device of the starting node device in the transmission channel so as to separately transmit through multiple transmission channels. In this way, the transmission pressure of each transmission channel can be reduced, thereby improving the efficiency of data aggregation.
  • the starting node device can also carry the data amount of the data to be transmitted in the data aggregation instruction and send it to the control device.
  • the control device determines multiple transmission channels and each transmission channel in a manner similar to the above When the determined transmission channel is delivered to the starting node device, the data amount of each transmission channel is sent to the starting node device at the same time.
  • the starting node device is directly allocated according to the data amount of each transmission channel Data, send the distributed data to the next node device of the starting node device in each transmission channel.
  • the determined at least one transmission channel is overloaded, or the transmission capacity is limited to meet this data aggregation, you can customize it in the configuration information to directly increase the connection relationship between the two unconnected virtual nodes Or, you can add node devices and configure the configuration information of the corresponding virtual nodes to add new node devices to the data aggregation system to expand the transmission channel, so as to expand the capacity of the data aggregation system and enhance the efficiency of data aggregation.
  • Step 408 The other node device receives the transmission channel delivered by the control device, and when receiving the data sent by the previous node device of the local node device in the transmission channel, sends the data to the local node device in the transmission channel The next node device.
  • the other node devices are node devices other than the start node device and the destination node device among the node devices on the transmission channel.
  • each node device is provided with a buffer, and the buffer stores the data to be processed transmitted by the previous node device of the local node device in the form of a buffer queue.
  • the buffer queue processes the stored data in order, when the processing is completed, the data will be removed from the buffer queue, thereby ensuring the available space of the buffer queue.
  • a suspension notification message can be sent to the previous node device of the local node device in the transmission channel to remind the previous node device to suspend The end node device sends data.
  • the buffer queue can send a recovery notification message to the next node device to enable the previous node device to restart transmitting data to the local node device.
  • any node device when any node device receives the monitoring task issued by the control device, it can monitor its own data transmission in real time, and generate data transmission every preset time according to the real-time monitored data transmission The result is sent to the control device.
  • the control device can obtain the overall transmission status of each transmission channel according to each measurement report, so as to uniformly manage and control each transmission channel during the transmission process.
  • the measurement report may be the above data transmission result, or may be obtained by processing multiple data transmission results of the transmission channel, for example, may include the average data transmission speed and average calculated from the multiple data transmission results of the transmission channel The amount of cached data, etc.
  • the virtual transmission channel is node_1-> node_2-> node_3, then when the node devices 1, node device 2, and node device 3 corresponding to these three virtual nodes perform data transmission, each node device can be timed Detect the remaining space of the current buffer area, the speed of data processing and the total number of processed data, etc., and then generate a data transmission result and send it to the control device.
  • control device When the control device receives the data transmission result uploaded by each node device of any transmission channel, it can calculate the average data transmission speed and average buffered data amount of the transmission channel according to the multiple data transmission results of the transmission channel.
  • the control device When the data transmission speed of the channel is higher than the preset speed value for a long time, or when the average buffered data volume of the transmission channel is higher than the preset data volume for a long time, an abnormal alarm may be issued to prompt the technician to process.
  • control device when the control device receives the data transmission result uploaded by each node device of any transmission channel, it can determine the operating state of each node device of the transmission channel according to the multiple data transmission results of the transmission channel. The running state of the node device determines whether the node device needs to be restarted. If any node device needs to be restarted, the control device can send a start command to the node device to restart the node device for normal data transmission.
  • control device can also perform other operations based on the received data transmission results sent by each node device, for example, when the control device determines that any node device is currently inoperable and cannot be restarted, it can perform Abnormal alarm to prompt technicians to check for abnormal problems and maintain multiple node devices in the data aggregation system.
  • Step 409 The destination node device receives the transmission channel delivered by the control device, and stores the data when the destination node device receives the data sent by the previous node device in the transmission channel.
  • the destination node device when the destination node device receives the data, the data is stored in the output device of the destination node device, that is, the storage device connected to the destination node device.
  • the input device and the output device of any node device are storage devices, and storage devices that store the same data type are connected to each other, and data sharing can be performed.
  • the transmission channel can be multiple, and the control device can send the amount of data to be transmitted to the destination node device when sending the transmission channel. If the storage capacity of the output device of the destination node device is limited, the data cannot be completely stored. When receiving data, the node device can forward part of the data that the output device of the destination node device cannot load, through the output device, to other storage devices of the data type stored with the output device, thereby solving the output of the destination node device The problem of limited storage capacity of equipment.
  • the control device when the control device receives the data aggregation instruction sent by the starting node device, the data aggregation instruction includes the device identification of the starting node device, the device identification of the destination node device, and the data of the data to be transmitted
  • the storage capacity of the output device can be obtained from the destination node device according to the device identifier of the destination node device.
  • At least one output device of the same data type as the output device can be determined, and the node device connected to these output devices can also be used as the destination node device, based on the starting node device and multiple purposes
  • the node device determines multiple transmission channels to send the same type of data to different storage devices for storage through the multiple transmission channels, so as to forward part of the data that the output device of the destination node device cannot load to the
  • the other storage device of the data type stored by the output device solves the problem of limited storage capacity of the output device of the destination node device, and achieves an effect similar to the above-mentioned possible implementation manner.
  • the control device obtains the configuration information of a plurality of virtual nodes, the configuration information is determined according to the configuration instruction input on the configuration device, so that when the data aggregation instruction is received, the data aggregation The instruction determines the starting virtual node and the destination virtual node, and determines the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, and finally to the transmission channel
  • Each node device sends a transmission channel, and any node device receives the transmission channel sent by the control device. When receiving the data sent by the previous node device in the transmission channel of the local node device, the data is sent to this node.
  • the end node device is the next node device in the transmission channel to aggregate the data to the destination node device on the transmission channel.
  • the configuration information can be customized through the input configuration command, so that the control device determines the transmission channel according to the configuration information customized by the technician, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to business needs, thereby Changing the node equipment in the data aggregation system expands the business capabilities of the data aggregation system and improves flexibility.
  • FIG. 7 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present disclosure.
  • the start node device and the destination node device are both located in the first data aggregation system, and the method shown in the embodiment shown in FIG. 4 can be used. Converge the data of the starting node device to the destination node device.
  • the starting node device is located in the first data aggregation system
  • the destination node device is located in the second data aggregation system
  • the first data aggregation system is The two data aggregation systems are in different networks, and the first data aggregation system is connected to the second port equipment of the second data aggregation system through the first port equipment.
  • the second data aggregation system includes multiple node devices and control devices.
  • the transmission channel between the originating node device and the destination node device is restricted, and it must pass through the first port device and the second port device to send data from the first data aggregation system to the second data aggregation system. That is, the data transmission process includes the process of sending data from the starting node device to the first port device, from the first port device to the second port device, and sending the data from the second port device to the destination node device process.
  • steps 404-408 may specifically include the following steps:
  • Step 801 In the first data aggregation system, the starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identification of the starting node device and the device identification of the destination node device.
  • Step 802 When the control device receives the data aggregation instruction, the destination node device in the data aggregation instruction is changed to the first port device to determine the arrival of the first node device from the starting node device based on the modified data aggregation instruction The transmission channel of the first node device data is first aggregated into the first port device.
  • Step 802 After receiving the data of the starting node device, the first port device sends the data to the second port device of the second data aggregation system.
  • Step 804 In the second data aggregation system, the second port device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identification of the second port device and the device identification of the destination node device.
  • Step 805 When the control device receives the data aggregation instruction, based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
  • the control device in the second data aggregation system determines the configuration information of multiple virtual nodes and determines the transmission channel based on the data aggregation instruction, and the process of data transmission by multiple node devices on the transmission channel is the same as that shown in FIG. The method embodiments are similar and will not be repeated here.
  • the initial node device to send data is the node device in the second data aggregation system
  • the destination node device is the node device in the first data aggregation system
  • the first data aggregation system passes the The one-port device is connected to the second-port device of the second data aggregation system.
  • the data is sent to the starting node device to send the data aggregation instruction carrying the device identification of the starting node device and the device identification of the destination node device to the control device, when the control device receives the In the data aggregation instruction, the destination node device in the data aggregation instruction is changed to the second port device to determine the transmission channel from the starting node device to the second port device based on the changed data aggregation instruction, and the starting node device
  • the data of is first aggregated into the second port device, and the data is sent from the second port device to the first port device of the first data aggregation system.
  • the first port device sends a data aggregation instruction to the control device, the data aggregation instruction carries the device identification of the first port device and the device identification of the destination node device; when the control device receives the data aggregation instruction Based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
  • the first data aggregation system and the second data aggregation system can access each other through the first port device and the second port device to perform data transmission.
  • data can be aggregated from the first data aggregation system to the second data system, or data can be aggregated from the second data aggregation system to the first data aggregation system.
  • the first data aggregation system and the second data aggregation system in different networks may be restricted to only one-sided access, for example, data can be aggregated from the first data aggregation system to the second data System, but the data cannot be aggregated from the second data aggregation system to the first data aggregation system; or the data can be aggregated from the second data aggregation system to the first data system, but the data cannot be aggregated from the first data aggregation system to the first 2.
  • Data aggregation system At this time, the data in the data aggregation system that is allowed to be accessed can be aggregated into another data aggregation system according to the allowed access direction.
  • FIG. 9 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present disclosure.
  • the starting node device is located in the first data aggregation system
  • the destination node device is located in the second data aggregation system
  • the first data aggregation system and the second The data aggregation system is in a different network
  • the first data aggregation system and the second data aggregation system are in a network isolation state.
  • the second data aggregation system includes multiple node devices and control devices.
  • the transmission channel between the start node device and the destination node device is restricted, and cross-network transmission must be performed through the gatekeeper device to send data from the first data aggregation system to the second data aggregation system. That is, the data transmission process includes the process of sending data from the starting node device to the gatekeeper device, and sending the data from the gatekeeper device to the destination node device.
  • steps 404-408 may specifically include the following steps:
  • Step 901 In the first data aggregation system, the starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the starting node device and the device identifier of the destination node device.
  • Step 902 When the control device receives the data aggregation instruction, the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission from the starting node device to the gatekeeper device based on the changed data aggregation instruction Channel, the data of the starting node device is first aggregated to the gatekeeper device.
  • Step 903 In the second data aggregation system, the gatekeeper device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the gatekeeper device and the device identifier of the destination node device.
  • Step 904 When the control device receives the data aggregation instruction, based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
  • the control device in the second data aggregation system determines the configuration information of multiple virtual nodes and determines the transmission channel based on the data aggregation instruction, and the process of data transmission by multiple node devices on the transmission channel is the same as that shown in FIG. 4 above The method embodiments are similar and will not be repeated here.
  • the starting node device that first sends data is the node device in the second data aggregation system
  • the destination node device is the node device in the first data aggregation system
  • the first data aggregation system passes the network
  • the gate device is isolated from the second data aggregation system.
  • the starting node device that first sends data sends a data aggregation instruction carrying the device identifier of the starting node device and the device identifier of the destination node device to the control device; when the control device receives
  • the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction
  • the data is first aggregated into the gatekeeper device.
  • the gatekeeper device sends a data aggregation instruction to the control device, the data aggregation instruction carries the device identifier of the gatekeeper device and the device identifier of the destination node device; when the control device receives the data aggregation instruction, based on The data aggregation instruction aggregates the data of the gatekeeper device to the destination node device.
  • the first data aggregation system and the second data aggregation system can perform data transmission with each other through the gatekeeper device.
  • data can be aggregated from the first data aggregation system to the second data system, or data can be aggregated from the second data aggregation system to the first data aggregation system.
  • the data aggregation method provided by the embodiments of the present application can be applied to the above-mentioned several different data aggregation scenarios, which can realize the data aggregation of the starting node device and the destination node device in different networks, providing more diversification
  • the aggregation method can meet the data aggregation requirements in different scenarios and enhance the ability of the data aggregation system.
  • FIG. 10 is a schematic structural diagram of a data aggregation device provided by an embodiment of the present application. Referring to FIG. 10, it is applied to the implementation environment of the embodiment shown in FIG.
  • the apparatus includes: an acquisition module 1001, a first determination module 1002, a second determination module 1003, and a first sending module 1004.
  • the obtaining module 1001 is configured to obtain configuration information of a plurality of virtual nodes.
  • the configuration information is determined according to a configuration instruction input on a configuration device.
  • the configuration information includes at least a device identifier of an input device and a device identifier of an output device. There is a one-to-one correspondence between the nodes and the multiple node devices;
  • the first determining module 1002 is configured to, when receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, determine the starting virtual node corresponding to the starting node device based on the data aggregation instruction and The destination virtual node corresponding to the destination node device;
  • the second determining module 1003 is configured to determine a transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is composed of at least two node devices Connected in order;
  • the first sending module 1004 is configured to deliver a transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates data of the starting node device to the destination node device.
  • the device further includes:
  • the connection module is used for any two virtual nodes among the plurality of virtual nodes, when the device identifier of the output device of one virtual node is the same as the device identifier of the input device of the other virtual node, the two virtual nodes Node connection to obtain a virtual topology structure, the virtual topology structure is composed of the connection of the plurality of virtual nodes, and the virtual topology structure is used to describe the connection relationship of the plurality of node devices;
  • the second determination module 1003 includes:
  • Find submodule used to find the virtual transmission channel from the starting virtual node to the destination virtual node in the virtual topology
  • the determination submodule is used to determine the transmission channel from the starting node device to the destination node device according to the node device corresponding to each virtual node on the virtual transmission channel.
  • the first sending module 1004 includes:
  • the sending submodule is used to deliver the transmission channel and monitoring tasks to each node device on the transmission channel.
  • Each node device on the transmission channel performs data transmission, monitors the data transmission process at the local end, and sends it to the control device Data transfer results.
  • the configuration information further includes a data processing chain, which is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; the apparatus further includes:
  • the second sending module is used to send the data processing chain of the corresponding virtual node to each node device, so that each node device adopts the data processing method in the data processing chain to receive the data to be transmitted Be processed.
  • the device further includes:
  • the first modification module is used when the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the first port device and the first
  • the device identification of the destination node device in the data aggregation instruction is changed to the device identification of the first port device to determine the arrival from the starting node device based on the changed data aggregation instruction
  • the transmission channel of the first port device aggregates the data of the starting node device into the first port device, and then sends the data to the second port device through the first port device, and then aggregates it into the second data aggregation system through the second port device
  • the destination node device is used when the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the first port device and the first
  • the device further includes:
  • the second modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the first port device and the first When the second port device of the second data aggregation system is connected, it receives the first data aggregation instruction sent by the first port device, and the device identifier of the starting node device in the first data aggregation instruction is the device identifier of the first port device;
  • the control device in the second data aggregation system is used to change the device identification of the destination node device to the second port device when receiving the second data aggregation instruction including the device identification of the start node device and the device identification of the destination node device Device identification to determine the transmission channel from the starting node device to the second port device based on the modified data aggregation instruction, and aggregate the data of the starting node device into the second port device, which will be used by the second port device
  • the data is sent to the first port device, and the first port device sends the first data aggregation instruction to the control device in the first data aggregation system.
  • the device further includes:
  • the third modification module is used when the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the gatekeeper device and the second
  • the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction, and the starting node device
  • the data of is first aggregated into the gatekeeper device, and then the data is aggregated to the destination node device in the second data aggregation system through the gatekeeper device.
  • the device further includes:
  • the fourth modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system communicates with the second device through the gatekeeper device.
  • the data aggregation system is isolated, the first data aggregation instruction sent by the gatekeeper device is received, and the device identifier of the starting node device in the first data aggregation instruction is the device identifier of the gatekeeper device;
  • the control device in the second data aggregation system is used to change the device identification of the destination node device to the gatekeeper device when receiving the second data aggregation instruction including the device identification of the start node device and the device identification of the destination node device Device identification, to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction, to aggregate the data of the starting node device into the gatekeeper device, and the gatekeeper device to aggregate the first data
  • the control device in the system sends the first data aggregation instruction.
  • the control device obtains configuration information of multiple virtual nodes, and the configuration information is determined according to the configuration instruction input on the configuration device, so the data aggregation instruction can be received
  • determine the starting virtual node and the destination virtual node according to the data aggregation instruction and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node,
  • the transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device.
  • the configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system
  • the node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
  • FIG. 11 is a schematic structural diagram of another data aggregation device provided by an embodiment of the present application.
  • the device includes: a receiving module 1101 and a first sending module 1102.
  • the receiving module 1101 is configured to receive a transmission channel delivered by the control device.
  • the transmission channel is determined by the control device according to the configuration information of multiple virtual nodes and the node device corresponding to each virtual node.
  • the configuration information is based on the input on the configuration device
  • the configuration instruction determines that at least the device identifier of the input device and the device identifier of the output device are included.
  • the transmission channel is formed by connecting at least two node devices in sequence and includes the local node device;
  • the first sending module 1102 is configured to, when receiving data sent by the previous node device of the local node device in the transmission channel, send the data to the next node device of the local node device in the transmission channel, so as to This data is aggregated into the destination node device on the transmission channel.
  • the configuration information further includes a data processing chain, which is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted;
  • the first sending module 1102 includes:
  • the processing sub-module is used to process the data by using the data processing method in the data processing chain when receiving the data;
  • the sending submodule is used to send the processed data to the next node device in the transmission channel of the local node device.
  • the device further includes:
  • the second sending module is used to send a data aggregation instruction to the control device, where the data aggregation instruction includes the device identification of the starting node device and the device identification of the destination node device, and the starting node device is the local node device, so that the control device Determine the transmission channel from the local node device to the destination node device.
  • the device further includes:
  • the storage module is used for storing the data when the local node device is the destination node device in the transmission channel when it receives the data sent by the previous node device in the transmission channel of the local node device.
  • any node device receives the transmission channel delivered by the control device.
  • the configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information and sends it to each node device in the transmission channel.
  • Any node device can be based on the transmission channel Data aggregation is performed, so configuration information can be updated according to business requirements, thereby changing node devices in the data aggregation system, expanding the business capabilities of the data aggregation system, and increasing flexibility.
  • the data aggregation device provided in the above embodiment performs data aggregation
  • only the above-mentioned division of each functional module is used as an example for illustration.
  • the above-mentioned functions may be allocated by different functional modules according to needs. That is, the internal structure of the control device and the node device is divided into different functional modules to complete all or part of the functions described above.
  • the data aggregation device and the data aggregation method embodiment provided in the above embodiments belong to the same concept. For the specific implementation process, see the method embodiment, and details are not described here.
  • FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 1200 may have a relatively large difference due to different configurations or performances, and may include one or more than one central processing unit (CPU) 1201 and one Or more than one memory 1202, wherein at least one instruction is stored in the memory 1202, and the at least one instruction is loaded and executed by the processor 1201.
  • the server 1200 may also have components such as a wired or wireless network interface, a keyboard, and an input-output interface for input and output.
  • the server 1200 may also include other components for implementing device functions, which will not be repeated here.
  • the server 1200 is used to perform the operations performed by the control device or the node device in the above data aggregation method.
  • a computer-readable storage medium is also provided, for example, a memory including instructions that can be executed by the processor in the terminal or server to complete the data aggregation method in the above embodiments.
  • the computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, or the like.
  • the program may be stored in a computer-readable storage medium.
  • the mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application belongs to the technical field of big data, and disclosed thereby are a data aggregation method, device, equipment, storage medium and system. The method is applied to control equipment of a first data aggregation system, the method comprising: obtaining configuration information of a plurality of virtual nodes; according to a received data aggregation instruction, determining a starting virtual node and a destination virtual node, and according to the configuration information of the plurality of virtual nodes and node equipment corresponding to each virtual node, determining a transmission channel from the starting node equipment to the destination node equipment, distributing the transmission channel to each node equipment of the transmission channel, carrying out data transmission by means of each node equipment on the transmission channel, and aggregating data of the starting node equipment into the destination node equipment. Thus, configuration information can be customized by the means of inputted configuration instructions. The configuration information can be updated according to service requirements, so as to change the node equipment in the data aggregation system, expand the service capabilities of the data aggregation system, and improve flexibility.

Description

数据汇聚方法、装置、设备、存储介质和系统Data aggregation method, device, equipment, storage medium and system
本申请要求于2018年10月16日提交的申请号为201811205313.5、发明名称为“数据汇聚方法、装置、设备、存储介质和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application with the application number 201811205313.5 and the invention titled "Data Convergence Method, Device, Equipment, Storage Media, and System" filed on October 16, 2018, the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及大数据技术领域,特别涉及一种数据汇聚方法、装置、设备、存储介质和系统。This application relates to the field of big data technology, in particular to a data aggregation method, device, equipment, storage medium, and system.
背景技术Background technique
随着大数据技术的不断发展和网络规模的不断扩大,数据的收集汇聚已成为备受关注的问题。由于在实际的网络中,各个服务器分散部署,导致各个服务器上的数据相互孤立,无法进行统一的数据管理,因此需要将不同服务器上的数据进行汇聚。With the continuous development of big data technology and the continuous expansion of network scale, the collection and aggregation of data has become a matter of great concern. In the actual network, the distributed deployment of each server results in the data on each server being isolated from each other, and unified data management cannot be performed. Therefore, the data on different servers needs to be aggregated.
相关技术提供了一种基于Apache Flume(日志采集)框架进行数据汇聚的方式,在这种方式中,数据汇聚系统中包括至少一个收集服务器和至少一个汇聚服务器,每个收集服务器与一个或多个汇聚服务器连接。并且在每个收集服务器上安装Apache Flume框架的客户端,在每个汇聚服务器上安装Apache Flume框架的汇聚端,这样,收集服务器与汇聚服务器就可以基于Apache Flume框架进行交互。此外,多个终端设备分别与一个或多个收集服务器连接,每个终端设备可以将获取到的数据上传至连接的收集服务器中,由收集服务器对接收到的数据进行分类收集,并将收集到的数据发送给汇聚服务器,汇聚服务器即可存储收集到的数据,实现了将不同终端设备上的数据汇聚在一起的功能。Related technologies provide a method for data aggregation based on the Apache Flume (log collection) framework. In this method, the data aggregation system includes at least one collection server and at least one aggregation server. Each collection server is associated with one or more Aggregation server connection. And install the client of the Apache Flume framework on each collection server, and install the aggregation end of the Apache Flume framework on each aggregation server, so that the collection server and the aggregation server can interact based on the Apache Flume framework. In addition, multiple terminal devices are respectively connected to one or more collection servers, and each terminal device can upload the acquired data to the connected collection server, and the collection server classifies the collected data and collects the collected data. The data is sent to the aggregation server, and the aggregation server can store the collected data, realizing the function of aggregating the data on different terminal devices together.
但是,由于数据汇聚系统中的收集服务器和汇聚服务器配置好以后将无法更改,扩展性能差,即使存在其他具有数据收集功能的服务器,也无法加入到数据汇聚系统中。However, because the collection server and the aggregation server in the data aggregation system are configured, they cannot be changed and the expansion performance is poor. Even if there are other servers with data collection functions, they cannot be added to the data aggregation system.
发明内容Summary of the invention
本申请实施例提供了一种数据汇聚方法、装置、设备、存储介质和系统,可以解决其他具有数据收集功能的服务器无法加入到数据汇聚系统中的问题。所述技术方案如下:The embodiments of the present application provide a data aggregation method, device, equipment, storage medium, and system, which can solve the problem that other servers with data collection functions cannot be added to the data aggregation system. The technical solution is as follows:
第一方面,提供了一种数据汇聚方法,应用于第一数据汇聚系统的控制设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述方法包括:In a first aspect, a data aggregation method is provided, which is applied to a control device of a first data aggregation system. The first data aggregation system includes multiple node devices and the control device. Multiple node devices are connected. The method includes:
获取多个虚拟节点的配置信息,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,所述配置信息至少包括输入设备的设备标识和输出设备的设备标识,所述多个虚拟节点与所述多个节点设备一一对应;Acquiring configuration information of a plurality of virtual nodes, the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, the configuration information includes at least a device identification of an input device and a device identification of an output device The multiple virtual nodes correspond to the multiple node devices in one-to-one correspondence;
当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于所述数据汇聚指令,确定所述起始节点设备对应的起始虚拟节点和所述目的节点设备对应的目的虚拟节点;When receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, based on the data aggregation instruction, the starting virtual node corresponding to the starting node device and the destination node device are determined The corresponding destination virtual node;
根据所述多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道,所述传输通道由至少两个节点设备按照顺序连接而成;According to the configuration information of the plurality of virtual nodes and the node device corresponding to each virtual node, determine a transmission channel from the starting node device to the destination node device, the transmission channel is in order by at least two node devices Connected
向所述传输通道上的每个节点设备下发所述传输通道,由所述传输通道上的每个节点设备进行数据传输,以将所述起始节点设备的数据汇聚到所述目的节点设备中。Deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission to aggregate the data of the starting node device to the destination node device in.
第二方面,提供了一种数据汇聚方法,应用于第一数据汇聚系统中的任一节点设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述方法包括:In a second aspect, a data aggregation method is provided, which is applied to any node device in a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. To connect with the plurality of node devices, the method includes:
接收所述控制设备下发的传输通道,所述传输通道由所述控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,至少包括输入设备的设备标识和输出设备的设备标识,所述传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备;Receiving a transmission channel delivered by the control device, the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on The configuration instruction input on the connected configuration device determines that it includes at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local node device;
当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,将所述数据发送给所述本端节点设备在所述传输通道中的下一个节点设备,以将所述数据汇聚到所述传输通道上的目的节点设备中。When receiving the data sent by the last node device of the local node device on the transmission channel, send the data to the next node device of the local node device on the transmission channel, to Aggregate the data to the destination node device on the transmission channel.
第三方面,提供了一种数据汇聚装置,应用于第一数据汇聚系统的控制设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述装置包括:In a third aspect, a data aggregation device is provided, which is applied to a control device of a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. Multiple node devices are connected, and the apparatus includes:
获取模块,用于获取多个虚拟节点的配置信息,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,所述配置信息至少包括输入设备的设备标识和输出设备的设备标识,所述多个虚拟节点与所述多个节点设备一一对应;An obtaining module, configured to obtain configuration information of a plurality of virtual nodes, the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, and the configuration information includes at least a device identifier and an output device of the input device Device identification, the multiple virtual nodes are in one-to-one correspondence with the multiple node devices;
第一确定模块,用于当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于所述数据汇聚指令,确定所述起始节点设备对应的起始虚拟节点和所述目的节点设备对应的目的虚拟节点;The first determining module is configured to, when receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, determine the starting virtual corresponding to the starting node device based on the data aggregation instruction A node and a destination virtual node corresponding to the destination node device;
第二确定模块,用于根据所述多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道,所述传输通道由至少两个节点设备按照顺序连接而成;The second determining module is configured to determine a transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is At least two node devices are connected in order;
第一发送模块,用于向所述传输通道上的每个节点设备下发所述传输通道,由所述传输通道上的每个节点设备进行数据传输,以将所述起始节点设备的数据汇聚到所述目的节点设备中。The first sending module is used to deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission to transfer the data of the starting node device Converged into the destination node device.
第四方面,提供了一种数据汇聚装置,应用于第一数据汇聚系统中的任一节点设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述装置包括:According to a fourth aspect, a data aggregation device is provided, which is applied to any node device in a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. The control devices are respectively Connected to the multiple node devices, the apparatus includes:
接收模块,用于接收所述控制设备下发的传输通道,所述传输通道由所述控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,至少包括输入设备的设备标识和输出设备的设备标识,所述传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备;The receiving module is configured to receive a transmission channel delivered by the control device, and the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on The configuration instruction input on the configuration device connected to the control device is determined to include at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local end Node equipment
第一发送模块,用于当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,将所述数据发送给所述本端节点设备在所述传输通道中的下一个节点设备,以将所述数据汇聚到所述传输通道上的目的节点设备中。A first sending module, configured to send the data to the local node device in the transmission channel when receiving the data sent by the previous node device of the local node device in the transmission channel The next node device to aggregate the data into the destination node device on the transmission channel.
第五方面,提供了一种控制设备,应用于第一数据汇聚系统中,所述第一 数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述控制设备包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述第一方面所述的任一项数据汇聚方法。According to a fifth aspect, a control device is provided, which is applied in a first data aggregation system, where the first data aggregation system includes multiple node devices and the control device, and the control device and the multiple node devices are respectively Connected, the control device includes a processor and a memory, and the memory stores at least one instruction, the at least one instruction is loaded and executed by the processor to implement any one of the data aggregation described in the first aspect above method.
第六方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现上述第一方面所述的任一项数据汇聚方法。According to a sixth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement any one of the data aggregation described in the first aspect method.
第七方面,提供了一种节点设备,应用于第一数据汇聚系统中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接;According to a seventh aspect, a node device is provided, which is applied to a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device, and the control device and the plurality of node devices are respectively connection;
本端节点设备包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现上述第二方面所述任一项数据汇聚方法。The local node device includes a processor and a memory, where at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement any one of the data aggregation methods described in the second aspect above.
第八方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现上述第二方面所述的任一项数据汇聚方法。According to an eighth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement any one of the data aggregation described in the second aspect method.
第九方面,提供了一种数据汇聚系统,所述数据汇聚系统包括多个节点设备和控制设备,所述控制设备分别与所述多个节点设备连接;In a ninth aspect, a data aggregation system is provided. The data aggregation system includes a plurality of node devices and a control device, and the control devices are respectively connected to the plurality of node devices;
所述控制设备为如上述第五方面所述的控制设备;The control device is the control device as described in the fifth aspect above;
每个节点设备为上述第七方面所述的节点设备。Each node device is the node device described in the seventh aspect above.
本申请实施例提供的数据汇聚方法、装置、设备、存储介质和系统,通过获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,因此可以在接收到数据汇聚指令时,根据数据汇聚指令确定起始虚拟节点和目的虚拟节点,并根据该多个虚拟节点的配置信息和每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,向该传输通道的每个节点设备下发传输通道,由传输通道上的每个节点设备进行数据传输, 将起始节点设备的数据汇聚到目的节点设备中。通过输入的配置指令即可自定义配置信息,以使控制设备根据自定义的配置信息来确定传输通道,通过传输通道进行数据汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。The data aggregation method, apparatus, device, storage medium, and system provided in the embodiments of the present application obtain configuration information of multiple virtual nodes by acquiring configuration information according to the configuration instructions entered on the configuration device, and thus can receive data aggregation When instructing, determine the starting virtual node and the destination virtual node according to the data aggregation instruction, and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node , A transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device. The configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system The node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For a person of ordinary skill in the art, without paying any creative work, other drawings can also be obtained based on these drawings.
图1是本申请实施例提供的一种数据汇聚系统的结构示意图;1 is a schematic structural diagram of a data aggregation system provided by an embodiment of the present application;
图2是本申请实施例提供的一种数据汇聚方法流程图;2 is a flowchart of a data aggregation method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种数据汇聚方法流程图;3 is a flowchart of another data aggregation method provided by an embodiment of the present application;
图4是本申请实施例提供的又一种数据汇聚方法流程图;4 is a flowchart of another data aggregation method provided by an embodiment of the present application;
图5是本申请实施例提供的一种节点设备执行监控任务的示意图;5 is a schematic diagram of a node device performing monitoring tasks provided by an embodiment of the present application;
图6是本申请实施例提供的又一种节点设备缓存区的示意图;6 is a schematic diagram of yet another node device buffer area provided by an embodiment of the present application;
图7是本申请实施例提供的一种数据汇聚场景示意图;7 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present application;
图8是本申请实施例提供的另一种数据汇聚场景示意图;8 is a schematic diagram of another data aggregation scenario provided by an embodiment of the present application;
图9是本申请实施例提供的又一种数据汇聚场景示意图;9 is a schematic diagram of another data aggregation scenario provided by an embodiment of the present application;
图10是本申请实施例提供的一种数据汇聚装置结构示意图;10 is a schematic structural diagram of a data aggregation device provided by an embodiment of the present application;
图11是本申请实施例提供的另一种数据汇聚装置结构示意图;11 is a schematic structural diagram of another data aggregation device provided by an embodiment of the present application;
图12是本申请实施例提供的一种服务器结构示意图。12 is a schematic structural diagram of a server provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。To make the objectives, technical solutions, and advantages of the present application clearer, the following describes the embodiments of the present application in further detail with reference to the accompanying drawings.
为了便于理解,在对本申请实施例进行详细地解释说明之前,先对本申请的实施环境进行介绍。For ease of understanding, before explaining the embodiments of the present application in detail, the implementation environment of the present application is first introduced.
图1是本申请实施例提供的一种实施环境的示意图,参见图1,该实施环境中包括配置设备110和第一数据汇聚系统120,第一数据汇聚系统120中包括多个节点设备121和控制设备122,配置设备110与控制设备122连接,控制设备 122分别与多个节点设备121连接。1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to FIG. 1, the implementation environment includes a configuration device 110 and a first data aggregation system 120. The first data aggregation system 120 includes multiple node devices 121 and The control device 122 and the configuration device 110 are connected to the control device 122, and the control device 122 is connected to a plurality of node devices 121, respectively.
其中,该多个节点设备121中任两个节点设备可以连接,从而在多个节点设备121中构成一种网络拓扑结构,基于该网络拓扑结构,任两个节点设备之间可以传输数据。需要说明的是,在形成上述网络拓扑结构时,该多个节点设备121中每两个节点设备都可以连接,当然,也可以只有部分节点设备连接。Among them, any two node devices in the plurality of node devices 121 can be connected, so that a network topology structure is formed in the plurality of node devices 121, and based on the network topology structure, data can be transmitted between any two node devices. It should be noted that when the above network topology is formed, every two node devices in the plurality of node devices 121 may be connected. Of course, only some node devices may be connected.
该多个节点设备121中的至少一个节点设备可以为收集设备,收集设备具备数据收集功能,用于从终端设备收集数据。另外还有至少一个节点设备为汇聚设备,汇聚设备具有数据汇聚功能,可以将收集设备收集的数据汇聚后存储至存储设备。另外还有至少一个节点设备为中间设备,中间设备具备数据转发功能,在收集设备向汇聚设备发送数据的过程中,中间设备可以起到转发数据的作用。At least one node device of the plurality of node devices 121 may be a collection device, and the collection device has a data collection function for collecting data from the terminal device. In addition, at least one node device is an aggregation device. The aggregation device has a data aggregation function, and the data collected by the collection device can be aggregated and stored in the storage device. In addition, at least one node device is an intermediate device. The intermediate device has a data forwarding function. During the process of sending data from the collection device to the aggregation device, the intermediate device can play the role of forwarding data.
配置设备110用于根据接收到的配置指令生成多个虚拟节点的配置信息,将生成的配置信息发送给控制设备122,控制设备122用于从配置设备110中获取该多个虚拟节点的配置信息。其中,该多个虚拟节点与该多个节点设备121一一对应,虚拟节点为节点设备在配置信息中所映射的节点,虚拟节点的配置信息实际上是用于对节点设备进行描述的信息。The configuration device 110 is used to generate configuration information of a plurality of virtual nodes according to the received configuration instruction, and send the generated configuration information to the control device 122, and the control device 122 is used to obtain the configuration information of the plurality of virtual nodes from the configuration device 110 . The multiple virtual nodes correspond to the multiple node devices 121 in one-to-one relationship. The virtual nodes are the nodes mapped by the node devices in the configuration information. The configuration information of the virtual nodes is actually information used to describe the node devices.
以起始节点设备要向目的节点设备发送数据,将数据汇聚到目的节点设备为例,起始节点设备用于向控制设备122发送数据汇聚指令,该数据汇聚指令携带起始节点设备的设备标识和目的节点设备的设备标识。Taking the starting node device to send data to the destination node device and aggregating the data to the destination node device as an example, the starting node device is used to send a data aggregation instruction to the control device 122, and the data aggregation instruction carries the device identification of the starting node device And the device identification of the destination node device.
控制设备122还用于在接收到数据汇聚指令时,确定起始节点设备对应的起始虚拟节点和目的节点设备对应的目的虚拟节点,并基于该多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,该传输通道由至少两个节点设备按照顺序连接而成。之后,控制设备122向该传输通道上的每个节点设备下发传输通道。The control device 122 is also used to determine the starting virtual node corresponding to the starting node device and the destination virtual node corresponding to the destination node device when receiving the data aggregation instruction, and based on the configuration information of the plurality of virtual nodes and each virtual node The corresponding node device determines a transmission channel from the starting node device to the destination node device, and the transmission channel is formed by connecting at least two node devices in sequence. After that, the control device 122 delivers the transmission channel to each node device on the transmission channel.
起始节点设备用于在接收到该传输通道时,将本端节点设备中的数据发送给传输通道中本端节点设备的下一个节点设备;目的节点设备用于接收该传输通道,并在接收到本端节点设备的上一个节点设备发送的数据时,存储该数据。The starting node device is used to send the data in the local node device to the next node device of the local node device in the transmission channel when receiving the transmission channel; the destination node device is used to receive the transmission channel and receive When data sent to the previous node device of the local node device is stored, the data is stored.
若该传输通道上的节点设备中除起始节点设备和目的节点设备之外,还存在其他节点设备,则其他节点设备作为中间节点设备,用于接收传输通道,并在接收到本端节点设备的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目 的节点设备中。If there are other node devices besides the starting node device and the destination node device in the node device on the transmission channel, the other node devices serve as intermediate node devices for receiving the transmission channel and receiving the local node device When the data sent by the last node device of the server is sent, the data is sent to the next node device in the transmission channel of the local node device to converge the data to the destination node device on the transmission channel.
在另一实施例中,第一数据汇聚系统120还包括多个存储设备,该存储设备用于在数据汇聚的过程中存储数据,且节点设备的输入设备是指该节点设备之前连接的存储设备,节点设备的输出设备是指该节点设备之后连接的存储设备,则传输通道中相邻的两个节点设备之间通过存储设备连接,也即是说前一个节点设备的输出设备与后一个节点设备的输入设备为同一个存储设备。In another embodiment, the first data aggregation system 120 further includes multiple storage devices, the storage device is used to store data during the data aggregation process, and the input device of the node device refers to the storage device previously connected to the node device , The output device of the node device refers to the storage device connected after the node device, then the two adjacent node devices in the transmission channel are connected through the storage device, that is to say, the output device of the previous node device and the latter node The input device of the device is the same storage device.
在数据汇聚过程中,每个节点设备可以将数据输出至连接的存储设备,在存储设备中存储数据,并由存储设备将该数据发送给下一个节点设备,在实现数据转发的过程中还能实现数据存储,防止数据丢失。During the data aggregation process, each node device can output data to the connected storage device, store the data in the storage device, and send the data to the next node device by the storage device. Realize data storage to prevent data loss.
图2是本申请实施例提供的一种数据汇聚方法流程图,应用于图1所示实施例的控制设备中。参见图2,该方法包括如下步骤:FIG. 2 is a flowchart of a data aggregation method provided by an embodiment of the present application, which is applied to the control device of the embodiment shown in FIG. 1. Referring to Figure 2, the method includes the following steps:
步骤201:获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,该配置信息至少包括输入设备的设备标识和输出设备的设备标识,该多个虚拟节点与该多个节点设备一一对应。Step 201: Obtain configuration information of multiple virtual nodes. The configuration information is determined according to configuration instructions entered on the configuration device. The configuration information includes at least the device identification of the input device and the device identification of the output device. Multiple node devices correspond to each other.
步骤202:当接收到包括起始节点设备的设备标识的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于该数据汇聚指令,确定起始节点设备对应的起始虚拟节点和目的节点设备对应的目的虚拟节点。Step 202: When receiving the data aggregation instruction including the device identification of the device identifier of the starting node device and the device identification of the destination node device, based on the data aggregation instruction, determine the starting virtual node and the destination node corresponding to the starting node device The target virtual node corresponding to the device.
步骤203:根据该多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,该传输通道由至少两个节点设备按照顺序连接而成。Step 203: Determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is formed by connecting at least two node devices in order .
步骤204:向传输通道上的每个节点设备下发传输通道,由传输通道上的每个节点设备进行数据传输,将起始节点设备的数据汇聚到目的节点设备中。Step 204: Deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and converges the data of the starting node device to the destination node device.
综上所述,本申请实施例提供的数据汇聚方法中,控制设备通过获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,因此可以在接收到数据汇聚指令时,根据数据汇聚指令确定起始虚拟节点和目的虚拟节点,并根据该多个虚拟节点的配置信息和每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,向该传输通道的每个节点设备下发传输通道,由传输通道上的每个节点设备进行数据传输,将起始节点设备的数据汇聚到目的节点设备中。通过输入的配置指令即可自定义配置信息,以使控制设备根据自定义的配置信息来确定传输通道,通过传输通道进行数据 汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。In summary, in the data aggregation method provided by the embodiment of the present application, the control device obtains the configuration information of multiple virtual nodes, and the configuration information is determined according to the configuration instruction input on the configuration device, so the data aggregation instruction can be received At the time, determine the starting virtual node and the destination virtual node according to the data aggregation instruction, and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, The transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device. The configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system The node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
图3是本申请实施例提供的另一种数据汇聚方法流程图,应用于图1所示实施例的任一节点设备中。参见图3,该方法包括如下步骤:FIG. 3 is a flowchart of another data aggregation method provided by an embodiment of the present application, which is applied to any node device in the embodiment shown in FIG. 1. Referring to FIG. 3, the method includes the following steps:
步骤301:接收控制设备下发的传输通道,该传输通道由控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,该配置信息至少包括输入设备的设备标识和输出设备的设备标识,该传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备。Step 301: Receive a transmission channel delivered by the control device. The transmission channel is determined by the control device according to the configuration information of multiple virtual nodes and the node device corresponding to each virtual node. The configuration information includes at least the device identification and output device of the input device Device identification, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local node device.
步骤302:当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目的节点设备中。Step 302: When receiving the data sent by the previous node device of the local node device in the transmission channel, send the data to the next node device of the local node device in the transmission channel to aggregate the data to the transmission In the destination node device on the channel.
综上所述,本申请实施例提供的数据汇聚方法中,任一节点设备接收控制设备下发的传输通道,当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目的节点设备中。通过输入的配置指令即可自定义配置信息,以使控制设备根据自定义的配置信息来确定传输通道,并下发给在传输通道中的每一个节点设备,任一节点设备能够根据该传输通道进行数据汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。In summary, in the data aggregation method provided in the embodiments of the present application, any node device receives the transmission channel delivered by the control device, and when receiving the data sent by the previous node device in the transmission channel of the local node device, Send the data to the next node device in the transmission channel of the local node device to converge the data to the destination node device on the transmission channel. The configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information and sends it to each node device in the transmission channel. Any node device can be based on the transmission channel Data aggregation is performed, so configuration information can be updated according to business requirements, thereby changing node devices in the data aggregation system, expanding the business capabilities of the data aggregation system, and increasing flexibility.
图4是本申请实施例提供的又一种数据汇聚方法流程图,应用于图1所示实施例的实施环境中。参见图4,该方法包括如下步骤:FIG. 4 is a flowchart of another data aggregation method provided by an embodiment of the present application, which is applied to the implementation environment of the embodiment shown in FIG. 1. Referring to Figure 4, the method includes the following steps:
步骤401:配置设备根据接收到的配置指令生成系统配置信息。Step 401: The configuration device generates system configuration information according to the received configuration instruction.
配置设备可以显示输入界面,由技术人员在该输入界面中输入携带配置信息的配置指令,配置设备接收到该配置指令时,根据该配置指令中的配置信息生成系统配置信息。The configuration device may display an input interface, and a technician inputs a configuration instruction carrying configuration information in the input interface. When the configuration device receives the configuration instruction, the system configuration information is generated according to the configuration information in the configuration instruction.
其中,该系统配置信息包括多个虚拟节点的配置信息,用于对多个虚拟节点进行描述,该多个虚拟节点与第一数据汇聚系统中的多个节点设备一一对应,虚拟节点为节点设备在配置信息中所映射的节点,虚拟节点的配置信息实际上是用于对节点设备进行描述的信息。The system configuration information includes configuration information of multiple virtual nodes, which are used to describe multiple virtual nodes. The multiple virtual nodes correspond to multiple node devices in the first data aggregation system, and the virtual nodes are nodes. The node to which the device is mapped in the configuration information, and the configuration information of the virtual node is actually used to describe the node device.
虚拟节点的配置信息至少包括虚拟节点对应的节点设备的设备标识、至少一个输入设备的设备标识和至少一个输出设备的设备标识,输入设备是指向该虚拟节点对应的节点设备输入数据的节点设备,也即是该虚拟节点对应的节点设备的上一个节点设备,而输出设备是指接收该虚拟节点对应的节点设备所输出数据的节点设备,也即是该虚拟节点对应的节点设备的下一个节点设备。因此,该配置信息至少可以表示虚拟节点对应的节点设备之前或之后的至少一个节点设备。The configuration information of the virtual node includes at least the device identification of the node device corresponding to the virtual node, the device identification of at least one input device, and the device identification of at least one output device. The input device is a node device that inputs data to the node device corresponding to the virtual node. That is, the previous node device of the node device corresponding to the virtual node, and the output device refers to the node device that receives the data output by the node device corresponding to the virtual node, that is, the next node of the node device corresponding to the virtual node device. Therefore, the configuration information may at least represent at least one node device before or after the node device corresponding to the virtual node.
那么,根据该系统配置信息中的多个虚拟节点的配置信息进行统计,可以确定第一数据汇聚系统中包括哪些节点设备以及每个节点设备之前或之后均连接了哪些节点设备。Then, according to the statistics of the configuration information of the multiple virtual nodes in the system configuration information, it can be determined which node devices are included in the first data aggregation system and which node devices are connected before or after each node device.
一种可能的实现方式中,虚拟节点的配置信息中,输入设备是指向该虚拟节点对应的节点设备输入数据的存储设备,也即是该虚拟节点对应的节点设备之前连接的存储设备,而输出设备是指接收该虚拟节点对应的节点设备所输出数据的存储设备,也即是该虚拟节点对应的节点设备之后连接的存储设备。因此,该配置信息至少可以表示虚拟节点对应的节点设备之前或之后的至少一个存储设备。In a possible implementation, in the configuration information of the virtual node, the input device is a storage device that inputs data to the node device corresponding to the virtual node, that is, the storage device connected to the node device corresponding to the virtual node, and output The device refers to a storage device that receives data output by a node device corresponding to the virtual node, that is, a storage device connected after the node device corresponding to the virtual node. Therefore, the configuration information may at least represent at least one storage device before or after the node device corresponding to the virtual node.
那么,根据该系统配置信息中的多个虚拟节点的配置信息进行统计,可以确定第一数据汇聚系统中包括哪些节点设备以及每个节点设备之前或之后均连接了哪些存储设备。Then, according to the statistics of the configuration information of multiple virtual nodes in the system configuration information, it can be determined which node devices included in the first data aggregation system and which storage devices are connected before or after each node device.
其中,配置信息中输入设备的设备标识和输出设备的设备标识即为虚拟节点的from端和to端。例如,虚拟节点node_1的输入设备的设备标识为kafka_1,输出设备的设备标识file_1。并且每个虚拟节点的from端和to端可以为多个。例如,虚拟节点node_2中输入设备的设备标识为file_1和file_2,输出设备的设备标识file_1。其他虚拟节点的与上述虚拟节点类似node_1和node_2类似,在此不再一一赘述。Among them, the device identifier of the input device and the device identifier of the output device in the configuration information are the from end and the to end of the virtual node. For example, the device identifier of the input device of the virtual node node_1 is kafka_1, and the device identifier of the output device is file_1. And each virtual node can have multiple from and to ends. For example, the device identifiers of the input devices in the virtual node node_2 are file_1 and file_2, and the device identifier of the output device is file_1. The other virtual nodes are similar to the aforementioned virtual nodes similar to node_1 and node_2, and will not be elaborated here.
在一种可能实现方式中,上述节点设备的设备标识用于确定唯一对应的节点设备,可以为该节点设备的网络地址、设备名称、设备编号,如节点设备1、节点设备2等。上述存储设备的设备标识用于确定唯一对应的存储设备,可以为该存储设备的网络地址、设备名称、设备编号,如kafka_1、file_1、ftp_1等。In a possible implementation manner, the device identifier of the node device is used to determine a unique corresponding node device, and may be the network address, device name, and device number of the node device, such as node device 1, node device 2, and so on. The device identifier of the above storage device is used to determine the unique corresponding storage device, and may be the network address, device name, and device number of the storage device, such as kafka_1, file_1, ftp_1, and so on.
在一种可能实现方式中,虚拟节点的配置信息还可以包括输入设备和输出设备的属性信息,该属性信息由输入设备和输出设备存储的数据类型决定,而 属性信息的具体内容由技术人员通过输入的配置指令进行配置。In a possible implementation, the configuration information of the virtual node may also include attribute information of the input device and the output device. The attribute information is determined by the type of data stored by the input device and the output device, and the specific content of the attribute information is passed by the technical Enter the configuration command to configure.
例如,若输入设备允许存储的数据类型为kafka,那么属性信息可以为topic(数据主题)、group.id(队列地址)等kafka所需的信息。若输入设备允许存储的数据类型为file,那么属性信息可以包括文件存储的目录位置(localDir)等file所需的信息。若输入设备允许存储的数据类型为FTP服务,那么属性信息可以包括FTP服务所位于的主机名称(hostname)、所处的端口(port)、存储的路径(path)、以及FTP服务的用户名(username)和密码(password)等。当然,上述数据类型也可以为其他数据类型,上述属性信息也可以包括其他属性的信息,对此本申请实施例不予限定。For example, if the data type allowed by the input device to be stored is kafka, then the attribute information may be information required by kafka, such as topic (data topic), group.id (queue address). If the data type allowed by the input device to be stored is file, the attribute information may include information required by file such as the directory location (localDir) where the file is stored. If the data type allowed by the input device to be stored is the FTP service, then the attribute information may include the host name (hostname), the port (port), the storage path (path), and the FTP service username ( username) and password (password), etc. Of course, the above data type may also be other data types, and the above attribute information may also include information of other attributes, which is not limited in this embodiment of the present application.
其中,生成该系统配置信息的配置指令可以如下所示:Among them, the configuration instructions that generate the system configuration information can be as follows:
Figure PCTCN2019111471-appb-000001
Figure PCTCN2019111471-appb-000001
Figure PCTCN2019111471-appb-000002
Figure PCTCN2019111471-appb-000002
在一种可能的实现方式中,虚拟节点的配置信息还包括数据处理链,该数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式。In a possible implementation, the configuration information of the virtual node further includes a data processing chain, and the data processing chain is used to specify at least one data processing mode when the corresponding node device receives the data to be transmitted.
其中,该数据处理链中包括至少一种处理方式,且该至少一种处理方式按 顺序排列,在进行数据处理时,按照顺序依次采用该数据处理链中的处理方式进行数据处理。Wherein, the data processing chain includes at least one processing method, and the at least one processing method is arranged in order. When data processing is performed, the processing methods in the data processing chain are sequentially used for data processing in order.
例如,任一节点设备可以对接收到的数据进行过滤,通过在该节点设备对应的虚拟节点中配置PROCESS_FILTER处理以及相应的过滤条件,以使该节点在接收到数据时按照配置的处理方式进行过滤的动作。For example, any node device can filter the received data, by configuring the PROCESS_FILTER process and the corresponding filtering conditions in the virtual node corresponding to the node device, so that the node will filter according to the configured processing method when receiving the data Actions.
其中,配置设备提供专门的数据处理接口,当虚拟节点当前配置的数据处理方式无法满足技术人员对于数据的处理需求时,可以通过该接口接收技术人员自定义的包括多种数据处理方式的处理process包,将该process包放入配置设备的数据处理库中,在进行虚拟节点的配置时,技术人员可以按照需求在配置设备中输入配置指令,以在所需的虚拟节点中配置可以调用该process包的任一处理方式的指令,从而使得在汇聚过程中,该虚拟节点对应的节点设备能够按照技术人员的需求对汇聚的数据按照指定的处理方式进行数据处理,实现了技术人员自定义节点设备的数据处理方式,从而能够扩展节点设备的数据处理能力,更加符合技术人员的需求。Among them, the configuration device provides a special data processing interface. When the data processing mode currently configured by the virtual node cannot meet the data processing needs of the technician, the processing process including multiple data processing methods customized by the technician can be received through the interface Package, put the process package into the data processing library of the configuration device. When configuring the virtual node, the technician can enter the configuration instructions in the configuration device as required to configure the required virtual node to call the process The instruction of any processing method of the package, so that during the aggregation process, the node device corresponding to the virtual node can perform data processing on the aggregated data according to the specified processing method according to the needs of the technician, and realize the custom node device of the technician Data processing method, which can expand the data processing capacity of the node equipment, more in line with the needs of technical staff.
例如,配置某一虚拟节点的数据处理链中的处理方式的配置指令可以如下所示:For example, the configuration instructions for configuring the processing mode in the data processing chain of a virtual node can be as follows:
Figure PCTCN2019111471-appb-000003
Figure PCTCN2019111471-appb-000003
需要说明的是,上述示例配置的数据处理方式分别为对数据进行过滤(filter)、对数据进行格式转换(convert)和调用自定义处理方式(customize)。其中过滤和转换是该虚拟节点对应的节点设备原本具有的数据处理方式的能力,而自定义处理方式为技术人员通过数据处理接口配置的,也即是技术人员为该虚拟节点对应的节点设备扩展的处理方式。It should be noted that the data processing methods configured in the above example are to filter the data, convert the data, and call a custom processing method (customize). Among them, filtering and conversion are the capabilities of the data processing method originally provided by the node device corresponding to the virtual node, and the custom processing method is configured by the technician through the data processing interface, that is, the technician expands the node device corresponding to the virtual node Treatment.
需要说明的是,根据上述实例中的配置指令可以直接实现对数据进行过滤。而实现对数据格式的转换,则需要技术人员提供数据的数据结构描述文件(schema.yml),该描述文件用于描述此次待转换数据的格式,还需要提供转换 后的数据格式的描述文件(XXX.xls)。It should be noted that the data can be directly filtered according to the configuration instructions in the above example. To achieve the conversion of the data format, the technician needs to provide a data structure description file (schema.yml) of the data. The description file is used to describe the format of the data to be converted this time, and a description file of the converted data format is also required (XXX.xls).
例如,该数据当前的数据结构描述文件可以如下所示:For example, the current data structure description file for the data can be as follows:
Figure PCTCN2019111471-appb-000004
Figure PCTCN2019111471-appb-000004
那么,根据任一描述文件可以得到格式转换的映射关系。例如,可以如下表1所示:Then, the mapping relationship of format conversion can be obtained according to any description file. For example, as shown in Table 1 below:
表1Table 1
old_colold_col old_typeold_type new_colnew_col new_typenew_type convert_funcconvert_func
column1column1 STRINGSTRING column_1column_1 STRINGSTRING ${column1}+${column4}$ {column1} + $ {column4}
column2column2 FLOAT64FLOAT64 column_2column_2 STRINGSTRING ‘TEST’+${column2}‘TEST’ + $ {column2}
需要说明的是,上述表1仅仅是本申请实施例提供的一种示例性的格式转换映射关系,也可以为其他映射关系,本申请实施例对此不予限定。It should be noted that the above Table 1 is only an exemplary format conversion mapping relationship provided by the embodiment of the present application, and may also be other mapping relationships, which are not limited in the embodiment of the present application.
在一种可能的实施方式中,在第一数据汇聚系统中,可以增加新的节点设备,将新的节点设备与第一数据汇聚系统中原有的任两个节点设备进行连接,并通过在配置设备上输入配置指令,增加该新的节点设备对应的虚拟节点的配置信息,将该新的节点设备对应的虚拟节点的输入设备和输出设备的设备标识分别设置为这两个节点设备的设备标识,以将该新的节点设备对应的虚拟节点增加至虚拟拓扑网络,从而实现在第一数据汇聚系统中增加新的节点设备。In a possible implementation manner, in the first data aggregation system, a new node device may be added, and the new node device is connected to any two original node devices in the first data aggregation system, and the Enter the configuration instruction on the device, add the configuration information of the virtual node corresponding to the new node device, and set the device identifiers of the input device and output device of the virtual node corresponding to the new node device to the device identifiers of the two node devices In order to add the virtual node corresponding to the new node device to the virtual topology network, so as to add a new node device in the first data aggregation system.
在另一种可能的实施方式中,若第一数据汇聚系统中存在过多的空闲节点 设备,为了避免资源浪费,可以移除任一空闲节点设备,具体地,可以移除该空闲节点设备与其他节点设备的连接,然后去除该空闲节点设备,并通过在配置设备上输入配置指令,删除该空闲节点设备对应的虚拟节点的配置信息。In another possible implementation manner, if there are too many idle node devices in the first data aggregation system, in order to avoid waste of resources, any idle node device may be removed. Specifically, the idle node device may be removed. Connection of other node devices, then remove the idle node device, and delete the configuration information of the virtual node corresponding to the idle node device by inputting a configuration instruction on the configuration device.
需要说明的是,在本申请实施例中,节点设备之间可以通过存储设备连接,即每个节点设备的输入设备和输出设备为存储设备。It should be noted that, in the embodiments of the present application, the node devices may be connected through a storage device, that is, the input device and the output device of each node device are storage devices.
在一种可能的实施方式中,在第一数据汇聚系统中,可以增加新的节点设备,将新的节点设备与两个没有通过节点设备建立连接的存储设备进行连接,并通过在配置设备上输入配置指令,增加该新的节点设备对应的虚拟节点的配置信息,将该新的节点设备对应的虚拟节点的输入设备和输出设备的设备标识分别设置为这两个存储设备的设备标识,以将该新的节点设备对应的虚拟节点增加至虚拟拓扑网络,从而实现在第一数据汇聚系统中增加新的节点设备。In a possible implementation manner, in the first data aggregation system, a new node device may be added, and the new node device is connected to two storage devices that have not established a connection through the node device, and through the configuration device Enter the configuration instruction, add the configuration information of the virtual node corresponding to the new node device, and set the device identifiers of the input device and output device of the virtual node corresponding to the new node device to the device identifiers of the two storage devices, respectively, to The virtual node corresponding to the new node device is added to the virtual topology network, so that a new node device is added to the first data aggregation system.
在另一种可能的实施方式中,若第一数据汇聚系统中存在过多的空闲节点设备,为了避免资源浪费,可以移除任一空闲节点设备,具体地,可以将该空闲节点设备与输入设备、输出设备这两个存储设备的连接移除,然后去除该节点设备,并通过在配置设备上输入配置指令,删除该空闲节点设备对应的虚拟节点的配置信息。In another possible implementation manner, if there are too many idle node devices in the first data aggregation system, in order to avoid waste of resources, any idle node device may be removed. Specifically, the idle node device may be The connection between the two storage devices of the device and the output device is removed, and then the node device is removed, and the configuration information of the virtual node corresponding to the idle node device is deleted by entering a configuration instruction on the configuration device.
需要说明的是,在本申请实施例中,可以通过技术人员在配置设备上输入上述配置指令,配置任一所需的虚拟节点,从而可以对第一数据汇聚系统中包含的节点设备进行扩展,增加新的节点设备进行数据汇聚,实现个性化配置。也可以删除不需要的虚拟节点,去除第一数据汇聚系统中空闲的节点设备,避免资源浪费。It should be noted that in the embodiments of the present application, a technician can input the above configuration instructions on the configuration device to configure any desired virtual node, so that the node device included in the first data aggregation system can be expanded, Add new node equipment for data aggregation to achieve personalized configuration. It is also possible to delete unnecessary virtual nodes, remove idle node devices in the first data aggregation system, and avoid waste of resources.
并且,该系统配置信息可以为配置文件的形式,当配置设备根据输入的配置指令生成多个虚拟节点的配置信息时,对该多个虚拟节点的配置信息进行封装,得到配置文件形式的系统配置信息,后续可以通过对系统配置信息进行解析,得到多个虚拟节点的配置信息。Moreover, the system configuration information may be in the form of a configuration file. When the configuration device generates configuration information of multiple virtual nodes according to the input configuration instruction, the configuration information of the multiple virtual nodes is encapsulated to obtain the system configuration in the form of a configuration file The information can be obtained by parsing the system configuration information to obtain the configuration information of multiple virtual nodes.
步骤402:配置设备向控制设备发送系统配置信息。Step 402: The configuration device sends system configuration information to the control device.
配置设备与控制设备连接,具体的连接方式可以为配置设备与控制设备通过网络连接,也可以为其他连接方式,对此本申请实施例不予限定。The configuration device is connected to the control device. The specific connection method may be that the configuration device and the control device are connected through a network or other connection methods, which is not limited in this embodiment of the present application.
配置设备可以将系统配置信息直接发送给控制设备,或者可以将系统配置信息进行存储,在接收到控制设备发送的获取请求时,将系统配置信息发送给控制设备。The configuration device can directly send the system configuration information to the control device, or it can store the system configuration information and send the system configuration information to the control device when receiving the acquisition request sent by the control device.
步骤403:控制设备接收系统配置信息,对该系统配置信息进行解析,得到多个虚拟节点的配置信息。Step 403: The control device receives system configuration information, analyzes the system configuration information, and obtains configuration information of multiple virtual nodes.
步骤404:起始节点设备向控制设备发送数据汇聚指令,该数据汇聚指令携带起始节点设备的设备标识和目的节点设备的设备标识。Step 404: The starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the starting node device and the device identifier of the destination node device.
起始节点设备可以为第一数据汇聚系统中任一个节点设备,优选地,起始节点设备可以为第一数据汇聚系统中的收集设备,专门用于收集数据后将数据汇聚到汇聚设备中。The starting node device may be any node device in the first data aggregation system. Preferably, the starting node device may be a collection device in the first data aggregation system, which is specifically used to collect data and aggregate the data into the aggregation device.
当起始节点设备需要将数据汇聚到其他节点设备中时,可以向控制设备发送数据汇聚指令。由于控制设备需要确定数据汇聚的起点和终点,后续才能确定传输通道进行数据汇聚。因此,起始节点设备发送数据汇聚指令时,需要将起始节点设备的设备标识和目的节点设备的设备标识携带在该数据汇聚指令中发送给控制设备。When the starting node device needs to aggregate data into other node devices, it can send a data aggregation instruction to the control device. Since the control device needs to determine the starting point and the ending point of data aggregation, the transmission channel can be subsequently determined for data aggregation. Therefore, when the starting node device sends the data aggregation instruction, the device identification of the starting node device and the device identifier of the destination node device need to be carried in the data aggregation instruction and sent to the control device.
步骤405:当控制设备接收到该数据汇聚指令时,基于该数据汇聚指令,确定起始节点设备对应的起始虚拟节点和目的节点设备对应的目的虚拟节点。Step 405: When the control device receives the data aggregation instruction, based on the data aggregation instruction, the starting virtual node corresponding to the starting node device and the destination virtual node corresponding to the destination node device are determined.
当控制设备接收到该数据汇聚指令时,根据该汇聚指令中所携带的起始节点设备的设备标识和目的节点设备的设备标识,将节点设备标识与该起始节点设备的设备标识相同的虚拟节点作为起始虚拟节点,将节点设备标识与该目的节点设备的设备标识相同的虚拟节点作为目的虚拟节点。When the control device receives the data aggregation instruction, according to the device identifier of the starting node device and the device identifier of the destination node device carried in the aggregation instruction, the virtual node device identifier is the same as the device identifier of the starting node device. The node is used as the starting virtual node, and the virtual node with the same node device ID as that of the destination node device is used as the destination virtual node.
步骤406:控制设备根据该多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,并向传输通道上的每个节点设备下发传输通道,该传输通道由至少两个节点设备按照顺序连接而成。Step 406: The control device determines the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, and delivers to each node device on the transmission channel A transmission channel, which is formed by connecting at least two node devices in sequence.
在一种可能实现方式中,在获取到多个虚拟节点的配置信息之后、接收到数据汇聚指令之前,对于多个虚拟节点中的任两个虚拟节点,当其中一个虚拟节点的输出设备的设备标识与另一个虚拟节点的输入设备的设备标识相同时,将该任两个虚拟节点连接,得到虚拟拓扑结构,该虚拟拓扑结构由该多个虚拟节点连接构成,且该虚拟拓扑结构用于描述该多个节点设备的连接关系。In a possible implementation manner, after acquiring configuration information of multiple virtual nodes and before receiving a data aggregation instruction, for any two virtual nodes of the multiple virtual nodes, the device of the output device of one of the virtual nodes When the identifier is the same as the device identifier of the input device of another virtual node, connect any two virtual nodes to obtain a virtual topology structure, the virtual topology structure is composed of the multiple virtual node connections, and the virtual topology structure is used for description The connection relationship of the multiple node devices.
由于每个虚拟节点可以包括多个输入设备的设备标识和输出设备的设备标识,那么按照上述方式将虚拟节点连接之后,得到的虚拟拓扑结构会是多个虚拟节点互相连接的结构,该虚拟拓扑结构可以映射为多个节点设备之间的连接关系。Since each virtual node can include the device identification of multiple input devices and the device identification of output devices, after the virtual nodes are connected in the above manner, the resulting virtual topology structure will be a structure in which multiple virtual nodes are connected to each other. The structure can be mapped to the connection relationship between multiple node devices.
因此,当控制设备接收到数据汇聚指令时,在虚拟拓扑结构中,查找从起始虚拟节点到达目的虚拟节点的虚拟传输通道;根据虚拟传输通道上的每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道。Therefore, when the control device receives the data aggregation instruction, in the virtual topology, it looks for the virtual transmission channel from the starting virtual node to the destination virtual node; according to the node device corresponding to each virtual node on the virtual transmission channel, determine from The transmission channel from the starting node device to the destination node device.
其中,该传输通道可以为多个节点设备的设备标识按照顺序排列的通道,该传输通道可以为多个,假设起始虚拟节点为node_1,目的虚拟节点为node_4,那么若该虚拟拓扑结构中node_1与node_2、node_3和node_4分别相连,node_2与node_3和node_4相连,那么控制设备得到的虚拟传输通道可以包括node_1->node_2->node_4,node_1->node_4;node_1->node_2->node_3->node_4、node_1->node_3->node_4等。Wherein, the transmission channel may be a channel in which the device identifiers of multiple node devices are arranged in order. The transmission channel may be multiple. Assuming that the starting virtual node is node_1 and the destination virtual node is node_4, then if node_1 in the virtual topology Connected to node_2, node_3 and node_4 respectively, node_2 is connected to node_3 and node_4, then the virtual transmission channel obtained by the control device may include node_1-> node_2-> node_4, node_1-> node_4; node_1-> node_2-> node_3-> node_4, node_1-> node_3-> node_4 etc.
可选地,控制设备在向传输通道上的每个节点设备下发传输通道时,可以从多个虚拟节点的配置信息中确定每个虚拟节点的输入设备的设备标识和输出设备的设备标识,这两个设备标识对应的设备即为虚拟节点对应的节点设备与上一个节点设备之间的存储设备,以及虚拟节点对应的节点设备与下一个节点设备连接的存储设备,从而可以确定起始节点设备到达目的节点设备的传输通道,之后将该传输通道下发给该传输通道中的每个节点设备,且该传输通道中不仅包括按照顺序排列的多个节点设备,还包括任两个节点设备之间的存储设备,以使每个节点设备在向下一个节点设备发送数据时,可以先将数据发送给对应的存储设备,由对应的存储设备发送给下一个节点设备。Optionally, when delivering the transmission channel to each node device on the transmission channel, the control device may determine the device identification of the input device and the output device of each virtual node from the configuration information of multiple virtual nodes, The devices corresponding to the two device identifiers are the storage device between the node device corresponding to the virtual node and the previous node device, and the storage device connected to the next node device corresponding to the virtual node, so that the starting node can be determined The device reaches the transmission channel of the destination node device, and then the transmission channel is delivered to each node device in the transmission channel, and the transmission channel includes not only multiple node devices arranged in sequence, but also any two node devices Between storage devices, so that when each node device sends data to the next node device, it can first send the data to the corresponding storage device, and then the corresponding storage device to the next node device.
可选地,控制设备可以向该传输通道上的每个节点设备下发该传输通道和监控任务,由该传输通道上的每个节点设备进行数据传输,并对本端的数据传输过程进行监控,向该控制设备发送数据传输结果。Optionally, the control device may deliver the transmission channel and the monitoring task to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and monitors the data transmission process at the local end. The control device sends the data transmission result.
步骤407:当起始节点设备接收到控制设备下发的传输通道时,将起始节点设备的数据发送给起始节点设备在传输通道中的下一个节点设备。Step 407: When the starting node device receives the transmission channel delivered by the control device, it sends the data of the starting node device to the next node device in the transmission channel of the starting node device.
该传输通道可以为多个,控制设备在下发传输通道时,当起始节点设备接收到多个传输通道时,则可以从控制设备获取每个传输通道的负载,然后根据自身待传输的数据量确定每个传输通道的数据量,按照每个传输通道的数据量分配数据,将分配的每份数据发送给对应传输通道中起始节点设备与下一个节点设备之间的存储设备,由存储设备发送给该传输通道中起始节点设备的下一个节点设备,从而通过多个传输通道分别进行传输。这样,可以减轻每个传输通道的传输压力,从而提高数据汇聚的效率。There may be multiple transmission channels. When the control device delivers the transmission channel, when the starting node device receives multiple transmission channels, it can obtain the load of each transmission channel from the control device, and then according to the amount of data to be transmitted Determine the data volume of each transmission channel, distribute the data according to the data volume of each transmission channel, and send each distributed data to the storage device between the starting node device and the next node device in the corresponding transmission channel. Sent to the next node device of the starting node device in the transmission channel, so as to separately transmit through multiple transmission channels. In this way, the transmission pressure of each transmission channel can be reduced, thereby improving the efficiency of data aggregation.
需要说明的是,起始节点设备也可以将待传输数据的数据量携带在数据汇 聚指令中,发送给控制设备,由控制设备通过与上述类似的方式确定多个传输通道,以及每个传输通道的数据量,然后将确定出的传输通道下发给起始节点设备时,同时将每个传输通道的数据量发送给起始节点设备,起始节点设备直接根据每个传输通道的数据量分配数据,向每个传输通道中起始节点设备的下一个节点设备发送分配的数据。It should be noted that the starting node device can also carry the data amount of the data to be transmitted in the data aggregation instruction and send it to the control device. The control device determines multiple transmission channels and each transmission channel in a manner similar to the above When the determined transmission channel is delivered to the starting node device, the data amount of each transmission channel is sent to the starting node device at the same time. The starting node device is directly allocated according to the data amount of each transmission channel Data, send the distributed data to the next node device of the starting node device in each transmission channel.
另外,若确定的至少一个传输通道负载过大,或者传输能力有限,无法满足本次的数据汇聚,可以通过在配置信息中进行自定义,在未连接的两个虚拟节点之间直接增加连接关系,或者可以新增节点设备并配置对应的虚拟节点的配置信息,以在数据汇聚系统中增加新的节点设备来扩充传输通道,从而实现对数据汇聚系统的能力扩展,增强了数据汇聚的效率。In addition, if the determined at least one transmission channel is overloaded, or the transmission capacity is limited to meet this data aggregation, you can customize it in the configuration information to directly increase the connection relationship between the two unconnected virtual nodes Or, you can add node devices and configure the configuration information of the corresponding virtual nodes to add new node devices to the data aggregation system to expand the transmission channel, so as to expand the capacity of the data aggregation system and enhance the efficiency of data aggregation.
步骤408:其他节点设备接收控制设备下发的传输通道,并在接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备。Step 408: The other node device receives the transmission channel delivered by the control device, and when receiving the data sent by the previous node device of the local node device in the transmission channel, sends the data to the local node device in the transmission channel The next node device.
其中,其他节点设备为传输通道上的节点设备中除起始节点设备和目的节点设备之外的节点设备。Among them, the other node devices are node devices other than the start node device and the destination node device among the node devices on the transmission channel.
需要说明的是,每个节点设备中设置有缓冲区,该缓冲区以缓冲队列的形式存储本端节点设备的上一个节点设备传输的待处理的数据。在当缓冲队列按顺序对存储的数据进行处理,当处理完成时,会将该数据从该缓冲队列中移除,从而保证缓冲队列的可用空间。It should be noted that each node device is provided with a buffer, and the buffer stores the data to be processed transmitted by the previous node device of the local node device in the form of a buffer queue. When the buffer queue processes the stored data in order, when the processing is completed, the data will be removed from the buffer queue, thereby ensuring the available space of the buffer queue.
并且,如图5所示,在任一节点设备中,若缓冲队列的存储空间不足时,可以向传输通道中本端节点设备的上一个节点设备发送暂停通知消息,提示上一个节点设备暂停向本端节点设备发送数据,当该缓冲队列有足够的存储空间时,可以向上一个节点设备发送恢复通知消息,以使上一个节点设备重新开始向本端节点设备传输数据。And, as shown in FIG. 5, in any node device, if the storage space of the buffer queue is insufficient, a suspension notification message can be sent to the previous node device of the local node device in the transmission channel to remind the previous node device to suspend The end node device sends data. When the buffer queue has sufficient storage space, it can send a recovery notification message to the next node device to enable the previous node device to restart transmitting data to the local node device.
一种可能的实现方式中,当任一节点设备接收控制设备下发的监控任务时,可以对自身的数据传输情况进行实时监控,根据实时监控的数据传输情况,每隔预设时长生成数据传输结果发送给控制设备。由控制设备可以根据每个度量报告得到每个传输通道的整体传输情况,以对传输过程中各个传输通道进行统一管控。该度量报告可以是上述数据传输结果,也可以是对传输通道的多个数据传输结果进行处理后得到的,比如,可以包括通过传输通道的多个数据传输结果计算出的平均数据传输速度、平均缓存数据量等等。In a possible implementation, when any node device receives the monitoring task issued by the control device, it can monitor its own data transmission in real time, and generate data transmission every preset time according to the real-time monitored data transmission The result is sent to the control device. The control device can obtain the overall transmission status of each transmission channel according to each measurement report, so as to uniformly manage and control each transmission channel during the transmission process. The measurement report may be the above data transmission result, or may be obtained by processing multiple data transmission results of the transmission channel, for example, may include the average data transmission speed and average calculated from the multiple data transmission results of the transmission channel The amount of cached data, etc.
如图6所示,例如虚拟传输通道为node_1->node_2->node_3,那么这三个虚拟节点对应的节点设备1、节点设备2和节点设备3在进行数据传输时,每个节点设备可以定时地检测当前的缓存区的剩余空间、进行数据处理的速度以及处理的数据总数等,然后生成数据传输结果发送给控制设备。As shown in FIG. 6, for example, the virtual transmission channel is node_1-> node_2-> node_3, then when the node devices 1, node device 2, and node device 3 corresponding to these three virtual nodes perform data transmission, each node device can be timed Detect the remaining space of the current buffer area, the speed of data processing and the total number of processed data, etc., and then generate a data transmission result and send it to the control device.
控制设备在接收到任一传输通道的各个节点设备上传的数据传输结果时,可以根据该传输通道的多个数据传输结果计算出该传输通道的平均数据传输速度、平均缓存数据量,在该传输通道的数据传输速度长时间高于预设速度值时,或者,在该传输通道的平均缓存数据量长时间高于预设数据量时,可以进行异常报警,以提示技术人员进行处理。When the control device receives the data transmission result uploaded by each node device of any transmission channel, it can calculate the average data transmission speed and average buffered data amount of the transmission channel according to the multiple data transmission results of the transmission channel. When the data transmission speed of the channel is higher than the preset speed value for a long time, or when the average buffered data volume of the transmission channel is higher than the preset data volume for a long time, an abnormal alarm may be issued to prompt the technician to process.
另外,控制设备在接收到任一传输通道的各个节点设备上传的数据传输结果时,可以根据该传输通道的多个数据传输结果,确定该传输通道的每个节点设备的运行状态,根据每个节点设备的运行状态确定该节点设备是否需要重新启动,若任一节点设备需要重新启动,那么控制设备可以向该节点设备发送启动命令,以使该节点设备重新启动,进行正常的数据传输。当然,该控制设备还可以根据接收到的各个节点设备发送的数据传输结果,执行其他的操作,如,当控制设备确定任一节点设备当前的处于无法运行且重新启动也无法恢复时,可以进行异常报警,以提示技术人员检查异常问题,对数据汇聚系统中的多个节点设备进行维护。In addition, when the control device receives the data transmission result uploaded by each node device of any transmission channel, it can determine the operating state of each node device of the transmission channel according to the multiple data transmission results of the transmission channel. The running state of the node device determines whether the node device needs to be restarted. If any node device needs to be restarted, the control device can send a start command to the node device to restart the node device for normal data transmission. Of course, the control device can also perform other operations based on the received data transmission results sent by each node device, for example, when the control device determines that any node device is currently inoperable and cannot be restarted, it can perform Abnormal alarm to prompt technicians to check for abnormal problems and maintain multiple node devices in the data aggregation system.
步骤409:目的节点设备接收控制设备下发的传输通道,并在接收到目的节点设备在传输通道中的上一个节点设备发送的数据时,存储该数据。Step 409: The destination node device receives the transmission channel delivered by the control device, and stores the data when the destination node device receives the data sent by the previous node device in the transmission channel.
其中,目的节点设备接收到数据时,将该数据存储至目的节点设备的输出设备中,也即是与目的节点设备连接的存储设备中。Wherein, when the destination node device receives the data, the data is stored in the output device of the destination node device, that is, the storage device connected to the destination node device.
在一种可能实现的方式中,任一节点设备的输入设备和输出设备均为存储设备,且存储同种数据类型的存储设备之间互相连接,可以进行数据共享。In a possible implementation manner, the input device and the output device of any node device are storage devices, and storage devices that store the same data type are connected to each other, and data sharing can be performed.
该传输通道可以为多个,控制设备在下发传输通道时可以将本次待传输数据的数据量发送给目的节点设备,若目的节点设备的输出设备的存储能力有限,无法完全存储该数据,目的节点设备可以在接收到数据时,将该目的节点设备的输出设备无法负载的部分数据,通过输出设备,转发至与该输出设备存储的数据类型的其他存储设备,从而解决了目的节点设备的输出设备设备存储能力有限的问题。The transmission channel can be multiple, and the control device can send the amount of data to be transmitted to the destination node device when sending the transmission channel. If the storage capacity of the output device of the destination node device is limited, the data cannot be completely stored. When receiving data, the node device can forward part of the data that the output device of the destination node device cannot load, through the output device, to other storage devices of the data type stored with the output device, thereby solving the output of the destination node device The problem of limited storage capacity of equipment.
在另一种可能实现的方式中,控制设备接收到起始节点设备发送的数据汇 聚指令时,该数据汇聚指令包括起始节点设备的设备标识、目的节点设备的设备标识和待传输数据的数据量,可以根据目的节点设备的设备标识从目的节点设备获取输出设备的存储能力。若该输出设备的负载能力有限,可以确定与输出设备存储的数据类型相同的至少一个输出设备,将这些输出设备连接的节点设备也作为目的节点设备,从而基于该起始节点设备和多个目的节点设备确定多个传输通道,以通过该多个传输通道,将同种类型的数据发送至不同的存储设备进行存储,从而将该目的节点设备的输出设备无法负载的部分数据,转发至与该输出设备存储的数据类型的其他存储设备,解决了目的节点设备的输出设备设备存储能力有限的问题,实现了与上述可能实现方式类似的效果。In another possible implementation manner, when the control device receives the data aggregation instruction sent by the starting node device, the data aggregation instruction includes the device identification of the starting node device, the device identification of the destination node device, and the data of the data to be transmitted The storage capacity of the output device can be obtained from the destination node device according to the device identifier of the destination node device. If the load capacity of the output device is limited, at least one output device of the same data type as the output device can be determined, and the node device connected to these output devices can also be used as the destination node device, based on the starting node device and multiple purposes The node device determines multiple transmission channels to send the same type of data to different storage devices for storage through the multiple transmission channels, so as to forward part of the data that the output device of the destination node device cannot load to the The other storage device of the data type stored by the output device solves the problem of limited storage capacity of the output device of the destination node device, and achieves an effect similar to the above-mentioned possible implementation manner.
综上所述,本申请实施例中,控制设备通过获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,因此可以在接收到数据汇聚指令时,根据数据汇聚指令确定起始虚拟节点和目的虚拟节点,并根据该多个虚拟节点的配置信息和每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,最后向该传输通道的每个节点设备下发传输通道,任一节点设备接收控制设备下发的传输通道,当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目的节点设备中。这样,通过输入的配置指令即可自定义配置信息,以使控制设备根据技术人员自定义的配置信息来确定传输通道,通过传输通道进行数据汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。In summary, in the embodiment of the present application, the control device obtains the configuration information of a plurality of virtual nodes, the configuration information is determined according to the configuration instruction input on the configuration device, so that when the data aggregation instruction is received, the data aggregation The instruction determines the starting virtual node and the destination virtual node, and determines the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, and finally to the transmission channel Each node device sends a transmission channel, and any node device receives the transmission channel sent by the control device. When receiving the data sent by the previous node device in the transmission channel of the local node device, the data is sent to this node. The end node device is the next node device in the transmission channel to aggregate the data to the destination node device on the transmission channel. In this way, the configuration information can be customized through the input configuration command, so that the control device determines the transmission channel according to the configuration information customized by the technician, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to business needs, thereby Changing the node equipment in the data aggregation system expands the business capabilities of the data aggregation system and improves flexibility.
需要说明的是,本申请实施例提供的数据汇聚方法,可以应用于如图5-图7所示的场景中。接下来本申请实施例对这几种场景进行逐一说明。It should be noted that the data aggregation method provided in the embodiments of the present application can be applied in the scenarios shown in FIGS. 5-7. Next, the embodiments of the present application will explain these several scenarios one by one.
图7是本公开实施例提供的一种数据汇聚场景示意图,参照图7,起始节点设备和目的节点设备均位于第一数据汇聚系统中,采用上述图4所示实施例的方式,即可将起始节点设备的数据汇聚到目的节点设备中。7 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present disclosure. Referring to FIG. 7, the start node device and the destination node device are both located in the first data aggregation system, and the method shown in the embodiment shown in FIG. 4 can be used. Converge the data of the starting node device to the destination node device.
图8是本公开实施例提供的另一种数据汇聚场景示意图,参照图8,起始节点设备位于第一数据汇聚系统,目的节点设备位于第二数据汇聚系统,而第一数据汇聚系统与第二数据汇聚系统处于不同的网络中,且第一数据汇聚系统通过第一端口设备与第二数据汇聚系统的第二端口设备连接。其中,第二数据汇 聚系统中包括多个节点设备和控制设备。8 is a schematic diagram of another data aggregation scenario provided by an embodiment of the present disclosure. Referring to FIG. 8, the starting node device is located in the first data aggregation system, the destination node device is located in the second data aggregation system, and the first data aggregation system is The two data aggregation systems are in different networks, and the first data aggregation system is connected to the second port equipment of the second data aggregation system through the first port equipment. Among them, the second data aggregation system includes multiple node devices and control devices.
此时,起始节点设备与目的节点设备之间的传输通道受到限制,必须经过第一端口设备和第二端口设备,才能将数据从第一数据汇聚系统发送到第二数据汇聚系统。也即是,数据传输过程包括将数据从起始节点设备发送到第一端口设备,从第一端口设备发送至第二端口设备的过程,以及将数据从第二端口设备发送到目的节点设备的过程。At this time, the transmission channel between the originating node device and the destination node device is restricted, and it must pass through the first port device and the second port device to send data from the first data aggregation system to the second data aggregation system. That is, the data transmission process includes the process of sending data from the starting node device to the first port device, from the first port device to the second port device, and sending the data from the second port device to the destination node device process.
因此,在上述图4所示实施例的基础上,步骤404-408具体可以包括以下步骤:Therefore, based on the embodiment shown in FIG. 4 above, steps 404-408 may specifically include the following steps:
一、在第一数据汇聚系统中的数据传输过程:1. The data transmission process in the first data aggregation system:
步骤801:在第一数据汇聚系统中,起始节点设备向控制设备发送数据汇聚指令,该数据汇聚指令携带起始节点设备的设备标识和目的节点设备的设备标识。Step 801: In the first data aggregation system, the starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identification of the starting node device and the device identification of the destination node device.
步骤802:当控制设备接收到该数据汇聚指令时,将数据汇聚指令中的目的节点设备更改为第一端口设备,以基于更改后的数据汇聚指令,确定从起始节点设备到达第一端口设备的传输通道,将起始节点设备的数据先汇聚到第一端口设备中。Step 802: When the control device receives the data aggregation instruction, the destination node device in the data aggregation instruction is changed to the first port device to determine the arrival of the first node device from the starting node device based on the modified data aggregation instruction The transmission channel of the first node device data is first aggregated into the first port device.
二、两个数据汇聚系统之间的数据传输过程:Second, the data transmission process between the two data aggregation systems:
步骤802:第一端口设备接收到起始节点设备的数据后,将数据发送至第二数据汇聚系统的第二端口设备。Step 802: After receiving the data of the starting node device, the first port device sends the data to the second port device of the second data aggregation system.
三、在第二数据汇聚系统中的数据传输过程:3. The data transmission process in the second data aggregation system:
步骤804:在第二数据汇聚系统中,第二端口设备向控制设备发送数据汇聚指令,该数据汇聚指令携带第二端口设备的设备标识和目的节点设备的设备标识。Step 804: In the second data aggregation system, the second port device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identification of the second port device and the device identification of the destination node device.
步骤805:当控制设备接收到该数据汇聚指令时,基于该数据汇聚指令,将第二端口设备的数据汇聚到目的节点设备中。Step 805: When the control device receives the data aggregation instruction, based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
其中,第二数据汇聚系统中的控制设备确定多个虚拟节点的配置信息并基于数据汇聚指令确定传输通道,以及传输通道上的多个节点设备进行数据传输的过程均与上述图4所示的方法实施例类似,在此不再赘述。The control device in the second data aggregation system determines the configuration information of multiple virtual nodes and determines the transmission channel based on the data aggregation instruction, and the process of data transmission by multiple node devices on the transmission channel is the same as that shown in FIG. The method embodiments are similar and will not be repeated here.
在另一种实施例中,最初要发送数据的起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是第一数据汇聚系统中的节点设备,且第一数据汇聚系统通过第一端口设备与第二数据汇聚系统的第二端口设备连接。In another embodiment, the initial node device to send data is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the The one-port device is connected to the second-port device of the second data aggregation system.
此时,在第二数据汇聚系统中,最初要发送数据起始节点设备向控制设备发送携带该起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令,当控制设备接收到该数据汇聚指令时,将数据汇聚指令中的目的节点设备更改为第二端口设备,以基于更改后的数据汇聚指令,确定从起始节点设备到达第二端口设备的传输通道,将起始节点设备的数据先汇聚到第二端口设备中,从第二端口设备将数据发送至第一数据汇聚系统的第一端口设备。在第一数据汇聚系统中,第一端口设备向控制设备发送数据汇聚指令,该数据汇聚指令携带第一端口设备的设备标识和目的节点设备的设备标识;当控制设备接收到该数据汇聚指令时,基于该数据汇聚指令,将第二端口设备的数据汇聚到目的节点设备中。At this time, in the second data aggregation system, initially the data is sent to the starting node device to send the data aggregation instruction carrying the device identification of the starting node device and the device identification of the destination node device to the control device, when the control device receives the In the data aggregation instruction, the destination node device in the data aggregation instruction is changed to the second port device to determine the transmission channel from the starting node device to the second port device based on the changed data aggregation instruction, and the starting node device The data of is first aggregated into the second port device, and the data is sent from the second port device to the first port device of the first data aggregation system. In the first data aggregation system, the first port device sends a data aggregation instruction to the control device, the data aggregation instruction carries the device identification of the first port device and the device identification of the destination node device; when the control device receives the data aggregation instruction Based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
在上述数据汇聚场景中,第一数据汇聚系统和第二数据汇聚系统之间可以通过第一端口设备和第二端口设备互相访问,进行数据传输。如可以通过将数据从第一数据汇聚系汇聚至第二数据系统,也可以将数据从第二数据汇聚系统汇聚至第一数据汇聚系统。In the above data aggregation scenario, the first data aggregation system and the second data aggregation system can access each other through the first port device and the second port device to perform data transmission. For example, data can be aggregated from the first data aggregation system to the second data system, or data can be aggregated from the second data aggregation system to the first data aggregation system.
而在其他的数据汇聚场景中,处于不同网络中的第一数据汇聚系统和第二数据汇聚系统可能会限制为仅能单边访问,如可以将数据从第一数据汇聚系统汇聚至第二数据系统,但是无法将数据由第二数据汇聚系统汇聚至第一数据汇聚系统;或者可以将数据从第二数据汇聚系汇聚至第一数据系统,但是无法将数据由第一数据汇聚系统汇聚至第二数据汇聚系统。此时,可以按照允许的访问方向,将允许被访问的数据汇聚系统中的数据汇聚到另一数据汇聚系统中。In other data aggregation scenarios, the first data aggregation system and the second data aggregation system in different networks may be restricted to only one-sided access, for example, data can be aggregated from the first data aggregation system to the second data System, but the data cannot be aggregated from the second data aggregation system to the first data aggregation system; or the data can be aggregated from the second data aggregation system to the first data system, but the data cannot be aggregated from the first data aggregation system to the first 2. Data aggregation system. At this time, the data in the data aggregation system that is allowed to be accessed can be aggregated into another data aggregation system according to the allowed access direction.
图9是本公开实施例提供的一种数据汇聚场景示意图,参照图9,起始节点设备位于第一数据汇聚系统,目的节点设备位于第二数据汇聚系统,而第一数据汇聚系统与第二数据汇聚系统处于不同的网络中,且第一数据汇聚系统与第二数据汇聚系统处于网络隔离状态。其中,第二数据汇聚系统中包括多个节点设备和控制设备。9 is a schematic diagram of a data aggregation scenario provided by an embodiment of the present disclosure. Referring to FIG. 9, the starting node device is located in the first data aggregation system, the destination node device is located in the second data aggregation system, and the first data aggregation system and the second The data aggregation system is in a different network, and the first data aggregation system and the second data aggregation system are in a network isolation state. Among them, the second data aggregation system includes multiple node devices and control devices.
此时,起始节点设备与目的节点设备之间的传输通道受到限制,必须经过网闸设备进行跨网传输,才能将数据从第一数据汇聚系统发送到第二数据汇聚系统。也即是,数据传输过程包括将数据从起始节点设备发送到网闸设备,以及将数据从网闸设备发送到目的节点设备的过程。At this time, the transmission channel between the start node device and the destination node device is restricted, and cross-network transmission must be performed through the gatekeeper device to send data from the first data aggregation system to the second data aggregation system. That is, the data transmission process includes the process of sending data from the starting node device to the gatekeeper device, and sending the data from the gatekeeper device to the destination node device.
因此,在上述图4所示实施例的基础上,步骤404-408具体可以包括以下步 骤:Therefore, based on the embodiment shown in FIG. 4 above, steps 404-408 may specifically include the following steps:
一、在第一数据汇聚系统中的数据传输过程:1. The data transmission process in the first data aggregation system:
步骤901:在第一数据汇聚系统中,起始节点设备向控制设备发送数据汇聚指令,该数据汇聚指令携带起始节点设备的设备标识和目的节点设备的设备标识。Step 901: In the first data aggregation system, the starting node device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the starting node device and the device identifier of the destination node device.
步骤902:当控制设备接收到该数据汇聚指令时,将数据汇聚指令中的目的节点设备更改为网闸设备,以基于更改后的数据汇聚指令,确定从起始节点设备到达网闸设备的传输通道,将起始节点设备的数据先汇聚到网闸设备。Step 902: When the control device receives the data aggregation instruction, the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission from the starting node device to the gatekeeper device based on the changed data aggregation instruction Channel, the data of the starting node device is first aggregated to the gatekeeper device.
二、在第二数据汇聚系统中的数据传输过程:Second, the data transmission process in the second data aggregation system:
步骤903:在第二数据汇聚系统中,网闸设备向控制设备发送数据汇聚指令,该数据汇聚指令携带网闸设备的设备标识和目的节点设备的设备标识。Step 903: In the second data aggregation system, the gatekeeper device sends a data aggregation instruction to the control device, where the data aggregation instruction carries the device identifier of the gatekeeper device and the device identifier of the destination node device.
步骤904:当控制设备接收到该数据汇聚指令时,基于该数据汇聚指令,将第二端口设备的数据汇聚到目的节点设备中。Step 904: When the control device receives the data aggregation instruction, based on the data aggregation instruction, the data of the second port device is aggregated into the destination node device.
其中,第二数据汇聚系统中的控制设备确定多个虚拟节点的配置信息并基于数据汇聚指令确定传输通道,以及传输通道上的多个节点设备进行数据传输的过程均与上述图4所示的方法实施例类似,在此不再赘述。The control device in the second data aggregation system determines the configuration information of multiple virtual nodes and determines the transmission channel based on the data aggregation instruction, and the process of data transmission by multiple node devices on the transmission channel is the same as that shown in FIG. 4 above The method embodiments are similar and will not be repeated here.
在另一种实施例中,最开始发送数据的起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是第一数据汇聚系统中的节点设备,且第一数据汇聚系统通过网闸设备与第二数据汇聚系统隔离。In another embodiment, the starting node device that first sends data is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the network The gate device is isolated from the second data aggregation system.
此时,在第二数据汇聚系统中,最开始发送数据的起始节点设备向控制设备发送携带该起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令;当控制设备接收到该数据汇聚指令时,将数据汇聚指令中的目的节点设备更改为网闸设备,以基于更改后的数据汇聚指令,确定从起始节点设备到达网闸设备的传输通道,将起始节点设备的数据先汇聚到网闸设备中。在第一数据汇聚系统中,网闸设备向控制设备发送数据汇聚指令,该数据汇聚指令携带网闸设备的设备标识和目的节点设备的设备标识;当控制设备接收到该数据汇聚指令时,基于该数据汇聚指令,将网闸设备的数据汇聚到目的节点设备中。At this time, in the second data aggregation system, the starting node device that first sends data sends a data aggregation instruction carrying the device identifier of the starting node device and the device identifier of the destination node device to the control device; when the control device receives When the data aggregation instruction is changed, the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction The data is first aggregated into the gatekeeper device. In the first data aggregation system, the gatekeeper device sends a data aggregation instruction to the control device, the data aggregation instruction carries the device identifier of the gatekeeper device and the device identifier of the destination node device; when the control device receives the data aggregation instruction, based on The data aggregation instruction aggregates the data of the gatekeeper device to the destination node device.
在上述数据汇聚场景中,第一数据汇聚系统和第二数据汇聚系统之间可以通过网闸设备互相进行数据传输。如可以通过将数据从第一数据汇聚系统汇聚至第二数据系统,也可以将数据从第二数据汇聚系统汇聚至第一数据汇聚系统。In the above data aggregation scenario, the first data aggregation system and the second data aggregation system can perform data transmission with each other through the gatekeeper device. For example, data can be aggregated from the first data aggregation system to the second data system, or data can be aggregated from the second data aggregation system to the first data aggregation system.
需要说明的是,本申请实施例提供的数据汇聚方法可以应用于上述几种不 同的数据汇聚场景中,能够实现起始节点设备和目的节点设备处于不同网络下的数据汇聚,提供了更加多样化的汇聚方式,能够满足不同场景下的数据汇聚需求,增强了数据汇聚系统的能力。It should be noted that the data aggregation method provided by the embodiments of the present application can be applied to the above-mentioned several different data aggregation scenarios, which can realize the data aggregation of the starting node device and the destination node device in different networks, providing more diversification The aggregation method can meet the data aggregation requirements in different scenarios and enhance the ability of the data aggregation system.
图10是本申请实施例提供的一种数据汇聚装置结构示意图。参见图10,应用于图1所示实施例的实施环境中。该装置包括:获取模块1001、第一确定模块1002、第二确定模块1003和第一发送模块1004。10 is a schematic structural diagram of a data aggregation device provided by an embodiment of the present application. Referring to FIG. 10, it is applied to the implementation environment of the embodiment shown in FIG. The apparatus includes: an acquisition module 1001, a first determination module 1002, a second determination module 1003, and a first sending module 1004.
获取模块1001,用于获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,该配置信息至少包括输入设备的设备标识和输出设备的设备标识,该多个虚拟节点与该多个节点设备一一对应;The obtaining module 1001 is configured to obtain configuration information of a plurality of virtual nodes. The configuration information is determined according to a configuration instruction input on a configuration device. The configuration information includes at least a device identifier of an input device and a device identifier of an output device. There is a one-to-one correspondence between the nodes and the multiple node devices;
第一确定模块1002,用于当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于该数据汇聚指令,确定起始节点设备对应的起始虚拟节点和目的节点设备对应的目的虚拟节点;The first determining module 1002 is configured to, when receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, determine the starting virtual node corresponding to the starting node device based on the data aggregation instruction and The destination virtual node corresponding to the destination node device;
第二确定模块1003,用于根据该多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,该传输通道由至少两个节点设备按照顺序连接而成;The second determining module 1003 is configured to determine a transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is composed of at least two node devices Connected in order;
第一发送模块1004,用于向传输通道上的每个节点设备下发传输通道,由传输通道上的每个节点设备进行数据传输,将起始节点设备的数据汇聚到目的节点设备中。The first sending module 1004 is configured to deliver a transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates data of the starting node device to the destination node device.
可选地,该装置还包括:Optionally, the device further includes:
连接模块,用于对于该多个虚拟节点中的任两个虚拟节点,当其中一个虚拟节点的输出设备的设备标识与另一个虚拟节点的输入设备的设备标识相同时,将该任两个虚拟节点连接,得到虚拟拓扑结构,该虚拟拓扑结构由该多个虚拟节点连接构成,且该虚拟拓扑结构用于描述该多个节点设备的连接关系;The connection module is used for any two virtual nodes among the plurality of virtual nodes, when the device identifier of the output device of one virtual node is the same as the device identifier of the input device of the other virtual node, the two virtual nodes Node connection to obtain a virtual topology structure, the virtual topology structure is composed of the connection of the plurality of virtual nodes, and the virtual topology structure is used to describe the connection relationship of the plurality of node devices;
第二确定模块1003包括:The second determination module 1003 includes:
查找子模块,用于在该虚拟拓扑结构中,查找从起始虚拟节点到达目的虚拟节点的虚拟传输通道;Find submodule, used to find the virtual transmission channel from the starting virtual node to the destination virtual node in the virtual topology;
确定子模块,用于根据虚拟传输通道上的每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道。The determination submodule is used to determine the transmission channel from the starting node device to the destination node device according to the node device corresponding to each virtual node on the virtual transmission channel.
可选地,第一发送模块1004包括:Optionally, the first sending module 1004 includes:
发送子模块,用于向传输通道上的每个节点设备下发该传输通道和监控任 务,由传输通道上的每个节点设备进行数据传输,并对本端的数据传输过程进行监控,向控制设备发送数据传输结果。The sending submodule is used to deliver the transmission channel and monitoring tasks to each node device on the transmission channel. Each node device on the transmission channel performs data transmission, monitors the data transmission process at the local end, and sends it to the control device Data transfer results.
可选地,该配置信息还包括数据处理链,该数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;该装置还包括:Optionally, the configuration information further includes a data processing chain, which is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; the apparatus further includes:
第二发送模块,用于向每个节点设备发送对应的虚拟节点的数据处理链,以使每个节点设备在接收到待传输的数据时,采用该数据处理链中的数据处理方式对该数据进行处理。The second sending module is used to send the data processing chain of the corresponding virtual node to each node device, so that each node device adopts the data processing method in the data processing chain to receive the data to be transmitted Be processed.
可选地,该装置还包括:Optionally, the device further includes:
第一更改模块,用于当起始节点设备是第一数据汇聚系统中的节点设备,目的节点设备是第二数据汇聚系统中的节点设备,且第一数据汇聚系统通过第一端口设备与第二数据汇聚系统的第二端口设备连接时,将数据汇聚指令中的目的节点设备的设备标识更改为第一端口设备的设备标识,以基于更改后的数据汇聚指令,确定从起始节点设备到达第一端口设备的传输通道,将起始节点设备的数据先汇聚到第一端口设备中,再通过第一端口设备发送给第二端口设备,通过第二端口设备汇聚到第二数据汇聚系统中的目的节点设备。The first modification module is used when the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the first port device and the first When the second port device of the second data aggregation system is connected, the device identification of the destination node device in the data aggregation instruction is changed to the device identification of the first port device to determine the arrival from the starting node device based on the changed data aggregation instruction The transmission channel of the first port device aggregates the data of the starting node device into the first port device, and then sends the data to the second port device through the first port device, and then aggregates it into the second data aggregation system through the second port device The destination node device.
可选地,该装置还包括:Optionally, the device further includes:
第二更改模块,用于当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是第一数据汇聚系统中的节点设备,且第一数据汇聚系统通过第一端口设备与第二数据汇聚系统的第二端口设备连接时,接收第一端口设备发送的第一数据汇聚指令,第一数据汇聚指令中的起始节点设备的设备标识为该第一端口设备的设备标识;The second modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the first port device and the first When the second port device of the second data aggregation system is connected, it receives the first data aggregation instruction sent by the first port device, and the device identifier of the starting node device in the first data aggregation instruction is the device identifier of the first port device;
第二数据汇聚系统中的控制设备用于当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的第二数据汇聚指令时,将目的节点设备的设备标识更改为第二端口设备的设备标识,以基于更改后的数据汇聚指令,确定从起始节点设备到达第二端口设备的传输通道,将起始节点设备的数据汇聚到第二端口设备中,由第二端口设备将该数据发送给第一端口设备,由第一端口设备向第一数据汇聚系统中的控制设备发送该第一数据汇聚指令。The control device in the second data aggregation system is used to change the device identification of the destination node device to the second port device when receiving the second data aggregation instruction including the device identification of the start node device and the device identification of the destination node device Device identification to determine the transmission channel from the starting node device to the second port device based on the modified data aggregation instruction, and aggregate the data of the starting node device into the second port device, which will be used by the second port device The data is sent to the first port device, and the first port device sends the first data aggregation instruction to the control device in the first data aggregation system.
可选地,该装置还包括:Optionally, the device further includes:
第三更改模块,用于当起始节点设备是第一数据汇聚系统中的节点设备,目的节点设备是第二数据汇聚系统中的节点设备,且第一数据汇聚系统通过网闸设备与第二数据汇聚系统隔离时,将该数据汇聚指令中的目的节点设备更改 为网闸设备,以基于更改后的数据汇聚指令,确定从起始节点设备到达网闸设备的传输通道,将起始节点设备的数据先汇聚到网闸设备中,再通过网闸设备将该数据汇聚到第二数据汇聚系统中的目的节点设备。The third modification module is used when the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the gatekeeper device and the second When the data aggregation system is isolated, the destination node device in the data aggregation instruction is changed to a gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction, and the starting node device The data of is first aggregated into the gatekeeper device, and then the data is aggregated to the destination node device in the second data aggregation system through the gatekeeper device.
可选地,该装置还包括:Optionally, the device further includes:
第四更改模块,用于当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是第一数据汇聚系统中的节点设备,且第一数据汇聚系统通过网闸设备与第二数据汇聚系统隔离时,接收网闸设备发送的第一数据汇聚指令,第一数据汇聚指令中的起始节点设备的设备标识为网闸设备的设备标识;The fourth modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system communicates with the second device through the gatekeeper device. When the data aggregation system is isolated, the first data aggregation instruction sent by the gatekeeper device is received, and the device identifier of the starting node device in the first data aggregation instruction is the device identifier of the gatekeeper device;
第二数据汇聚系统中的控制设备用于当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的第二数据汇聚指令时,将目的节点设备的设备标识更改为网闸设备的设备标识,以基于更改后的数据汇聚指令,确定从该起始节点设备到达网闸设备的传输通道,将起始节点设备的数据汇聚到网闸设备中,由网闸设备向第一数据汇聚系统中的控制设备发送该第一数据汇聚指令。The control device in the second data aggregation system is used to change the device identification of the destination node device to the gatekeeper device when receiving the second data aggregation instruction including the device identification of the start node device and the device identification of the destination node device Device identification, to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction, to aggregate the data of the starting node device into the gatekeeper device, and the gatekeeper device to aggregate the first data The control device in the system sends the first data aggregation instruction.
综上所述,本申请实施例提供的数据汇聚装置中,控制设备通过获取多个虚拟节点的配置信息,该配置信息根据在配置设备上输入的配置指令确定,因此可以在接收到数据汇聚指令时,根据数据汇聚指令确定起始虚拟节点和目的虚拟节点,并根据该多个虚拟节点的配置信息和每个虚拟节点对应的节点设备,确定从起始节点设备到达目的节点设备的传输通道,向该传输通道的每个节点设备下发传输通道,由传输通道上的每个节点设备进行数据传输,将起始节点设备的数据汇聚到目的节点设备中。通过输入的配置指令即可自定义配置信息,以使控制设备根据自定义的配置信息来确定传输通道,通过传输通道进行数据汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。In summary, in the data aggregation apparatus provided in the embodiments of the present application, the control device obtains configuration information of multiple virtual nodes, and the configuration information is determined according to the configuration instruction input on the configuration device, so the data aggregation instruction can be received At the time, determine the starting virtual node and the destination virtual node according to the data aggregation instruction, and determine the transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, The transmission channel is delivered to each node device of the transmission channel, and each node device on the transmission channel performs data transmission, and aggregates the data of the starting node device to the destination node device. The configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information, and the data aggregation is performed through the transmission channel, so the configuration information can be updated according to the business needs, thereby changing the data aggregation system The node equipment in the system expands the business capability of the data aggregation system and improves flexibility.
图11是本申请实施例提供的另一种数据汇聚装置结构示意图。参见图11,该装置包括:接收模块1101和第一发送模块1102。FIG. 11 is a schematic structural diagram of another data aggregation device provided by an embodiment of the present application. Referring to FIG. 11, the device includes: a receiving module 1101 and a first sending module 1102.
接收模块1101,用于接收控制设备下发的传输通道,该传输通道由控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,该配置信息根据在配置设备上输入的配置指令确定,至少包括输入设备的设备标识和输出设备的设备标识,该传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备;The receiving module 1101 is configured to receive a transmission channel delivered by the control device. The transmission channel is determined by the control device according to the configuration information of multiple virtual nodes and the node device corresponding to each virtual node. The configuration information is based on the input on the configuration device The configuration instruction determines that at least the device identifier of the input device and the device identifier of the output device are included. The transmission channel is formed by connecting at least two node devices in sequence and includes the local node device;
第一发送模块1102,用于当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目的节点设备中。The first sending module 1102 is configured to, when receiving data sent by the previous node device of the local node device in the transmission channel, send the data to the next node device of the local node device in the transmission channel, so as to This data is aggregated into the destination node device on the transmission channel.
可选地,该配置信息还包括数据处理链,该数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;第一发送模块1102包括:Optionally, the configuration information further includes a data processing chain, which is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; the first sending module 1102 includes:
处理子模块,用于当接收到该数据时,采用该数据处理链中的数据处理方式对该数据进行处理;The processing sub-module is used to process the data by using the data processing method in the data processing chain when receiving the data;
发送子模块,用于将处理后的数据发送给本端节点设备在传输通道中的下一个节点设备。The sending submodule is used to send the processed data to the next node device in the transmission channel of the local node device.
可选地,该装置还包括:Optionally, the device further includes:
第二发送模块,用于向控制设备发送数据汇聚指令,该数据汇聚指令包括起始节点设备的设备标识和目的节点设备的设备标识,且起始节点设备为本端节点设备,以使控制设备确定从本端节点设备到达目的节点设备的传输通道。The second sending module is used to send a data aggregation instruction to the control device, where the data aggregation instruction includes the device identification of the starting node device and the device identification of the destination node device, and the starting node device is the local node device, so that the control device Determine the transmission channel from the local node device to the destination node device.
可选地,该装置还包括:Optionally, the device further includes:
存储模块,用于如果本端节点设备为传输通道中的目的节点设备,当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,存储该数据。The storage module is used for storing the data when the local node device is the destination node device in the transmission channel when it receives the data sent by the previous node device in the transmission channel of the local node device.
综上所述,本申请实施例提供的数据汇聚装置中,任一节点设备接收控制设备下发的传输通道,当接收到本端节点设备在传输通道中的上一个节点设备发送的数据时,将该数据发送给本端节点设备在传输通道中的下一个节点设备,以将该数据汇聚到传输通道上的目的节点设备中。通过输入的配置指令即可自定义配置信息,以使控制设备根据自定义的配置信息来确定传输通道,并下发给在传输通道中的每一个节点设备,任一节点设备能够根据该传输通道进行数据汇聚,因此能够根据业务需求对配置信息进行更新,从而更改数据汇聚系统中的节点设备,扩展了数据汇聚系统的业务能力,提高了灵活性。In summary, in the data aggregation apparatus provided in the embodiments of the present application, any node device receives the transmission channel delivered by the control device. When receiving the data sent by the previous node device in the transmission channel of the local node device, Send the data to the next node device in the transmission channel of the local node device to converge the data to the destination node device on the transmission channel. The configuration information can be customized through the input configuration instruction, so that the control device determines the transmission channel according to the customized configuration information and sends it to each node device in the transmission channel. Any node device can be based on the transmission channel Data aggregation is performed, so configuration information can be updated according to business requirements, thereby changing node devices in the data aggregation system, expanding the business capabilities of the data aggregation system, and increasing flexibility.
需要说明的是:上述实施例提供的数据汇聚装置在进行数据汇聚时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将控制设备和节点设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的数据汇聚装置与数据汇聚方法实施例属于同一构思,其具体实现过程详见方 法实施例,这里不再赘述。It should be noted that when the data aggregation device provided in the above embodiment performs data aggregation, only the above-mentioned division of each functional module is used as an example for illustration. In practical applications, the above-mentioned functions may be allocated by different functional modules according to needs. That is, the internal structure of the control device and the node device is divided into different functional modules to complete all or part of the functions described above. In addition, the data aggregation device and the data aggregation method embodiment provided in the above embodiments belong to the same concept. For the specific implementation process, see the method embodiment, and details are not described here.
图12是本申请实施例提供的一种服务器的结构示意图,该服务器1200可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)1201和一个或一个以上的存储器1202,其中,所述存储器1202中存储有至少一条指令,所述至少一条指令由该处理器1201加载并执行。当然,该服务器1200还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器1200还可以包括其他用于实现设备功能的部件,在此不做赘述。FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 1200 may have a relatively large difference due to different configurations or performances, and may include one or more than one central processing unit (CPU) 1201 and one Or more than one memory 1202, wherein at least one instruction is stored in the memory 1202, and the at least one instruction is loaded and executed by the processor 1201. Of course, the server 1200 may also have components such as a wired or wireless network interface, a keyboard, and an input-output interface for input and output. The server 1200 may also include other components for implementing device functions, which will not be repeated here.
该服务器1200用于执行上述数据汇聚方法中控制设备或节点设备所执行的操作。The server 1200 is used to perform the operations performed by the control device or the node device in the above data aggregation method.
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括指令的存储器,上述指令可由上述终端或服务器中的处理器执行以完成上述实施例中的数据汇聚方法。例如,所述计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, for example, a memory including instructions that can be executed by the processor in the terminal or server to complete the data aggregation method in the above embodiments. For example, the computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, or the like.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps to implement the above-described embodiments may be completed by hardware, or may be completed by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection of this application Within range.

Claims (29)

  1. 一种数据汇聚方法,其特征在于,应用于第一数据汇聚系统的控制设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述方法包括:A data aggregation method, characterized in that it is applied to a control device of a first data aggregation system, the first data aggregation system includes a plurality of node devices and the control device, the control device and the plurality of Node device connection, the method includes:
    获取多个虚拟节点的配置信息,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,所述配置信息至少包括输入设备的设备标识和输出设备的设备标识,所述多个虚拟节点与所述多个节点设备一一对应;Acquiring configuration information of a plurality of virtual nodes, the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, the configuration information includes at least a device identification of an input device and a device identification of an output device The multiple virtual nodes correspond to the multiple node devices in one-to-one correspondence;
    当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于所述数据汇聚指令,确定所述起始节点设备对应的起始虚拟节点和所述目的节点设备对应的目的虚拟节点;When receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, based on the data aggregation instruction, the starting virtual node corresponding to the starting node device and the destination node device are determined The corresponding destination virtual node;
    根据所述多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道,所述传输通道由至少两个节点设备按照顺序连接而成;According to the configuration information of the plurality of virtual nodes and the node device corresponding to each virtual node, determine a transmission channel from the starting node device to the destination node device, the transmission channel is in order by at least two node devices Connected
    向所述传输通道上的每个节点设备下发所述传输通道,由所述传输通道上的每个节点设备进行数据传输,以将所述起始节点设备的数据汇聚到所述目的节点设备中。Deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission to aggregate the data of the starting node device to the destination node device in.
  2. 根据权利要求1所述的方法,其特征在于,所述获取多个虚拟节点的配置信息之后,所述方法还包括:The method according to claim 1, wherein after acquiring configuration information of a plurality of virtual nodes, the method further comprises:
    对于所述多个虚拟节点中的任两个虚拟节点,当其中一个虚拟节点的输出设备的设备标识与另一个虚拟节点的输入设备的设备标识相同时,将所述任两个虚拟节点连接,得到虚拟拓扑结构,所述虚拟拓扑结构由所述多个虚拟节点连接构成,且所述虚拟拓扑结构用于描述所述多个节点设备的连接关系;For any two virtual nodes of the plurality of virtual nodes, when the device identification of the output device of one virtual node is the same as the device identification of the input device of the other virtual node, connect the two virtual nodes, Obtain a virtual topology structure, the virtual topology structure is formed by the connection of the multiple virtual nodes, and the virtual topology structure is used to describe the connection relationship of the multiple node devices;
    所述根据所述多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道,包括:The determining the transmission channel from the starting node device to the destination node device according to the configuration information of the plurality of virtual nodes and the node device corresponding to each virtual node includes:
    在所述虚拟拓扑结构中,查找从所述起始虚拟节点到达所述目的虚拟节点的虚拟传输通道;In the virtual topology structure, search for a virtual transmission channel from the starting virtual node to the destination virtual node;
    根据所述虚拟传输通道上的每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道。The transmission channel from the starting node device to the destination node device is determined according to the node device corresponding to each virtual node on the virtual transmission channel.
  3. 根据权利要求1所述的方法,其特征在于,所述向所述传输通道上的每个节点设备下发所述传输通道,包括:The method according to claim 1, wherein the delivering the transmission channel to each node device on the transmission channel comprises:
    向所述传输通道上的每个节点设备下发所述传输通道和监控任务,由所述传输通道上的每个节点设备进行数据传输,并对本端的数据传输过程进行监控,向所述控制设备发送数据传输结果。Deliver the transmission channel and the monitoring task to each node device on the transmission channel, each node device on the transmission channel performs data transmission, and monitors the data transmission process at the local end to the control device Send data transfer results.
  4. 根据权利要求1所述的方法,其特征在于,所述配置信息还包括数据处理链,所述数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;所述方法还包括:The method according to claim 1, wherein the configuration information further includes a data processing chain, and the data processing chain is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; The method also includes:
    向每个节点设备发送对应的虚拟节点的数据处理链,以使每个节点设备在接收到待传输的数据时,采用所述数据处理链中的数据处理方式对所述数据进行处理。Sending a data processing chain of the corresponding virtual node to each node device, so that each node device uses the data processing mode in the data processing chain to process the data when receiving the data to be transmitted.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当起始节点设备是所述第一数据汇聚系统中的节点设备,目的节点设备是第二数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过第一端口设备与所述第二数据汇聚系统的第二端口设备连接时,将所述数据汇聚指令中的目的节点设备的设备标识更改为所述第一端口设备的设备标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述第一端口设备的传输通道,将所述起始节点设备的数据先汇聚到所述第一端口设备中,再通过所述第一端口设备发送给所述第二端口设备,通过所述第二端口设备汇聚到所述第二数据汇聚系统中的所述目的节点设备。When the starting node device is the node device in the first data aggregation system, the destination node device is the node device in the second data aggregation system, and the first data aggregation system passes the first port device and the second When the second port device of the data aggregation system is connected, the device identification of the destination node device in the data aggregation instruction is changed to the device identification of the first port device, to determine from the data aggregation instruction based on the changed data aggregation instruction The starting node device reaches the transmission channel of the first port device, aggregates the data of the starting node device into the first port device, and then sends the data to the second port through the first port device The device is aggregated to the destination node device in the second data aggregation system through the second port device.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是所述第一数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过第一端口设备与所述第二数据汇聚系统的第二端口设备连接时,接收所述第一端口设备发送的第一数据汇聚指令,所述第一数据汇聚指令中的起始节点设备的设备标识为所述第一端口设备的设备标识;When the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the first port device and the second When the second port device of the data aggregation system is connected, it receives the first data aggregation instruction sent by the first port device, and the device identifier of the starting node device in the first data aggregation instruction is that of the first port device Equipment Identity;
    所述第二数据汇聚系统中的控制设备用于当接收到包括所述起始节点设备 的设备标识和所述目的节点设备的设备标识的第二数据汇聚指令时,将所述目的节点设备的设备标识更改为所述第二端口设备的设备标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述第二端口设备的传输通道,将所述起始节点设备的数据汇聚到所述第二端口设备中,由所述第二端口设备将所述数据发送给所述第一端口设备,由所述第一端口设备向所述第一数据汇聚系统中的控制设备发送所述第一数据汇聚指令。The control device in the second data aggregation system is configured to, when receiving the second data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, The device identification is changed to the device identification of the second port device to determine the transmission channel from the starting node device to the second port device based on the changed data aggregation instruction, and change the starting node device's Data is aggregated into the second port device, the second port device sends the data to the first port device, and the first port device sends the data to the control device in the first data aggregation system Sending the first data aggregation instruction.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当起始节点设备是所述第一数据汇聚系统中的节点设备,目的节点设备是第二数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过网闸设备与所述第二数据汇聚系统隔离时,将所述数据汇聚指令中的目的节点设备更改为所述网闸设备,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述网闸设备的传输通道,将所述起始节点设备的数据先汇聚到所述网闸设备中,再通过所述网闸设备将所述数据汇聚到所述第二数据汇聚系统中的所述目的节点设备。When the starting node device is a node device in the first data aggregation system, the destination node device is a node device in the second data aggregation system, and the first data aggregation system communicates with the second data through a gatekeeper device When the aggregation system is isolated, the destination node device in the data aggregation instruction is changed to the gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction , The data of the starting node device is first aggregated into the gatekeeper device, and then the data is aggregated to the destination node device in the second data aggregation system through the gatekeeper device.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是所述第一数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过网闸设备与所述第二数据汇聚系统隔离时,接收所述网闸设备发送的第一数据汇聚指令,所述第一数据汇聚指令中的起始节点设备的设备标识为所述网闸设备的设备标识;When the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system communicates with the second data through the gatekeeper device When the aggregation system is isolated, receive the first data aggregation instruction sent by the gatekeeper device, and the device identifier of the starting node device in the first data aggregation instruction is the device identifier of the gatekeeper device;
    所述第二数据汇聚系统中的控制设备用于当接收到包括所述起始节点设备的设备标识和所述目的节点设备的设备标识的第二数据汇聚指令时,将所述目的节点设备的设备标识更改为所述网闸设备的设备标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述网闸设备的传输通道,将所述起始节点设备的数据汇聚到所述网闸设备中,由所述网闸设备向所述第一数据汇聚系统中的控制设备发送所述第一数据汇聚指令。The control device in the second data aggregation system is configured to, when receiving the second data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, The device identification is changed to the device identification of the gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction and to aggregate the data of the starting node device To the gatekeeper device, the gatekeeper device sends the first data aggregation instruction to the control device in the first data aggregation system.
  9. 一种数据汇聚方法,其特征在于,应用于第一数据汇聚系统中的任一节 点设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述方法包括:A data aggregation method is characterized in that it is applied to any node device in a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. To connect multiple node devices, the method includes:
    接收所述控制设备下发的传输通道,所述传输通道由所述控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,至少包括输入设备的设备标识和输出设备的设备标识,所述传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备;Receiving a transmission channel delivered by the control device, the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on The configuration instruction input on the connected configuration device determines that it includes at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local node device;
    当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,将所述数据发送给所述本端节点设备在所述传输通道中的下一个节点设备,以将所述数据汇聚到所述传输通道上的目的节点设备中。When receiving the data sent by the last node device of the local node device on the transmission channel, send the data to the next node device of the local node device on the transmission channel, to Aggregate the data to the destination node device on the transmission channel.
  10. 根据权利要求9所述的方法,其特征在于,所述配置信息还包括数据处理链,所述数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;所述当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,将所述数据发送给所述本端节点设备在所述传输通道中的下一个节点设备,包括:The method according to claim 9, wherein the configuration information further includes a data processing chain, and the data processing chain is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; When receiving the data sent by the previous node device of the local node device in the transmission channel, send the data to the next node device of the local node device in the transmission channel ,include:
    当接收到所述数据时,采用所述数据处理链中的数据处理方式对所述数据进行处理,将处理后的数据发送给所述本端节点设备在所述传输通道中的下一个节点设备。When receiving the data, the data processing method in the data processing chain is used to process the data, and the processed data is sent to the next node device in the transmission channel of the local node device .
  11. 根据权利要求9所述的方法,其特征在于,所述接收所述控制设备发送的传输通道之前,所述方法还包括:The method according to claim 9, wherein before the receiving the transmission channel sent by the control device, the method further comprises:
    向所述控制设备发送数据汇聚指令,所述数据汇聚指令包括起始节点设备的设备标识和目的节点设备的设备标识,且所述起始节点设备为所述本端节点设备,以使所述控制设备确定从所述本端节点设备到达所述目的节点设备的传输通道。Send a data aggregation instruction to the control device, where the data aggregation instruction includes the device identifier of the starting node device and the device identifier of the destination node device, and the starting node device is the local node device, so that the The control device determines the transmission channel from the local node device to the destination node device.
  12. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    如果所述本端节点设备为所述传输通道中的目的节点设备,当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,存储所述数 据。If the local node device is a destination node device in the transmission channel, when the data sent by the local node device in the previous node device in the transmission channel is received, the data is stored.
  13. 一种数据汇聚装置,其特征在于,应用于第一数据汇聚系统的控制设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述装置包括:An apparatus for data aggregation is characterized in that it is applied to a control device of a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. Node device connection, the device includes:
    获取模块,用于获取多个虚拟节点的配置信息,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,所述配置信息至少包括输入设备的设备标识和输出设备的设备标识,所述多个虚拟节点与所述多个节点设备一一对应;An obtaining module, configured to obtain configuration information of a plurality of virtual nodes, the configuration information is determined according to a configuration instruction input on a configuration device connected to the control device, and the configuration information includes at least a device identifier and an output device of the input device Device identification, the multiple virtual nodes are in one-to-one correspondence with the multiple node devices;
    第一确定模块,用于当接收到包括起始节点设备的设备标识和目的节点设备的设备标识的数据汇聚指令时,基于所述数据汇聚指令,确定所述起始节点设备对应的起始虚拟节点和所述目的节点设备对应的目的虚拟节点;The first determining module is configured to, when receiving a data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, determine the starting virtual corresponding to the starting node device based on the data aggregation instruction A node and a destination virtual node corresponding to the destination node device;
    第二确定模块,用于根据所述多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道,所述传输通道由至少两个节点设备按照顺序连接而成;The second determining module is configured to determine a transmission channel from the starting node device to the destination node device according to the configuration information of the multiple virtual nodes and the node device corresponding to each virtual node, the transmission channel is At least two node devices are connected in order;
    第一发送模块,用于向所述传输通道上的每个节点设备下发所述传输通道,由所述传输通道上的每个节点设备进行数据传输,以将所述起始节点设备的数据汇聚到所述目的节点设备中。The first sending module is used to deliver the transmission channel to each node device on the transmission channel, and each node device on the transmission channel performs data transmission to transfer the data of the starting node device Converged into the destination node device.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    连接模块,用于对于所述多个虚拟节点中的任两个虚拟节点,当其中一个虚拟节点的输出设备的设备标识与另一个虚拟节点的输入设备的设备标识相同时,将所述任两个虚拟节点连接,得到虚拟拓扑结构,所述虚拟拓扑结构由所述多个虚拟节点连接构成,且所述虚拟拓扑结构用于描述所述多个节点设备的连接关系;The connection module is configured to, for any two virtual nodes of the plurality of virtual nodes, when the device identification of the output device of one of the virtual nodes is the same as the device identification of the input device of the other virtual node, Virtual nodes are connected to obtain a virtual topology structure, the virtual topology structure is composed of the multiple virtual node connections, and the virtual topology structure is used to describe the connection relationship of the multiple node devices;
    所述第二确定模块包括:The second determination module includes:
    查找子模块,用于在所述虚拟拓扑结构中,查找从所述起始虚拟节点到达所述目的虚拟节点的虚拟传输通道;A search submodule, used to search for a virtual transmission channel from the starting virtual node to the destination virtual node in the virtual topology structure;
    确定子模块,用于根据所述虚拟传输通道上的每个虚拟节点对应的节点设备,确定从所述起始节点设备到达所述目的节点设备的传输通道。The determination submodule is configured to determine a transmission channel from the starting node device to the destination node device according to the node device corresponding to each virtual node on the virtual transmission channel.
  15. 根据权利要求13所述的装置,其特征在于,所述第一发送模块包括:The apparatus according to claim 13, wherein the first sending module comprises:
    发送子模块,用于向所述传输通道上的每个节点设备下发所述传输通道和监控任务,由所述传输通道上的每个节点设备进行数据传输,并对本端的数据传输过程进行监控,向所述控制设备发送数据传输结果。The sending submodule is used to deliver the transmission channel and the monitoring task to each node device on the transmission channel, each node device on the transmission channel performs data transmission, and monitors the data transmission process at the local end To send the data transmission result to the control device.
  16. 根据权利要求13所述的装置,其特征在于,所述配置信息还包括数据处理链,所述数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;所述装置还包括:The apparatus according to claim 13, wherein the configuration information further includes a data processing chain, the data processing chain is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; The device also includes:
    第二发送模块,用于向每个节点设备发送对应的虚拟节点的数据处理链,以使每个节点设备在接收到待传输的数据时,采用所述数据处理链中的数据处理方式对所述数据进行处理。The second sending module is used to send the data processing chain of the corresponding virtual node to each node device, so that each node device adopts the data processing method in the data processing chain to receive the data to be transmitted The data is processed.
  17. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    第一更改模块,用于当所述起始节点设备是所述第一数据汇聚系统中的节点设备,所述目的节点设备是第二数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过第一端口设备与所述第二数据汇聚系统的第二端口设备连接时,将所述数据汇聚指令中的目的节点设备的节点标识更改为所述第一端口设备的节点标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述第一端口设备的传输通道,将所述起始节点设备的数据先汇聚到所述第一端口设备中,再通过所述第一端口设备发送给所述第二端口设备,通过所述第二端口设备汇聚到所述第二数据汇聚系统中的所述目的节点设备。The first modification module is used when the starting node device is a node device in the first data aggregation system, the destination node device is a node device in the second data aggregation system, and the first data is aggregated When the system is connected to the second port device of the second data aggregation system through the first port device, the node identifier of the destination node device in the data aggregation instruction is changed to the node identifier of the first port device, based on The modified data aggregation instruction determines the transmission channel from the starting node device to the first port device, and aggregates the data of the starting node device into the first port device before passing the The first port device sends to the second port device, and converges to the destination node device in the second data aggregation system through the second port device.
  18. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    第二更改模块,用于当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是所述第一数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过第一端口设备与所述第二数据汇聚系统的第二端口设备连接时,接收所述第一端口设备发送的第一数据汇聚指令,所述第一数据汇聚指令中的起始节点设备的设备标识为所述第一端口设备的设备标识;The second modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes the first When the port device is connected to the second port device of the second data aggregation system, it receives the first data aggregation instruction sent by the first port device, and the device identifier of the starting node device in the first data aggregation instruction is The device identification of the first port device;
    所述第二数据汇聚系统中的控制设备用于当接收到包括所述起始节点设备 的设备标识和所述目的节点设备的设备标识的第二数据汇聚指令时,将所述目的节点设备的设备标识更改为所述第二端口设备的设备标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述第二端口设备的传输通道,将所述起始节点设备的数据汇聚到所述第二端口设备中,由所述第二端口设备将所述数据发送给所述第一端口设备,由所述第一端口设备向所述第一数据汇聚系统中的控制设备发送所述第一数据汇聚指令。The control device in the second data aggregation system is configured to, when receiving the second data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, The device identification is changed to the device identification of the second port device to determine the transmission channel from the starting node device to the second port device based on the changed data aggregation instruction, and change the starting node device's Data is aggregated into the second port device, the second port device sends the data to the first port device, and the first port device sends the data to the control device in the first data aggregation system Sending the first data aggregation instruction.
  19. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    第三更改模块,用于当所述起始节点设备是所述第一数据汇聚系统中的节点设备,所述目的节点设备是第二数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过网闸设备与所述第二数据汇聚系统隔离时,将所述数据汇聚指令中的目的节点设备更改为所述网闸设备,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述网闸设备的传输通道,将所述起始节点设备的数据先汇聚到所述网闸设备中,再通过所述网闸设备将所述数据汇聚到所述第二数据汇聚系统中的所述目的节点设备。The third modification module is used when the starting node device is a node device in the first data aggregation system, the destination node device is a node device in the second data aggregation system, and the first data is aggregated When the system is isolated from the second data aggregation system by a gatekeeper device, the destination node device in the data aggregation instruction is changed to the gatekeeper device to determine the starting point from the modified data aggregation instruction The node device reaches the transmission channel of the gatekeeper device, and the data of the starting node device is first aggregated into the gatekeeper device, and then the data is aggregated to the second data aggregation through the gatekeeper device The destination node device in the system.
  20. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    第四更改模块,用于当起始节点设备是第二数据汇聚系统中的节点设备,目的节点设备是所述第一数据汇聚系统中的节点设备,且所述第一数据汇聚系统通过网闸设备与所述第二数据汇聚系统隔离时,接收所述网闸设备发送的第一数据汇聚指令,所述第一数据汇聚指令中的起始节点设备的设备标识为所述网闸设备的设备标识;The fourth modification module is used when the starting node device is the node device in the second data aggregation system, the destination node device is the node device in the first data aggregation system, and the first data aggregation system passes through the gatekeeper When the device is isolated from the second data aggregation system, it receives the first data aggregation instruction sent by the gatekeeper device, and the device identifier of the starting node device in the first data aggregation instruction is the device of the gatekeeper device Logo
    所述第二数据汇聚系统中的控制设备用于当接收到包括所述起始节点设备的设备标识和所述目的节点设备的设备标识的第二数据汇聚指令时,将所述目的节点设备的设备标识更改为所述网闸设备的设备标识,以基于更改后的数据汇聚指令,确定从所述起始节点设备到达所述网闸设备的传输通道,将所述起始节点设备的数据汇聚到所述网闸设备中,由所述网闸设备向所述第一数据汇聚系统中的控制设备发送所述第一数据汇聚指令。The control device in the second data aggregation system is configured to, when receiving the second data aggregation instruction including the device identification of the starting node device and the device identification of the destination node device, The device identification is changed to the device identification of the gatekeeper device to determine the transmission channel from the starting node device to the gatekeeper device based on the changed data aggregation instruction and to aggregate the data of the starting node device To the gatekeeper device, the gatekeeper device sends the first data aggregation instruction to the control device in the first data aggregation system.
  21. 一种数据汇聚装置,其特征在于,应用于第一数据汇聚系统中的任一 节点设备中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述装置包括:An apparatus for data aggregation is characterized in that it is applied to any node device in a first data aggregation system. The first data aggregation system includes a plurality of node devices and the control device. To connect multiple node devices, the apparatus includes:
    接收模块,用于接收所述控制设备下发的传输通道,所述传输通道由所述控制设备根据多个虚拟节点的配置信息以及每个虚拟节点对应的节点设备确定,所述配置信息根据在与所述控制设备连接的配置设备上输入的配置指令确定,至少包括输入设备的设备标识和输出设备的设备标识,所述传输通道由至少两个节点设备按照顺序连接而成,且包括本端节点设备;The receiving module is configured to receive a transmission channel delivered by the control device, and the transmission channel is determined by the control device according to configuration information of multiple virtual nodes and a node device corresponding to each virtual node, and the configuration information is based on The configuration instruction input on the configuration device connected to the control device is determined to include at least the device identification of the input device and the device identification of the output device, the transmission channel is formed by connecting at least two node devices in sequence, and includes the local end Node equipment
    第一发送模块,用于当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,将所述数据发送给所述本端节点设备在所述传输通道中的下一个节点设备,以将所述数据汇聚到所述传输通道上的目的节点设备中。A first sending module, configured to send the data to the local node device in the transmission channel when receiving the data sent by the previous node device of the local node device in the transmission channel The next node device to aggregate the data into the destination node device on the transmission channel.
  22. 根据权利要求21所述的装置,其特征在于,所述配置信息还包括数据处理链,所述数据处理链用于规定对应的节点设备接收到待传输的数据时的至少一种数据处理方式;所述第一发送模块包括:The apparatus according to claim 21, wherein the configuration information further includes a data processing chain, and the data processing chain is used to specify at least one data processing method when the corresponding node device receives the data to be transmitted; The first sending module includes:
    处理子模块,用于当接收到所述数据时,采用所述数据处理链中的数据处理方式对所述数据进行处理;A processing submodule, configured to process the data by using the data processing method in the data processing chain when receiving the data;
    发送子模块,用于将处理后的数据发送给所述本端节点设备在所述传输通道中的下一个节点设备。The sending submodule is used to send the processed data to the next node device in the transmission channel of the local node device.
  23. 根据权利要求21所述的装置,其特征在于,所述装置还包括:The device according to claim 21, wherein the device further comprises:
    第二发送模块,用于向所述控制设备发送数据汇聚指令,所述数据汇聚指令包括起始节点设备的设备标识和目的节点设备的设备标识,且所述起始节点设备为所述本端节点设备,以使所述控制设备确定从所述本端节点设备到达所述目的节点设备的传输通道。A second sending module, configured to send a data aggregation instruction to the control device, the data aggregation instruction includes a device identifier of a start node device and a device identifier of a destination node device, and the start node device is the local end A node device, so that the control device determines a transmission channel from the local node device to the destination node device.
  24. 根据权利要求21所述的装置,其特征在于,所述装置还包括:The device according to claim 21, wherein the device further comprises:
    存储模块,用于如果所述本端节点设备为所述传输通道中的目的节点设备,当接收到所述本端节点设备在所述传输通道中的上一个节点设备发送的数据时,存储所述数据。The storage module is used for storing the data when the local node device is the destination node device in the transmission channel when receiving the data sent by the local node device on the previous node device in the transmission channel述 数据。 The data.
  25. 一种控制设备,其特征在于,应用于第一数据汇聚系统中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接,所述控制设备包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求1至8中任一个权利要求所述的数据汇聚方法。A control device, characterized in that it is applied to a first data aggregation system, the first data aggregation system includes a plurality of node devices and the control device, the control devices are respectively connected to the plurality of node devices, The control device includes a processor and a memory, at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the data according to any one of claims 1 to 8. Convergence method.
  26. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求1至8中任一个权利要求所述的数据汇聚方法。A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement any one of claims 1 to 8. Data aggregation method.
  27. 一种节点设备,其特征在于,应用于第一数据汇聚系统中,所述第一数据汇聚系统包括多个节点设备和所述控制设备,所述控制设备分别与所述多个节点设备连接;A node device, characterized in that it is applied to a first data aggregation system, the first data aggregation system includes a plurality of node devices and the control device, and the control device is respectively connected to the plurality of node devices;
    本端节点设备包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求9至12中任一个权利要求所述的数据汇聚方法。The local node device includes a processor and a memory, and the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the data according to any one of claims 9 to 12. Convergence method.
  28. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求9至12中任一个权利要求所述的数据汇聚方法。A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement any one of claims 9 to 12. Data aggregation method.
  29. 一种数据汇聚系统,其特征在于,所述数据汇聚系统包括多个节点设备和控制设备,所述控制设备分别与所述多个节点设备连接;A data aggregation system, characterized in that the data aggregation system includes multiple node devices and control devices, and the control devices are respectively connected to the multiple node devices;
    所述控制设备为如权利要求25所述的控制设备;The control device is the control device according to claim 25;
    每个节点设备为如权利要求27所述的节点设备。Each node device is the node device according to claim 27.
PCT/CN2019/111471 2018-10-16 2019-10-16 Data aggregation method, device, equipment, storage medium and system WO2020078381A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811205313.5 2018-10-16
CN201811205313.5A CN111064591B (en) 2018-10-16 2018-10-16 Data aggregation method, device, equipment, storage medium and system

Publications (1)

Publication Number Publication Date
WO2020078381A1 true WO2020078381A1 (en) 2020-04-23

Family

ID=70283337

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111471 WO2020078381A1 (en) 2018-10-16 2019-10-16 Data aggregation method, device, equipment, storage medium and system

Country Status (2)

Country Link
CN (1) CN111064591B (en)
WO (1) WO2020078381A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791955A (en) * 2021-09-17 2021-12-14 济南浪潮数据技术有限公司 Data aggregation device and method for monitoring system and server
WO2022178976A1 (en) * 2021-02-26 2022-09-01 平安科技(深圳)有限公司 Information processing method and apparatus based on big data, and related devices

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782906A (en) * 2020-06-29 2020-10-16 杭州海康威视数字技术股份有限公司 Data object aggregation method and device, electronic equipment and storage medium
CN114070787B (en) * 2021-11-15 2022-10-04 南京航空航天大学 Police service big data oriented data aggregation method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155136A (en) * 2006-09-29 2008-04-02 华为技术有限公司 Method and system for implementing virtual gateway and virtual subnet
CN101515944A (en) * 2008-02-22 2009-08-26 华为技术有限公司 Method, system and device for P2P service access
CN104283780A (en) * 2014-09-26 2015-01-14 深圳市华为技术软件有限公司 Method and device for establishing data transmission route
US20170208020A1 (en) * 2014-07-16 2017-07-20 Nec Corporation Communication control apparatus, communication system, communication control method, and medium
CN107249173A (en) * 2017-06-21 2017-10-13 深圳市盛路物联通讯技术有限公司 The method for handover control and system of a kind of Internet of Things communication pattern

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695034B (en) * 2009-10-09 2011-09-14 清华大学 Device and method for adjusting monitoring parameter of WEB service
EP2945320B1 (en) * 2013-02-06 2018-01-31 Huawei Technologies Co., Ltd. Method, device and routing system for data transmission of network virtualization
CN106162792B (en) * 2015-04-03 2019-07-12 清华大学 The limited many-one data routing method of wireless sensor network interior joint degree
CN104936131B (en) * 2015-05-06 2018-07-24 太原理工大学 A kind of data assemblage method for wireless sensor network
US11005750B2 (en) * 2016-08-05 2021-05-11 Huawei Technologies Co., Ltd. End point to edge node interaction in wireless communication networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155136A (en) * 2006-09-29 2008-04-02 华为技术有限公司 Method and system for implementing virtual gateway and virtual subnet
CN101515944A (en) * 2008-02-22 2009-08-26 华为技术有限公司 Method, system and device for P2P service access
US20170208020A1 (en) * 2014-07-16 2017-07-20 Nec Corporation Communication control apparatus, communication system, communication control method, and medium
CN104283780A (en) * 2014-09-26 2015-01-14 深圳市华为技术软件有限公司 Method and device for establishing data transmission route
CN107249173A (en) * 2017-06-21 2017-10-13 深圳市盛路物联通讯技术有限公司 The method for handover control and system of a kind of Internet of Things communication pattern

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022178976A1 (en) * 2021-02-26 2022-09-01 平安科技(深圳)有限公司 Information processing method and apparatus based on big data, and related devices
CN113791955A (en) * 2021-09-17 2021-12-14 济南浪潮数据技术有限公司 Data aggregation device and method for monitoring system and server

Also Published As

Publication number Publication date
CN111064591A (en) 2020-04-24
CN111064591B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
WO2020078381A1 (en) Data aggregation method, device, equipment, storage medium and system
CN103236949B (en) Monitoring method, device and the system of a kind of server cluster
US11463511B2 (en) Model-based load balancing for network data plane
US11689606B2 (en) Communication method, system and apparatus
CN111131379A (en) Distributed flow acquisition system and edge calculation method
CN104199957B (en) A kind of implementation method of Redis general-purpose proxies
WO2017113273A1 (en) Software defined data center and scheduling and traffic-monitoring method for service cluster therein
US20150142940A1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN107729147A (en) Data processing method, control node and stream calculation system in stream calculation system
CN103957237A (en) Architecture of elastic cloud
CN103746911A (en) SDN (software defined networking) structure and communication method thereof
CN110636127B (en) Communication processing method and system between information data
US20220400072A1 (en) Method for configuring performance measurement indication information and related device
CN111327483B (en) Equipment nano-tube method, system and storage medium
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
CN107819632A (en) A kind of dynamic load leveling group system based on performance monitoring system and Docker Swarm
CN110727738A (en) Global routing system based on data fragmentation, electronic equipment and storage medium
CN112019604B (en) Edge data transmission method and system
CN115514651B (en) Cloud edge data transmission path planning method and system based on software-defined stacked network
CN116455817A (en) Software-defined cloud network fusion architecture and route implementation method
WO2022042393A1 (en) Configuration error information transmission method and device
US20210004308A1 (en) Data processing method and system
CN114466016B (en) Method and system for realizing dynamic load balancing of data center gateway
CN116055496B (en) Monitoring data acquisition method and device, electronic equipment and storage medium
CN110430101B (en) Service index data acquisition method, device, equipment and system applied to CDN

Legal Events

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

Ref document number: 19874187

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19874187

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19874187

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 06.12.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19874187

Country of ref document: EP

Kind code of ref document: A1