CN108733394A - A kind of optical network unit version upgrading method and system - Google Patents
A kind of optical network unit version upgrading method and system Download PDFInfo
- Publication number
- CN108733394A CN108733394A CN201810373426.XA CN201810373426A CN108733394A CN 108733394 A CN108733394 A CN 108733394A CN 201810373426 A CN201810373426 A CN 201810373426A CN 108733394 A CN108733394 A CN 108733394A
- Authority
- CN
- China
- Prior art keywords
- onu
- line card
- main control
- control unit
- memory
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
Abstract
The invention discloses a kind of optical network unit version upgrading method and systems, the system includes main control unit and line card and the circulating memory module being arranged on main control unit and line card, and circulating memory module includes that the writing task module of this grade of equipment is written by upper level device file data fragmentation and by fragment;It reads the data fragmentation of this grade and is issued to the reading task module of next stage equipment;Control the writing speed of writing task module and the writing task scheduler module of writing position;And control the reading speed of reading task module and the reading task scheduler module of reading position;When the memory source of main control unit or line card can not start the circulating memory module when full storage ONU upgrade files.The present invention by writing, the rational management of reading task, control write-in, reading speed, the free memory of main control unit and line card is set to be not less than the secure threshold of system normal operation, ensure when main control unit or line card are when that can not store ONU upgrade files, ONU equipment can successfully be upgraded, scheme is simple, and input is low.
Description
Technical field
The present invention relates to the system administrations of optical network unit (ONU), and in particular to a kind of optical network unit edition upgrading side
Method and system.
Background technology
Informationization at present is in the unconventional high speed development stage, and network has become pith in people's life,
With online game, the emergence of high-definition television (HDTV) and Interactive Internet TV (IPTV) contour broadband services,
Demand of the user to access bandwidth is continuously increased.With Ethernet passive optical network (EPON) and gigabit passive optical network (GPON)
For the intelligent acess technology of representative, have transmission speed fast, long transmission distance, interference rejection ability is strong, and dilatation is convenient, reliability height,
Feature at low cost, operation maintenance is simple, therefore meet user demand as mainstream access technology by many operators.
However, as user of access network demand is on the increase, ONU equipment is often faced with the case where needing upgrading, and ONU
Equipment itself increases with function, and the size of software version is increasing.The software version of ONU equipment in the prior art
Upgrading is to use FTP (File Transfer Protocol, File Transfer Protocol) mode, this mode is from ftp server (branch
Hold the server of File Transfer Protocol) upgrade file is downloaded, the main control unit and line card of OLT can store and upgrade file forwarded to arrive successively
ONU.Since the memory headroom that the main control unit and line card of OLT are used to store upgrade file is limited, so can not when being faced with upgrading
Under storage the case where ONU software versions;If such case cannot solve, it can cause the ONU equipment function of existing net can not be normal
Update, can not just meet the user demand increased increasingly in time.
In view of this, there is an urgent need for a kind of optical network unit edition upgrading scheme, solve when upgrading to existing net ONU equipment, OLT
The problem of lower ONU software versions can not be stored, failed so as to cause upgrading.
Invention content
The technical problem to be solved by the present invention is to when ONU software documents are excessive, have in the main control unit and line card of OLT
The problem of limit can not store ONU upgrade files, fail so as to cause ONU equipment function upgrading.
In order to solve the above-mentioned technical problem, there is provided a kind of optical network unit versions for the technical solution adopted in the present invention
Upgrade method includes the following steps:
Build circulating memory mechanism respectively on the main control unit and line card of OLT, circulating memory mechanism includes writing task and reading
Task;Wherein:
This grade of equipment is written by upper level device file data fragmentation, and by data fragmentation in writing task;
Reading task will read the data fragmentation of this grade, and be issued to next stage equipment;
By the rational management to writing task and reading task, make this grade of equipment free memory not less than system normal operation
Secure threshold, and when data fragmentation is written, the former data fragmentation on writing position has been read, and is read in data fragmentation
When, the data fragmentation of reading was not read;
When main control unit and line card can not full storage ONU upgrade files when, start circulating memory mechanism thereon by ONU liters
Grade file is issued to next stage equipment.
In the above-mentioned methods, writing task is scheduling to:
According to this grade of device memory service condition and reading task to the reading situation of this grade of device memory, controls this grade and set
Speed, frequency and the data fragmentation size of standby writing task write-in file data, and the position of data is written;
Reading task is scheduling to:
According to this grade of device memory service condition and writing task to the write-in situation of this grade of device memory, controls this grade and set
Standby reading task reads speed, frequency and the data fragmentation size of file data, and reads the position of data.
In the above-mentioned methods, the writing task of main control unit is when obtaining the data fragmentation of ONU upgrade files from FTP SERVER,
Two data fragmentation intervals cannot be more than time-out time as defined in File Transfer Protocol;
Correspondingly, the writing task of line card from main control unit obtain ONU upgrade files data fragmentation when, two data fragmentations
Interval cannot be more than time-out time as defined in File Transfer Protocol.
In the above-mentioned methods, writing task checks continually on the operating status of reading task in the process of running, if reading task goes out
Now abnormal, writing task processing is abnormal, oneself is returned to original state;
Reading task checks continually on the operating status of writing task in the process of running, if abnormal, reading task occurs in writing task
Processing is abnormal, oneself is returned to original state.
In the above-mentioned methods, for the end of reading task and writing task:
The end of reading task will notify writing task;
It, could normal termination after writing task only receives the end notification of reading task.
In the above-mentioned methods, for the main control unit before downloading ONU upgrade files from ftp server, dynamic access is current
The size of the free memory size and ONU upgrade files of OLT main control units and line card is analyzed further according to the size of ONU upgrade files
The memory storage power of current OLT main control units and line card, judges whether main control unit, line card start corresponding circulating memory mechanism;
Wherein, the memory storage power of main control unit and line card has following four situation:
The first situation, main control unit and line card can full storage ONU upgrade files;At this point, main control unit and line card are not
Start circulating memory mechanism;
The second situation, main control unit can not full storage ONU upgrade files, line card energy full storage ONU upgrade files;This
When, master control disk startup circulating memory mechanism, line card does not start circulating memory mechanism;
The third situation, main control unit energy full storage ONU upgrade files, line card can not full storage ONU upgrade files;This
When, main control unit does not start circulating memory mechanism, and line card starts circulating memory mechanism;
4th kind of situation, main control unit and line card all can not full storage ONU upgrade files;At this point, main control unit and line card are all
Start circulating memory mechanism.
In the above-mentioned methods, at four kinds of memory storage power of main control unit and line card, ONU upgrading difference is carried out
For:
In the first scenario, carrying out ONU upgradings is specially:Main control unit is downloaded from ftp server, stores complete ONU
Upgrade file, and complete ONU upgrade files are issued to line card;After line card receives the complete ONU upgrade files of preservation, by phase
The ONU upgrade files answered are forwarded to ONU to be upgraded;
In the latter case, carrying out ONU upgradings is specially:Master control disk startup circulating memory mechanism;Main control unit takes from FTP
Business device downloads the data fragmentation of ONU upgrade files, and its memory is written in data fragmentation, while reading the upgradings of the ONU in memory
The data fragmentation of file, is issued to line card;Line card receives the data fragmentation of ONU upgrade files, and its memory is written;Line card preserves
After complete ONU upgrade files, corresponding ONU upgrade files are forwarded to ONU to be upgraded;
In a third case, carrying out ONU upgradings is specially:Start line card annular memory mechanism;Main control unit is from FTP service
Device downloads ONU upgrade files, and its memory is written;After downloading complete ONU upgrade files, ONU is upgraded text by main control unit
Part is issued to line card;Its memory is written in the data fragmentation of ONU upgrade files by line card, while reading the ONU liters in line card memory
The data fragmentation of grade file is forwarded to ONU to be upgraded;
In the fourth case, carrying out ONU upgradings is specially:Start the circulating memory mechanism of main control unit, line card;Main control unit
The data fragmentation of ONU upgrade files is downloaded from FTP SERVER, and its memory is written into data fragmentation, while being read in memory
The data fragmentation of ONU upgrade files, is issued to line card;Line card receives the data fragmentation of ONU upgrade files, and ONU is upgraded text
Its memory is written in the data fragmentation of part, at the same the data fragmentation for reading the ONU upgrade files in line card memory be forwarded to it is to be upgraded
ONU。
In the above-mentioned methods, when upgrading simultaneously to multiple ONU, main control unit is managed and controls to multiple ONU upgradings,
Specially:
The maximum number that ONU upgrades once is supported according to current line card, judges whether to need to issue user one big
Batch ONU upgradings issue upgrade command to line card in batches;
If the big batch ONU upgrading numbers that user issues are more than the maximum number that current line card once supports ONU to upgrade,
Big batch ONU upgradings are then split into multiple small batch ONU to upgrade, and for each small batch ONU upgradings respectively under line card
Upgrade command is sent out, corresponding ONU upgrade files are issued;Wherein, the ONU numbers of each small batch upgrading are not more than current line card one
The secondary maximum number for supporting ONU upgradings;
Otherwise, the ONU upgrade files for the big batch ONU upgradings for issuing a upgrade command to line card, and user being issued
Once it is handed down to line card.
In the above-mentioned methods, following steps are specifically included to multiple ONU upgradings:
Step S1, main control unit is interacted with line card, obtains the storage capacity of main control unit and line card to ONU upgrade files, and to
Line card issues the ONU upgrade files issued to multiple ONU upgrade commands upgraded and user;
Step S2, according to the memory storage power of main control unit and line card, corresponding ONU is upgraded, specially:
Step S201, judge main control unit whether can full storage need the ONU upgrade files that obtain, if it could not, executing
Step S202;Otherwise, step S207 is executed;
Step S202, start the circulating memory mechanism of main control unit;
Step S203, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
Rapid S204;Otherwise, step S206 is executed;
Step S204, start the circulating memory mechanism of line card, then execute step S205;
Step S205, using main control unit and line card memory storage power the 4th kind of situation, upgraded;
Step S206, using main control unit and line card memory storage power the second situation, upgraded;
Step S207, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
Rapid S208;Otherwise, step S210 is executed;
Step S208, start the circulating memory mechanism of line card, then execute step S209;
Step S209, using main control unit and line card memory storage power the third situation, upgraded;
Step S210, using main control unit and line card memory storage power the first situation, upgraded.
In the above-mentioned methods, step S1 specifically includes following steps:
Step S101, the ONU for the need upgrading that user issues is analyzed, and does the school of ONU upgrade file heads according to the type of ONU
It tests;
Step S102, main control unit is interacted with line card, is obtained the storage capacity of main control unit and line card to ONU upgrade files, is used
The upgrading flow of walking is needed in analysis main control unit;
Step S103, the maximum number that line card supports ONU upgradings is calculated to the storage capacity of ONU upgrade files according to line card
Mesh;
Step S104, judge whether the big batch ONU upgradings number that user issues is more than the maximum that line card supports ONU upgradings
Number;If it is greater than execution step S106;Otherwise, step S105 is executed;
Step S105, it issues upgrade command to line card and whole ONU that big batch ONU that user issues upgrades upgrades text
Part;Then step S2 is executed to upgrade corresponding ONU according to the memory storage power of main control unit and line card;After the completion of upgrading,
Terminate this more ONU upgrading;
Step S106, the big batch ONU upgradings that user issues multiple small batch ONU are split into upgrade;
Step S107, upgrade command and corresponding upgrade file are issued to line card in batches for each small batch ONU upgradings,
Then step S2 is executed to upgrade corresponding ONU according to the memory storage power of main control unit and line card;
Step S108, it is finished when the ONU of this batch upgrading upgrades, judges whether to complete all small batch upgradings, if
It is not to execute step S107;Otherwise, terminate this more ONU upgrading.
The present invention also provides a kind of optical network unit edition upgrading systems, including main control unit and line card, in the master control
Circulating memory module is respectively set on disk and line card, when the memory source of the main control unit or line card can not full storage ONU liters
Start the circulating memory module when grade file;The circulating memory module includes:
This grade of equipment is written by upper level device file data fragmentation, and by data fragmentation in writing task module;
Reading task module will read the data fragmentation of this grade, and be issued to next stage equipment;
Writing task scheduler module controls the writing speed and writing position of the writing task module, makes this grade of equipment residue
Memory has been read not less than the secure threshold of system normal operation and the former data fragmentation on writing position;
Reading task scheduler module controls the reading speed and reading position of the reading task module, makes this grade of equipment residue
Memory is not less than the secure threshold of system normal operation, and the data fragmentation read is not read.
The present invention on main control unit and line card by building circulating memory mechanism, by the reasonable of writing task and reading task
Scheduling, control write-in, reading speed, makes the free memory of main control unit and line card be not less than the secure threshold of system normal operation,
When main control unit or line card are when that can not store ONU upgrade files, start circulating memory mechanism, it is ensured that by ONU upgrade files
It is transferred to next stage, successfully upgrades ONU equipment, scheme is simple, and adds and replace without hardware, at low cost.
Description of the drawings
Fig. 1 is a kind of structure diagram of optical network unit edition upgrading system provided by the invention;
Fig. 2 is the stream for carrying out ONU upgradings in the present invention when the memory storage power of main control unit and line card is the first situation
Cheng Tu;
Fig. 3 is the stream for carrying out ONU upgradings in the present invention when the memory storage power of main control unit and line card is the second situation
Cheng Tu;
Fig. 4 is the stream for carrying out ONU upgradings in the present invention when the memory storage power of main control unit and line card is the third situation
Cheng Tu;
Fig. 5 is the stream for carrying out ONU upgradings in the present invention when the memory storage power of main control unit and line card is the 4th kind of situation
Cheng Tu;
Fig. 6 is in the present invention to the particular flow sheet of multiple ONU upgradings;
Fig. 7 is the particular flow sheet of step S1 in the present invention.
Specific implementation mode
A kind of optical network unit version upgrading method provided by the invention and system are come by using limited circulating memory
Upgrade ONU upgrade files, when OLT main control units or line card can not store ONU upgrade files, using circulating memory, downloads ONU
The upgrade file downloaded is sent to next stage equipment while upgrade file, it compared with prior art, need not be by upgrading text
Next stage equipment is issued to after part full storage again, the case where upper layer device (OLT) memory source not enough stores upgrade file
Under, it still can successfully upgrade ONU equipment.The present invention is described in detail with reference to specific embodiment and Figure of description.
As shown in Figure 1, the present invention provides a kind of optical network unit edition upgrading systems, including:Main control unit and line card;?
Circulating memory module is respectively set on main control unit and line card, when the memory source of the main control unit or line card can not full storage
Start the circulating memory module when ONU upgrade files;The circulating memory module includes:
This grade of equipment is written by upper level device file data fragmentation, and by data fragmentation in writing task unit 10;
Reading task unit 20 will read the data fragmentation of this grade, and be issued to next stage equipment;
Writing task scheduling unit 30, the writing speed and writing position of control writing task unit 10, makes this grade of equipment residue
Memory is not less than the secure threshold of system normal operation, and when data fragmentation to be written, the former data on writing position point
Piece has been read;
Reading task scheduling unit 40, the reading speed and reading position of control reading task unit 10, makes this grade of equipment residue
Memory is not less than the secure threshold of system normal operation, and when reading data fragmentation, the data fragmentation of reading is not read
It took.
The present invention provides a kind of optical network unit version upgrading method, include the following steps:
Circulating memory mechanism is built respectively on the main control unit and line card of OLT;
Circulating memory mechanism is configured to:By the rational management to writing task and reading task, file is issued to next stage
Equipment, equipment need not be downloaded completely, and avoiding memory source from not enough storing upgrade file causes upgrading to fail;Writing task is by upper one
Grade device file data fragmentation, and this grade of equipment is written into data fragmentation;Reading task will read the data fragmentation of this grade, and issue
(it is line card for main control unit next stage equipment to next stage equipment;For line card, next stage equipment is ONU equipment to be upgraded);
And when data fragmentation to be written, the former data fragmentation on writing position has been read, when data fragmentation is read, reading
Data fragmentation was not read;When carrying out writing task and reading task is dispatched, it is ensured that this grade of equipment free memory is not less than system
The secure threshold of normal operation.
When main control unit and line card can not full storage ONU upgrade files when, start circulating memory mechanism thereon, using ring
ONU upgrade files are issued to next stage equipment by shape memory mechanism.
It should be noted that when carrying out ONU upgradings, first has to analysis and need the ONU upgraded, check ONU upgrade files
Correctness, determine upgrading implementation process.
Embodiment one.
In the present embodiment, writing task is scheduling to:
According to this grade of device memory service condition and reading task to the reading situation of this grade of device memory, controls this grade and set
The speed of standby writing task write-in file data, frequency and data fragmentation size are (i.e. increasing in the gap for writing, reading file size
When, the rate for downloading file slows down;When the gap for writing, reading file size is smaller and smaller, then the rate for downloading file is accelerated),
The section for adjusting write-in file data gathers, this grade of equipment free memory is made to be not less than the secure threshold of system normal operation;Same time control
The position of system write-in data, makes the former data fragmentation on writing position be read;
Reading task is scheduling to:
According to this grade of device memory service condition and writing task to the write-in situation of this grade of device memory, controls this grade and set
The speed, frequency and data fragmentation size that standby reading task reads file data are (i.e. increasing in the gap write, read file size
When, then the rate for reading file is accelerated;When the gap for writing, reading file size is smaller and smaller, then the rate for reading file subtracts
Slowly), adjust the issue the documents section of data of downward first device to gather, make this grade of equipment free memory not less than system normal operation
Secure threshold;The position for reading data is controlled simultaneously, and the data fragmentation of reading is made not to be read.
Embodiment two.
In order to ensure that the data link between the main control unit of FTP CLIENT and FTP SERVER does not turn off, main control unit with
The data interaction of FTP SERVER, no more than the time-out time requirement between two data packets of File Transfer Protocol pair, this requires masters
For the writing task manipulated stock quotations when obtaining the data fragmentation of ONU upgrade files from FTP SERVER, two data fragmentation intervals cannot be big
The time-out time as defined in File Transfer Protocol.
Correspondingly, serving as the main control unit of FTP SERVER and not serving as data interaction between the line card of FTP CLIENT also not
It can exceed that the time-out time between two data packets of File Transfer Protocol, the i.e. writing task of line card are obtaining ONU upgrade files from main control unit
Data fragmentation when, two data fragmentation intervals cannot be more than time-out time as defined in File Transfer Protocol.
Embodiment three.
Writing task checks continually on the operating status of reading task in the process of running, if reading task occurs abnormal (referring to reading
Task is because external environment variation can not read new data), writing task must be able to processing exception, oneself will be restored to correctly
State (correct state be task recovery to original state).
Reading task checks continually on the operating status of writing task in the process of running, if writing task occurs abnormal (referring to writing
The data jamming of task can not either be written), reading task must be able to processing exception, oneself will be restored to correct state (just
True state is task recovery to original state).
Example IV.
The end of writing task must could terminate after reading task also executes completion, such as when writing task is by ONU liters
After this grade of equipment is all written in grade all data of file, it can not be immediately finished task, to wait the reading task of this grade of equipment by ONU liters
Grade all data of file all read, are issued to next stage equipment, could terminate, no it will cause the inconsistent of whole flow process;
Correspondingly, the end of reading task must notify writing task, to allow writing task normal termination, avoid causing whole flow process
It is inconsistent.
Embodiment five.
The main control unit of the present embodiment, can the current OLT master of dynamic access before downloading ONU upgrade files from ftp server
The size manipulated stock quotations with the free memory size of line card and ONU upgrade files is analyzed currently further according to the size of ONU upgrade files
The memory storage power of OLT main control units and line card, judges whether main control unit, line card start corresponding circulating memory mechanism.Wherein, main
Manipulate stock quotations has following four situation with the memory storage power of line card:
The first situation, OLT main control unit energy full storage ONU upgrade files, line card energy full storage ONU upgrade files;
At this point, main control unit and line card do not start circulating memory mechanism;
The second situation, OLT main control units can not full storage ONU upgrade files, line card energy full storage ONU upgrading text
Part;At this point, master control disk startup circulating memory mechanism, line card do not start circulating memory mechanism;
The third situation, OLT main control unit energy full storage ONU upgrade files, line card can not full storage ONU upgrading texts
Part;At this point, main control unit does not start circulating memory mechanism, line card starts circulating memory mechanism;
4th kind of situation, OLT main control units can not full storage ONU upgrade files, line card can not full storage ONU upgrading text
Part;At this point, main control unit, line card start circulating memory mechanism.
As shown in Fig. 2, the present embodiment is the first situation of the memory storage power of main control unit and line card, i.e. main control unit and line
Card can all store ONU upgrade files completely, at this point, main control unit and line card will not all start circulating memory mechanism, in this case,
ONU is carried out to upgrade to:
The FTP CLIENT of main control unit are downloaded from FTP SERVER, are stored complete ONU upgrade files, and will be complete
ONU upgrade files are issued to line card;After line card receives the complete ONU upgrade files of preservation, corresponding ONU upgrade files are forwarded
To ONU to be upgraded.
As shown in figure 3, the present embodiment is the second situation of the memory storage power of main control unit and line card, i.e. main control unit can not
Full storage ONU upgrade files, line card energy full storage ONU upgrade files;At this point, master control disk startup circulating memory mechanism, line
Card does not start circulating memory mechanism, in this case, carries out ONU and upgrades to:
Master control disk startup circulating memory mechanism;Main control unit downloads the data fragmentation of ONU upgrade files from FTP SERVER, and
Its memory is written into data fragmentation, while reading the data fragmentation of the ONU upgrade files in memory, is issued to line card;Line card connects
The data fragmentation of ONU upgrade files is received, and its memory is written;After line card preserves complete ONU upgrade files, by corresponding ONU
Upgrade file is forwarded to ONU to be upgraded.
As shown in figure 4, the present embodiment is the third situation of the memory storage power of main control unit and line card, i.e., main control unit can be complete
ONU upgrade files are stored up in whole deposit, and line card can not full storage ONU upgrade files;At this point, main control unit does not start circulating memory mechanism,
Line card starts circulating memory mechanism, in this case, carries out ONU and upgrades to:
Start line card annular memory mechanism;Main control unit downloads ONU upgrade files from FTP SERVER, and its memory is written;
After downloading complete ONU upgrade files, ONU upgrade files are issued to line card by main control unit;Line card is by ONU upgrade files
Its memory is written in data fragmentation, while the data fragmentation for reading the ONU upgrade files in line card memory is forwarded to ONU to be upgraded.
As shown in figure 5, the present embodiment is the 4th kind of situation of the memory storage power of main control unit and line card, i.e. OLT main control units
Can not full storage ONU upgrade files, line card can not full storage ONU upgrade files;At this point, main control unit, line card start ring
Shape memory mechanism carries out ONU and upgrades in this case:
Start the circulating memory mechanism of main control unit, line card;Main control unit downloads the data of ONU upgrade files from FTP SERVER
Fragment, and its memory is written into data fragmentation, while the data fragmentation of the ONU upgrade files in memory is read, it is issued to line card;
Line card receives the data fragmentation of ONU upgrade files, and its memory, while read line is written in the data fragmentation of ONU upgrade files
The data fragmentation of ONU upgrade files in card memory is forwarded to ONU to be upgraded.
Embodiment six.
In the present embodiment, when upgrading at the same time to multiple ONU, main control unit is to multiple ONU management upgraded and control:
According to current line card once support ONU upgrade maximum number (determined by cache file space size, this is because
Line card concurrently establishes the Limited Number that the socket of transmission file is connect, institute because of the resource constraint of itself, every time upgrading with ONU
With, if line card can not cache file when, upgrade file can only be issued in batches), judge whether one that needs to issue user
Big batch ONU upgradings issue upgrade command to line card in batches;
If the big batch ONU upgrading numbers that user issues are more than the maximum number that current line card once supports ONU to upgrade,
Big batch ONU upgradings are then split into multiple small batch ONU to upgrade, and for each small batch ONU upgradings respectively under line card
Upgrade command is sent out, corresponding ONU upgrade files are issued;Wherein, the ONU numbers of each small batch upgrading are not more than current line card one
The secondary maximum number for supporting ONU upgradings;To ensure that the ONU upgradings that line card carries out every time are not disturbed, main control unit needs to wait for this
After the completion of the ONU of secondary upgrading upgrades, just line card is notified to carry out operation next time.Such as the big batch ONU liters that user issues
Grade is 100, but the ONU upgrading maximum numbers that line card is once supported are 10, then the 100 ONU upgradings of big batch are split
For 10 small batch ONU upgradings.
If the big batch ONU upgrading numbers that user issues once support the maximum number that ONU upgrades no more than current line card
Mesh then issues a upgrade command to line card, and the ONU upgrade files for the big batch ONU upgradings that user issues once is issued
To line card.
Embodiment seven.
In the present embodiment, as shown in fig. 6, specifically including following steps to multiple ONU upgradings:
Step S1, main control unit is interacted with line card, obtains the storage capacity of main control unit and line card to ONU upgrade files, and to
Line card issues the ONU upgrade files issued to multiple ONU upgrade commands upgraded and user;
Step S2, according to the memory storage power of main control unit and line card, corresponding ONU is upgraded, specially:
Step S201, judge main control unit whether can full storage need ONU upgrade files (the step S105 below that obtains
When be small batch ONU upgrade files, the upgrade file of the big batch ONU upgradings issued for user in step S106), if not
Can, execute step S202;Otherwise, step S207 is executed;
Step S202, start the circulating memory mechanism of main control unit;
Step S203, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
Rapid S204;Otherwise, step S206 is executed;
Step S204, start the circulating memory mechanism of line card, then execute step S205;
Step S205, using main control unit and line card memory storage power the 4th kind of situation, upgraded;
Step S206, using main control unit and line card memory storage power the second situation, upgraded;
Step S207, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
Rapid S208;Otherwise, step S210 is executed;
Step S208, start the circulating memory mechanism of line card, then execute step S209;
Step S209, using main control unit and line card memory storage power the third situation, upgraded;
Step S210, using main control unit and line card memory storage power the first situation, upgraded.
When upgrading to multiple ONU, further include user issue big batch ONU upgrading number be more than line card support
The maximum number of ONU upgradings, and support two kinds of situations of maximum number that ONU upgrades less than or equal to line card, so in this implementation
In example, as shown in fig. 7, step S1 specifically includes following steps:
Step S101, the ONU for the need upgrading that user issues is analyzed, and does the school of ONU upgrade file heads according to the type of ONU
It tests;
Step S102, main control unit is interacted with line card, is obtained the storage capacity of main control unit and line card to ONU upgrade files, is used
The upgrading flow of walking is needed in analysis main control unit;
Step S103, the maximum number that line card supports ONU upgradings is calculated to the storage capacity of ONU upgrade files according to line card
Mesh;
Step S104, judge whether the big batch ONU upgradings number that user issues is more than the maximum that line card supports ONU upgradings
Number;If it is greater than execution step S106;Otherwise, step S105 is executed;
Step S105, it issues upgrade command to line card and whole ONU that big batch ONU that user issues upgrades upgrades text
Then part executes step S2 and is upgraded to corresponding ONU according to the memory storage power of main control unit and line card, after the completion of upgrading,
Terminate this more ONU upgrading;
Step S106, the big batch ONU upgradings that user issues multiple small batch ONU are split into upgrade;
Step S107, upgrade command and corresponding upgrade file are issued to line card in batches for each small batch ONU upgradings
(upgrade file for only including this batch upgrading ONU), then executes step S2, according to the memory storage power of main control unit and line card,
Corresponding ONU is upgraded;
Step S108, it is finished when the ONU of this batch upgrading upgrades, judges whether to complete all small batch upgradings, if
It is not to execute step S107;Otherwise, terminate this more ONU upgrading.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn that the knots made under the inspiration of the present invention
Structure changes, and the technical schemes that are same or similar to the present invention are each fallen within protection scope of the present invention.
Claims (11)
1. a kind of optical network unit version upgrading method, which is characterized in that include the following steps:
Build circulating memory mechanism respectively on the main control unit and line card of OLT, circulating memory mechanism includes writing task and reading task;
Wherein:
This grade of equipment is written by upper level device file data fragmentation, and by data fragmentation in writing task;
Reading task will read the data fragmentation of this grade, and be issued to next stage equipment;
By the rational management to writing task and reading task, this grade of equipment free memory is made to be not less than the safety of system normal operation
Threshold value, and when data fragmentation is written, the former data fragmentation on writing position has been read, and when data fragmentation is read, is read
The data fragmentation taken was not read;
When main control unit and line card can not full storage ONU upgrade files when, ONU is upgraded text by the circulating memory mechanism started thereon
Part is issued to next stage equipment.
2. according to the method described in claim 1, it is characterized in that, being scheduling to writing task:
According to this grade of device memory service condition and reading task to the reading situation of this grade of device memory, controls this grade of equipment and write
Speed, frequency and the data fragmentation size of file data, and the position of write-in data is written in task;
Reading task is scheduling to:
According to this grade of device memory service condition and writing task to the write-in situation of this grade of device memory, controls this grade of equipment and read
Task reads speed, frequency and the data fragmentation size of file data, and reads the position of data.
3. according to the method described in claim 1, it is characterized in that, the writing task of main control unit is obtaining ONU liters from FTPSERVER
When the data fragmentation of grade file, two data fragmentation intervals cannot be more than time-out time as defined in File Transfer Protocol;
Correspondingly, the writing task of line card from main control unit obtain ONU upgrade files data fragmentation when, two data fragmentation intervals
Time-out time as defined in File Transfer Protocol cannot be more than.
4. according to the method described in claim 1, it is characterized in that, writing task checks continually on the fortune of reading task in the process of running
Row state, if exception occurs in reading task, writing task processing is abnormal, oneself is returned to original state;
Reading task checks continually on the operating status of writing task in the process of running, if abnormal, reading task processing occurs in writing task
It is abnormal, oneself is returned to original state.
5. according to the method described in claim 1, it is characterized in that, end for reading task and writing task:
The end of reading task will notify writing task;
It, could normal termination after writing task only receives the end notification of reading task.
6. according to the method described in claim 1, it is characterized in that, the main control unit is downloading ONU upgradings from ftp server
Before file, the current OLT main control units of dynamic access and the free memory size of line card and the size of ONU upgrade files, further according to ONU
The size of upgrade file analyzes the memory storage power of current OLT main control units and line card, judges whether main control unit, line card start correspondence
Circulating memory mechanism;
Wherein, the memory storage power of main control unit and line card has following four situation:
The first situation, main control unit and line card can full storage ONU upgrade files;At this point, main control unit and line card do not start
Circulating memory mechanism;
The second situation, main control unit can not full storage ONU upgrade files, line card energy full storage ONU upgrade files;At this point,
Master control disk startup circulating memory mechanism, line card do not start circulating memory mechanism;
The third situation, main control unit energy full storage ONU upgrade files, line card can not full storage ONU upgrade files;At this point,
Main control unit does not start circulating memory mechanism, and line card starts circulating memory mechanism;
4th kind of situation, main control unit and line card all can not full storage ONU upgrade files;At this point, main control unit and line card all start
Circulating memory mechanism.
7. according to the method described in claim 6, it is characterized in that, four kinds of situations of the memory storage power in main control unit and line card
Under, carrying out ONU upgradings is respectively:
In the first scenario, carrying out ONU upgradings is specially:Main control unit is downloaded from ftp server, stores complete ONU upgradings
File, and complete ONU upgrade files are issued to line card;It, will be corresponding after line card receives the complete ONU upgrade files of preservation
ONU upgrade files are forwarded to ONU to be upgraded;
In the latter case, carrying out ONU upgradings is specially:Master control disk startup circulating memory mechanism;Main control unit is from ftp server
The data fragmentation of ONU upgrade files is downloaded, and its memory is written into data fragmentation, while reading the ONU upgrade files in memory
Data fragmentation, be issued to line card;Line card receives the data fragmentation of ONU upgrade files, and its memory is written;Line card preserves complete
ONU upgrade files after, corresponding ONU upgrade files are forwarded to ONU to be upgraded;
In a third case, carrying out ONU upgradings is specially:Start line card annular memory mechanism;Main control unit is under ftp server
ONU upgrade files are carried, and its memory is written;After downloading complete ONU upgrade files, main control unit will be under ONU upgrade files
It is dealt into line card;Its memory is written in the data fragmentation of ONU upgrade files by line card, while reading the upgrading texts of the ONU in line card memory
The data fragmentation of part is forwarded to ONU to be upgraded;
In the fourth case, carrying out ONU upgradings is specially:Start the circulating memory mechanism of main control unit, line card;Main control unit from
FTP SERVER download the data fragmentation of ONU upgrade files, and its memory is written in data fragmentation, while reading in memory
The data fragmentation of ONU upgrade files, is issued to line card;Line card receives the data fragmentation of ONU upgrade files, and ONU is upgraded text
Its memory is written in the data fragmentation of part, at the same the data fragmentation for reading the ONU upgrade files in line card memory be forwarded to it is to be upgraded
ONU。
8. the method according to the description of claim 7 is characterized in that when upgrading simultaneously to multiple ONU, main control unit is to multiple
ONU upgradings are managed and control, specially:
The maximum number that ONU upgrades once is supported according to current line card, judges whether a big batch for needing to issue user
ONU upgradings issue upgrade command to line card in batches;
If the big batch ONU upgrading numbers that user issues are more than the maximum number that current line card once supports ONU to upgrade, will
Big batch ONU upgradings are split into multiple small batch ONU upgradings, and issue liter to line card respectively for each small batch ONU upgradings
Grade instruction, issues corresponding ONU upgrade files;Wherein, the ONU numbers of each small batch upgrading are once propped up no more than current line card
Hold the maximum number of ONU upgradings;
Otherwise, the ONU upgrade files for the big batch ONU upgradings for issuing a upgrade command to line card, and user being issued are primary
It is handed down to line card.
9. according to the method described in claim 8, it is characterized in that, specifically including following steps to multiple ONU upgradings:
Step S1, main control unit is interacted with line card, obtains the storage capacity of main control unit and line card to ONU upgrade files, and to line card
Issue the ONU upgrade files issued to multiple ONU upgrade commands upgraded and user;
Step S2, according to the memory storage power of main control unit and line card, corresponding ONU is upgraded, specially:
Step S201, judge main control unit whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
S202;Otherwise, step S207 is executed;
Step S202, start the circulating memory mechanism of main control unit;
Step S203, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
S204;Otherwise, step S206 is executed;
Step S204, start the circulating memory mechanism of line card, then execute step S205;
Step S205, using main control unit and line card memory storage power the 4th kind of situation, upgraded;
Step S206, using main control unit and line card memory storage power the second situation, upgraded;
Step S207, judge line card whether can full storage need the ONU upgrade files that obtain, if it could not, executing step
S208;Otherwise, step S210 is executed;
Step S208, start the circulating memory mechanism of line card, then execute step S209;
Step S209, using main control unit and line card memory storage power the third situation, upgraded;
Step S210, using main control unit and line card memory storage power the first situation, upgraded.
10. according to the method described in claim 9, it is characterized in that, step S1 specifically includes following steps:
Step S101, the ONU for the need upgrading that user issues is analyzed, and does the verification of ONU upgrade file heads according to the type of ONU;
Step S102, main control unit is interacted with line card, the storage capacity of main control unit and line card to ONU upgrade files is obtained, for dividing
It analyses main control unit and needs the upgrading flow of walking;
Step S103, the maximum number that line card supports ONU upgradings is calculated to the storage capacity of ONU upgrade files according to line card;
Step S104, judge whether the big batch ONU upgradings number that user issues is more than the maximum number that line card supports ONU upgradings
Mesh;If it is greater than execution step S106;Otherwise, step S105 is executed;
Step S105, upgrade command is issued to line card and whole ONU upgrade files that big batch ONU that user issues upgrades;So
Step S2 is executed afterwards to upgrade corresponding ONU according to the memory storage power of main control unit and line card;After the completion of upgrading, terminate this
Secondary more ONU upgradings;
Step S106, the big batch ONU upgradings that user issues multiple small batch ONU are split into upgrade;
Step S107, upgrade command and corresponding upgrade file are issued to line card in batches for each small batch ONU upgradings, then
Step S2 is executed to upgrade corresponding ONU according to the memory storage power of main control unit and line card;
Step S108, it is finished when the ONU of this batch upgrading upgrades, judges whether to complete all small batch upgradings, if it is not,
Execute step S107;Otherwise, terminate this more ONU upgrading.
11. a kind of optical network unit edition upgrading system, including main control unit and line card, which is characterized in that in the main control unit and
Circulating memory module is respectively set on line card, when the memory source of the main control unit or line card can not full storage ONU upgrading texts
Start the circulating memory module when part;The circulating memory module includes:
This grade of equipment is written by upper level device file data fragmentation, and by data fragmentation in writing task module;
Reading task module will read the data fragmentation of this grade, and be issued to next stage equipment;
Writing task scheduler module controls the writing speed and writing position of the writing task module, makes this grade of equipment free memory
It has been read not less than the former data fragmentation on the secure threshold and writing position of system normal operation;
Reading task scheduler module controls the reading speed and reading position of the reading task module, makes this grade of equipment free memory
Not less than the secure threshold of system normal operation, and the data fragmentation read is not read.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810373426.XA CN108733394B (en) | 2018-04-24 | 2018-04-24 | Optical network unit version upgrading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810373426.XA CN108733394B (en) | 2018-04-24 | 2018-04-24 | Optical network unit version upgrading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108733394A true CN108733394A (en) | 2018-11-02 |
CN108733394B CN108733394B (en) | 2021-11-16 |
Family
ID=63939243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810373426.XA Active CN108733394B (en) | 2018-04-24 | 2018-04-24 | Optical network unit version upgrading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108733394B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035147A (en) * | 2020-09-14 | 2020-12-04 | 上海仙塔智能科技有限公司 | Upgrade time management method, upgrade time management system, and computer storage medium |
CN113050976A (en) * | 2019-12-28 | 2021-06-29 | 浙江宇视科技有限公司 | FPGA parallel upgrading method, device, medium and electronic equipment based on PCIe bus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102223256A (en) * | 2011-07-26 | 2011-10-19 | 烽火通信科技股份有限公司 | Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system |
-
2018
- 2018-04-24 CN CN201810373426.XA patent/CN108733394B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN101930375A (en) * | 2010-08-26 | 2010-12-29 | 深圳市共进电子有限公司 | Self-adaptive program data updating method of memory space in single user optical network unit |
CN102223256A (en) * | 2011-07-26 | 2011-10-19 | 烽火通信科技股份有限公司 | Method and system for multi-ONU (optical network unit) automatic upgrading in GPON (gigabit-capable passive optical network) access system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050976A (en) * | 2019-12-28 | 2021-06-29 | 浙江宇视科技有限公司 | FPGA parallel upgrading method, device, medium and electronic equipment based on PCIe bus |
CN112035147A (en) * | 2020-09-14 | 2020-12-04 | 上海仙塔智能科技有限公司 | Upgrade time management method, upgrade time management system, and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108733394B (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190227914A1 (en) | Application Programming Interface for Providing Access to Computing Platform Definitions | |
US9940598B2 (en) | Apparatus and method for controlling execution workflows | |
US9774702B2 (en) | System and method of employing a client side device to access local and remote data during communication disruptions | |
US20080126439A1 (en) | Change verification in a configuration management database | |
US20050091352A1 (en) | Policy driven autonomic computing-specifying relationships | |
US20050060608A1 (en) | Maximizing processor utilization and minimizing network bandwidth requirements in throughput compute clusters | |
CN105635216B (en) | Upgrade method, equipment and the distributed system of Distributed Application | |
US10509801B2 (en) | Selective data synchronization and transfer to remote distributed database servers | |
CN110445697B (en) | Video big data cloud platform equipment access service method | |
US9977819B2 (en) | Sharing data on mobile devices | |
CN109582335A (en) | It is a kind of without interrupt storage cluster node online upgrading method, device and equipment | |
US20210286614A1 (en) | Causality determination of upgrade regressions via comparisons of telemetry data | |
CN108733394A (en) | A kind of optical network unit version upgrading method and system | |
CN102546839A (en) | Efficient and reliable software distribution method for large scale network | |
CN114816676A (en) | System and method for realizing multi-tenant deployment of low code development platform | |
JP2023537083A (en) | Method and apparatus for updating cloud platform | |
CN111984505A (en) | Operation and maintenance data acquisition engine and acquisition method | |
CN101621404B (en) | Method and system for layering processing of failure | |
CN114064438A (en) | Database fault processing method and device | |
US20050232163A1 (en) | Framework for template-based retrieval of information from managed entities in a communication network | |
US20220021696A1 (en) | Minimizing Production Disruption Through A Scan Rule Engine | |
WO2023093079A1 (en) | Consistency check method and apparatus for distributed edge cloud edge nodes | |
CN113472886B (en) | Distributed cluster system and control method thereof | |
US20220019457A1 (en) | Hardware placement and maintenance scheduling in high availability systems | |
CN115766439A (en) | KVM device batch upgrading method and device and electronic device |
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 |