Switcher control method and device
A technology of switches and control instructions, applied in the field of switches, can solve problems such as large workload of switch adaptation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 as shown, figure 1 是本发明实施例提供的一种交换机控制的方法流程示意图。 该方法可以由交换机控制装置来执行,其中所述装置可由软件和 / 或硬件实现,可作为交换机的一部分被内置在交换机内部。 The methods include:
[0041] 步骤101,交换机软件层获取用于控制硬件操作的上层控制指令;
[0042] 具体的,本实施例中应用软件层包括交换机操作系统以及适配层,所述应用软件层可以包括:第三方应用软件、二次开发应用软件、以及基于Openflow协议的应用软件等。所述二次开发应用软件可以为基于开源软件例如Quagga或Xorplus开发的传统交换机软件。上层控制指令可以涉及任何指令,例如对交换芯片控制策略进行变更的控制指令,对交换机芯片功能实现的控制指令,对交换机芯片中表项资源的定义和访问的控制指令,对交换机外设进行初始化、读、写响应的控制指令等。
[0043] 步骤102,所述交换机软件层根据所述上层控制指令读取待控制硬件操作的硬件标识、控制参数和控制函数标识;
[0044] 具体的,交换机软件层根据所述上层控制指令来查找已存储的硬件信息,该硬件信息预先存储在预设位置中,通过所述上层控制指令在该预设位置中查找具体的硬件参数,根据查找获取的具体的硬件参数来编译控制硬件的指令。
[0045] 优选地,所述交换机软件层根据所述上层控制指令读取待控制硬件操作的硬件标识、控制参数和控制函数标识,包括:
[0046] 所述交换机软件层根据所述上层控制指令确定待控制硬件的硬件标识;
[0047] 所述交换机软件层根据所述硬件标识读取硬件注册时存储的控制参数和控制函数标识。
[0048]Specifically, take the implementation of Advanced Configuration and Power Management Interface (Advanced Configuration and Power Management Interface, ACPI) as an example, the information of ACPI can be realized in the basic input ou...
Embodiment 2
[0055] Such as figure 2 as shown, figure 2 It is a schematic flowchart of a switch control method provided by an embodiment of the present invention. This embodiment is based on Embodiment 1, and step 201 is added. Details that are not described in detail in this embodiment can be referred to above Embodiment 1, such as figure 2 As shown, the switch control method provided in this embodiment includes the following operations:
[0056] Step 201, when the switch starts, it performs a hardware self-test through the basic input and output system BIOS to identify the inserted hardware and obtain the hardware identification of the hardware;
[0057] Specifically, when the switch is turned on, the registered hardware information of the switch is acquired through the BIOS self-check function, and the acquired hardware information is stored in a preset table according to a preset format. The switch software layer obtains the hardware identification from the preset table through t...
Embodiment 3
[0064] Such as image 3 as shown, image 3 It is a schematic flowchart of a switch control method provided by an embodiment of the present invention. This embodiment is based on the second embodiment, and step 301 and step 302 are added. For details not described in detail in this embodiment, please refer to the above-mentioned first and second embodiments, such as image 3 As shown, the switch control method provided in this embodiment includes the following operations:
[0065] Step 301, the switch software layer sends a hardware registration request to the hardware plugged into the switch;
[0066] Step 302, the hardware reports the hardware identification, control parameters and control function identification to the switch software layer for storage according to the hardware registration request;
[0067] Specifically, when new hardware is added to the switch, and the new hardware has not been registered on the switch system before, the new hardware can be actively acc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com