CN110677357A - Method and device for rapidly forwarding port data of switching equipment - Google Patents

Method and device for rapidly forwarding port data of switching equipment Download PDF

Info

Publication number
CN110677357A
CN110677357A CN201810716906.1A CN201810716906A CN110677357A CN 110677357 A CN110677357 A CN 110677357A CN 201810716906 A CN201810716906 A CN 201810716906A CN 110677357 A CN110677357 A CN 110677357A
Authority
CN
China
Prior art keywords
configuration information
ports
port
switching device
switching equipment
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201810716906.1A
Other languages
Chinese (zh)
Other versions
CN110677357B (en
Inventor
袁志亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201810716906.1A priority Critical patent/CN110677357B/en
Publication of CN110677357A publication Critical patent/CN110677357A/en
Application granted granted Critical
Publication of CN110677357B publication Critical patent/CN110677357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/65Re-configuration of fast packet switches

Abstract

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.

Description

Method and device for rapidly forwarding port data of switching equipment
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.
Example one
Fig. 1A is a flowchart of a fast forwarding method for port data of a switch device according to an embodiment of the present invention, which can be applied to any switch system including a data forwarding port. The method for fast forwarding port data of a switching device provided in this embodiment of the present invention may be implemented by a fast forwarding apparatus for port data of a switching device provided in this embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner and is integrated in a switching device that executes the method, and the switching device that executes the method in this embodiment may be any device that can forward data through a port, such as a switch, a router, and a hub. Specifically, referring to fig. 1A, the method may include the steps of:
s110, receiving a starting instruction acting on the switching equipment.
The switching device is a network device capable of forwarding network data packets, and can provide an exclusive signal path for any two network nodes accessing the switching device in the network to perform data transmission. Optionally, the switching device may include a switch, a router, a hub, and the like, and may include a plurality of ports thereon, where each port may implement forwarding of a network packet through an internal switching chip and an access protocol. Further, the start instruction on the switching device may be a press instruction or a remote control instruction that a user acts on the switching device through a key or a remote control to turn on the switching device when the switching device is turned off, or a restart instruction that the user operates the switching device through a key or a remote control.
Specifically, because the closing of the port when the switching device is turned on may cause a certain delay to the port data forwarding, if the problem of the data forwarding with delay when the switching device is turned on is to be solved, when the port data forwarding method in this embodiment is executed, it is first necessary to receive a start instruction for starting the switching device, where the start instruction is acted on the switching device by a user through a key or a remote control, and the start instruction may include a start instruction and a restart instruction for operating the switching device by the user through the key or the remote control.
S120, all ports on the switching equipment are configured in advance in the boot stage of the switching equipment according to the starting instruction, and all ports are opened to forward port data.
The boot stage of the switch device mainly loads the operating system kernel of the switch device into the memory and starts the switch device, and can be usually completed by a special code of a boot program in the memory of the switch device, specifically completing the whole device start process of positioning the specific position of the operating system kernel code in the external memory, correctly loading the operating system kernel into the memory as required, and finally enabling the operating system kernel to run. Specifically, in this embodiment, the boot of the switching device is implemented by a boot file in the memory. Further, a port on the switching device may implement data transmission through any two network node devices in the access network, each port implements forwarding of port data in a Media Access Control (MAC) address identification manner, and port data is forwarded between corresponding ports through an MAC address corresponding to the port.
Specifically, when a start instruction acted on the switching device by a user is received, a special code for starting a boot program, that is, a boot file, is first searched in a memory of the switching device according to the start instruction, the switching device is self-checked by running the boot file, and an operating system kernel is loaded into the memory to start the switching device. In this embodiment, at the boot stage of the switching device, all ports on the switching device are initially configured in advance according to the start instruction, for example, the ports on the switching device may be configured in advance according to configuration information when the switching device is configured from a factory, after the ports are all configured in advance, all the ports are opened without closing the ports, and the ports are kept in an open forwarding state all the time when the switching device is started, so that the port data is quickly forwarded.
Optionally, as shown in fig. 1B, pre-configuring all ports on the switch device in a boot stage of the switch device according to the start instruction may specifically include the following steps:
and S121, acquiring the port type and default configuration information of the switching equipment according to the starting instruction.
The port type of the switching device may include ethernet, token ring, Fiber Distributed Data Interface (FDDI), Asynchronous Transfer Mode (ATM) Interface, and the like. The switching devices may contain different port types, for example, fixed port switches may have only a single type of port, while modular switches may have more abundant port types due to the availability of modules comprising different media types. Further, the default configuration information of the switching device may include port default information that will not be frequently modified subsequently and initial basic configuration information, such as basic attribute information and port address information of a factory configured port, an exchange relationship between default ports, a default executed function protocol, and the like, and may further include Virtual Local Area Network (VLAN) information corresponding to each default divided port. Optionally, the default configuration information in this embodiment may be obtained through a set default rule, and the default rule may set default initial configuration information of each port through a chip conversion table entry.
Specifically, in order to configure the ports in advance in the boot stage of the switching device, the port types of all the ports on the switching device and the default configuration information in the configuration information need to be acquired first, and the acquired port types and default configuration information are not changed in the subsequent starting process of the switching device, so that the correctness of the subsequent preconfigured port information is ensured.
And S122, pre-configuring all ports on the switching equipment in a boot stage according to the port type and default configuration information.
Specifically, after the port type and the default configuration information of the switching device are obtained, all ports in the switching device are configured in advance in a boot stage of the switching device when a boot file is run directly according to the default attribute information, the port address information, the switching connection information and the like of each port in the determined port type and the default configuration information, and because the port type and the default configuration information cannot be modified in a subsequent starting process of the switching device, all the ports configured in advance cannot be modified at this time in the subsequent process. All ports configured in advance in the boot stage are always in an open state, the ports can realize forwarding within a few seconds after the switching equipment is restarted, and in the restarting process of the switching equipment, if the ports are in a default configuration state, the corresponding forwarding can be uninterrupted all the time, so that the forwarding rate of port data is improved.
According to the technical scheme provided by the embodiment, 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 delay in the data forwarding process are reduced, the system ready time is shortened, and the port data forwarding rate is improved.
Example two
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, where the embodiment is optimized based on the foregoing embodiment. Specifically, referring to fig. 2A, the present embodiment may include the following steps:
s210, receiving a starting instruction acting on the switching equipment.
And S220, acquiring the port type and default configuration information of the switching equipment according to the starting instruction.
And S230, pre-configuring all ports on the switching equipment in a boot stage according to the port types and the default configuration information, and opening all the ports.
And S240, initializing basic operation information in the switching equipment.
The basic operation information in the switching device may include function information of each device in the switching device, supported protocol information, and an internal hardware module structure. Optionally, the boot file is run in a boot stage of the switching device, after all ports are configured in advance according to the port type and default configuration information, in a start stage of the switching device, the system such as the function information of each device, the supported protocol information, and the internal hardware module structure in the basic operation information of the switching device is initialized, for example, the initialization of hardware, circuit logic, and the like, and the initialization of a kernel data structure, such as the MAC address table, the interface parameters, and the like. Optionally, each operation information may be initialized correspondingly through the basic operation information parameter stored in the memory of the switching device.
And S250, acquiring various configuration information in the exchange equipment.
Specifically, the configuration information in the switching device includes default configuration information set by the user according to the commonly used functions and non-default configuration information subsequently added and set according to the self requirements. The non-default configuration information may enable the switching device to execute a corresponding function required by the user by running the non-default configuration information after being started. Optionally, in the configuration recovery stage of the switching device, in order to recover each configuration file, first, each configuration information in the switching device needs to be acquired.
And S260, respectively executing corresponding configuration recovery operation according to the configuration information.
Further, after acquiring each configuration information in the switching device, it is necessary to perform configuration recovery on each configuration information when the switching device is started, so as to subsequently implement a corresponding configuration function. Optionally, in this embodiment, according to the type of each piece of configuration information, a hardware relationship table and/or an attribute record table of each port stored in the switching device corresponding to the configuration information may be modified correspondingly, so as to perform a corresponding configuration recovery operation.
Optionally, as shown in fig. 2B, the step of respectively executing the corresponding configuration recovery operation according to each piece of configuration information may specifically include the following steps:
s261, sequentially determining the types of the respective configuration information.
Specifically, the configuration information in the switching device may include a plurality of pieces, and each piece of configuration information needs to be recovered in the configuration recovery stage, so in this embodiment, the configuration recovery operation is performed on each piece of configuration information by obtaining all pieces of configuration information in the switching device and sequentially determining the types of all pieces of configuration information.
S262, judging whether the configuration information is default configuration information, if yes, executing S263; if not, go to S264.
Specifically, the type of each piece of configuration information is judged to be default configuration information or non-default configuration information, and different configuration recovery operations are correspondingly executed.
And S263, modifying the upper layer record corresponding to the default configuration information.
Specifically, when the configuration information is the default configuration information, because the bottom hardware in the default configuration information is not changed, for example, the MAC address table of the switch chip in the switch, the VLAN connection information corresponding to each port, and the like, when the default configuration information is restored, only the upper layer records corresponding to the default configuration information need to be correspondingly modified, for example, the attribute information table and the software record table of each port, and the like, so that the configuration restoration of the default configuration information is realized, the restoration operation time is reduced, and the efficiency of the configuration restoration is improved.
And S264, respectively modifying the bottom layer operation and the upper layer record corresponding to the non-default configuration information.
Specifically, when the configuration information is the non-default configuration information, the configuration recovery operation is performed according to a normal processing flow in the prior art, and the bottom layer operation and the upper layer record corresponding to the non-default configuration information are modified respectively.
And S270, when the configuration recovery operation of all the configuration information is completed, correspondingly processing the message information uploaded in the switching equipment.
Specifically, in the foregoing operation process, if the port of the switching device receives the uploaded message information, the message information is not processed at all, and only when the configuration recovery operation of all the configuration information in the switching device is completed, the uploaded message information is processed correspondingly, so that the stability and the protocol reliability of the device are ensured. The message information may include protocol information of the switching device, and the like. Optionally, when the switching device is started, the port that is not closed in the configuration recovery process may be always in an open state, so as to improve the forwarding rate of the port data.
According to the technical scheme provided by the embodiment, all ports are configured and opened in advance at the boot stage of the switching device, so that the data among the ports are quickly forwarded when the switching device is started, the interruption and delay in the data forwarding process are reduced, the system ready time is shortened, the forwarding rate of the port data is improved, the recovery operation time of default configuration information is reduced, and the configuration recovery efficiency is improved.
EXAMPLE III
Fig. 3 is a flowchart of a method for fast forwarding port data of a switch device applied to a specific switch according to a third embodiment of the present invention. In this embodiment, a specific application scenario is given based on the above embodiment, and in this embodiment, the switch is powered on to start. Specifically, as shown in fig. 3, the method may include the following steps:
s301, receiving a power-on starting instruction of the switch.
S302, when the boot file is operated, all ports are configured in advance according to the port type and default configuration information on the switch and are opened.
S303, the application on the switch starts to start.
S304, initializing basic operation information such as each function and protocol, and the like, and not executing operations such as port reset and the like which cause data packet loss.
S305, start the configuration recovery operation of the configuration information.
S306, judging whether the configuration information is default configuration information, if so, executing S307; if not, go to S308.
And S307, only modifying the upper record without issuing bottom hardware.
S308, normal operation is carried out, and meanwhile, the software and hardware table entry information is modified.
S309, judging whether the configuration information is the last configuration information, if so, executing S310; if not, the process returns to the step S306.
And S310, finishing the startup of the switch.
According to the technical scheme provided by the embodiment, 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 delay in the data forwarding process are reduced, the system ready time is shortened, and the port data forwarding rate is improved.
Example four
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, specifically, as shown in fig. 4, the apparatus may include:
an instruction receiving module 410, configured to receive a start instruction acting on the switching device;
the port opening module 420 is configured to pre-configure all ports on the switch device in a boot stage of the switch device according to the start instruction, and open all ports to forward port data.
The port opening module 420 may include: an information obtaining unit 4201, configured to obtain, according to the start instruction, a port type and default configuration information of the switching device; a port configuration unit 4202, configured to pre-configure all ports on the switch device during the boot phase according to the port type and the default configuration information.
According to the technical scheme provided by the embodiment, 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 delay in the data forwarding process are reduced, the system ready time is shortened, and the port data forwarding rate is improved.
Further, the above apparatus may further include: a configuration obtaining module 430, configured to obtain each configuration information in the switching device after all ports are opened; and a configuration recovery module 440, configured to perform a corresponding configuration recovery operation according to each configuration information.
Further, the configuration restoration module 440 may include: a type determining unit 4401, configured to sequentially determine types of the respective pieces of configuration information; a default recovery unit 4402, configured to modify an upper layer record corresponding to the default configuration information if the configuration information is the default configuration information; the non-default recovery unit 4403 is configured to, if the configuration information is the non-default configuration information, modify the bottom layer operation and the upper layer record corresponding to the non-default configuration information respectively.
Further, the above apparatus may further include: the message processing module 450 is configured to perform corresponding processing on the message information uploaded in the switching device when the configuration recovery operation of all the configuration information is completed.
Further, the above apparatus may further include: the initialization module 460 is configured to initialize basic operation information in the switching device after all ports are opened.
The fast forwarding apparatus for port data of switching device provided in this embodiment may be applied to the fast forwarding method for port data of switching device provided in any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a switching device according to a fifth embodiment of the present invention, as shown in fig. 5, the switching device includes a processor 50, a storage device 51, and a communication device 52; the number of the processors 50 in the switching device may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50, the storage means 51 and the communication means 52 in the switching device may be connected by a bus or other means, which is exemplified in fig. 5.
The storage device 51 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the fast forwarding method for switching device port data in the embodiment of the present invention (for example, the instruction receiving module 410 and the port opening module 420 in the fast forwarding device for switching device port data). The processor 50 executes various functional applications and data processing of the switch device by running software programs, instructions and modules stored in the storage device 51, that is, implements the above-mentioned fast forwarding method for port data of the switch device.
The storage device 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 51 may further include memory located remotely from the processor 50, which may be connected to the switching device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication means 52 may be used to implement a network connection or a mobile data connection between switching devices.
The switch device provided by this embodiment may be configured to execute the method for fast forwarding port data of the switch device provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the method for fast forwarding port data of a switching device in any of the above embodiments. The method specifically comprises the following steps:
receiving a starting instruction acting on the switching equipment;
all ports on the switching equipment are pre-configured in a booting stage of the switching equipment according to the starting instruction, and all ports are opened to forward port data;
wherein, pre-configuring all ports on the switch device at the 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;
all ports on the switching device are pre-configured during the boot-up phase according to the port type and default configuration information.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for fast forwarding port data of a switch device provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus for fast forwarding port data of the switching device, each unit and each module included in the apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

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.
CN201810716906.1A 2018-07-03 2018-07-03 Method and device for rapidly forwarding port data of switching equipment Active CN110677357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810716906.1A CN110677357B (en) 2018-07-03 2018-07-03 Method and device for rapidly forwarding port data of switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810716906.1A CN110677357B (en) 2018-07-03 2018-07-03 Method and device for rapidly forwarding port data of switching equipment

Publications (2)

Publication Number Publication Date
CN110677357A true CN110677357A (en) 2020-01-10
CN110677357B CN110677357B (en) 2021-07-13

Family

ID=69065688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810716906.1A Active CN110677357B (en) 2018-07-03 2018-07-03 Method and device for rapidly forwarding port data of switching equipment

Country Status (1)

Country Link
CN (1) CN110677357B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160062934A1 (en) * 2008-12-31 2016-03-03 Intel Corporation Scalable method and apparatus to configure a link
CN105718248A (en) * 2014-12-02 2016-06-29 比亚迪股份有限公司 System on chip, and method and apparatus for port function initialization for system on chip
CN106250106A (en) * 2016-07-15 2016-12-21 青岛海信宽带多媒体技术有限公司 The startup method and device of projector equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160062934A1 (en) * 2008-12-31 2016-03-03 Intel Corporation Scalable method and apparatus to configure a link
CN105718248A (en) * 2014-12-02 2016-06-29 比亚迪股份有限公司 System on chip, and method and apparatus for port function initialization for system on chip
CN106250106A (en) * 2016-07-15 2016-12-21 青岛海信宽带多媒体技术有限公司 The startup method and device of projector equipment

Also Published As

Publication number Publication date
CN110677357B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN108228209B (en) System, method, and medium for automatically updating firmware of elements of a server system
TWI614601B (en) Discharging and charging method, non-transitory computer-readable storage medium, and system for discharging and charging a battery system
TWI638260B (en) An operable system when standby power of psu fails and computer-implemented method, non-transitory computer-readable storage medium thereof
TWI631452B (en) Computer-implemented method and system for dynamically optimizing operation frequency of server system
WO2015100878A1 (en) Chip starting method, multi-core processor chip and storage medium
CN108924064B (en) Switch quick start method, switch and medium
TW201828060A (en) Computer-implemented method for powering down a plurality of active components of system, and server system
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
CN111857946A (en) Location-based virtualized workload placement
US20200153682A1 (en) System and method for processing messages during a reboot of a network device
US20240155023A1 (en) Method and system for implementing bare metal inspection process, device, and storage medium
US8902906B2 (en) Dynamic network identity architecture
CN107659516B (en) Function control method and device for broadband remote access server BRAS
US10819627B2 (en) Network device stacking
CN110677357B (en) Method and device for rapidly forwarding port data of switching equipment
CN111294279B (en) Device and method for setting backup port of network aggregation group in PXE environment
CN108234174B (en) Management method and device of virtual network function
CN110086676B (en) Configuration method of distributed router and related equipment
KR20150104435A (en) Method of performing transition of operation mode for a routing processor
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
WO2021023312A1 (en) Method for rapidly starting memory of system on chip
CN113886153B (en) Network card pressure testing method and device based on container
US10904088B2 (en) Reconfiguring network settings for operating configuration installation
CN117234544B (en) Method and device for recovering system of server equipment
JP2001251337A (en) Method for revising setting of router

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200110

Assignee: Zhongguancun Technology Leasing Co., Ltd

Assignor: KYLAND TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980014048

Denomination of invention: A fast forwarding method and device for port data of switching equipment

Granted publication date: 20210713

License type: Exclusive License

Record date: 20211206

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A fast forwarding method and device for port data of switching equipment

Effective date of registration: 20211209

Granted publication date: 20210713

Pledgee: Zhongguancun Technology Leasing Co., Ltd

Pledgor: KYLAND TECHNOLOGY Co.,Ltd.

Registration number: Y2021980014528