CN103856349A - Version upgrading method for multi-core router and multi-core router - Google Patents

Version upgrading method for multi-core router and multi-core router Download PDF

Info

Publication number
CN103856349A
CN103856349A CN201210524125.5A CN201210524125A CN103856349A CN 103856349 A CN103856349 A CN 103856349A CN 201210524125 A CN201210524125 A CN 201210524125A CN 103856349 A CN103856349 A CN 103856349A
Authority
CN
China
Prior art keywords
core
forwarding
master control
forwards
upgrade
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.)
Pending
Application number
CN201210524125.5A
Other languages
Chinese (zh)
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.)
Huawei Technologies 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 CN201210524125.5A priority Critical patent/CN103856349A/en
Publication of CN103856349A publication Critical patent/CN103856349A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a version upgrading method for a multi-core router and the multi-core router. The multi-core router comprises a main control core and a plurality of forwarding cores. The method comprises the steps that the first forwarding core of the forwarding cores receives an upgrading order sent by the main control core, wherein the upgrading order is used for indicating the first forwarding core as the new main control core; after receiving the upgrading order, the first forwarding core executes the main control program in an upgrading file; the first forwarding core serves as the new main control core. According to the technical scheme, the router does not need to be restarted when version upgrading is carried out, and the service interruption problem caused by restarting can be overcome.

Description

Edition upgrading processing method and the multi-core router of multi-core router
Technical field
The embodiment of the present invention relates to the communication technology, relates in particular to a kind of edition upgrading processing method and multi-core router of multi-core router.
Background technology
Router is the equipment that connects each local area network (LAN), wide area network in internet, can the message in network be forwarded and be processed, and can select optimal path to forward message.Along with the development of network technology, often need the software version of router constantly to upgrade, so that the software version that router can be up-to-date is moved, guarantee accuracy and reliability that router message forwards or processes, the software program of multi-core router mainly comprises the master control program of being carried out by master control core, and by the forward process program that forwards core execution.
At present, in the time that multi-core router carries out edition upgrading, first upgrade file is downloaded in the memory of router, then restart router, when being restarted, router can carry out this upgrade file, complete router edition upgrading processing, router can be forwarded and process message by this upgrade file.But router is in restarting process, the business of all these routers of process will be interrupted, and traffic affecting normal process causes customer service experience poor; For example, and for partial service user, the service-user of download file also can cause failed download because of service disconnection.
To sum up, existing multi-core router carries out, in edition upgrading processing procedure, need to restarting router, and in router restarting process, will cause Business Processing to be interrupted, traffic affecting normal process.
Summary of the invention
The embodiment of the present invention provides a kind of software upgrading processing method and multi-core router of multi-core router, can overcome in existing route device edition upgrading process and restart the problem of service interruption of bringing.
First aspect, the embodiment of the present invention provides a kind of edition upgrading processing method of multi-core router, and described multi-core router comprises master control core and multiple forwarding core, and the method comprises:
In described multiple forwarding core first forwards core and receives the upgrade command that described master control core sends, and it is new master control core that described upgrade command is used to indicate described the first forwarding consideration convey;
Described first forwards core receives after described upgrade command, carries out the master control program in upgrade file;
Forward core as new master control core using described first.
In conjunction with first aspect, in the first possibility implementation, described first forwards core receives after described upgrade command, carries out the master control program in upgrade file, specifically comprises:
Described first forwards core receives after described upgrade command, stop receiving new message, and the first message forwarding in the buffer of core described in poll;
When described the first forwarding core is polled to the message that comprises described upgrade command, carry out the master control program in described upgrade file.
In conjunction with the first of first aspect may implementation in, in the second may implementation, describedly forwarded core before new master control core using described first, also comprise:
To in described multiple forwarding core except described first forwards other core and forwards cores and send and forward nuclear escalation instructions, carry out the forward process program in described upgrade file to receive the forwarding core of described forwarding nuclear escalation instruction, realize the upgrading that forwards core.
In conjunction with the second of first aspect may implementation in, in the third may implementation, described in described multiple forwarding core except described first forwards other core and forwards cores and send forwarding nuclear escalation instructions, specifically comprise:
To in described multiple forwarding core except described first forwards other core and forwards parts in cores and forward cores and send upgrade command.
In conjunction with first aspect second or the third may implementation in, the 4th kind may implementation in, describedly forwarded core before new master control core using described first, also comprise:
Forwarding core to described master control core and unrealized forwarding nuclear escalation sends the instruction of having upgraded, and completes after instruction so that the forwarding core of described master control core or unrealized forwarding nuclear escalation receives described upgrading, carries out the forward process program in described upgrade file.
Second aspect, the embodiment of the present invention provides a kind of edition upgrading processing method of multi-core router, and described multi-core router comprises master control core and multiple forwarding core, and the method comprises:
Obtain the upgrade file for edition upgrading, and storage;
The first forwarding core in described multiple forwarding core sends upgrade command, so that described the first forwarding core is carried out the master control program in described upgrade file after receiving described upgrade command, as new master control core.
In conjunction with first aspect, in the first possibility implementation, the edition upgrading processing method of described multi-core router also comprises:
Receive the described first upgrading that forwards core transmission and complete instruction;
Using described master control core as forwarding core, carry out the forward process program in described upgrade file.
The third aspect, the embodiment of the present invention provides a kind of multi-core router, comprises master control core and multiple forwarding core, and first in described multiple forwarding core forwards core and comprises:
Upgrade command receiver module, the upgrade command sending for receiving described master control core, it is new master control core that described upgrade command is used to indicate described the first forwarding consideration convey;
Upgrading processing module, for receiving after described upgrade command, carries out the master control program in upgrade file;
The module of having upgraded, for forwarding core as new master control core using described first.
In conjunction with the third aspect, in the first possibility implementation, described upgrading processing module, specifically for receiving after described upgrade command, stop receiving new message, and the first message forwarding in the buffer of core described in poll, and when being polled to the message that comprises described upgrade command, carry out the master control program in described upgrade file.
In the first possibility implementation in conjunction with the third aspect, in the second possibility implementation, described multi-core router also comprises:
Forward nuclear escalation instruction sending module, for to described multiple forwarding core, other except described the first forwarding core forward cores transmission forwarding nuclear escalation instructions, carry out the forward process program in described upgrade file to receive the forwarding core of described forwarding nuclear escalation instruction, realize the upgrading that forwards core.
In the second possibility implementation in conjunction with the third aspect, in the third possibility implementation, described forwarding nuclear escalation instruction sending module, forwards cores specifically for parts in described first other forwarding cores that forward core in described multiple forwarding core and sends upgrade command.
In the second or the third possibility implementation in conjunction with the third aspect, in the 4th kind of possibility implementation, described multi-core router also comprises:
The instruction sending module of having upgraded, send for the forwarding core to described master control core and unrealized forwarding nuclear escalation the instruction of having upgraded, so that the forwarding core of described master control core or unrealized forwarding nuclear escalation receives described upgrading and completes after instruction, carry out the forward process program in described upgrade file.
Fourth aspect, the embodiment of the present invention provides a kind of multi-core router, comprises master control core and multiple forwarding core, and described master control core comprises:
Upgrade file acquisition module, for obtaining the upgrade file for edition upgrading, and storage;
Upgrade command sending module, sends upgrade command for forwarding core to first of described multiple forwarding cores, so that described the first forwarding core is carried out the master control program in described upgrade file after receiving described upgrade command, as new master control core.
In conjunction with fourth aspect, in the first possibility implementation, described multi-core router also comprises:
The command reception of having upgraded module, completes instruction for receiving the described first upgrading that forwards core transmission;
Master control nuclear escalation processing module, for using described master control core as forwarding core, carries out the forward process program in described upgrade file.
Edition upgrading processing method and the multi-core router of the multi-core router that the embodiment of the present invention provides, in the time that the version of multi-core router is upgraded, can be by sending upgrade command to forwarding core, carried out the mode of the primary control program in upgrade file by forwarding core, to forward core as new control core, like this, in edition upgrading process, do not need to restart router, can avoid in router upgrade process because restarting the problem of service interruption causing.
Brief description of the drawings
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 3 provides for the embodiment of the present invention three;
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 4 provides for the embodiment of the present invention four;
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 5 A provides for the embodiment of the present invention five;
Fig. 5 B is the view of 4 cores in the multi-core router before edition upgrading is processed;
Fig. 5 C is the view of 4 cores in edition upgrading multi-core router after treatment;
The first structural representation that forwards core in the multi-core router that Fig. 6 provides for the embodiment of the present invention six;
The structural representation of master control core in the multi-core router that Fig. 7 provides for the embodiment of the present invention seven.
Embodiment
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 1 provides for the embodiment of the present invention one.The present embodiment can be applicable in the edition upgrading processing of multi-core router, this multi-core router can comprise master control core and multiple forwarding core, in the time that multi-core router has the upgrade file that need to be used for edition upgrading, the first forwarding core that master control is endorsed wherein sends upgrade command, so that endorsing based on this upgrade command, the first forwarding carries out edition upgrading processing, wherein, comprise the master control program that can carry out for master control core for the upgrade file of edition upgrading, and for the forward process program that forwards core execution.Particularly, as shown in Figure 1, the present embodiment method can comprise the steps:
Step 101, first forwards core and receives the upgrade command that master control core sends, and it is new master control core that this upgrade command is used to indicate the first forwarding consideration convey;
Step 102, first forwards core and receives after this upgrade command, carries out the master control program in upgrade file;
Step 103, using this first forward core as new master control core.
In the present embodiment, in the time that multi-core router need to carry out edition upgrading, master control is endorsed to one in multiple forwarding core and is forwarded core, for example send upgrade command to the first forwarding core, the first forwarding is endorsed according to this upgrade command and carried out the master control program in upgrade file, the first forwarding is endorsed as new master control core, and this new master control is endorsed other forwarding core and master control core transmission dependent instruction, carry out the forward process program in upgrade file, thereby complete edition upgrading.In this process, do not need to restart router, thereby can avoid router to restart the service disconnection causing.
It will be understood by those skilled in the art that in multi-core router, master control core is identical with the hardware configuration that forwards core, master control core is used for carrying out master control program, to whole multi-core router is managed, also can carry out certain processing to message simultaneously; Forward core for carrying out forward process program, so that message is carried out to forward process.Wherein, the operating system such as described master control program includes operating system, such as vxworks, and can have other and control handling procedure, endorses master control other are forwarded to core to manage and control, and can carry out the processing operation etc. of part message.Function that the present embodiment is realized the master control program in upgrade file and forward process program etc. is not particularly limited.
The edition upgrading processing method of the multi-core router that the embodiment of the present invention provides, in the time that the software version of router is upgraded, can be by sending upgrade command to forwarding core, carry out the master control program in upgrade file by forwarding core, and by this forwarding core as new control core, like this, in edition upgrading process, do not need to restart router, can avoid in router upgrade process because restarting the problem of service interruption causing.
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 2 provides for the embodiment of the present invention two.As shown in Figure 2, the present embodiment method can comprise the steps:
Step 201, first forwards after the upgrade command of core reception master control core transmission, described upgrade command is stored in buffer, and stops receiving new message;
Step 202, first forwards the message of checking in buffer and carries out poll, determines whether the message being polled to is the message that comprises upgrade command, is to perform step 203, otherwise, the message being polled to is processed, and continued execution step 202;
Step 203, first forwards core and carries out the master control program for the upgrade file of edition upgrading;
Step 204, first forwards core and forwards core transmission forwarding nuclear escalation instruction to other, carries out the forward process program in upgrade file so that other forward after cores receive this forwarding nuclear escalation instruction, realizes the upgrading that forwards core;
Step 205, first forwards core and sends to master control core the instruction of having upgraded, and has upgraded after instruction so that master control core receives, and as forwarding core, carries out the forward process program in upgrade file, is to forward core by master control nuclear escalation.
In above-mentioned steps 201 and step 202, first forwards core is receiving after the upgrade command of master control core transmission, can be temporarily stored in buffer, and stop receiving new message, like this, first forwards core is receiving after upgrade command, can be by the message in poll self buffer, until while being polled to the message that comprises this upgrade command, just perform step 203, carry out the master control program in upgrade file, such first forwards and endorses the message receiving at it and be all disposed and just carry out upgrade file, thereby can guarantee that the first forwarding nuclear escalation is in the process of master control core, the business that the first forwarding core is being processed can not interrupt.
In above-mentioned steps 203, first forwards core carries out the master control program in upgrade file, specifically refer to the boot loader (BootLoader) of carrying out master control core, thereby can, by this BootLoader using the master control program in the upgrade file being stored in memory as starting bag, make the first forwarding endorse the master control program of carrying out in this upgrade file.It will be understood by those skilled in the art that described BootLoader is similar to the bios program in computer system, can be used for load operation system supervisor, its specific implementation process does not repeat them here.
In the present embodiment, master control core receives after this upgrade file, can be stored to memory device, for example, in Flah chip, like this, when the first forwarding core is carried out the master control program of this upgrade file, just can from this memory device, read the master control program in this upgrade file.
It will be appreciated by those skilled in the art that, after the first forwarding core is carried out the master control program in upgrade file, can not receive message, can share hardware resource with master control core simultaneously, like this, first forwards core in the process of execution master control program, and master control core still can be processed corresponding message or management work by the process of oneself, thereby unaffected.
In above-mentioned steps 204 and step 205, first forwards core after the master control program of carrying out in upgrade file, just can notify other to forward core and master control core, indicate other to forward core and carry out the forward process program in upgrade file, and instruction master control consideration convey is changed to forwarding core, and carry out the forward process program in upgrade file, thereby realize the upgrading that forwards core and master control core.
In above-mentioned steps 203, first forwards core while carrying out the master control program of upgrade file, also needs to obtain configuration file and the status data of master control core, so that first while forwarding core as new master control core, can be consistent with master control nuclear state.Wherein, described configuration file can be stored on the storage chip in router, and the status data of master control core can transmit by internuclear communication in real time, or, also can pass through back mechanism, for example HA mechanism is guaranteed the synchronous of status data.
In above-mentioned steps 204 and step 205, other forward cores and receive and forward after nuclear escalation instruction, can suspend the reception of other messages, and after the message of handling in self buffer, just carry out the forward process program in upgrade file, realize the upgrading of forwarding core; Meanwhile, master control core has been upgraded after instruction receiving, and can suspend the reception of message, and after message in self buffer is disposed, then carry out the forward process program in upgrade file, to realize master control nuclear escalation as forwarding core.
In practical application, before master control nuclear escalation is for forwarding core, share hardware resource although first forwards core with master control core, it can't receive message, and message is processed, in this process, still processed by master control core, until send to master control core the instruction of having upgraded, first forwards core just carries out message processing as real master control core, to avoid two master control cores to process message simultaneously.
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 3 provides for the embodiment of the present invention three.As shown in Figure 3, the present embodiment method can comprise the steps:
Step 301-step 303 is identical with the step 201-step 202 in Fig. 2.
Step 304, first forwards core and forwards the part forwarding core transmission forwarding nuclear escalation instruction in core to other;
Step 305, the part that receives this forwarding nuclear escalation instruction forward core to be suspended and receives new message, and after being disposed from message with it, carries out the forward process program in upgrade file, and notifies the first forwarding core to return to forward nuclear escalation success instruction;
Step 306, the first forwarding core receive after the forwarding nuclear escalation success instruction of this part forwarding core transmission, forward core transmission pause instruction to master control core and other;
Step 307, master control core and other forwarding core receive after pause instruction, stop receiving new message, and return to response message to master control core;
Step 308, first forwards core and receives after the response message that master control core returns, and forwards core and sends the instruction of upgrade, so that this part forwarding core starts to receive message to returning to this part that forwards nuclear escalation success instruction;
Step 309, first forwards core and sends to master control core and other forwarding core the instruction of having upgraded;
Step 310, master control core and other forwarding core receive has upgraded after instruction, carries out the forward process program in upgrade file, makes master control consideration convey for forwarding core.
In above-mentioned steps 304-step 305, first forwards core is carrying out after master control program, can first forward core to part and send forwarding nuclear escalation instruction, carries out edition upgrading to this part is forwarded to core.And forwarding core is receiving after forwarding nuclear escalation instruction, can stop immediately receiving new message, and after the message of self is processed, carry out the forward process program in upgrade file, like this, forward in nuclear escalation process in part, other forward core also can carry out message repeating function, can guarantee carrying out smoothly of message repeating.
In above-mentioned steps 306-step 308, when forwarding core, the part in step 304-step 305 all carries out after the forward process program in upgrade file, can send and forward nuclear escalation success instruction to the first forwarding core, so that the first forwarding is endorsed to other and is forwarded core and master control core transmission pause instruction, and send by forwarding core to this part the instruction of having upgraded, to carry out in edition upgrading process master control core and other are forwarded to cores, forwarded the processing of core execution message repeating by this part, while guaranteeing master control core and other forwarding nuclear escalations, still can carry out the forwarding of message.
In above-mentioned steps 309-step 310, first forwards core notifies the forwarding core of having upgraded to start to receive after message, can send by forwarding core to master control core and other mode of the instruction of having upgraded, carry out the forward process program in upgrade file by master control core and other forwarding core, to realize the upgrading of master control core and other forwarding cores.And in this process, the hardware resource that takies multi-core router is completely endorsed in the first forwarding, becomes new master control core, master control core originally becomes new forwarding core by carrying out forward process program.
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 4 provides for the embodiment of the present invention four.The present embodiment executive agent is the master control core in multi-core router, and particularly, as shown in Figure 4, the present embodiment method can comprise the steps:
Step 401, master control core obtain the upgrade file for edition upgrading, and storage;
Step 402, master control core send upgrade command to the first forwarding core in multiple forwarding core, so that the first forwarding core is carried out the master control program in upgrade file after receiving upgrade command, as new master control core.
In the present embodiment, master control core sends to upgrade command after the first forwarding core by above-mentioned steps, and first forwards core just can carry out step shown in above-mentioned Fig. 1-Fig. 3, realizes the processing of edition upgrading.
In the present embodiment, the upgrading that master control core also can receive the first forwarding core transmission completes instruction, and can, using master control core as forwarding core, carry out the forward process program in upgrade file, and the message of checking on network as forwarding is processed.
In the present embodiment, forward in nuclear escalation process at other, can first forward core to part and upgrade, and then other forwarding cores are upgraded, like this, can, in whole escalation process, can not affect the processing of new message.
For ease of embodiment of the present invention technical scheme is had a better understanding, below the edition upgrading process of the multi-core router to comprise 4 cores is described.
The schematic flow sheet of the edition upgrading processing method of the multi-core router that Fig. 5 A provides for the embodiment of the present invention five; Fig. 5 B is the view of 4 cores in the multi-core router before edition upgrading is processed; Fig. 5 C is the view of 4 cores in edition upgrading multi-core router after treatment.In the present embodiment, as shown in Figure 5 B, before edition upgrading is processed, master control core in multi-core router is core 1, core 2, core 3 and core 4 are forwarding core, and when master control core, core 1 receives after edition upgrading instruction, can from network, download the upgrade file for edition upgrading, and be stored in storage chip, can carry out edition upgrading processing procedure, particularly simultaneously, as shown in Fig. 5 A-Fig. 5 C, the present embodiment method can comprise the steps:
Step 501, receive after edition upgrading instruction as the core 1 of master control core, download upgrade file from network, and be stored in storage chip;
Step 502, core 1 are to sending upgrade command as the core 3 that forwards core;
Step 503, core 3 receive after upgrade command, are stored in buffer, and stop receiving other messages;
Message in step 504, core 3 poll buffers, until be polled to this upgrade command, execution step 505;
Step 505, core 3 are carried out the master control program in upgrade file;
Step 506, core 3 send and forward nuclear escalation instruction to the core 2 as forwarding core;
Step 507, core 2 receive after this forwarding nuclear escalation instruction, are stored in the buffer of self, and stop receiving new message;
Message in step 508, core 2 polls self buffer, forwards after nuclear escalation instruction until be polled to, and carries out the forward process program in above-mentioned upgrade file;
Step 509, core 3 send pause instruction to the core 1 as master control core and core 4, and are receiving after the response instruction of core 1 and core 4, send and upgrade successfully instruction to core 2;
Step 510, core 2 receive and upgrade successfully after instruction, start to receive message and according to upgrade file repeating handling procedure, message are processed;
Step 511, core 1 receive after pause instruction, stop the use of the hardware resource to multi-core router;
Step 512, core 2 take the hardware resource of multi-core router, and send to core 1 and core 4 instruction of having upgraded;
Step 513, core 1 and and 4 receive and upgraded after instruction, carry out the forward process program in upgrade file, receive message and also message processed, so far, edition upgrading all completes.
Those skilled in the art can also understand, after core 3 is carried out the master control program in upgrade file, in above-mentioned steps 506-step 508, core 3 also can send and forward nuclear escalation instruction to all forwarding core, the forwarding core of first upgrading whole, thereafter, then upgrades to forwarding core to master control core.
In above-mentioned steps 512 and step 513, the use of the paused execution of core 1 to hardware resource, therefore, the transmission of common message is not controlled core and is received, therefore, core 3 can send the instruction of having upgraded to master control core by mailbox interrupts, taking by master control consideration convey as forward core.
The first structural representation that forwards core in the multi-core router that Fig. 6 provides for the embodiment of the present invention six.The present embodiment multinuclear core comprises master control core and multiple forwarding core, between this master control core and multiple forwarding core, all can interconnect, wherein, as shown in Figure 6, in the plurality of forwarding core first forwards core and comprises that upgrade command receiver module 11, upgrading processing module 12 and upgrading complete module 13, wherein:
Upgrade command receiver module 11, the upgrade command sending for receiving master control core, it is new master control core that this upgrade command is used to indicate the first forwarding consideration convey;
Upgrading processing module 12, for receiving after described upgrade command, carries out the master control program in upgrade file;
The module 13 of having upgraded, for using the first forwarding core as new master control core.
In the present embodiment, above-mentioned upgrading processing module 12, specifically can be used for receiving after described upgrade command, stop receiving new message, and the first message forwarding in the buffer of core described in poll, and when being polled to the message that comprises described upgrade command, carry out the master control program in described upgrade file.
In the present embodiment, as shown in Figure 6, first forwards core also can comprise forwarding nuclear escalation instruction sending module 14, for to described multiple forwarding core, other except the first forwarding core forward cores transmission forwarding nuclear escalation instructions, carry out the forward process program in upgrade file to receive the forwarding core of this forwarding nuclear escalation instruction, realize the upgrading that forwards core.Particularly, this forwarding nuclear escalation instruction sending module 14 can be used in multiple forwarding core except first forwards other core and forwards parts in cores and forward cores and send upgrade command.
In the present embodiment, as shown in Figure 6, first forwards core also can comprise the instruction sending module 15 of having upgraded, send for the forwarding core to master control core and unrealized forwarding nuclear escalation the instruction of having upgraded, so that the forwarding core of master control core or unrealized forwarding nuclear escalation receives upgrade after instruction, carried out the forward process program in upgrade file.
The multi-core router that the present embodiment provides, the method that execution the invention described above embodiment is endorsed in the first forwarding to be provided completes edition upgrading process, and its specific implementation can, referring to the explanation of the invention described above embodiment of the method, not repeat them here.
The structural representation of master control core in the multi-core router that Fig. 7 provides for the embodiment of the present invention seven.The present embodiment multinuclear core comprises master control core and multiple forwarding core, and as shown in Figure 7, this master control core comprises upgrade file acquisition module 21 and upgrade command sending module 22, wherein:
Upgrade file acquisition module 21, for obtaining the upgrade file for edition upgrading, and storage;
Upgrade command sending module 22, sends upgrade command for forwarding core to first of multiple forwarding cores, so that the first forwarding core is carried out the master control program in upgrade file after receiving this upgrade command, as new master control core.Wherein, this first forwarding core is specifically as follows first shown in Fig. 6 and forwards core.
In the present embodiment, as shown in Figure 7, this master control core also can comprise the command reception module 23 of having upgraded, and completes instruction for the upgrading that receives the first forwarding core transmission; And master control nuclear escalation processing module 24, for using master control core as forwarding core, carry out the forward process program in described upgrade file.
The multi-core router that the present embodiment provides, the method that execution the invention described above embodiment is endorsed in master control to be provided completes edition upgrading process, and its specific implementation can, referring to the explanation of the invention described above embodiment of the method, not repeat them here.
It will be understood by those skilled in the art that in the multi-core router shown in above-mentioned Fig. 6, master control core also can comprise the each functional module in the core of master control shown in Fig. 7, and it can realize the upgrading processing to firmware together with the first forwarding core.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, in the time carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (14)

1. an edition upgrading processing method for multi-core router, described multi-core router comprises master control core and multiple forwarding core, it is characterized in that, described method comprises:
In described multiple forwarding core first forwards core and receives the upgrade command that described master control core sends, and it is new master control core that described upgrade command is used to indicate described the first forwarding consideration convey;
Described first forwards core receives after described upgrade command, carries out the master control program in upgrade file;
Forward core as new master control core using described first.
2. the edition upgrading processing method of multi-core router according to claim 1, is characterized in that, described first forwards core receives after described upgrade command, carries out the master control program in upgrade file, specifically comprises:
Described first forwards core receives after described upgrade command, stop receiving new message, and the first message forwarding in the buffer of core described in poll;
When described the first forwarding core is polled to the message that comprises described upgrade command, carry out the master control program in described upgrade file.
3. the edition upgrading processing method of multi-core router according to claim 2, is characterized in that, described using described first forward core before new master control core, also comprise:
To in described multiple forwarding core except described first forwards other core and forwards cores and send and forward nuclear escalation instructions, carry out the forward process program in described upgrade file to receive the forwarding core of described forwarding nuclear escalation instruction, realize the upgrading that forwards core.
4. the edition upgrading processing method of multi-core router according to claim 3, is characterized in that, described in described multiple forwarding core except described first forwards other core and forwards cores and send and forward nuclear escalation instructions, specifically comprise:
To in described multiple forwarding core except described first forwards other core and forwards parts in cores and forward cores and send upgrade command.
5. according to the edition upgrading processing method of the multi-core router described in claim 3 or 4, it is characterized in that, described using described first forward core before new master control core, also comprise:
Forwarding core to described master control core and unrealized forwarding nuclear escalation sends the instruction of having upgraded, and completes after instruction so that the forwarding core of described master control core or unrealized forwarding nuclear escalation receives described upgrading, carries out the forward process program in described upgrade file.
6. an edition upgrading processing method for multi-core router, described multi-core router comprises master control core and multiple forwarding core, it is characterized in that, described method comprises:
Obtain the upgrade file for edition upgrading, and storage;
The first forwarding core in described multiple forwarding core sends upgrade command, so that described the first forwarding core is carried out the master control program in described upgrade file after receiving described upgrade command, as new master control core.
7. the edition upgrading processing method of multi-core router according to claim 6, is characterized in that, also comprises:
Receive the described first upgrading that forwards core transmission and complete instruction;
Using described master control core as forwarding core, carry out the forward process program in described upgrade file.
8. a multi-core router, comprises master control core and multiple forwarding core, it is characterized in that, first in described multiple forwarding core forwards core and comprises:
Upgrade command receiver module, the upgrade command sending for receiving described master control core, it is new master control core that described upgrade command is used to indicate described the first forwarding consideration convey;
Upgrading processing module, for receiving after described upgrade command, carries out the master control program in upgrade file;
The module of having upgraded, for forwarding core as new master control core using described first.
9. multi-core router according to claim 8, it is characterized in that, described upgrading processing module, specifically for receiving after described upgrade command, stop receiving new message, and the first message forwarding in the buffer of core described in poll, and when being polled to the message that comprises described upgrade command, carry out the master control program in described upgrade file.
10. multi-core router according to claim 9, is characterized in that, also comprises:
Forward nuclear escalation instruction sending module, for to described multiple forwarding core, other except described the first forwarding core forward cores transmission forwarding nuclear escalation instructions, carry out the forward process program in described upgrade file to receive the forwarding core of described forwarding nuclear escalation instruction, realize the upgrading that forwards core.
11. multi-core routers according to claim 10, is characterized in that, described forwarding nuclear escalation instruction sending module forwards cores specifically for parts in described first other forwarding cores that forward core in described multiple forwarding core and sends upgrade command.
12. according to the multi-core router described in claim 10 or 11, it is characterized in that, also comprises:
The instruction sending module of having upgraded, send for the forwarding core to described master control core and unrealized forwarding nuclear escalation the instruction of having upgraded, so that the forwarding core of described master control core or unrealized forwarding nuclear escalation receives described upgrading and completes after instruction, carry out the forward process program in described upgrade file.
13. 1 kinds of multi-core routers, comprise master control core and multiple forwarding core, it is characterized in that, described master control core comprises:
Upgrade file acquisition module, for obtaining the upgrade file for edition upgrading, and storage;
Upgrade command sending module, sends upgrade command for forwarding core to first of described multiple forwarding cores, so that described the first forwarding core is carried out the master control program in described upgrade file after receiving described upgrade command, as new master control core.
14. multi-core routers according to claim 13, is characterized in that, also comprise:
The command reception of having upgraded module, completes instruction for receiving the described first upgrading that forwards core transmission;
Master control nuclear escalation processing module, for using described master control core as forwarding core, carries out the forward process program in described upgrade file.
CN201210524125.5A 2012-12-07 2012-12-07 Version upgrading method for multi-core router and multi-core router Pending CN103856349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210524125.5A CN103856349A (en) 2012-12-07 2012-12-07 Version upgrading method for multi-core router and multi-core router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210524125.5A CN103856349A (en) 2012-12-07 2012-12-07 Version upgrading method for multi-core router and multi-core router

Publications (1)

Publication Number Publication Date
CN103856349A true CN103856349A (en) 2014-06-11

Family

ID=50863594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210524125.5A Pending CN103856349A (en) 2012-12-07 2012-12-07 Version upgrading method for multi-core router and multi-core router

Country Status (1)

Country Link
CN (1) CN103856349A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device
CN104899064A (en) * 2015-06-03 2015-09-09 成都天奥信息科技有限公司 Remote intelligent upgrading method for dual multi-core DSPs (Digital Signal Processor) of pulse pressure navigation radar
WO2016180156A1 (en) * 2015-07-21 2016-11-17 中兴通讯股份有限公司 Router cluster upgrade system, method and apparatus
WO2018001044A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and apparatus for upgrading single-stage router to cluster router
CN108023756A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 The upgrade method and device of a kind of virtual switch
CN110187891A (en) * 2019-03-18 2019-08-30 杭州电子科技大学 A kind of program developing method and system for multicore programmable controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293352A (en) * 2004-04-01 2005-10-20 Seiko Epson Corp Controller, control method, and control program
CN101697128A (en) * 2009-10-10 2010-04-21 中兴通讯股份有限公司 Version upgrading method and device
CN102495762A (en) * 2011-11-16 2012-06-13 华为技术有限公司 Thread scheduling method, thread scheduling device and multi-core processor system
CN102566979A (en) * 2011-12-02 2012-07-11 华为技术有限公司 Method, device and multi-core processor system for realizing self-adaptive lock
CN102567585A (en) * 2011-12-31 2012-07-11 重庆邮电大学 Intrinsic evolvable hardware system and method based on multi-core virtual reconfigurable structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293352A (en) * 2004-04-01 2005-10-20 Seiko Epson Corp Controller, control method, and control program
CN101697128A (en) * 2009-10-10 2010-04-21 中兴通讯股份有限公司 Version upgrading method and device
CN102495762A (en) * 2011-11-16 2012-06-13 华为技术有限公司 Thread scheduling method, thread scheduling device and multi-core processor system
CN102566979A (en) * 2011-12-02 2012-07-11 华为技术有限公司 Method, device and multi-core processor system for realizing self-adaptive lock
CN102567585A (en) * 2011-12-31 2012-07-11 重庆邮电大学 Intrinsic evolvable hardware system and method based on multi-core virtual reconfigurable structure

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219092A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Router management application and router firmware compatible method and router management application and router firmware compatible device
US9886259B2 (en) 2014-08-27 2018-02-06 Xiaomi Inc. Method and terminal device for complying router management application with router firmware
CN104899064A (en) * 2015-06-03 2015-09-09 成都天奥信息科技有限公司 Remote intelligent upgrading method for dual multi-core DSPs (Digital Signal Processor) of pulse pressure navigation radar
WO2016180156A1 (en) * 2015-07-21 2016-11-17 中兴通讯股份有限公司 Router cluster upgrade system, method and apparatus
CN106357546A (en) * 2015-07-21 2017-01-25 中兴通讯股份有限公司 Upgrading system, method and device of router cluster
WO2018001044A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and apparatus for upgrading single-stage router to cluster router
CN107547222A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 Upgrade method and device of the single-stage router to cluster routers
CN108023756A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 The upgrade method and device of a kind of virtual switch
CN110187891A (en) * 2019-03-18 2019-08-30 杭州电子科技大学 A kind of program developing method and system for multicore programmable controller
CN110187891B (en) * 2019-03-18 2023-03-03 杭州电子科技大学 Program development method and system for multi-core programmable controller

Similar Documents

Publication Publication Date Title
CN103856349A (en) Version upgrading method for multi-core router and multi-core router
CN114253740A (en) Protocol stack data transmission method and device based on Linux kernel
CN102591668B (en) Device, method and system for updating elastic computing cloud system
US20110258598A1 (en) Server side application integration framework
CN102185718B (en) System upgrading method and device
EP4033350A2 (en) Method and system for flexible node composition on local or distributed computer systems
JP6279744B2 (en) How to queue email web client notifications
CN103514173A (en) Data processing method and node equipment
WO2011116583A1 (en) Method and apparatus for implementing management of multi-protocol communication components
US20130297763A1 (en) Data communication system for a storage management system and communication method thereof
CN104850416A (en) Upgrading system, method and device and cloud computing node
CN116319732A (en) Message queue centralized configuration management system and method based on RabbitMQ
CN110620798B (en) Control method, system, equipment and storage medium for FTP connection
CN111352743A (en) Process communication method and device
EP3171565A1 (en) Method, device and system for interacting hello packets
KR100589437B1 (en) Dynamic initialization method and system of location server
JP2006031491A (en) Application linkage system
CN102316073A (en) Method for achieving UEFI (unified extensible firmware interface) BIOS (basic input output system) remote upgrade by utilizing sever and server
JP4500085B2 (en) Test support apparatus and test support method
CN117539878A (en) Method, device and storage medium for data consistency between systems
CN114613418B (en) System and method for NVMe-MI function test of solid state disk
CN106331036B (en) Server control method and device
WO2021022961A1 (en) Abnormal cell processing method, device, unit, and computer-readable storage medium
CN110134628B (en) Message transmission method, device, equipment and storage medium
JP2010026626A (en) Method, system and program for recording data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140611