In existing communication system, operator often need carry out system upgrade to access network device in order to optimize network, to improve service quality.System upgrade is exactly on the basis of existing hardware, in order to support new function equipment is carried out software and Data Update, reaches the purpose that systematic function promotes.Because it is very high that the reliability of telecommunication apparatus and importance require, will upgrade influence to regular traffic of operator's common requirement when system is upgraded drops to minimumly, and the front and back equipment running status and the configuration data of device upgrade are consistent.
Present communication equipment adopts relational database to carry out the storage and the preservation of data usually, and in the running of communication equipment, a large amount of user's configuration data, facility informations all are kept in the relational database.But, because different editions data of database structure or data definition might be different, the upgrading process in order to guarantee that user data does not need to reconfigure, the record of the various configuration datas of early version all need be upgraded in the record of the correspondence in the redaction database, therefore, the upgrading of database is very loaded down with trivial details.
Existing technical scheme normally DB Backup to external server, externally carry out the updating operation of data then on the server by upgrading tool, the data load after the upgrading is to equipment to be upgraded.The inventor finds that existing scheme needs by network backup and loading of databases in escalation process because the unreliability of Network Transmission, if run into network congestion or fault, escalation process very slowly even can't carry out, reliability is difficult to ensure.
Summary of the invention
The object of the present invention is to provide a kind of upgrade method, communication system and access network device thereof with communication equipment of higher reliability and efficient.
Technical scheme of the present invention:
A kind of upgrade method of communication equipment, the method comprising the steps of:
Communication equipment powers on;
The program stored bag whether to need to confirm upgrading on the memory cell of communication equipment inspection in communication equipment, and upgrading then moves ROMPaq this equipment is carried out updating operation if desired, carries out next step then, if do not need upgrading then directly carry out next step;
Communication equipment normally enters the host-initiated program.
A kind of communication system, comprise core network device, access network device and user terminal, described user terminal is connected on the core network device by access network device, it is characterized in that: described access network device further comprises memory cell, store the program package that needs upgrading on this memory cell, after access network device powers on, the BIOS of access network device moves this program package access network device is carried out updating operation, and access network device normally enters the host-initiated program then.
A kind of access network device, comprise housing, mainboard and memory cell, described mainboard and memory cell are arranged on enclosure interior and are used for storage and transmit processing, it is characterized in that, store the program package that needs upgrading on this memory cell, after access network device powered on, the BIOS of access network device moved this program package access network device is carried out updating operation, and access network device normally enters the host-initiated program then.
Beneficial effect of the present invention: communication equipment of the present invention is when upgrading, can read the ROMPaq bag of being stored on this device interior memory cell, this ROMPaq bag can directly move on this equipment, reduce the flow process that loads external data base in the escalation process, reduce the complexity of upgrading, improve the reliability and the efficient of upgrading.
As shown in Figure 1, the communication system of the embodiment of the invention, comprise: user terminal 12, access network device 14 and core network device 16, user terminal 12 links with core network device 16 by access network device 14, can send message to core network device 16, also can receive and handle the message that core network device 16 sends simultaneously.
Access network device 14 specifically can be digital subscriber link modem (DSL Modem, DigitalSubscriber Line Modem), Digital Subscriber Line Access Multiplexer (DSLAM, Digital SubscriberLine Access Multiplexer), router (Router) or switch (Switch), it also can be the access network device of other type, as optical network unit (ONU, Optical Network Unit) or Optical Network Terminal (ONT, Optical Network Terminal) etc.This access network device 14 mainly comprises mainboard 141, housing (not shown) and memory cell 142.Wherein mainboard 141 is used to receive the message that sends with process user terminal 12, memory cell 142 can be one or more combination of hard disk, CD-ROM drive or flash memory computer-readable mediums such as (Flash), the AKU that is mainly used in configuration information, the message processing middle data of this equipment of storage and comprises the program that this equipment need upgrade.
The production method of AKU is as shown in Figure 2: ROMPaq can merge to relevant file in the ROMPaq bag by a upgrading merging instrument with relevant resource file and go, the ROMPaq bag again and relevant board software and the host software that need upgrade be merged into AKU.
The ROMPaq bag is loaded in the equipment and can leaves in the memory cell of the network equipment as file independently; Resource file relevant in the ROMPaq bag can be accessed in ROMPaq, because the upgrading resource file may constantly increase along with the increase of version, it is relatively good in ROMPaq the visit of these files to be operated autgmentability according to the read-write access mode of file system; Therefore must write down the original position of each corresponding resource file correspondence in the ROMPaq bag.
Concrete escalation process is as shown in Figure 3:
The first step: communication equipment powers on;
Second step: the program stored bag confirms whether need upgrading on the memory cell of BIOS inspection in communication equipment, detailed process is as follows: after master control borad resets, at first can enter the BIOS operation, can check in BIOS whether the next program of version and the version number of data of coming into force mates, if program and database matching, then thinking does not need the program package of upgrading, and directly carries out for the 4th step; If program and database do not match, then thinking has the program package that needs upgrading, and communication equipment operation ROMPaq is carried out updating operation to data.For for the equipment of built-in application program, generally adopt embedded relevant database to come stored configuration and state information, relevant database is based on the data management storehouse of form, and the base unit of each table is record and field, and is as shown in table 1:
Field 1 in the table, field 2, field N and Value1, Value2, Value N be the field description information and the corresponding field of record of a database table of correspondence database respectively.
The detailed process of upgrading is as follows:
A. at first, according to the version number of the mainframe program that comes into force and the version database this shop of legacy version next time, determine the version path of upgrading; According to the version database this shop that will be upgraded to, create the clear data storehouse of redaction;
B. read first table in the legacy data storehouse, relatively whether each field of each bar record is the field that new database has in this table; If then the data of legacy data storehouse corresponding field are returned in the corresponding field of new database; If the field of new database is not the field in the backup database promptly is the field that increases newly, compose the data of giving tacit consent to then for this field in the new database;
C. repeating step b, the data of opening table up to each of legacy data storehouse all are transformed in the database of redaction;
D. all table upgradings are saved in the database after the upgrading in the corresponding memory device after finishing.
The 3rd step: judge whether success of upgrading, if success then carry out next step, if failed ROMPaq automatically program and the data-backoff version before the upgrading, guarantee that existing business is unaffected.
The 4th step: communication equipment normally enters the host-initiated program.
Embodiments of the invention are when communication equipment upgrading, can directly read the ROMPaq bag of being stored on this device interior memory cell, this ROMPaq bag can directly move on this equipment, reduce the flow process that loads external data base in the escalation process, reduce the complexity of upgrading, improve the reliability and the efficient of upgrading.
More than be explanation, in concrete implementation process, can carry out suitable improvement, to adapt to the needs of concrete condition the solution of the present invention to the specific embodiment of the invention.Therefore the specific embodiment of the present invention just plays an exemplary role, not in order to restriction protection scope of the present invention.