CN103346898B - Method for processing configuration information of hot plug board card, and network communication device - Google Patents

Method for processing configuration information of hot plug board card, and network communication device Download PDF

Info

Publication number
CN103346898B
CN103346898B CN201310209804.8A CN201310209804A CN103346898B CN 103346898 B CN103346898 B CN 103346898B CN 201310209804 A CN201310209804 A CN 201310209804A CN 103346898 B CN103346898 B CN 103346898B
Authority
CN
China
Prior art keywords
configuration information
configuration
software module
state
board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310209804.8A
Other languages
Chinese (zh)
Other versions
CN103346898A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201310209804.8A priority Critical patent/CN103346898B/en
Publication of CN103346898A publication Critical patent/CN103346898A/en
Application granted granted Critical
Publication of CN103346898B publication Critical patent/CN103346898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for processing configuration information of a hot plug board card, and a network communication device, and relates to the technical field of communication. The method for processing the configuration information of the hot plug board card, and the network communication device solve the problem that the configuration information is lost in the continuous and rapid hot plug process of a board card. The method for processing the configuration information of the hot plug board card comprises the steps that (1) when the board card is inserted into a slot in a hot plug mode, and the type of the current inserted board card is the same as the type of a board card inserted into the slot last time, a system carries out first stored configuration information, wherein the first configuration information is configuration information of the inserted board card last time; (2) second configuration information is obtained, and the second configuration information is a result obtained through collection and execution of the first configuration information; (3) the second configuration information is used for refreshing corresponding configuration in the first configuration information. The method for processing the configuration information of the hot plug board card, and the network communication device can be applied to a communication system which supports the hot plug function.

Description

Method and network communication equipment that hot-swappable board configuration information is processed
Technical field
The present invention relates to communication technical field, more particularly, to hot-swappable during the method for information processing and network service set Standby.
Background technology
In order to preferably support the business demand of user terminal, network communication equipment (can be, but not limited to:Router, friendship Change planes) interface board all support hot drawing plugging function.For the recovery faster and better in the hot-swappable rear data service of board, During hot-swappable, need corresponding configuration information to be stored and recovers.Network communication equipment can include at least one Groove position, each board is attached with network communication equipment by being inserted in groove position, and the configuration information of groove position inserts this groove The configuration information of the board of position, is all referred to as configuration information afterwards.Wherein, the configuration information of board includes:Interface IP address, connect Port band width, interface delay etc..In prior art, during board is hot-swappable, the processing procedure of configuration information includes:
After board hot drawing goes out, preserve board configuration information (RAM < Random Access Memory can be stored in, In random access memory >), and this configuration information is set to hidden state, that is, hidden when executing display command (as show run) Hide this configuration information, when startup configuration file (as s tartup) is write in execution, then skip this configuration information and (this configuration is not believed Breath write ROM < Read-Only Memory, in read-only memory >);
In board heat insertion, the configuration information of execution storage, delete this configuration information after execution, then reacquire and hold The successful configuration information of row.Due to, between the process that hot drawing goes out and heat is inserted, existence time is poor, for same board, The configuration information that hot drawing stores after going out may be different from the configuration information running succeeded reacquiring after heat insertion, therefore, go back Reacquire the configuration information running succeeded.
State in realization hot-swappable during during information processing, inventor finds at least exist such as in prior art Lower problem:During continuous rapidly hot-swappable board, because configuration information is possible to also to be not carried out to complete or again Collection completes, and just deletes the corresponding configuration information of storage, leads to configuration loss;In master control system, do not have in configuration information There is execution to complete or again collect when completing, network communication equipment just carries out master-slave swap, now, can lead master-slave swap After occur configuration information lose;When configuration information is not carried out completing or collection completes again, network communication equipment Just restarted, restarting rear configuration information can lose.
Content of the invention
Embodiments of the invention provide a kind of method of hot-swappable board configuration information process and network communication equipment, solve During continuous rapidly hot-swappable board, lead to the problem that configuration information is lost.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
In a first aspect, provide a kind of hot-swappable during information processing method, including:
When currently there is board heat insertion a certain groove position, if being currently inserted into one on the type of board and described currently a certain groove position The type of secondary insertion board is identical, then the first configuration information of system execution storage, and described first configuration information is described upper one The configuration information of secondary insertion board;
Obtain the second configuration information, described second configuration information is the result collecting execution the first configuration information;
Refresh corresponding configuration in the first configuration information using described second configuration information.
In the first possible implementation, before there is board heat insertion described currently a certain groove position, methods described Also include:
When the described last insertion board of described currently a certain groove position is heat-pulled, collects and store described first and join Confidence ceases, and is that lock mark is added in each configuration in described first configuration information, described lock mark does not show band for instruction There is the configuration information of this lock mark, described first configuration information includes at least one configuration.
In conjunction with the first possible implementation of first aspect, in the possible implementation of second, described system First configuration information of execution storage, specifically includes:
Add first state mark for each configuration in described first configuration information, and first state is identified setting For disarmed state;Software module belonging to every configuration in described first configuration information adds the second status indicator, and by the Two-state mark is set to disarmed state;
Described software module executes the configuration in the first configuration information, starts configuration and collects timer;
After each software module has executed its all relevant configuration in the first configuration information, send the institute of this software module State the notification message of the currently configuration variation of a certain groove position.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, described acquisition Second configuration information includes:
Described acquisition the second configuration information includes:
Collect configuration information to each software module sending a notification message, obtain the second configuration information;
Using described second configuration information, configuration corresponding with described second configuration information in the first configuration information is carried out Replace;
Delete each lock mark being replaced configuration in the first configuration information;
The first state mark of each configuration being replaced in the first configuration information is set to effective status, and will be every Article one, the second status indicator of the software module belonging to configuration being replaced is set to effective status.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, when configuration After collecting timer expiry, judge whether the second state of the software module belonging to configuration in described first configuration information It is designated disarmed state;In this way, then in described first configuration information, the second status indicator belonging to each configuration is invalid The software module of state collects configuration information, obtains the second configuration information;Otherwise delete the first shape in described first configuration information State is designated the configuration of disarmed state.
The third possible implementation in conjunction with first aspect or the 4th kind of possible implementation, in the 5th kind of possibility Implementation in, methods described also includes:
When the board of described currently a certain groove position is heat-pulled, it is that each configuration in described first configuration information adds Lock mark and first state mark, and described first state mark is set to disarmed state;For described first configuration information In software module belonging to each configuration add the second status indicator, and the second status indicator is set to disarmed state.
Second aspect, provides a kind of network communication equipment, including:
Hot insertion process unit, when having board heat insertion for currently a certain groove position, if be currently inserted into the type of board with The type of the last insertion in described currently a certain groove position board is identical, then execute the first configuration information of storage, described first joins Confidence ceases the configuration information for described last insertion board;Obtain the second configuration information, described second configuration information is to collect Execute the result of the first configuration information;Refresh corresponding configuration in the first configuration information using described second configuration information.
In the first possible implementation, described network communication equipment also includes:
Hot drawing goes out processing unit, for when the described last insertion board of described currently a certain groove position is heat-pulled, Collect and store described first configuration information, be that lock mark, described lock are added in each configuration in described first configuration information Identify and do not show, for instruction, the configuration information identifying with this lock, described first configuration information includes at least one configuration.
In conjunction with the first possible implementation of second aspect, in the possible implementation of second, described network Communication equipment includes at least one software module;
Described hot insertion process unit, specifically for adding the first shape for each configuration in described first configuration information State identifies, and first state mark is set to disarmed state;Software belonging to every configuration in described first configuration information Module adds the second status indicator, and the second status indicator is set to disarmed state;Execute first by described software module All in configuration information configure and start configuration and collect timer;
Described software module, specifically for executing all configurations of its correlation in the first configuration information, and sends this software The notification message of the configuration variation of described currently a certain groove position of module.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, described heat is inserted Enter processing unit, specifically for collecting configuration information to each software module sending a notification message, obtain the second configuration letter Breath;
Described hot insertion process unit, for using described second configuration information, by the first configuration information with described The corresponding configuration of two configuration informations is replaced;Delete each lock mark being replaced configuration in the first configuration information;By The first state mark of each configuration being replaced in one configuration information is set to effective status, and each is replaced Second status indicator of the software module belonging to configuration is set to effective status.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described heat is inserted Enter processing unit, be additionally operable to, after timer expiry is collected in configuration, judge whether the configuration in described first configuration information Second status indicator of affiliated software module is disarmed state;In this way, then to belonging to the configuration in described first configuration information The second status indicator be disarmed state software module collect configuration information, obtain the second configuration information;Otherwise delete described In first configuration information, first state is designated the configuration of disarmed state.
The third possible implementation in conjunction with second aspect or the 4th kind of possible implementation, in the 5th kind of possibility Implementation in, described hot drawing goes out processing unit, is additionally operable to when the board of described currently a certain groove position is heat-pulled, is institute State each configuration in the first configuration information and add lock mark and first state mark, and described first state is identified setting For disarmed state;Software module belonging to each configuration in described first configuration information adds the second status indicator, and will Second status indicator is set to disarmed state.
Provided in an embodiment of the present invention hot-swappable during the method for information processing and network communication equipment, using above-mentioned side After case, network communication equipment, after having executed the first configuration information and having got the second configuration information, recycles the second configuration letter Breath refreshes corresponding configuration in the first configuration information, when network communication equipment has been not carried out configuration refreshing, does not delete first and joins Confidence ceases, and in other words, only after network communication equipment has executed the first configuration information and got the second configuration information, then deletes Except the corresponding configuration in the first configuration information corresponding with the second configuration information, in this manner it is ensured that after heat insertion immediately When hot drawing goes out, do not delete the first configuration information, it is to avoid in quickly hot-swappable middle loss the first configuration information.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodiment Figure be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 for this enforcement provide a kind of hot-swappable during information processing method flow diagram;
The method flow diagram of information processing during another kind that Fig. 2 provides for this enforcement is hot-swappable;
A kind of structural representation of network communication equipment that Fig. 3 provides for this enforcement;
The structural representation of another kind of network communication equipment that Fig. 4 provides for this enforcement.
Specific 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 carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
In prior art, because between the process that hot drawing goes out and heat is inserted, existence time is poor, comes for same board Say, the new configuration information running succeeded that the configuration information that hot drawing stores after going out is reacquired after being inserted from heat may be different (configuration that can include comprising in each configuration information is different), therefore, also will reacquire the new configuration letter running succeeded Breath.Specifically, in heat insertion, the configuration information of execution storage executes unsuccessful configuration it is possible to delete, and then again obtains Take the configuration running succeeded as new configuration information.Wherein, at least one configuration can be included in each configuration information.
But, during continuous rapidly hot-swappable board, because the configuration in configuration information may also be not carried out Complete or again collect and complete, just delete the corresponding configuration information of storage, lead to configuration loss;In master control system, When configuration information is not carried out completing or collection completes again, network communication equipment just carries out master control redundancy backup and cuts Change, now, after redundancy backup switching can be led to, configuration information occurs and lose;It is not carried out completing or not heavy in configuration information When new collection completes, network communication equipment is just restarted, and restarting rear configuration information can lose.
In order to solve the above problems, the present embodiment provide a kind of hot-swappable during information processing method, the method Executive agent is network communication equipment, as shown in figure 1, can include:
101st, when currently there is board heat insertion a certain groove position, if being currently inserted into one on the type of board and currently a certain groove position The type of secondary insertion board is identical, then the first configuration information of system execution storage.
Wherein, the first configuration information can be the configuration information of last insertion board.
102nd, obtain the second configuration information.
Wherein, the second configuration information can be the result collecting execution the first configuration information.
103rd, the second configuration information is utilized to refresh corresponding configuration in the first configuration information.
After such scheme, network communication equipment is executing the first configuration information and is getting the second configuration information Afterwards, the second configuration information is recycled to refresh corresponding configuration in the first configuration information, when network communication equipment has been not carried out configuration During refreshing, do not delete the first configuration information, in other words, only executed the first configuration information in network communication equipment and got After second configuration information, then delete the corresponding configuration in the first configuration information corresponding with the second configuration information, as such, it is possible to Ensure, when hot drawing goes out immediately after heat insertion, not deleting the first configuration information, it is to avoid in quickly hot-swappable middle loss first configuration Information.
The method of information processing during the present embodiment offer another kind is hot-swappable, the method is to the method shown in Fig. 1 Further expand, as shown in Fig. 2 can include:
201st, when the board that groove position A is currently inserted into is heat-pulled, collect and store the first configuration information.
When the board of groove position A insertion is heat-pulled, obtain and store the first configuration information so that in this groove position A again After heat insertion identical board, can be directly using the first configuration information of storage.
Because board is heat-pulled, therefore, the first configuration information can be not displayed in network communication equipment.
As an embodiment of the present embodiment, when startup configuration information order is write in execution, first can be configured Information Store is in read-only memory.
In order to understand to subsequent step with clearer, below letter is carried out to the internal structure of network communication equipment Single introduction.
Board is communicated and is connected with other boards in network communication equipment by groove position A, when the plate of insertion groove position A When card is heat-pulled, the first configuration information of this board just can be stored in the corresponding memory cell of groove position A.
202nd, add lock mark for each configuration in the first configuration information.
Further, lock mark can serve to indicate that the configuration information not shown with this lock mark, the first configuration information Including at least one configuration.
Further, when the board of the insertion of groove position A is heat-pulled, and execute when writing startup configuration information order, also Lock mark can be added for the configuration of new write.
203rd, judge whether it is master control system.If master control system, then execution step 204, if not dual master control system System, then execution step 205.
204th, active and standby synchronization is carried out to the lock mark added.
The present embodiment carries out active and standby synchronous method to the lock mark added and is not construed as limiting, and is that those skilled in the art know Technology, and can be set according to actual needs, be repeated in this step.
205th, when groove position A has board heat insertion again, judge to be currently inserted into the type of board and groove position A last insertion plate Whether the type of card is identical, if identical, execution step 206, and if differing, delete the first configuration information, this flow process terminates.
As an embodiment of the present embodiment, if being currently inserted into type last insertion with current groove position A of board The type of board is identical, then in the corresponding memory cell of groove position A, the first configuration information of storage mates with being currently inserted into board, that is, should First configuration information of storage can be continuing with;If being currently inserted into the type of board and the class of groove position A last insertion board Type differs, then in the corresponding memory cell of groove position A, the first configuration information of storage mismatches with being currently inserted into board, and that is, this is deposited First configuration information of storage cannot be continuing with.
206th, add first state mark for each configuration in the first configuration information, and first state mark is arranged For disarmed state;Software module belonging to each configuration in the first configuration information adds the second status indicator, and by second Status indicator is set to disarmed state.
As an embodiment of the present embodiment, the corresponding operating after board can be inserted by heat is identified, this Sample, can simplify in subsequent step, corresponding information and process progress be obtained and is controlled.
Further, when first state is designated effective status, this first configuration variation mark can be, but not limited to use It is replaced in characterizing corresponding configuration in the first configuration information, when first state is designated disarmed state, this first state Mark can be, but not limited to not be replaced for characterizing corresponding configuration in the first configuration information.
When the second status indicator is effective status, this second status indicator is used for related at least one of characterization software module Individual configuration has been replaced by the configuration in corresponding second configuration information, and when the second status indicator is disarmed state, this second Status indicator is used at least one related configuration of characterization software module and is not replaced by joining in corresponding second configuration information Put.
Further, if master control system, then the first configuration conversion mark and the second status indicator added is carried out Active and standby synchronization.
The present embodiment is not construed as limiting to the species of configuration conversion mark and method to set up, can be set according to actual needs Fixed, will not be described here.
207th, network communication equipment executes each configuration in the first configuration information by software module.
Further, each software module is used for all configurations of its correlation in execution the first configuration information, and sends The notification message of the configuration variation of groove position A of this software module.
208th, network communication equipment arranges and starts configuration and collects timer.
The timing time length that the present embodiment collects timer to configuration is not construed as limiting, and can be set according to actual needs Fixed, will not be described here.
209th, network communication equipment receives the notification message of the groove position A configuration variation that all software modules send.
As an embodiment of the present embodiment, when each configuration in the first configuration information is by affiliated software mould After block execution, corresponding configuration in the first configuration information after being performed there occurs change, accordingly, it would be desirable to there occurs change Configuration is collected and updates.Wherein, after the configuration in the first configuration information there occurs change, the software module of execution configuration The notification message of groove position A configuration variation can be generated, and this notification message is sent to the relevant treatment mould of network communication equipment Block, so that the related process module of network communication equipment is processed accordingly to notification message.
Specifically, network communication equipment receive the configuration variation that all software modules send notification message can but do not limit In inclusion:
Related process module (can be network management center) in network communication equipment can receive corresponding software mould The configuration variation notification message that block sends.
Further, process configuration variation notification message can include:Obtain the second configuration information, the second configuration information is Collect the result of execution the first configuration information;Refresh corresponding configuration in the first configuration information using the second configuration information.
What deserves to be explained is, the result that the first configuration information obtains after being performed can be the second configuration information, to After one configuration information is processed, the lock mark that it comprises is constant, in other words, the lock mark of each configuration in the first configuration information The lock mark of configuration corresponding with the second configuration information is identical.
210th, obtain the second configuration information, refresh corresponding configuration in the first configuration information using the second configuration information.
In this step, obtain the second configuration information can be, but not limited to including:
Collect configuration information to all software modules of send configuration change notification message, obtain the second configuration information.
The present embodiment is not construed as limiting to the method collecting configuration information to software module, is known to those skilled in the art say Technology, and can be set according to actual needs, be will not be described here.
In this step, refresh corresponding configuration in the first configuration information using the second configuration information and can be, but not limited to wrap Include:
Using the second configuration information, configuration corresponding with the second configuration information in the first configuration information is replaced;Delete Except each lock mark being replaced configuration in the first configuration information;By each configuration being replaced in the first configuration information First state mark is set to effective status, and the second status indicator by the software module belonging to each configuration being replaced It is set to effective status.
Further, if master control system, then identified to deleting, modification first state mark and first state identify The operation such as state carry out active and standby synchronization.
211st, after timer expiry is collected in configuration, judge whether the software mould belonging to configuration in the first configuration information Block second status indicator is disarmed state, if existing, the step collecting configuration to software module in execution step 210, if not Exist, then execution step 212.
In order to avoid due to being not carried out configuring refresh step being deleted, therefore, needing to obtain again first Second status indicator of the software module belonging to configuration in configuration information is disarmed state it is possible to reacquire the first configuration The second status indicator belonging to configuring in information is corresponding second configuration information of software module of disarmed state.
What deserves to be explained is, if judging in this step to there is the software module having in the first configuration information belonging to configuration The second status indicator be disarmed state, then obtaining the second configuration information can include:
To in the first configuration information, the second affiliated status indicator is the software module collection configuration information of disarmed state, obtains Take the second configuration information.
212nd, delete the configuration that first state in the first configuration information is designated disarmed state.
As an embodiment of the present embodiment, now the first configuration conversion is designated the first configuration letter of effective status Cease and configure accordingly for being replaced by the second configuration information, the configuration that first state is designated disarmed state is not replaced, It is likely due to the configuration that these are not replaced and is not carried out successfully, in order to be not take up excessive memory space, can delete and not hold Configuration in successful first configuration information of row.
As an embodiment of the present embodiment, if groove position A inserts type and this groove position A last insertion plate of board The type of card differs, then the first configuration information of this storage cannot be continuing with, and therefore, deletes the first configuration information.
Further, if master control system, then active and standby synchronization is carried out to the first configuration information deleted.
What deserves to be explained is, during execution above-mentioned steps 206 to 212, if the board of groove position A is heat-pulled, it is Lock mark and first state mark are added in first configuration information each configuration, and first state mark is set to invalid State;Software module belonging to each configuration in the first configuration information adds the second status indicator, and by the second state mark Know and be set to disarmed state.
After such scheme, network communication equipment is executing the first configuration information and is getting the second configuration information Afterwards, the second configuration information is recycled to refresh corresponding configuration in the first configuration information, when network communication equipment has been not carried out configuration During refreshing, do not delete the first configuration information, in other words, only executed the first configuration information in network communication equipment and got After second configuration information, then delete the corresponding configuration in the first configuration information corresponding with the second configuration information, as such, it is possible to Ensure, when hot drawing goes out immediately after heat insertion, not deleting the first configuration information, it is to avoid in quickly hot-swappable middle loss first configuration Information;In addition, by being identified to the operation that network communication equipment executes, can simplify in subsequent step, to corresponding Information and process progress are obtained and are controlled.
Some device embodiments are provided below, this device embodiment can embodiment of the method phase corresponding with above-mentioned offer Corresponding.
The present embodiment provides a kind of network communication equipment, as shown in figure 3, can include:
Hot insertion process unit 31, when having board heat insertion for currently a certain groove position, if be currently inserted into the type of board Identical with the type of the currently last insertion in a certain groove position board, then execute the first configuration information of storage, the first configuration information Configuration information for last insertion board;Obtain the second configuration information, the second configuration information is to collect execution the first configuration letter The result of breath;Refresh corresponding configuration in the first configuration information using the second configuration information.
After such scheme, network communication equipment is executing the first configuration information and is getting the second configuration information Afterwards, the second configuration information is recycled to refresh corresponding configuration in the first configuration information, when network communication equipment has been not carried out configuration During refreshing, do not delete the first configuration information, in other words, only executed the first configuration information in network communication equipment and got After second configuration information, then delete the corresponding configuration in the first configuration information corresponding with the second configuration information, as such, it is possible to Ensure, when hot drawing goes out immediately after heat insertion, not deleting the first configuration information, it is to avoid in quickly hot-swappable middle loss first configuration Information.
The present embodiment provides another kind of network communication equipment, and this network communication equipment is that the network service shown in Fig. 3 is set Standby further expands, as shown in figure 4, can include:
Hot insertion process unit 41, when having board heat insertion for currently a certain groove position, if be currently inserted into the type of board Identical with the type of the currently last insertion in a certain groove position board, then execute the first configuration information of storage, the first configuration information Configuration information for last insertion board;Obtain the second configuration information, the second configuration information is to collect execution the first configuration letter The result of breath;Refresh corresponding configuration in the first configuration information using the second configuration information.
Further, network communication equipment also includes:
Hot drawing goes out processing unit 42, for when the last insertion board of current a certain groove position is heat-pulled, collecting simultaneously Store the first configuration information, be that lock mark is added in each configuration in the first configuration information, lock mark does not show for instruction Configuration information with this lock mark, the first configuration information includes at least one configuration.
Further, network communication equipment includes at least one software module 43;
Hot insertion process unit 41, specifically for adding first state mark for each configuration in the first configuration information Know, and first state mark is set to disarmed state;Software module belonging to each configuration in the first configuration information adds Plus second status indicator, and the second status indicator is set to disarmed state;First configuration information is executed by software module;Connect Receive the notification message of the currently a certain groove position configuration variation that software module sends.
At least one software module 43 described, specifically for executing all configurations of its correlation in the first configuration information, and Send the notification message of the configuration variation of described currently a certain groove position of this software module.
Further, hot insertion process unit 41, specifically for collecting to each software module sending a notification message Configuration information, obtains the second configuration information.
Further, hot insertion process unit 41, specifically for using the second configuration information, by the first configuration information with The corresponding configuration of second configuration information is replaced;Delete each lock mark being replaced configuration in the first configuration information;Will The first state mark of each configuration being replaced in the first configuration information is set to effective status, and each is replaced The second status indicator of software module belonging to configuration be set to effective status.
Further, hot insertion process unit 41, is additionally operable to, after timer expiry is collected in configuration, judge whether the Second status indicator of the software module belonging to configuration in one configuration information is disarmed state;In this way, to the first configuration information Second status indicator belonging to middle configuration is that the software module of disarmed state collects configuration information, obtains the second configuration information.
Further, hot insertion process unit 41, is additionally operable to refreshing in the first configuration information using the second configuration information After corresponding configuration, delete the configuration that first state in the first configuration information is designated disarmed state.
Further, hot drawing goes out processing unit 42, is additionally operable to when the board of current a certain groove position is heat-pulled, is first Lock mark and first state mark are added in each configuration in configuration information, and first state mark is set to invalid shape State;Software module belonging to each configuration in the first configuration information adds the second status indicator, and by the second status indicator It is set to disarmed state.
After such scheme, network communication equipment is executing the first configuration information and is getting the second configuration information Afterwards, the second configuration information is recycled to refresh corresponding configuration in the first configuration information, when network communication equipment has been not carried out configuration During refreshing, do not delete the first configuration information, in other words, only executed the first configuration information in network communication equipment and got After second configuration information, then delete the corresponding configuration in the first configuration information corresponding with the second configuration information, as such, it is possible to Ensure, when hot drawing goes out immediately after heat insertion, not deleting the first configuration information, it is to avoid in quickly hot-swappable middle loss first configuration Information;In addition, by being identified to the operation that network communication equipment executes, can simplify in subsequent step, to corresponding Information and process progress are obtained and are controlled.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can borrow Help software to add the mode of necessary common hardware to realize naturally it is also possible to pass through hardware, but the former is more preferably in many cases Embodiment.Based on such understanding, the portion that technical scheme substantially contributes to prior art in other words Divide and can be embodied in the form of software product, this computer software product is stored in the storage medium that can read, such as count The floppy disk of calculation machine, hard disk or CD etc., including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) method described in execution each embodiment of the present invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.

Claims (8)

1. the method that hot-swappable board configuration information is processed is it is characterised in that include:
When currently there is board heat insertion a certain groove position, if the type being currently inserted into board is last with described currently a certain groove position inserting The type entering board is identical, then the first configuration information of system execution storage, and described first configuration information is described last slotting Enter the configuration information of board;
Obtain the second configuration information, described second configuration information is the result collecting execution the first configuration information;
Refresh corresponding configuration in the first configuration information using described second configuration information;
Before there is board heat insertion described currently a certain groove position, methods described also includes:
When the described last insertion board of described currently a certain groove position is heat-pulled, collect and store described first configuration letter Breath, is that lock mark is added in described first configuration information each configuration, and described lock mark does not show with should for instruction The configuration information of lock mark, described first configuration information includes at least one configuration;
First configuration information of described system execution storage, specifically includes:
Add first state mark for each configuration in described first configuration information, and first state mark is set to no Effect state;Software module belonging to every configuration in described first configuration information adds the second status indicator, and by the second shape State mark is set to disarmed state;
Described software module executes the configuration in the first configuration information, starts configuration and collects timer;
After each software module has executed its all relevant configuration in the first configuration information, send the described of this software module and work as The notification message of the configuration variation of front a certain groove position.
2. method according to claim 1 is it is characterised in that described acquisition second configuration information includes:
Collect configuration information to each software module sending a notification message, obtain the second configuration information;
Using described second configuration information, configuration corresponding with described second configuration information in the first configuration information is replaced Change;
Delete each lock mark being replaced configuration in the first configuration information;
The first state mark of each configuration being replaced in the first configuration information is set to effective status, and by each Second status indicator of the software module belonging to configuration being replaced is set to effective status.
3. method according to claim 2 is it is characterised in that after timer expiry is collected in configuration, judge whether Second status indicator of the software module belonging to configuration in described first configuration information is disarmed state;In this way, then to described In first configuration information, the second status indicator belonging to each configuration is the software module collection configuration information of disarmed state, obtains Take the second configuration information;Otherwise delete the configuration that first state in described first configuration information is designated disarmed state.
4. according to the method in claim 2 or 3 it is characterised in that methods described also includes:
When the board of described currently a certain groove position is heat-pulled, it is that lock is added in each configuration in described first configuration information Mark and first state mark, and described first state mark is set to disarmed state;For every in described first configuration information Software module belonging to bar configuration adds the second status indicator, and the second status indicator is set to disarmed state.
5. a kind of network communication equipment is it is characterised in that include:
Hot insertion process unit, when having board heat insertion for currently a certain groove position, if be currently inserted into the type of board with described Currently the type of the last insertion in a certain groove position board is identical, then execute the first configuration information of storage, described first configuration letter Cease the configuration information for described last insertion board;Obtain the second configuration information, described second configuration information is to collect execution The result of the first configuration information;Refresh corresponding configuration in the first configuration information using described second configuration information;
Described network communication equipment also includes:
Hot drawing goes out processing unit, for when the described last insertion board of described currently a certain groove position is heat-pulled, collecting And store described first configuration information, it is that lock mark, described lock mark are added in each configuration in described first configuration information Do not show the configuration information with this lock mark for instruction, described first configuration information includes at least one configuration;
Described network communication equipment includes at least one software module;
Described hot insertion process unit, specifically for adding first state mark for each configuration in described first configuration information Know, and first state mark is set to disarmed state;Software module belonging to every configuration in described first configuration information Add the second status indicator, and the second status indicator is set to disarmed state;By described software module execution first configuration All in information configure and start configuration and collect timer;
Described software module, specifically for executing all configurations of its correlation in the first configuration information, and sends this software module The configuration variation of described currently a certain groove position notification message.
6. network communication equipment according to claim 5 is it is characterised in that described hot insertion process unit, specifically for Collect configuration information to each software module sending a notification message, obtain the second configuration information;
Described hot insertion process unit, for using described second configuration information, joining with described second in the first configuration information Confidence ceases corresponding configuration and is replaced;Delete each lock mark being replaced configuration in the first configuration information;First is joined The first state mark of each configuration being replaced in confidence breath is set to effective status, and the configuration that each is replaced Second status indicator of affiliated software module is set to effective status.
7. network communication equipment according to claim 6, it is characterised in that described hot insertion process unit, is additionally operable to work as After timer expiry is collected in configuration, judge whether second of the software module belonging to configuration in described first configuration information Status indicator is disarmed state;In this way, then the second status indicator belonging to the configuration in described first configuration information is invalid The software module of state collects configuration information, obtains the second configuration information;Otherwise delete the first shape in described first configuration information State is designated the configuration of disarmed state.
8. the network communication equipment according to claim 6 or 7, it is characterised in that described hot drawing goes out processing unit, is additionally operable to When the board of described currently a certain groove position is heat-pulled, it is that lock mark is added in each configuration in described first configuration information Identify with first state, and described first state mark is set to disarmed state;For each in described first configuration information Software module belonging to configuration adds the second status indicator, and the second status indicator is set to disarmed state.
CN201310209804.8A 2013-05-30 2013-05-30 Method for processing configuration information of hot plug board card, and network communication device Active CN103346898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310209804.8A CN103346898B (en) 2013-05-30 2013-05-30 Method for processing configuration information of hot plug board card, and network communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310209804.8A CN103346898B (en) 2013-05-30 2013-05-30 Method for processing configuration information of hot plug board card, and network communication device

Publications (2)

Publication Number Publication Date
CN103346898A CN103346898A (en) 2013-10-09
CN103346898B true CN103346898B (en) 2017-02-15

Family

ID=49281674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310209804.8A Active CN103346898B (en) 2013-05-30 2013-05-30 Method for processing configuration information of hot plug board card, and network communication device

Country Status (1)

Country Link
CN (1) CN103346898B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105142240B (en) * 2015-07-31 2019-07-02 小米科技有限责任公司 Network setting method and device
CN109729530B (en) * 2017-10-31 2021-03-09 大唐移动通信设备有限公司 Cell establishing method and device
CN109495383B (en) * 2018-12-13 2021-02-05 迈普通信技术股份有限公司 Data processing method, device, communication system and network equipment
CN110457074A (en) * 2019-07-26 2019-11-15 新华三技术有限公司成都分公司 Configuration method, device, electronic equipment and the storage medium of calculate node
CN110795377A (en) * 2019-09-12 2020-02-14 北京比特大陆科技有限公司 Method and device for hot plugging of chip, computer, equipment, medium and product
CN110908943A (en) * 2019-12-09 2020-03-24 迈普通信技术股份有限公司 Board card automatic adapting method, device, network equipment and storage medium
CN112860489B (en) * 2021-02-20 2024-02-09 杭州迪普科技股份有限公司 Equipment configuration recovery method and device
CN112835646A (en) * 2021-02-20 2021-05-25 杭州迪普科技股份有限公司 Equipment configuration recovery method and device
CN113556249B (en) * 2021-07-20 2024-06-28 浪潮思科网络科技有限公司 Hot plug method, device, equipment and medium based on single-chip switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440180A (en) * 2003-03-27 2003-09-03 新太科技股份有限公司 112 testboard gating array
CN101079734A (en) * 2007-06-22 2007-11-28 中兴通讯股份有限公司 A hot plug configuration recovery method of rack device
WO2010138824A2 (en) * 2009-05-28 2010-12-02 Microblade, Llc Microtca device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130786B (en) * 2011-02-21 2014-08-20 华为技术有限公司 Method and device for updating characteristics of single board

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440180A (en) * 2003-03-27 2003-09-03 新太科技股份有限公司 112 testboard gating array
CN101079734A (en) * 2007-06-22 2007-11-28 中兴通讯股份有限公司 A hot plug configuration recovery method of rack device
WO2010138824A2 (en) * 2009-05-28 2010-12-02 Microblade, Llc Microtca device

Also Published As

Publication number Publication date
CN103346898A (en) 2013-10-09

Similar Documents

Publication Publication Date Title
CN103346898B (en) Method for processing configuration information of hot plug board card, and network communication device
WO2022063322A1 (en) Hard drive migration method, distributed storage cluster system and storage medium
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN106484565B (en) Method of data synchronization and relevant device between multiple data centers
CN107919977B (en) Online capacity expansion and online capacity reduction method and device based on Paxos protocol
CN112235136B (en) Network file system backup method, system, terminal and storage medium
CN104346373A (en) Partition log queue synchronization management method and device
US9525733B2 (en) Method and system for data synchronization
CN103488721B (en) Database bisynchronous method and system for master and slave boards
CN103176831A (en) Virtual machine system and management method thereof
CN101808010B (en) Equipment management method and equipment management device and main control board
CN107562494A (en) A kind of method for updating memory SPD firmware
CN111666266A (en) Data migration method and related equipment
CN104486448B (en) A kind of data processing method and device
CN113626226B (en) Data communication method and device, processor and computer storage medium
CN104461779B (en) A kind of storage method of distributed data, apparatus and system
CN103049298A (en) Nandflash burning writing method
WO2015117356A1 (en) Start-up method and communication terminal
CN103188099B (en) A kind of backup method of multi-application system, Apparatus and system
CN102929560B (en) Disk array system capable of being dynamically adjusted and method for adjusting same
CN107148612A (en) A kind of method and apparatus of extending user subregion
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN105511808B (en) Data operation method, system and related device
CN113312138A (en) Virtual machine migration method, device, system and storage medium

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