[go: up one dir, main page]

CN100349418C - Method for creating tree structure of communication devices - Google Patents

Method for creating tree structure of communication devices Download PDF

Info

Publication number
CN100349418C
CN100349418C CNB200410101703XA CN200410101703A CN100349418C CN 100349418 C CN100349418 C CN 100349418C CN B200410101703X A CNB200410101703X A CN B200410101703XA CN 200410101703 A CN200410101703 A CN 200410101703A CN 100349418 C CN100349418 C CN 100349418C
Authority
CN
China
Prior art keywords
node
information
tree structure
current processing
communication device
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.)
Expired - Fee Related
Application number
CNB200410101703XA
Other languages
Chinese (zh)
Other versions
CN1798055A (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.)
Huawei Technologies Service Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200410101703XA priority Critical patent/CN100349418C/en
Publication of CN1798055A publication Critical patent/CN1798055A/en
Application granted granted Critical
Publication of CN100349418C publication Critical patent/CN100349418C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a method for creating a tree structure for a communication device. The method mainly comprises the following steps: firstly, the father node information, the located hierarchical information and the node information of each node which respectively corresponds to each functional blocks included in a signal board of a transmission device for each synchronous digital hierarchy SDH are obtained, and are used as node description information; then, each node is calculated and processed according to the father node information, the located hierarchical information and the node information of each node, and a tree structure of a channel image of the signal board of the transmission device for each SDH is generated. Because the present invention adopts the node description information that contains more information, compared with the time efficiency of the prior art, the generating algorithm of the tree structure provided by the present invention based on the node description information is more greatly improved.

Description

Generate the method for tree structure of communication devices
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of method that generates tree structure of communication devices.
Background technology
In SDH (Synchronous Digital Hierarchy) transmission network, each veneer of SDH transmission equipment all for being made up of various functional blocks, embodies with hierarchical relationship between each functional block on the network element, forms a tree.In transmission network management system, need show with tree figure intuitively and hierarchical relationship between each functional block carry out daily maintenance management thereby be convenient to the webmaster attendant.
For obtaining described tree, at first need adopt corresponding mode to describe described tree in the webmaster side, then, can calculate according to corresponding description content and obtain corresponding tree.
A kind of SDH transmission equipment veneer passage figure tree describing mode that adopts is as follows at present:
When describing the hierarchical relationship (father and son) of described tree, be to identify by in child node, increasing the father node object.As shown in Figure 1, tree T be by node N1, N2, N3 ... the tree that .Nn forms; Its relationships between nodes is described as: (0, N1), (N1, N2), (N1, N3), (N1, N4), (N2, N5), (N3, N6), (N3, N7) ..., (Nm, Nn).
When concerning between employing aforesaid way description node, can cause some extra repetition search operations in order to generate corresponding tree, therefore, the efficient that generates tree is lower.For example, by in the descriptor (N1, N4) information is merely able to know that its father node is N1, is arranged in which level of tree and then can't directly obtains in the sequential scheduling information with one deck about node N4, obtain if desired, then need further to carry out the repetition search operation.
Owing in generating the computational process of tree, lack some information of spanning tree algorithm needs, as information such as node place levels etc.Therefore, will to cause generating according to it efficient of tree of needs lower for the form described of above-mentioned relationships between nodes.
At present, the another kind of SDH transmission equipment veneer passage figure tree describing mode of employing is as follows:
When describing the hierarchical relationship (father and son) of tree structure, identify by in father node, increasing direct child node tabulation (child node that does not comprise child node) object.Still as shown in Figure 1, tree T be by node N1, N2, N3 ... the tree that .Nn forms, relationship description is between node corresponding: (N1, N2, N3, N4), (N2, N5), (N3, N6, N7), (N4, N8, N9) ..., (Nn).
When concerning between this mode description node, can generate needed tree by the method for top-down traversal.But there is the infull problem of information equally in this method, for example, searches node place level, and relatively requires great effort when searching the father node of node, therefore, still has when generating needed tree the problem that efficient is lower in this method.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the purpose of this invention is to provide a kind of method that generates tree structure of communication devices, by changing the form that concerns between description node, effectively improved the efficient that generates corresponding tree.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of method that generates tree structure of communication devices, comprising:
A, adopt the breadth First traversal method, the father node information of each node of the functional block correspondence that obtaining communication equipment comprises, the hierarchical information at place, and nodal information, and determine first node and last node in each level according to above-mentioned each information;
B, the father node information according to described each node, the hierarchical information at place, nodal information, and first node in each level and last nodal information are handled respectively successively to the node in each layer, generate the tree of communication equipment.
Among the present invention, when described communication equipment was Synchronous Digital Hierarchy SDH transmission equipment veneer, described steps A further comprised:
Adopt the breadth First traversal method to travel through each node that each SDH transmission equipment veneer comprises, obtain the hierarchical information at corresponding father node information, place, and nodal information.
Described nodal information comprises: the numbering of node types and node.
Described step B further comprises:
B1, determine current processing node, and generate node instance;
B2, according to the father node information of described each node, hierarchical information and each level node index at place, obtain the information of all child nodes of current processing node;
B3, described all child node information are added to the child node of current processing node.
Described node instance comprises node status information, and described state information comprises:
Wrapped state, professional load indication, passage user mode, cleared alarm number not, and information is counted in alarm unconfirmed.
Described step B1 also comprises:
When beginning to generate tree, at first root node is defined as current processing node.
Described step B2 also comprises:
Obtain the information of all nodes of following one deck of current processing node place level;
Travel through the information of described node, and determine the information of all child nodes of current processing node according to the father node information of described each node.
Described step B3 also comprises:
B31, judge whether described child node is leaf node, if, execution in step B32 then, otherwise, execution in step B33;
Step B32, judge whether to exist current processing node,, then determine next current processing node if exist, execution in step B1, otherwise, finish this process;
Step B33, described child node are set to current processing node, and execution in step B1.
As seen from the above technical solution provided by the invention, after the present invention adopts said method, the time efficiency that the rise time efficient of passage figure functional block tree and two kinds of trees of the prior art generate is more as shown in table 1, and numerical value unit is ms (millisecond) in the table:
Scale of the project Prior art (one) Prior art two The present invention Improve percentage
50 node balance trees 321 297 203
100 node balance trees 578 493 360 9%
500 node balance trees 986 898 600 33%
As can be seen from Table 1, because the present invention adopted the more comprehensive node descriptor of content, therefore, feasiblely the present invention is based on tree generating algorithm that described node descriptor provides and bigger raising is arranged than the time efficiency of prior art.
Description of drawings
Fig. 1 is the tree schematic diagram;
Fig. 2 is the flow chart of method of the present invention.
Embodiment
Core of the present invention is by changing the describing mode of node relationships, the information that is each node comprises the hierarchical information and the nodal information at his father's nodal information, place, thereby makes that the processing procedure that generates SDH transmission equipment veneer passage figure tree based on this is more simple and convenient.
The specific implementation of the method for the invention specifically may further comprise the steps as shown in Figure 2:
Step 21: adopt the breadth First traversal method to travel through each node of each functional block correspondence that each Synchronous Digital Hierarchy SDH transmission equipment veneer comprises, obtain the father node information of each node, the hierarchical information at place, and nodal information, and be called sequence node;
Concrete each information of node can be described in the following ways:
Node Node (i) be expressed as (Pi, Li, Ni);
Wherein:
Ni be (Ti, Bi), 0=<i<=n-1, n are number of nodes;
Pi is the father node numbering of i node (being functional block);
Li is the level number at i functional block place, and the level of tree number can be from 0 open numbering;
Ni is the information of i functional block itself;
Ti is the type of i functional block;
Bi is the serial number of i functional block, respectively is numbered the numbering of same type of functionality interblock;
The sequence node that each nodal information of all trees that obtain is formed is:
T={Node(0)、Node(1)、......、Node(n-1)};
With Fig. 1 is example, and each node serial number of tree is followed successively by 0 to 10 by N1 to N11, and corresponding sequence node then is:
{(-1,0,(1,1))、(0,1,(2,1))、(0,1,(2,2))、(0,1,(2,3))、(1,2,(3,1))、(2,2,(4,1))、(2,2,(4,2))、(3,2,(5,1))、(3,2,(5,2))、(5,3,(6,1))、(6,3,(7,1))}。
Step 22: travel through the hierarchical information at described each node father node information, place, and nodal information, determine first node and last node in each level, be called the node layer index;
Still as shown in Figure 1, the node layer index of acquisition is:
{(0,0),(1,3),(4,8),(9,9),(10,10)};
The generation processing that with different levels employing recursive fashion is carried out tree be convenient in described node layer index.
Step 23: according to father node information, the hierarchical information at place, the nodal information of described each node, and the information of first node in each level and last node, be that the node layer index carries out computing to each node successively, generate tree;
The processing procedure of described step 23 further comprises:
Step 231: determine current processing node, and generate node instance;
Described node instance comprises node status information, and described state information comprises: wrapped state, professional load indication, passage user mode, cleared alarm number not, and information is counted in alarm unconfirmed;
In this step, when just beginning to generate the computing of tree, then need at first root node afterwards, just can in processing procedure, to determine corresponding current processing node as current processing node.
Step 232:, obtain the information of all nodes of next level of current processing node place level according to the father node information of described each node, hierarchical information and each level node layer index at place;
Step 233: travel through the information of described node, and determine the information of all child nodes of current processing node according to the father node information of described each node;
Step 234: travel through all child nodes of current processing node, be added to the child node of current processing node;
Step 235: judge whether each child node is leaf node, if then execution in step 236, otherwise, execution in step 237;
Step 236: judge whether to exist current processing node,, then determine next current processing node if exist, execution in step 231, otherwise, execution in step 238, promptly process finishes.
Step 237: described child node is set to current processing node, and execution in step 231.
With Fig. 1 is example, is numbered 2 node (0,1, (2,2)) with processing node and for example said process is described:
Because of node serial number is that 2 node is that the N1 node is positioned at the 1st layer (each layer numbering is since 0), thus its down one deck be the 2nd layer, the index that first node of the 2nd layer determining according to the node layer index and last node are determined is (4,8), therefore, search child node in need be in this scope, determine that according to the father node information in this scope corresponding child node has two (2,2, (4,1)), (2,2, (4,2)), to node (2,2, (4,1)), judge to also have child node (5,3, (6,1)), be added to the child node of numbering 2 node, and recurrence handles (2,2, (4,1)).
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (8)

1、一种生成通信设备树型结构的方法,其特征在于,包括:1. A method for generating a tree structure of a communication device, comprising: A、采用广度优先遍历方法,获取通信设备包括的各功能块对应的各节点的父节点信息、所在的层次信息,及节点信息,并根据所述各信息确定各层次中的第一个节点和最后一个节点;A. Adopt the breadth-first traversal method to obtain the parent node information, layer information, and node information of each node corresponding to each functional block included in the communication device, and determine the first node and node in each layer according to the information. the last node; B、根据所述的各节点的父节点信息、所在的层次信息,节点信息,以及各层次中的第一个节点和最后一个节点信息,对各层中的节点分别依次进行处理,生成通信设备的树型结构。B. According to the parent node information of each node, the layer information where it is located, the node information, and the first node and last node information in each layer, the nodes in each layer are respectively processed sequentially to generate a communication device tree structure. 2、根据权利要求1所述的生成通信设备树型结构的方法,其特征在于,当所述的通信设备为同步数字序列SDH传输设备单板时,所述的步骤A进一步包括:2. The method for generating a tree structure of communication equipment according to claim 1, wherein when said communication equipment is a synchronous digital sequence SDH transmission equipment single board, said step A further comprises: 采用广度优先遍历方法遍历各SDH传输设备单板包括的各节点,获取相应的父节点信息、所在的层次信息,及节点信息。A breadth-first traversal method is used to traverse each node included in each SDH transmission equipment board, and obtain corresponding parent node information, layer information, and node information. 3、根据权利要求1或2所述的生成通信设备树型结构的方法,其特征在于,所述的节点信息包括:3. The method for generating a tree structure of a communication device according to claim 1 or 2, wherein the node information includes: 节点的类型和节点的编号。The type of node and the number of the node. 4、根据权利要求3所述的生成通信设备树型结构的方法,其特征在于,所述的步骤B进一步包括:4. The method for generating a tree structure of a communication device according to claim 3, wherein said step B further comprises: B1、确定当前处理节点,并生成节点实例;B1. Determine the current processing node and generate a node instance; B2、根据所述的各节点的父节点信息、所在的层次信息及各层次节点索引,获取当前处理节点的所有子节点的信息;B2. Obtain information of all child nodes of the current processing node according to the parent node information of each node, the layer information where it is located, and the node indexes of each layer; B3、将所述的所有子节点信息添加为当前处理节点的子节点。B3. Add all the child node information as child nodes of the current processing node. 5、根据权利要求4所述的生成通信设备树型结构的方法,其特征在于,所述的节点实例包括节点状态信息,所述状态信息包括:5. The method for generating a tree structure of a communication device according to claim 4, wherein the node instance includes node status information, and the status information includes: 环回状态、业务装载指示、通道使用状态、未清除告警数,以及未确认告警数信息。Loopback status, service loading indication, channel usage status, number of uncleared alarms, and number of unacknowledged alarms. 6、根据权利要求4所述的生成通信设备树型结构的方法,其特征在于,所述步骤B1还包括:6. The method for generating a communication device tree structure according to claim 4, characterized in that said step B1 further comprises: 当开始生成树型结构时,首先将根节点确定为当前处理节点。When starting to generate a tree structure, first determine the root node as the current processing node. 7、根据权利要求4所述的生成通信设备树型结构的方法,其特征在于,所述步骤B2还包括:7. The method for generating a tree structure of a communication device according to claim 4, wherein said step B2 further comprises: 获取当前处理节点所在层次的下一层的所有节点的信息;Obtain the information of all nodes in the next layer of the current processing node; 遍历所述节点的信息,并根据所述的各节点的父节点信息确定当前处理节点的所有子节点的信息。The information of the nodes is traversed, and the information of all child nodes of the current processing node is determined according to the information of the parent nodes of each node. 8、根据权利要求4所述的生成通信设备树型结构的方法,其特征在于,所述步骤B3还包括:8. The method for generating a tree structure of a communication device according to claim 4, wherein said step B3 further comprises: 步骤B31、判断所述子节点是否为叶子节点,如果是,则执行步骤B32,否则,执行步骤B33;Step B31, judging whether the child node is a leaf node, if yes, then execute step B32, otherwise, execute step B33; 步骤B32、判断是否存在当前处理节点,如果存在,则确定下一个当前处理节点,执行步骤B1,否则,结束该过程;Step B32, judging whether there is a current processing node, if yes, then determine the next current processing node, and execute step B1, otherwise, end the process; 步骤B33、将所述子节点设置为当前处理节点,并执行步骤B1。Step B33. Set the child node as the current processing node, and execute step B1.
CNB200410101703XA 2004-12-22 2004-12-22 Method for creating tree structure of communication devices Expired - Fee Related CN100349418C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410101703XA CN100349418C (en) 2004-12-22 2004-12-22 Method for creating tree structure of communication devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410101703XA CN100349418C (en) 2004-12-22 2004-12-22 Method for creating tree structure of communication devices

Publications (2)

Publication Number Publication Date
CN1798055A CN1798055A (en) 2006-07-05
CN100349418C true CN100349418C (en) 2007-11-14

Family

ID=36818851

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410101703XA Expired - Fee Related CN100349418C (en) 2004-12-22 2004-12-22 Method for creating tree structure of communication devices

Country Status (1)

Country Link
CN (1) CN100349418C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413607B (en) * 2011-08-30 2014-10-08 南京博络克信息技术服务有限公司 Wireless sensor network (WSN)-based illumination monitoring system and implementation method for group control command of illumination monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567812B1 (en) * 2000-09-27 2003-05-20 Siemens Aktiengesellschaft Management of query result complexity using weighted criteria for hierarchical data structuring
CN1462004A (en) * 2002-05-31 2003-12-17 思科技术公司 Method and device for producing and using improved tree-shape bit map data structure
US20040215609A1 (en) * 2003-04-25 2004-10-28 Yoshihisa Takatsu Communication control apparatus and method for searching an internet protocol address
CN1614927A (en) * 2004-11-18 2005-05-11 北京锐安科技有限公司 Method for realizing tree-shaped structure in B/S structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567812B1 (en) * 2000-09-27 2003-05-20 Siemens Aktiengesellschaft Management of query result complexity using weighted criteria for hierarchical data structuring
CN1462004A (en) * 2002-05-31 2003-12-17 思科技术公司 Method and device for producing and using improved tree-shape bit map data structure
US20040215609A1 (en) * 2003-04-25 2004-10-28 Yoshihisa Takatsu Communication control apparatus and method for searching an internet protocol address
CN1614927A (en) * 2004-11-18 2005-05-11 北京锐安科技有限公司 Method for realizing tree-shaped structure in B/S structure

Also Published As

Publication number Publication date
CN1798055A (en) 2006-07-05

Similar Documents

Publication Publication Date Title
CN102710488B (en) Method for realizing virtual network mapping
CN105677918A (en) Distributed crawler architecture based on Kafka and Quartz and implementation method thereof
CN104202183B (en) The method and apparatus that a kind of solution SDN stream ranks configuration conformance updates
CN102136949A (en) Method and system for analyzing alarm correlation based on network and time
CN110471944A (en) Indicator-specific statistics method, system, equipment and storage medium
CN102938708A (en) Alarm transmission mode based alarm correlation analysis system and analysis method thereof
CN111191333B (en) An automatic identification method of distribution network topology based on node electrical distance
CN112991070A (en) Multi-layer stock right penetrating method for financial stock right knowledge large graph
CN114158102B (en) Wireless heterogeneous communication network switching method for feeder automation real-time control
CN103729427B (en) A kind of flow table conversion method based on self-defined multilevel flow table incremental update
CN100445999C (en) A data storage and search method
CN108900520B (en) Live broadcast card pause factor determination method and device, server and storage medium
CN108259195A (en) The determining method and system of the coverage of anomalous event
CN114390626A (en) Network route determining method and device and readable storage medium
CN109933589B (en) Data structure conversion method for data summarization based on ElasticSearch aggregation operation result
CN100349418C (en) Method for creating tree structure of communication devices
CN102355373A (en) Method and device for automatically troubleshooting large convergent point hidden troubles of transmission network
CN104820682B (en) A kind of bullet train demand data example construction method and device
CN114866400A (en) An alarm rule reasoning method based on cache space optimization
CN117498344B (en) Power grid topology path generation method, device, equipment and medium based on graph data
CN1135801C (en) Routing method for signaling No.7 network management system
CN117014286A (en) Resource multistage association method, device, electronic equipment and computer readable storage medium
CN102664802B (en) Self-adaptive multi-constraint path searching method based on feedback
CN113986222B (en) Cloud computing API translation system
CN106528849A (en) Graph query expenditure method for complete historic records

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
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGIES SERVICES CO., LTD.

Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD.

Effective date: 20081010

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20081010

Address after: West of Wangjing Road, Langfang economic and Technological Development Zone, Hebei

Patentee after: Huawei Technoloy Service Co., Ltd.

Address before: Bantian HUAWEI headquarters office building, Longgang District, Shenzhen, Guangdong

Patentee before: Huawei Technologies Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071114

Termination date: 20151222

EXPY Termination of patent right or utility model