WO2023116136A1 - Method, system, and device for managing startup of single board of chassis device, and storage medium - Google Patents

Method, system, and device for managing startup of single board of chassis device, and storage medium Download PDF

Info

Publication number
WO2023116136A1
WO2023116136A1 PCT/CN2022/124686 CN2022124686W WO2023116136A1 WO 2023116136 A1 WO2023116136 A1 WO 2023116136A1 CN 2022124686 W CN2022124686 W CN 2022124686W WO 2023116136 A1 WO2023116136 A1 WO 2023116136A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
dhcp
single board
management server
frame
Prior art date
Application number
PCT/CN2022/124686
Other languages
French (fr)
Chinese (zh)
Inventor
徐伦
冯敏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023116136A1 publication Critical patent/WO2023116136A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present disclosure relates to the technical field of frame-type communication device maintenance, and in particular, to a method, system, device and storage medium for start-up management of a frame-type device.
  • a frame device In the field of communication equipment and industrial control equipment, in order to achieve high performance and high reliability, a distributed architecture design is often adopted, that is, a main control board manages other boards of the entire device and synchronizes the relevant information of each board.
  • a frame device generally includes a main control board, a switch board, and a service board.
  • the main control board is connected to all other boards through the backplane to manage the boards.
  • the backplane provides various channels for the power supply, data, management, and control planes of the single board, and ERPROM stores some frame information.
  • the communication channel with the ERPROM on the backboard will be designed so that the information stored on the backboard can be obtained directly.
  • the communication channel of the board such as IPMC, SPI or I2C and other communication methods. But in this way, the selection of the chip and the design of the circuit diagram will be more demanding, and the cost of the single board will be higher. Therefore, under the balance of advantages and disadvantages, in order to control the cost, sometimes the communication channels with the backplane and other boards are removed when designing the hardware of the board. At this time, it is necessary to obtain backplane information and other board information through other methods.
  • chassis type and chassis number are necessary information for the board to start.
  • Other information can be synchronized from the main control after the board is started.
  • the chassis type can be obtained from the version request response to the main control board, and the chassis number can be fixed as the same.
  • frame-type devices in the stacked state since the board itself does not know its physical location, there is no way to obtain the information that does not exist on this board without communication channels with the backplane and other boards. Two key pieces of information.
  • the automatic stacking method of fixed switches is provided to dynamically assign stacked frame numbers, but it is only applicable to fixed switches, not to framed take effect.
  • a box-type device has only one board and has a simple hardware architecture.
  • a box-type device consists of multiple boards and backplanes, and has a more complex hardware architecture.
  • the first request for the configuration file contains hardware configuration parameters, and the second The project file with setting function is requested for the first time, but it only solves the problem of single board startup that cannot save hardware initialization parameters and reset configuration.
  • DHCP Dynamic Host Configuration Protocol
  • the main purpose of the embodiments of the present disclosure is to provide a method, system, device, and storage medium for the start-up management of single boards of frame-type equipment, which aims to simplify the process of building a multi-frame environment for equipment maintenance personnel and facilitate the direct connection of single boards between different machine frames. Replacement to reduce errors caused by human operation.
  • the embodiment of the present disclosure provides a method for starting and managing a single board of a frame device.
  • the method includes the following steps: after the system master in the stacking system
  • the sent Dynamic Host Address Configuration Protocol (DHCP) broadcast request generates the first DHCP response message containing the information of the version management server;
  • the main control of the system sends the first DHCP response message containing the information of the version management server to other masters , so that other masters can send a version download request to the system master master after obtaining the version management server information from the first DHCP response message;
  • the system master master generates a version file list according to the version download request, and stores the version
  • the file list is sent to other masters, so that other masters can download the version file from the system main master according to the version file list, and use the version file to complete the startup.
  • an embodiment of the present disclosure provides a system for starting and managing a single board of a frame device, including: the main control of the system, which is used to use the dynamic host address sent by other main controls in the stack system after starting Configure the protocol DHCP broadcast request, generate the first DHCP response message containing the version management server information, and send the first DHCP response message containing the version management server information to other masters, and generate the version according to the version download request file list, and send the version file list to other masters; other masters are used to send a DHCP broadcast request to the main master of the system, and after obtaining the version management server information from the first DHCP response message, send it to the system
  • the master controller sends a version download request, and downloads the version file from the system master controller according to the version file list, and uses the version file to complete the startup.
  • the embodiment of the present disclosure also proposes a device for single-board startup management of a frame device, which includes a memory, a processor, a program stored in the memory and operable on the processor, and used to implement processing A data bus connecting and communicating between the device and the memory, and the steps of the aforementioned method are realized when the program is executed by the processor.
  • the present disclosure provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and one or more programs can be executed by one or more processors to implement the aforementioned method A step of.
  • FIG. 1 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a system for starting management of a single board of a frame device provided by an embodiment of the present disclosure
  • FIG. 3 is an overall schematic diagram of a stacking system provided by an embodiment of the present disclosure
  • Fig. 4 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure.
  • Fig. 1 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure. As shown in Fig. 1 , the method includes the following steps S101 to S103.
  • Step S101 After the system main control in the stacking system is started, it generates a first DHCP response message containing the information of the version management server according to the DHCP broadcast request sent by other control systems in the stacking system.
  • Step S102 The main control of the system sends the first DHCP response message containing the information of the version management server to other main controls, so that after obtaining the information of the version management server from the first DHCP response message, other main controls send the information to the system.
  • the main controller sends a version download request.
  • Step S103 The main system master generates a version file list according to the version download request, and sends the version file list to other masters, so that other masters can download version files from the system master according to the version file list, and use the version file list.
  • the file is finished launching.
  • the embodiment of the present disclosure also includes: after the single board in the stacking system obtains the version management server information from other masters, it sends a version download request to the main system master; the system master generates a version download request according to the version download request. file list, and send the version file list to the single board, so that the single board downloads the version file from the main control of the system according to the version file list, and uses the version file to complete the startup.
  • the boards in the stacking system obtain version management server information from other masters including: when the boards in the stacking system start up, send a DHCP broadcast request to the master controller of the board; According to the DHCP broadcast request of the single board, generate the second DHCP response message containing the information of the version management server, and send the second DHCP response message to the single board; the single board receives the second DHCP response message, and 2 Obtain the version management server information in the DHCP response message.
  • the embodiment of the present disclosure also includes: the system main master and other masters in the stacking system configure ACL (Access Control Lists, access control list) rules for each single board port they manage, so that each single board sends The DHCP message is sent to the master of the subrack to which it belongs.
  • ACL Access Control Lists, access control list
  • generating the first DHCP response message containing the version management server information includes: the system master master receives the DHCP request sent by other masters. When broadcasting the request, obtain the subrack type and subrack number; the main controller of the system composes the subrack type, subrack number and version management server information into the first DHCP response message.
  • FIG. 2 is a schematic diagram of a system for starting management of a single board of a frame-type device provided by an embodiment of the present disclosure. As shown in FIG. 2 , it includes: a system main controller 201 and other master controllers 202 .
  • the main controller of the system is used to generate the first DHCP response message containing version management server information according to the DHCP broadcast request sent by other master controllers in the stack system after startup, and will
  • the first DHCP response message of the management server information is sent to other masters, and according to the version download request, a version file list is generated, and the version file list is sent to other masters;
  • the control sends a DHCP broadcast request, and after obtaining the version management server information from the first DHCP response message, sends a version download request to the system main control, and downloads the version file from the system main control according to the version file list, and Startup is done using the version file.
  • the embodiment of the present disclosure also includes: a single board 203, configured to send a version download request to the main system main control after obtaining version management server information from other main controls, so that the system main control can generate a version download request according to the version download request. version file list, and send the version file list to the single board; the single board 203 is also used to download the version file from the system main controller according to the version file list, and use the version file to complete the startup.
  • the single board 203 is also used to send a DHCP broadcast request to the master of the frame of the single board when starting, so that according to the DHCP broadcast request of the single board, a second DHCP response message containing the version management server information is generated, and Send the second DHCP response message to the single board; the single board 203 is also configured to receive the second DHCP response message, and obtain version management server information from the response message.
  • the system main controller 201 starts from the local, reads the necessary information required for starting from the backplane, such as the type of the chassis and the chassis number, and calculates the Its unique MAC and IP address in the entire internal network. Configure the ACL rules of the switching chip to redirect the DHCP packets of all other board ports except the main control board to the local CPU, so as to prevent the DHCP messages sent by the boards in this subrack from being received by the main control boards of other subracks, and enable DHCP.
  • the server monitors and receives the DHCP request, and responds with the chassis type, chassis number and version management server information. Open the version management server and deliver the corresponding version file according to the received version request.
  • the masters 202 when other masters 202 start up, they first send a DHCP broadcast request, receive a DHCP response from the system master master, and acquire version management server information. Read the necessary information required for startup from the backplane, calculate its own MAC and IP addresses according to its own chassis number and slot, configure the ACL rules of the switching chip, and enable the DHCP ports of all other boards except the main control board to The packets are redirected to the local CPU to prevent the DHCP packets sent by the boards in this subrack from being received by the master controller of other subracks. Send a version download request to the version management server of the system master control, receive the version and configuration from the system master control, and start normal startup. After the startup is complete, start the DHCP server, monitor and receive DHCP requests, and respond with the chassis type, chassis number, and version management server information.
  • other single boards 203 start up and send a DHCP broadcast request first. Since the main control switch chip of this frame is configured with ACL rules, only the main control of this frame will reply a DHCP response, that is, other single boards can only receive this request. After receiving the DHCP response from the subrack master, obtain the subrack type, subrack number, and version download server information carried in the response, and fill them in the local cache. According to the subrack number and Its own slot number calculates its own MAC and IP address, ensuring that the IP and MAC of each board in the entire internal network do not conflict with each other. Send a version download request to the version management server of the system master control, receive the version and configuration from the system master control, and start normal startup.
  • the embodiment of the present disclosure also proposes a device for single-board boot management of a frame-type device, which includes a memory, a processor, a program stored in the memory and operable on the processor, and used to realize the connection between the processor and the memory.
  • the communication data bus is connected, and the steps of the aforementioned method are realized when the program is executed by the processor.
  • the present disclosure provides a storage medium for computer-readable storage.
  • the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the foregoing method.
  • FIG. 3 is an overall schematic diagram of a stacking system provided by an embodiment of the present disclosure.
  • the entire system consists of one frame or multiple frames, and each frame consists of two main control boards and several other boards.
  • Each frame device includes a main control board, other boards, and a backplane; the main control board at least includes: a CPU, an inter-board communication network port, a control plane switching chip (communication between management boards), and access to information stored on the backplane
  • the channel such as access to the backplane ERPROM); other boards include at least: CPU, inter-board communication network port.
  • the backplane at least includes: various channels of the power supply, data, management, and control planes of the single board.
  • the main control single board includes a DHCP server, an inter-board communication network port, a switching chip (responsible for managing the communication network with other single boards) and a communication channel that can access the information stored on the backplane.
  • the main control is divided into the main main control of the system, the main main control of this box, and the standby main control.
  • the standby master control compared with the former two, is on standby. In order to quickly replace the main control of this box and enter the normal working mode when the main control of this box is abnormal, so that the normal operation of the system will not be affected.
  • Other single boards include a DHCP client and an inter-board communication network port (connected to the switch chip port of the main control board). After normal startup, it is mainly responsible for the normal operation of equipment business functions.
  • the disclosure proposes a method, system, device and storage medium for single-board start-up management of frame-type equipment, which provides a single board that cannot access backplane information and has no other hardware communication means (such as IPMC channel) between single boards.
  • the method of single-board start-up management can also be applied to a multi-chassis stacking environment, which simplifies the multi-chassis environment construction process for equipment maintenance personnel, facilitates the direct replacement of single boards between different chassis, and reduces errors caused by human operations.
  • FIG. 4 is a flow chart of a method for starting and managing a single board of a frame device provided by an embodiment of the present disclosure. As shown in FIG. 4 , steps 1 to 18 are included.
  • Step 1 According to the type of the chassis and its own slot number, the board knows what type of board it is in the chassis, whether it is the main control board or other boards. If the chassis type cannot be obtained, it is considered to be other boards. And according to the startup mode of the single board, distinguish the main controller of the system from other master controllers.
  • Step 2 the main controller of the system starts locally (the software versions of all boards are stored on the local hard disk of the master controller), and reads the necessary information required for startup from the backplane, such as the type and The chassis number and slot number calculate its own unique MAC and IP in the entire internal network.
  • Configure the ACL rule of the switch chip to redirect the DHCP packets of the ports of other boards except the main control board to the local CPU, so as to prevent the DHCP message requests sent by other boards in the subrack from being received by the main controller of other subracks.
  • the DHCP server monitors and receives the DHCP request, and responds with the chassis type, chassis number and version management server information. Open the version management server and deliver the corresponding version file according to the received version request.
  • Step 3 when other main controllers start, send a DHCP broadcast request (the request content includes the board type, PCB, BOM, CPU type).
  • Step 4 After receiving the DHCP broadcast request, the main controller of the system composes a reply message with its own chassis type, chassis number and version management server information, and replies to other master controllers.
  • the version management server information includes the IP address of the server (that is, the internal network IP of the main control system), FTP login user name and password.
  • Step 5 Other masters receive the DHCP response from the main master of the system, obtain the information of the version management server, and save it, so that they can carry the version management server when replying to the DHCP requests of other single boards after the DHCP server is turned on. information.
  • Step 6 Other main controllers read the necessary information required for startup from the backplane, calculate their own MAC and IP addresses according to their own frame number and slot number, and configure the ACL rules of the switching chip so that all but the main control board The DHCP packets of other board ports are redirected to the local CPU to prevent the DHCP packets sent by other boards in this subrack from being received by the master controller of other subracks.
  • Step 7 other masters send a version download request to the version management server of the system master master (the request includes the board type, PCB, BOM, CPU type).
  • step 8 the main control system of the system organizes the list of version files according to the received version request.
  • step 9 the master control of the system replies the list of version files to other master controls.
  • Step 10 other masters download version files and configurations from the system master master via FTP according to the received version file list, and start normal startup. After the startup is complete, start the DHCP server, monitor and receive DHCP requests, and respond with the chassis type, chassis number, and version management server information.
  • Step 11 when other boards are started, send a DHCP broadcast request (request content includes board type, PCB, BOM, CPU type).
  • step 12 due to the configuration of the ACL rule, only the master controller of the subrack can receive the DHCP requests of other boards in the subrack. If the board that sends the DHCP request is in the chassis where the system master controller is located, the system master controller is also regarded as the master controller of this chassis and will reply the DHCP request.
  • the main controller of this subrack After receiving the DHCP broadcast request, the main controller of this subrack forms a response message with its own subrack type, subrack number and version management server information, and replies to other boards.
  • the version management server information includes the IP address of the server (that is, the internal network IP of the main control of the system), FTP login user name and password.
  • Step 13 After receiving the DHCP response, other single boards obtain the subrack type, subrack number and version management server information carried in the response, and fill them in the local cache.
  • Step 14 other single boards calculate their own MAC and IP addresses from the chassis number obtained from the local cache and their own slot numbers, so as to ensure that the IP and MAC of each single board in the entire internal network do not conflict with each other.
  • Step 15 other single boards send a version download request to the version management server of the system main controller (request content includes single board type, PCB, BOM, CPU type).
  • step 16 the master control of the system organizes the list of version files according to the received version request.
  • step 17 the main controller of the system replies the list of version files to other boards.
  • step 18 the other single boards download the version files and configurations from the main control unit of the system through FTP according to the received version file list, and start normal startup.
  • the main control board on each frame starts the DHCP server (it only needs to have the ability to respond to the DHCP broadcast packet), responds to the DHCP requests of other boards, and the DHCP response of each main control board on the same frame The content is the same.
  • Reply The DHCP response to each board is extended on the standard DHCP protocol, carrying the FTP server information, as well as the subrack type, subrack number and other information required for startup. The deployment is simple, the process is simple, and all the necessary information for starting is transmitted in one response.
  • the IP and MAC of a single board are obtained in a static way, and are obtained through calculation of the physical location information of the single board (chassis number, slot number, CPU number), ensuring that the IP and MAC of each single board will not interact with each other even in the stack state. conflict.
  • the embodiments of the present disclosure provide a method, system, device, and storage medium for single-board start-up management of frame-type equipment, which reduce hardware costs and circuit design complexity, simplify the operation process of equipment maintenance personnel, and reduce errors caused by human operations.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • a processor such as a central processing unit, digital signal processor, or microprocessor
  • Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

Disclosed in the present disclosure are a method, system, and device for managing the startup of a single board of a chassis device, and a storage medium. The method comprises the following steps: after being started, a system primary master control board in a stack system, according to a dynamic host address configuration protocol (DHCP) broadcast request transmitted by another master control board in the stack system, generates a first DHCP response packet comprising version management server information; the system primary master control board transmits to the other master control board the first DHCP response packet comprising the version management server information; and the system primary master control board, according to the version download request, generates a version file list and transmits the version file list to the other master control board, so that the other master control board, according to the version file list, downloads a version file from the system primary master control board and uses the version file to complete startup.

Description

一种框式设备单板启动管理的方法、系统、设备和存储介质Method, system, device and storage medium for single-board boot management of frame-type equipment
相关申请的交叉引用Cross References to Related Applications
本公开要求享有2021年12月23日提交的名称为“一种框式设备单板启动管理的方法、系统、设备和存储介质”的中国专利申请CN202111586478.3的优先权,其全部内容通过引用并入本公开中。This disclosure claims the priority of the Chinese patent application CN202111586478.3 entitled "A method, system, device and storage medium for single-board start-up management of frame-type equipment" filed on December 23, 2021, the entire content of which is by reference incorporated into this disclosure.
技术领域technical field
本公开涉及框式通信设备维护技术领域,尤其涉及一种框式设备单板启动管理的方法、系统、设备和存储介质。The present disclosure relates to the technical field of frame-type communication device maintenance, and in particular, to a method, system, device and storage medium for start-up management of a frame-type device.
背景技术Background technique
在通讯设备领域,工控设备领域,为了达到高性能和高可靠性,往往采用分布式架构设计,即由一个主控板对整个设备的其他单板进行管理并同步每张单板的相关信息,框式设备一般包括主控板、交换板以及业务单板,主控板通过背板和其他所有单板连接,对单板进行管理。背板提供单板的供电、数据、管理、控制平面的各种通道,以及ERPROM存储一些机框信息。In the field of communication equipment and industrial control equipment, in order to achieve high performance and high reliability, a distributed architecture design is often adopted, that is, a main control board manages other boards of the entire device and synchronizes the relevant information of each board. A frame device generally includes a main control board, a switch board, and a service board. The main control board is connected to all other boards through the backplane to manage the boards. The backplane provides various channels for the power supply, data, management, and control planes of the single board, and ERPROM stores some frame information.
一般在进行单板硬件设计时,都会设计与背板ERPROM的通讯通道,以便于能够直接获取到存储在背板上的信息,同时为了更准确有效的控制其他单板,也会设计与其他单板的通讯通道,例如IPMC,SPI或I2C等通讯方式。但这样,对于芯片的选择和线路图的设计会更加苛刻,单板成本也会更加高昂。因而,在利弊的权衡下,为了控制成本,有时进行单板硬件设计时,会去掉与背板和其他单板的通讯通道。这时候就需要通过其他方法来获取背板信息和其他单板信息。Generally, when designing the hardware of a single board, the communication channel with the ERPROM on the backboard will be designed so that the information stored on the backboard can be obtained directly. The communication channel of the board, such as IPMC, SPI or I2C and other communication methods. But in this way, the selection of the chip and the design of the circuit diagram will be more demanding, and the cost of the single board will be higher. Therefore, under the balance of advantages and disadvantages, in order to control the cost, sometimes the communication channels with the backplane and other boards are removed when designing the hardware of the board. At this time, it is necessary to obtain backplane information and other board information through other methods.
单板启动时一般需要从背板上获取机框类型和机框号,这两个是单板启动的必要信息,其他信息可以在单板启动后从主控同步过来。对于单框设备来说,机框类型可以通过向主控板的版本请求应答中获取,机框号可以固定为统一的。而对于堆叠状态下的框式设备,由于单板自身不知道自己的物理位置,在没有与背板和其他单板的通讯通道的情况下,没有什么办法可以获取到本单板上没有的这两个关键信息。When a board is started, it is generally necessary to obtain the chassis type and chassis number from the backplane. These two are necessary information for the board to start. Other information can be synchronized from the main control after the board is started. For a single-chassis device, the chassis type can be obtained from the version request response to the main control board, and the chassis number can be fixed as the same. For frame-type devices in the stacked state, since the board itself does not know its physical location, there is no way to obtain the information that does not exist on this board without communication channels with the backplane and other boards. Two key pieces of information.
在一些情形下,提供了盒式交换机自动堆叠方法,动态分配堆叠后的框号,但只适用于盒式设备,并不适用于框式设备,且需要几个堆叠的设备都正常启动后才能生效。盒式设备只有一块单板,硬件架构简单,框式设备由多块单板和背板组成,硬件架构更加复杂。还有 一种通过交互EOAM报文来管理单板的方法,同样也需要在单板正常启动后才能开始发挥作用。也有一种通过两次文件传输和加载解决本身不包含EEPROM的单板启动方法。两次都是先通过发起DHCP(Dynamic Host Configuration Protoco,动态主机地址配置协议)请求然后从DHCP服务端获取到TFTP服务端信息和文件信息,第一次请求配置文件其中包含硬件配置参数,第二次请求具有设定功能的工程文件,但只解决了无法保存硬件初始化参数和复位配置的单板启动问题。In some cases, the automatic stacking method of fixed switches is provided to dynamically assign stacked frame numbers, but it is only applicable to fixed switches, not to framed take effect. A box-type device has only one board and has a simple hardware architecture. A box-type device consists of multiple boards and backplanes, and has a more complex hardware architecture. There is also a method of managing the board by exchanging EOAM messages, which also needs to start to function after the board is started normally. There is also a method for starting a single board that does not contain an EEPROM by two file transfers and loading. Both times, the TFTP server information and file information are obtained from the DHCP server by first initiating a DHCP (Dynamic Host Configuration Protocol) request. The first request for the configuration file contains hardware configuration parameters, and the second The project file with setting function is requested for the first time, but it only solves the problem of single board startup that cannot save hardware initialization parameters and reset configuration.
发明内容Contents of the invention
本公开实施例的主要目的在于提出一种框式设备单板启动管理的方法、系统、设备和存储介质,旨在为设备维护人员简化多框环境搭建流程,方便不同机框间单板的直接更换,减少人为操作导致的错误。The main purpose of the embodiments of the present disclosure is to provide a method, system, device, and storage medium for the start-up management of single boards of frame-type equipment, which aims to simplify the process of building a multi-frame environment for equipment maintenance personnel and facilitate the direct connection of single boards between different machine frames. Replacement to reduce errors caused by human operation.
为实现上述目的,本公开实施例提供了一种框式设备单板启动管理的方法,该方法包括以下步骤:堆叠系统中的系统主用主控在启动后,根据堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文;系统主用主控将包含版本管理服务端信息的第一DHCP应答报文发送给其他主控,以便其他主控从第一DHCP应答报文中获取版本管理服务端信息后,向系统主用主控发送版本下载请求;系统主用主控根据版本下载请求,生成版本文件清单,并将版本文件清单发送给其他主控,以便其他主控根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。In order to achieve the above purpose, the embodiment of the present disclosure provides a method for starting and managing a single board of a frame device. The method includes the following steps: after the system master in the stacking system The sent Dynamic Host Address Configuration Protocol (DHCP) broadcast request generates the first DHCP response message containing the information of the version management server; the main control of the system sends the first DHCP response message containing the information of the version management server to other masters , so that other masters can send a version download request to the system master master after obtaining the version management server information from the first DHCP response message; the system master master generates a version file list according to the version download request, and stores the version The file list is sent to other masters, so that other masters can download the version file from the system main master according to the version file list, and use the version file to complete the startup.
为实现上述目的,本公开实施例提供了一种框式设备单板启动管理的系统,包括:系统主用主控,用于在启动后,根据堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文,并将包含版本管理服务端信息的第一DHCP应答报文发送给其他主控,以及根据版本下载请求,生成版本文件清单,并将版本文件清单发送给其他主控;其他主控,用于向系统主用主控发送DHCP广播请求,并从第一DHCP应答报文中获取版本管理服务端信息后,向系统主用主控发送版本下载请求,以及根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。In order to achieve the above purpose, an embodiment of the present disclosure provides a system for starting and managing a single board of a frame device, including: the main control of the system, which is used to use the dynamic host address sent by other main controls in the stack system after starting Configure the protocol DHCP broadcast request, generate the first DHCP response message containing the version management server information, and send the first DHCP response message containing the version management server information to other masters, and generate the version according to the version download request file list, and send the version file list to other masters; other masters are used to send a DHCP broadcast request to the main master of the system, and after obtaining the version management server information from the first DHCP response message, send it to the system The master controller sends a version download request, and downloads the version file from the system master controller according to the version file list, and uses the version file to complete the startup.
为实现上述目的,本公开实施例还提出了一种框式设备单板启动管理的设备,该设备包括存储器、处理器、存储在存储器上并可在处理器上运行的程序以及用于实现处理器和存储器之间的连接通信的数据总线,程序被处理器执行时实现前述方法的步骤。In order to achieve the above purpose, the embodiment of the present disclosure also proposes a device for single-board startup management of a frame device, which includes a memory, a processor, a program stored in the memory and operable on the processor, and used to implement processing A data bus connecting and communicating between the device and the memory, and the steps of the aforementioned method are realized when the program is executed by the processor.
为实现上述目的,本公开提供了一种存储介质,用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现前述方法的步 骤。To achieve the above object, the present disclosure provides a storage medium for computer-readable storage, the storage medium stores one or more programs, and one or more programs can be executed by one or more processors to implement the aforementioned method A step of.
附图说明Description of drawings
图1是本公开实施例提供的一种框式设备单板启动管理的方法流程图;FIG. 1 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种框式设备单板启动管理的系统示意图;FIG. 2 is a schematic diagram of a system for starting management of a single board of a frame device provided by an embodiment of the present disclosure;
图3是本公开实施例提供的堆叠系统整体示意图;FIG. 3 is an overall schematic diagram of a stacking system provided by an embodiment of the present disclosure;
图4是本公开实施例提供的框式设备单板启动管理的方法流程图。Fig. 4 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本公开的说明,其本身没有特有的意义。因此,“模块”、“部件”或“单元”可以混合地使用。The specific embodiments described here are only used to explain the present disclosure, not to limit the present disclosure. In the subsequent description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present disclosure and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.
实施例一Embodiment one
图1是本公开实施例提供的一种框式设备单板启动管理的方法流程图,如图1所示,该方法包括以下步骤S101至S103。Fig. 1 is a flow chart of a method for starting and managing single boards of a frame device provided by an embodiment of the present disclosure. As shown in Fig. 1 , the method includes the following steps S101 to S103.
步骤S101:堆叠系统中的系统主用主控在启动后,根据堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文。Step S101: After the system main control in the stacking system is started, it generates a first DHCP response message containing the information of the version management server according to the DHCP broadcast request sent by other control systems in the stacking system.
步骤S102:系统主用主控将包含版本管理服务端信息的第一DHCP应答报文发送给其他主控,以便其他主控从第一DHCP应答报文中获取版本管理服务端信息后,向系统主用主控发送版本下载请求。Step S102: The main control of the system sends the first DHCP response message containing the information of the version management server to other main controls, so that after obtaining the information of the version management server from the first DHCP response message, other main controls send the information to the system. The main controller sends a version download request.
步骤S103:系统主用主控根据版本下载请求,生成版本文件清单,并将版本文件清单发送给其他主控,以便其他主控根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。Step S103: The main system master generates a version file list according to the version download request, and sends the version file list to other masters, so that other masters can download version files from the system master according to the version file list, and use the version file list. The file is finished launching.
本公开实施例还包括:在堆叠系统中的单板从其他主控中获取版本管理服务端信息后,向系统主用主控发送版本下载请求;系统主用主控根据版本下载请求,生成版本文件清单,并将版本文件清单发送给单板,以便单板根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。The embodiment of the present disclosure also includes: after the single board in the stacking system obtains the version management server information from other masters, it sends a version download request to the main system master; the system master generates a version download request according to the version download request. file list, and send the version file list to the single board, so that the single board downloads the version file from the main control of the system according to the version file list, and uses the version file to complete the startup.
在一实施方式中,堆叠系统中的单板从其他主控中获取版本管理服务端信息包括:堆叠系统中的单板启动时,向单板的本框主控发送DHCP广播请求;本框主控根据单板的DHCP广播请求,生成包含版本管理服务端信息的第二DHCP应答报文,并将第二DHCP应答报文 发送给单板;单板接收第二DHCP应答报文,并从第二DHCP应答报文中获取版本管理服务端信息。In an embodiment, the boards in the stacking system obtain version management server information from other masters including: when the boards in the stacking system start up, send a DHCP broadcast request to the master controller of the board; According to the DHCP broadcast request of the single board, generate the second DHCP response message containing the information of the version management server, and send the second DHCP response message to the single board; the single board receives the second DHCP response message, and 2 Obtain the version management server information in the DHCP response message.
本公开实施例还包括:堆叠系统中的系统主用主控和其他主控分别为其管理的每个单板端口配置ACL(Access Control Lists,访问控制列表)规则,使每个单板发送的DHCP报文发送到其所属的本框主控。The embodiment of the present disclosure also includes: the system main master and other masters in the stacking system configure ACL (Access Control Lists, access control list) rules for each single board port they manage, so that each single board sends The DHCP message is sent to the master of the subrack to which it belongs.
在一实施方式中,根据堆叠系统中的其他主控发送的DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文包括:系统主用主控在接收到其他主控发送的DHCP广播请求时,获取机框类型和机框号;系统主用主控将机框类型、机框号以及版本管理服务端信息组成第一DHCP应答报文。In an embodiment, according to the DHCP broadcast request sent by other masters in the stack system, generating the first DHCP response message containing the version management server information includes: the system master master receives the DHCP request sent by other masters. When broadcasting the request, obtain the subrack type and subrack number; the main controller of the system composes the subrack type, subrack number and version management server information into the first DHCP response message.
图2是本公开实施例提供的一种框式设备单板启动管理的系统示意图,如图2所示,包括:系统主用主控201和其他主控202。FIG. 2 is a schematic diagram of a system for starting management of a single board of a frame-type device provided by an embodiment of the present disclosure. As shown in FIG. 2 , it includes: a system main controller 201 and other master controllers 202 .
系统主用主控,用于在启动后,根据堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文,并将包含版本管理服务端信息的第一DHCP应答报文发送给其他主控,以及根据版本下载请求,生成版本文件清单,并将版本文件清单发送给其他主控;其他主控,用于向系统主用主控发送DHCP广播请求,并从第一DHCP应答报文中获取版本管理服务端信息后,向系统主用主控发送版本下载请求,以及根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。The main controller of the system is used to generate the first DHCP response message containing version management server information according to the DHCP broadcast request sent by other master controllers in the stack system after startup, and will The first DHCP response message of the management server information is sent to other masters, and according to the version download request, a version file list is generated, and the version file list is sent to other masters; The control sends a DHCP broadcast request, and after obtaining the version management server information from the first DHCP response message, sends a version download request to the system main control, and downloads the version file from the system main control according to the version file list, and Startup is done using the version file.
本公开实施例还包括:单板203,用于在从其他主控中获取版本管理服务端信息后,向系统主用主控发送版本下载请求,以便系统主用主控根据版本下载请求,生成版本文件清单,并将版本文件清单发送给单板;单板203,还用于根据版本文件清单从系统主用主控下载版本文件,并利用版本文件完成启动。The embodiment of the present disclosure also includes: a single board 203, configured to send a version download request to the main system main control after obtaining version management server information from other main controls, so that the system main control can generate a version download request according to the version download request. version file list, and send the version file list to the single board; the single board 203 is also used to download the version file from the system main controller according to the version file list, and use the version file to complete the startup.
其中,单板203还用于在启动时,向单板的本框主控发送DHCP广播请求,以便根据单板的DHCP广播请求,生成包含版本管理服务端信息的第二DHCP应答报文,并将第二DHCP应答报文发送给单板;单板203还用于接收第二DHCP应答报文,并从应答报文中获取版本管理服务端信息。Wherein, the single board 203 is also used to send a DHCP broadcast request to the master of the frame of the single board when starting, so that according to the DHCP broadcast request of the single board, a second DHCP response message containing the version management server information is generated, and Send the second DHCP response message to the single board; the single board 203 is also configured to receive the second DHCP response message, and obtain version management server information from the response message.
在一实施方式中,系统主用主控201启动从本地启动,从背板上读取启动所需的必要信息,例如机框类型和机框号,根据自身机框号和槽位号计算出自身在整个内部网络中独一无二的MAC和IP地址。配置交换芯片ACL规则,使除主控单板外所有其他单板端口的DHCP报文重定向到本CPU,防止本框单板发送的DHCP报文被别的机框主控接收到,开启DHCP服务端,监听和接收DHCP请求,并携带机框类型、机框号和版本管理服务端信息进行应答。 开启版本管理服务端,根据接收到的版本请求下发对应的版本文件。In one embodiment, the system main controller 201 starts from the local, reads the necessary information required for starting from the backplane, such as the type of the chassis and the chassis number, and calculates the Its unique MAC and IP address in the entire internal network. Configure the ACL rules of the switching chip to redirect the DHCP packets of all other board ports except the main control board to the local CPU, so as to prevent the DHCP messages sent by the boards in this subrack from being received by the main control boards of other subracks, and enable DHCP. The server monitors and receives the DHCP request, and responds with the chassis type, chassis number and version management server information. Open the version management server and deliver the corresponding version file according to the received version request.
在一实施方式中,其他主控202启动时,先发送DHCP广播请求,接收到系统主用主控的DHCP应答,获取版本管理服务端信息。从背板上读取启动所需的必要信息,根据自身机框号和槽位计算出自身的MAC和IP地址,配置交换芯片ACL规则,使除主控单板外所有其他单板端口的DHCP报文重定向到本CPU,防止本框单板发送的DHCP报文被别的机框主控接收到。向系统主用主控的版本管理服务端,发送版本下载请求,接收来自系统主用主控的版本和配置,开始正常启动。启动完成后,开启DHCP服务端,监听和接收DHCP请求,并携带机框类型、机框号和版本管理服务端信息进行应答。In one embodiment, when other masters 202 start up, they first send a DHCP broadcast request, receive a DHCP response from the system master master, and acquire version management server information. Read the necessary information required for startup from the backplane, calculate its own MAC and IP addresses according to its own chassis number and slot, configure the ACL rules of the switching chip, and enable the DHCP ports of all other boards except the main control board to The packets are redirected to the local CPU to prevent the DHCP packets sent by the boards in this subrack from being received by the master controller of other subracks. Send a version download request to the version management server of the system master control, receive the version and configuration from the system master control, and start normal startup. After the startup is complete, start the DHCP server, monitor and receive DHCP requests, and respond with the chassis type, chassis number, and version management server information.
在一实施方式中,其他单板203启动,先发送DHCP广播请求,由于本框主控交换芯片配置了ACL规则,所以只有本框主控会回复DHCP应答,即其他单板只能收到本框主控的DHCP应答,在收到DHCP应答后,获取应答中携带的机框类型、机框号和版本下载服务端信息,填充到本地缓存中,根据DHCP应答中获取到的机框号和自身槽位号计算出自身的MAC和IP地址,保证整个内部网络中每个单板的IP和MAC互相不冲突。向系统主用主控的版本管理服务端发送版本下载请求,接收来自系统主用主控的版本和配置,开始正常启动。In one embodiment, other single boards 203 start up and send a DHCP broadcast request first. Since the main control switch chip of this frame is configured with ACL rules, only the main control of this frame will reply a DHCP response, that is, other single boards can only receive this request. After receiving the DHCP response from the subrack master, obtain the subrack type, subrack number, and version download server information carried in the response, and fill them in the local cache. According to the subrack number and Its own slot number calculates its own MAC and IP address, ensuring that the IP and MAC of each board in the entire internal network do not conflict with each other. Send a version download request to the version management server of the system master control, receive the version and configuration from the system master control, and start normal startup.
本公开实施例还提出了一种框式设备单板启动管理的设备,该设备包括存储器、处理器、存储在存储器上并可在处理器上运行的程序以及用于实现处理器和存储器之间的连接通信的数据总线,程序被处理器执行时实现前述方法的步骤。The embodiment of the present disclosure also proposes a device for single-board boot management of a frame-type device, which includes a memory, a processor, a program stored in the memory and operable on the processor, and used to realize the connection between the processor and the memory. The communication data bus is connected, and the steps of the aforementioned method are realized when the program is executed by the processor.
本公开提供了一种存储介质,用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现前述方法的步骤。The present disclosure provides a storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the foregoing method.
图3是本公开实施例提供的堆叠系统整体示意图,如图3所示,整个系统由一个框或多个框组成,每个框由两个主控单板和若干个个其他单板组成。其中,每个框式设备包括主控板、其他板卡和背板;其中,主控板至少包括:CPU,板间通讯网口,控制面交换芯片(管理板间通讯),访问背板存储信息的通道(例如访问背板ERPROM);其他板卡至少包括:CPU,板间通讯网口。背板至少包括:单板的供电、数据、管理、控制平面的各种通道。FIG. 3 is an overall schematic diagram of a stacking system provided by an embodiment of the present disclosure. As shown in FIG. 3 , the entire system consists of one frame or multiple frames, and each frame consists of two main control boards and several other boards. Each frame device includes a main control board, other boards, and a backplane; the main control board at least includes: a CPU, an inter-board communication network port, a control plane switching chip (communication between management boards), and access to information stored on the backplane The channel (such as access to the backplane ERPROM); other boards include at least: CPU, inter-board communication network port. The backplane at least includes: various channels of the power supply, data, management, and control planes of the single board.
多个框之间通过级联口链接形成堆叠环境,此时每个框的内部网络互相联通,形成整个内部网络,网络报文可以跨框传递。Multiple boxes are linked through cascading ports to form a stacking environment. At this time, the internal network of each box is interconnected to form the entire internal network, and network packets can be transmitted across boxes.
主控单板包含DHCP服务端、板间通讯网口、交换芯片(负责管理与其他单板的通讯网络)和能够访问背板存储信息的通讯通道。主控根据功能又划分为系统主用主控、本框主用主控、预备主控。The main control single board includes a DHCP server, an inter-board communication network port, a switching chip (responsible for managing the communication network with other single boards) and a communication channel that can access the information stored on the backplane. According to the function, the main control is divided into the main main control of the system, the main main control of this box, and the standby main control.
整个系统都只有一个系统主用主控,对于该单板所在的框来说,同时也是本框主用主控, 包含版本管理服务端和DHCP服务端。主要负责对整个系统的运行版本进行统一管理、本框内其他单板机框信息管理和传递。本框主用主控和预备主控,相对于系统主用主控而言,缺少了版本管理的功能,仍然负责本框内其他单板机框信息的管理和传递。而预备主控,和前两者比较,处于待命状态。为了在本框主用主控发生异常时,能够快速顶替它,进入正常工作模式,使系统正常运行不受影响。There is only one system master controller in the whole system. For the frame where the board is located, it is also the master controller of the frame, including the version management server and the DHCP server. It is mainly responsible for the unified management of the running version of the entire system, and the information management and transmission of other single-board chassis in this chassis. Compared with the main master control of the system, the active master control and standby master control of this frame lack the function of version management, and are still responsible for the management and transmission of information of other single-board chassis in this frame. The standby master control, compared with the former two, is on standby. In order to quickly replace the main control of this box and enter the normal working mode when the main control of this box is abnormal, so that the normal operation of the system will not be affected.
其他单板包含DHCP客户端、板间通讯网口(与主控板交换芯片端口连接)。正常启动后,主要负责设备业务功能的正常运行。Other single boards include a DHCP client and an inter-board communication network port (connected to the switch chip port of the main control board). After normal startup, it is mainly responsible for the normal operation of equipment business functions.
本公开提出的一种框式设备单板启动管理的方法、系统、设备和存储介质,其为无法访问背板信息和没有其他单板间硬件通讯手段(例如IPMC通道)的单板提供一种单板启动管理的方法,同时可应用于多框堆叠环境,为设备维护人员简化了多框环境搭建流程,方便不同机框间单板的直接更换,减少人为操作导致的错误。The disclosure proposes a method, system, device and storage medium for single-board start-up management of frame-type equipment, which provides a single board that cannot access backplane information and has no other hardware communication means (such as IPMC channel) between single boards. The method of single-board start-up management can also be applied to a multi-chassis stacking environment, which simplifies the multi-chassis environment construction process for equipment maintenance personnel, facilitates the direct replacement of single boards between different chassis, and reduces errors caused by human operations.
图4是本公开实施例提供的框式设备单板启动管理的方法流程图,如图4所示,包括步骤1至18。FIG. 4 is a flow chart of a method for starting and managing a single board of a frame device provided by an embodiment of the present disclosure. As shown in FIG. 4 , steps 1 to 18 are included.
步骤1,单板根据机框类型和自身槽位号,得知自己槽位在这种机框上是什么类型单板,是主控还是其他单板。机框类型无法获取到时,则认为是其他单板。又根据单板的启动方式,区分出系统主用主控和其他主控。 Step 1. According to the type of the chassis and its own slot number, the board knows what type of board it is in the chassis, whether it is the main control board or other boards. If the chassis type cannot be obtained, it is considered to be other boards. And according to the startup mode of the single board, distinguish the main controller of the system from other master controllers.
步骤2,系统主用主控从本地启动(所有单板的软件版本保存在主控本地硬盘上),从背板读取启动所需的必要信息,例如机框类型和机框号,根据自身机框号和槽位号计算出自身在整个内部网络中独一无二的MAC和IP。配置交换芯片ACL规则,使除主控单板以外其他单板端口的DHCP报文重定向到本CPU,防止本框其他单板发送的DHCP报文请求被别的机框主控接收到,开启DHCP服务端,监听和接收DHCP请求,并携带机框类型、机框号和版本管理服务端信息进行应答。开启版本管理服务端,根据接收到的版本请求下发对应的版本文件。 Step 2, the main controller of the system starts locally (the software versions of all boards are stored on the local hard disk of the master controller), and reads the necessary information required for startup from the backplane, such as the type and The chassis number and slot number calculate its own unique MAC and IP in the entire internal network. Configure the ACL rule of the switch chip to redirect the DHCP packets of the ports of other boards except the main control board to the local CPU, so as to prevent the DHCP message requests sent by other boards in the subrack from being received by the main controller of other subracks. The DHCP server monitors and receives the DHCP request, and responds with the chassis type, chassis number and version management server information. Open the version management server and deliver the corresponding version file according to the received version request.
步骤3,其他主控启动时,发送DHCP广播请求(请求内容包含单板类型、PCB、BOM、CPU类型)。 Step 3, when other main controllers start, send a DHCP broadcast request (the request content includes the board type, PCB, BOM, CPU type).
步骤4,系统主用主控,接收到DHCP广播请求后,将自身机框类型、机框号和版本管理服务端信息组成应答报文,回复给其他主控。其中版本管理服务端信息,包括服务端IP地址(即系统主用主控的内部网络IP)、FTP登录用户名和密码。Step 4: After receiving the DHCP broadcast request, the main controller of the system composes a reply message with its own chassis type, chassis number and version management server information, and replies to other master controllers. The version management server information includes the IP address of the server (that is, the internal network IP of the main control system), FTP login user name and password.
步骤5,其他主控接收到系统主用主控的DHCP应答,获取版本管理服务端信息,并保存下来,以便在开启DHCP服务端之后在回复其他单板DHCP请求时,可以携带版本管理服 务端信息。Step 5: Other masters receive the DHCP response from the main master of the system, obtain the information of the version management server, and save it, so that they can carry the version management server when replying to the DHCP requests of other single boards after the DHCP server is turned on. information.
步骤6,其他主控从背板上读取启动所需的必要信息,根据自身机框号和槽位号计算出自身MAC和IP地址,配置交换芯片ACL规则,使除主控单板外所有其他单板端口的DHCP报文重定向到本CPU,防止本框其他单板发送的DHCP报文被别的机框主控接收到。 Step 6. Other main controllers read the necessary information required for startup from the backplane, calculate their own MAC and IP addresses according to their own frame number and slot number, and configure the ACL rules of the switching chip so that all but the main control board The DHCP packets of other board ports are redirected to the local CPU to prevent the DHCP packets sent by other boards in this subrack from being received by the master controller of other subracks.
步骤7,其他主控向系统主用主控的版本管理服务端,发送版本下载请求(请求内容包含单板类型、PCB、BOM、CPU类型)。 Step 7, other masters send a version download request to the version management server of the system master master (the request includes the board type, PCB, BOM, CPU type).
步骤8,系统主用主控根据收到的版本请求,整理版本文件清单。In step 8, the main control system of the system organizes the list of version files according to the received version request.
步骤9,系统主用主控将版本文件清单回复给其他主控。In step 9, the master control of the system replies the list of version files to other master controls.
步骤10,其他主控根据接收到的版本文件清单通过FTP从系统主用主控下载版本文件和配置,开始正常启动。启动完成后,开启DHCP服务端,监听和接收DHCP请求,并携带机框类型、机框号和版本管理服务端信息进行应答。 Step 10, other masters download version files and configurations from the system master master via FTP according to the received version file list, and start normal startup. After the startup is complete, start the DHCP server, monitor and receive DHCP requests, and respond with the chassis type, chassis number, and version management server information.
步骤11,其他单板启动时,发送DHCP广播请求(请求内容包含单板类型、PCB、BOM、CPU类型)。 Step 11, when other boards are started, send a DHCP broadcast request (request content includes board type, PCB, BOM, CPU type).
步骤12,由于配置ACL规则,只有本框主控能够收到本框其他单板的DHCP请求。如果发送DHCP请求的单板在系统主用主控所在的机框内,系统主用主控也视为本框主控会回复DHCP请求。本框主控接收到DHCP广播请求后,将自身机框类型、机框号和版本管理服务端信息组成应答报文,回复给其他单板。其中版本管理服务端信息包括服务端IP地址(即系统主用主控的内部网络IP)、FTP登录用户名和密码。In step 12, due to the configuration of the ACL rule, only the master controller of the subrack can receive the DHCP requests of other boards in the subrack. If the board that sends the DHCP request is in the chassis where the system master controller is located, the system master controller is also regarded as the master controller of this chassis and will reply the DHCP request. After receiving the DHCP broadcast request, the main controller of this subrack forms a response message with its own subrack type, subrack number and version management server information, and replies to other boards. The version management server information includes the IP address of the server (that is, the internal network IP of the main control of the system), FTP login user name and password.
步骤13,其他单板在收到DHCP应答后,获取应答中携带的机框类型、机框号和版本管理服务端信息,并填充到本地缓存中。Step 13: After receiving the DHCP response, other single boards obtain the subrack type, subrack number and version management server information carried in the response, and fill them in the local cache.
步骤14,其他单板,从本地缓存中获取的机框号和自身槽位号计算出自身的MAC和IP地址,保证整个内部网络中每个单板的IP和MAC互相不冲突。 Step 14, other single boards calculate their own MAC and IP addresses from the chassis number obtained from the local cache and their own slot numbers, so as to ensure that the IP and MAC of each single board in the entire internal network do not conflict with each other.
步骤15,其他单板向系统主用主控的版本管理服务端发送版本下载请求(请求内容包含单板类型、PCB、BOM、CPU类型)。 Step 15, other single boards send a version download request to the version management server of the system main controller (request content includes single board type, PCB, BOM, CPU type).
步骤16,系统主用主控根据收到的版本请求,整理版本文件清单。In step 16, the master control of the system organizes the list of version files according to the received version request.
步骤17,系统主用主控将版本文件清单回复给其他单板。In step 17, the main controller of the system replies the list of version files to other boards.
步骤18,其他单板根据接收到的版本文件清单通过FTP从系统主用主控下载版本文件和配置,开始正常启动。In step 18, the other single boards download the version files and configurations from the main control unit of the system through FTP according to the received version file list, and start normal startup.
其中,每个框上的主控单板都开启DHCP服务端(只需拥有应答DHCP广播包的能力即可),响应其他单板的DHCP请求,同一个框上的每个主控的DHCP应答内容都一样。回复 给各个单板的DHCP应答在标准DHCP协议上进行扩展,在携带FTP服务端信息的同时,还携带了本框的机框类型、框号和其他启动所需信息。部署简单、流程简单,所有启动必要信息在一次应答中传递完成。通过主控侧交换芯片给除主控单板外所有其他单板端口配置ACL规则使DHCP报文重定向到本CPU,即除主控单板外所有其他单板的DHCP报文只会传递到本框主控上,也就意味着其他单板只会收到本框主控的DHCP应答。避免在堆叠状态下,多个框形成一整个大内部网络后,DHCP报文跨框传递,每个非主控单板会收到所有框主控的DHCP应答。单板的IP和MAC,为静态方式获取,通过单板物理位置信息(机框号、槽位号、CPU号)计算获得,保证即使在堆叠状态下,各个单板的IP和MAC不会互相冲突。Among them, the main control board on each frame starts the DHCP server (it only needs to have the ability to respond to the DHCP broadcast packet), responds to the DHCP requests of other boards, and the DHCP response of each main control board on the same frame The content is the same. Reply The DHCP response to each board is extended on the standard DHCP protocol, carrying the FTP server information, as well as the subrack type, subrack number and other information required for startup. The deployment is simple, the process is simple, and all the necessary information for starting is transmitted in one response. Configure ACL rules on the ports of all boards except the main control board through the switch chip on the main control side to redirect DHCP packets to the CPU, that is, the DHCP packets of all boards except the main control board will only be transmitted to If the master controller of this subrack is connected, it means that other boards will only receive the DHCP response from the master controller of this subrack. Avoid in the stack state, after multiple frames form a large internal network, DHCP packets are transmitted across frames, and each non-master board will receive the DHCP responses from the masters of all frames. The IP and MAC of a single board are obtained in a static way, and are obtained through calculation of the physical location information of the single board (chassis number, slot number, CPU number), ensuring that the IP and MAC of each single board will not interact with each other even in the stack state. conflict.
本公开实施例提出的一种框式设备单板启动管理的方法、系统、设备和存储介质,其降低硬件成本和电路设计复杂度,简化设备维护人员操作流程,减少人为操作导致的错误。The embodiments of the present disclosure provide a method, system, device, and storage medium for single-board start-up management of frame-type equipment, which reduce hardware costs and circuit design complexity, simplify the operation process of equipment maintenance personnel, and reduce errors caused by human operations.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、设备中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.
在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上参照附图说明了本公开的一些实施例,并非因此局限本公开的权利范围。本领域技术人员不脱离本公开的范围和实质内所作的任何修改、等同替换和改进,均应在本公开的权利范围之内。Some embodiments of the present disclosure have been described above with reference to the accompanying drawings, and the scope of rights of the present disclosure is not limited thereby. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and spirit of the present disclosure shall fall within the scope of rights of the present disclosure.

Claims (10)

  1. 一种框式设备单板启动管理的方法,其中,所述方法包括:A method for starting and managing a single board of a frame device, wherein the method includes:
    堆叠系统中的系统主用主控在启动后,根据所述堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文;After the system master in the stacking system is started, according to the dynamic host address configuration protocol DHCP broadcast request sent by other masters in the stacking system, generate the first DHCP response message containing the version management server information;
    所述系统主用主控将所述包含版本管理服务端信息的第一DHCP应答报文发送给所述其他主控,以便所述其他主控从所述第一DHCP应答报文中获取版本管理服务端信息后,向所述系统主用主控发送版本下载请求;The main control of the system sends the first DHCP reply message containing the information of the version management server to the other masters, so that the other masters obtain the version management information from the first DHCP reply message. After the server information, send a version download request to the main control of the system;
    所述系统主用主控根据所述版本下载请求,生成版本文件清单,并将所述版本文件清单发送给所述其他主控,以便所述其他主控根据所述版本文件清单从所述系统主用主控下载版本文件,并利用所述版本文件完成启动。The main control of the system generates a list of version files according to the version download request, and sends the list of version files to the other masters, so that the other masters download the version files from the system according to the list of version files. The main controller downloads the version file, and uses the version file to complete the startup.
  2. 根据权利要求1所述的框式设备单板启动管理的方法,其中,还包括:The method for starting and managing a single board of a frame-type device according to claim 1, further comprising:
    在所述堆叠系统中的单板从所述其他主控中获取版本管理服务端信息后,向所述系统主用主控发送版本下载请求;After the single board in the stacking system obtains the version management server information from the other masters, it sends a version download request to the main master of the system;
    所述系统主用主控根据所述版本下载请求,生成版本文件清单,并将所述版本文件清单发送给所述单板,以便所述单板根据所述版本文件清单从所述系统主用主控下载版本文件,并利用所述版本文件完成启动。The main control of the system generates a version file list according to the version download request, and sends the version file list to the single board, so that the single board is active from the system according to the version file list. The main control downloads the version file, and uses the version file to complete the startup.
  3. 根据权利要求2所述的框式设备单板启动管理的方法,其中,所述堆叠系统中的单板从所述其他主控中获取版本管理服务端信息包括:The method for start-up management of a single board of a frame-type device according to claim 2, wherein the single board in the stacking system obtains the version management server information from the other main controller including:
    所述堆叠系统中的单板启动时,向所述单板的本框主控发送DHCP广播请求;When the single board in the stacking system is started, send a DHCP broadcast request to the master of the frame of the single board;
    所述本框主控根据所述单板的DHCP广播请求,生成包含版本管理服务端信息的第二DHCP应答报文,并将所述第二DHCP应答报文发送给所述单板;According to the DHCP broadcast request of the single board, the main control of the frame generates a second DHCP response message including version management server information, and sends the second DHCP response message to the single board;
    所述单板接收所述第二DHCP应答报文,并从所述第二DHCP应答报文中获取版本管理服务端信息。The single board receives the second DHCP response message, and acquires version management server information from the second DHCP response message.
  4. 根据权利要求1所述的框式设备单板启动管理的方法,其中,还包括:The method for starting and managing a single board of a frame-type device according to claim 1, further comprising:
    所述堆叠系统中的系统主用主控和其他主控分别为其管理的每个单板端口配置ACL规则,使每个单板发送的DHCP报文发送到其所属的本框主控。The main system master and other masters in the stacking system respectively configure ACL rules for each single board port they manage, so that the DHCP message sent by each single board is sent to the master of its own box.
  5. 根据权利要求1所述的框式设备单板启动管理的方法,其中,所述根据所述堆叠系统中的其他主控发送的DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文包括:The method for start-up management of a single board of a frame-type device according to claim 1, wherein, according to the DHCP broadcast request sent by other masters in the stacking system, a first DHCP response report containing version management server information is generated The text includes:
    所述系统主用主控在接收到其他主控发送的DHCP广播请求时,获取机框类型和机框号;The main controller of the system obtains the frame type and the frame number when receiving the DHCP broadcast request sent by other masters;
    所述系统主用主控将所述机框类型、机框号以及版本管理服务端信息组成第一DHCP应答报文。The main controller of the system forms the first DHCP response message with the subrack type, subrack number and version management server information.
  6. 一种框式设备单板启动管理的系统,其中,包括:A system for booting management of a single board of a frame device, including:
    系统主用主控,用于在启动后,根据所述堆叠系统中的其他主控发送的动态主机地址配置协议DHCP广播请求,生成包含版本管理服务端信息的第一DHCP应答报文,并将所述包含版本管理服务端信息的第一DHCP应答报文发送给所述其他主控,以及根据所述版本下载请求,生成版本文件清单,并将所述版本文件清单发送给所述其他主控;The main control of the system is used to generate the first DHCP response message containing the information of the version management server according to the DHCP broadcast request sent by other masters in the stacking system after startup, and send The first DHCP response message containing the version management server information is sent to the other masters, and a version file list is generated according to the version download request, and the version file list is sent to the other masters ;
    其他主控,用于向所述系统主用主控发送DHCP广播请求,并从所述第一DHCP应答报文中获取版本管理服务端信息后,向所述系统主用主控发送版本下载请求,以及根据所述版本文件清单从所述系统主用主控下载版本文件,并利用所述版本文件完成启动。Other masters are configured to send a DHCP broadcast request to the system master master, and after obtaining version management server information from the first DHCP response message, send a version download request to the system master master , and downloading a version file from the main control of the system according to the version file list, and using the version file to complete startup.
  7. 根据权利要求6所述的框式设备单板启动管理的系统,其中,还包括:The system for booting and managing a single board of a frame-type device according to claim 6, further comprising:
    单板,用于在从所述其他主控中获取版本管理服务端信息后,向所述系统主用主控发送版本下载请求,以便所述系统主用主控根据所述版本下载请求,生成版本文件清单,并将所述版本文件清单发送给所述单板;The single board is configured to send a version download request to the system main control after obtaining the version management server information from the other main control, so that the system main control generates a version download request according to the version download request. version file list, and send the version file list to the single board;
    所述单板,还用于根据所述版本文件清单从所述系统主用主控下载版本文件,并利用所述版本文件完成启动。The single board is further configured to download a version file from the system main controller according to the version file list, and use the version file to complete startup.
  8. 根据权利要求7所述的框式设备单板启动管理的系统,其中,所述单板还用于在启动时,向所述单板的本框主控发送DHCP广播请求,以便根据所述单板的DHCP广播请求,生成包含版本管理服务端信息的第二DHCP应答报文,并将所述第二DHCP应答报文发送给所述单板;The system according to claim 7, wherein the single board is further configured to send a DHCP broadcast request to the master of the frame of the single board when starting, so as to transmit a DHCP request according to the single board The DHCP broadcast request of the board generates a second DHCP response message containing version management server information, and sends the second DHCP response message to the single board;
    所述单板还用于接收所述第二DHCP应答报文,并从所述第二DHCP应答报文中获取版本管理服务端信息。The single board is further configured to receive the second DHCP response message, and acquire version management server information from the second DHCP response message.
  9. 一种框式设备单板启动管理的设备,其中,所述设备包括存储器、处理器、存储在所述存储器上并可在所述处理器上运行的程序以及用于实现所述处理器和所述存储器之间的连接通信的数据总线,所述程序被所述处理器执行时实现如权利要求1-5任一项所述的框式设备单板启动管理的方法的步骤。A device for single-board boot management of a frame device, wherein the device includes a memory, a processor, a program stored in the memory and operable on the processor, and a program for implementing the processor and the processor. A data bus for connection and communication between the memories, and when the program is executed by the processor, the steps of the method for booting and managing a single board of a frame-type device according to any one of claims 1-5 are implemented.
  10. 一种存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1-5中任一项所述的框式设备单板启动管理的方法的步骤。A storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement claims 1-5 The steps of the method for single-board start-up management of a frame-type device described in any one of the above.
PCT/CN2022/124686 2021-12-23 2022-10-11 Method, system, and device for managing startup of single board of chassis device, and storage medium WO2023116136A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111586478.3 2021-12-23
CN202111586478.3A CN116339764A (en) 2021-12-23 2021-12-23 Method, system, equipment and storage medium for frame type equipment single board starting management

Publications (1)

Publication Number Publication Date
WO2023116136A1 true WO2023116136A1 (en) 2023-06-29

Family

ID=86877587

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124686 WO2023116136A1 (en) 2021-12-23 2022-10-11 Method, system, and device for managing startup of single board of chassis device, and storage medium

Country Status (2)

Country Link
CN (1) CN116339764A (en)
WO (1) WO2023116136A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN101047597A (en) * 2007-04-30 2007-10-03 华为技术有限公司 Accessequipment based on Ethernet bus and its host-slave frame communication method
CN101232401A (en) * 2008-02-20 2008-07-30 中兴通讯股份有限公司 Machine frame type equipment quick start method
US20120002670A1 (en) * 2010-07-01 2012-01-05 Force 10 Networks, Inc. Multiple chassis stacking using front end ports
CN105591722A (en) * 2015-08-28 2016-05-18 杭州华三通信技术有限公司 Inter-board communication method and device
CN106878379A (en) * 2016-12-26 2017-06-20 新华三技术有限公司 One kind starts control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN101047597A (en) * 2007-04-30 2007-10-03 华为技术有限公司 Accessequipment based on Ethernet bus and its host-slave frame communication method
CN101232401A (en) * 2008-02-20 2008-07-30 中兴通讯股份有限公司 Machine frame type equipment quick start method
US20120002670A1 (en) * 2010-07-01 2012-01-05 Force 10 Networks, Inc. Multiple chassis stacking using front end ports
CN105591722A (en) * 2015-08-28 2016-05-18 杭州华三通信技术有限公司 Inter-board communication method and device
CN106878379A (en) * 2016-12-26 2017-06-20 新华三技术有限公司 One kind starts control method and device

Also Published As

Publication number Publication date
CN116339764A (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US11444765B2 (en) Methods and apparatus to manage credentials in hyper-converged infrastructures
US7340538B2 (en) Method for dynamic assignment of slot-dependent static port addresses
US10541877B2 (en) Dynamic reservation protocol for 5G network slicing
US8707290B2 (en) Firmware update in an information handling system employing redundant management modules
US11770359B2 (en) Maintaining communications in a failover instance via network address translation
US8495415B2 (en) Method and system for maintaining backup copies of firmware
US20070220301A1 (en) Remote access control management module
US9424148B2 (en) Automatic failover in modular chassis systems
JP2019153287A (en) Rack-mountable data storage system and programmable logic device
JP5910246B2 (en) Information processing system and virtual address setting method
CN101242330B (en) Electronic device, management server and control method thereof
WO2015158120A1 (en) Method and apparatus for upgrading software version
US10672044B2 (en) Provisioning of high-availability nodes using rack computing resources
CN110224917B (en) Data transmission method, device and system and server
US10375029B2 (en) Multimedia broadcasting system in multiple node structure and multimedia broadcasting control method thereof
JP2003173325A (en) Initialization method and power supply cutting method for computer system
US20240089352A1 (en) Udp message distribution method, udp message distribution apparatus, electronic device and computer readable storage medium
US9912534B2 (en) Computer system, method for starting a server computer, server computer, management station, and use
CN114124812A (en) Method and device for maintaining consistency of table items and electronic equipment
WO2023116136A1 (en) Method, system, and device for managing startup of single board of chassis device, and storage medium
CN113766041B (en) Method, device, equipment and storage medium for acquiring Media Access Control (MAC) address of first server
JP2011034161A (en) Server system and management method for server system
CN112667293B (en) Method, device and storage medium for deploying operating system
Cisco Message and Recovery Procedures
JP6041056B2 (en) Information processing apparatus and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22909454

Country of ref document: EP

Kind code of ref document: A1