WO2008052463A1 - Method and apparatus for hot upgrading network processor - Google Patents

Method and apparatus for hot upgrading network processor Download PDF

Info

Publication number
WO2008052463A1
WO2008052463A1 PCT/CN2007/070925 CN2007070925W WO2008052463A1 WO 2008052463 A1 WO2008052463 A1 WO 2008052463A1 CN 2007070925 W CN2007070925 W CN 2007070925W WO 2008052463 A1 WO2008052463 A1 WO 2008052463A1
Authority
WO
WIPO (PCT)
Prior art keywords
network processor
upgraded
engine
needs
setting
Prior art date
Application number
PCT/CN2007/070925
Other languages
French (fr)
Chinese (zh)
Inventor
Jianyi Zhu
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.
Publication of WO2008052463A1 publication Critical patent/WO2008052463A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for thermally upgrading a network processor.
  • GSR gigabit Routers
  • TSRs Mega Terabit Routers
  • NP Netwo rk Processor
  • the network processor is a programmable device that is used for various tasks in the communication field, such as packet processing, protocol analysis, route lookup, voice/data aggregation, firewall, QoS, and the like.
  • NP With the continuous introduction of new technologies and new requirements from users for NP functions, NP needs to be continuously upgraded, that is, new instructions are updated with new running instructions to meet user requirements and implement new technologies. . Then, the NP in the router running the service on the backbone network, how to implement the hot upgrade of these NPs without interrupting the service has become the focus of current research.
  • a method for hot-upgrading an NP in a router is: using a modified instruction jump technique to perform a hot upgrade of an NP in a router on a backbone network that is running a service.
  • the basic principle is to put the newly added instruction at the end of the free area of the microcode instruction space, and replace the instruction to be modified with the instruction address that jumps to the newly added microcode.
  • a method of hot upgrading a network processor comprising:
  • the updated service module instruction is used to update the old service module instruction in the engine that needs to be upgraded, and the network processor is upgraded.
  • a device for thermally upgrading a network processor comprising:
  • a setting unit configured to set an engine that needs to be upgraded in the network processor to a no-message processing state
  • an update unit configured to: after the setting unit completes the setting, use the upgraded service module instruction to update the old service module instruction in the engine that needs to be upgraded, and complete the network processor upgrade.
  • the present invention provides a reliable, simple, and practical method and apparatus for network processor hot upgrade, so that the network processor can be implemented without interrupting services. Hot upgrade.
  • the implementation process of the present invention is stable, reliable, and has a wide range of applications.
  • the implementation of the invention can also meet the modification of a large number of service module codes, improve the reliability and stability of the router, and ensure the normal operation of the carrier-class service.
  • FIG. 1 is a flow chart of a method for thermally upgrading a network processor according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an apparatus for thermally upgrading a network processor according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a setting unit according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for hot-upgrading a network processor by setting an engine that needs to be upgraded in a network processor, so that the NP can perform hot upgrade without interrupting the service.
  • An embodiment of the present invention sets an engine that needs to be upgraded in an NP to a no-message processing state;
  • the engine that needs to be upgraded is in a state of no message processing, and the upgraded service module instruction is used to update the old service module instruction in the engine that needs to be upgraded, and after the upgrade is completed, the normal operation of the NP is resumed.
  • the embodiment of the present invention can ensure that the engine that needs to be upgraded in the NP does not receive the packet again, and the service processing module in the engine that needs to be upgraded sends all the remaining reports.
  • the technology is delayed by a period of time, so that the engine that needs to be upgraded in the NP sends the remaining packets before the packet is completely processed.
  • the upgraded service module instruction is used to update the instruction space of the service module in the engine that needs to be upgraded, and after the update and upgrade is completed, the non-message processing state of the engine that needs to be upgraded in the network processor is released, and the network processor is restored. operating.
  • NP upgrade Use NP resources as little as possible, that is, let NP be in the simplest state; Determine as much as possible which instructions are to be executed during the upgrade; The diversity and breadth of business processes must be considered to expand their scope of application.
  • the engine does not need to process any messages, because this time, the engine will be in the polling state of the message or wait for the activation state. In this state, The use of NP resources is minimal, and the state of the relevant NP is also the clearest.
  • the present invention uses the technical means to enable the engine that needs to be upgraded in the NP to no longer receive the message, and the technical means can use the link level back pressure on the NP uplink, the pair
  • the NP uplink link-level backpressure operation can be controlled by a general-purpose CPU in the router.
  • it is not limited to this method, and other technical means may be used, for example, by resetting the port so that the port no longer receives the message, and the same effect can be achieved. This will ensure that the engine that needs to be upgraded will not receive it again. Message.
  • the device may be delayed for a period of time to facilitate the need.
  • the upgraded engine sends the remaining packets completely, and then the engine that needs to be upgraded in the NP is completely in the state of no message processing.
  • the delay period can be set differently according to different upgrade situations, such as lms.
  • a detection mechanism can also be used to ensure that the engine that needs to be upgraded completely sends the remaining packets.
  • the upgraded service module instruction is used to update the instruction space of the service module in the engine that needs to be upgraded.
  • This phase also includes, if the general CPU is suspended from sending packets to the NP during the setup phase, the general CPU is resumed to send packets to the NP at this stage.
  • NP's wireless products can also be upgraded using this method
  • the present invention also provides an apparatus for thermally upgrading a network processor, and the apparatus is schematically shown in FIG. 2.
  • the device specifically includes:
  • the recovery unit is configured to: after the update unit completes the update, cancel the non-message processing state of the engine that needs to be upgraded in the network processor, and resume normal operation of the network processor.
  • the specific structure of the setting unit is as shown in FIG. 3, and the setting unit may specifically include:
  • a state setting module configured to set an engine that needs to be upgraded in the network processor to not receive a message state
  • a time delay module after the state setting module completes setting, After a delay, ensure that the engine that needs to be upgraded in the network processor is in no message processing state.
  • the delay period can be set differently depending on the upgrade situation, such as lms. In practical applications, a detection mechanism may also be used to ensure that the engine that needs to be upgraded completely transmits the remaining messages.

Abstract

A method and apparatus for hot upgrading a network processor, includes: setting an engine that needs to be upgraded in the network processor into non-report processing state; and after finishing the setting, refreshing an old service module command in the engine by using an upgraded service module command, thereby hot upgrading the network processor without interrupting the service.

Description

一种热升级网络处理器的方法及装置  Method and device for thermally upgrading network processor
[1] 技术领域  [1] Technical field
[2] 本发明涉及通信技术领域, 尤其涉及一种热升级网络处理器的方法及装置。  [2] The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for thermally upgrading a network processor.
[3] 背景技术  [3] Background Art
随着交互式网络 (Internet) 从科研向商业应用的转变, 网络用户迅猛增加, 各 种类型的应用共存在一个物理网络上, 网络节点的处理能力、 服务质量 (QoS) 的保障和网络带宽逐渐成为 Internet继续发展的主要障碍。 但是, 随着光传输技 术的发展, 传输带宽不再成为网络的瓶颈, 而网络交换节点的处理能力显得尤 为重要。  With the transformation of the interactive network (Internet) from scientific research to commercial applications, the number of network users has increased rapidly. Various types of applications coexist on one physical network. The processing power, quality of service (QoS) guarantee and network bandwidth of network nodes gradually Become the main obstacle to the continued development of the Internet. However, with the development of optical transmission technology, the transmission bandwidth no longer becomes the bottleneck of the network, and the processing capability of the network switching node is particularly important.
为了满足网络日新月异的变化, 千兆比特路由器 (GSR) 和百万兆比特路由器 (TSR) 应运而生, 这些高端路由器釆用大容量交换结构和硬件高速转发技术, 大大提高了报文转发速度。 作为这些高端路由器核心的网络处理器 (NP: Netwo rk Processor) 也得到了迅猛的发展和应用。  In order to meet the ever-changing changes in the network, Gigabit Routers (GSR) and Mega Terabit Routers (TSRs) have emerged. These high-end routers use large-capacity switching fabrics and hardware high-speed forwarding technology to greatly improve packet forwarding speed. The network processor (NP: Netwo rk Processor), which is the core of these high-end routers, has also been rapidly developed and applied.
[6] 所述网络处理器是一种可编程器件, 它应用于通信领域的各种任务, 比如数据 包处理、 协议分析、 路由査找、 声音 /数据的汇聚、 防火墙、 QoS等。  [6] The network processor is a programmable device that is used for various tasks in the communication field, such as packet processing, protocol analysis, route lookup, voice/data aggregation, firewall, QoS, and the like.
[7] 随着新技术的不断推出, 以及用户对 NP功能上不断提出的新要求, NP需要不 断的升级, 即用新的运行指令更新旧的指令, 来满足用户的要求以及实现新的 技术。 那么, 在骨干网上正在运行业务的路由器中的 NP, 如何在不中断业务的 情况下, 实现这些 NP的热升级成为目前研究的重点。  [7] With the continuous introduction of new technologies and new requirements from users for NP functions, NP needs to be continuously upgraded, that is, new instructions are updated with new running instructions to meet user requirements and implement new technologies. . Then, the NP in the router running the service on the backbone network, how to implement the hot upgrade of these NPs without interrupting the service has become the focus of current research.
[8] 在现有的技术中, 一种对路由器中的 NP进行热升级的方法为: 使用修改指令 跳转技术来对骨干网上正在运行业务的路由器中的 NP进行热升级, 这种方法的 基本原理是把新增加的指令放到微码指令空间的空闲区的尾部, 并把要修改的 指令替换成跳转到新增微码的指令地址。  [8] In the prior art, a method for hot-upgrading an NP in a router is: using a modified instruction jump technique to perform a hot upgrade of an NP in a router on a backbone network that is running a service. The basic principle is to put the newly added instruction at the end of the free area of the microcode instruction space, and replace the instruction to be modified with the instruction address that jumps to the newly added microcode.
[9] 在实现本发明的过程中, 发明人发现上述现有技术的方法的缺点为: 当釆用该 方法进行升级吋, 需要对微码非常熟悉, 也需要对整个 NP的相关寄存器等资源 很熟悉, 并且需要防止升级吋对 NP内部资源的覆盖。 而且, 这种方法只适合修 改小量的指令代码。 如果釆用这种方法修改一个软件漏洞 (bug) 吋, 需要在原 来的代码不连续的地方同吋都需要跳转, 这就有可能导致更新不同步, 造成微 码处理有问题, 同吋, 这种方法还会造成指令空间的浪费。 [9] In the process of implementing the present invention, the inventors have found that the above-mentioned prior art methods have the disadvantages of: When upgrading with this method, it is necessary to be very familiar with microcode, and also requires resources such as related registers of the entire NP. Very familiar, and need to prevent the upgrade from covering the internal resources of the NP. Moreover, this method is only suitable for repairing Change the amount of instruction code. If you use this method to modify a software bug, you need to jump in the same place where the original code is not continuous. This may cause the update to be out of sync, causing problems in microcode processing. This method also causes a waste of instruction space.
[10] 发明内容  [10] Summary of the invention
[11] 本发明的目的是提供一种热升级网络处理器的方法及装置, 从而使网络处理器 在不中断业务的情况下进行热升级。  [11] It is an object of the present invention to provide a method and apparatus for thermally upgrading a network processor such that the network processor performs a hot upgrade without interrupting the service.
[12] 本发明的目的是通过以下技术方案实现的: [12] The object of the present invention is achieved by the following technical solutions:
[13] 一种热升级网络处理器的方法, 包括: [13] A method of hot upgrading a network processor, comprising:
[14] 将网络处理器中需要升级的引擎设置为无报文处理状态; [14] Set the engine that needs to be upgraded in the network processor to no message processing state;
[15] 使用升级后的业务模块指令更新所述需要升级的引擎中旧的业务模块指令, 完 成所述网络处理器的升级。  [15] The updated service module instruction is used to update the old service module instruction in the engine that needs to be upgraded, and the network processor is upgraded.
[16] 一种热升级网络处理器的装置, 包括: [16] A device for thermally upgrading a network processor, comprising:
[17] 设置单元, 用于将网络处理器中需要升级的引擎设置为无报文处理状态; [17] a setting unit, configured to set an engine that needs to be upgraded in the network processor to a no-message processing state;
[18] 更新单元, 用于所述设置单元完成设置后, 使用升级后的业务模块指令更新所 述需要升级的引擎中旧的业务模块指令, 完成网络处理器的升级。 [18] an update unit, configured to: after the setting unit completes the setting, use the upgraded service module instruction to update the old service module instruction in the engine that needs to be upgraded, and complete the network processor upgrade.
[19] 由上述本发明提供的技术方案可以看出, 本发明提供了一种可靠、 简单、 实用 的网络处理器热升级的方法及装置, 从而使网络处理器在不中断业务的情况下 实现热升级。 而且, 本发明的实现过程稳定、 可靠, 适用范围广泛。 本发明的 实现还能够满足大量业务模块代码的修改, 提高了路由器的可靠性和稳定性, 保证电信级业务的正常运行。  [19] It can be seen from the technical solutions provided by the present invention that the present invention provides a reliable, simple, and practical method and apparatus for network processor hot upgrade, so that the network processor can be implemented without interrupting services. Hot upgrade. Moreover, the implementation process of the present invention is stable, reliable, and has a wide range of applications. The implementation of the invention can also meet the modification of a large number of service module codes, improve the reliability and stability of the router, and ensure the normal operation of the carrier-class service.
[20] 附图说明  [20] BRIEF DESCRIPTION OF THE DRAWINGS
[21] 图 1为本发明实施例的热升级网络处理器的方法流程图;  1 is a flow chart of a method for thermally upgrading a network processor according to an embodiment of the present invention;
[22] 图 2为本发明实施例的热升级网络处理器的装置示意图; 2 is a schematic diagram of an apparatus for thermally upgrading a network processor according to an embodiment of the present invention;
[23] 图 3为本发明实施例的设置单元的具体结构示意图。 FIG. 3 is a schematic structural diagram of a setting unit according to an embodiment of the present invention.
[24] 具体实施方式 [24] Specific implementation
[25] 本发明的实施例通过对网络处理器中需要升级的引擎进行设置, 提出了一种热 升级网络处理器的方法, 使 NP在不中断业务的情况下, 实现热升级。  [25] The embodiment of the present invention provides a method for hot-upgrading a network processor by setting an engine that needs to be upgraded in a network processor, so that the NP can perform hot upgrade without interrupting the service.
[26] 本发明的实施例通过将 NP中需要升级的引擎设置为无报文处理状态; 并且在 所述需要升级的弓 I擎处于无报文处理状态下, 使用升级后的业务模块指令更新 所述需要升级的引擎中旧的业务模块指令, 并在完成升级后, 恢复 NP正常操作 [26] An embodiment of the present invention sets an engine that needs to be upgraded in an NP to a no-message processing state; The engine that needs to be upgraded is in a state of no message processing, and the upgraded service module instruction is used to update the old service module instruction in the engine that needs to be upgraded, and after the upgrade is completed, the normal operation of the NP is resumed.
[27] 具体一点讲, 本发明实施例可以通过技术手段, 使 NP中需要升级的引擎不会 再接收到报文, 并且为了保证所述需要升级的引擎中的业务处理模块发送完所 有剩余报文, 在通过技术手段使 NP中需要升级的引擎不接收报文后, 再延迟一 段吋间, 以便 NP中需要升级的引擎将之前的剩余报文发送出去后, 完全处于无 报文处理状态, 然后, 使用升级的业务模块指令更新所述需要升级的引擎中业 务模块的指令空间, 并在完成更新升级后, 解除网络处理器中需要升级的引擎 的无报文处理状态, 恢复网络处理器正常操作。 Specifically, the embodiment of the present invention can ensure that the engine that needs to be upgraded in the NP does not receive the packet again, and the service processing module in the engine that needs to be upgraded sends all the remaining reports. After the engine that needs to be upgraded in the NP does not receive the packet, the technology is delayed by a period of time, so that the engine that needs to be upgraded in the NP sends the remaining packets before the packet is completely processed. Then, the upgraded service module instruction is used to update the instruction space of the service module in the engine that needs to be upgraded, and after the update and upgrade is completed, the non-message processing state of the engine that needs to be upgraded in the network processor is released, and the network processor is restored. operating.
[28] 为了便于对本发明实施例的理解, 下面将本发明所述方法分成三个阶段, 并结 合本发明实施例的热升级网络处理器的方法流程图 (如图 1所示) , 对本发明实 施例的具体实现过程进行详细的说明, 具体包括:  [28] In order to facilitate the understanding of the embodiments of the present invention, the method of the present invention is divided into three stages, and combined with the method flowchart of the hot upgrade network processor of the embodiment of the present invention (as shown in FIG. 1), the present invention The specific implementation process of the embodiment is described in detail, and specifically includes:
[29] 1、 设置阶段  [29] 1, the setup phase
[30] 目前, 对于 NP升级的思想是: 尽可能的少使用 NP资源, 即让 NP处于最简单的 状态下; 尽可能确定升级的吋候要执行的是哪些指令; 升级的吋候, 还必须要 考虑业务流程的不同性及广泛性,以扩大其适用范围。  [30] At present, the idea of NP upgrade is: Use NP resources as little as possible, that is, let NP be in the simplest state; Determine as much as possible which instructions are to be executed during the upgrade; The diversity and breadth of business processes must be considered to expand their scope of application.
[31] 而 NP处于最简单的状态就是引擎在没有任何报文需要处理的吋候, 因为这个 吋候弓 I擎会处于对报文的轮询状态或者等待被激活状态, 在这种状态下使用 NP 资源最少, 相关 NP的状态也是最明确。 [31] While the NP is in the simplest state, the engine does not need to process any messages, because this time, the engine will be in the polling state of the message or wait for the activation state. In this state, The use of NP resources is minimal, and the state of the relevant NP is also the clearest.
[32] 所以只要设法让 NP中需要升级的弓 I擎处于没有任何报文需要处理的状态下, 然后让通用中央处理器 (CPU) 直接使用升级后的业务模块指令, 把业务指令空 间刷新就可以了。 [32] So just try to let the NP need to upgrade the engine in the state that there is no message to be processed, and then let the general-purpose central processing unit (CPU) directly use the upgraded business module instructions to refresh the business instruction space. Yes.
[33] 基于所述 NP升级思想, 本发明釆用技术手段, 使 NP中需要升级的引擎不再接 收报文, 所述技术手段可以釆用对 NP上行进行链路级反压, 所述对 NP上行进行 链路级反压的操作, 可以由路由器内的通用 CPU控制完成。 但并不限于这一种方 法, 还可以使用其它技术手段, 比如通过重新设置端口, 使所述端口不再接收 报文, 也能达到同样的效果。 这样就可以保证所述需要升级的引擎不会再收到 报文。 [33] Based on the NP upgrade idea, the present invention uses the technical means to enable the engine that needs to be upgraded in the NP to no longer receive the message, and the technical means can use the link level back pressure on the NP uplink, the pair The NP uplink link-level backpressure operation can be controlled by a general-purpose CPU in the router. However, it is not limited to this method, and other technical means may be used, for example, by resetting the port so that the port no longer receives the message, and the same effect can be achieved. This will ensure that the engine that needs to be upgraded will not receive it again. Message.
[34] 虽然通过上述技术手段, 使所述需要升级的引擎不会再收到报文, 但所述需要 升级的引擎中的业务处理模块内可能还有之前收到的剩余报文没有发送出去, 为了使所述需要升级的引擎将所述剩余报文完全发送出去, 所以, 在通过技术 手段使 NP中需要升级的引擎不接收报文后, 可以再延迟一段吋间, 以便于所述 需要升级的引擎将所述剩余的报文完全发送出去, 然后, 使 NP中需要升级的引 擎完全处于无报文处理状态。 所述的延迟吋间可视不同升级情况进行不同设定 , 比如 lms。 在实际应用中, 也可以通过一个侦测机制来确保所述需要升级的引 擎将所述剩余的报文完全发送出去。  [34] Although the engine that needs to be upgraded does not receive the message again, the service processing module in the engine that needs to be upgraded may still have the remaining received message not sent out. In order to enable the engine that needs to be upgraded to completely send out the remaining packets, after the engine that needs to be upgraded in the NP does not receive the message by technical means, the device may be delayed for a period of time to facilitate the need. The upgraded engine sends the remaining packets completely, and then the engine that needs to be upgraded in the NP is completely in the state of no message processing. The delay period can be set differently according to different upgrade situations, such as lms. In practical applications, a detection mechanism can also be used to ensure that the engine that needs to be upgraded completely sends the remaining packets.
[35] 此阶段中还包括, 若在 NP中需要升级的引擎处于无报文处理状态之前, 路由 器内通用 CPU正在将报文发送给 NP, 则使通用 CPU停止发送所述报文给 NP。  [35] In this phase, if the engine that needs to be upgraded in the NP is in the state of no message processing, the general-purpose CPU in the router is sending the message to the NP, so that the general-purpose CPU stops sending the message to the NP.
[36] 2、 更新阶段  [36] 2. Update phase
[37] 在 NP中需要升级的引擎处于无报文处理状态后, 使用升级的业务模块指令更 新所述需要升级的引擎中业务模块的指令空间。  [37] After the engine that needs to be upgraded in the NP is in the no-message processing state, the upgraded service module instruction is used to update the instruction space of the service module in the engine that needs to be upgraded.
[38] 3、 恢复阶段 [38] 3. Recovery phase
[39] 在所述更新阶段完成后, 撤销设置阶段对所述需要升级的引擎的影响, 解除 N p中升级后的弓 I擎的无报文处理状态, 恢复网络处理器正常操作。  [39] After the update phase is completed, the impact of the setup phase on the engine that needs to be upgraded is cancelled, the unmessed processing state of the upgraded engine in the Np is released, and the normal operation of the network processor is resumed.
[40] 此阶段还包括, 若在设置阶段暂停通用 CPU向 NP发送报文, 则在此阶段恢复通 用 CPU向 NP发送报文。  [40] This phase also includes, if the general CPU is suspended from sending packets to the NP during the setup phase, the general CPU is resumed to send packets to the NP at this stage.
[41] 本发明所述方法的实施例的实现, 具有下列优点: [41] Implementation of an embodiment of the method of the present invention has the following advantages:
[42] 1、 该方法与具体 NP无关, 适用多种 NP; [42] 1. This method has nothing to do with specific NP, and applies a variety of NPs;
[43] 2、 与具体业务流程无关, 使用 NP的数据通讯产品可以釆用此方法升级, 使用 [43] 2. Regardless of the specific business process, the data communication products using NP can use this method to upgrade and use
NP的无线产品也可以釆用此方法升级; NP's wireless products can also be upgraded using this method;
[44] 3、 不需要对微码机器码了解, 也不需要对整个 NP的相关寄存器等资源很熟悉 [44] 3, do not need to understand the microcode machine code, nor need to be familiar with the resources of the entire NP related registers
[45] 4、 不需要防止新增业务对 NP内部有用资源的覆盖; [45] 4. There is no need to prevent new services from covering the internal resources of the NP;
[46] 5、 能满足大量业务模块代码的修改; [46] 5, can meet the modification of a large number of business module codes;
[47] 6、 可靠性, 可服务性高; [48] 7、 不会浪费一条指令, 因为没有补丁区概念, 也没有因为打补丁需要额外增 加的跳转; [47] 6, reliability, high serviceability; [48] 7, will not waste an instruction, because there is no patch area concept, there is no additional jump because of patching;
[49] 8、 能实现新增微码新特性升级。  [49] 8, can achieve new microcode new features upgrade.
[50] 本发明还提供了一种热升级网络处理器的装置, 所述装置示意图如图 2所示。  [50] The present invention also provides an apparatus for thermally upgrading a network processor, and the apparatus is schematically shown in FIG. 2.
所述装置具体包括:  The device specifically includes:
[51] (1) 设置单元, 用于将网络处理器中需要升级的引擎设置为无报文处理状态  [51] (1) Setting unit, used to set the engine that needs to be upgraded in the network processor to no message processing status
[52] (2) 更新单元, 用于在所述设置单元完成设置后, 使用升级后的业务模块指 令更新所述需要升级的引擎中旧的业务模块指令, 完成网络处理器的升级。 [52] (2) an update unit, configured to: after the setting unit completes the setting, use the upgraded service module instruction to update the old service module instruction in the engine that needs to be upgraded, and complete the network processor upgrade.
[53] (3) 恢复单元, 用于在所述更新单元完成更新后, 解除网络处理器中所述需 要升级的引擎的无报文处理状态, 恢复网络处理器正常操作。  [53] (3) The recovery unit is configured to: after the update unit completes the update, cancel the non-message processing state of the engine that needs to be upgraded in the network processor, and resume normal operation of the network processor.
[54] 其中, 所述设置单元的具体结构示意图如图 3所示, 所述设置单元具体可以包 括:  [54] The specific structure of the setting unit is as shown in FIG. 3, and the setting unit may specifically include:
[55] 状态设定模块, 用于将网络处理器中需要升级的引擎设定为不接收报文状态; [56] 吋间延迟模块, 用于在所述状态设定模块完成设定后, 延迟一段吋间, 确保网 络处理器中需要升级的引擎为无报文处理状态。 所述的延迟吋间可视不同升级 情况进行不同设定, 比如 lms。 在实际应用中, 也可以通过一个侦测机制来确保 所述需要升级的弓 I擎将所述剩余的报文完全发送出去。  [55] a state setting module, configured to set an engine that needs to be upgraded in the network processor to not receive a message state; [56] a time delay module, after the state setting module completes setting, After a delay, ensure that the engine that needs to be upgraded in the network processor is in no message processing state. The delay period can be set differently depending on the upgrade situation, such as lms. In practical applications, a detection mechanism may also be used to ensure that the engine that needs to be upgraded completely transmits the remaining messages.
[57] 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。 The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of within the technical scope disclosed by the present invention. Changes or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[1] 1、 一种热升级网络处理器的方法, 其特征在于, 包括:  [1] 1. A method for thermally upgrading a network processor, comprising:
将网络处理器中需要升级的引擎设置为无报文处理状态;  Set the engine that needs to be upgraded in the network processor to no message processing state;
使用升级后的业务模块指令更新所述需要升级的引擎中旧的业务模块指令 Updating the old business module instructions in the engine that needs to be upgraded by using the upgraded business module instruction
, 完成所述网络处理器的升级。 , completing the upgrade of the network processor.
[2] 2、 根据权利要求 1所述的方法, 其特征在于, 所述将网络处理器中需要升 级的引擎设置为无报文处理状态的过程包括: 将网络处理器中需要升级的 引擎设定为不接收报文状态。  [2] The method according to claim 1, wherein the process of setting an engine that needs to be upgraded in the network processor to a no-message processing state comprises: setting an engine that needs to be upgraded in the network processor It is determined not to receive the message status.
[3] 3、 根据权利要求 2所述的方法, 其特征在于, 所述将网络处理器中需要升 级的引擎设置为无报文处理状态的过程还包括:  [3] The method according to claim 2, wherein the process of setting an engine that needs to be upgraded in the network processor to a no-message processing state further includes:
在将网络处理器中需要升级的引擎设定为不接收报文状态后, 再延迟设定 的吋间段, 使所述需要升级的引擎将以前剩余的报文完全发送出去。  After the engine that needs to be upgraded in the network processor is set to not receive the message state, the set interval is delayed, so that the engine that needs to be upgraded completely sends out the remaining messages.
[4] 4、 根据权利要求 2所述的方法, 其特征在于, 所述将网络处理器中需要升 级的引擎设定为不接收报文状态的方法包括: 由网络处理器中通用中央处 理器对网络处理器的上行线路进行链路级反压。 [4] The method according to claim 2, wherein the method for setting an engine that needs to be upgraded in the network processor to not receive the message state comprises: using a general-purpose central processor in the network processor Perform link-level backpressure on the uplink of the network processor.
[5] 5、 根据权利要求 2所述的方法, 其特征在于, 所述将网络处理器中需要升 级的引擎设定为不接收报文状态的方法包括: 重新设置所述网络处理器的 端口, 使所述网络处理器的端口不再接收报文。 [5] The method according to claim 2, wherein the method for setting an engine that needs to be upgraded in the network processor to not receive the message state comprises: resetting a port of the network processor , causing the port of the network processor to no longer receive the message.
[6] 6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述的方法还包括[6] 6. The method according to any one of claims 1 to 5, characterized in that the method further comprises
: 在所述使用升级后的业务模块指令更新所述需要升级的引擎中旧的业务 模块指令后, 解除网络处理器中需要升级的引擎的无报文处理状态, 恢复 网络处理器正常操作。 After the upgraded service module instruction is used to update the old service module command in the engine that needs to be upgraded, the messageless processing state of the engine that needs to be upgraded in the network processor is released, and the network processor is resumed.
[7] 7、 根据权利要求 6所述的方法, 其特征在于, 所述的方法还包括: [7] 7. The method according to claim 6, wherein the method further comprises:
若通用中央处理器在将网络处理器中需要升级的引擎设置为无报文处理状 态之前有报文发送给网络服务器, 则通用中央处理器停止向网络处理器发 送所述报文;  If the general-purpose CPU sends a message to the network server before setting the engine to be upgraded in the network processor to the no-message processing state, the general-purpose CPU stops sending the message to the network processor;
在所述网络处理器恢复正常操作后, 所述通用中央处理器再将所述报文发 送给所述网络处理器。 After the network processor resumes normal operation, the universal central processor sends the message to the network processor.
[8] 8、 一种热升级网络处理器的装置, 其特征在于, 包括: [8] 8. A device for thermally upgrading a network processor, comprising:
设置单元, 用于将网络处理器中需要升级的引擎设置为无报文处理状态; 更新单元, 用于所述设置单元完成设置后, 使用升级后的业务模块指令更 新所述需要升级的引擎中旧的业务模块指令, 完成网络处理器的升级。  a setting unit, configured to set an engine that needs to be upgraded in the network processor to a no-message processing state; and an update unit, configured to: after the setting unit completes the setting, use the upgraded service module instruction to update the engine that needs to be upgraded The old business module instructions complete the upgrade of the network processor.
[9] 9、 根据权利要求 8所述的装置, 其特征在于, 所述的装置中还包括: 恢复单元, 用于在所述更新单元完成更新后, 解除网络处理器中需要升级 的引擎的无报文处理状态, 恢复网络处理器正常操作。 [9] 9. The device according to claim 8, wherein the device further comprises: a recovery unit, configured to: after the update unit completes the update, cancel the engine that needs to be upgraded in the network processor No packet processing status, restore the normal operation of the network processor.
[10] 10、 根据权利要求 8或 9所述的装置, 其特征在于, 所述的设置单元具体包 括: [10] 10. The device according to claim 8 or 9, wherein the setting unit specifically comprises:
状态设定模块, 用于将网络处理器中需要升级的引擎设定为不接收报文状 太. 吋间延迟模块, 用于在所述状态设定模块完成所述设定后, 延迟设定的吋 间段, 使所述需要升级的引擎将以前剩余的报文完全发送出去。  a state setting module, configured to set an engine that needs to be upgraded in the network processor to not receive a message shape. The inter-turn delay module is configured to delay setting after the state setting module completes the setting In the inter-segment, the engine that needs to be upgraded completely sends out the remaining messages.
PCT/CN2007/070925 2006-10-25 2007-10-18 Method and apparatus for hot upgrading network processor WO2008052463A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2008052463A1 true WO2008052463A1 (en) 2008-05-08

Family

ID=38076716

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070925 WO2008052463A1 (en) 2006-10-25 2007-10-18 Method and apparatus for hot upgrading network processor

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

Citations (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
CN1489357A (en) * 2003-08-29 2004-04-14 北京港湾网络有限公司 File-packaged down-load processing method
CN1499792A (en) * 2002-11-11 2004-05-26 华为技术有限公司 Method for raising retransmission capability of network processor for servicing multiple data parts
CN1567808A (en) * 2003-06-18 2005-01-19 联想(北京)有限公司 A network security appliance and realizing method thereof
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor

Patent Citations (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
CN1499792A (en) * 2002-11-11 2004-05-26 华为技术有限公司 Method for raising retransmission capability of network processor for servicing multiple data parts
CN1567808A (en) * 2003-06-18 2005-01-19 联想(北京)有限公司 A network security appliance and realizing method thereof
CN1489357A (en) * 2003-08-29 2004-04-14 北京港湾网络有限公司 File-packaged down-load processing method
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor

Also Published As

Publication number Publication date
CN100542103C (en) 2009-09-16
CN1968153A (en) 2007-05-23

Similar Documents

Publication Publication Date Title
CA2575843C (en) Graceful shutdown of ldp on specific interfaces between label switched routers
US9917815B2 (en) Border gateway protocol (BGP) communications over trusted network function virtualization (NFV) hardware
WO2009009977A1 (en) Master backup switch method for route device and backup system for route device
JP6388955B2 (en) Graceful restart processing method of OpenFlow switch and OpenFlow controller
WO2008052463A1 (en) Method and apparatus for hot upgrading network processor
JP2006135970A (en) SoftRouter DYNAMIC BINDING PROTOCOL
JP2006135971A (en) Softrouter
WO2009082923A1 (en) Link fault processing method and data forwarding device
WO2011110029A1 (en) Method and system for host route reachability in packet transport network access ring
CN101573940A (en) System and method for TCP high availability
US20140010231A1 (en) Method and Apparatus for the Fast Detection of Connectivity Loss Between Devices in a Network
WO2015035616A1 (en) Method and device for cross-network communications
CN107645394B (en) Switch configuration method in SDN network
JP6480452B2 (en) Packet processing method and apparatus
WO2013104279A1 (en) Method and device for setting cvlan in trill network
WO2015081735A1 (en) Traffic offloading method, apparatus, and system
US20150334019A1 (en) Routing control method and non-transitory computer-readable recording medium storing routing control program
JP7099677B2 (en) Routing protocol-based notification methods and equipment from intermediate system to intermediate system
WO2015006901A1 (en) Data stream processing method, device and system
WO2014000290A1 (en) Method, device and system for controlling data packets
JP2021524709A (en) Packet transmission methods, devices and devices, and storage media
WO2014180363A1 (en) Openflow signaling control method and device
WO2021018150A1 (en) Link detection method and apparatus
TWI733560B (en) Switch and switch network system thereof
EP3720078B1 (en) Anima network information processing method, device, and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07817116

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07817116

Country of ref document: EP

Kind code of ref document: A1