Summary of the invention
A kind of method and apparatus of load application version file is provided, thereby realize, saves memory space in the process of load application version file, reduce the object that realizes cost.
First aspect, the embodiment of the present invention provides a kind of method of load application version file, comprising:
At optical line terminal OLT equipment, determine after ONU appliance boot failure, described ONU equipment receives the version file that described OLT equipment loads by Physical Layer OAM PLOAM agreement;
At described ONU equipment, receive after the full detail of described version file, receive the loading end that described OLT equipment sends; Described loading end comprises the version identifier of described version file and the size of version file that described ONU equipment receives.
In the possible implementation of first aspect the first, described ONU equipment receives the version file that described OLT equipment loads by Physical Layer OAM PLOAM agreement, comprising:
Described ONU equipment receives the version file that described OLT equipment loads by the sliding window mode of PLOAM agreement utilization; Described version file comprises at least one data slot information.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described ONU equipment receives the version file that described OLT equipment loads by the sliding window of PLOAM agreement utilization, specifically comprise: receive the version message that described OLT equipment loads by current window, and after the full detail of version message that receives described current window loading, to described OLT equipment, send the first response message; Described version message comprises data slot information and the sign of described data slot information in window of version file; Described the first response message comprises the sign of described current window;
Continue to receive the version message that described OLT equipment loads by next window, and after the full detail of version message that receives described next window loading, to described OLT equipment, send the second response message; Described the second response message comprises the sign of described next window, until described ONU equipment receives all information of described version file.
In conjunction with the possible implementation of the second, in the third possible implementation, it is described before OLT equipment is determined ONU appliance boot failure, also comprise: receive the loading Indication message that described OLT equipment sends, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
When described ONU appliance boot failure, described ONU equipment sends and loads indication response message to described OLT equipment; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possible implementation, after receiving the loading end of described OLT equipment transmission, also comprise: to described OLT equipment, send to load and finish response message; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with first aspect to the 4th kind of first aspect possible implementation in any one, in the 5th kind of possible implementation, also comprise: receive the first check information that described OLT equipment sends, and after receiving the loading end of described OLT equipment transmission, the second check information of described ONU equipment and described the first check information are contrasted, if both are identical, described version file is write in the FLASH of described ONU equipment.
Second aspect, the embodiment of the present invention provides the method for another kind of load application version file, comprising: after definite ONU appliance boot failure, OLT equipment is loaded on described ONU equipment by PLOAM agreement by version file;
After described OLT equipment has loaded described version file, to described ONU equipment, send and load end; Described loading end comprises the version identifier of version file and the size of version file that described OLT equipment sends.
In the possible implementation of second aspect the first, described OLT equipment is loaded on described ONU equipment by PLOAM agreement by version file, comprise: OLT equipment is loaded on described ONU equipment by the sliding window of PLOAM agreement utilization by version file, and described version file comprises at least one data slot information.
In conjunction with the possible implementation of second aspect the first, in the possible implementation of the second, described OLT equipment is loaded on described ONU equipment by the sliding window of PLOAM agreement utilization by version file, specifically comprise: by current window, version message is loaded on to described ONU equipment, and at described ONU equipment, receive after the full detail of the version message that described current window loads, described OLT equipment receives the first response message that described ONU equipment sends; Described version message comprises data slot information and the sign of described data slot information in window of version file; Described the first response message comprises the sign of described current window;
Continuation is loaded on described ONU equipment by next window by described version message, and at described ONU equipment, receives after the full detail of the version message that described next window loads, and described OLT equipment receives the second response message that described ONU equipment sends; Described the second response message comprises the sign of described next window, until described OLT equipment sends all information of described version file to described ONU equipment.
In conjunction with the possible implementation of the second, in the third possible implementation, comprise: if described OLT equipment does not receive described ONU equipment for the response message of the version message transmission of current window loading in Preset Time, by described current window, repeat described version message to be loaded on described ONU equipment.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possible implementation, before definite ONU appliance boot failure, also comprise: to described ONU equipment, send and load Indication message, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
Described definite ONU appliance boot failure specifically comprises: receive the loading indication response message that described ONU equipment sends; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with second aspect, it is any one in four kinds of possible implementations of the possible implementation to the of the second, in the 5th kind of possible implementation, after sending loading end to described ONU equipment, also comprise: the loading that receives described ONU equipment transmission finishes response message; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with second aspect to the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, also comprise: to described ONU equipment, send the first check information, so that described ONU equipment is after receiving the loading end of described OLT equipment transmission, the second check information of described ONU equipment and described the first check information are contrasted, if both are identical, described ONU equipment writes described version file in the FLASH of described ONU equipment.
The third aspect, provides a kind of ONU equipment, comprising: start unit, for starting ONU equipment;
Receiving element, for determining that at OLT equipment described start unit starts after the failure of ONU equipment, receives the version file that described OLT equipment loads by PLOAM agreement; And receive after the full detail of described version file at described ONU equipment, receive the loading end that described OLT equipment sends; Described loading end comprises the version identifier of described version file and the size of version file that described ONU equipment receives.
In the possible implementation of third aspect the first, described receiving element, the version file loading by the sliding window mode of PLOAM agreement utilization for receiving described OLT equipment; Described version file comprises at least one data slot information.
In conjunction with the possible implementation of third aspect the first, in the possible implementation of the second, described receiving element specifically for, receive the version message that described OLT equipment loads by current window, described version message comprises data slot information and the sign of described data slot information in window of version file; Described application entity also comprises: transmitting element, for receiving at described receiving element after the full detail of the version message that described current window loads, sends the first response message to described OLT equipment; Described the first response message comprises the sign of described current window;
Described receiving element also for, receive the version message that described OLT equipment loads by next window;
Described transmitting element also for, at described receiving element, receive after the full detail of the version message that described next window loads, to described OLT equipment, send the second response message; Described the second response message comprises the sign of described next window.
In conjunction with the possible implementation of the second, in the third possible implementation, described receiving element is also for before determining that at described OLT equipment described start unit starts the failure of ONU equipment, receive the loading Indication message that described OLT equipment sends, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
Described transmitting element also, for when described start unit startup ONU equipment is failed, sends and loads indication response message to described OLT equipment; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possible implementation, described transmitting element also finishes response message for sending to described OLT equipment to load; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with the third aspect to any one in the 4th kind of possible implementation of the third aspect, in the 5th kind of possible implementation, the check information that described receiving element also sends for receiving described OLT equipment; Described ONU equipment also comprises: contrast unit, for receiving at described receiving element after the loading end of described OLT equipment transmission, contrasts the second check information of described ONU equipment and described the first check information;
Writing unit, in the situation that coming to the same thing of described contrast unit contrast described version file is write in the FLASH unit of described ONU equipment;
Described FLASH unit, for storing described version file.
Fourth aspect, provides a kind of ONU equipment, comprising:
Processor, for starting ONU equipment;
Receiver, for determining that at OLT equipment described processor starts after the failure of ONU equipment, receives the version file that described OLT equipment loads by PLOAM agreement; And receive after the full detail of described version file at described ONU equipment, receive the loading end that described OLT equipment sends; Described loading end comprises the version identifier of described version file and the size of version file that described ONU equipment receives.
In the possible implementation of fourth aspect the first, described receiver, the version file loading by the sliding window mode of PLOAM agreement utilization for receiving described OLT equipment; Described version file comprises at least one data slot information.
In conjunction with the possible implementation of fourth aspect the first, in the possible implementation of the second, described receiver specifically for, receive the version message that described OLT equipment loads by current window, described version message comprises data slot information and the sign of described data slot information in window of version file; Described application entity also comprises: transmitter, for receiving at described receiver after the full detail of the version message that described current window loads, sends the first response message to described OLT equipment; Described the first response message comprises the sign of described current window;
Described receiver also for, receive the version message that described OLT equipment loads by next window;
Described transmitter also for, at described receiver, receive after the full detail of the version message that described next window loads, to described OLT equipment, send the second response message; Described the second response message comprises the sign of described next window.
In conjunction with the possible implementation of fourth aspect the second, in the third possible implementation, described receiver is also for before determining that at described OLT equipment described processor starts the failure of ONU equipment, receive the loading Indication message that described OLT equipment sends, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
Described transmitter also, for when described processor startup ONU equipment is failed, sends and loads indication response message to described OLT equipment; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with the possible implementation of fourth aspect the second or the third possible implementation, in the 4th kind of possible implementation, described transmitter also finishes response message for sending to described OLT equipment to load; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with fourth aspect to any one in the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation, the check information that described receiver also sends for receiving described OLT equipment;
Described processor, for receiving at described receiver after the loading end of described OLT equipment transmission, the second check information of described ONU equipment and described the first check information are contrasted, if both are identical, described version file is write in the FLASH of described ONU equipment;
Described FLASH, for storing described version file.
The 5th aspect, provides a kind of OLT equipment, comprising:
Transmitting element, for after definite ONU appliance boot failure, is loaded on described ONU equipment by PLOAM agreement by version file, and described version file comprises at least one data slot information; And after described version file has loaded, to described ONU equipment, send and load end; Described loading end comprises the version identifier of version file and the size of version file that described OLT equipment sends.
In the implementation that the first is possible aspect the 5th, described transmitting element, for being loaded on described ONU equipment by the sliding window of PLOAM agreement utilization by version file.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described transmitting element specifically for, by current window, version message is loaded on to described ONU equipment; Described OLT equipment also comprises: receiving element, for receiving at described ONU equipment after the full detail of the version message that described transmitting element loads by current window, receives the first response message that described ONU equipment sends; Described version message comprises data slot information and the sign of described data slot information in window of version file; Described the first response message comprises the sign of described current window;
Described transmitting element also for, by next window, described version message is loaded on to described ONU equipment;
Described receiving element also for, at described ONU equipment, receive after the full detail of the version message that described transmitting element loads by next window, receive the second response message that described ONU equipment sends; Described the second response message comprises the sign of described next window.
In conjunction with the possible implementation of the second, in the third possible implementation, described transmitting element also for, if described receiving element does not receive described ONU equipment for the response message of the version message transmission of current window loading in Preset Time, by described current window, repeat described version message to be loaded on described ONU equipment.
In conjunction with the possible implementation of the second or the third possible implementation, in the 4th kind of possible implementation, described transmitting element also for, before definite ONU appliance boot failure, to described ONU equipment, send and load Indication message, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
Described receiving element also for, receive loading indication response message that described ONU equipment sends to determine described ONU appliance boot failure; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with any one in the possible four kinds of possible implementations of implementation to the of the second, in the 5th kind of possible implementation, described receiving element is also for after sending loading end at described transmitting element to described ONU equipment, and the loading that receives described ONU equipment transmission finishes response message; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with any one in the possible implementation in the 5th kind of five aspect, the 5th aspect to the, in the 6th kind of possible implementation, described transmitting element also for, to described ONU equipment, send the first check information, so that described ONU equipment is after receiving the loading end of described OLT equipment transmission, the second check information of described ONU equipment and described the first check information are contrasted, if both are identical, described ONU equipment writes described version file in the FLASH unit of described ONU equipment.
The 6th aspect, provides a kind of OLT equipment, comprising:
Transmitter, for after definite ONU appliance boot failure, is loaded on described ONU equipment by PLOAM agreement by version file, and described version file comprises at least one data slot information; And after described version file has loaded, to described ONU equipment, send and load end; Described loading end comprises the version identifier of version file and the size of version file that described OLT equipment sends.
In the implementation that the first is possible aspect the 6th, described transmitter, for being loaded on described ONU equipment by the sliding window of PLOAM agreement utilization by version file.
In conjunction with the possible implementation of the 6th aspect the first, in the possible implementation of the second, described transmitter specifically for, by current window, version message is loaded on to described ONU equipment; Described OLT equipment also comprises: receiver, for receiving at described ONU equipment after the full detail of the version message that described transmitter loads by current window, receives the first response message that described ONU equipment sends; Described version message comprises data slot information and the sign of described data slot information in window of version file; Described the first response message comprises the sign of described current window;
Described transmitter also for, by next window, described version message is loaded on to described ONU equipment;
Described receiver also for, at described ONU equipment, receive after the full detail of the version message that described transmitter loads by next window, receive the second response message that described ONU equipment sends; Described the second response message comprises the sign of described next window.
In conjunction with the possible implementation of the 6th aspect the second, in the third possible implementation, described transmitter also for, if described receiver does not receive described ONU equipment for the response message of the version message transmission of current window loading in Preset Time, by described current window, repeat described version message to be loaded on described ONU equipment.
In conjunction with the possible implementation of the 6th aspect the second or the third possible implementation, in the 4th kind of possible implementation, described transmitter also for, before definite ONU appliance boot failure, to described ONU equipment, send and load Indication message, described loading Indication message comprises the size of maximum load window and the version identifier of described version file that described OLT equipment is supported;
Described receiver also for, receive loading indication response message that described ONU equipment sends to determine described ONU appliance boot failure; Described loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
In conjunction with any one in the possible four kinds of possible implementations of implementation to the of the 6th aspect the second, in the 5th kind of possible implementation, described receiver is also for after sending loading end at described transmitter to described ONU equipment, and the loading that receives described ONU equipment transmission finishes response message; Described loading finishes the version identifier of version file and the size of version file that response message comprises that described ONU equipment sends.
In conjunction with any one in the possible implementation in the 5th kind of six aspect, the 6th aspect to the, in the 6th kind of possible implementation, described transmitter also for, to described ONU equipment, send the first check information, so that described ONU equipment is after receiving the loading end of described OLT equipment transmission, the second check information of described ONU equipment and described the first check information are contrasted, if both are identical, described ONU equipment writes described version file in the FLASH of described ONU equipment.
By adopting such scheme, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again preparation area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby in the process of load application version file, realized saving memory space, reduced the object that realizes cost.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of load application version file, and as shown in Figure 1, the executive agent of this embodiment is ONU equipment, comprising:
S101, at optical line terminal, (English name is optical line terminal, abbreviation OLT) equipment is determined after ONU appliance boot failure, this ONU equipment receives the version file that this OLT equipment loads by Physical Layer OAM (English name is Physical Layer Operation Administration and Maintenance, referred to as PLOAM) agreement.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is that (English name is Passive Optical Network to a kind of message based support passive optical-fiber network, referred to as PON) GTC layer-management function, and the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed.
Alternatively, this ONU equipment receives the version file that this OLT equipment loads by the sliding window mode of PLOAM agreement utilization.
Wherein, this version file comprises at least one data slot information.
Particularly, because version file is generally larger, therefore a possibly loading that cannot complete all information of version file of window, therefore this version file is divided into a plurality of data slot information, the sliding window of recycling loads and (after all version message in having loaded a window, continues to load the version message of subsequent window, until version message corresponding to all windows loaded), the method is specifically as follows: ONU equipment receives the version message that this OLT equipment loads by current window, and after the full detail of version message that receives this current window loading, to this OLT equipment, send the first response message.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file; This first response message comprises the sign of this current window.
ONU equipment continues to receive the version message that this OLT equipment loads by next window, and after the full detail of version message that receives this next window loading, to this OLT equipment, sends the second response message; This second response message comprises the sign of this next window, until this ONU equipment receives all information of this version file.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Further, before OLT equipment is determined ONU appliance boot failure, ONU equipment receives the loading Indication message that OLT equipment sends.
Wherein, this loading Indication message comprises the size (quantity of the data slot information that this window is supported) of the maximum load window that this OLT equipment is supported and the version identifier (as version number) of this version file.
In addition, when this ONU appliance boot failure, to this OLT equipment, send and load indication response message.
Wherein, this loading indication response message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
S102, at this ONU equipment, receive after the full detail of this version file, ONU equipment receives the loading end that this OLT equipment sends.
Wherein, this loading end comprises the version identifier (as version number) of version file and the size (as the data length of version file) of version file that ONU equipment receives.
Further, after receiving the loading end of this OLT equipment transmission, ONU equipment sends to load to this OLT equipment and finishes response message.
Wherein, this loading finishes the version identifier (as version number) of version file and the size (as the data length of version file) of version file that response message comprises that ONU equipment sends, like this, OLT equipment finishes version identifier (as version number) in response message according to the loading receiving and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this ONU equipment receives the first check information that OLT equipment sends (such as the version identifier of version file or check code etc.), and after receiving the loading end of this OLT equipment transmission, the second check information of this ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with this first check information, if both are identical, this version file is write in the FLASH of this ONU equipment, thereby determine the correctness that version file transmits.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
In addition, ONU equipment, this version file is write after the FLASH of this ONU equipment, restarts.
By the technical scheme in load application version document method of the present invention, the executive agent of this scheme is ONU equipment, ONU equipment receives the version file that OLT equipment loads by PLOAM agreement, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby in the process of load application version file, realized saving memory space, reduced the object that realizes cost.
The embodiment of the present invention provides the method for another kind of load application version file, and as shown in Figure 2, the executive agent of this embodiment is OLT equipment, comprising:
S201, after definite ONU appliance boot failure, OLT equipment is loaded on this ONU equipment by PLOAM agreement by version file.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed.
Alternatively, this version file comprises at least one data slot information.
Particularly, because version file is generally larger, therefore a possibly loading that cannot complete all information of version file of window, therefore this version file being divided into the sliding windows of a plurality of data slot information utilizations loads and (after all version message in having loaded a window, continues the version message of loading subsequent window, until version message corresponding to all windows loaded), the method specifically comprises: OLT equipment is loaded on this ONU equipment by current window by version message, and at this ONU equipment, receive after the full detail of the version message that this current window loads, this OLT equipment receives the first response message that this ONU equipment sends.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file; This first response message comprises the sign of this current window.
OLT equipment continues, by next window, this version message to be loaded on to this ONU equipment, and at this ONU equipment, receives after the full detail of the version message that this next window loads, and this OLT equipment receives the second response message that this ONU equipment sends; This second response message comprises the sign of this next window, until this OLT equipment sends all information of this version file to this ONU equipment.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, if this OLT equipment does not receive this ONU equipment for the response message of the version message transmission of current window loading in Preset Time, by this current window, repeat this version message to be loaded on this ONU equipment, thereby guarantee complete this version file to be loaded on to ONU equipment, this Preset Time can obtain according to practical application or empirical value.
Further, before definite ONU appliance boot failure, OLT equipment sends and loads Indication message to this ONU equipment.
Wherein, this loading Indication message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that this OLT equipment is supported and the version identifier (as version number) of this version file.
OLT equipment, when receiving the loading indication response message of this ONU equipment transmission, is determined this ONU appliance boot failure.
Wherein, this loading indication response message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
S202, after this OLT equipment has loaded this version file, to this ONU equipment, send and load end.
Wherein, this loading end comprises the version identifier (as version number) of version file and the size (as the data length of version file) of version file that OLT equipment sends.
Further, after sending loading end to this ONU equipment, the loading that this OLT equipment receives this ONU equipment transmission finishes response message.
Wherein, this loading finishes the version identifier (as version number) of version file and the size (as the data length of version file) of version file that response message comprises that ONU equipment sends, like this, OLT equipment finishes version identifier (as version number) in response message according to the loading receiving and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this ONU equipment receives the first check information that OLT equipment sends (such as the version identifier of version file or check code etc.), and after receiving the loading end of this OLT equipment transmission, the second check information of this ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with this first check information, if both are identical, this version file is write in the FLASH of this ONU equipment, thereby determine the correctness that version file transmits.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
In addition, ONU equipment, this version file is write after the FLASH of this ONU equipment, restarts.
By the technical scheme in load application version document method of the present invention, the executive agent of this scheme is OLT equipment, OLT equipment is loaded on ONU equipment by PLOAM agreement by version file, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby in the process of load application version file, realized saving memory space, reduced the object that realizes cost.
Preferably, the embodiment of the present invention provides the method for another kind of load application version file, as shown in Figure 3, comprising:
S301, OLT equipment, when ONU equipment being detected and reach the standard grade, send and load Indication message to ONU equipment.
Wherein, this loading Indication message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that this OLT equipment is supported and the version identifier (as version number) of this version file.
S302, when ONU appliance boot failure, ONU equipment loads Indication message for this and sends and load indication response message to OLT equipment.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, this loading indication response message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
In addition, if this ONU equipment normally starts, ONU equipment is ignored above-mentioned loading Indication message.
S303, OLT equipment, when receiving this loading indication response message, are determined this ONU appliance boot failure.
Further, if OLT equipment does not receive this loading indication response message in Preset Time, determine that this ONU equipment normally starts, and does not need to carry out follow-up load step.
S304, OLT equipment are loaded on ONU equipment by the sliding window of PLOAM agreement utilization by version file.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed.
Particularly, because version file is generally larger, therefore a possibly loading that cannot complete all information of version file of window, therefore this version file is divided into a plurality of data slot information, the sliding window of recycling loads and (after all version message in having loaded a window, continues to load the version message of subsequent window, until version message corresponding to all windows loaded), therefore, this step S304 is specially:
OLT equipment is loaded on this ONU equipment by current window by version message, and this ONU equipment, after the full detail of version message that receives this current window loading, sends the first response message to this OLT equipment.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file; This first response message comprises the sign of this current window.
OLT equipment continues, by next window, version message is loaded on to ONU equipment, and after the full detail of version message that receives next window loading, to this OLT equipment, send the second response message, until this ONU equipment receives all information of this version file.
Wherein, this second response message comprises the sign of this next window.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, if this OLT equipment does not receive this ONU equipment for the response message of the version message transmission of current window loading in Preset Time, by this current window, repeat this version message to be loaded on this ONU equipment, thereby guarantee complete this version file to be loaded on to ONU equipment, this Preset Time can obtain according to practical application or empirical value.
S305, after this OLT equipment has loaded this version file, OLT equipment sends and loads end to this ONU equipment.
Wherein, this loading end comprises the version identifier (as version number) of version file and the size (as the data length of version file) of version file that this OLT equipment sends.
S306, at this ONU equipment, receive after this loading end, to this OLT equipment, send to load and finish response message.
Wherein, this loading finishes the version identifier (as version number) of version file and the size (as the data length of version file) of version file that response message comprises that this ONU equipment sends, like this, the loading that OLT equipment sends according to ONU equipment finishes version identifier (as version number) in response message and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
S307, ONU equipment contrast the second checking information (such as the version identifier obtaining the version file from receiving or check code etc.) and the first check information receiving from OLT equipment (such as the version identifier of version file or check code etc.), if both are identical, this version file is write in the FLASH of this ONU equipment.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
S308, ONU equipment, this version file is write after the FLASH of this ONU equipment, restart.
By the technical scheme in load application version document method of the present invention, because the loading that adopts PLOAM agreement to carry out version file can be simplified the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby in the process of load application version file, realized saving memory space, reduced the object that realizes cost.
It should be noted that, for aforesaid each embodiment of the method, for simple description, thus it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement; Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of ONU equipment 400, as shown in Figure 4, comprising:
Start unit 401, for starting ONU equipment;
Receiving element 402, for determining that at OLT equipment this start unit 401 starts after the failure of ONU equipment, receives the version file that this OLT equipment loads by PLOAM agreement; And receive after the full detail of this version file at this ONU equipment, receive the loading end that this OLT equipment sends.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed; This loading end comprises the version identifier of this version file and the size of version file that this ONU equipment receives.
Alternatively, this receiving element 402, the version file loading by the sliding window mode of PLOAM agreement utilization for receiving this OLT equipment.
Wherein, this version file comprises at least one data slot information.
Further, this receiving element 402 specifically for, receive the version message that this OLT equipment loads by current window.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file.
As shown in Figure 5, this ONU equipment 400 also comprises: transmitting element 403, after the full detail for the version message in this this current windows loading of receiving element 402 receptions, sends the first response message to this OLT equipment.
Wherein, this first response message comprises the sign of this current window;
This receiving element 402 also for, receive the version message that this OLT equipment loads by next window.
This transmitting element 403 also for, at this receiving element 402, receive after the full detail of the version message that these next windows load, to this OLT equipment, send the second response message.
Wherein, this second response message comprises the sign of this next window.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, this receiving element 402, also for determine this startup ONU appliance boot failure at OLT equipment before, receives the loading Indication message that this OLT equipment sends.
Wherein, this loading Indication message comprises the size of maximum load window and the version identifier of this version file that this OLT equipment is supported;
This transmitting element 403, also for when this ONU appliance boot failure, sends and loads indication response message to this OLT equipment.
Wherein, this loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
Alternatively, this transmitting element 403 also finishes response message for sending to this OLT equipment to load.
Wherein, this loading finishes the version identifier of version file and the size of version file that response message comprises that this ONU equipment sends, like this, the loading that OLT equipment sends according to ONU equipment finishes version identifier (as version number) in response message and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this receiving element 402 is also for receiving the first check information that this OLT equipment sends (such as the version identifier of version file or check code etc.).
As shown in Figure 6, this ONU equipment 400 also comprises: contrast unit 404, for receiving after the loading end of this OLT equipment transmission at this receiving element 402, the second check information of this ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with described the first check information;
Writing unit 405, in the situation that coming to the same thing of contrast unit 404 contrast this version file is write in the FLASH unit of this ONU equipment;
FLASH unit 406, for storing this version file.
Alternatively, above-mentioned start unit also, at writing unit, this version file being write behind this FLASH unit, restarts ONU equipment.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
Adopt above-mentioned ONU equipment, ONU equipment receives the version file that OLT equipment loads by PLOAM agreement, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
It should be noted that, the unit of above-mentioned ONU equipment both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
In addition, affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the ONU equipment of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The embodiment of the present invention provides a kind of ONU equipment 700, as shown in Figure 7, comprising:
Processor 701, for starting ONU equipment;
Receiver 702, for determining that at OLT equipment this processor 701 starts after the failure of ONU equipment, receives the version file that this OLT equipment loads by PLOAM agreement; And receive after the full detail of this version file at this ONU equipment, receive the loading end that this OLT equipment sends.
Wherein, this loading end comprises the version identifier of this version file and the size of version file that this ONU equipment receives.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed; This loading end comprises the version identifier of this version file and the size of version file that this ONU equipment receives.
Alternatively, this receiver 702, the version file loading by the sliding window mode of PLOAM agreement utilization for receiving this OLT equipment.
Wherein, this version file comprises at least one data slot information.
Further, this receiver specifically for, receive the version message that this OLT equipment loads by current window.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file.
As shown in Figure 8, this ONU equipment 700 also comprises: transmitter 703, after the full detail for the version message in this this current windows loading of receiver 702 receptions, sends the first response message to this OLT equipment.
Wherein, this first response message comprises the sign of this current window;
This receiver 702 also for, receive the version message that this OLT equipment loads by next window.
This transmitter 703 also for, at this receiver 702, receive after the full detail of the version message that these next windows load, to this OLT equipment, send the second response message.
Wherein, this second response message comprises the sign of this next window.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, this receiver 702, also for determine this startup ONU appliance boot failure at OLT equipment before, receives the loading Indication message that this OLT equipment sends.
Wherein, this loading Indication message comprises the size of maximum load window and the version identifier of this version file that this OLT equipment is supported;
This transmitter 703, also for when this ONU appliance boot failure, sends and loads indication response message to this OLT equipment.
Wherein, this loading indication response message comprises the size of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
Alternatively, this transmitter 703 also finishes response message for sending to this OLT equipment to load.
Wherein, this loading finishes the version identifier of version file and the size of version file that response message comprises that this ONU equipment sends, like this, the loading that OLT equipment sends according to ONU equipment finishes version identifier (as version number) in response message and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this receiver 702 is also for receiving the first check information that this OLT equipment sends (such as the version identifier of version file or check code etc.).
This processor 701, also for receiving after the loading end of this OLT equipment transmission at this receiver 702, the second check information of described ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with described the first check information, if both are identical, this version file is write in the FLASH of this ONU equipment;
FLASH704, for storing this version file.
Alternatively, above-mentioned processor also, for this version file is being write after FLASH, restarts ONU equipment.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
Adopt above-mentioned ONU equipment, ONU equipment receives the version file that OLT equipment loads by PLOAM agreement, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
In addition, affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the ONU equipment of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The embodiment of the present invention provides a kind of OLT equipment equipment 900, as shown in Figure 9, comprising:
Transmitting element 901, for after definite ONU appliance boot failure, is loaded on this ONU equipment by PLOAM agreement by version file, and after this version file has loaded, to this ONU equipment, sends and load end.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed; This version file comprises at least one data slot information; This loading end comprises the version identifier of version file and the size of version file that OLT equipment sends.
Alternatively, this transmitting element 901, for being loaded on this ONU equipment by the sliding window of PLOAM agreement utilization by version file.
Further, this transmitting element 901 specifically for, by current window, version message is loaded on to this ONU equipment.
As shown in figure 10, this OLT equipment 900 also comprises: receiving element 902, for receiving at this ONU equipment after the full detail of the version message that this transmitting element 901 loads by current window, receives the first response message that this ONU equipment sends.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file; This first response message comprises the sign of this current window;
This transmitting element 901 also for, by next window, described version message is loaded on to described ONU equipment;
This receiving element 902 also for, at this ONU equipment, receive after the full detail of the version message that this transmitting element loads by next window, receive the second response message that this ONU equipment sends.
Wherein, this second response message comprises the sign of this next window.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, this transmitting element 901 also for, if this receiving element does not receive the response message that version message that this ONU equipment loads for current window sends in Preset Time, by this current window, repeat this version message to be loaded on this ONU equipment; Wherein, this Preset Time can obtain according to practical application or empirical value.
Alternatively, this transmitting element 901 also for, before definite ONU appliance boot failure, to this ONU equipment, send and load Indication message.
This receiving element 902 also for, receive loading indication response message that this ONU equipment sends to determine this ONU appliance boot failure.
Wherein, this loading Indication message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that this OLT equipment is supported and the version identifier (as version number) of this version file; This loading indication response message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
Alternatively, this receiving element 902 is also for after sending loading end at this transmitting element 901 to this ONU equipment, and the loading that receives this ONU equipment transmission finishes response message.
Wherein, this loading finishes the version identifier (as version number) of version file and the size (as the data length of version file) of version file that response message comprises that this ONU equipment sends, like this, the loading that OLT equipment sends according to ONU equipment finishes version identifier (as version number) in response message and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this transmitting element 901 also for, to this ONU equipment, send the first check information (such as the version identifier of version file or check code etc.), so that this ONU equipment is after receiving the loading end of this OLT equipment transmission, the second check information of described ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with described the first check information, if both are identical, this ONU equipment writes this version file in the FLASH unit of this ONU equipment.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
Adopt above-mentioned OLT equipment, OLT equipment is loaded on ONU equipment by PLOAM agreement by version file, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
It should be noted that, it should be noted that, the unit of above-mentioned OLT equipment both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
In addition, affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the OLT equipment of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The embodiment of the present invention provides a kind of OLT equipment 1100, as shown in figure 11, comprising:
Transmitter 1101, for after definite ONU appliance boot failure, is loaded on this ONU equipment by PLOAM agreement by version file, and after this version file has loaded, to this ONU equipment, sends and load end.
For example: ONU equipment is when system normal boot-strap, and from BIOS or BOOT, loading system starts required version file failure (as abnormal in version file or destroyed) and causes ONU appliance boot failure; This system is the operating system that this version file is corresponding.
Wherein, PLOAM agreement is the GTC layer-management function of a kind of message based support PON the agreement that the transmission channel between OLT equipment and ONU equipment is operated and managed; This version file comprises at least one data slot information; This loading end comprises the version identifier of version file and the size of version file that OLT equipment sends.
Alternatively, this transmitter 1101, for being loaded on this ONU equipment by the sliding window of PLOAM agreement utilization by version file.
Further, this transmitter specifically for, by current window, version message is loaded on to this ONU equipment.
As shown in figure 12, this OLT equipment 1100 also comprises: receiver 1102, for receiving at this ONU equipment after the full detail of the version message that this transmitter 1101 loads by current window, receives the first response message that this ONU equipment sends.
Wherein, this version message comprises data slot information and the sign of this data slot information in window of version file; This first response message comprises the sign of this current window;
This transmitter 1101 also for, by next window, described version message is loaded on to described ONU equipment;
This receiver 1102 also for, at this ONU equipment, receive after the full detail of the version message that this transmitter 1101 loads by next window, receive the second response message that this ONU equipment sends.
Wherein, this second response message comprises the sign of this next window.
It should be noted that, the corresponding a plurality of version message of each window, the corresponding Data Identification of data slot information in each version message, the numbering of data slot information in this window for example, after one of them data slot information has loaded, continue to load the numbering of data slot information in this window and add version message corresponding to the corresponding data slot information of numbering after, until all version message in this window have all loaded.
In addition, the same corresponding sign of each window, window number for example, after all version message in current window have all loaded, and OLT equipment receives the response message that ONU equipment sends, automatically load the window number that current window is corresponding and add the version message in the corresponding window of numbering after, until the version message in window corresponding to all data slot information of this version file has all loaded.
Alternatively, this transmitter 1101 also for, if this receiver 1102 does not receive the response message that version message that this ONU equipment loads for current window sends in Preset Time, by this current window, repeat this version message to be loaded on this ONU equipment; Wherein, this Preset Time can obtain according to practical application or empirical value.
Alternatively, this transmitter 1101 also for, before definite ONU appliance boot failure, to this ONU equipment, send and load Indication message.
This receiver 1102 also for, receive loading indication response message that this ONU equipment sends to determine this ONU appliance boot failure.
Wherein, this loading Indication message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that this OLT equipment is supported and the version identifier (as version number) of this version file; This loading indication response message comprises the size (maximum quantity of the data slot information that this window is supported) of the maximum load window that ONU equipment is supported.
Particularly, boot can load according to a minimum window of size coupling of the window of the size of the maximum load window of the OLT equipment support in above-mentioned loading Indication message and the support of ONU equipment, this minimum window is the size of the maximum load window of the ONU equipment support in above-mentioned loading indication response message, this boot is included in the BOOT or BIOS of ONU equipment, for guiding aforesaid operations system to start; For example: if the size of the maximum load window of OLT equipment support is 300 blocks of data frag infos; And the size of the window of ONU equipment support is 500 blocks of data frag infos, due to OLT equipment, not supporting size is the window of 500 blocks of data frag infos, therefore, boot can be mated a size for holding the window of 300 blocks of data frag infos, so that OLT equipment is loaded on ONU equipment by version file by this window; Here just illustrate, the present invention is not construed as limiting this.
Alternatively, this receiver 1102 is also for after sending loading end at this transmitter 1101 to this ONU equipment, and the loading that receives this ONU equipment transmission finishes response message.
Wherein, this loading finishes the version identifier (as version number) of version file and the size (as the data length of version file) of version file that response message comprises that this ONU equipment sends, like this, the loading that OLT equipment sends according to ONU equipment finishes version identifier (as version number) in response message and the size (as the data length of version file) of version file is further determined the correctness of the version file of loading.
Alternatively, this transmitter 1101 also for, to this ONU equipment, send the first check information (such as the version identifier of version file or check code etc.), so that this ONU equipment is after receiving the loading end of this OLT equipment transmission, the second check information of described ONU equipment (such as the version identifier obtaining the version file from receiving or check code etc.) is contrasted with described the first check information, if both are identical, this ONU equipment writes this version file in the FLASH unit of this ONU equipment.
Wherein, this first check message can be included in OLT equipment in the loading Indication message of ONU equipment transmission, or is included in OLT equipment in the loading ending message of ONU equipment transmission; Or this first check message part is included in OLT equipment in the loading Indication message of ONU equipment transmission, another part is included in the loading ending message of ONU equipment reception OLT equipment transmission; The present invention is not construed as limiting this.
Adopt above-mentioned OLT equipment, OLT equipment is loaded on ONU equipment by PLOAM agreement by version file, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
In addition, affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the OLT equipment of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The embodiment of the present invention provides a kind of communication network, as shown in figure 13, comprises ONU equipment 400 and OLT equipment 900 that above-described embodiment is described.
Wherein, this communication network can be GPON or XGPON.
Adopt above-mentioned communication network, ONU equipment receives the version file that OLT equipment loads by PLOAM agreement, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
The embodiment of the present invention provides a kind of communication network, as shown in figure 14, comprises ONU equipment 700 and OLT equipment 1100 that above-described embodiment is described.
Wherein, this communication network can be GPON or XGPON.
Adopt above-mentioned communication network, ONU equipment receives the version file that OLT equipment loads by PLOAM agreement, owing to adopting PLOAM agreement, can simplify the processing of agreement, the application protocol of supporting in the process that makes to load is minimum, thereby make the process loading become simple, and do not need to divide again backup area and just can prevent that the version file causing because version file is damaged from loading unsuccessfully, thereby realized saving memory space in the process of load application version file, reduce the object that realizes cost.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.