Method and device for rapidly forwarding port data of switching equipment

文档序号:1616977 发布日期:2020-01-10 浏览:19次 中文

阅读说明:本技术 一种交换设备端口数据的快速转发方法和装置 (Method and device for rapidly forwarding port data of switching equipment ) 是由 袁志亚 于 2018-07-03 设计创作,主要内容包括:本发明实施例公开了一种交换设备端口数据的快速转发方法和装置。其中,该方法包括:接收作用于交换设备上的启动指令;根据所述启动指令在所述交换设备的引导阶段预先配置所述交换设备上的全部端口,并开放所述全部端口,以转发端口数据。本发明实施例的技术方案,通过在交换设备的引导阶段预先配置并开放全部端口,实现交换设备启动时各个端口间数据的快速转发,减少数据转发过程中的中断和延时,缩短系统就绪时间,提高端口数据的转发速率。(The embodiment of the invention discloses a method and a device for rapidly forwarding port data of switching equipment. Wherein, the method comprises the following steps: receiving a starting instruction acting on the switching equipment; and pre-configuring all ports on the switching equipment in a boot stage of the switching equipment according to the starting instruction, and opening all the ports to forward port data. According to the technical scheme of the embodiment of the invention, all ports are configured and opened in advance at the boot stage of the switching equipment, so that the data among the ports can be quickly forwarded when the switching equipment is started, the interruption and the time delay in the data forwarding process are reduced, the system ready time is shortened, and the port data forwarding speed is improved.)

1. A method for fast forwarding port data of a switching device is characterized by comprising the following steps:

receiving a starting instruction acting on the switching equipment;

all ports on the switching equipment are configured in advance at a boot stage of the switching equipment according to the starting instruction, and all the ports are opened to forward port data;

wherein, the pre-configuring all ports on the switch device in a boot stage of the switch device according to the start instruction includes:

acquiring the port type and default configuration information of the switching equipment according to the starting instruction;

and according to the port type and the default configuration information, all ports on the switching equipment are configured in advance in the boot stage.

2. The method of claim 1, further comprising, after opening all of the ports:

acquiring each configuration information in the switching equipment;

and respectively executing corresponding configuration recovery operation according to the configuration information.

3. The method according to claim 2, wherein the performing the corresponding configuration recovery operation according to the respective configuration information respectively includes:

sequentially determining the types of the configuration information;

if the configuration information is default configuration information, modifying an upper layer record corresponding to the default configuration information;

and if the configuration information is non-default configuration information, modifying the bottom layer operation and the upper layer record corresponding to the non-default configuration information respectively.

4. The method according to claim 2, further comprising, after performing the corresponding configuration recovery operation according to the respective configuration information:

and when the configuration recovery operation of all the configuration information is completed, correspondingly processing the message information uploaded in the switching equipment.

5. The method according to any of claims 1-4, further comprising, after opening all of the ports:

and initializing basic operation information in the switching equipment.

6. A fast forwarding device for port data of a switching device, comprising:

the instruction receiving module is used for receiving a starting instruction acting on the switching equipment;

a port opening module, configured to pre-configure all ports on the switching device at a boot stage of the switching device according to the start instruction, and open all the ports to forward port data;

wherein the port opening module includes:

the information acquisition unit is used for acquiring the port type and default configuration information of the switching equipment according to the starting instruction;

a port configuration unit, configured to pre-configure all ports on the switch device in the boot phase according to the port type and the default configuration information.

7. The apparatus of claim 6, further comprising:

a configuration obtaining module, configured to obtain each configuration information in the switching device after opening all the ports;

and the configuration recovery module is used for respectively executing corresponding configuration recovery operation according to the configuration information.

8. The apparatus of claim 7, wherein the configuration restoration module comprises:

a type determining unit, configured to sequentially determine the type of each piece of configuration information;

the default recovery unit is used for modifying the upper layer record corresponding to the default configuration information if the configuration information is the default configuration information;

and the non-default recovery unit is used for respectively modifying the bottom layer operation and the upper layer record corresponding to the non-default configuration information if the configuration information is the non-default configuration information.

9. A switching device, characterized in that the switching device comprises:

one or more processors;

storage means for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the method for fast forwarding of switching device port data as claimed in any of claims 1-5.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for fast forwarding of switching device port data according to any one of claims 1 to 5.

Technical Field

The embodiment of the invention relates to the technical field of computer networks, in particular to a method and a device for rapidly forwarding port data of switching equipment.

Background

With the development of communication technology, switch systems are already ubiquitous in daily life of people, and data transmission between different devices in the same local area network is realized.

Currently, there are many devices in a switch system that support more functions and protocols. In order to ensure the stability and protocol reliability of each port when the switch system is started, the ports in the switch are generally closed when the switch system is started, the configuration stored in the switch system is restored after all devices and main function tasks of the switch system are initialized, and the ports are opened after all the stored configurations are restored, so that the data forwarding of each port is realized.

When the switch system is restarted, due to the closing and opening of the system ports, data forwarding can be interrupted for tens of seconds, but in some cases, the forwarding of data of each port can be quickly realized after the system is restarted, and the port data forwarding during the system restart in the prior art can cause a certain delay and cannot realize the purpose of quick forwarding.

Disclosure of Invention

The embodiment of the invention provides a method and a device for quickly forwarding port data of switching equipment, which are used for quickly forwarding data among ports when a switch system is restarted, shortening the system ready time and improving the forwarding rate of the port data.

In a first aspect, an embodiment of the present invention provides a method for fast forwarding port data of an exchange device, where the method includes:

receiving a starting instruction acting on the switching equipment;

all ports on the switching equipment are configured in advance at a boot stage of the switching equipment according to the starting instruction, and all the ports are opened to forward port data;

wherein, the pre-configuring all ports on the switch device in a boot stage of the switch device according to the start instruction includes:

acquiring the port type and default configuration information of the switching equipment according to the starting instruction;

and according to the port type and the default configuration information, all ports on the switching equipment are configured in advance in the boot stage.

In a second aspect, an embodiment of the present invention provides a fast forwarding apparatus for switching device port data, where the apparatus includes:

the instruction receiving module is used for receiving a starting instruction acting on the switching equipment;

a port opening module, configured to pre-configure all ports on the switching device at a boot stage of the switching device according to the start instruction, and open all the ports to forward port data;

wherein the port opening module includes:

the information acquisition unit is used for acquiring the port type and default configuration information of the switching equipment according to the starting instruction;

a port configuration unit, configured to pre-configure all ports on the switch device in the boot phase according to the port type and the default configuration information.

In a third aspect, an embodiment of the present invention provides a switching device, where the switching device includes:

one or more processors;

storage means for storing one or more programs;

when the one or more programs are executed by the one or more processors, the one or more processors implement the method for fast forwarding of switching device port data according to any embodiment of the present invention.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for fast forwarding port data of a switch device according to any embodiment of the present invention.

The method and the device for forwarding the port data of the switching equipment, provided by the embodiment of the invention, have the advantages that all ports are configured and opened in advance in the boot stage of the switching equipment, so that the data among the ports are quickly forwarded when the switching equipment is started, the interruption and the delay in the data forwarding process are reduced, the system ready time is shortened, and the port data forwarding rate is improved.

Drawings

Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:

fig. 1A is a flowchart of a method for fast forwarding port data of a switch device according to an embodiment of the present invention;

fig. 1B is a flowchart of a method for pre-configuring all ports on a switch device in a boot phase of the switch device according to a start instruction in a method according to an embodiment of the present invention;

fig. 2A is a flowchart of a method for fast forwarding port data of a switch device according to a second embodiment of the present invention;

fig. 2B is a flowchart of a method for respectively executing corresponding configuration recovery operations according to each configuration information in the method according to the second embodiment of the present invention;

fig. 3 is a flowchart of a method for fast forwarding port data of a switching device applied to a specific switch according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of a fast forwarding apparatus for switching device port data according to a fourth embodiment of the present invention;

fig. 5 is a schematic structural diagram of a switching device according to a fifth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种报文处理方法及一种网络设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!