CN105490817B - Interface board hot plug processing method and device - Google Patents

Interface board hot plug processing method and device Download PDF

Info

Publication number
CN105490817B
CN105490817B CN201410531528.1A CN201410531528A CN105490817B CN 105490817 B CN105490817 B CN 105490817B CN 201410531528 A CN201410531528 A CN 201410531528A CN 105490817 B CN105490817 B CN 105490817B
Authority
CN
China
Prior art keywords
interface
power
stage
specified
interface 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
CN201410531528.1A
Other languages
Chinese (zh)
Other versions
CN105490817A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410531528.1A priority Critical patent/CN105490817B/en
Priority to PCT/CN2015/073035 priority patent/WO2016054887A1/en
Publication of CN105490817A publication Critical patent/CN105490817A/en
Application granted granted Critical
Publication of CN105490817B publication Critical patent/CN105490817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method and a device for hot plug processing of an interface board, wherein the method comprises the following steps: and respectively managing the specified equipment and the specified interface according to the equipment linked list and the interface linked list. The method and the device solve the problems that the interface boards cannot be plugged and unplugged randomly and a plurality of interface boards cannot be plugged and unplugged simultaneously in the prior art, thereby improving the flexibility of hot plugging operation of a user and improving the user experience.

Description

Interface board hot plug processing method and device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for hot plug processing of an interface board.
Background
With the development of network technology, in order to meet the requirements of different services and protocol configurations, it is necessary to frequently change interface boards online. The interface board is replaced on line, namely, the interface board is hot plugged under the condition of no power failure, and the normal operation of other equipment or services in the system is not influenced. In the medium/high-end type routing switching equipment, the hot plug technology has become one of the signs of product reliability.
In the medium/high end route switching device, the design of the service/forwarding function is generally implemented by using a "line card + a plurality of interface boards". At present, hot plug technology is basically implemented in the middle/high-end routing switch equipment in the industry. However, there are some limitations in hot plug operations in the industry, such as pressing a button before unplugging an interface board to make the system sense the unplugged action in advance, or looking at the flashing of the lamp corresponding to the interface board to confirm whether the unplugged operation can be executed. In addition, the hot plug operation in the industry does not describe the operation that can support hot plug of multiple interface boards at the same time, and the processing technology of the upper layer of the hot plug software of the interface boards, such as pulling out the interface board a and then inserting the interface board a, or inserting the interface board B and processing technology of the upper layer of the software.
In order to solve the problems that the interface boards cannot be plugged and unplugged arbitrarily and a plurality of interface boards cannot be plugged and unplugged simultaneously in the related art, no effective solution is provided.
Disclosure of Invention
The invention provides a method and a device for hot plug processing of an interface board, which at least solve the problem that the interface board cannot be plugged and unplugged randomly and a plurality of interface boards cannot be plugged and unplugged simultaneously in the prior art.
According to an aspect of the present invention, a method for hot plug processing of an interface board is provided, which includes: configuring a device chain table of an interface board and an interface chain table of the interface board, wherein the device chain table is used for indicating a power-on stage of a specified device in the interface board, and the interface chain table is used for indicating the power-on stage of the specified interface in the interface board; and respectively managing the designated equipment and the designated interface according to the equipment linked list and the interface linked list.
Preferably, the power-up phase comprises one of: the power-on stage, the power-on success stage and the power-off stage.
Preferably, configuring the device chain table of the interface board and the interface chain table of the interface board includes: when the line card is inserted into the line card, adding the specified equipment into an equipment chain table used for indicating that the specified equipment is in the power-on stage, and adding the specified interface into an interface chain table used for indicating that the specified interface is in the power-on stage; after the initialization of the designated equipment is completed, the designated equipment is moved into an equipment chain table used for indicating that the designated equipment is in the power-on successful stage, and after the initialization of the designated interface is completed, the designated interface is moved into an interface chain table used for indicating that the designated interface is in the power-on stage.
Preferably, configuring the device chain table of the interface board and the interface chain table of the interface board includes: when the line card is unplugged, the designated equipment is moved into an equipment chain table used for indicating the designated equipment to be in the power-down stage, and the designated interface is moved into an interface chain table used for indicating the designated interface to be in the power-down stage.
Preferably, the method further comprises: when the specified device does not exist in the device chain table for indicating that the specified device is in the successful power-on stage and the device chain table for indicating that the specified device is in the power-on stage, judging that a pull-out signal of the interface board is an abnormal signal: or, when the specified interface does not exist in the interface linked list used for indicating that the specified interface is in the power-on successful stage and the equipment linked list used for indicating that the specified interface is in the power-on stage, judging that the unplugging signal of the interface board is an abnormal signal.
According to another aspect of the present invention, there is also provided a device for hot plug processing of an interface board, including: the configuration module is used for configuring a device chain table of an interface board and an interface chain table of the interface board, wherein the device chain table is used for indicating a power-on stage of a specified device in the interface board, and the interface chain table is used for indicating the power-on stage of the specified interface in the interface board; and the management module is used for respectively managing the specified equipment and the specified interface according to the equipment linked list and the interface linked list.
Preferably, the power-up phase comprises one of: the power-on stage, the power-on success stage and the power-off stage.
Preferably, the configuration module is further configured to, when the interface board is inserted into a line card, add the specified device into a device chain table used for indicating that the specified device is in the power-on stage, and add the specified interface into an interface chain table used for indicating that the specified interface is in the power-on stage; after the initialization of the designated equipment is completed, the designated equipment is moved into an equipment chain table used for indicating that the designated equipment is in the power-on successful stage, and after the initialization of the designated interface is completed, the designated interface is moved into an interface chain table used for indicating that the designated interface is in the power-on stage.
Preferably, the configuration module is further configured to, when the interface board is unplugged from the line card, move the specified device into a device chain table used for indicating that the specified device is in the power-down phase, and move the specified interface into an interface chain table used for indicating that the specified interface is in the power-down phase.
Preferably, the apparatus further comprises: a judging module, configured to judge that the unplugging signal of the interface board is an abnormal signal if the specified device does not exist in the device chain table used for indicating that the specified device is in the successful power-on stage and the device chain table used for indicating that the specified device is in the power-on stage: or, if the specified interface does not exist in the interface linked list used for indicating that the specified interface is in the power-on successful stage and the equipment linked list used for indicating that the specified interface is in the power-on stage, judging that the unplugging signal of the interface board is an abnormal signal.
According to the invention, the equipment linked list of the interface board and the interface linked list of the interface board are configured, wherein the equipment linked list is used for indicating the power-on stage of the specified equipment in the interface board, the interface linked list is used for indicating the power-on stage of the specified interface in the interface board, and the specified equipment and the specified interface are respectively managed according to the equipment linked list and the interface linked list. The problem of among the prior art, can not carry out arbitrary plug to the interface board and can not carry out the plug to a plurality of interface boards simultaneously is solved, and then improved the flexibility of user operation hot plug, promoted user experience.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a hot plug processing method for an interface board according to an embodiment of the present invention;
fig. 2 is a block diagram of a hot plug processing device of an interface board according to an embodiment of the present invention;
fig. 3 is a first block diagram of a hot plug processing device of an interface board according to an embodiment of the present invention;
fig. 4 is a structural imitation diagram of an implementation apparatus of a plug interface board at any time according to an embodiment of the present invention;
FIG. 5 is a first management block diagram of a device chain table of a hot plug interface board according to a power-on phase, a power-on success phase, and a power-off phase according to an embodiment of the present invention;
FIG. 6 is a management block diagram II of an interface chain table of a hot plug interface board according to a power-on phase, a power-on success phase and a power-off phase according to the embodiment of the present invention;
FIG. 7 is a state transition diagram for a power-up phase, a power-up success phase, and a power-down phase according to an embodiment of the invention;
fig. 8 is a flowchart of an interface board unplugged according to an embodiment of the invention;
fig. 9 is a flow chart of multi-interface board insertion according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a flowchart of an interface board hot plug processing method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
step S102, configuring a device chain table of an interface board and an interface chain table of the interface board, wherein the device chain table is used for indicating a power-on stage of a specified device in the interface board, and the interface chain table is used for indicating the power-on stage of the specified interface in the interface board;
and step S104, managing the specified equipment and the specified interface respectively according to the equipment linked list and the interface linked list.
Through the steps, the management of the equipment and the interfaces of the interface board is realized by configuring the equipment linked list and the interface linked list of the interface board, compared with the prior art that a button needs to be pressed before the interface board is pulled out, the system senses the pulling action in advance, or needs to see the flicker of the lamp corresponding to the interface board to confirm whether the pulling operation can be executed or not, the steps solve the problems that the interface board cannot be pulled out and plugged in any way and a plurality of interface boards cannot be pulled out and plugged simultaneously in the prior art, further improve the flexibility of hot plug of user operation, and improve the user experience.
The power-on phase may include a plurality of states of the interface board device or the interface of the interface board, for example, the power-on phase includes one of the following: the power-on stage, the power-on success stage and the power-off stage.
The step S102 relates to configuring the device chain table of the interface board and the interface chain table of the interface board, and it should be noted that there are many implementation manners for configuring the device chain table of the interface board and the interface chain table of the interface board;
(1) in a preferred embodiment, configuring a device chain table of an interface board and an interface chain table of the interface board includes: when an interface board is inserted into a line card, adding a specified device into a device chain table used for indicating that the specified device is in a power-on stage, and adding a specified interface into an interface chain table used for indicating that the specified interface is in the power-on stage; after the initialization of the designated equipment is completed, the designated equipment is moved into an equipment chain table used for indicating that the designated equipment is in a power-on successful stage, and after the initialization of the designated interface is completed, the designated interface is moved into an interface chain table used for indicating that the designated interface is in a power-on stage.
(2) In another preferred embodiment, when the line card is unplugged, the specified device is moved into a device chain table for indicating that the specified device is in the power-down stage, and the specified interface is moved into an interface chain table for indicating that the specified interface is in the power-down stage.
In a preferred embodiment, when the interface board is inserted into the line card, if there is no specific device in the device chain table for indicating that the specific device is in a successful power-on stage and in the device chain table for indicating that the specific device is in a power-on stage, the unplugging signal of the interface board is determined to be an abnormal signal: or, if the interface chain table for indicating that the specified interface is in the power-on successful stage and the equipment chain table for indicating that the specified interface is in the power-on stage do not have the specified interface, judging that the unplugging signal of the interface board is an abnormal signal.
In this embodiment, a device for hot plug processing of an interface board is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details of the description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a hot plug processing apparatus for an interface board according to an embodiment of the present invention, and as shown in fig. 2, the apparatus includes: the configuration module 22 is configured to configure a device chain table of an interface board and an interface chain table of the interface board, where the device chain table is used to indicate a power-on stage where a specified device in the interface board is located, and the interface chain table is used to indicate a power-on stage where a specified interface in the interface board is located; and the management module 24 is connected to the configuration module 22 and is configured to manage the designated device and the designated interface according to the device chain table and the interface chain table, respectively.
Preferably, the power-up phase comprises one of: the power-on stage, the power-on success stage and the power-off stage.
Preferably, the configuration module 22 is further configured to, when the line card is inserted into the interface board, add the specified device into a device chain table used for indicating that the specified device is in a power-on stage, and add the specified interface into an interface chain table used for indicating that the specified interface is in a power-on stage; after the initialization of the designated device is completed, the designated device is moved into a device chain table used for indicating that the designated device is in the power-on successful stage, and after the initialization of the designated interface is completed, the designated interface is moved into an interface chain table used for indicating that the designated interface is in the power-on stage.
Preferably, the configuration module 22 is further configured to, when the line card is unplugged, move the specified device into a device chain table for indicating that the specified device is in a power-down phase, and move the specified interface into an interface chain table for indicating that the specified interface is in a power-down phase.
Fig. 3 is a first block diagram of a structure of a hot plug processing apparatus for an interface board according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes, in addition to the modules shown in fig. 2: a judging module 26, configured to judge that the unplugging signal of the interface board is an abnormal signal if the specified device does not exist in the device chain table used for indicating that the specified device is in the successful power-on stage and the device chain table used for indicating that the specified device is in the power-on stage: or, if the interface chain table for indicating that the specified interface is in the power-on successful stage and the equipment chain table for indicating that the specified interface is in the power-on stage do not have the specified interface, judging that the unplugging signal of the interface board is an abnormal signal.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the configuration module 22, the management module 24 and the judgment module 26 are all located in the same processor; alternatively, the configuration module 22, the management module 24, and the determination module 26 are located in the first processor, the second processor, and the third processor, respectively.
In view of the above problems in the related art, the following description will be made in conjunction with a preferred embodiment, in which the above embodiments and their preferred embodiment modes are combined.
An object of the preferred embodiment is to provide a method for supporting hot plugging of multiple interface boards at any time, so as to solve multiple limitations on the plugged interface boards in the existing hot plugging, and improve flexibility of hot plugging operations of a user on the interface boards.
The hot plugging of the interface board related to the preferred embodiment is the condition that the line card has a CPU and the interface board has no CPU. The preferred embodiment provides the following technical solutions:
a method for supporting hot plug of multiple interface boards at any time includes hot plug management module and interface configuration management module. In the preferred embodiment, the key point is a hot plug management module, which is mainly implemented as follows:
the interface board refers to a plurality of chips (herein, we refer to the interface board chip as a device) on the interface board, and a plurality of interfaces on the interface board. The invention uses the method of the single chain table to respectively manage a plurality of devices and a plurality of interfaces of the interface board, which are respectively called as a device chain table and an interface chain table.
In the preferred embodiment, the devices of the interface board are divided into a power-on stage, a power-on success stage and a power-off stage. Each stage has independent equipment linked list management, so the equipment linked list at the power-on stage, the equipment linked list at the power-on successful stage and the equipment linked list at the power-off stage are respectively called.
In the preferred embodiment, the interface of the interface board is divided into a power-on stage, a power-on success stage and a power-off stage. Each stage has separate interface chain table management. Therefore, the interface linked list in the power-on stage, the interface linked list in the power-on success stage and the interface linked list in the power-off stage are respectively called.
In the preferred embodiment, the device is in the stages of device initialization, device self-test, and the like in the power-on stage; the successful equipment power-on stage is that a series of operations related to equipment initialization, such as equipment initialization completion, are finished; the equipment power-off stage is that after the interface board is pulled out, the sub-slot position where the interface board is located is not inserted, and the state of the equipment on the interface board maintained in the system is the equipment power-off stage.
In the preferred embodiment, the interface is in a power-on stage or a non-configuration use stage; the successful power-on stage of the interface is an interface configurable stage which can carry out normal working; the interface power-off stage is a power-off stage when the interface board is pulled out, the sub-slot position where the interface board is located is not inserted, and the state of the interface board on the interface board maintained in the system is a power-off stage.
When an interface board is inserted, the hot plug module receives a hot plug interface board signal and executes the following steps:
firstly, adding the device object of the hot-plug interface board which needs to be initialized and other operations into the device chain table at the power-on stage, adding all the interface objects of the hot-plug interface board into the interface chain table at the power-on stage, and initializing, self-checking and other operations by the hot-plug module according to the device nodes in the device chain table at the power-on stage;
then, after the equipment in the equipment linked list in the power-on stage completes initialization and other operations, the equipment linked list in the power-on stage is moved into the equipment linked list in the power-on successful stage, and meanwhile, the interface in the interface linked list in the power-on stage is notified to an interface management configuration module;
finally, after the interface in the interface linked list in the power-on stage is informed to the interface management configuration module, the interface linked list in the power-on stage is moved into the interface linked list in the power-on successful stage;
the above is the processing steps of the hot plug module of the hot plug interface board.
When an interface board is unplugged, the hot plug module receives a signal of hot unplugging the interface board and executes the following steps:
preferably, whether the equipment of the unplugged interface board exists is searched from the equipment linked list which is successfully electrified, if so, the equipment related to the unplugged interface board is moved into the equipment linked list in the power-off stage from the equipment linked list which is successfully electrified;
preferably, whether an interface of the unplugged interface board exists is searched from the interface linked list which is successfully electrified, if so, the interface related to the unplugged interface board is moved into the interface linked list in the power-down stage from the interface linked list which is successfully electrified;
when a plurality of interface boards are inserted into the same line card at a certain time, the hot plug module interfaces to the signals of the plurality of hot plug interface boards. Preferably, the hot plug module processes the received first hot plug after receiving the first hot plug signal, and then processes other interface boards hot plugged in this time period at the same time after the interface board processing of the first hot plug is completed. The steps are the same as the processing steps of hot plugging an interface board;
and simultaneously pulling out one interface board after simultaneously pulling out a plurality of interface boards on the same line card at a certain time.
On the same line card, there are not only plugging interface board but also plugging interface board at a certain time. The interface board is pulled out according to the step of pulling out, and the interface board is inserted into the plurality of interface boards.
On the same line card, it is assumed that the interface of the a interface board has multiple configurations on the line card. And pulling out the interface board A, and then inserting the interface board A, and completely restoring the interface configuration of the interface board A.
In order to make the purpose and technical solution of the present preferred embodiment clearer, the following describes the embodiments of the present preferred embodiment in further detail with reference to the accompanying drawings.
Fig. 4 is a structural diagram of an implementation apparatus for a plug interface board at any time according to an embodiment of the present invention, and as shown in fig. 4, the scenario front is: a line card with a forwarding function can support an interface board inserted with 4 sub-slot positions, and after the line card is successfully started together with the interface board C and the interface board D, the interface board D is pulled out and inserted into the interface board A and the interface board B at a certain moment.
FIG. 5 is a first management block diagram of a device chain table of a hot plug interface board according to a power-on phase, a power-on success phase, and a power-off phase according to an embodiment of the present invention; as shown in fig. 5, after the line card is successfully started together with the interface board C and the interface board D, preferably, the devices C1 and C1 of the interface board C, and the devices D1 and D2 of the interface board D are in the device chain table in the power-on success stage.
When the interface board D is further unplugged, the devices D1 and D2 of the interface board D are moved from the successfully powered device chain table into the device chain table at the power-off stage;
further, an interface board a and an interface board B are inserted, and the device chain table of the interface board a, the devices a1 and a2, and the device B1 is in the power-on stage.
FIG. 6 is a management block diagram II of an interface chain table of a hot plug interface board according to a power-on phase, a power-on success phase and a power-off phase according to the embodiment of the present invention; as shown in fig. 6, after the line card, the interface board C and the interface board D are started successfully together, preferably, the interfaces C1 and C2 of the interface board C and the interfaces D1 and D2 of the interface board D are in the device chain table in the power-on success stage.
When the interface board D is further unplugged, the interfaces D1 and D2 of the interface board D are moved from the successfully powered device chain table into the interface chain table at the power-off stage;
further, interfaces a1 and a2 of interface board a and interface B1 of interface board B are in the interface chain table at the power-up stage.
Fig. 7 is a state transition diagram of a power-up phase, a power-up success phase, and a power-down phase according to an embodiment of the present invention, as shown in fig. 7, further including a power-up phase, a power-up completion phase, and a device chain table state transition of the power-down phase. The method further comprises a power-on stage, a power-on completion stage and interface linked list state transition of a power-off stage.
Fig. 8 is a flowchart of unplugging an interface board according to an embodiment of the invention, which, as shown in fig. 8, comprises the following steps:
step S802: receiving an interrupt signal of the interface board D;
step S804: preferably, according to the physical position of the unplugged interface board D, searching the device D1, D2 of the interface board D in the device chain table at the power-on success stage;
further, if the device of the interface board D is not found in the device chain table at the successful power-on stage, the device chain table at the power-on stage is located according to the physical position of the interface board D;
further, if the hot-unplugging signal is not found in the equipment linked list in the power-on success stage and the equipment linked list in the power-on stage, the hot-unplugging signal is an abnormal signal.
Step S806: preferably, if the devices D1 and D2 of the interface board D are found in the device chain table at the power-on success stage, the device chain table is moved into the device chain table at the power-off stage;
further, if devices D1 and D2 are over-found in the device list during the power-up phase, the device list is moved into the device list during the power-down phase.
Step S808: preferably, according to the physical position of the unplugged interface board D, searching for the interfaces D1 and D2 of the interface board D in the interface chain table at the power-on success stage;
further, if the interface of the interface board D is not found in the interface linked list at the successful power-on stage, the interface is in the interface linked list at the power-on stage according to the physical position of the interface board D;
further, if the hot-unplugging signal is not found in the interface linked list in the power-on success stage and the interface linked list in the power-on stage, the hot-unplugging signal is an abnormal signal.
Step S810: preferably, if the interfaces D1 and D2 of the interface board D are found in the interface linked list in the power-on success stage, the interface list is moved into the interface linked list in the power-off stage;
further, if interfaces D1 and D2 are over-found in the interface chain table in the power-up phase, the interface chain table is moved into the interface chain table in the power-down phase.
Step S812: and recovering and closing the equipment resources and the like related to the interface board D.
Further, according to the interface linked list at the power-off stage, the interface management module is notified to shield the interface of the interface board D.
Step S814: the hot drawing process of the interface board D is completed.
Fig. 9 is a flow chart of multi-interface board insertion according to an embodiment of the present invention, and preferably, before proceeding with the description of fig. 9, it is necessary to clarify several memory areas managed by the hot plug management module.
Processing a hot plug interface board memory block on a line card: recording an interface board in the current hot plug flow managed by the hot plug management module, wherein the interface board comprises one or more interface boards, and the memory block also records a record which only indicates the characteristics of the interface board, so that the interface board currently processed by hot plug is conveniently managed;
historical sub-slot interface board memory blocks on the line card: the related characteristics of the interface board of the electrified sub slot position and the interface board of the unplugged sub slot position are recorded, such as the interface board name of the interface board and the like, which only indicate the record of the characteristics of the interface board, so that the hot plug situation (the hot plug situation description is carried out later) to which the hot plug interface board belongs can be conveniently judged.
And hot insertion of a memory block to be processed of an interface board on a line card: recording the characteristics of inserting one or more interface boards and indicating the unique marks of the interface boards in the hot plug flow being processed, aiming at not influencing the hot plug flow being processed and facilitating the execution of the hot plug flow next time.
Before proceeding further with the description of fig. 9, three scenarios of hot-plug interface boards need to be elucidated. The scene precondition line card is in a normal operation stage, the sub slot position is used as a carrier, and the kind of the interface board hot-plugged on the carrier is divided into scenes as follows:
the atomic slot position has no interface board, and the hot plug interface board is called scene 1 for short;
the atomic slot position is an interface board SubCard1 once, and is inserted into an interface board SubCard1 after being pulled out, which is called scene 2 for short;
the atomic slot position is an interface board SubCard1 once, and is inserted into an interface board SubCard2, which is called scene 3 for short after being pulled out;
further, three scenarios of determination are described:
the judgment is based on the characteristic attribute of the unique characterization interface board comparing the memory block of the hot plug interface board currently processed on the line card with the memory block of each historical subslot interface board on the line card.
Further elucidate the processing scheme of three kinds of scenes hot plug modules:
scenario 1 processing scheme:
preferably, an equipment linked list of a power-on stage is created according to the objects in the record of the hot plug interface board;
further, an interface linked list of a power-on stage is established according to the objects in the record of the hot plug interface board;
scenario 2 processing scheme:
preferably, the device chain table in the interface board record is restored from the device chain table in the power-down stage according to the object in the hot plug interface board record, and the device chain table in the power-up stage is moved in;
further, according to the object inserted into the interface board record, recovering the interface chain table in the interface board record from the interface chain table in the power-off stage, and moving the interface chain table into the interface chain table in the power-on stage;
scenario 3 processing scheme:
preferably, deleting the related equipment linked list at the power-off stage according to the object in the record of the hot plug interface board;
preferably, the related interface linked list of the power-down stage is deleted according to the object in the record of the hot plug interface board;
further, an equipment chain table of a power-on stage is established according to the objects in the record of the hot plug interface board;
and further, an interface linked list of the power-on stage is established according to the objects in the record of the hot plug interface board.
As shown in fig. 9, the process includes the following steps:
step S902: a signal inserted by the interface board B is received.
Step S904: preferably, it should be noted that the method for managing a current hot plug process by the hot plug module is to label the current hot plug process.
It is further checked whether the flag of the current hot-plug interface is flagged.
Step S906: and further receiving a signal inserted by the interface board A, checking the hot insertion tag, and indicating that the interface board A needs to be recorded to a memory block to be processed of the hot insertion interface board on the line card.
Step S908: the flag is null indicating that there is currently no hot plug flow for interface card B. The hot-inserted indicia are labeled.
Step S910: and further recording the inserted interface board B to a memory block of the current processing hot insertion interface board on the line card.
Step S912: and further comparing the memory block of the current hot plug interface board on the line card with the memory block of each historical sub-slot interface board on the line card. And deciding the scene of the interface board which is currently processed with hot plug.
Step S914: and performing corresponding processing according to the decision scene.
Preferably, the judgment of the interface board B is scene 1. I.e. according to the object interface board B in the hot plug interface board record,
further, an equipment linked list in a power-on stage is created, and an interface linked list in a common power-on stage is created.
Step S916: and further initializing the object of the current processing hot plug interface board on the line card according to the equipment linked list in the power-on stage.
Step S918: and further performing interface configuration on an object of the current processing hot plug interface board on the line card according to the interface linked list in the power-on stage.
Step S920: further, after the interface board on the line card is powered on and completed in the memory block of the processing hot plug interface board, the equipment linked list in the power-on stage is moved into the equipment linked list in the power-on successful stage.
Step S922: further, after the interface board on the line card is powered on and completed in the memory block of the processing hot plug interface board, the resource linked list in the power-on stage is moved into the resource linked list in the power-on successful stage.
Step S924: further, the hot insertion process of the interface board in the memory block of the hot insertion interface board is processed on the line card currently.
Step S926: further, the flag of the hot-plug is reset.
Step S928: further, whether the memory block to be processed of the hot plug interface board on the line card has a record is inquired, if the judgment result is yes, step 932 is executed, and if the judgment result is no, step 930 is executed.
Step S930: furthermore, the memory block to be processed of the hot plug interface board on the line card has no record, and the hot plug process is finished.
Step S932: preferably, the memory block to be processed of the hot-plug interface board on the line card has a record, and the label of the hot-plug is marked to indicate that the hot-plug flow starts processing.
Step S934: further, the memory block to be processed of the hot plug interface board on the line card is moved into the memory block of the current hot plug interface board on the line card.
Step S936: further, the flow repeats from step S912 until the hot plug flow ends.
In summary, the present embodiment provides a method for managing hot plugging of multiple interface boards, which plugs and unplugs an interface board at any time, and manages interfaces on the interface board. Including and not limited to: the line card CPU processes hot-plug or hot-plug operations of a plurality of interface boards at the same time. Such as: at the same time, there are the power-on stage of the interface board, the signal inserted by the interface board and the signal pulled out by another interface board. Meanwhile, the invention also includes the technical process of preventing the hot plug jitter operation, wherein if the plugging and unplugging are the same interface card, the plugged interface card does not need to be configured, inherits the configuration of the interface board which is hot plugged last time, and the technical process of preventing the hot plug jitter operation. The invention has the advantage of improving the flexibility of hot plug operation of a user.
It should be noted that the management method for hot plug of a multi-interface board according to the embodiment of the present invention is not only applicable to the communication field, but also applicable to such a management method in other fields. In addition, in order to highlight the innovative part of the present invention, the above-mentioned embodiments of the present invention do not introduce units or modules which are not so closely related to solve the technical problems of the present invention, which does not indicate that there are no other units or modules in the above-mentioned embodiments.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A hot plug processing method for an interface board is characterized by comprising the following steps:
configuring a device chain table of an interface board and an interface chain table of the interface board, wherein the device chain table is used for indicating a power-on stage where a specified device in the interface board is located, and the interface chain table is used for indicating the power-on stage where a specified interface in the interface board is located, and the method includes the following steps: when the line card is inserted into the line card, adding the specified equipment into an equipment chain table used for indicating that the specified equipment is in a power-on stage, and adding the specified interface into an interface chain table used for indicating that the specified interface is in the power-on stage; when the interface board is unplugged from the line card, the specified equipment is moved into an equipment chain table used for indicating that the specified equipment is in a power-down stage, and the specified interface is moved into an interface chain table used for indicating that the specified interface is in the power-down stage;
and respectively managing the designated equipment and the designated interface according to the equipment linked list and the interface linked list.
2. The method of claim 1, wherein the power-up phase comprises one of:
the power-on stage, the power-on success stage and the power-off stage.
3. The method of claim 2, wherein configuring the device link list of the interface board and the interface link list of the interface board comprises:
after the initialization of the designated equipment is completed, the designated equipment is moved into an equipment chain table used for indicating that the designated equipment is in the power-on successful stage, and after the initialization of the designated interface is completed, the designated interface is moved into an interface chain table used for indicating that the designated interface is in the power-on successful stage.
4. The method of claim 1, further comprising:
if the specified device does not exist in the device chain table for indicating that the specified device is in the successful power-on stage and the device chain table for indicating that the specified device is in the power-on stage, judging that the unplugging signal of the interface board is an abnormal signal: alternatively, the first and second electrodes may be,
and if the specified interface does not exist in the interface linked list used for indicating the specified interface to be in the power-on successful stage and the equipment linked list used for indicating the specified interface to be in the power-on stage, judging that the unplugging signal of the interface board is an abnormal signal.
5. A hot plug processing device for an interface board is characterized by comprising:
a configuration module, configured to configure a device chain table of an interface board and an interface chain table of the interface board, where the device chain table is used to indicate a power-on stage where a specified device in the interface board is located, and the interface chain table is used to indicate a power-on stage where a specified interface in the interface board is located, and the configuration module includes: when the line card is inserted into the line card, adding the specified equipment into an equipment chain table used for indicating that the specified equipment is in a power-on stage, and adding the specified interface into an interface chain table used for indicating that the specified interface is in the power-on stage; when the interface board is unplugged from the line card, the specified equipment is moved into an equipment chain table used for indicating that the specified equipment is in a power-down stage, and the specified interface is moved into an interface chain table used for indicating that the specified interface is in the power-down stage;
and the management module is used for respectively managing the specified equipment and the specified interface according to the equipment linked list and the interface linked list.
6. The apparatus of claim 5, wherein the power-up phase comprises one of:
the power-on stage, the power-on success stage and the power-off stage.
7. The apparatus of claim 6, wherein the configuration module is further configured to move the designated device into a device chain table indicating that the designated device is in the power-on success stage after the designated device completes initialization, and move the designated interface into an interface chain table indicating that the designated interface is in the power-on success stage after the designated interface completes initialization.
8. The apparatus of claim 5, further comprising:
a judging module, configured to judge that a unplugging signal of the interface board is an abnormal signal when the specified device does not exist in the device chain table used for indicating that the specified device is in the successful power-on stage and the device chain table used for indicating that the specified device is in the power-on stage: or, when the interface linked list used for indicating that the specified interface is in the power-on successful stage and the equipment linked list used for indicating that the specified interface is in the power-on stage do not have the specified interface, judging that the unplugging signal of the interface board is an abnormal signal.
CN201410531528.1A 2014-10-10 2014-10-10 Interface board hot plug processing method and device Active CN105490817B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410531528.1A CN105490817B (en) 2014-10-10 2014-10-10 Interface board hot plug processing method and device
PCT/CN2015/073035 WO2016054887A1 (en) 2014-10-10 2015-02-13 Interface board hot plug processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410531528.1A CN105490817B (en) 2014-10-10 2014-10-10 Interface board hot plug processing method and device

Publications (2)

Publication Number Publication Date
CN105490817A CN105490817A (en) 2016-04-13
CN105490817B true CN105490817B (en) 2020-03-31

Family

ID=55652529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410531528.1A Active CN105490817B (en) 2014-10-10 2014-10-10 Interface board hot plug processing method and device

Country Status (2)

Country Link
CN (1) CN105490817B (en)
WO (1) WO2016054887A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955911B (en) * 2016-05-09 2023-06-02 杭州宏杉科技股份有限公司 Hot plug control circuit and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177935B2 (en) * 2001-10-05 2007-02-13 International Business Machines Corporation Storage area network methods and apparatus with hierarchical file system extension policy
CN101299678A (en) * 2008-07-03 2008-11-05 杭州华三通信技术有限公司 Method and system for implementing electrification of interface plate in open application structure
CN101459521A (en) * 2008-11-28 2009-06-17 福建星网锐捷网络有限公司 Hot-plugging implementing method and apparatus for router cable fastener
CN101667992A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Bus protecting auto-negotiation method and device
CN101888308A (en) * 2010-06-10 2010-11-17 北京东土科技股份有限公司 Method for realizing integrated management of multi-board embedded device
US7890953B2 (en) * 2001-10-05 2011-02-15 International Business Machines Corporation Storage area network methods and apparatus with coordinated updating of topology representation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI220714B (en) * 2002-01-10 2004-09-01 Accton Technology Corp Method of hot swap
CN1445670A (en) * 2002-03-15 2003-10-01 联想(北京)有限公司 System of monitoring information on hot plug devices of computer system in real time
CN100459515C (en) * 2005-12-27 2009-02-04 迈普(四川)通信技术有限公司 Preservation method of hot swab board configuration
CN100462954C (en) * 2007-03-14 2009-02-18 杭州华三通信技术有限公司 SPI4 buds interface card supporting hot swap, corresponding host machine and method thereof
CN102023940B (en) * 2009-09-16 2013-07-10 研祥智能科技股份有限公司 CPCI (compact peripheral component interconnection) hot swapping system
CN101930419B (en) * 2010-03-04 2012-07-18 成都市华为赛门铁克科技有限公司 Hot plug method, hot plug control device and hot plug card system
CN103701707B (en) * 2013-12-03 2017-02-15 杭州华三通信技术有限公司 Network equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177935B2 (en) * 2001-10-05 2007-02-13 International Business Machines Corporation Storage area network methods and apparatus with hierarchical file system extension policy
US7890953B2 (en) * 2001-10-05 2011-02-15 International Business Machines Corporation Storage area network methods and apparatus with coordinated updating of topology representation
CN101299678A (en) * 2008-07-03 2008-11-05 杭州华三通信技术有限公司 Method and system for implementing electrification of interface plate in open application structure
CN101667992A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Bus protecting auto-negotiation method and device
CN101459521A (en) * 2008-11-28 2009-06-17 福建星网锐捷网络有限公司 Hot-plugging implementing method and apparatus for router cable fastener
CN101888308A (en) * 2010-06-10 2010-11-17 北京东土科技股份有限公司 Method for realizing integrated management of multi-board embedded device

Also Published As

Publication number Publication date
WO2016054887A1 (en) 2016-04-14
CN105490817A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN101589592B (en) Multi-protocol removable storage device
CN101989205B (en) Software system upgrading method for universal serial bus (USB) equipment
US20190109773A1 (en) Inferring physical layer connection status of generic cables from planned single-end connection events
CN106843438B (en) Cascade communication method and cascade circuit
CN107070731B (en) Master-slave arbitration method and system
CN108121804B (en) Cross-region distributed data storage method, device, terminal and storage medium
CN106325919A (en) Configuration system and method based on PCIE (peripheral component interface express) Redriver
CN101930411A (en) Messaging device and control method thereof
CN111050310A (en) Network switching method, device, terminal equipment and medium
CN104765705A (en) Method and device for reading data stored by turned-off mobile terminal and mobile terminal
US20170171355A1 (en) Method for transferring a new software version to at least one electricity meter via a communication network
US11567891B2 (en) Rack controller with native support for intelligent patching equipment installed in multiple racks
CN108540225B (en) Board working mode switching method, communication equipment, control board and storage medium
CN103064309B (en) Needle selector address confirming method and system
CN105490817B (en) Interface board hot plug processing method and device
CN106301967B (en) A kind of method of data synchronization and outband management equipment
CN104937863A (en) Method and device for upgrading system
CN105743686B (en) Port attribute inheritance method and device
CN107608924B (en) Method and device for controlling hot plug of interface board
CN106993068B (en) A kind of auto-allocation method of blade server managing intranet IP
CN105100344A (en) Hot plug processing method for user recognition module card, and mobile terminal
CN115878523A (en) Network card adapting circuit, network card adapting method and related device
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN102111446B (en) Device connection handling method, combination equipment and host equipment
CN113946530A (en) Control method and device of expansion card and nonvolatile storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant