CN100542103C - A kind of method of hot upgrade of network processor and device - Google Patents

A kind of method of hot upgrade of network processor and device Download PDF

Info

Publication number
CN100542103C
CN100542103C CNB2006101504167A CN200610150416A CN100542103C CN 100542103 C CN100542103 C CN 100542103C CN B2006101504167 A CNB2006101504167 A CN B2006101504167A CN 200610150416 A CN200610150416 A CN 200610150416A CN 100542103 C CN100542103 C CN 100542103C
Authority
CN
China
Prior art keywords
processing unit
engine
upgrade
network processing
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2006101504167A
Other languages
Chinese (zh)
Other versions
CN1968153A (en
Inventor
朱建仪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hengqin International Intellectual Property Exchange Co ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006101504167A priority Critical patent/CN100542103C/en
Publication of CN1968153A publication Critical patent/CN1968153A/en
Priority to PCT/CN2007/070925 priority patent/WO2008052463A1/en
Application granted granted Critical
Publication of CN100542103C publication Critical patent/CN100542103C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Abstract

The present invention relates to a kind of method and device of hot upgrade of network processor.The engine that needs in the network processing unit among the present invention to upgrade is set to not have the message treatment state, and after accomplishing the setting up, business module instruction old in the described engine is upgraded in business module instruction after the use upgrading, thereby makes network processing unit realize hot upgrading under the situation of non-interrupting service.And implementation procedure of the present invention is stable, reliable, and the scope of application is extensive.Realization of the present invention can also be satisfied the modification of a large number of services block code, has improved the reliability and stability of router, guarantees the normal operation of carrier class business.

Description

A kind of method of hot upgrade of network processor and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and device of hot upgrade of network processor.
Background technology
The transformation of using to commerce from scientific research along with interactive network analysis (Internet), the network user rapidly increases, various types of application co-exist on the physical network, and the guarantee of the disposal ability of network node, service quality (QoS) and the network bandwidth become the major obstacle that Internet continues development gradually.But along with the development of optical transport technology, transmission bandwidth no longer becomes the bottleneck of network, and the disposal ability of network switching node seems particularly important.
In order to satisfy the variation that network makes rapid progress, gigabit router (GSR) and tril bit router (TSR) arise at the historic moment, and these high-end routers adopt big capacity switching fabric and hardware high speed retransmission technique, have improved message transferring speed greatly.Network processing unit (NP:Network Processor) as these devices exchange cores has also obtained swift and violent development and application.
Described network processing unit is a kind of programming device, is the brain of router device, and it is applied to the various tasks of the communications field, such as the converging of processing data packets, protocal analysis, route querying, sound/data, fire compartment wall, QoS.
Along with the continuous release of new technology, and the new demand of user to constantly proposing on the NP function, NP needs constantly upgrading, promptly uses the new and old instruction of new operating instruction, satisfies user's requirement and realizes new technology.So, on backbone network, moving the NP in the professional router, how under the situation of non-interrupting service, realizing that the heat upgrading of NP in the router becomes the emphasis of present research.
In existing technology, use modify instruction redirect technology to come the NP that is moving on the backbone network in the professional router is carried out the heat upgrading, the basic principle of this technology is the afterbody that the instruction that increases newly is put into the free area in micro-code instruction space, and the instruction that will revise is replaced to the instruction address that jumps to newly-increased microcode.
When adopting method of the prior art to upgrade, need be very familiar to microcode, also need the resources such as related register of whole NP very familiar, and need prevent to upgrade the time to the covering of NP internal resource, and this method only is fit to revise instruction code in a small amount.If when adopting this method to revise a software vulnerability (bug), need all need redirect in the discontinuous local while of original code, this just might cause upgrading asynchronous, and causing microcode to handle has problem, simultaneously, this method also can cause the waste of the instruction space.
Summary of the invention
The purpose of this invention is to provide a kind of method and device of hot upgrade of network processor, thereby make network processing unit under the situation of non-interrupting service, carry out the heat upgrading.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of method of hot upgrade of network processor, comprising:
The engine that needs in the network processing unit to upgrade is set to not receive message status, and described end is set after, postpone a period of time, make described engine be in no message treatment state;
Use the business module instruction after upgrading to upgrade business module instruction old in the described engine;
Remove the no message treatment state of engine described in the described network processing unit, recover described network processing unit normal running.
The method that the engine that needs in the described network processing unit to upgrade is set to not receive message status comprises: by general central processing unit in the network processing unit uplink of network processing unit is carried out the link level back-pressure.
Also comprise in the described method: if the engine that general central processing unit needs to upgrade in network processing unit has message to send to the webserver before being set to not have the message treatment state, then general central processing unit stops to send described message to network processing unit.
The present invention also provides a kind of device of hot upgrade of network processor, comprising:
The unit is set, and the engine that being used for network processing unit needs to upgrade is set to not receive message status, and described end is set after, postpone a period of time, make described engine be in no message treatment state;
Updating block is used for describedly the unit being set after accomplishing the setting up, uses the business module instruction after the upgrading to upgrade business module instruction old in the described engine, finishes the upgrading of network processing unit;
Recovery unit is used for after described updating block is finished renewal, removes the no message treatment state of engine described in the described network processing unit, recovers described network processing unit normal running.
The described unit that is provided with specifically comprises:
The setting state module, the engine that being used for network processing unit needs to upgrade is set to not receive message status;
The time delay module is used in described setting state module after accomplishing the setting up, postpones a period of time, guarantees that the engine that needs in the network processing unit to upgrade is no message treatment state.
As seen from the above technical solution provided by the invention, the invention provides method and device that a kind of reliable, simple, practical network processing unit heat is upgraded, thereby make network processing unit under the situation of non-interrupting service, realize the heat upgrading.And implementation procedure of the present invention is stable, reliable, and the scope of application is extensive.Realization of the present invention can also be satisfied the modification of a large number of services block code, has improved the reliability and stability of router, guarantees the normal operation of carrier class business.
Description of drawings
Fig. 1 is the method flow diagram of the hot upgrade of network processor of the embodiment of the invention;
Fig. 2 is the device schematic diagram of the hot upgrade of network processor of the embodiment of the invention;
Fig. 3 is the concrete structure schematic diagram that the unit is set of the embodiment of the invention.
Embodiment
Embodiments of the invention are by being provided with the engine that needs to upgrade in the network processing unit (NP), thereby have proposed the method with a kind of hot upgrade of network processor, make NP under the situation of non-interrupting service, realize the heat upgrading.
Embodiments of the invention are set to not have the message treatment state by the engine that needs among the NP to upgrade; And be under the no message treatment state at described engine, use the business module instruction after upgrading to upgrade business module instruction old in the described engine, and after finishing upgrading, recover the NP normal running.
More specifically say, the embodiment of the invention can be passed through technological means, make the engine that needs among the NP to upgrade can not receive message again, and in order to guarantee that the Service Processing Module in the described engine sends all residue messages, make the engine that needs among the NP to upgrade not receive message by technological means after, postpone a period of time again, so that the engine that needs among the NP to upgrade is in no message treatment state fully, then, use the business module instruction of upgrading to upgrade the instruction space of business module in the described engine, and after finishing the renewal upgrading, remove the no message treatment state of engine in the network processing unit, recover the network processing unit normal running.
For the ease of understanding to the embodiment of the invention, below the method for the invention is divided into three phases, and in conjunction with the method flow diagram (as shown in Figure 1) of the hot upgrade of network processor of the embodiment of the invention, the specific implementation process of the embodiment of the invention is described in detail, specifically comprise:
1, is set the stage
At present, the thought for the NP upgrading is: use the NP resource as much as possible less, promptly allow NP be under the simplest state; Which instruction what will carry out when determining upgrading as far as possible is; In the time of upgrading, also must consider the not same sex and the popularity of operation flow, to enlarge its scope of application.
And NP is in the simplest state is exactly that engine is when need handling without any message, because this time, engine can be in the polling status of message or the wait state that is activated, use the NP resource minimum in this state, the state of relevant NP also is the clearest and the most definite.
As long as so manage to allow the engine that needs to upgrade among the NP be under the state that to handle without any message, allow general central processing unit (CPU) directly use business module instruction after the upgrading then, the service order space refreshed just passable.
Based on described NP upgrading thought, the present invention adopts technological means, make the engine that needs among the NP to upgrade no longer receive message, described technological means can adopt the up link level back-pressure of carrying out to NP, but be not limited to this a kind of method, can also use other technological means, such as by resetting port, make described port no longer receive message, also can reach same effect.So just can guarantee that described engine can not receive message again.
Described to the up operation of carrying out the link level back-pressure of NP, can be by universal cpu control in the router.
Though pass through technological means, make described engine can not receive message again, but may also have in the Service Processing Module in the described engine and be in the message of receiving before not receiving message status at described engine and do not send, for the residue message that will may also have in the Service Processing Module in the described engine sends fully, so, make the engine that needs among the NP to upgrade not receive message by technological means after, can postpone a period of time again, so that described engine sends described remaining message fully, make the engine that needs among the NP to upgrade be in no message treatment state fully.Described time of delay, visual different upgrade cases were carried out difference setting, such as 1ms.
Comprise also in this stage that if the engine that needs to upgrade in NP is in before the no message treatment state, universal cpu sends to NP with message in the router, then universal cpu stops to send described message to NP.
2, update stage
After the engine that needs to upgrade in NP is in no message treatment state, use the business module instruction of upgrading to upgrade the instruction space of business module in the described engine.
3, the recovery stage
After described update stage is finished, cancel of the influence of the stage of setting to described engine, remove the no message treatment state of the engine after the upgrading among the NP, recover the network processing unit normal running.
This stage also comprises, sends message if suspend universal cpu in the stage that is provided with to NP, then recovers universal cpu in this stage and sends message to NP.
The realization of the embodiment of the method for the invention has following advantage:
1, this method is irrelevant with concrete NP, is suitable for multiple NP;
2, irrelevant with concrete operation flow, use the data communication product of NP can adopt the method upgrading, use the wireless product of NP also can adopt the method upgrading;
3, do not need the microcode machine code is understood, do not need very familiar yet the resources such as related register of whole NP;
4, do not need to prevent the covering of Added Business to NP inside useful resources;
5, can satisfy the modification of a large number of services block code;
6, reliability, the serviceability height;
7, can not waste an instruction,, not have yet because patch installing needs the extra redirect that increases because there is not the patch area notion;
8, can realize newly-increased microcode new features upgrading.
The present invention also provides a kind of device of hot upgrade of network processor, and described device schematic diagram as shown in Figure 2.Described device specifically comprises:
(1) unit is set, the engine that being used for network processing unit needs to upgrade is set to not have the message treatment state.
(2) updating block is used for the unit being set after accomplishing the setting up described, uses the business module instruction after upgrading to upgrade business module instruction old in the described engine, finishes the upgrading of network processing unit.
(3) recovery unit is used for after described updating block is finished renewal, removes the no message treatment state of engine in the network processing unit, recovers the network processing unit normal running.
Wherein, the described concrete structure schematic diagram that the unit is set as shown in Figure 3, the described unit that is provided with specifically can comprise:
The setting state module, the engine that being used for network processing unit needs to upgrade is set to not receive message status;
The time delay module is used in described setting state module after accomplishing the setting up, postpones a period of time, guarantees that the engine that needs in the network processing unit to upgrade is no message treatment state.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (5)

1, a kind of method of hot upgrade of network processor is characterized in that, comprising:
The engine that needs in the network processing unit to upgrade is set to not receive message status, and described end is set after, postpone a period of time, make described engine be in no message treatment state;
Use the business module instruction after upgrading to upgrade business module instruction old in the described engine;
Remove the no message treatment state of engine described in the described network processing unit, recover described network processing unit normal running.
2, method according to claim 1, it is characterized in that the method that the engine that needs in the described network processing unit to upgrade is set to not receive message status comprises: by general central processing unit in the network processing unit uplink of network processing unit is carried out the link level back-pressure.
3, method according to claim 1, it is characterized in that, also comprise in the described method: if the engine that general central processing unit needs to upgrade in network processing unit has message to send to the webserver before being set to not have the message treatment state, then general central processing unit stops to send described message to network processing unit.
4, a kind of device of hot upgrade of network processor is characterized in that, comprising:
The unit is set, and the engine that being used for network processing unit needs to upgrade is set to not receive message status, and described end is set after, postpone a period of time, make described engine be in no message treatment state;
Updating block is used for describedly the unit being set after accomplishing the setting up, uses the business module instruction after the upgrading to upgrade business module instruction old in the described engine, finishes the upgrading of network processing unit;
Recovery unit is used for after described updating block is finished renewal, removes the no message treatment state of engine described in the described network processing unit, recovers described network processing unit normal running.
5, device according to claim 4 is characterized in that, the described unit that is provided with specifically comprises:
The setting state module, the engine that being used for network processing unit needs to upgrade is set to not receive message status;
The time delay module is used in described setting state module after accomplishing the setting up, postpones a period of time, guarantees that the engine that needs in the network processing unit to upgrade is no message treatment state.
CNB2006101504167A 2006-10-25 2006-10-25 A kind of method of hot upgrade of network processor and device Active CN100542103C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006101504167A CN100542103C (en) 2006-10-25 2006-10-25 A kind of method of hot upgrade of network processor and device
PCT/CN2007/070925 WO2008052463A1 (en) 2006-10-25 2007-10-18 Method and apparatus for hot upgrading network processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101504167A CN100542103C (en) 2006-10-25 2006-10-25 A kind of method of hot upgrade of network processor and device

Publications (2)

Publication Number Publication Date
CN1968153A CN1968153A (en) 2007-05-23
CN100542103C true CN100542103C (en) 2009-09-16

Family

ID=38076716

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101504167A Active CN100542103C (en) 2006-10-25 2006-10-25 A kind of method of hot upgrade of network processor and device

Country Status (2)

Country Link
CN (1) CN100542103C (en)
WO (1) WO2008052463A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100542103C (en) * 2006-10-25 2009-09-16 华为技术有限公司 A kind of method of hot upgrade of network processor and device
CN101662390B (en) * 2009-09-24 2012-10-10 中兴通讯股份有限公司 Upgrade protecting method and device thereof
CN102325053B (en) * 2011-09-22 2019-04-23 中兴通讯股份有限公司 The control method and device of physical signal during router network access
CN102750190B (en) * 2012-06-21 2016-02-24 腾讯科技(深圳)有限公司 A kind of method that terminal leak is processed and device
CN107547222A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 Upgrade method and device of the single-stage router to cluster routers
CN112199100A (en) * 2019-07-08 2021-01-08 中兴通讯股份有限公司 Microcode upgrading method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304929B1 (en) * 1997-05-13 2001-10-16 Micron Electronics, Inc. Method for hot swapping a programmable adapter by using a programmable processor to selectively disabling and enabling power thereto upon receiving respective control signals
US6473433B1 (en) * 2000-06-30 2002-10-29 Marconi Communications, Inc. Queue resynch: synchronous real-time upgrade of a distributed switching system
CN1283077C (en) * 2002-11-11 2006-11-01 华为技术有限公司 Method for raising retransmission capability of network processor for servicing multiple data parts
CN100358280C (en) * 2003-06-18 2007-12-26 联想(北京)有限公司 A network security appliance and realizing method thereof
CN1242599C (en) * 2003-08-29 2006-02-15 港湾网络有限公司 File-packaged down-load processing method
CN100542103C (en) * 2006-10-25 2009-09-16 华为技术有限公司 A kind of method of hot upgrade of network processor and device

Also Published As

Publication number Publication date
CN1968153A (en) 2007-05-23
WO2008052463A1 (en) 2008-05-08

Similar Documents

Publication Publication Date Title
CN100542103C (en) A kind of method of hot upgrade of network processor and device
US10931574B2 (en) Universal customer premise equipment
CN110535813B (en) Method and device for processing coexistence of kernel mode protocol stack and user mode protocol stack
US7788411B2 (en) Method and system for automatically reflecting hardware resource allocation modifications
Bollapragada et al. Inside cisco ios software architecture
EP1499991A1 (en) A network system having a virtual-service-module
JPH06303286A (en) Common data link interface
CN110149231B (en) Method, device, storage medium and equipment for updating virtual switch
CN110311820A (en) A kind of micro services cluster upgrade method of continual service
JP2006253899A (en) Packet communication apparatus and method for enhancing function thereof
WO2013186825A1 (en) Computer system, communication control server, communication control method, and program
EP2722766A1 (en) Communication system, controller, switch, storage management device, and communication method
US20120140640A1 (en) Apparatus and method for dynamically processing packets having various characteristics
US20040223504A1 (en) Apparatus and method for workflow-based routing in a distributed architecture router
CN101052031B (en) Data interaction method for Apple computer and radio communication terminal
CN106452951A (en) Information processing method, device and system
CN110798412A (en) Multicast service processing method, device, cloud platform, equipment and readable storage medium
Marsico et al. An effective swapping mechanism to overcome the memory limitation of SDN devices
CN110086676B (en) Configuration method of distributed router and related equipment
JP2003158544A (en) Method and apparatus for programmable network router and switch
JP5229109B2 (en) Packet relay processor
CN111586040B (en) High-performance network data receiving method and system
JP4595591B2 (en) Communication quality control method and communication quality control system
JP5298055B2 (en) Device control apparatus, program, and method for controlling control target device arranged in resource
JP2010146246A (en) Framework computer program for multi-agent system, network system and inter-agent communication method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170814

Address after: 519031, Guangdong, Zhuhai province Hengqin financial industry service base building No. 5 2-I

Patentee after: HENGQIN INTERNATIONAL INTELLECTUAL PROPERTY EXCHANGE CO.,LTD.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201215

Address after: 264006 4th floor, building 2, energy saving science and Technology Park, Gaoxiong Road, Yantai Economic and Technological Development Zone, Shandong Province

Patentee after: Yantai HUAFA qixianqin Intellectual Property Operation Co.,Ltd.

Address before: 519031 Building 2-I, No. 5, Hengqin Financial Industry Service Base, Zhuhai City, Guangdong Province

Patentee before: HENGQIN INTERNATIONAL INTELLECTUAL PROPERTY EXCHANGE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220321

Address after: 519031 Building No. 12-3, Hengqin Financial Industry Development Base, Zhuhai City, Guangdong Province (Centralized Office District)

Patentee after: HENGQIN INTERNATIONAL INTELLECTUAL PROPERTY EXCHANGE CO.,LTD.

Address before: 264006 4th floor, building 2, energy saving science and Technology Park, Gaoxiong Road, Yantai Economic and Technological Development Zone, Shandong Province

Patentee before: Yantai HUAFA qixianqin Intellectual Property Operation Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20070523

Assignee: HUIZHOU AGPLUS ENVIRONMENTAL PROTECTION TECHNOLOGY Co.,Ltd.

Assignor: HENGQIN INTERNATIONAL INTELLECTUAL PROPERTY EXCHANGE CO.,LTD.

Contract record no.: X2023980036023

Denomination of invention: A method and device for hot upgrading network processors

Granted publication date: 20090916

License type: Common License

Record date: 20230530