CN103795727A - Data distribution method based on arborescence structure - Google Patents

Data distribution method based on arborescence structure Download PDF

Info

Publication number
CN103795727A
CN103795727A CN201410059109.2A CN201410059109A CN103795727A CN 103795727 A CN103795727 A CN 103795727A CN 201410059109 A CN201410059109 A CN 201410059109A CN 103795727 A CN103795727 A CN 103795727A
Authority
CN
China
Prior art keywords
node
data
configuration
tree
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410059109.2A
Other languages
Chinese (zh)
Other versions
CN103795727B (en
Inventor
刘文展
刘海娟
李兴力
冯士妥
关珍博
夏丛亮
张凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 54 Research Institute
Original Assignee
CETC 54 Research Institute
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 CETC 54 Research Institute filed Critical CETC 54 Research Institute
Priority to CN201410059109.2A priority Critical patent/CN103795727B/en
Publication of CN103795727A publication Critical patent/CN103795727A/en
Application granted granted Critical
Publication of CN103795727B publication Critical patent/CN103795727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a data distribution method based on an arborescence structure, and relates to a data distribution technology in the field of computer network data distribution application. According to the data distribution method based on the arborescence structure, four types of nodes of sources, identification, processing and transmitting are abstracted, and various distribution demands are met quite flexibly by traversing arborescence structure configuration under a certain source node in a depth-first mode according to arborescence combinations of the nodes. The data distribution method based on the arborescence structure has the advantages of being adaptive to transmission protocol increase, message type increase and message standard increase without influencing the distribution functions of original transmission protocols, original message types and original message standards, has the capability of being in seamless compatibility with the original transmission protocols, the original message types and the original message standards, and has the capability of meeting requirements for system expansibility and interface customizability. The data distribution method based on the arborescence structure is especially suitable for the application of distributing data of multiple sources, multiple transmission protocols, multiple message standards and multiple message types through computer networks.

Description

A kind of data distributing method based on tree configuration
Technical field
The present invention relates to a kind of data distributing method based on tree configuration in computer network data delivery applications field, be specially adapted to multi-protocols, polymorphic type, many standards, Data dissemination application that demand is changeable.
Background technology
When information take computer network as main carriers and charge system are transmitted data at present, there is multiple message criteria, use multiple transport protocols, charge system need to receive and send these data by multiple transport protocols as user and the producer of information data, need to resolve according to various message criteria, process, pack these data.Traditional distribution matrix configuration mode can only meet part demand, changeable in actual use distribution requirements makes the software of being responsible for distributed tasks often need to revise, along with the improvement of message criteria, the increase of type of message, the increase of host-host protocol become all the more difficulty to the modification of distribution function.
Summary of the invention
Technical problem to be solved by this invention is exactly to avoid the weak point in above-mentioned background technology and a kind of data distributing method based on tree configuration is provided, the method takes out the node of the Four types such as " source ", " distinguishing ", " processing ", " transmission ", according to the tree-shaped combination of these nodes, travel through the tree configuration under certain source Nodes and realize very flexibly various distribution requirements in the mode of depth-first.
The present invention has advantages of that the host-host protocol of adaptation increases, type of message increases, message criteria increases and do not affect original host-host protocol, type of message, message criteria distribution function, have can with the ability of original host-host protocol, type of message, the seamless compatibility of message criteria, there is the ability that meets system extension and the requirement of interface customizability.
The present invention seeks to realize like this:
Based on a data distributing method for tree configuration, it is characterized in that comprising the following steps:
1. configure the Data dissemination rule of tree: the child node that tree configuration root node is set is multiple source Nodes, is to distinguish the tree that node, processing node, sending node three types node combination in any form under each source Nodes; Described source Nodes is the configuration node that shows Data Source; The described node of distinguishing is to judge whether the attribute of data meets the configuration node of configuration condition; Described processing node is the configuration node of representative data processing method; Described sending node is the configuration node that shows to send object; The configuration node of every type all comprises the configuration parameter of oneself; Distinguish the logical relation that the configuration parameter of node comprises data attribute and value, the configuration parameter of processing node comprises processing method; The configuration parameter of sending node comprises transmission object;
2. distinguish Data Source according to data receiver parameter, receive parameter and comprise host-host protocol, IP and communication port; Determine corresponding source Nodes according to the Data Source of distinguishing, start in the mode of depth-first, the tree source Nodes to be traveled through from source Nodes;
3. distinguish node, processing node and the sending node in the middle of tree processed data according to the executive program of node type configuration; The described executive program that node is corresponding of distinguishing filters the data from father node according to the configuration parameter of this node; The executive program that described processing node is corresponding is changed the data from father node according to the configuration parameter of this node; Executive program corresponding to described sending node according to the configuration parameter of this node to send to the object of appointment from the data of father node;
Complete the Data dissemination based on tree configuration.
Wherein, step travels through specifically and comprises the following steps in the mode of depth-first in 2.:
(201) start traversal from source Nodes, data are delivered to child node from father node in to the ergodic process of tree, as the input of child node;
(202) whether the node that judgement traverses comprises the not child node of traversal, is to carry out (203) step, otherwise forwards (204) step to;
(203) the not child node of traversal of one of traversal, calls routine processes that this node the is corresponding output data from this node father node, judges that result, for very forwarding (202) step to, is that vacation forwards (204) step to; Described distinguish node, processing node, sending node three types node are distinguished a corresponding executive program, each executive program comprises input parameter and Output rusults, input data and configuration parameter that input parameter comprises corresponding node, Output rusults comprises result, demonstration information and output data, wherein result comprises true, false two states, true state shows that the executive program of corresponding node representative runs succeeded and exports data to child node, and vacation shows to carry out failure and no-output data;
(204) return to the father node that traverses node;
(205) whether the node that turns back to of judgement is root node, is to forward (206) step to, otherwise forwards (202) step to take the node that turns back to as the node traversing;
(206) finish traversal.
The present invention's tool compared with background technology has the following advantages:
1 the present invention be different from established rules such as distribution matrix etc. constraint and can combination in any node to meet various distribution requirements.
2 the present invention are extremely strong to the autgmentability of message criteria, host-host protocol, type of message, newly-increased message criteria, host-host protocol, type of message only need to increase that corresponding " source " " distinguished ", " processing ", " transmission " node, and original function is not produced to any impact.
When the system or equipment that 3 the present invention connect at needs meets existing agreement, supporting interface on-site customization, has reduced adaptability of software modification greatly.
4 the present invention can support developer to conclude conventional node combination in actual use procedure, give up irrational node, increase or merge into new node, simplify configuration, raising efficiency.
Accompanying drawing explanation
Fig. 1 is the workflow diagram that the present invention is based on tree configuration distributing data.
Fig. 2 is tree configuration schematic diagram of the present invention.In Fig. 2, originating 1 to source N is source Nodes, and N is greater than 1 natural number, and under source Nodes, for distinguishing the tree that node, processing node and sending node combination in any form, numeral 1 to 10 is the traversal order example of tree under source Nodes.
Embodiment
Referring to figs. 1 through Fig. 2, the present invention takes out the node of the Four types such as " source ", " distinguishing ", " processing ", " transmission ", according to the tree-shaped combination of these nodes, realize very flexibly various distribution requirements with the tree configuration of the corresponding source Nodes of the mode ergodic data of depth-first.Principle of the present invention is take pipeline/filter style as data processing basic framework, under " source " node with tree combination in any " distinguish ", the basic configuration node of " processing ", " transmission " three types, data are from " source " node, be delivered to child node from father node, " distinguish " that node realizes the filtration to data, " processing " node is realized the conversion to data, " transmission " node is realized the transmission to data, can realize diversified distribution requirements to the traversal of node in this tree.
Based on a data distributing method for tree configuration, it is characterized in that comprising the following steps:
1. configure the Data dissemination rule of tree: the child node that tree configuration root node is set is multiple source Nodes, is to distinguish the tree that node, processing node, sending node three types node combination in any form under each source Nodes; Described source Nodes is the configuration node that shows Data Source; The described node of distinguishing is to judge whether the attribute of data meets the configuration node of configuration condition; Described processing node is the configuration node of representative data processing method; Described sending node is the configuration node that shows to send object; The configuration node of every type all comprises the configuration parameter of oneself; Distinguish the logical relation that the configuration parameter of node comprises data attribute and value, the configuration parameter of processing node comprises processing method; The configuration parameter of sending node comprises transmission object.
2. distinguish Data Source according to data receiver parameter, receive parameter and comprise host-host protocol, IP and communication port; Determine corresponding source Nodes according to the Data Source of distinguishing, start in the mode of depth-first, the tree source Nodes to be traveled through from source Nodes; Host-host protocol, IP and the communication port configuration of embodiment to all source Nodes under host-host protocol, source IP and communication port and the root node of input data compares, if with the configuration consistency of certain source Nodes, show this input data from system, software or the equipment of this node representative and process from this source Nodes.
Wherein, step travels through specifically and comprises the following steps in the mode of depth-first in 2.:
(201) start traversal from source Nodes, data are delivered to child node from father node in to the ergodic process of tree, as the input of child node.Embodiment source Nodes is not processed data as start node, only transfers data to child node.
(202) whether the node that judgement traverses comprises the not child node of traversal, is to carry out (203) step, otherwise forwards (204) step to.
(203) the not child node of traversal of one of traversal, calls routine processes that this node the is corresponding output data from this node father node, judges that result, for very forwarding (202) step to, is that vacation forwards (204) step to; Described distinguish node, processing node, sending node three types node are distinguished a corresponding executive program, each executive program comprises input parameter and Output rusults, input data and configuration parameter that input parameter comprises corresponding node, Output rusults comprises result, demonstration information and output data, wherein result comprises true, false two states, true state shows that the executive program of corresponding node representative runs succeeded and exports data to child node, and vacation shows to carry out failure and no-output data.
(204) return to the father node that traverses node.
(205) whether the node that turns back to of judgement is root node, is to forward (206) step to, otherwise forwards (202) step to take the node that turns back to as the node traversing.If the node that embodiment turns back to is root node, show that the tree traversal under source Nodes is complete.
(206) finish traversal.
3. distinguish node, processing node and the sending node in the middle of tree processed data according to the executive program of node type configuration; The described executive program that node is corresponding of distinguishing filters the data from father node according to the configuration parameter of this node; The executive program that described processing node is corresponding is changed the data from father node according to the configuration parameter of this node; Executive program corresponding to described sending node according to the configuration parameter of this node to send to the object of appointment from the data of father node.
Complete the Data dissemination based on tree configuration.

Claims (2)

1. the data distributing method based on tree configuration, is characterized in that comprising the following steps:
1. configure the Data dissemination rule of tree: the child node that tree configuration root node is set is multiple source Nodes, is to distinguish the tree that node, processing node, sending node three types node combination in any form under each source Nodes; Described source Nodes is the configuration node that shows Data Source; The described node of distinguishing is to judge whether the attribute of data meets the configuration node of configuration condition; Described processing node is the configuration node of representative data processing method; Described sending node is the configuration node that shows to send object; The configuration node of every type all comprises the configuration parameter of oneself; Distinguish the logical relation that the configuration parameter of node comprises data attribute and value, the configuration parameter of processing node comprises processing method; The configuration parameter of sending node comprises transmission object;
2. distinguish Data Source according to data receiver parameter, receive parameter and comprise host-host protocol, IP and communication port; Determine corresponding source Nodes according to the Data Source of distinguishing, start in the mode of depth-first, the tree source Nodes to be traveled through from source Nodes;
3. distinguish node, processing node and the sending node in the middle of tree processed data according to the executive program of node type configuration; The described executive program that node is corresponding of distinguishing filters the data from father node according to the configuration parameter of this node; The executive program that described processing node is corresponding is changed the data from father node according to the configuration parameter of this node; Executive program corresponding to described sending node according to the configuration parameter of this node to send to the object of appointment from the data of father node;
Complete the Data dissemination based on tree configuration.
2. a kind of data distributing method based on tree configuration according to claim 2, is characterized in that: step travels through specifically and comprises the following steps in the mode of depth-first in 2.:
(201) start traversal from source Nodes, data are delivered to child node from father node in to the ergodic process of tree, as the input of child node;
(202) whether the node that judgement traverses comprises the not child node of traversal, is to carry out (203) step, otherwise forwards (204) step to;
(203) the not child node of traversal of one of traversal, calls routine processes that this node the is corresponding output data from this node father node, judges that result, for very forwarding (202) step to, is that vacation forwards (204) step to; Described distinguish node, processing node, sending node three types node are distinguished a corresponding executive program, each executive program comprises input parameter and Output rusults, input data and configuration parameter that input parameter comprises corresponding node, Output rusults comprises result, demonstration information and output data, wherein result comprises true, false two states, true state shows that the executive program of corresponding node representative runs succeeded and exports data to child node, and vacation shows to carry out failure and no-output data;
(204) return to the father node that traverses node;
(205) whether the node that turns back to of judgement is root node, is to forward (206) step to, otherwise forwards (202) step to take the node that turns back to as the node traversing;
(206) finish traversal.
CN201410059109.2A 2014-02-21 2014-02-21 A kind of data distributing method based on tree configuration Active CN103795727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410059109.2A CN103795727B (en) 2014-02-21 2014-02-21 A kind of data distributing method based on tree configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410059109.2A CN103795727B (en) 2014-02-21 2014-02-21 A kind of data distributing method based on tree configuration

Publications (2)

Publication Number Publication Date
CN103795727A true CN103795727A (en) 2014-05-14
CN103795727B CN103795727B (en) 2016-09-28

Family

ID=50671013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410059109.2A Active CN103795727B (en) 2014-02-21 2014-02-21 A kind of data distributing method based on tree configuration

Country Status (1)

Country Link
CN (1) CN103795727B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644103A (en) * 2017-10-16 2018-01-30 北京锐安科技有限公司 It is a kind of can tracing information source information storage method and system
CN109922009A (en) * 2019-01-25 2019-06-21 北京临近空间飞行器系统工程研究所 A kind of 1553B bus message distribution configuration unit based on data characteristics

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1138382C (en) * 2001-05-29 2004-02-11 华为技术有限公司 Tree service distribution method for transmission products
CN103051509B (en) * 2012-08-03 2015-04-22 北京航空航天大学 Tree-structure-based initialization method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644103A (en) * 2017-10-16 2018-01-30 北京锐安科技有限公司 It is a kind of can tracing information source information storage method and system
CN109922009A (en) * 2019-01-25 2019-06-21 北京临近空间飞行器系统工程研究所 A kind of 1553B bus message distribution configuration unit based on data characteristics
CN109922009B (en) * 2019-01-25 2022-07-29 北京临近空间飞行器系统工程研究所 1553B bus message distribution configuration unit based on data characteristics

Also Published As

Publication number Publication date
CN103795727B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN103020024B (en) A kind of file layout change-over method
CN109451065A (en) A kind of soft load balancing shunts automated system and its operation method
CN105245445A (en) Internet of things gateway
CN109582289B (en) Method, system, storage medium and processor for processing rule flow in rule engine
CN107947977B (en) A kind of configuration method of interchanger, device, electronic equipment and storage medium
CN104125087A (en) Alarm information processing method and device
CN103199968A (en) Sending method of messages and system
CN105278960A (en) Process automation method and system in remote sensing application
CN104158642A (en) Method and system for providing backup for software defined network controller
WO2013152569A1 (en) Planning method for node clock synchronization in mesh network
CN103780425A (en) A method and a controller device for configuring a software-defined network
CN105897797A (en) Massive heterogeneous data access and standardization system
CN104504010B (en) The data collecting system and its acquisition method of a kind of multi-to-multi
US20070088756A1 (en) Data consolidation
CN105893162A (en) Integration method of multiple medical information systems on the basis of automatic routing of message
CN103795727A (en) Data distribution method based on arborescence structure
CN103957268A (en) Rule-driven data transmission method
CN105354324A (en) HC-SQL-based tree structure system and implementation method thereof
CN104219280B (en) A kind of intelligent use data transmission channel
CN102769495B (en) A kind of optical fiber access network equipment communication means, Apparatus and system
KR20130068248A (en) Configurating method of network topology and routing method for swarm robot
CN102368747B (en) In order to provide the method and system of the information of reaching the standard grade in instant messaging
CN103763325A (en) Method for building IP security product development environment
US20220224591A1 (en) Network management apparatus, method, and program
CN103152428A (en) Method for carrying out service communication among nodes on cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant