CN106789144B - Configuration file updating method and device - Google Patents

Configuration file updating method and device Download PDF

Info

Publication number
CN106789144B
CN106789144B CN201610188645.1A CN201610188645A CN106789144B CN 106789144 B CN106789144 B CN 106789144B CN 201610188645 A CN201610188645 A CN 201610188645A CN 106789144 B CN106789144 B CN 106789144B
Authority
CN
China
Prior art keywords
configuration file
message
updating
update
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610188645.1A
Other languages
Chinese (zh)
Other versions
CN106789144A (en
Inventor
游君平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610188645.1A priority Critical patent/CN106789144B/en
Publication of CN106789144A publication Critical patent/CN106789144A/en
Application granted granted Critical
Publication of CN106789144B publication Critical patent/CN106789144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a configuration file updating method and a device, relates to the technical field of communication, and is applied to an Optical Line Terminal (OLT) interface board, wherein the method comprises the following steps: acquiring a configuration file version identifier before the OLT interface board is restarted; sending an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification; receiving an update confirmation message, and confirming that the ONU connected with the OLT interface receiving the update confirmation message has updated the configuration file; receiving an update request message, and sending a version update message through an OLT interface receiving the update request message; and the version updating message carries the configuration file corresponding to the acquired configuration file version identification. By applying the scheme provided by the embodiment of the application to update the configuration file, the updating efficiency of the configuration file at the ONU side is improved.

Description

Configuration file updating method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for updating a configuration file.
Background
A typical EPON (Ethernet Passive Optical Network) system mainly includes an OLT (Optical Line Terminal) interface board, an ONU (Optical Network Unit), and an ODN (Optical Distribution Network), and is shown in a schematic structural diagram in fig. 1. The ODN includes an Optical fiber and one or more Passive Optical devices such as a POS (Passive Optical Splitter), an Optical signal transmission channel is provided between the OLT and the ONUs, and the POS may couple uplink data to one Optical fiber and distribute the downlink data to each ONU.
For the OLT interface board, it is generally in communication connection with the main control board, and when the OLT interface board is restarted for various reasons, the OLT interface board can obtain configuration file information of the latest configuration version for the ONU from the main control board side.
After the OLT interface board is restarted, the configuration file of the ONU communicatively connected to the OLT interface board needs to be restored, which is also referred to as configuration file update. In the prior art, when updating the configuration file of the ONU, generally, the OLT interface board sends the configuration file of the latest configuration version to each ONU in communication connection with the OLT interface board, so as to update the configuration file on each ONU.
However, due to the fact that the number of ONUs in communication connection with one OLT interface board is large, when the configuration file on the ONU side is updated by using the method, the data interaction amount is large, the whole configuration file updating process is easy to be dozens of minutes or even hours, the updating efficiency of the configuration file is low, and the normal service of the ONU is likely to be interrupted for a long time, which seriously affects user experience.
Disclosure of Invention
The embodiment of the application discloses a service recovery method and a service recovery device, which are used for improving the updating efficiency of configuration files on an ONU (optical network unit) side, shortening the interruption time of normal services of the ONU and improving the user experience.
In order to achieve the above object, an embodiment of the present application discloses a method for updating a configuration file, which is applied to an OLT interface board of an optical line terminal, and the method includes:
acquiring a configuration file version identifier before the OLT interface board is restarted;
sending an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification;
receiving an update confirmation message, and confirming that an Optical Network Unit (ONU) connected with an OLT interface receiving the update confirmation message has updated a configuration file;
receiving an update request message, and sending a version update message through an OLT interface receiving the update request message; and the version updating message carries the configuration file corresponding to the acquired configuration file version identification.
In a specific implementation manner of the present application, the method for updating a configuration file further includes:
acquiring an updated configuration file version identifier;
sending configuration file notification messages through each OLT interface of the OLT interface board; wherein the profile advertisement message comprises at least the updated profile version identification.
In a specific implementation manner of the present application, the update request message at least includes a configuration file version identifier of the OUN; before the sending the version update message through the OLT interface that receives the update request message, the method further includes:
and comparing the OUN configuration file version identification with the acquired configuration file version identification, and if the OUN configuration file version identification is not consistent with the acquired configuration file version identification, sending a version updating message through the OLT interface which receives the updating request message.
In order to achieve the above object, an embodiment of the present application discloses a method for updating a configuration file, which is applied to an optical network unit ONU, and the method includes:
receiving an update notification message; the update notification message at least comprises a configuration file version identification;
comparing the configuration file version identification with the locally stored ONU configuration file version identification;
confirming that the configuration file version identification is inconsistent with the locally stored ONU configuration file version identification, and sending an updating request message; the updating request message carries the locally stored ONU configuration file version identification;
receiving a version update message; and the version updating message carries the configuration file corresponding to the configuration file version identification.
In a specific implementation manner of the present application, the method for updating a configuration file further includes:
confirming that the profile version identification is consistent with the locally stored ONU profile version identification,
and sending an updating confirmation message.
In a specific implementation manner of the present application, the method for updating a configuration file further includes:
receiving a configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
In order to achieve the above object, an embodiment of the present application discloses a configuration file updating apparatus, which is applied to an OLT interface board of an optical line terminal, and the apparatus includes:
a first identifier obtaining module, configured to obtain a configuration file version identifier before the OLT interface board is restarted;
a first message sending module, configured to send an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification;
the updating confirmation module is used for receiving the updating confirmation message and confirming that the ONU which is connected with the OLT interface and receives the updating confirmation message updates the configuration file;
a second message sending module, configured to receive an update request message, and send a version update message through an OLT interface that receives the update request message; and the version updating message carries the configuration file corresponding to the acquired configuration file version identification.
In a specific implementation manner of the present application, the configuration file updating apparatus further includes:
the second identification acquisition module is used for acquiring the updated configuration file version identification;
a third message sending module, configured to send a configuration file notification message through each OLT interface of the OLT interface board; wherein the profile advertisement message comprises at least the updated profile version identification.
In a specific implementation manner of the present application, the update request message at least includes a configuration file version identifier of the OUN;
the second message sending module is specifically configured to receive the update request message, compare the OUN configuration file version identifier with the acquired configuration file version identifier, and send the version update message through the OLT interface that receives the update request message if the OUN configuration file version identifier is not consistent with the acquired configuration file version identifier.
In order to achieve the above object, an embodiment of the present application discloses a device for updating a configuration file, which is applied to an optical network unit ONU, and the device includes:
the first message receiving module is used for receiving the update notification message; the update notification message at least comprises a configuration file version identification;
the identification comparison module is used for comparing the configuration file version identification with the locally stored ONU configuration file version identification;
the first message sending module is used for confirming that the configuration file version identification is inconsistent with the locally stored ONU configuration file version identification and sending an updating request message; the updating request message carries the locally stored ONU configuration file version identification;
the second message receiving module is used for receiving the version updating message; and the version updating message carries the configuration file corresponding to the configuration file version identification.
In a specific implementation manner of the present application, the configuration file updating apparatus further includes:
an identification confirming module for confirming that the configuration file version identification is consistent with the locally stored ONU configuration file version identification,
and the second message sending module is used for sending the update confirmation message.
In a specific implementation manner of the present application, the configuration file updating apparatus further includes:
the third message receiving module is used for receiving the configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and the identification replacement module is used for replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
As can be seen from the above, in the solution provided in this embodiment of the application, after the OLT interface board obtains the version identifier of the configuration file before the OLT interface board restarts, an update notification message is sent through each OLT interface of the OLT interface board, and in a manner of receiving an update confirmation message, it is confirmed that the ONU connected to the OLT interface that receives the update confirmation message has updated the configuration file, and a version update message is sent through the OLT interface that receives the update request message by receiving the update request message. It can be seen that in the scheme provided in this embodiment of the application, the OLT sends the update request message to the ONU only when receiving the update request message, so that the ONU updates the configuration file according to the configuration file sent by the OLT, and therefore, when updating the configuration file on the ONU side, the amount of interactive data is greatly reduced, the efficiency of updating the configuration file on the ONU side is improved, and thus, the interruption time of the normal service of the ONU can be shortened, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an EPON system according to the prior art;
fig. 2 is a schematic flowchart of a configuration file updating method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another configuration file updating method according to an embodiment of the present application;
fig. 4 is a schematic signaling flow diagram of a configuration file updating method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a configuration file updating apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another configuration file updating apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 2 is a schematic flowchart of a method for updating a configuration file according to an embodiment of the present application, where the method is applied to an OLT interface board of an optical line terminal, and includes:
s201: and acquiring the configuration file version identification before the OLT interface board is restarted.
Specifically, the OLT interface board may be restarted for various reasons, and after being restarted, in order to ensure that the ONU in communication connection with the OLT interface board normally communicates, it is necessary to ensure that the configuration files of all ONUs are the configuration files of the latest version. In some practical applications, although the OLT interface board is restarted, the ONU is not restarted, and the ONU usually caches the configuration file, so that the configuration file is currently stored in the ONU in this case, but the configuration file locally stored in the ONU may be the latest version of the configuration file or may not be the latest version of the configuration file. The configuration file of the latest version may be understood as the configuration file before the restart of the OLT interface board.
In an optional implementation manner of the present application, the OLT interface board is usually in communication connection with the main control board, and the main control board generally stores configuration information of the ONU in communication with the OLT interface board, so that after the OLT interface board is restarted, the configuration file before the OLT interface board is restarted can be obtained from the main control board through the inter-board communication mechanism.
S202: and sending an update notification message through each OLT interface of the OLT interface board.
Wherein, the update notification message at least comprises the version identification of the acquired configuration file.
In a specific implementation manner of the present application, after the OLT interface board sends an update notification message to the ONU communicatively connected to each OLT interface board through each OLT interface, the ONU may update the configuration file according to the locally stored configuration file, and specifically, after the ONU receives the update notification message, if it is determined that the version identifier of the configuration file obtained in the notification message is consistent with the version identifier of the locally stored configuration file, the configuration file may be updated according to the locally stored configuration file.
In another specific implementation manner of the present application, the update notification message may further carry a configuration self-update identifier, where the configuration self-update identifier is used to notify the ONU to update the configuration file according to the locally stored configuration file. In view of the above, after the OLT interface board sends the update notification message to the ONUs communicatively connected to the OLT interface boards through the OLT interfaces, when the ONUs update the configuration files according to the locally stored configuration files, if the ONUs can analyze the configuration self-update identifier from the received update notification message, it may check whether the version identifier of the locally stored configuration file is consistent with the acquired version identifier of the configuration file, if so, it indicates that the locally stored configuration file is the configuration file before the OLT interface board is restarted, and the configuration file may be updated by using the locally stored configuration file.
In view of the above, in a specific implementation manner of the present application, the update notification message may be sent to the ONU along with the discovery authorization message broadcast by the OLT interface board, because once the OLT interface board is restarted, each ONU communicatively connected to the OLT interface board needs to register again.
As will be understood by those skilled in the art, for an OLT interface board, it generally has a plurality of OLT interfaces, and one OLT interface may be in communication connection with a plurality of ONUs, and among these ONUs, there may be an ONU with an available locally stored configuration file and an ONU with an unavailable locally stored configuration file, and for the two types of ONUs, the OLT may give two different processing manners, i.e., S203 and S204, described below.
S203: and receiving an update confirmation message, and confirming that the ONU connected with the OLT interface receiving the update confirmation message has updated the configuration file.
Wherein, the update confirmation message may include: the configuration update success flag may, of course, further include: the ONU side configures information such as the version id of the file, which is not limited in the present application.
Specifically, after the OLT interface board broadcasts the discovery authorization message, the ONU sends a registration request message to the OLT interface board according to the discovery authorization message to complete ONU registration.
S204: and receiving the update request message, and sending a version update message through the OLT interface receiving the update request message.
The version updating message carries the configuration file corresponding to the acquired configuration file version identification.
And if the OLT receives the update request message, it may indicate that the configuration file locally stored on the ONU side is unavailable, and in order to ensure that the configuration file on the ONU side is successfully updated, the OLT needs to send the configuration file corresponding to the acquired configuration file version identifier to the ONU, so that the ONU successfully updates the configuration file.
The update request message may include: configuring the update failure flag may, of course, further include: the ONU side configures information such as the version id of the file, which is not limited in the present application.
In a preferred implementation manner of the present application, after receiving the update request message, the OLT may analyze a configuration update failure identifier from the update request message and send a version update message through an OLT interface that receives the update request message when determining that the version identifier of the ONU-side configuration file is inconsistent with the acquired configuration file version identifier.
Of course, the version update message may also be sent through the OLT interface that receives the update request message only when the configuration update failure flag is resolved, or only when it is determined that the version flag of the ONU-side configuration file is inconsistent with the acquired configuration file version flag.
In a specific implementation manner of the present application, similar to the update confirmation message, the update request message may also be sent to the OLT interface board along with the registration request message.
In a specific implementation manner of the present application, the update request message at least includes a configuration file version identifier of the OUN; before sending the version update message through the OLT interface that received the update request message, the OUN configuration file version identifier may also be compared with the acquired configuration file version identifier, and if not, the version update message is sent through the OLT interface that received the update request message.
In another specific implementation manner of the present application, the method for updating a configuration file may further include:
acquiring an updated configuration file version identifier;
sending configuration file notification messages through each OLT interface of an OLT interface board; wherein the profile advertisement message comprises at least an updated profile version identification.
As can be seen from the above, in the solution provided in this embodiment, after the OLT interface board obtains the version identifier of the configuration file before the OLT interface board restarts, an update notification message is sent through each OLT interface of the OLT interface board, and by receiving an update confirmation message, it is confirmed that the ONU connected to the OLT interface that receives the update confirmation message has updated the configuration file, and by receiving an update request message, the OLT interface that receives the update request message sends a version update message. It can be seen that in the scheme provided in this embodiment of the application, the OLT sends the update request message to the ONU only when receiving the update request message, so that the ONU updates the configuration file according to the configuration file sent by the OLT, and therefore, when updating the configuration file on the ONU side, the amount of interactive data is greatly reduced, the efficiency of updating the configuration file on the ONU side is improved, and thus, the interruption time of the normal service of the ONU can be shortened, and the user experience is improved.
Fig. 3 is a schematic flowchart of another configuration file updating method provided in an embodiment of the present application, where the method is applied to an optical network unit ONU, and includes:
s301: an update notification message is received.
The update notification message at least includes a configuration file version identifier, and certainly, the configuration file update message may also carry information such as a configuration self-update identifier, which is not limited in this application.
The configuration file version identifier included in the update notification message may be: and identifying the version of the configuration file before the OLT is restarted after the OLT is restarted.
The configuration self-updating identifier is used for informing the ONU to update the configuration file according to the locally stored configuration file.
In a specific implementation manner of the present application, the update notification message may be sent to the ONU along with a discovery authorization message broadcast by an OLT interface board.
S302: and comparing the configuration file version identification with the locally stored ONU configuration file version identification.
In a specific implementation manner of the present application, when the update notification message carries the configuration self-update identifier, this step may be performed after the ONU analyzes the configuration self-update identifier from the update notification message.
S303: and confirming that the configuration file version identification is inconsistent with the locally stored ONU configuration file version identification, and sending an updating request message.
When the ONU determines that the configuration file version identifier is not consistent with the locally stored ONU configuration file version identifier, the ONU locally stored configuration file may be considered to be unavailable, that is, the ONU fails to update the configuration file by using the locally stored configuration file.
The update request message carries locally stored ONU configuration file version identifiers, and certainly, the update request message may also carry configuration update failure identifiers and other information, which is not limited in the present application.
In a specific implementation manner of the present application, the update request message may be sent to the OLT interface board along with the registration request message.
S304: a version update message is received.
And the version updating message carries the configuration file corresponding to the configuration file version identification.
And after receiving the version updating message, the ONU can analyze the configuration file corresponding to the configuration file version identifier and update the configuration file through the analyzed configuration file.
In a preferred implementation manner of the present application, when the ONU determines that the version identifier of the configuration file is consistent with the version identifier of the locally stored ONU configuration file, the ONU sends an update confirmation message, so that the OLT can be notified that the locally stored configuration file of the ONU is an available configuration file, and the OLT does not need to send the configuration file.
Specifically, the update confirmation message may include: the configuration update success flag may, of course, further include: the ONU side configures information such as the version id of the file, which is not limited in the present application.
In addition, similar to the update request message described above, an update confirmation message may also be sent to the OLT interface board along with the registration request message.
In an optional implementation manner of the present application, the method for updating a configuration file may further include:
receiving a configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
As can be seen from the above, in the scheme provided in this embodiment, after receiving the update notification message, the ONU compares the version identifier of the configuration file with the version identifier of the locally stored ONU configuration file, and sends the update request message only when the two version identifiers are inconsistent, and receives the version update message, so that when updating the configuration file on the ONU side, the amount of interactive data is greatly reduced, the efficiency of updating the configuration file on the ONU side is improved, the interruption time of the normal service of the ONU can be further shortened, and the user experience is improved.
The configuration file updating method provided by the embodiments shown in fig. 2 and fig. 3 is comprehensively described below with reference to the ONU registration process.
Referring to fig. 4, a signaling flow diagram of a configuration file updating method is provided.
After an OLT interface board is restarted, each ONU in communication connection with each OLT interface of the OLT interface board needs to register again, and the specific process is as follows:
firstly, after the OLT interface board is restarted, a discovery authorization message carrying a self-updating identification and a latest configuration version identification is generated (S401), and broadcasts the discovery authorization message (S402), after the ONU receives the discovery authorization message, parsing the message, performing configuration file self-update according to the self-update identification and the latest configuration version identification contained in the message (S403), then a registration request message is generated according to the configuration file updating result and the configuration version identification of the local ONU configuration file (S404), and sends the registration request message to the OLT interface board (S405), after the OLT interface board receives the registration request message, judging whether the ONU successfully self-updates the configuration file according to the configuration file updating result carried in the ONU and the configuration version identification at the ONU side (S406), if the ONU successfully self-updates, the OLT interface board completes the subsequent ONU registration according to the prior art (S409); if the self-updating is not successful, the configuration file corresponding to the latest configuration version identifier is sent to the ONU side (S407), the ONU updates the configuration file after receiving the configuration file (S408), and then the ONU registration is completed according to the prior art (S409).
The latest configuration version identification can be understood as follows: and the version identification of the configuration file before the OLT is restarted is obtained after the OLT is restarted.
The configuration file update result may be that the configuration file is successfully updated, and at this time, the result includes a configuration update success identifier, and at this time, it may be understood that an update confirmation message is carried in the registration request, and the OLT may confirm that the ONU has updated the configuration file according to the message carried in the registration request.
The configuration file update result may also be a configuration file update failure, where the result includes a configuration update failure identifier, and at this time, it may be understood that an update request message is carried in the registration request, and the OLT may send a version update message to the ONU according to the message carried in the registration request.
Specifically, whether the discovery authorization message or the registration request message is transmitted according to a format specified by the relevant specification.
It can be understood by those skilled in the art that values of each identification bit in a corresponding protocol are specified in a common specification, but in the process of making the specification, some bits are reserved in consideration of factors such as convenience for later expansion, and the like, and when a receiving end analyzes message data after receiving the message data, values of the reserved bits can be ignored, that is, according to the specification, the values of the reserved bits do not affect the analysis result of the message.
In view of the above, when the self-updating flag and the latest configuration version flag are set in the discovery authorization message, the reserved bits specified in the specification may be considered, and the information is represented by the reserved bits, but in this case, unlike the prior art, when the ONU receives the discovery authorization message and then parses the message, the ONU does not completely ignore the value of the reserved bits, but needs to parse the self-updating flag and the latest configuration version flag from the reserved bits according to the convention.
In a preferred implementation manner of the present application, the self-updating flag may be located in a discovery message domain of an MPCP (Multipoint Control Protocol) discovery authorization message, where a bit flag of the discovery message domain is a bit of a first preset value, where the bit of the first preset value is a reserved bit;
the latest configuration version identifier may be located in a first preset number of bits of a bit identifier starting from a second preset value in a discovery message domain of the MPCP discovery grant message, where the first preset number of bits is a reserved bit.
Specifically, referring to table 1, information contained in a discovery message domain of an MPCP discovery authorization message is provided.
TABLE 1
Figure BDA0000953132920000121
The "bit" column in table 1 above can be understood as the position of each identification field in the discovery message field of the MPCP discovery grant message, that is, can be understood as the bit identification of each identification field. As can be seen from the table, the 2 nd to 3 rd bits and the 6 th to 15 th bits are reserved bits, or are called reserved bits, and the self-updating flag and the latest configuration version flag may be located in any one of the reserved bits.
It can be understood that, in general, when the self-updating flag and the latest configuration version flag are represented, consecutive bits are used to facilitate the ONU to perform information analysis, and in addition, the latest configuration version flag requires more bits, so the 2 nd to 3 rd bits can be used to represent the self-updating flag, and the 6 th to 15 th bits can be used to represent the latest configuration version flag.
Preferably, the first predetermined value may be 2, and of course, may also be 3, and so on.
In addition, when a plurality of bits are used to represent the latest configuration version identifier, a value range corresponding to the identifier is relatively large, so preferably, the second preset value may be 6, the first preset number may be 10(15-6+1 is 10), of course, the second preset value may be 7, 8, and the like, and the first preset number may be 9, 8, and the like, which is not limited in this application.
Based on the foregoing description, when the ONU-side configuration version identifier and the configuration update success identifier/configuration update failure identifier are set in the registration request message, these reserved bits specified in the specification may also be considered, and the information is represented by the reserved bits, but in this case, different from the prior art, when the OLT receives the registration request message and then parses the message, the value of the reserved bits is not completely ignored, but the update success identifier/configuration update failure identifier and the ONU-side configuration version identifier need to be parsed from the reserved bits according to an agreement.
In a preferred implementation manner of the present application, the update success flag/configuration update failure flag may be located in a discovery message field of the MPCP registration request message, where a bit flag of the third preset value is a reserved bit;
the ONU-side configuration version identifier may be located in a second preset number of bits of the bit identifier starting from the fourth preset value in the discovery message field of the MPCP registration request message, where the second preset number of bits is reserved bits.
Preferably, the second predetermined number is equal to the first predetermined number.
Specifically, referring to table 2, information contained in the discovery message field of the MPCP registration request message is provided.
TABLE 2
Figure BDA0000953132920000131
The "bit" column in table 2 above can be understood as the position of each identification field in the discovery message field of the MPCP registration request message, that is, can be understood as the bit identification of each identification field. As can be seen from the table, the 2 nd to 3 rd bits and the 6 th to 15 th bits are reserved bits or are called reserved bits, and the update success identifier/configuration update failure identifier and the ONU-side configuration version identifier may be located in any one of the reserved bits.
It can be understood that, in general, when indicating the ONU-side configuration version identifier and the configuration update success identifier/configuration update failure identifier, continuous bits are used to facilitate the OLT to perform information analysis, and in addition, bits required for the configuration version identifier are more, so that the 2 nd to 3 th bits may be used to indicate the configuration update success identifier/configuration update failure identifier, and the 6 th to 15 th bits may be used to indicate the ONU-side configuration version identifier.
Preferably, the third predetermined value may be 2, and of course, may also be 3, and so on.
In addition, when a plurality of bits are used to represent the ONU-side configuration version identifier, a value range corresponding to the identifier is relatively large, so preferably, the fourth preset value may be 6, the second preset number may be 10(15-6+1 is 10), of course, the fourth preset value may be 7, 8, and the like, and the second preset number may be 9, 8, and the like, which is not limited in this application.
The latest configuration version identification can be understood as follows: and the version identification of the configuration file before the OLT is restarted is obtained after the OLT is restarted.
Corresponding to the configuration file updating method, the embodiment of the application also provides a configuration file updating device.
Fig. 5 is a schematic structural diagram of a configuration file updating apparatus according to an embodiment of the present application, where the apparatus is applied to an optical line terminal OLT interface board, and includes:
a first identifier obtaining module 501, configured to obtain a configuration file version identifier before the OLT interface board is restarted;
a first message sending module 502, configured to send an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification;
an update confirmation module 503, configured to receive an update confirmation message, and confirm that the optical network unit ONU connected to the OLT interface that receives the update confirmation message has updated the configuration file;
a second message sending module 504, configured to receive an update request message, and send a version update message through an OLT interface that receives the update request message; and the version updating message carries the configuration file corresponding to the acquired configuration file version identification.
In a specific implementation manner of the present application, the configuration file updating apparatus may further include:
the second identification acquisition module is used for acquiring the updated configuration file version identification;
a third message sending module, configured to send a configuration file notification message through each OLT interface of the OLT interface board; wherein the profile advertisement message comprises at least the updated profile version identification.
In a specific implementation manner of the present application, the update request message at least includes a configuration file version identifier of the OUN;
the second message sending module is specifically configured to receive the update request message, compare the OUN configuration file version identifier with the acquired configuration file version identifier, and send the version update message through the OLT interface that receives the update request message if the OUN configuration file version identifier is not consistent with the acquired configuration file version identifier.
As can be seen from the above, in the solution provided in this embodiment, after the OLT interface board obtains the version identifier of the configuration file before the OLT interface board restarts, an update notification message is sent through each OLT interface of the OLT interface board, and by receiving an update confirmation message, it is confirmed that the ONU connected to the OLT interface that receives the update confirmation message has updated the configuration file, and by receiving an update request message, the OLT interface that receives the update request message sends a version update message. It can be seen that in the scheme provided in this embodiment of the application, the OLT sends the update request message to the ONU only when receiving the update request message, so that the ONU updates the configuration file according to the configuration file sent by the OLT, and therefore, when updating the configuration file on the ONU side, the amount of interactive data is greatly reduced, the efficiency of updating the configuration file on the ONU side is improved, and thus, the interruption time of the normal service of the ONU can be shortened, and the user experience is improved.
Fig. 6 is a schematic structural diagram of another configuration file updating apparatus provided in an embodiment of the present application, where the apparatus is applied to an optical network unit ONU, and includes:
a first message receiving module 601, configured to receive an update notification message; the update notification message at least comprises a configuration file version identification;
an identifier comparison module 602, configured to compare the configuration file version identifier with a locally stored ONU configuration file version identifier;
a first message sending module 603, configured to determine that the configuration file version identifier is inconsistent with the locally stored ONU configuration file version identifier, and send an update request message; the updating request message carries the locally stored ONU configuration file version identification;
a second message receiving module 604, configured to receive a version update message; and the version updating message carries the configuration file corresponding to the configuration file version identification.
In a specific implementation manner of the present application, the configuration file updating apparatus may further include:
an identification confirming module for confirming that the configuration file version identification is consistent with the locally stored ONU configuration file version identification,
and the second message sending module is used for sending the update confirmation message.
In a specific implementation manner of the present application, the configuration file updating apparatus may further include:
the third message receiving module is used for receiving the configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and the identification replacement module is used for replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
As can be seen from the above, in the scheme provided in this embodiment, after receiving the update notification message, the ONU compares the version identifier of the configuration file with the version identifier of the locally stored ONU configuration file, and sends the update request message only when the two version identifiers are inconsistent, and receives the version update message, so that when updating the configuration file on the ONU side, the amount of interactive data is greatly reduced, the efficiency of updating the configuration file on the ONU side is improved, the interruption time of the normal service of the ONU can be further shortened, and the user experience is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A method for updating configuration files is applied to an OLT interface board of an optical line terminal, and is characterized by comprising the following steps:
acquiring a configuration file version identifier before the OLT interface board is restarted;
sending an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification; the updating notification message also carries a configuration self-updating identifier; the updating notification message is sent along with a discovery authorization message broadcasted by the OLT interface board; representing the configuration file version identification and the self-updating identification through reserved bits;
receiving an update confirmation message, and confirming that an Optical Network Unit (ONU) connected with an OLT interface receiving the update confirmation message has updated a configuration file;
receiving an update request message, and sending a version update message through an OLT interface receiving the update request message; the version updating message carries a configuration file corresponding to the acquired configuration file version identification;
the update confirmation message and the update request message are sent with a registration request message sent by the ONU to the OLT interface board.
2. The method of claim 1, further comprising:
acquiring an updated configuration file version identifier;
sending configuration file notification messages through each OLT interface of the OLT interface board; wherein the profile advertisement message comprises at least the updated profile version identification.
3. The method of claim 1 wherein the update request message includes at least a profile version identification of the OUN; before the sending the version update message through the OLT interface that receives the update request message, the method further includes:
and comparing the OUN configuration file version identification with the acquired configuration file version identification, and if the OUN configuration file version identification is not consistent with the acquired configuration file version identification, sending a version updating message through the OLT interface which receives the updating request message.
4. A method for updating a configuration file is applied to an Optical Network Unit (ONU), and is characterized by comprising the following steps:
receiving an update notification message; the update notification message at least comprises a configuration file version identification; the updating notification message also carries a configuration self-updating identifier; representing the configuration file version identification and the self-updating identification through reserved bits;
comparing the configuration file version identification with the locally stored ONU configuration file version identification;
confirming that the configuration file version identification is inconsistent with the locally stored ONU configuration file version identification, and sending an updating request message; the updating request message carries the locally stored ONU configuration file version identification;
receiving a version update message; the version updating message carries a configuration file corresponding to the configuration file version identification;
the receiving the update notification message includes:
receiving an updating notification message sent along with a discovery authorization message broadcasted by an OLT interface board of an optical line terminal;
the sending of the update request message includes:
an update request message is sent with the registration request message.
5. The method of claim 4, further comprising:
confirming that the profile version identification is consistent with the locally stored ONU profile version identification,
and sending an updating confirmation message.
6. The method of claim 4, further comprising:
receiving a configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
7. A configuration file updating device is applied to an OLT interface board, and is characterized by comprising:
a first identifier obtaining module, configured to obtain a configuration file version identifier before the OLT interface board is restarted;
a first message sending module, configured to send an update notification message through each OLT interface of the OLT interface board; wherein, the update notification message at least comprises the acquired configuration file version identification; the updating notification message also carries a configuration self-updating identifier; the updating notification message is sent along with a discovery authorization message broadcasted by the OLT interface board; representing the configuration file version identification and the self-updating identification through reserved bits;
the updating confirmation module is used for receiving the updating confirmation message and confirming that the ONU which is connected with the OLT interface and receives the updating confirmation message updates the configuration file;
a second message sending module, configured to receive an update request message, and send a version update message through an OLT interface that receives the update request message; the version updating message carries a configuration file corresponding to the acquired configuration file version identification;
the update confirmation message and the update request message are sent with a registration request message sent by the ONU to the OLT interface board.
8. The apparatus of claim 7, further comprising:
the second identification acquisition module is used for acquiring the updated configuration file version identification;
a third message sending module, configured to send a configuration file notification message through each OLT interface of the OLT interface board; wherein the profile advertisement message comprises at least the updated profile version identification.
9. The apparatus of claim 7, wherein the update request message comprises at least a profile version identification of the OUN;
the second message sending module is specifically configured to receive the update request message, compare the OUN configuration file version identifier with the acquired configuration file version identifier, and send the version update message through the OLT interface that receives the update request message if the OUN configuration file version identifier is not consistent with the acquired configuration file version identifier.
10. A configuration file updating device applied to an Optical Network Unit (ONU), the device comprising:
the first message receiving module is used for receiving the update notification message; the update notification message at least comprises a configuration file version identification; the updating notification message also carries a configuration self-updating identifier; representing the configuration file version identification and the self-updating identification through reserved bits;
the identification comparison module is used for comparing the configuration file version identification with the locally stored ONU configuration file version identification;
the first message sending module is used for confirming that the configuration file version identification is inconsistent with the locally stored ONU configuration file version identification and sending an updating request message; the updating request message carries the locally stored ONU configuration file version identification;
the second message receiving module is used for receiving the version updating message; the version updating message carries a configuration file corresponding to the configuration file version identification;
the first message receiving module is specifically configured to receive an update notification message sent along with a discovery authorization message broadcast by an OLT interface board of an optical line terminal;
the first message sending module is specifically configured to send an update request message with a registration request message.
11. The apparatus of claim 10, further comprising:
an identification confirming module for confirming that the configuration file version identification is consistent with the locally stored ONU configuration file version identification,
and the second message sending module is used for sending the update confirmation message.
12. The apparatus of claim 10, further comprising:
the third message receiving module is used for receiving the configuration file notification message; wherein the profile advertisement message comprises at least an updated profile version identification;
and the identification replacement module is used for replacing the locally stored ONU configuration file version identification according to the updated configuration file version identification.
CN201610188645.1A 2016-03-29 2016-03-29 Configuration file updating method and device Active CN106789144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610188645.1A CN106789144B (en) 2016-03-29 2016-03-29 Configuration file updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610188645.1A CN106789144B (en) 2016-03-29 2016-03-29 Configuration file updating method and device

Publications (2)

Publication Number Publication Date
CN106789144A CN106789144A (en) 2017-05-31
CN106789144B true CN106789144B (en) 2021-06-18

Family

ID=58972209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610188645.1A Active CN106789144B (en) 2016-03-29 2016-03-29 Configuration file updating method and device

Country Status (1)

Country Link
CN (1) CN106789144B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783770B (en) * 2017-08-25 2020-06-05 深圳壹账通智能科技有限公司 Page configuration updating method, device, server and medium
CN107634858A (en) * 2017-09-25 2018-01-26 新华三信息安全技术有限公司 Feature database update method and controller
CN107911764B (en) * 2017-12-29 2021-05-28 武汉长光科技有限公司 Method for accelerating business management of intensive EPON ONU

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
WO2010121529A1 (en) * 2009-04-21 2010-10-28 华为技术有限公司 Method, system and device for transmitting ipv6 protocol message in passive optical network
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
WO2010121529A1 (en) * 2009-04-21 2010-10-28 华为技术有限公司 Method, system and device for transmitting ipv6 protocol message in passive optical network
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system

Also Published As

Publication number Publication date
CN106789144A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106789144B (en) Configuration file updating method and device
US8406628B2 (en) Method, equipment, and system for detecting and authenticating terminal in passive optical network
CN101034938B (en) Configuration method for remote management IP address of the ONU in the EPON network
EP3128698B1 (en) Service processing method and apparatus and optical line terminal
CN103763148B (en) ONU automatic authorization configuration recovery method
US20160006608A1 (en) Channel map for optical network unit activation and rogue behavior prevention
US20110099545A1 (en) Method and apparatus for simultaneously updating software installed in terminals in communication system
US9232282B2 (en) Subscriber line terminal, control method, and control method for PON system
EP2753010A1 (en) Wavelength distribution method, optical network unit and optical network system in optical communication system
CN112994938B (en) Optical network unit upgrading system and method
EP2458811B1 (en) Method, apparatus and system for processing user identity information in gigabit passive optical network system
CN101902662A (en) Optical network unit (ONU) registration activating method and system
WO2023151428A1 (en) Home all-optical network gateway version upgrading method, electronic device, and storage medium
CN106685692A (en) Method for quickly upgrading ONU in EPON system
CN101729947A (en) Method for downloading update version and system thereof
US20140059532A1 (en) Upgrading Nodes
CN101330510A (en) Method, system, server and client for distributing down directory tree data
EP3280093A1 (en) Registration method and apparatus
CN109120334B (en) Optical fiber position determining method and device, network element, storage medium and processor
CN108289256B (en) Passive optical network management method and terminal equipment
CN110350973B (en) ONU equipment registration method for improving registration name use efficiency
CN105991323B (en) User equipment replacing method, network element management system and optical network system
KR102286298B1 (en) Apparatus of synchronization for docsis upstream signal transmission through optical based ip network and method of the same
CN105516394A (en) DNS (Domain Name System) address management method and terminal
CN108989912B (en) Service management method, device, system and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant