The method of broadband communication network topologically sweeping
Technical field
The present invention relates to network topology scanning field, particularly relate to a kind of method of broadband communication network topologically sweeping.
Background technology
The network management of contemporary broadband communication network is substantially based on IP.Unknown in network topology, when the management host of broadband communication network needs scan for networks topological, need utilize IP-based various agreement (such as SNMP) from some known node, obtain father and son's nodal information of each node, the final topology forming whole network.This mode has significant limitation:
1. in broadband communication network, the IP of at least one line node is necessary for known, and for a lot of network, the IP of that node be connected with management host is necessary for known;
2. network topology scanning uses network layer, transport layer communication protocol, higher to the requirement of network quality as the index such as traffic rate, communication delay; Necessary energy network enabled layer, transport layer communication protocol;
3. existing network topologically sweeping method spended time is longer.
Summary of the invention
The present invention aims to provide a kind of scanning process and can start when knowing nothing current network conditions, and the requirement reduced channel quality, network communications capability, the method for the broadband communication network topologically sweeping of the success rate of scan operation when raising communication network channel is severe.
To achieve these goals, a technical scheme provided by the invention is: a kind of method of broadband communication network topologically sweeping, and the transfer of data in scanning process based on link layer protocol transmission, comprises step on broadband communication network:
S1, management host are linked into the arbitrary node of topological network and send an about framing based on data link layer protocol to a virtual address, this is about and is received by the node of this access when framing is transferred to first node of access and no longer to forward, the node of this access reply about framing to management host send with self comprise MAC, IP, father and son's nodal information data link layer return frame, father and son's node of the node of the access returned in frame is joined node listing to be analyzed by management host;
S2, management host, to the inquiry frame of the MAC Address transmission data link layer of the node in node listing to be analyzed, receive the information that comprises MAC, IP, father and son node of node response inquiry frame to management host transmission itself of inquiry frame.
S3, management host upgrade node listing to be analyzed, are removed by the node of confirmation in node listing to be analyzed;
Whether S4, each node judged in node listing to be analyzed are analyzed complete, if node listing to be analyzed still has nodal information, then represent not analyze and completely return step S2, if node listing to be analyzed is sky, represents to analyze and completely enter next step S5;
S5, the network topology end of scan, obtain network topology.
Wherein, the concrete grammar of step S2 is, S21, management host are to the inquiry frame of the MAC Address transmission data link layer of the node in node listing to be analyzed; In S22, network each node to the inquiry frame that object MAC is oneself make reply and send with self comprise MAC, IP, father and son's nodal information the acknowledgement frame of data link layer to management host, the inquiry frame that object MAC is not oneself is forwarded.
Wherein, described virtual address, sends out described about framing for making management host.
Wherein, the concrete grammar of step S3 is, also has an analysis node list in S31, management host, records the node analyzed; S32, when upgrading, node listing to be analyzed compares with analysis node list, the node removing that node listing to be analyzed will repeat in analysis node list.
Wherein, described broadband communication network is broadband power line communication network.
The beneficial effect of the method for broadband communication network topologically sweeping of the present invention is: 1, adopt data link layer as the passage of transfer of data, has broken away from the restriction of IP without the need to network enabled layer and transport layer protocol; 2, scanning process can start when knowing nothing current network conditions; 3, reduce the requirement to channel quality, network communications capability, improve communication network channel severe time scan operation success rate; 4, due in data-link layer transfer data, decrease each node solution frame, the workload of framing makes network topology scan to save time.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for broadband communication network topologically sweeping of the present invention.
Embodiment
By describing technology contents of the present invention, structural feature in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with execution mode.
Refer to Fig. 1, present embodiment is, a kind of method of broadband communication network topologically sweeping, the transfer of data in scanning process on broadband communication network and based on data link layer protocol transmission, comprise step:
S1, management host is linked into the arbitrary node of topological network and sends an about framing based on data link layer protocol to a virtual address, this is about and is received by the node of this access when framing is transferred to first node of access and no longer to forward, the node of this access is replied about framing and is comprised MAC to management host transmission with self, IP, the data link layer of father and son's nodal information return frame, father and son's node of the node of the access returned in frame is joined node listing to be analyzed by management host, wherein, described virtual address is used for making management host send out described about framing, namely, management host can send about framing in broadband communication network, but this transmission needs raw address and destination address just can send successfully, here management host is raw address, but because each address of node in network topology structure is unknown, therefore need to fictionalize an address, so just can solve the problem of destination address, make management host can send out about framing smoothly,
S2, management host, to the inquiry frame of the MAC Address transmission data link layer of the node in node listing to be analyzed, receive the information that comprises MAC, IP, father and son node of node response inquiry frame to management host transmission itself of inquiry frame.Concrete grammar is: S21, management host are to the inquiry frame of the MAC Address transmission data link layer of the node in node listing to be analyzed; In S22, network each node to the inquiry frame that object MAC is oneself make reply and send with self comprise MAC, IP, father and son's nodal information the acknowledgement frame of data link layer to management host, the inquiry frame that object MAC is not oneself is forwarded.
S3, management host upgrade node listing to be analyzed, are removed by the node of confirmation in node listing to be analyzed; Concrete sweep-out method is: also have an analysis node list in S31, management host, records the node analyzed; S32, when upgrading, node listing to be analyzed compares with analysis node list, the node removing that node listing to be analyzed will repeat in analysis node list.
Whether S4, each node judged in node listing to be analyzed are analyzed complete, if node listing to be analyzed still has nodal information, then represent not analyze and completely return step S2, if node listing to be analyzed is sky, represents to analyze and completely enter next step S5;
S5, the network topology end of scan, obtain network topology.
The method of broadband communication network topologically sweeping of the present invention has, and 1, adopt data link layer as the passage of transfer of data, break away from the restriction of IP without the need to network enabled layer and transport layer protocol; 2, scanning process can start when knowing nothing current network conditions; 3, reduce the requirement to channel quality, network communications capability, improve communication network channel severe time scan operation success rate; 4, due in data-link layer transfer data, decrease each node solution frame, the workload of framing makes network topology scan to save time.
In the present embodiment, described broadband communication network is broadband power line communication network, power line is laid extensively, easy to use, but the channel quality of power line itself is lower, if channel overhead is large, the generation of the situations such as network is slow, obliterated data can be caused to the transmission of internet traffic, but based on the data link layer frame of data link layer protocol, the requirement of network data transmission channel is inherently low, and also low to the expense of channel, so just make the network sweep of broadband power line communication network topology have very high practicality.
Principle of the present invention is: management host is linked into the arbitrary node in topological network to be scanned, then this management host sends an about framing to a virtual address, this is about framing and will be access in node reception and forward through access node time, what then this access node replied that about framing sends access node to management host comprises MAC, IP, the information of father and son's node etc., management host is made to obtain father and son's nodal information of access node, after obtaining these information, management host can form a node listing to be analyzed, management host can according to the information of the node in node listing to be analyzed autotelic transmission inquiry frame to above-mentioned node afterwards, then the father and son's nodal information of himself is being sent to management host by these nodes, repeat this process until all nodal informations all obtain, and in above process, the transmission of all frames has all come based on data link layer protocol, and its network line is power line wide-band network.
It should be noted that, the data link layer frame in this enforcement is all that the data link layer protocol of seven layer protocols Network Based carries out transmitting.Described about framing and inquiry frame are all the frames with order, about framing with order do not forward for running into first node and the information such as MAC, IP, father and son's node that comprises of this node sent to management host, inquiry frame with order be arrive after destination node, the information such as MAC, IP, father and son's node that comprises of itself will be sent to management host by destination node.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.