CN102231684B - Interface board state detection method, multi-core central processing unit, interface board and router - Google Patents

Interface board state detection method, multi-core central processing unit, interface board and router Download PDF

Info

Publication number
CN102231684B
CN102231684B CN 201110162617 CN201110162617A CN102231684B CN 102231684 B CN102231684 B CN 102231684B CN 201110162617 CN201110162617 CN 201110162617 CN 201110162617 A CN201110162617 A CN 201110162617A CN 102231684 B CN102231684 B CN 102231684B
Authority
CN
China
Prior art keywords
core
interface board
physics
available physical
mapping table
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.)
Expired - Fee Related
Application number
CN 201110162617
Other languages
Chinese (zh)
Other versions
CN102231684A (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.)
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 CN 201110162617 priority Critical patent/CN102231684B/en
Publication of CN102231684A publication Critical patent/CN102231684A/en
Application granted granted Critical
Publication of CN102231684B publication Critical patent/CN102231684B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an interface board state detection method, which comprises the following steps of: monitoring the state of each physical core in the same multi-core central processing unit (CPU), and updating a configuration relationship mapping table, wherein logic cores in the updated configuration relationship mapping table sequentially correspond to available physical cores; and when the number of the available physical cores is at least one or the share of the logic cores corresponding to the available physical cores in all the logic cores is greater than a preset effective rate, determining an interface board state is a normal state. By the technical scheme, correspondence between the logic cores and the available physical cores in the configuration relationship mapping table is updated in real time, the interface board state is determined to be the normal state when the number of the available physical cores is at least one or the share of the logic cores corresponding to the available physical cores in all the logic cores is greater than the preset effective rate, and an interface board can fun a service. The failure rate of the interface board is reduced, the communication loads of the other interface boards are further reduced, a communication rate and a resource utilization rate are increased, and communication failures are further mitigated.

Description

Interface board state detection method, multi-core central processing unit, interface board and router
Technical field
The present invention relates to communication technical field, more particularly, relate to a kind of Interface status detection method, multi-core central processing unit, interface board and router.
Background technology
Router comprises a master control borad and polylith interface board, and each piece interface board is provided with a multi-core CPU (Central Processing Unit, central processing unit), and described multi-core CPU comprises a main core and a plurality of physics core.When interface board started, each physics core that described main core is described multi-core CPU arranged a heartbeat inspecting timer, and each physics core sends logon message every the predefined time interval to main core.Do not receive when continuous 3 time intervals of main core the logon message that same physics core sends, determine that the physics nuclear state is down state.Main core sends physics dyskaryosis information to master control borad, and master control borad is judged physics core place interface board abnormal state, and this moment, interface board was no longer processed business.
In sum, when certain interface board was not processed business, the traffic load of other interface boards can increase, and the traffic load of the normal interface board of state can increase along with the increase of interface board failure rate, reduce traffic rate and resource utilization, even can cause communication failure.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present invention provides interface board state detection method, multi-core CPU, interface board and router, by reducing the interface board failure rate, improves traffic rate and resource utilization, further alleviates communication failure.Technical scheme is as follows:
Based on an aspect of of the present present invention, the embodiment of the present invention provides a kind of interface board state detection method, comprising:
Monitoring is arranged in the state of same each physics core of the multinuclear processing CPU of central authorities, determine that state is that the physics core of upstate is available physical core, the Reconfigurations relation mapping table, described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered;
When the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition.
Preferably, also comprise:
When the number of available physical core is zero or checks the occupation rate of Logic Core in all Logic Cores of answering with available physical and be not more than when being preset with efficient, determine that the interface board state is abnormality.
Preferably, the Reconfigurations relation mapping table is specially: when the Status Change that monitors any one physics core is down state or upstate, and the Reconfigurations relation mapping table.
Preferably, also comprise after the Reconfigurations relation mapping table: the configuration relation mapping table after upgrading is sent to each physics core.
Preferably, after the Reconfigurations relation mapping table, determine that the interface board state is that normal condition also comprises before:
Receive the configuration file that the user sends, the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with described configuration file, and described configuration file comprises the configuration operation information of each physics core.
Preferably, also comprise after the Reconfigurations relation mapping table: obtain the hardware configuration information of physics core self, and storage.
Preferably, the state that described monitoring is arranged in each physics core of same interface board is to receive by periodicity the logon message that physics core sends, and whether judgement receives the logon message monitoring in default read-around ratio.
Based on another aspect of the present invention, the embodiment of the present invention also provides a kind of multi-core central processing unit, and described multi-core central processing unit comprises a main core and a plurality of physics core, and described main core comprises:
Monitoring modular is used for the state that monitoring is positioned at each physics core of same multi-core CPU, determines that state is that the physics core of upstate is available physical core;
Update module is used for the Reconfigurations relation mapping table, and described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered;
The normal determination module of interface board, be used for number when available physical core be at least one or the Logic Core checking to answer with available physical in the occupation rate of all Logic Cores when being preset with efficient, determine that the interface board state is normal condition.
Preferably, described main core also comprises:
The abnormal determination module of interface board is used for number when available physical core and is zero or check the Logic Core of answering with available physical being not more than when being preset with efficient in the occupation rate of all Logic Cores, determines that the interface board state is abnormality.
Preferably, described main core also comprises:
The mapping table sending module, the configuration relation mapping table after being used for upgrading is sent to each physics core.
Preferably, described main core also comprises:
Information collocation module is used for receiving the configuration file that the user sends, and the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with configuration file.
Preferably, described main core also comprises:
The acquisition of information module is for the hardware configuration information that obtains physics core self.
Preferably, described monitoring modular comprises:
The message receiving element is used for periodically receiving the logon message that physics core sends;
Judging unit is used for judgement and whether receives logon message in default read-around ratio;
The upstate determining unit is used for determining that when receive logon message in default read-around ratio the physics nuclear state is upstate;
The down state determining unit is used for determining that when do not receive logon message in default read-around ratio the physics nuclear state is down state.
Based on one side more of the present invention, the embodiment of the present invention also provides a kind of interface board that is applied on router, is provided with above-mentioned multi-core central processing unit on described interface board.
Based on one side more of the present invention, the embodiment of the present invention also provides a kind of router, comprises master control borad and at least one interface board, is provided with above-mentioned multi-core central processing unit on described interface board.
Use the technical scheme that the embodiment of the present invention provides, the corresponding relation of Logic Core and available physical core in real-time update configuration relation mapping table, when the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition, and then interface board can move business.Compared with prior art, reduce the interface board failure rate, and then reduced the traffic load of other interface boards, improved traffic rate and resource utilization, further alleviated communication failure.
Description of drawings
The flow chart of the Interface status detection method that Fig. 1 provides for the embodiment of the present invention;
A kind of structural representation of the multi-core CPU that Fig. 2 provides for the embodiment of the present invention;
The another kind of structural representation of the multi-core CPU that Fig. 3 provides for the embodiment of the present invention;
The structural representation of monitoring modular in the multi-core CPU that Fig. 4 provides for example of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The inventor finds after deliberation, be provided with a multi-core CPU in the existing route device on interface board, multi-core CPU comprises a main core and a plurality of physics core, if main core monitors any one physics nuclear state in same multi-core CPU when being down state, master control borad determining interface board status in router is abnormal, and interface board is no longer processed business.Yet this moment, other states were that the physics of upstate endorses to satisfy the service operation requirement.If interface board is not processed business, can increase the traffic load of the normal interface board of state, reduced traffic rate and resource utilization, even can cause communication failure.
In order to address the above problem, the embodiment of the present invention provides a kind of interface board state detection method, the method flow diagram of the embodiment of the present invention as shown in Figure 1, described interface board state detection method comprises:
S101: monitoring is positioned at the state of each physics core of same multi-core CPU in router, determines that state is that the physics core of upstate is available physical core.Wherein:
The state that monitoring is positioned at each physics core of same multi-core CPU in router is to receive by periodicity the logon message that physics core sends, and whether receives in read-around ratio is preset in judgement that logon message realizes.If receive logon message in default read-around ratio, determine that the state of physics core is upstate, physics core is defined as available physical core.If do not receive logon message in default read-around ratio, determine that the state of physics core is down state, physics core is defined as unavailable physics core.Default read-around ratio can be 3 times or other values, can determine according to the different application scene, and this is not limited.
Physics core send logon message mode can for: each physics core arranges the heartbeat inspecting timer that an inside is provided with the time interval, and each physics core sends logon message every the time interval.The time interval can be set as different values according to the different application scene, and this is not limited.
S102: the Reconfigurations relation mapping table, described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and is answered.
The configuration relation mapping table is set up when interface board starts at every turn, is used for recording the corresponding relation of Logic Core and available physical core, and wherein, the number of Logic Core is identical with physics core number in multi-core CPU.When starting, giving tacit consent to all physics cores is available physical core, therefore, initial configuration relationship map table record be the corresponding relation of Logic Core and all physics cores, and be one to one.
The renewal of configuration relation mapping table can any one physics nuclear state changes to down state or real-time update when the upstate monitoring, namely monitoring any one physics nuclear state when upstate changes to down state or change to upstate from down state, real-time update configuration relation mapping table.
In configuration relation mapping table after renewal, Logic Core is checked with available physical successively and is answered.As: a multi-core CPU has physics core 1, physics core 2, physics core 3 and physics core 4.The corresponding physics core 1 of Logic Core 1, the corresponding physics core 2 of Logic Core 2, the corresponding physics core 3 of Logic Core 3, the corresponding physics core 4 of Logic Core 4 in the configuration relation mapping table when initial.Be down state when monitoring 1 Status Change of physics core, Reconfigurations relation mapping table is with the corresponding physics core 2 of Logic Core 1, the corresponding physics core 3 of Logic Core 2, the corresponding physics core 4 of Logic Core 3.If the Status Change that again monitors physics core 2 is down state, Reconfigurations relation mapping table again is with the corresponding physics core 3 of Logic Core 1, the corresponding physics core 4 of Logic Core 2.If the Status Change that monitors again physics core 1 is upstate, the Reconfigurations relation mapping table is with the corresponding physics core 1 of Logic Core 1, the corresponding physics core 3 of Logic Core 2, the corresponding physics core 4 of Logic Core 3.
After having upgraded the configuration relation mapping table, the configuration relation mapping table after renewal further sends to each physics core.Physics core can be known the Logic Core corresponding with it by the configuration relation mapping table.When the configuration file that main core reception user sends, the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with configuration file.Certainly, main core can also notify available physical core to be configured executing state, and available physical core can be according to the configuration relation mapping table, the configuration file in the active obtaining Logic Core corresponding with it.
Available physical core is configured according to the configuration operation information in configuration file after getting configuration file.Configuration operation information can comprise operating software, automatically specifies the required operating software of available physical core by configuration file, can greatly improve application flexibility.
Above-mentioned configuration relation mapping table can make main core know that the physics nuclear state is upstate or is down state, but the hardware configuration information of physics core self is transparent for main core, therefore need further to read according to the configuration relation mapping table hardware configuration information of the physics core corresponding with Logic Core self, hardware configuration information is stored in the hardware register of Logic Core, make the enough hardware configuration informations of knowing physics core in the Logic Core of main nuclear energy.
It should be noted that: above-mentioned configuration operation information is that the user sends and distribute to physics core, and this configuration operation information comprises the software configuration informations such as operating software.Hardware configuration information is physics core self, as hardware configuration informations such as hard disk and memory size, display models.
In addition, in prior art, it is transparent that physics is checked in main core, so interface board is when each the startup, and main core all needs to know that by the mode of monitoring message physics core is upstate or down state, and then affected service operation efficient.And above-mentioned interface board state detection method, when interface board starts for the first time, by the mode of monitoring message, Logic Core and available physical are checked and to be updated in the configuration relation mapping table, when the follow-up startup of interface board, the master endorses can know the physics nuclear state by the configuration relation mapping table, saved by the mode of monitoring message and known the process of physics nuclear state, and then improved service operation efficient.
S103: judge whether whether available physical core number be at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical greater than being preset with efficient, when the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, execution in step S104, when the number of available physical core is zero or checks the occupation rate of Logic Core in all Logic Cores of answering with available physical and be not more than when being preset with efficient, execution in step S105.
The above-mentioned efficient that is preset with is to judge when the interface board state is normal condition, available physical is checked the Logic Core of answering and the minimum ratio of all Logic Cores, be 10% as being preset with efficient in home network, check the minimum occupation rate of Logic Core in all Logic Cores of answering when available physical for being preset with efficient, show that namely the interface board state is normal condition, can continue the processing business.Default efficient value is different according to the different application scene, and it is not limited.
S104: determine that the interface board state is normal condition.When the interface board state was normal condition, this interface board can continue the processing business.
S105: determine that the interface board state is abnormality.When the interface board state is abnormality, needs that the business that this interface board is processed is given to other interface boards and process.
Use technique scheme, the corresponding relation of Logic Core and available physical core in real-time update configuration mapping table, when the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition, and then interface board can move business.Compared with prior art, reduce the interface board failure rate, and then reduced the traffic load of other interface boards, improved traffic rate and resource utilization, further alleviated communication failure.
Embodiment is corresponding with said method, and the embodiment of the present invention also provides a kind of multi-core CPU, and structural representation comprises as shown in Figure 2: at least one physics core 1 and a main core 2.Describe as an example of a physics core 1 example in Fig. 2.Main core 2 comprises: monitoring modular 21, update module 22, the normal determination module 23 of interface board and the abnormal determination module 24 of interface board.Wherein:
Monitoring modular 21 is used for the state that monitoring is positioned at each physics core of same multi-core CPU, determines that state is that the physics core of upstate is available physical core.
Update module 22 is used for the Reconfigurations relation mapping table, and described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered.Wherein: the configuration relation mapping table is set up when interface board starts at every turn, is used for recording the corresponding relation of Logic Core and available physical core, and wherein, the number of Logic Core is identical with physics core number in multi-core CPU.When starting, giving tacit consent to all physics cores is available physical core, therefore, initial configuration relationship map table record be the corresponding relation of Logic Core and all physics cores, and be one to one.
The renewal of configuration relation mapping table can any one physics nuclear state changes to down state or real-time update when the upstate monitoring, namely monitoring any one physics nuclear state when upstate changes to down state or change to upstate from down state, real-time update configuration relation mapping table.
In configuration relation mapping table after renewal, Logic Core is checked with available physical successively and is answered.As: a multi-core CPU has physics core 1, physics core 2, physics core 3 and physics core 4.The corresponding physics core 1 of Logic Core 1, the corresponding physics core 2 of Logic Core 2, the corresponding physics core 3 of Logic Core 3, the corresponding physics core 4 of Logic Core 4 in the configuration relation mapping table when initial.Be down state when monitoring 1 Status Change of physics core, Reconfigurations relation mapping table is with the corresponding physics core 2 of Logic Core 1, the corresponding physics core 3 of Logic Core 2, the corresponding physics core 4 of Logic Core 3.If the Status Change that again monitors physics core 2 is down state, Reconfigurations relation mapping table again is with the corresponding physics core 3 of Logic Core 1, the corresponding physics core 4 of Logic Core 2.If the Status Change that monitors again physics core 1 is upstate, the Reconfigurations relation mapping table is with the corresponding physics core 1 of Logic Core 1, the corresponding physics core 3 of Logic Core 2, the corresponding physics core 4 of Logic Core 3.
The normal determination module 23 of interface board, be used for number when available physical core be at least one or the Logic Core checking to answer with available physical in the occupation rate of all Logic Cores when being preset with efficient, determine that the interface board state is normal condition.
The above-mentioned efficient that is preset with is to judge when the interface board state is normal condition, available physical is checked the Logic Core of answering and the minimum ratio of all Logic Cores, be 10% as being preset with efficient in home network, check the minimum occupation rate of Logic Core in all Logic Cores of answering when available physical for being preset with efficient, show that namely the interface board state is normal condition, can continue the processing business.Default efficient value is different according to the different application scene, and it is not limited.
The abnormal determination module 24 of interface board is used for number when available physical core and is zero or check the Logic Core of answering with available physical being not more than when being preset with efficient in the occupation rate of all Logic Cores, determines that the interface board state is abnormality.
Configuration relation mapping table after update module 22 is upgraded can be sent to each physics core, and main core 2 needs to increase the mapping table sending modules, and the structural representation of multi-core CPU as shown in Figure 3 increases mapping table sending module 25 on Fig. 2 basis.Mapping table sending module 25, the configuration relation mapping table after being used for upgrading is sent to each physics core.
Multi-core CPU structural representation shown in Figure 3 also comprises information collocation module 26, is used for receiving the configuration file that the user sends, and the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with configuration file.Certainly, main core can also notify available physical core to be configured executing state, and available physical core can be according to the configuration relation mapping table, the configuration file in the active obtaining Logic Core corresponding with it.
Available physical core is configured according to the configuration operation information in configuration file after getting configuration file.Configuration operation information can comprise operating software, automatically specifies the required operating software of available physical core by configuration file, can greatly improve application flexibility.
Above-mentioned multi-core CPU structural representation shown in Figure 3 also comprises acquisition of information module 27, is used for obtaining the hardware configuration information of physics core self.This checks in main core because of physics is transparent, above-mentioned configuration relation mapping table can make main core know that physics core is upstate or is down state, but the hardware configuration information of physics core self is transparent for main core, therefore need further to read according to the configuration relation mapping table hardware configuration information of the physics core corresponding with Logic Core self, hardware configuration information is written in the hardware register of Logic Core, makes the enough hardware configuration informations of knowing physics core in the Logic Core of main nuclear energy.
It should be noted that: above-mentioned configuration operation information is that the user sends and distribute to physics core, and this configuration operation information comprises the software configuration informations such as operating software.Hardware configuration information is physics core self, as hardware configuration informations such as hard disk and memory size, display models.
Above-mentioned monitoring modular 21 can receive the logon message that physics core sends by periodicity, and whether judgement receives the state of logon message monitoring physics core in default read-around ratio.The structural representation of monitoring modular 21 comprises as shown in Figure 4: message receiving element 211, judging unit 212, upstate determining unit 213 and down state determining unit 214.Wherein:
Message receiving element 211 is used for periodically receiving the logon message that physics core sends.Judging unit 212 is used for judgement and whether receives logon message in default read-around ratio.Upstate determining unit 213 is used for determining that when receive logon message in default read-around ratio the physics nuclear state is upstate.Down state determining unit 214 is used for determining that when do not receive logon message in default read-around ratio the physics nuclear state is down state.
Physics core send logon message mode can for: each physics core arranges the heartbeat inspecting timer that an inside is provided with the time interval, and each physics core sends logon message every the time interval.The time interval can be set as different values according to the different application scene, and this is not limited.Default read-around ratio can be 3 times or other values, can determine according to the different application scene, and this is not limited.
The embodiment of the present invention also provides a kind of interface board that is applied on router, is provided with multi-core CPU on described interface board.Multi-core CPU comprises a main core and at least one physics core, wherein main core is used for the state that monitoring is positioned at each physics core of same multi-core CPU, determine that state is that the physics core of upstate is available physical core, the Reconfigurations relation mapping table, described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered; When the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition.The structural representation of multi-core CPU can with reference to Fig. 2 or Fig. 3, no longer be set forth this.
The embodiment of the present invention also provides a kind of router, comprises master control borad and at least one interface board, and interface board is provided with multi-core CPU.Multi-core CPU comprises main core and at least one physics core, wherein main core is used for the state that monitoring is positioned at each physics core of same multi-core CPU, determine that state is that the physics core of upstate is available physical core, the Reconfigurations relation mapping table, described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered; When the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition.The structural representation of multi-core CPU can with reference to Fig. 2 or Fig. 3, no longer be set forth this.
Above-mentioned interface board and router can use interface board state detection method shown in Figure 1 to detect, and this is no longer set forth.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and between each embodiment, identical similar part is mutually referring to getting final product, and each embodiment stresses is difference with other embodiment.Description by above embodiment of the method, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: the various media that can be program code stored such as read-only memory (ROM), random access memory (RAM), magnetic disc or CD.
For device embodiment, due to it substantially corresponding to embodiment of the method, so relevant part gets final product referring to the part explanation of embodiment of the method.Device embodiment described above is only schematic, wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as the unit can be or can not be also physical locations, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of embodiment of the present invention scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay creative work.
In several embodiment that the application provides, should be understood that disclosed apparatus and method not surpassing in the application's spirit and scope, can realize in other way.Current embodiment is a kind of exemplary example, should be as restriction, and given particular content should in no way limit the application's purpose.For example, the division of described unit or subelement is only that a kind of logic function is divided, and during actual the realization, other dividing mode can be arranged, and for example a plurality of unit or a plurality of subelement combine.In addition, a plurality of unit can or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.
The above is only the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1. an interface board state detection method, is characterized in that, comprising:
Monitoring is arranged in the state of same each physics core of the multinuclear processing CPU of central authorities, determine that state is that the physics core of upstate is available physical core, the Reconfigurations relation mapping table, described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered;
When the number of available physical core is at least one or the occupation rate of Logic Core in all Logic Cores checking to answer with available physical when being preset with efficient, determine that the interface board state is normal condition;
When the number of available physical core is zero or checks the occupation rate of Logic Core in all Logic Cores of answering with available physical and be not more than when being preset with efficient, determine that the interface board state is abnormality.
2. interface board state detection method according to claim 1, is characterized in that, the Reconfigurations relation mapping table is specially: when the Status Change that monitors any one physics core is down state or upstate, and the Reconfigurations relation mapping table.
3. interface board state detection method according to claim 1, is characterized in that, also comprise after the Reconfigurations relation mapping table: the configuration relation mapping table after upgrading is sent to each physics core.
4. interface board state detection method according to claim 3, is characterized in that, after the Reconfigurations relation mapping table, determines that the interface board state is that normal condition also comprises before:
Receive the configuration file that the user sends, the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with described configuration file, and described configuration file comprises the configuration operation information of each physics core.
5. interface board state detection method according to claim 3, is characterized in that, also comprises after the Reconfigurations relation mapping table: obtain the hardware configuration information of physics core self, and storage.
6. the described interface board state detection method of according to claim 1 to 5 any one, it is characterized in that, the state that described monitoring is arranged in each physics core of same interface board is to receive by periodicity the logon message that physics core sends, and whether judgement receives the logon message monitoring in default read-around ratio.
7. multi-core central processing unit, described multi-core central processing unit comprises a main core and a plurality of physics core, it is characterized in that, described main core comprises:
Monitoring modular is used for the state that monitoring is positioned at each physics core of same multi-core CPU, determines that state is that the physics core of upstate is available physical core;
Update module is used for the Reconfigurations relation mapping table, and described configuration relation mapping table is used for recording the corresponding relation of Logic Core and available physical core, and in the configuration relation mapping table after renewal, Logic Core is checked with available physical successively and answered;
The normal determination module of interface board, be used for number when available physical core be at least one or the Logic Core checking to answer with available physical in the occupation rate of all Logic Cores when being preset with efficient, determine that the interface board state is normal condition;
The abnormal determination module of interface board is used for number when available physical core and is zero or check the Logic Core of answering with available physical being not more than when being preset with efficient in the occupation rate of all Logic Cores, determines that the interface board state is abnormality.
8. multi-core central processing unit according to claim 7, is characterized in that, described main core also comprises:
The mapping table sending module, the configuration relation mapping table after being used for upgrading is sent to each physics core.
9. multi-core central processing unit according to claim 8, is characterized in that, described main core also comprises:
Information collocation module is used for receiving the configuration file that the user sends, and the configuration relation mapping table according to after upgrading sends to the available physical core corresponding with Logic Core with configuration file.
10. multi-core central processing unit according to claim 8, is characterized in that, described main core also comprises:
The acquisition of information module is for the hardware configuration information that obtains physics core self.
11. multi-core central processing unit according to claim 7 is characterized in that, described monitoring modular comprises:
The message receiving element is used for periodically receiving the logon message that physics core sends;
Judging unit is used for judgement and whether receives logon message in default read-around ratio;
The upstate determining unit is used for determining that when receive logon message in default read-around ratio the physics nuclear state is upstate;
The down state determining unit is used for determining that when do not receive logon message in default read-around ratio the physics nuclear state is down state.
12. an interface board that is applied on router is characterized in that, is provided with multi-core central processing unit as described in claim 7 to 11 any one on described interface board.
13. a router comprises master control borad and at least one interface board, it is characterized in that, is provided with multi-core central processing unit as described in claim 7 to 11 any one on described interface board.
CN 201110162617 2011-06-16 2011-06-16 Interface board state detection method, multi-core central processing unit, interface board and router Expired - Fee Related CN102231684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110162617 CN102231684B (en) 2011-06-16 2011-06-16 Interface board state detection method, multi-core central processing unit, interface board and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110162617 CN102231684B (en) 2011-06-16 2011-06-16 Interface board state detection method, multi-core central processing unit, interface board and router

Publications (2)

Publication Number Publication Date
CN102231684A CN102231684A (en) 2011-11-02
CN102231684B true CN102231684B (en) 2013-11-06

Family

ID=44844224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110162617 Expired - Fee Related CN102231684B (en) 2011-06-16 2011-06-16 Interface board state detection method, multi-core central processing unit, interface board and router

Country Status (1)

Country Link
CN (1) CN102231684B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457797B (en) * 2013-08-29 2016-12-28 杭州华三通信技术有限公司 The detection method of a kind of RCPU port effectiveness and equipment
CN105634762B (en) * 2014-10-27 2021-10-15 中兴通讯股份有限公司 Router configuration method, router control device and communication system
CN112564931B (en) * 2019-09-25 2022-08-19 华为技术有限公司 Fault processing method, device and storage medium
US11983576B2 (en) * 2021-08-04 2024-05-14 International Business Machines Corporation Accessing topological mapping of cores

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2078263B1 (en) * 2006-10-31 2019-06-12 Semiconductor Energy Laboratory Co, Ltd. Semiconductor device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core

Also Published As

Publication number Publication date
CN102231684A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
US9141491B2 (en) Highly available server system based on cloud computing
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN105229613A (en) Coordinate the fault recovery in distributed system
CN110389843B (en) Service scheduling method, device, equipment and readable storage medium
US20210226871A1 (en) Cluster management method, apparatus and system
CN109739527B (en) Method, device, server and storage medium for client gray scale release
CN102231684B (en) Interface board state detection method, multi-core central processing unit, interface board and router
CN111104283B (en) Fault detection method, device, equipment and medium of distributed storage system
CN108306760A (en) For making the self-healing method and apparatus of managerial ability in a distributed system
CN104850394A (en) Management method of distributed application program and distributed system
CN110912972A (en) Service processing method, system, electronic equipment and readable storage medium
CN112291082A (en) Computer room disaster recovery processing method, terminal and storage medium
CN113810216A (en) Cluster fault switching method and device and electronic equipment
CN103827831A (en) Live module diagnostic testing
CN103823727B (en) A kind of backup method of live recording and device
CN108270753B (en) Method and device for logging out user account
CN105430052A (en) Arbitration method and arbitration device for cluster system
CN114124727B (en) Network management communication pressure testing method and system
CN112433875B (en) Middleware-based database operation method and device and terminal equipment
CN115470009A (en) Memory resource management method, system, device and medium
CN114610545A (en) Method, system, device and medium for reducing single point of failure of private cloud computing
CN109151016B (en) Flow forwarding method and device, service system, computing device and storage medium
KR102626249B1 (en) A vehicle and method for optimizing load of controller thereof
CN113051143A (en) Detection method, device, equipment and storage medium for service load balancing server
CN104899247A (en) Information subscription method and system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131106

Termination date: 20190616

CF01 Termination of patent right due to non-payment of annual fee