Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2016-06-15
北京云启志新科技股份有限公司
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the present invention proposes a switch control method and device to solve the problem of heavy switch adaptation workload

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Switcher control method and device
  • Switcher control method and device
  • Switcher control method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a switcher control method and device. The method comprises the steps that a switcher software layer obtains an upper layer control instruction used for controlling hardware operation; the switcher software layer reads a hardware identification, control parameters and a control function identification of hardware operation to be controlled according to the upper layer control instruction; switcher software compiles the upper layer control instruction into a hardware control instruction according to the hardware identification, the control parameters and the control function identification and transmits the hardware control instruction to a switcher hardware layer; the switcher hardware layer calls hardware drive according to the hardware control instruction and executes the hardware operation. The switcher control method and device solves the problem that the adapting workload of the switcher software layer is large, and therefore the application rate of a switcher is increased.

Description

technical field [0001] 本发明涉及交换机技术领域,尤其涉及一种交换机控制方法及装置。 Background technique [0002] 目前,在整个交换机的生态链中,是一个封闭的几家商用厂商主导市场的状态,比如、思科、juniper、华为和华三等,这必然造成用户需要支付昂贵的成本,同时无法对网络设备的转发、控制策略以及各种功能逻辑进行定制和开发。 [0003] 业界也开始探讨是否可以把交换机的生态系统打造成类似服务器的生态系统,有原始设计制造商(OriginalDesignManufacturer,ODM)、原始设备制造商(OriginalEquipmentManufacturer,OEM)专门负责底层的交换机硬件设计,上层有可以商用的交换机操作系统,用户可以自行进行选择相应的交换机操作系统和底层硬件,这样将大大降低用户成本,同时,加快整个产业的标准化,提升生产制造的效率。 [0004] 基于以上的设想,业界开始出现类似xorp、cumulus之类的商用交换机操作系统,同时也出现一些ODM专门从事硬件白牌机的代工,比如广达、富士康、天宏等,甚至一些大的互联网公司也开始定制研发自己的交换机操作系统,因为不同硬件ODM的硬件设计不同,此类的交换机操作系统需要逐一适配各种ODM的硬件,这样就提升研发的成本并且降低了研发效率。 [0005] 另外,Facebook主导的Oracle数据库认证专家(OracleCertifiedProfessional,OCP)中提出一种建议方案,即开发一个嵌入式操作系统之上、交换机操作系统之下的软件抽象层,通过在这个抽象层去适配多家的第三方软件厂商,其会针对市场上主要的ODM硬件(包括交换芯片asic,电源、风扇、端口计数等各种I2C),进行适配开发。 [0006] 以上方案虽然能够解决交换机操作系统到底层硬件的兼容适配问题,但仍需要在中间抽象层针对各种的硬件进行兼容适配,同时在抽象层上运行着用于和上层交换机逻辑通信的代理agent,也可以理解为一些虚拟驱动器Daemon守护进程,通过这些守护进程来对上层的交换机操作系统进行硬件的无关性和封装。这些做法都不便于快速扩展整个生态链的底层硬件提供商,并且中间层的代码会相当庞大,增加代码维护的代价。 Contents o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/4411
Inventor 段利平
Owner 北京云启志新科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products