Summary of the invention
This application provides optical network unit ONU version upgrading method and equipment, to avoid the edition upgrading being intervened ONU by CPU management on OLT, save the resource of CPU management on OLT, and accelerate the edition upgrading of ONU.
The technical scheme that the application provides comprises:
A method for optical network unit ONU edition upgrading in Ethernet passive optical network EPON system, pre-set file server and Dynamic Host Configuration Protocol server in this EPON system, the version that this file server repository ONU is to be upgraded; The method is applied to ONU, comprising:
Receive the following information of OLT notice when confirming that this ONU needs to carry out edition upgrading: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded;
Address to this Dynamic Host Configuration Protocol server sends DHCP request message to ask Dynamic Host Configuration Protocol server for this ONU distributing IP address;
Receiving Dynamic Host Configuration Protocol server is the IP address that this ONU distributes;
Address to this file server sends version request, and the source IP address of this version request is Dynamic Host Configuration Protocol server is the IP address that this ONU distributes, and this version request carries the mark of this version to be upgraded;
Receiving this file server is that its to be upgraded version corresponding with the mark of this version to be upgraded transmitted is to complete edition upgrading.
Too a method for optical network unit ONU edition upgrading in net EPON EPON system, pre-sets file server and Dynamic Host Configuration Protocol server in this EPON system, the version that this file server repository ONU is to be upgraded; The method is applied to optical line terminal OLT, and this OLT is by ether interface threaded file server and Dynamic Host Configuration Protocol server, and the method comprises:
Setting up after OAM is connected with ONU, being connected by this OAM and carrying out information interaction to confirm that ONU is the need of carrying out edition upgrading with ONU;
Following information is notified to ONU: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded when confirming that ONU needs to carry out edition upgrading.
An equipment for optical network unit ONU edition upgrading in Ethernet passive optical network EPON system, pre-set file server and Dynamic Host Configuration Protocol server in this EPON system, the version that this file server repository ONU is to be upgraded; This equipment is applied to ONU, comprising:
Receiving element, for receiving the following information of OLT notice when confirming that this ONU needs to carry out edition upgrading: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded; And receive the IP address that Dynamic Host Configuration Protocol server is self ONU distribution; And receive this file server be its transmit to be upgraded version corresponding with the mark of this version to be upgraded to complete edition upgrading;
Address requests unit, for sending DHCP request message to ask Dynamic Host Configuration Protocol server for this ONU distributing IP address to the address of this Dynamic Host Configuration Protocol server;
Version request unit, sends version request for the address to this file server, and the source IP address of this version request is Dynamic Host Configuration Protocol server is the IP address that this ONU distributes, and this version request carries the mark of this version to be upgraded.
Too an equipment for optical network unit ONU edition upgrading in net EPON EPON system, pre-sets file server and Dynamic Host Configuration Protocol server in this EPON system, the version that this file server repository ONU is to be upgraded; This equipment is applied to optical line terminal OLT, and this OLT is by ether interface threaded file server and Dynamic Host Configuration Protocol server, and this equipment comprises:
Confirmation unit, for setting up after OAM is connected with ONU, being connected by this OAM and carrying out information interaction to confirm that ONU is the need of carrying out edition upgrading with ONU;
Notification unit, for notifying following information when this confirmation unit confirms that ONU needs to carry out edition upgrading to ONU: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded.
As can be seen from the above technical solutions, in the present invention, in the whole edition upgrading process of ONU, the address of control information such as this file server that OLT only needs the edition upgrading of notice ONU equipment to be correlated with, the address of Dynamic Host Configuration Protocol server, the mark of version to be upgraded, remaining version load and upgrade job by ONU equipment and file server mutual voluntarily, CPU management without the need to OLT is intervened, and this saves the resource of CPU management on OLT, and accelerates the edition upgrading of ONU.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
The method that the application provides can avoid the edition upgrading being intervened ONU by the CPU management on OLT, saves the resource of CPU management on OLT, and accelerates the edition upgrading of ONU.
Below method provided by the invention is described:
Be method flow diagram provided by the invention see Fig. 2, Fig. 2.The method is applied to EPON system, wherein, file server and Dynamic Host Configuration Protocol server is pre-set in EPON system, as one embodiment of the present of invention, OLT in EPON system connects this file server pre-set and Dynamic Host Configuration Protocol server respectively by ether interface, and Fig. 3 shows the EPON system networking diagram that the embodiment of the present invention provides.
In the present invention, file server houses ONU version to be upgraded, and here, file server can be http server, or be TFTP (TFTP:Trivial File Transfer Protocol) server, specifically can be dependent on the setting of user.
In the present invention, Dynamic Host Configuration Protocol server is used for for ONU distributing IP address, so that ONU utilizes the IP address be assigned with to obtain version to be upgraded from file server.
Based on the file server pre-set in EPON system and Dynamic Host Configuration Protocol server, then as shown in Figure 2, this flow process can comprise the following steps:
Step 201, OLT, setting up after OAM is connected with ONU, is connected by this OAM and carries out information interaction to confirm that ONU is the need of carrying out edition upgrading with ONU.
Here, OLT and ONU sets up the mode of the similar existing OAM connection establishment of mode that OAM connects, and, OLT is connected by OAM and carries out information interaction to confirm ONU the need of the similar existing ONU of confirmation of the mode of carrying out edition upgrading the need of the mode of carrying out edition upgrading with ONU, repeats no more here.
Step 202, OLT notifies following information when confirming that ONU needs to carry out edition upgrading to ONU: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded.
Step 203, ONU receives the following information of OLT notice: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded.
Step 204, ONU sends DHCP request message to ask Dynamic Host Configuration Protocol server for this ONU distributing IP address to the address of this Dynamic Host Configuration Protocol server, and receives the IP address that Dynamic Host Configuration Protocol server is this ONU distribution.
Preferably, in the present invention, before execution step 204, OLT notification version can upgrade mode to ONU further.As one embodiment of the present of invention, inform ONU together with the information that the edition upgrading mode that OLT notifies further can notify with OLT in above-mentioned steps 202 simultaneously, the unpack that also can notify with OLT in above-mentioned steps 202 informs ONU, and the present invention does not specifically limit.
Here, when this edition upgrading mode is first method, then represent and to perform according to method provided by the invention; And when this edition upgrading mode is second method, then represent according to the clearly defined upgrading scheme of China Telecom's CTC3.0 standard (being called for short existing version upgrading mode) execution.Based on this, ONU, before execution this step 204, can comprise further:
Confirm the edition upgrading mode of OLT notice, if this edition upgrading mode is first method, as mentioned above, first method represents and to perform according to method provided by the invention, then continue to perform step 204; And if be second method, as mentioned above, second method represents according to the clearly defined upgrading scheme of China Telecom's CTC3.0 standard (being called for short existing version upgrading mode) execution, because existing version upgrading mode obtains version to be upgraded from OLT and carries out edition upgrading, based on this, here just obtain version to be upgraded from OLT according to existing version upgrading mode and carry out edition upgrading, no longer performing step 204 and each step follow-up.
Step 205, ONU sends version request to the address of this file server, and the source IP address of this version request is Dynamic Host Configuration Protocol server is the IP address that this ONU distributes, and this version request carries the mark of this version to be upgraded.
It should be noted that, before this step 205 performs, the method can comprise further: data cube computation set up by ONU and file server.As mentioned above, in the present invention, file server can be http server, or is tftp server.Based on this, when file server is http server, the data cube computation that ONU and file server are set up is just for HTTP is connected, and when file server is tftp server, the data cube computation that ONU and file server are set up is just for TFTP is connected.Wherein, set up the similar existing mode of mode that HTTP connects or TFTP connects, repeat no more here.
Based on the data cube computation of this foundation, ONU can by the address transmission version request as above of the data cube computation of this foundation to this file server.
Step 206, when file server receives this version request, transmits the to be upgraded version corresponding with the version identifier to be upgraded that this version request is carried to the ONU that have sent this version request.
As mentioned above, file server stores version to be upgraded, based on this, this step 206 is specially: when file server receives this version request, find the version with this keyword in the version that the version identifier to be upgraded carried with this version request stores in this locality for keyword, the version this found sends the ONU that have sent this version request to.
Step 207, it is that its version transmitted is to complete edition upgrading that ONU receives this file server.
Here, particularly, step 206 can be: it is the version that it transmits that ONU receives this file server, and autoboot, completes edition upgrading.
So far, the flow process shown in Fig. 2 is completed.
It should be noted that, as one embodiment of the present of invention, in above-mentioned steps 202, OLT is carried in OAM Extended Protocol message to the information that ONU notifies.Fig. 4 shows the form of OAM Extended Protocol message.In the OAM Extended Protocol message shown in Fig. 4, Payload field comprises data type (Data Type), length (Length), TID and message format (Message format).
Wherein, Data Type: the type representing the data of Message format carrying, be customized for the data type for ONU edition upgrading here, value can be 0XFE;
Length: the byte length representing Payload is the length sum of Data Type, Length, TID and Message format;
TID: adopt No. LLID of ONU to represent TID, under M-LLID pattern, adopts No. LLID, Base to represent TID; Here, TID is the same with the TID in existing OAM Extended Protocol message, repeats no more;
Message format: the mark (ONU Version Name) mainly carrying the address (File Server IP address) of this file server, the address (DCHP Server IP address) of Dynamic Host Configuration Protocol server, version to be upgraded, its form is as shown in table 1 below:
Table 1:
Also have, as mentioned above, OLT notification version can upgrade mode to ONU further, here, be carried in the Message format of OAM Extended Protocol message together with the information that edition upgrading mode can notify with above-mentioned OLT and send to ONU, also can send to ONU separately through OAM Extended Protocol message similar to Figure 4.Here, when sending edition upgrading mode to ONU separately through OAM Extended Protocol message similar to Figure 4, the Message format in OAM Extended Protocol message only carries edition upgrading mode, and shown in other field and Fig. 4, field is similar, repeats no more.
Above method provided by the invention is described.Method from the above description can be found out, in the present invention, in the whole edition upgrading process of ONU, the address of control information such as this file server that OLT only needs the little OAM Extended Protocol message notifying ONU equipment edition upgrading of transmission to be correlated with, the address of Dynamic Host Configuration Protocol server, the mark of version to be upgraded, remaining version load and upgrade job by ONU equipment and file server mutual voluntarily, CPU management without the need to OLT is intervened, this saves the resource of CPU management on OLT, and accelerates the edition upgrading of ONU.
Below equipment provided by the invention is described:
Be the first equipment structure chart provided by the invention see Fig. 5, Fig. 5.This equipment is applied to ONU in EPON system, it is characterized in that, pre-set file server and Dynamic Host Configuration Protocol server in this EPON system, the version that this file server repository ONU is to be upgraded; This equipment can comprise:
Receiving element, for receiving the following information of OLT notice when confirming that this ONU needs to carry out edition upgrading: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded; And receive the IP address that Dynamic Host Configuration Protocol server is self ONU distribution; And receive this file server be its transmit to be upgraded version corresponding with the mark of this version to be upgraded to complete edition upgrading;
Address requests unit, for sending DHCP request message to ask Dynamic Host Configuration Protocol server for this ONU distributing IP address to the address of this Dynamic Host Configuration Protocol server;
Version request unit, sends version request for the address to this file server, and the source IP address of this version request is Dynamic Host Configuration Protocol server is the IP address that this ONU distributes, and this version request carries the mark of this version to be upgraded.
Preferably, in the present invention, this receiving element, before this Address requests unit sends DHCP request message to the address of Dynamic Host Configuration Protocol server, receives the edition upgrading mode of OLT notice when confirming that this ONU needs to carry out edition upgrading further;
Based on this, preferably, in the present invention, this equipment comprises further:
Confirmation unit, during for confirming that this edition upgrading mode is first method, triggers the operation that this Address requests unit continues the address transmission DHCP request message performed to Dynamic Host Configuration Protocol server; And, when confirming that this edition upgrading mode is second method, obtain version to be upgraded from OLT according to existing version upgrading mode and carry out edition upgrading.
Preferably, in the present invention, this file server is http server, or is TFTP tftp server.
So far, the equipment structure chart shown in Fig. 5 is completed.
Present invention also offers the second equipment structure chart.Be the second equipment structure chart provided by the invention see Fig. 6, Fig. 6.This equipment of this equipment is applied to OLT, and this OLT connects the file server and Dynamic Host Configuration Protocol server that pre-set in EPON system by ether interface, as shown in Figure 6, this equipment comprises:
Confirmation unit, for setting up after OAM is connected with ONU, being connected by this OAM and carrying out information interaction to confirm that ONU is the need of carrying out edition upgrading with ONU;
Notification unit, for notifying following information when this confirmation unit confirms that ONU needs to carry out edition upgrading to ONU: the mark of the address of this file server, the address of Dynamic Host Configuration Protocol server, version to be upgraded.
Preferably, in the present invention, further notification version upgrading mode is to ONU when confirming that ONU needs to carry out edition upgrading for this notification unit, and wherein, this edition upgrading mode is designated first method, or is second method.
So far, the second equipment structure chart provided by the invention is completed.
Above the equipment provided is described.
As can be seen from the above technical solutions, in the present invention, in the whole edition upgrading process of ONU, the address of control information such as this file server that OLT only needs the edition upgrading of notice ONU equipment to be correlated with, the address of Dynamic Host Configuration Protocol server, the mark of version to be upgraded, remaining version load and upgrade job by ONU equipment and file server mutual voluntarily, CPU management without the need to OLT is intervened, and this saves the resource of CPU management on OLT, and accelerates the edition upgrading of ONU.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.