Summary of the invention
The embodiment of the present invention provides a kind of method of network node upgrading, can reduce the complexity of network node upgrading.
Embodiment of the present invention first aspect provides a kind of method of network node upgrading, comprising:
Obtain the sign of the destination node that will upgrade;
According to the sign of described destination node, determine the message path from Centroid to destination node;
The set that establishment comprises the sign of each child node in described message path;
To described destination node, send upgrading message, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.
In conjunction with first aspect, in the possible implementation of the first, the described concrete steps of determining the message path from Centroid to destination node according to the sign of described destination node, comprising:
The version information of inquiry the whole network child node, and the layout of adding up the version information of the whole network child node;
According to the layout of the version of described the whole network child node, determine the message path from Centroid to destination node.
Embodiment of the present invention second aspect provides a kind of method of network node upgrading, comprising:
Receive the upgrading message that also analytical center node sends, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node;
When child node parses the sign of child node self when identical with the sign of destination node, according to described upgrading message, upgrade;
When child node parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.
In conjunction with second aspect, in the possible implementation of the first, described group node determination also comprises after going out the step that the sign of child node self is not identical with the sign of destination node:
To next sub-node, send described upgrading message.
The embodiment of the present invention third aspect provides a kind of Centroid, comprising:
Acquiring unit, for obtaining the sign of the destination node that will upgrade;
Determining unit, determines the message path from Centroid to destination node for the sign of the destination node obtained according to described acquiring unit;
Creating unit, for creating the set that comprises the sign of each child node in the definite message path of described determining unit;
The first transmitting element, for sending upgrading message to described destination node, in described upgrading message, carry the set of the sign of destination node and the sign of each child node that described creating unit creates, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.
In conjunction with the third aspect, in the possible implementation of the first, described determining unit comprises:
Inquiry subelement, for inquiring about the version information of the whole network child node;
Statistics subelement, for adding up the layout of the version information of the whole network child node that described inquiry subelement inquires;
Determine subelement, for the layout of the version of the whole network child node of counting according to described statistics subelement, determine the message path from Centroid to destination node.
Embodiment of the present invention fourth aspect provides a kind of child node, comprising:
Receiving element, for the upgrading message of receiving center node transmission, carries the set of the sign of destination node and the sign of described each child node in described upgrading message;
Resolution unit, the upgrading message sending for resolving Centroid that described receiving element receives;
Upgrading unit, for parsing the sign of child node self when described resolution unit when identical with the sign of destination node, upgrades according to described upgrading message; When described resolution unit parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.
In conjunction with fourth aspect, in the possible implementation of the first, described child node also comprises:
The second transmitting element, in described resolution unit, parse the sign of child node self and the sign of destination node not identical after, to next sub-node, send described upgrading message.
The embodiment of the present invention the 5th aspect provides a kind of network system, comprising: Centroid and a plurality of child node;
Described Centroid is the Centroid described in technique scheme;
Described child node is the child node described in technique scheme.
The embodiment of the present invention adopts the sign of obtaining the destination node that will upgrade; According to the sign of described destination node, determine the message path from Centroid to destination node; The set that establishment comprises the sign of each child node in described message path; To described destination node, send upgrading message, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.Compared with prior art, the method for the node upgrading that the embodiment of the present invention provides, the child node from Centroid to destination node on the path of centre also can be upgraded according to upgrading message, has greatly reduced the complexity of network node upgrading.
Embodiment
The embodiment of the present invention provides a kind of method of network node upgrading, can reduce the complexity of network node upgrading.The embodiment of the present invention also provides corresponding Apparatus and system.Below be elaborated respectively.
In the embodiment of the present invention, Centroid is to have the node that function is controlled in management, and destination node is also in child node.Centroid and child node are all the equipment in network.
Consult Fig. 1, from the angle of Centroid, an embodiment of the method for the network node upgrading that the embodiment of the present invention provides comprises:
101, Centroid obtains the sign of the destination node that will upgrade.
When Centroid will be given certain the child node upgrading in network, first to obtain the sign of the destination node that will upgrade.
102, Centroid is determined the message path from Centroid to destination node according to the sign of described destination node.
103, Centroid creates the set that comprises the sign of each child node in described message path.
Determine after the message path from Centroid to destination node, list the sign of each child node in message path in a set, when the data format of modulation upgrading message, the set that comprises the message of each child node on path is modulated on data format.
104, Centroid sends upgrading message to described destination node, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.
Centroid sends after upgrading message, upgrading message can arrive each child node on path along transmission path, and child node is resolved upgrading message, when the sign of child node self is identical with the sign of destination node, illustrate that this child node is destination node, upgrades according to upgrading message.When parsing the sign of child node self and the sign of destination node is not identical, but in the sign set of child node, whether the version information that further judges self is lower than the version information of upgrading message, when self version information is the version information lower than upgrading message, according to upgrading message, upgrade, and upgrading message is transmitted to next child node.
The embodiment of the present invention adopts the sign of obtaining the destination node that will upgrade; According to the sign of described destination node, determine the message path from Centroid to destination node; The set that establishment comprises the sign of each child node in described message path; To described destination node, send upgrading message, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.Compared with prior art, the method for the node upgrading that the embodiment of the present invention provides, the child node from Centroid to destination node on the path of centre also can be upgraded according to upgrading message, has greatly reduced the complexity of network node upgrading.
Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1, in another embodiment of the method for the network node upgrading that the embodiment of the present invention provides, the described concrete steps of determining the message path from Centroid to destination node according to the sign of described destination node, comprise: the version information of inquiry the whole network child node, and the layout of adding up the version information of the whole network child node; According to the layout of the version of described the whole network child node, determine the message path from Centroid to destination node.
The scheme providing because of the embodiment of the present invention not only can make destination node upgrading, and the child node on path, also can be upgraded during lower than the version information of upgrading message at version information.So Centroid is when determining the transmission path of upgrading message, the version information of the chooser node of can trying one's best is lower than the transmission path of the version number of upgrading message, to guarantee that the child node on transmission path can upgrade.
Consult Fig. 2, from the angle of child node, another embodiment of the method for the network node upgrading that the embodiment of the present invention provides comprises:
201, child node receives the upgrading message that also analytical center node sends, and carries the set of the sign of destination node and the sign of described each child node in described upgrading message.
202, child node parses the sign of child node self when identical with the sign of destination node, according to described upgrading message, upgrades.
203, child node parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.
Centroid sends after upgrading message, upgrading message can arrive each child node on path along transmission path, and child node is resolved upgrading message, when the sign of child node self is identical with the sign of destination node, illustrate that this child node is destination node, upgrades according to upgrading message.When parsing the sign of child node self and the sign of destination node is not identical, but in the sign set of child node, whether the version information that further judges self is lower than the version information of upgrading message, when self version information is the version information lower than upgrading message, according to upgrading message, upgrade.
In the embodiment of the present invention, receive the upgrading message that also analytical center node sends, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node; When child node parses the sign of child node self when identical with the sign of destination node, according to described upgrading message, upgrade; When child node parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.Compared with prior art, the method for the node upgrading that the embodiment of the present invention provides, the child node from Centroid to destination node on the path of centre also can be upgraded according to upgrading message, has greatly reduced the complexity of network node upgrading.
Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 2, in another embodiment of the method for the network node upgrading that the embodiment of the present invention provides, described group node determination also comprises after going out the step that the sign of child node self is not identical with the sign of destination node: to next sub-node, send described upgrading message.
Group node determination go out the sign of child node self not identical with the sign of destination node after, illustrate that upgrading message is not also sent to destination node, continue upgrading message to transmit downwards, to determine that destination node finally receives upgrading message, completes upgrading.
For ease of understanding, the concrete application scenarios of take is below example, describes the detailed process of the method for network node upgrading in the embodiment of the present invention in detail:
Consult Fig. 3, Centroid 30 will be upgraded to the resident message of 62 work song nodes, the sign of source node is just 30 so, the sign of destination node is just 62, Centroid 30 is determined the transmission path of destination node, the set that establishment comprises the sign of each child node in described message path, on transmission path, the set of the sign of each child node just comprises: 690,3,2,47,12,52,86, message version number is the issue number of current upgrading message, Centroid, when the data format of modulation upgrading message, can be modulated according to following table 1;
Table 1: upgrading message data format
Centroid modulates after the data of upgrading message, and this upgrading message is sent.Upgrading message will be covered along network path and be launched by communications, upgrading message by way of all child nodes receiving after upgrading message, all start upgrading message to carry out version parsing, when child node parses the sign of child node self when identical with the sign of destination node, according to described upgrading message, upgrade; When child node parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.Allly be transmitted each intermediate node that path covers and all repeat this operation, until upgrading message grouping arrives destination node.
Consult Fig. 4, an embodiment of the Centroid that the embodiment of the present invention provides comprises:
Acquiring unit 301, for obtaining the sign of the destination node that will upgrade;
Determining unit 302, determines the message path from Centroid to destination node for the sign of the destination node obtained according to described acquiring unit 301;
Creating unit 303, for creating the set that comprises the sign of each child node in the definite message path of described determining unit 302;
The first transmitting element 304, for sending upgrading message to described destination node, in described upgrading message, carry the set of the sign of destination node and the sign of each child node that described creating unit 303 creates, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.
In the embodiment of the present invention, acquiring unit 301 obtains the sign of the destination node that will upgrade; The sign of the destination node that determining unit 302 is obtained according to described acquiring unit 301 is determined the message path from Centroid to destination node; Creating unit 303 creates the set that comprises the sign of each child node in the definite message path of described determining unit 302; The first transmitting element 304 sends upgrading message to described destination node, in described upgrading message, carry the set of the sign of destination node and the sign of each child node that described creating unit 303 creates, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.Compared with prior art, the upgrading message that the Centroid that the embodiment of the present invention provides sends, can make the child node on path middle from source node to destination node also can upgrade according to upgrading message, has greatly reduced the complexity of network node upgrading.
On the basis of embodiment corresponding to above-mentioned Fig. 4, consult Fig. 5, in another embodiment of the Centroid that the embodiment of the present invention provides, described determining unit 302 comprises:
Inquiry subelement 3021, for inquiring about the version information of the whole network child node;
Statistics subelement 3022, for adding up the layout of the version information of the whole network child node that described inquiry subelement 3021 inquires;
Determine subelement 3023, for the layout of the version of the whole network child node of counting according to described statistics subelement 3022, determine the message path from Centroid to destination node.
Consult Fig. 6, an embodiment of the child node that the embodiment of the present invention provides comprises:
Receiving element 401, for the upgrading message of receiving center node transmission, carries the set of the sign of destination node and the sign of described each child node in described upgrading message;
Resolution unit 402, the upgrading message sending for resolving Centroid that described receiving element 401 receives;
Upgrading unit 403, for parsing the sign of child node self when described resolution unit 402 when identical with the sign of destination node, upgrades according to described upgrading message; When described resolution unit 402 parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.
In the embodiment of the present invention, the upgrading message that receiving element 401 receiving center nodes send, carries the set of the sign of destination node and the sign of described each child node in described upgrading message; The upgrading message that the Centroid that the described receiving element 401 of resolution unit 402 parsing receives sends; Upgrading unit 403 parses the sign of child node self when identical with the sign of destination node when described resolution unit 402, according to described upgrading message, upgrades; When described resolution unit 402 parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.Compared with prior art, the child node that the embodiment of the present invention provides can send to destination node upgrading message to upgrade according to source node, has greatly reduced the complexity of network node upgrading.
On the basis of embodiment corresponding to above-mentioned Fig. 6, consult Fig. 7, another embodiment of the child node that the embodiment of the present invention provides also comprises:
The second transmitting element 404, in described resolution unit 402, parse the sign of child node self not identical with the sign of destination node after, to next sub-node, send described upgrading message.
Consult Fig. 8, an embodiment of the network system that the embodiment of the present invention provides comprises: Centroid 30 and a plurality of child node 40;
Described Centroid 30, for obtaining the sign of the destination node that will upgrade; According to the sign of described destination node, determine the message path from Centroid to destination node; The set that establishment comprises the sign of each child node in described message path; To described destination node, send upgrading message, in described upgrading message, carry the set of the sign of destination node and the sign of described each child node, so that the part or all of child node in described each child node need to upgrade time, is upgraded according to described upgrading message.
Described child node 40, for the upgrading message receiving and analytical center node sends, carries the set of the sign of destination node and the sign of described each child node in described upgrading message; When child node parses the sign of child node self when identical with the sign of destination node, according to described upgrading message, upgrade; When child node parses the sign of child node self and the sign of destination node is not identical, and in the set of the sign of described each child node, and the version that described child node is determined self during lower than the version of upgrading message, is upgraded according to described upgrading message.
The network system that the embodiment of the present invention provides, the child node on transmission path also can send to the upgrading message of destination node to upgrade according to source node, has reduced the complexity of network node upgrading.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Method, device and the system of the network node the upgrading above embodiment of the present invention being provided are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.