Summary of the invention
The embodiment of the invention provides a kind of indication message sending method, method of reseptance, equipment and system, and when in order to solve prior art middle and lower reaches equipment outage occuring, the maintainability of network is poor, inefficient problem.
Embodiment of the invention first aspect provides a kind of indication message sending method, comprising: upstream device is determined to cut off the power supply; Described upstream device upstream device sends the outage Indication message, comprises the device descriptive information of described upstream device in the described outage Indication message.
In the possible implementation of the first, according to first aspect, described upstream device sends the recovery Indication message to described upstream equipment after restoring electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
In the possible implementation of the second, in conjunction with first aspect or the possible implementation of the first, described outage Indication message is the dying words message.
In the third possible implementation, in conjunction with the possible implementation of the second, comprise the device descriptive information of described upstream device in the data of described dying words message/filling value field.
In the 4th kind of possible implementation, in conjunction with first aspect arbitrary indication message sending method to the third possible implementation, described device descriptive information comprises: IP address and/or the device name of described upstream device.
Embodiment of the invention second aspect provides a kind of message receival method, comprising: upstream equipment receives the outage Indication message that described upstream device sends after outage, wherein, described outage Indication message carries the device descriptive information of described upstream device; Described upstream equipment obtains the device descriptive information of described upstream device according to described outage Indication message; Upstream equipment reports webmaster with the device descriptive information of described upstream device.
In the possible implementation of the first, according to second aspect, described upstream equipment receives the recovery Indication message that described upstream device sends after restoring electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
In the possible implementation of the second, in conjunction with second aspect or the possible implementation of the first, described outage Indication message is the dying words message.
In the third possible implementation, in conjunction with the possible implementation of the second, comprise described device descriptive information in the data of described dying words message/filling value field.
In the 4th kind of possible implementation, in conjunction with second aspect arbitrary message receival method to the third possible implementation, described device descriptive information comprises: IP address and/or the device name of described upstream device.
The embodiment of the invention third aspect provides a kind of upstream device, comprising: determination module is used for determining that upstream device cuts off the power supply; Sending module is used for upstream device and sends the outage Indication message, comprises the device descriptive information of described upstream device in the described outage Indication message.
In the possible implementation of the first, according to the third aspect, described sending module also is used for sending the recovery Indication message to described upstream equipment after described upstream device restores electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
Embodiment of the invention fourth aspect provides a kind of upstream equipment, comprising: receiver module, be used for receiving the outage Indication message that described upstream device sends after outage, and wherein, described outage indication information carries the device descriptive information of described upstream device; Processing module is used for according to described outage Indication message, obtains the device descriptive information of described upstream device; Reporting module is used for the device descriptive information of described upstream device is reported webmaster.
In the possible implementation of the first, according to fourth aspect, described receiver module also for the recovery Indication message that sends, comprises the device descriptive information of described upstream device in the described recovery Indication message after the described upstream device of reception restores electricity.
The embodiment of the invention the 5th aspect provides a kind of Indication message transmission system, comprises the described upstream equipment of implementation that the described upstream device of the possible implementation of the embodiment of the invention third aspect or the first and embodiment of the invention fourth aspect or the first are possible.
The indication message sending method that the embodiment of the invention provides, method of reseptance, equipment and system, send the outage Indication message that comprises device descriptive information by upstream device, realized that upstream equipment can know that device descriptive information of the upstream device of outage has occured for this according to Indication message, be convenient to network operation, improved efficient.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the flow chart of an embodiment of indication message sending method of the present invention, and as shown in Figure 1, the method for the present embodiment can comprise:
101, upstream device is determined to cut off the power supply;
In the present embodiment, the reason that outage occurs upstream device can be that equipment breaks down, artificially cuts off the power supply or other reason, does not do restriction herein.When outage occured downstream equipment, the control unit of this upstream device (for example, central processor CPU) can be received a level interrupt signal, and according to this level interrupt signal, this upstream device can be determined self to cut off the power supply.
102, described upstream device upstream device sends the outage Indication message, comprises the device descriptive information of described upstream device in the described outage Indication message.
Optionally, upstream device can send to upstream equipment by the Indication message that will cut off the power supply of the electric weight in the upstream device electric capacity.
Optionally, upstream device can generate according to the device descriptive information of described upstream device described outage Indication message.
Optionally, the device descriptive information of this upstream device can comprise at least one in the following information: the device name of the Internet protocol of upstream device (English full name is Internet Protocol, referred to as IP) address and upstream device.Further alternative, the device descriptive information of this upstream device can also comprise: the attribute information of this upstream device, for example, at least one in this upstream device manufacturer and this upstream device model.
After upstream equipment receives the outage Indication message of upstream device transmission, can know which upstream device cuts off the power supply according to the device descriptive information that the outage Indication message carries, thereby report to webmaster.
The method that adopts the present embodiment to provide, when outage occured upstream device, the device descriptive information of meeting upstream device feedback power cutoff device positioned power cutoff device thereby be beneficial to webmaster, is convenient to network operation, has improved efficient.
Fig. 2 is the flow chart of another embodiment of indication message sending method of the present invention, and as shown in Figure 2, the indication message sending method of the present embodiment comprises:
201, upstream device is determined to cut off the power supply;
The present embodiment upstream device determines that the implementation method of generation outage is identical with the implementation method of above-described embodiment 101, repeats no more herein.
202, described upstream device upstream device sends the dying words message, and described dying words message carries the device descriptive information of described upstream device.
Fig. 4 is the dying words frame structure schematic diagram of indication message sending method embodiment of the present invention, and as shown in Figure 4, the dying words message structure of the embodiment of the invention comprises: frame head, data/filling value Data/Pad field and frame detect sequence FCS field.Wherein, frame head comprises: destination address Destination Address field, source address Source Address field, length/type Length/Type field, subtype Subtype field, sign of flag s field and code Code field.After upstream device cuts off the power supply, can upstream device transmission dying words message as shown in Figure 4.
Alternatively, the upstream device device descriptive information that can in the data of dying words message/filling value Data/Pad field, carry this upstream device.
As shown in Figure 4, data/filling value Data/Pad field comprises: local information Local Information TLV, far-end information Remote Information TLV and dying words information D ying Gasp Information TLV.Particularly, this upstream device device descriptive information that can in the Dying of Data/Pad field Gasp Information TLV, carry this upstream device.
After above-described embodiment 102 or 202, the indication message sending method of the present embodiment can also comprise:
Described upstream device sends the recovery Indication message to described upstream equipment after restoring electricity, comprise the device descriptive information of described upstream device in the described recovery Indication message.
Optionally, the above-mentioned recovery Indication message dying words message that can finish sign for the device descriptive information of carrying upstream device and event of failure.
Optionally, in message structure shown in Figure 4, can utilize the Flags field to identify event of failure and finish.Generally, the Flags field is 16bit, therefore, can utilize one of them or several bit to identify and finish fault time.For example, can be set to 0 in the 1bit position, finish with the sign event of failure.
The present embodiment is by carrying the device descriptive information of power cutoff device, when having realized that outage occurs upstream device in the dying words message, upstream equipment can the automatic acquisition power cutoff device device descriptive information, be beneficial to webmaster this power cutoff device is positioned, be convenient to network operation, improved efficient.
Fig. 3 is the flow chart of an embodiment of message receival method of the present invention, and as shown in Figure 3, the Indication message method of reseptance of the present embodiment comprises:
301, upstream equipment receives the outage Indication message that upstream device sends after outage, and wherein, described outage indication information carries the device descriptive information of described upstream device;
Optionally, the device descriptive information of upstream device comprises at least one in the following information: the IP address of upstream device and the device name of upstream device.Further alternative, the device descriptive information of this upstream device can also comprise: the attribute information of this upstream device, for example, at least one in this upstream device manufacturer and this upstream device model.
302, described upstream equipment obtains the device descriptive information of described upstream device according to described outage Indication message;
303, upstream equipment reports webmaster with the device descriptive information of described upstream device.Upstream equipment is by receiving the outage Indication message that sends after the upstream device outage, can know which upstream device cuts off the power supply according to the device descriptive information that the outage Indication message carries, thereby report to webmaster, be convenient to webmaster and know the equipment that outage occurs according to device descriptive information.
The present embodiment, the outage Indication message that comprises device descriptive information that sends by receiving upstream device has been realized the device descriptive information that upstream equipment can the automatic acquisition power cutoff device, is beneficial to webmaster this power cutoff device is positioned, be convenient to network operation, improved efficient.
Optionally, the described outage Indication message among the above-mentioned Indication message method of reseptance embodiment can be dying words message as shown in Figure 4.
Optionally, in above-mentioned Indication message method of reseptance embodiment 302 after, can also comprise:
Described upstream equipment receives the recovery Indication message that described upstream device sends after restoring electricity, comprise the device descriptive information of described upstream device in the described recovery Indication message.
Optionally, the described recovery Indication message among the above-mentioned Indication message method of reseptance embodiment can be dying words message as shown in Figure 4.
Fig. 5 is the structural representation of an embodiment of upstream device of the present invention, and as shown in Figure 5, the upstream device of the present embodiment comprises: determination module 501, sending module 502, wherein:
Determination module 501 is used for determining that upstream device cuts off the power supply;
Sending module 502 is used for upstream device and sends the outage Indication message, comprises the device descriptive information of described upstream device in the described outage Indication message.
Optionally, above-mentioned outage Indication message can be the dying words message.The upstream device of the present embodiment can be for the technical scheme of execution graph 1 or embodiment of the method shown in Figure 2, and it realizes that principle is similar, repeats no more herein.
After the upstream device that the present embodiment provides, determination module are determined to cut off the power supply, by sending module upstream device feedback device descriptor, realized that device descriptive information reports, thereby be beneficial to webmaster power cutoff device is positioned, be convenient to network operation, improved efficient.
The sending module 502 of above-mentioned upstream equipment embodiment can also be used for sending the recovery Indication message to described upstream equipment after described upstream device restores electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
Fig. 6 is the structural representation of an embodiment of upstream equipment of the present invention, and as shown in Figure 6, the upstream equipment of the present embodiment comprises: receiver module 601, processing module 602, reporting module 603, wherein:
Receiver module 601 is used for receiving the outage Indication message that described upstream device sends after outage, and wherein, described outage indication information carries the device descriptive information of described upstream device;
Processing module 602 is used for according to described outage Indication message, obtains the device descriptive information of described upstream device;
Reporting module 603 is used for the device descriptive information of described upstream device is reported webmaster.
The upstream equipment of the present embodiment can be for the technical scheme of carrying out message receival method embodiment shown in Figure 3, and it realizes that principle is similar, repeats no more herein.
The upstream equipment that the present embodiment provides, receive the outage Indication message that comprises device descriptive information that upstream device sends by receiver module, treated module obtains the device descriptive information of this upstream device, by reporting module the device descriptive information of this upstream device is reported webmaster again, being beneficial to webmaster positions this power cutoff device according to the device descriptive information of this upstream device that reports, be convenient to network operation, improved efficient.
Optionally, above-mentioned outage Indication message can be dying words message as shown in Figure 4.
Optionally, the receiver module 601 of above-mentioned upstream equipment embodiment can also be used for receiving the recovery Indication message that described upstream device sends after restoring electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
Further alternative, described recovery Indication message can be dying words message as shown in Figure 4.
Fig. 7 is the structural representation of another embodiment of upstream device of the present invention, and as shown in Figure 7, the upstream device of the present embodiment comprises: detector 701, transmitter 702, wherein:
Detector 701 is used for determining that upstream device cuts off the power supply;
Transmitter 702 is used for upstream device and sends the outage Indication message, comprises the device descriptive information of described upstream device in the described outage Indication message, reports webmaster with the device descriptive information with described upstream device.
The upstream device of the present embodiment can be for the technical scheme of execution graph 1 or embodiment of the method shown in Figure 2, and it realizes that principle is similar, repeats no more herein.
Optionally, the transmitter 702 of above-mentioned upstream equipment embodiment can also be used for sending the recovery Indication message to described upstream equipment after described upstream device restores electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
Fig. 8 is the structural representation of another embodiment of upstream equipment of the present invention, and as shown in Figure 8, the upstream equipment of the present embodiment comprises: receiver 801, processor 802, transmitter 803, wherein:
Receiver 801 is used for receiving the outage Indication message that described upstream device sends after outage, and wherein, described outage indication information carries the device descriptive information of described upstream device;
Processor 802 is used for according to described outage Indication message, obtains the device descriptive information of described upstream device;
Transmitter 803 is used for the device descriptive information of described upstream device is reported webmaster.
The upstream equipment of the present embodiment can be for the technical scheme of carrying out message receival method embodiment shown in Figure 3, and it realizes that principle is similar, repeats no more herein.
The upstream equipment that the present embodiment provides, receive the outage Indication message that comprises device descriptive information that upstream device sends by receiver, treated device obtains the device descriptive information of this upstream device, by transmitter the device descriptive information of this upstream device is reported webmaster again, being beneficial to webmaster positions this power cutoff device according to the device descriptive information of this upstream device that reports, be convenient to network operation, improved efficient.
Optionally, the receiver 801 of above-mentioned upstream equipment embodiment can also be used for receiving the recovery Indication message that described upstream device sends after restoring electricity, and comprises the device descriptive information of described upstream device in the described recovery Indication message.
Fig. 9 is the structural representation of an embodiment of Indication message transmission system of the present invention, and as shown in Figure 9, this system comprises upstream device 901 and upstream equipment 902, wherein,
Upstream device 902 sent the outage Indication messages when described upstream device 901 was used for downstream equipment 901 generation outage, comprised the device descriptive information of upstream device 901 in the outage Indication message; Optionally, described upstream device 901 can be any equipment among the above-mentioned upstream device embodiment;
Described upstream equipment 902 is used for receiving the outage Indication message that upstream device 901 sends, and according to described outage Indication message, obtains the device descriptive information of described upstream device, and the device descriptive information of described upstream device is reported webmaster; Optionally, described upstream equipment 902 can be any equipment among the above-mentioned upstream equipment embodiment.
The Indication message transmission system that the present embodiment provides, send the Indication message that comprises device descriptive information by upstream device, realize when outage or power interruption recovering occur upstream device reporting of upstream equipment in the communication system or miscellaneous equipment, be convenient to network operation, improved efficient.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.