CN108733394B - Optical network unit version upgrading method and system - Google Patents
Optical network unit version upgrading method and system Download PDFInfo
- Publication number
- CN108733394B CN108733394B CN201810373426.XA CN201810373426A CN108733394B CN 108733394 B CN108733394 B CN 108733394B CN 201810373426 A CN201810373426 A CN 201810373426A CN 108733394 B CN108733394 B CN 108733394B
- Authority
- CN
- China
- Prior art keywords
- onu
- line card
- main control
- upgrading
- task
- 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
Links
Images
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a system for upgrading versions of optical network units, wherein the system comprises a master control panel, a line card and an annular memory module arranged on the master control panel and the line card, and the annular memory module comprises a write task module for fragmenting file data of an upper-level device and writing the fragments into the current-level device; reading the data fragment of the current level and issuing the data fragment to a task reading module of the next level device; a write task scheduling module for controlling the write speed and write position of the write task module; the reading task scheduling module controls the reading speed and the reading position of the reading task module; and starting the annular memory module when the memory resources of the master control disk or the line card cannot completely store the ONU upgrade file. The invention controls the writing-in and reading speed by reasonably scheduling the writing-in and reading tasks, so that the residual memory of the main control panel and the line card is not lower than the safety threshold value of the normal operation of the system, and the ONU equipment can be successfully upgraded when the main control panel or the line card cannot store the ONU upgrade file.
Description
Technical Field
The invention relates to system management of an Optical Network Unit (ONU), in particular to a method and a system for upgrading the version of the ONU.
Background
At present, informatization is in the ultra-conventional high-speed development stage, a network becomes an important part in the life of people, and with the continuous emergence of high-broadband services such as network games, High Definition Televisions (HDTVs) and interactive network televisions (IPTV), the requirement of users on access bandwidth is continuously increased. The optical fiber access technology represented by an Ethernet Passive Optical Network (EPON) and a Gigabit Passive Optical Network (GPON) has the characteristics of high transmission speed, long transmission distance, strong anti-interference capability, convenient capacity expansion, high reliability, low cost and simple operation and maintenance, so that many operators use the optical fiber access technology as a mainstream access technology to meet the user requirements.
However, as the demands of users of access networks increase, the ONU devices are often faced with upgrading, and as the functions of the ONU devices increase, the size of software versions increases. In the prior art, the software version of the ONU device is upgraded by using an FTP (File Transfer Protocol) method, in which an upgrade File is downloaded from an FTP server (a server supporting the FTP Protocol), and a main control disk and a line card of the OLT sequentially store and forward the upgrade File to the ONU. Because the main control panel and the line card of the OLT have limited memory space for storing the upgrade file, the ONU software version cannot be stored in the case of upgrading; if the situation is not solved, the functions of the existing ONU equipment cannot be updated normally, and the increasing user requirements cannot be met in time.
In view of this, there is a need for an optical network unit version upgrading scheme, which solves the problem that when upgrading an existing network ONU device, an OLT cannot store an ONU software version, thereby causing an upgrade failure.
Disclosure of Invention
The invention aims to solve the technical problem that when the ONU software file is too large, the main control panel and the line card memory of the OLT are limited and cannot store the ONU upgrade file, so that the function upgrade of ONU equipment fails.
In order to solve the technical problem, the technical scheme adopted by the invention is to provide an optical network unit version upgrading method, which comprises the following steps:
respectively constructing an annular memory mechanism on a main control panel and a line card of the OLT, wherein the annular memory mechanism comprises a write task and a read task; wherein:
the writing task divides the file data of the upper-level equipment into pieces and writes the data pieces into the current-level equipment;
the reading task divides the data read by the current level into pieces and sends the pieces to the next level equipment;
through reasonable scheduling of a write task and a read task, the residual memory of the equipment at the current level is not lower than a safety threshold value of normal operation of a system, when data fragments are written, original data fragments on a write-in position are already read, and when the data fragments are read, the read data fragments are not read;
and when the main control disk and the line card cannot completely store the ONU upgrade file, starting an annular memory mechanism on the main control disk and the line card to transmit the ONU upgrade file to next-stage equipment.
In the above method, the scheduling of the write task is:
controlling the speed, the frequency and the data fragment size of the writing task of the equipment at the current level for writing the file data and the position for writing the data according to the use condition of the equipment at the current level and the reading condition of the reading task on the equipment at the current level;
the scheduling of the read task is:
and controlling the speed, the frequency and the data fragment size of the reading task of the equipment at the current level to read the file data and the position of the reading data according to the service condition of the equipment at the current level and the writing condition of the writing task to the equipment at the current level.
In the method, when the write task of the master control disk acquires the data fragments of the ONU upgrade file from FTP SERVER, the interval between the two data fragments cannot be greater than the timeout time specified by the FTP protocol;
correspondingly, when the write task of the line card obtains the data fragments of the ONU upgrade file from the master control disk, the interval between the two data fragments cannot be greater than the timeout time specified by the FTP protocol.
In the method, the write task continuously checks the running state of the read task in the running process, and if the read task is abnormal, the write task is abnormal in processing and is recovered to the initial state;
and the read task continuously checks the running state of the write task in the running process, and if the write task is abnormal, the read task is abnormal in processing and restores the read task to the initial state.
In the above method, for the end of the read task and the write task:
informing the end of the reading task of the writing task;
the write task can be normally ended only after receiving the end notification of the read task.
In the method, before downloading the ONU upgrade file from the FTP server, the main control panel dynamically acquires the residual memory size of the current OLT main control panel and the line card and the size of the ONU upgrade file, analyzes the memory storage capacity of the current OLT main control panel and the line card according to the size of the ONU upgrade file, and judges whether the main control panel and the line card start a corresponding annular memory mechanism or not;
the memory storage capacity of the master control disk and the line card has the following four conditions:
in the first situation, the main control panel and the line card can completely store ONU upgrade files; at this time, the main control panel and the line card do not start the annular memory mechanism;
in the second situation, the main control panel cannot completely store the ONU upgrade files, and the line card can completely store the ONU upgrade files; at the moment, the main control panel starts a ring memory mechanism, and the line card does not start the ring memory mechanism;
in the third situation, the main control panel can completely store the ONU upgrade files, and the line card cannot completely store the ONU upgrade files; at the moment, the main control panel does not start the annular memory mechanism, and the line card starts the annular memory mechanism;
in the fourth situation, the main control panel and the line card cannot completely store the ONU upgrade files; at this time, the master control disk and the line card both start the ring memory mechanism.
In the method, the ONU upgrading is performed under four conditions of the memory storage capacity of the master control disk and the line card, which are respectively:
in the first case, the ONU upgrade specifically includes: the main control disk downloads and stores the complete ONU upgrade file from the FTP server, and issues the complete ONU upgrade file to the line card; after receiving and storing the complete ONU upgrade files, the line card forwards the corresponding ONU upgrade files to the ONU to be upgraded;
in the second case, the ONU upgrade specifically includes: the main control disk starts a ring memory mechanism; the main control disk downloads the data fragments of the ONU upgrade files from the FTP server, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file and writes the data fragments into the memory of the ONU upgrade file; after the line card stores the complete ONU upgrade file, the corresponding ONU upgrade file is forwarded to the ONU to be upgraded;
in the third case, the ONU upgrade specifically includes: starting a line card annular memory mechanism; the main control disk downloads the ONU upgrade file from the FTP server and writes the ONU upgrade file into a memory of the FTP server; the main control panel issues the ONU upgrade file to the line card until the complete ONU upgrade file is downloaded; the line card writes the data fragments of the ONU upgrade file into the memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded;
in the fourth case, the ONU upgrade specifically includes: starting a ring memory mechanism of a master control disk and a line card; the main control disk downloads the data fragments of the ONU upgrade files from FTP SERVER, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file, writes the data fragments of the ONU upgrade file into the memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded.
In the method, when a plurality of ONUs are upgraded at the same time, the master control disk manages and controls the upgrading of the ONUs, specifically:
judging whether a large batch of ONU upgrading issued by a user needs to be issued to the line card in batches according to the maximum number of ONU upgrading once supported by the current line card;
if the upgrading number of the large batch of ONU issued by the user is larger than the maximum number of ONU upgrading once supported by the current line card, the large batch of ONU upgrading is divided into a plurality of small batch of ONU upgrading, and an upgrading instruction is issued to the line card respectively aiming at each small batch of ONU upgrading to issue a corresponding ONU upgrading file; the number of the ONUs upgraded in each small batch is not more than the maximum number of ONUs upgraded by the current line card at one time;
otherwise, issuing an upgrading instruction to the line card once, and issuing the ONU upgrading files of the large batch of ONU upgrading issued by the user to the line card once.
In the method, the upgrading of the plurality of ONUs specifically comprises the following steps:
step S1, the main control panel interacts with the line card to obtain the storage capacity of the main control panel and the line card to the ONU upgrade file, and issues an upgrade instruction for upgrading a plurality of ONUs and the ONU upgrade file issued by a user to the line card;
step S2, upgrading the corresponding ONU according to the memory storage capacity of the master control disk and the line card, specifically:
step S201, judging whether the main control panel can completely store the ONU upgrade files required to be acquired, if not, executing step S202; otherwise, go to step S207;
step S202, starting an annular memory mechanism of a main control panel;
step S203, judging whether the line card can completely store the ONU upgrade file to be acquired, if not, executing step S204; otherwise, go to step S206;
step S204, starting a ring memory mechanism of the line card, and then executing step S205;
step S205, upgrading by adopting the fourth condition of the memory storage capacity of the main control panel and the line card;
step S206, upgrading by adopting the second condition of the memory storage capacity of the main control panel and the line card;
step S207, judging whether the line card can completely store the ONU upgrade file required to be acquired, if not, executing step S208; otherwise, go to step S210;
step S208, starting a ring memory mechanism of the line card, and then executing step S209;
step S209, upgrading by adopting the third condition of the memory storage capacity of the main control panel and the line card;
step S210, upgrade is performed by using the first condition of the memory storage capacity of the master control disk and the line card.
In the above method, step S1 specifically includes the following steps:
step S101, analyzing an ONU which is issued by a user and needs to be upgraded, and checking an ONU upgrade file header according to the type of the ONU;
step S102, the master control panel interacts with the line card to obtain the storage capacity of the master control panel and the line card to the ONU upgrade file, and the storage capacity is used for analyzing the upgrade process which the master control panel needs to go;
step S103, calculating the maximum number of ONU upgrade supported by the line card according to the storage capacity of the line card to the ONU upgrade file;
step S104, judging whether the upgrading number of a large number of ONU issued by a user is larger than the maximum number of ONU upgrading supported by a line card; if the value is larger than the value, executing the step S106; otherwise, go to step S105;
s105, sending an upgrading instruction and all ONU upgrading files of a large batch of ONU upgrading sent by a user to a line card; then step S2 is executed, and corresponding ONU is upgraded according to the memory storage capacity of the main control panel and the line card; after the upgrading is finished, finishing the multi-ONU upgrading;
step S106, splitting a large batch of ONU upgrade issued by a user into a plurality of small batch of ONU upgrade;
step S107, issuing upgrading instructions and corresponding upgrading files to the line cards in batches aiming at each small-batch ONU upgrading, then executing step S2, and upgrading the corresponding ONUs according to the main control panel and the memory storage capacity of the line cards;
step S108, when the ONU of the batch upgrading is upgraded, judging whether all small batch upgrading is finished, if not, executing step S107; otherwise, ending the multi-ONU upgrading.
The invention also provides an optical network unit version upgrading system, which comprises a main control panel and a line card, wherein annular memory modules are respectively arranged on the main control panel and the line card, and the annular memory modules are started when the memory resources of the main control panel or the line card can not completely store the ONU upgrading files; the ring memory module includes:
the writing task module is used for fragmenting the file data of the upper-level equipment and writing the data fragments into the current-level equipment;
the task reading module is used for slicing the data read at the current level and sending the sliced data to the next level equipment;
the write task scheduling module controls the write-in speed and the write-in position of the write task module, so that the residual memory of the equipment at the current level is not lower than the safety threshold value of normal operation of the system, and the original data fragments at the write-in position are read;
and the read task scheduling module controls the reading speed and the reading position of the read task module, so that the residual memory of the equipment at the current level is not lower than the safety threshold value of normal operation of the system, and the read data fragments are not read.
According to the invention, the annular memory mechanism is constructed on the main control disk and the line card, and the writing-in and reading speeds are controlled through reasonably scheduling the writing tasks and the reading tasks, so that the residual memories of the main control disk and the line card are not lower than the safety threshold of normal operation of the system, when the main control disk or the line card cannot store the ONU upgrade file, the annular memory mechanism is started, the ONU upgrade file can be ensured to be transmitted to the next stage, the ONU equipment is successfully upgraded, the scheme is simple, no hardware is added or replaced, and the cost is low.
Drawings
Fig. 1 is a block diagram of an optical network unit version upgrading system according to the present invention;
fig. 2 is a flowchart of ONU upgrade performed when the memory storage capacity of the master control disk and the line card is the first condition in the present invention;
fig. 3 is a flowchart of ONU upgrade performed when the memory storage capacity of the master control disk and the line card is in the second case in the present invention;
fig. 4 is a flowchart of ONU upgrade performed when the memory storage capacity of the master control disk and the line card is in a third situation in the present invention;
fig. 5 is a flowchart of ONU upgrade performed when the memory storage capacity of the master control disk and the line card is in a fourth situation in the present invention;
FIG. 6 is a specific flowchart of upgrading a plurality of ONUs in the present invention;
fig. 7 is a flowchart illustrating step S1 in the present invention.
Detailed Description
The invention provides a method and a system for upgrading versions of Optical Network Units (ONU), wherein a limited annular memory is used for upgrading an ONU upgrading file, when an OLT master control panel or a line card cannot store the ONU upgrading file, the annular memory is used for downloading the ONU upgrading file and simultaneously sending the downloaded upgrading file to next-level equipment. The invention is described in detail below with reference to specific embodiments and the attached drawings.
As shown in fig. 1, the present invention provides an optical network unit version upgrading system, which includes: a master control panel and a line card; respectively arranging annular memory modules on a main control disk and a line card, and starting the annular memory modules when the memory resources of the main control disk or the line card cannot completely store the ONU upgrade files; the ring memory module includes:
the writing task unit 10 is used for segmenting the file data of the upper-level equipment and writing the data segments into the current-level equipment;
the reading task unit 20 is used for slicing the data read at the current level and sending the sliced data to the next-level equipment;
the write task scheduling unit 30 controls the write speed and the write position of the write task unit 10, so that the residual memory of the equipment at the current level is not lower than the safety threshold value of normal operation of the system, and when the data is written in a fragmented manner, the original data fragments at the write position are already read;
the read task scheduling unit 40 controls the read speed and the read position of the read task unit 20, so that the remaining memory of the device at this level is not lower than the safety threshold for normal operation of the system, and when the data is fragmented and read, the read data fragment is not read.
The invention provides an optical network unit version upgrading method, which comprises the following steps:
respectively constructing an annular memory mechanism on a main control panel and a line card of the OLT;
the ring memory mechanism is configured to: the file is issued to the next-level equipment through reasonable scheduling of the writing task and the reading task, the equipment does not need to be completely downloaded, and upgrading failure caused by insufficient memory resources for storing the upgrading file is avoided; the writing task divides the file data of the upper-level equipment into pieces and writes the data pieces into the current-level equipment; the read task divides the data read at the current level into pieces and sends the pieces to the next level equipment (for the line card of the next level equipment of the master control disk, for the line card, the next level equipment is ONU equipment to be upgraded); when the data is written in the data fragment, the original data fragment at the writing position is already read, and when the data fragment is read, the read data fragment is not read; and when the write task and the read task are scheduled, the residual memory of the equipment at the current level is not lower than the safety threshold value of the normal operation of the system.
When the main control disk and the line card cannot completely store the ONU upgrade file, the annular memory mechanism on the main control disk and the line card is started, and the ONU upgrade file is issued to the next-level equipment by adopting the annular memory mechanism.
It should be noted that, when the ONU is upgraded, the ONU to be upgraded is first analyzed, the correctness of the ONU upgrade file is checked, and the implementation flow of the upgrade is determined.
The first embodiment.
In this embodiment, the scheduling of the write task is as follows:
controlling the speed and frequency of writing the file data by the writing task and the data fragment size of the current-stage equipment according to the use condition of the memory of the current-stage equipment and the reading condition of the reading task on the memory of the current-stage equipment (namely, when the difference between the sizes of the writing file and the reading file is larger and larger, the speed of downloading the file is slower, and when the difference between the sizes of the writing file and the reading file is smaller and smaller, the speed of downloading the file is faster), and adjusting the joint of the written file data to ensure that the residual memory of the current-stage equipment is not lower than the safety threshold of normal operation of a system; simultaneously controlling the position of the written data to ensure that the original data fragments on the written position are read;
the scheduling of the read task is:
according to the use condition of the memory of the equipment at the current level and the writing condition of the writing task to the memory of the equipment at the current level, controlling the speed and frequency of reading the file data by the reading task of the equipment at the current level and the size of a data fragment (namely, when the difference between the sizes of the writing file and the reading file is larger and larger, the speed of reading the file is accelerated, and when the difference between the sizes of the writing file and the reading file is smaller and smaller, the speed of reading the file is slowed down), and adjusting the joint of issuing the file data to the next level of equipment to ensure that the residual memory of the equipment at the current level is not lower than the safety threshold of normal operation of a system; and meanwhile, the position of the read data is controlled, so that the read data fragments are not read.
Example two.
In order to ensure that the data link between the master control disk of FTP CLIENT and FTP SERVER is not broken, and the data interaction between the master control disk and FTP SERVER cannot exceed the time-out time requirement of the FTP protocol for two data packets, this requires that the write task of the master control disk cannot exceed the time-out time specified by the FTP protocol for two data fragmentation intervals when acquiring the data fragmentation of the ONU upgrade file from FTP SERVER.
Correspondingly, data interaction between the master control disk serving as FTP SERVER and the line card serving as FTP CLIENT cannot exceed the timeout time between two data packets of the FTP protocol, that is, when a write task of the line card acquires data fragments of the ONU upgrade file from the master control disk, the interval between the two data fragments cannot be greater than the timeout time specified by the FTP protocol.
Example three.
The write task continuously checks the running state of the read task in the running process, and if the read task is abnormal (the read task cannot read new data due to external environment change), the write task must be capable of processing the abnormality and restoring itself to a correct state (the correct state is that the task is restored to an initial state).
The read task continuously checks the running state of the write task in the running process, and if the write task is abnormal (data blockage of the write task or writing failure), the read task must be capable of processing the abnormality and restoring the read task to a correct state (the correct state is that the task is restored to an initial state).
Example four.
The write task is ended only after the read task is also executed, for example, after the write task writes all data of the ONU upgrade file into the current-stage device, the write task cannot be ended immediately, and the read task of the current-stage device reads and issues all data of the ONU upgrade file to the next-stage device, and otherwise, the whole process is inconsistent;
correspondingly, the end of the read task must be informed of the write task to enable the write task to end normally, so that the inconsistency of the whole process is avoided.
Example five.
Before downloading the ONU upgrade file from the FTP server, the main control disk of this embodiment dynamically obtains the size of the remaining memories of the current OLT main control disk and line card and the size of the ONU upgrade file, and then analyzes the memory storage capacity of the current OLT main control disk and line card according to the size of the ONU upgrade file, and determines whether the main control disk and line card start the corresponding ring memory mechanism. The memory storage capacity of the master control disk and the line card has the following four conditions:
in the first situation, the OLT master control panel can completely store the ONU upgrade files, and the line card can completely store the ONU upgrade files; at this time, the main control panel and the line card do not start the annular memory mechanism;
in the second situation, the OLT master control panel cannot completely store the ONU upgrade files, and the line card can completely store the ONU upgrade files; at the moment, the main control panel starts a ring memory mechanism, and the line card does not start the ring memory mechanism;
in the third situation, the OLT master control panel can completely store the ONU upgrade files, and the line card cannot completely store the ONU upgrade files; at the moment, the main control panel does not start the annular memory mechanism, and the line card starts the annular memory mechanism;
in the fourth situation, the OLT master control panel cannot completely store the ONU upgrade files, and the line card cannot completely store the ONU upgrade files; at this time, the main control disk and the line card both start the ring memory mechanism.
As shown in fig. 2, this embodiment is a first case of the memory storage capacity of the master control disk and the line card, that is, the master control disk and the line card can completely store the ONU upgrade file, at this time, the master control disk and the line card cannot start the annular memory mechanism, and in this case, the ONU upgrade is performed as follows:
FTP CLIENT of the master control disk downloads and stores the complete ONU upgrade file from FTP SERVER and sends the complete ONU upgrade file to the line card; and after receiving and storing the complete ONU upgrade file, the line card forwards the corresponding ONU upgrade file to the ONU to be upgraded.
As shown in fig. 3, the second case of the memory storage capacity of the master control disk and the line card in this embodiment is that the master control disk cannot completely store the ONU upgrade file, and the line card can completely store the ONU upgrade file; at this moment, the main control panel starts the ring memory mechanism, the line card does not start the ring memory mechanism, and in this case, the ONU is upgraded as follows:
the main control disk starts a ring memory mechanism; the main control disk downloads the data fragments of the ONU upgrade files from FTP SERVER, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file and writes the data fragments into the memory of the ONU upgrade file; and after the line card stores the complete ONU upgrade file, the corresponding ONU upgrade file is forwarded to the ONU to be upgraded.
As shown in fig. 4, the third situation of the memory storage capacity of the master control disk and the line card is provided in this embodiment, that is, the master control disk can completely store the ONU upgrade file, and the line card cannot completely store the ONU upgrade file; at this moment, the main control panel does not start the annular memory mechanism, the line card starts the annular memory mechanism, and in this case, the ONU is upgraded as follows:
starting a line card annular memory mechanism; the main control disk downloads the ONU upgrade file from FTP SERVER and writes the ONU upgrade file into the memory of the main control disk; the main control panel issues the ONU upgrade file to the line card until the complete ONU upgrade file is downloaded; the line card writes the data fragments of the ONU upgrade file into the memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded.
As shown in fig. 5, this embodiment is a fourth case of the memory storage capacity of the main control panel and the line card, that is, the OLT main control panel cannot completely store the ONU upgrade file, and the line card cannot completely store the ONU upgrade file; at this moment, the main control panel and the line card both start the annular memory mechanism, and under this condition, the ONU upgrade is carried out as follows:
starting a ring memory mechanism of a master control disk and a line card; the main control disk downloads the data fragments of the ONU upgrade files from FTP SERVER, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file, writes the data fragments of the ONU upgrade file into a memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded.
Example six.
In this embodiment, when a plurality of ONUs are upgraded simultaneously, the management and control of the master control disk on the upgrading of the plurality of ONUs are as follows:
according to the maximum number of ONU upgrades supported by the current line card at one time (which is determined by the space size of a cache file, because the number of socket connections establishing a transmission file with the ONU during each upgrade is limited due to the resource limitation of the line card, if the line card cannot cache the file, the line card can only issue the upgrade file in batches), and whether a large batch of ONU upgrades issued by a user need to issue upgrade instructions to the line card in batches is judged;
if the upgrading number of the large batch of ONU issued by the user is larger than the maximum number of ONU upgrading once supported by the current line card, the large batch of ONU upgrading is divided into a plurality of small batch of ONU upgrading, and an upgrading instruction is issued to the line card respectively aiming at each small batch of ONU upgrading to issue a corresponding ONU upgrading file; the number of the ONUs upgraded in each small batch is not more than the maximum number of ONUs upgraded by the current line card at one time; in order to ensure that the ONU upgrading performed by the line card every time is not interfered, the master control panel needs to inform the line card to perform the next operation after the ONU of the upgrading is completely upgraded. For example, if the number of the large batch of ONUs issued by the user is upgraded to 100, but the maximum number of the ONUs supported by the line card at one time is 10, the large batch of 100 ONUs is upgraded and split into 10 small batches of ONU upgrades.
And if the upgrading number of the large batches of ONU issued by the user is not more than the maximum number of ONU upgrading once supported by the current line card, issuing an upgrading instruction once to the line card, and issuing the ONU upgrading file of the large batches of ONU upgraded by the user to the line card once.
Example seven.
In this embodiment, as shown in fig. 6, upgrading a plurality of ONUs specifically includes the following steps:
step S1, the main control panel interacts with the line card to obtain the storage capacity of the main control panel and the line card to the ONU upgrade file, and issues an upgrade instruction for upgrading a plurality of ONUs and the ONU upgrade file issued by a user to the line card;
step S2, upgrading the corresponding ONU according to the memory storage capacity of the master control disk and the line card, specifically:
step S201, judging whether the main control panel can completely store the ONU upgrade files (the small batch of ONU upgrade files in the following step S105 and the upgrade files for the large batch of ONU upgrade issued by the user in the step S106) to be acquired, if not, executing the step S202; otherwise, go to step S207;
step S202, starting an annular memory mechanism of a main control panel;
step S203, judging whether the line card can completely store the ONU upgrade file to be acquired, if not, executing step S204; otherwise, go to step S206;
step S204, starting a ring memory mechanism of the line card, and then executing step S205;
step S205, upgrading by adopting the fourth condition of the memory storage capacity of the main control panel and the line card;
step S206, upgrading by adopting the second condition of the memory storage capacity of the main control panel and the line card;
step S207, judging whether the line card can completely store the ONU upgrade file required to be acquired, if not, executing step S208; otherwise, go to step S210;
step S208, starting a ring memory mechanism of the line card, and then executing step S209;
step S209, upgrading by adopting the third condition of the memory storage capacity of the main control panel and the line card;
step S210, upgrade is performed by using the first condition of the memory storage capacity of the master control disk and the line card.
When upgrading multiple ONUs, the method further includes two cases, that the upgrade number of the large batch of ONUs issued by the user is greater than the maximum number of the line cards supporting the upgrade of the ONUs, and is less than or equal to the maximum number of the line cards supporting the upgrade of the ONUs, so in this embodiment, as shown in fig. 7, step S1 specifically includes the following steps:
step S101, analyzing an ONU which is issued by a user and needs to be upgraded, and checking an ONU upgrade file header according to the type of the ONU;
step S102, the master control panel interacts with the line card to obtain the storage capacity of the master control panel and the line card to the ONU upgrade file, and the storage capacity is used for analyzing the upgrade process which the master control panel needs to go;
step S103, calculating the maximum number of ONU upgrade supported by the line card according to the storage capacity of the line card to the ONU upgrade file;
step S104, judging whether the upgrading number of a large number of ONU issued by a user is larger than the maximum number of ONU upgrading supported by a line card; if the value is larger than the value, executing the step S106; otherwise, go to step S105;
step S105, sending an upgrade instruction and all ONU upgrade files of a large batch of ONU upgrade sent by a user to the line card, then executing step S2, upgrading the corresponding ONU according to the main control panel and the memory storage capacity of the line card, and finishing the multi-ONU upgrade after the upgrade is finished;
step S106, splitting a large batch of ONU upgrade issued by a user into a plurality of small batch of ONU upgrade;
step S107, issuing upgrading instructions and corresponding upgrading files (only including upgrading files of the ONU in the current batch) to the line card in batches aiming at each small batch of ONU upgrading, and then executing step S2 to upgrade the corresponding ONU according to the main control panel and the memory storage capacity of the line card;
step S108, when the ONU of the batch upgrading is upgraded, judging whether all small batch upgrading is finished, if not, executing step S107; otherwise, ending the multi-ONU upgrading.
The present invention is not limited to the above-mentioned preferred embodiments, and any structural changes made under the teaching of the present invention shall fall within the protection scope of the present invention, which has the same or similar technical solutions as the present invention.
Claims (10)
1. An optical network unit version upgrading method is characterized by comprising the following steps:
respectively constructing an annular memory mechanism on a main control panel and a line card of the OLT, wherein the annular memory mechanism comprises a write task and a read task; wherein:
the writing task divides the file data of the upper-level equipment into pieces and writes the data pieces into the current-level equipment;
the reading task divides the data read by the current level into pieces and sends the pieces to the next level equipment;
through reasonable scheduling of a write task and a read task, the residual memory of the equipment at the current level is not lower than a safety threshold value of normal operation of a system, when data fragments are written, original data fragments on a write-in position are already read, and when the data fragments are read, the read data fragments are not read;
when the main control disk and the line card cannot completely store the ONU upgrade file, starting an annular memory mechanism on the main control disk and the line card to transmit the ONU upgrade file to next-stage equipment;
before downloading the ONU upgrade file from the FTP server, the main control disk dynamically acquires the residual memory size of the current OLT main control disk and the line card and the size of the ONU upgrade file, analyzes the memory storage capacity of the current OLT main control disk and the line card according to the size of the ONU upgrade file, and judges whether the main control disk and the line card start a corresponding annular memory mechanism or not;
the memory storage capacity of the master control disk and the line card has the following four conditions:
in the first situation, the main control panel and the line card can completely store ONU upgrade files; at this time, the main control panel and the line card do not start the annular memory mechanism;
in the second situation, the main control panel cannot completely store the ONU upgrade files, and the line card can completely store the ONU upgrade files; at the moment, the main control panel starts a ring memory mechanism, and the line card does not start the ring memory mechanism;
in the third situation, the main control panel can completely store the ONU upgrade files, and the line card cannot completely store the ONU upgrade files; at the moment, the main control panel does not start the annular memory mechanism, and the line card starts the annular memory mechanism;
in the fourth situation, the main control panel and the line card cannot completely store the ONU upgrade files; at this time, the master control disk and the line card both start the ring memory mechanism.
2. The method of claim 1, wherein the scheduling of the write task is:
controlling the speed, the frequency and the data fragment size of the writing task of the equipment at the current level for writing the file data and the position for writing the data according to the use condition of the equipment at the current level and the reading condition of the reading task on the equipment at the current level;
the scheduling of the read task is:
and controlling the speed, the frequency and the data fragment size of the reading task of the equipment at the current level to read the file data and the position of the reading data according to the service condition of the equipment at the current level and the writing condition of the writing task to the equipment at the current level.
3. The method according to claim 1, wherein when the write task of the master control disk obtains the data fragments of the ONU upgrade file from FTP SERVER, the interval between the two data fragments cannot be greater than the timeout time specified by the FTP protocol;
correspondingly, when the write task of the line card obtains the data fragments of the ONU upgrade file from the master control disk, the interval between the two data fragments cannot be greater than the timeout time specified by the FTP protocol.
4. The method according to claim 1, characterized in that the write task continuously checks the running state of the read task during running, and if the read task is abnormal, the write task handles the abnormality and restores itself to the initial state;
and the read task continuously checks the running state of the write task in the running process, and if the write task is abnormal, the read task is abnormal in processing and restores the read task to the initial state.
5. Method according to claim 1, characterized in that for the end of a read task and a write task:
informing the end of the reading task of the writing task;
the write task can be normally ended only after receiving the end notification of the read task.
6. The method according to claim 1, wherein the ONU upgrade is performed under four conditions of memory storage capability of the master and the line card, respectively:
in the first case, the ONU upgrade specifically includes: the main control disk downloads and stores the complete ONU upgrade file from the FTP server, and issues the complete ONU upgrade file to the line card; after receiving and storing the complete ONU upgrade files, the line card forwards the corresponding ONU upgrade files to the ONU to be upgraded;
in the second case, the ONU upgrade specifically includes: the main control disk starts a ring memory mechanism; the main control disk downloads the data fragments of the ONU upgrade files from the FTP server, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file and writes the data fragments into the memory of the ONU upgrade file; after the line card stores the complete ONU upgrade file, the corresponding ONU upgrade file is forwarded to the ONU to be upgraded;
in the third case, the ONU upgrade specifically includes: starting a line card annular memory mechanism; the main control disk downloads the ONU upgrade file from the FTP server and writes the ONU upgrade file into a memory of the FTP server; the main control panel issues the ONU upgrade file to the line card until the complete ONU upgrade file is downloaded; the line card writes the data fragments of the ONU upgrade file into the memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded;
in the fourth case, the ONU upgrade specifically includes: starting a ring memory mechanism of a master control disk and a line card; the main control disk downloads the data fragments of the ONU upgrade files from FTP SERVER, writes the data fragments into the memory of the main control disk, reads the data fragments of the ONU upgrade files in the memory and sends the data fragments to the line card; the line card receives the data fragments of the ONU upgrade file, writes the data fragments of the ONU upgrade file into the memory of the line card, and reads the data fragments of the ONU upgrade file in the memory of the line card and forwards the data fragments to the ONU to be upgraded.
7. The method according to claim 6, wherein when a plurality of ONUs are upgraded simultaneously, the master control disk manages and controls the upgrading of the plurality of ONUs, specifically:
judging whether a large batch of ONU upgrading issued by a user needs to be issued to the line card in batches according to the maximum number of ONU upgrading once supported by the current line card;
if the upgrading number of the large batch of ONU issued by the user is larger than the maximum number of ONU upgrading once supported by the current line card, the large batch of ONU upgrading is divided into a plurality of small batch of ONU upgrading, and an upgrading instruction is issued to the line card respectively aiming at each small batch of ONU upgrading to issue a corresponding ONU upgrading file; the number of the ONUs upgraded in each small batch is not more than the maximum number of ONUs upgraded by the current line card at one time;
otherwise, issuing an upgrading instruction to the line card once, and issuing the ONU upgrading files of the large batch of ONU upgrading issued by the user to the line card once.
8. The method according to claim 7, wherein upgrading the plurality of ONUs specifically comprises:
step S1, the main control panel interacts with the line card to obtain the storage capacity of the main control panel and the line card to the ONU upgrade file, and issues an upgrade instruction for upgrading a plurality of ONUs and the ONU upgrade file issued by a user to the line card;
step S2, upgrading the corresponding ONU according to the memory storage capacity of the master control disk and the line card, specifically:
step S201, judging whether the main control panel can completely store the ONU upgrade files required to be acquired, if not, executing step S202; otherwise, go to step S207;
step S202, starting an annular memory mechanism of a main control panel;
step S203, judging whether the line card can completely store the ONU upgrade file to be acquired, if not, executing step S204; otherwise, go to step S206;
step S204, starting a ring memory mechanism of the line card, and then executing step S205;
step S205, upgrading by adopting the fourth condition of the memory storage capacity of the main control panel and the line card;
step S206, upgrading by adopting the second condition of the memory storage capacity of the main control panel and the line card;
step S207, judging whether the line card can completely store the ONU upgrade file required to be acquired, if not, executing step S208; otherwise, go to step S210;
step S208, starting a ring memory mechanism of the line card, and then executing step S209;
step S209, upgrading by adopting the third condition of the memory storage capacity of the main control panel and the line card;
step S210, upgrade is performed by using the first condition of the memory storage capacity of the master control disk and the line card.
9. The method according to claim 8, wherein step S1 specifically comprises the steps of:
step S101, analyzing an ONU which is issued by a user and needs to be upgraded, and checking an ONU upgrade file header according to the type of the ONU;
step S102, the master control panel interacts with the line card to obtain the storage capacity of the master control panel and the line card to the ONU upgrade file, and the storage capacity is used for analyzing the upgrade process which the master control panel needs to go;
step S103, calculating the maximum number of ONU upgrade supported by the line card according to the storage capacity of the line card to the ONU upgrade file;
step S104, judging whether the upgrading number of a large number of ONU issued by a user is larger than the maximum number of ONU upgrading supported by a line card; if the value is larger than the value, executing the step S106; otherwise, go to step S105;
s105, sending an upgrading instruction and all ONU upgrading files of a large batch of ONU upgrading sent by a user to a line card; then step S2 is executed, and corresponding ONU is upgraded according to the memory storage capacity of the main control panel and the line card; after the upgrading is finished, finishing the multi-ONU upgrading;
step S106, splitting a large batch of ONU upgrade issued by a user into a plurality of small batch of ONU upgrade;
step S107, issuing upgrading instructions and corresponding upgrading files to the line cards in batches aiming at each small-batch ONU upgrading, then executing step S2, and upgrading the corresponding ONUs according to the main control panel and the memory storage capacity of the line cards;
step S108, when the ONU of the batch upgrading is upgraded, judging whether all small batch upgrading is finished, if not, executing step S107; otherwise, ending the multi-ONU upgrading.
10. An optical network unit version upgrading system comprises a main control panel and a line card, and is characterized in that annular memory modules are respectively arranged on the main control panel and the line card, and the annular memory modules are started when the memory resources of the main control panel or the line card cannot completely store ONU upgrading files; the ring memory module includes:
the writing task module is used for fragmenting the file data of the upper-level equipment and writing the data fragments into the current-level equipment;
the task reading module is used for slicing the data read at the current level and sending the sliced data to the next level equipment;
the write task scheduling module controls the write-in speed and the write-in position of the write task module, so that the residual memory of the equipment at the current level is not lower than the safety threshold value of normal operation of the system, and the original data fragments at the write-in position are read;
the read task scheduling module controls the reading speed and the reading position of the read task module, so that the residual memory of the equipment at the current level is not lower than the safety threshold value of the normal operation of the system, and the read data fragments are not read;
before downloading the ONU upgrade file from the FTP server, the main control disk dynamically acquires the residual memory size of the current OLT main control disk and the line card and the size of the ONU upgrade file, analyzes the memory storage capacity of the current OLT main control disk and the line card according to the size of the ONU upgrade file, and judges whether the main control disk and the line card start a corresponding annular memory mechanism or not;
the memory storage capacity of the master control disk and the line card has the following four conditions:
in the first situation, the main control panel and the line card can completely store ONU upgrade files; at this time, the main control panel and the line card do not start the annular memory mechanism;
in the second situation, the main control panel cannot completely store the ONU upgrade files, and the line card can completely store the ONU upgrade files; at the moment, the main control panel starts a ring memory mechanism, and the line card does not start the ring memory mechanism;
in the third situation, the main control panel can completely store the ONU upgrade files, and the line card cannot completely store the ONU upgrade files; at the moment, the main control panel does not start the annular memory mechanism, and the line card starts the annular memory mechanism;
in the fourth situation, the main control panel and the line card cannot completely store the ONU upgrade files; at this time, the master control disk and the line card both start the ring memory mechanism.
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 CN108733394A (en) | 2018-11-02 |
CN108733394B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050976B (en) * | 2019-12-28 | 2023-06-20 | 浙江宇视科技有限公司 | FPGA parallel upgrading method and device based on PCIe bus, medium and electronic equipment |
CN112035147A (en) * | 2020-09-14 | 2020-12-04 | 上海仙塔智能科技有限公司 | Upgrade time management method, upgrade time management system, and computer storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108733394A (en) | 2018-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113742031B (en) | Node state information acquisition method and device, electronic equipment and readable storage medium | |
US9331870B2 (en) | Switch, information processing apparatus, and information processing system | |
US8463737B2 (en) | Realtime unification management information data conversion and monitoring apparatus and method for thereof | |
CN105407117A (en) | Distributed data backup method, device and system | |
CN108733394B (en) | Optical network unit version upgrading method and system | |
CN110955441B (en) | Algorithm updating method and device | |
CN112445533A (en) | Method, system, device and medium for resetting PCIE (peripheral component interface express) device | |
CN1777177B (en) | Device,system and method for configuration of adaptor port | |
CN112417050A (en) | Data synchronization method and device, system, storage medium and electronic device | |
CN113590049B (en) | Storage volume cross-node cloning method, device, equipment and readable medium | |
CN114064438A (en) | Database fault processing method and device | |
CN111209125B (en) | Multi-process command line implementation method | |
CN110620798A (en) | Control method, system, equipment and storage medium for FTP connection | |
CN117579611A (en) | Data transmission method and device, storage medium and electronic device | |
CN105339906A (en) | Data writing control method for persistent storage device | |
CN109257403B (en) | Data storage method and device and distributed storage system | |
CN105939384A (en) | Network request processing method and system | |
KR100416809B1 (en) | Memory structure of unit for remote download and method thereof | |
CN102271147B (en) | Information delivery system and method thereof | |
CN113923100A (en) | Alarm acquisition method, alarm acquisition system, storage medium and electronic device | |
CN110149389B (en) | Data transmission control method and system of holographic display device | |
CN112615916A (en) | File deployment method and device, electronic equipment and storage medium | |
CN113872808B (en) | Application processing method and device | |
CN112306746A (en) | Method, apparatus and computer program product for managing snapshots in an application environment | |
CN115529340B (en) | Data management method of VPX chassis CHMC module based on soft bus |
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 |