Board management method and device and communication board
阅读说明:本技术 板卡管理方法、装置及通信板卡 (Board management method and device and communication board ) 是由 王茂松 杜远锋 于 2019-10-12 设计创作,主要内容包括:本申请提供一种板卡管理方法、装置及通信板卡,涉及数据通信技术领域。该方法包括:当通信板卡插入到槽位时,获取通信板卡所在槽位的通道标识信息;根据通道标识信息与板卡模式的预设关联关系,确定与通道标识信息对应的板卡模式作为目标工作模式,板卡模式包括业务卡模式或交换卡模式;控制通信板卡以目标工作模式运行。本方案能够减少板卡的种类,降低开发和生产成本;同时能够改善板卡使用的灵活性,从而使得板卡的使用和运维更简单。(The application provides a board management method, a board management device and a communication board, and relates to the technical field of data communication. The method comprises the following steps: when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode; and controlling the communication board card to operate in a target working mode. The scheme can reduce the types of the board cards and reduce the development and production cost; meanwhile, the flexibility of the use of the board card can be improved, so that the use, operation and maintenance of the board card are simpler.)
1. A method for managing a card, the method comprising:
when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained;
determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a business card mode or a switch card mode;
and controlling the communication board card to operate in the target working mode.
2. The method of claim 1, wherein controlling the communication board to operate in the target operating mode comprises:
when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;
and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.
3. The method of claim 2, wherein controlling the communication board to operate as a switch card comprises:
acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating;
and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.
4. The method of claim 2, wherein controlling the communication board to operate as a traffic card comprises:
acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating;
and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.
5. The method of claim 1, wherein controlling the communication board to operate in the target operating mode comprises:
and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.
6. The method according to claim 1, wherein before obtaining the channel identification information of the slot in which the communication board card is located, the method further comprises:
and acquiring identity information of the communication board card, wherein the identity information comprises content indicating that the communication board card supports the exchange card mode and the service card mode.
7. The utility model provides a board management device which characterized in that, board management device includes:
the information acquisition unit is used for acquiring channel identification information of the slot position where the communication board card is located when the communication board card is inserted into the slot position;
the mode determining unit is used for determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;
and the operation control unit is used for controlling the communication board card to operate in the target working mode.
8. The board management device according to claim 7, wherein the operation control unit is further configured to:
when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;
and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.
9. The board management device according to claim 8, wherein the operation control unit is further configured to:
acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating;
and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.
10. The board management device according to claim 8, wherein the operation control unit is further configured to:
acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating;
and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.
11. The board management device according to claim 7, wherein the operation control unit is further configured to:
and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.
12. The board management device according to claim 7, wherein before the information obtaining unit obtains the channel identifier information of the channel of the slot in which the communication board is located, the information obtaining unit is further configured to obtain identity information of the communication board, where the identity information includes content indicating that the communication board supports the switch card mode and the service card mode.
13. A communication board card is characterized by comprising a processor and a memory, wherein the working mode of the communication board card comprises an exchange card mode and a service card mode;
when the communication board card is inserted into a slot position of communication equipment for working in the exchange card mode, the processor acquires a first configuration file corresponding to the exchange card mode from the communication equipment or the memory and runs the first configuration file so that the communication board card runs as an exchange card;
when the communication board card is inserted into the slot position of the communication equipment for working in the service card mode, the processor acquires a second configuration file corresponding to the service card mode from the communication equipment or the memory, and runs the second configuration file, so that the communication board card runs as a service card.
Technical Field
The invention relates to the technical field of data communication, in particular to a board management method, a board management device and a communication board.
Background
In a rack-mount communication device, a master card, a switch card, and a service card are typically included. The main control card is used for configuring and managing the communication equipment; the exchange card is used for forwarding data between two or more service cards in a cross-card mode; the service card is used for providing a service function interface and is responsible for accessing, processing and forwarding the data service of the communication equipment. The master control card is typically first started and run, and then the switch card and the service card in the communication device are identified, loaded and run. At present, an exchange card and a service card need to be accessed into communication equipment through different card slots, and if the exchange card and the service card are inserted into wrong slot positions, normal operation cannot be performed, so that a manager needs to check the working modes of the card and the slot positions before the communication equipment inserts the card, and operation and maintenance of the card are complex.
Disclosure of Invention
The application provides a board card management method and device and a communication board card, which can solve the problem that the operation and maintenance management of the board card is complex.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a card management method, where the method includes:
when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a business card mode or a switch card mode; and controlling the communication board card to operate in the target working mode.
In the above embodiment, the communication board card can automatically select the working mode corresponding to the slot position according to the inserted slot position, and the manager does not need to check the working modes of the board card and the slot position in the process of inserting the board card into the communication device, so that the card inserting operation of the manager is simplified, and the problem of complex operation and maintenance management of the board card can be solved.
With reference to the first aspect, in some optional embodiments, controlling the communication board to operate in the target operating mode includes:
when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card; and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.
In the above embodiment, the communication board may operate as a switch card or as a service card to correspond to an operation mode of a slot into which the communication board is inserted. In the process of inserting the board card into the communication equipment, the manager does not need to check the corresponding relation between the board card and the exchange card slot position and the service card slot position, and the card inserting operation of the manager in the exchange card slot position and the service card slot position is simplified.
With reference to the first aspect, in some optional embodiments, controlling the communication board to operate as a switch card includes:
acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating; and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.
In the above embodiment, the communication board operates the communication board as a switch board by operating the first configuration file. Based on this, the communication board is convenient to operate in the operation mode of the switch card through the first configuration file.
With reference to the first aspect, in some optional embodiments, controlling the communication board to operate as a service card includes:
acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating; and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.
In the above embodiment, the communication board operates the service card by operating the second configuration file. Based on the configuration information, the communication board card can run in the running mode of the service card through the second configuration file conveniently.
With reference to the first aspect, in some optional embodiments, controlling the communication board to operate in the target operating mode includes:
and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.
In the above embodiment, the configuration file is stored by the communication board, which is beneficial for the communication board to load and operate the configuration file quickly, so that the communication board can operate in the target working mode quickly.
With reference to the first aspect, in some optional implementations, before obtaining the channel identification information of the slot in which the communication board is located, the method further includes:
and acquiring identity information of the communication board card, wherein the identity information comprises content indicating that the communication board card supports the exchange card mode and the service card mode.
In the above embodiment, by obtaining the identity information of the board card, it is convenient to determine that the communication board card is a multiplexing board card supporting the switch card mode and the service card mode by using the identity information.
In a second aspect, an embodiment of the present application further provides a board management device, where the board management device includes:
the information acquisition unit is used for acquiring channel identification information of the slot position where the communication board card is located when the communication board card is inserted into the slot position;
the mode determining unit is used for determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;
and the operation control unit is used for controlling the communication board card to operate in the target working mode.
With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:
when the target working mode is the exchange card mode, controlling the communication board card to operate as an exchange card;
and when the target working mode is the service card mode, controlling the communication board card to operate as a service card.
With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:
acquiring a first configuration file corresponding to the exchange card mode based on the incidence relation between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card to operate as an exchange card when operating; and sending the first configuration file to the communication board card so that the communication board card runs the first configuration file and runs with a switch card.
With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:
acquiring a second configuration file corresponding to the service card mode based on the incidence relation between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card to operate as a service card when operating; and sending the second configuration file to the communication board card so that the communication board card runs the second configuration file and runs with a service card.
With reference to the second aspect, in some optional embodiments, the operation control unit is further configured to:
and when the communication board card stores the configuration file corresponding to the target working mode, controlling the communication board card to operate the configuration file corresponding to the target working mode so as to enable the communication board card to operate in the target working mode.
With reference to the second aspect, in some optional embodiments, before the information obtaining unit obtains the channel identifier information of the slot where the communication board is located, the information obtaining unit is further configured to obtain identity information of the communication board, where the identity information includes content indicating that the communication board supports the switch card mode and the service card mode.
In a third aspect, an embodiment of the present application further provides a communication board, where the communication board includes a processor and a memory, and a working mode of the communication board includes an exchange card mode and a service card mode;
when the communication board card is inserted into a slot position of communication equipment for working in the exchange card mode, the processor acquires a first configuration file corresponding to the exchange card mode from the communication equipment or the memory and runs the first configuration file so that the communication board card runs as an exchange card;
when the communication board card is inserted into the slot position of the communication equipment for working in the service card mode, the processor acquires a second configuration file corresponding to the service card mode from the communication equipment or the memory, and runs the second configuration file, so that the communication board card runs as a service card.
In a fourth aspect, the present application further provides a communication device, which includes a memory and a processor coupled to each other, wherein the memory stores a computer program, and when the computer program is executed by the processor, the communication device is caused to perform the above method.
In a fifth aspect, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the application and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a communication board card provided in an embodiment of the present application.
Fig. 3 is a schematic flow chart of a board management method according to an embodiment of the present application.
Fig. 4 is a functional block diagram of a board management device according to an embodiment of the present application.
Icon: 10-a communication device; 11-a master control slot position; 12-exchange card slot position; 13-service card slot position; 14-a bus module; 15-a power supply module; 20-a master control card; 30-a communication board card; 31-a processing module; 32-a storage module; 100-board management device; 110-an information acquisition unit; 120-a mode determination unit; 130-running the control unit.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish one description from another, and are not intended to indicate or imply relative importance.
Referring to fig. 1, an embodiment of the present application provides a
In this embodiment, the
The processor of the communication device 10 (or master card 20) may be an integrated circuit chip having signal processing capabilities. For example, the Processor may be a Central Processing Unit (CPU), a Network Processor (NP), or the like; the present invention may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components, which may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present Application.
The memory of the communication device 10 (or the host card 20) may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. In this embodiment, the storage module 32 may be configured to store a first configuration file corresponding to the switch card mode and a second configuration file corresponding to the service card mode. Of course, the storage module 32 may also be used for storing a program, and the processing module 31 executes the program after receiving the execution instruction.
It is understood that the configuration shown in fig. 1 is merely a schematic diagram of the configuration of the
Referring to fig. 2, an embodiment of the present application further provides a communication board 30, where the communication board 30 may include a storage module 32 and a processing module 31. The storage module 32 may be the same as or similar to a memory of the
In this embodiment, the operation modes of the communication board 30 include a switch card mode and a service card mode. It is understood that the communication board 30 including the switch card mode and the service card mode is a multiplexing board, and can be used as a switch card and a service card.
For example, when the communication board 30 is inserted into the slot of the
For another example, when the communication board 30 is inserted into the slot of the
In this embodiment, the communication board 30 may cooperate with the
Referring to fig. 3, an embodiment of the present application further provides a board management method, which can be applied to the
Step S210, when the communication board card 30 is inserted into the slot position, obtaining channel identification information of the slot position where the communication board card 30 is located;
step S220, determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode;
step S230, controlling the communication board 30 to operate in the target operating mode.
In the above embodiment, the communication board 30 may automatically select the working mode corresponding to the slot position according to the inserted slot position, and when the manager inserts the board into the
The steps of the board management method shown in fig. 3 will be described in detail below:
step S210, when the communication board 30 is inserted into the slot, obtaining the channel identification information of the slot where the communication board 30 is located.
In this embodiment, the slot positions for plugging the communication board 30 include a
Prior to step S210, the method may further comprise: acquiring the identity information of the communication board 30, where the identity information includes content indicating that the communication board 30 supports the switch card mode and the service card mode.
In this embodiment, after the communication board 30 is inserted into the
The identity information of the communication board 30 can be set according to actual conditions, the identity information of the communication board 30 of different types is different, and the identity information is associated with the type of the communication board 30. The types of communication cards 30 include, but are not limited to, switch cards, service cards, master cards 20, multiplexing cards, and the like. The processor of the
As an optional implementation manner, if the communication board is not a multiplexing board, the
Step S220, determining, according to a preset association relationship between the channel identification information and a board card mode, the board card mode corresponding to the channel identification information as a target working mode, where the board card mode includes a service card mode or a switch card mode.
In this embodiment, the channel identification information of the slot is associated with the board card mode in advance, so that the processor determines the board card mode supported by the slot through the channel identification information, where the board card mode supported by the slot is the target working mode of the slot.
After the communication board card 30 is inserted into the slot position, the processor may obtain the channel identification information of the slot position, and then determine that the slot position is the
For example, if the channel identification information is "01" indicating that the slot is the
Step S230, controlling the communication board 30 to operate in the target operating mode.
In this embodiment, after determining the target operating mode supported by the slot, the
For example, step S230 may include: when the target working mode is the switch card mode, controlling the communication board card 30 to operate with the switch card; and when the target working mode is the service card mode, controlling the communication board card 30 to operate with the service card.
In this embodiment, the communication board 30 is set as a multiplexing board capable of supporting the switch card mode and the service card mode, so that the board types can be reduced, and the board product development and management costs can be reduced. In addition, the multiplexing board card can adaptively adjust the working mode according to the inserted slot position to match with the working mode supported by the slot position, which is helpful for improving the working flexibility of the
In this embodiment, the communication board 30 may implement the functions of the switch card or the service card by running different configuration files. The configuration file may be stored in advance in a memory of the
As an optional implementation, controlling the communication board 30 to operate as a switch card includes: acquiring a first configuration file corresponding to the exchange card mode based on the association relationship between the exchange card mode and a prestored first configuration file, wherein the first configuration file is used for controlling the communication board card 30 to operate as an exchange card when operating; and sending the first configuration file to the communication board 30, so that the communication board 30 runs the first configuration file and runs with a switch card.
In the present embodiment, a first configuration file is associated with the switch card mode of the slot, and the first configuration file is stored in the memory of the
Understandably, if the processor determines that the slot supports the card switching mode, the processor loads the first configuration file to the communication board 30 inserted into the slot, so that the communication board 30 operates in the card switching mode by running the first configuration file.
The first configuration file may be created according to an actual situation, and may be used to establish a mapping configuration of a cross-card channel, so as to implement data communication between two (or more) service cards that need to perform data interaction and are connected to the switch card, so that the communication board card 30 operates in an operation manner of the switch card.
In the above embodiment, the communication board 30 may not need to store the first configuration file, so that the storage space of the memory of the communication board 30 can be saved.
As an optional implementation manner, controlling the communication board 30 to operate as a service card includes: acquiring a second configuration file corresponding to the service card mode based on the association relationship between the service card mode and a prestored second configuration file, wherein the second configuration file is used for controlling the communication board card 30 to operate as a service card when operating; and sending the second configuration file to the communication board 30, so that the communication board 30 runs the second configuration file and runs with a service card.
In this embodiment, the second configuration file and the service card mode of the slot have a relationship. The second configuration file is stored in a memory of the
Understandably, if the processor determines that the slot position supports the service card mode, the processor loads a second configuration file to the communication board 30 inserted into the slot position, so that the communication board 30 operates in the service card mode by running the second configuration file.
The second configuration file may be created according to an actual situation, and may be used to complete configuration of an interface and an uplink channel in the communication board 30, so that the communication board 30 operates in a service card operation manner.
In the above embodiment, the communication board 30 may not need to store the second configuration file, so that the storage space of the memory of the communication board 30 can be saved.
As an optional implementation manner, controlling the communication board 30 to operate in the target operating mode includes: when the communication board 30 stores the configuration file corresponding to the target working mode, the communication board 30 is controlled to run the configuration file corresponding to the target working mode, so that the communication board 30 runs in the target working mode.
In the above embodiment, the communication board 30 stores the configuration file, which is helpful for the communication board 30 to load and run the configuration file quickly, so that the communication board 30 can run in the target operating mode quickly.
Referring to fig. 1 again, in this embodiment, the
In this embodiment, the number of the master cards 20, the number of the communication boards 30, the number of the
To facilitate understanding of the implementation flow of the board management method, the following describes an example of the operation flow of the
for example, assuming that the
When the communication board 30 is a multiplexing board and is plugged into the slot, and the communication board 30 is started, the communication board can communicate with the main system control unit through the
And the main system control unit identifies and judges the content after receiving the fixed code and the extended attribute content of the multiplexing board card. For example, if the extended attribute includes attributes of the switch card capability and the service card capability, the main system control unit may determine that the multiplexing board card is located in the
The processor of the main control card 20 may perform power-on loading and configuration of the communication board card 30 according to the operation mode of the extended attribute. If the working mode is the switch card mode, the processor loads the configuration file according to the switch card mode to establish configurations such as mapping configuration of a cross-card channel for the communication board card 30. If the working mode is the business card mode, the processor loads the configuration file according to the business card mode to complete the configuration of the interface, the uplink channel and the like.
Referring to fig. 4, an embodiment of the present application further provides a
In this embodiment, the
The
The
And an
Optionally, the
Optionally, the
Optionally, the
Optionally, the
Before the
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the
The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program that, when run on a computer, causes the computer to execute the board management method as described in the above embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
In summary, the present application provides a board management method, an apparatus and a communication board. The method comprises the following steps: when the communication board card is inserted into the slot position, channel identification information of the slot position where the communication board card is located is obtained; determining a board card mode corresponding to the channel identification information as a target working mode according to a preset incidence relation between the channel identification information and the board card mode, wherein the board card mode comprises a service card mode or a switch card mode; and controlling the communication board card to operate in a target working mode. In the scheme, the communication board card can automatically select the working mode corresponding to the slot position according to the inserted slot position, and the manager does not need to check the working modes of the board card and the slot position in the process of inserting the board card into the communication equipment, so that the card inserting operation of the manager is simplified, and the problem of complex operation and maintenance management of the board card can be solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种随钻声波异步串口信号同步的方法