Switch reset method, device, computer equipment and storage medium

A reset method and switch technology, which are applied to the details of data exchange, remote connection/disconnection of branches, and electrical components, etc., can solve problems such as packet loss and service interruption, and achieve the effect of avoiding packet loss and improving work efficiency.

Active Publication Date: 2022-06-24
北京东土军悦科技有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of soft reset, it is necessary to reset and reset the internal chip of the switch. Packet loss will occur during the reset process of the switch, resulting in service interruption.

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
  • Switch reset method, device, computer equipment and storage medium
  • Switch reset method, device, computer equipment and storage medium
  • Switch reset method, device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 A schematic diagram of the reset system architecture of the switch 102 provided in Embodiment 1 of the present invention includes a computer device 101 and a switch 102. The switch 102 includes multiple chips, such as a switch chip, an Ethernet (PHY) chip, and the like. The switch 102 is connected to the computer device 101. After the computer device 101 is connected to the switch 102, the switch 102 can be controlled to perform a hard reset and a soft reset. The computer device 101 may store auxiliary files used by the switch 102 for operation, such as the mapping table generated during the hard reset process as shown in the following embodiments, and reset flag / identification information for distinguishing hard reset or soft reset. The computer device 101 controls the switch to perform a reset by executing the reset method of the switch provided by the embodiment of the present invention, and the reset includes a hard reset and a soft reset.

[0028] figur...

Embodiment 2

[0068] image 3 It is a schematic structural diagram of a reset device for a switch provided in Embodiment 2 of the present invention. This embodiment can be applied to a situation in which the switch is controlled by a computer device to reset. The device can be executed by a computer device, and the computer device can be a personal computer (Personal Computer, PC), notebook computers, etc. The device specifically includes: a reset module 310 , a read-write call monitoring module 320 , a soft reset read operation response module 330 , a soft reset write operation response module 340 and a configuration recovery module 350 .

[0069] a reset module 310, configured to perform chip reset according to the reset identifier in response to triggering the switch to start;

[0070] The read-write call monitoring module 320 is used to obtain the read-write interface call of the initialization process;

[0071] The soft reset read operation response module 330 is configured to respon...

Embodiment 3

[0097] Figure 4 A schematic structural diagram of a computer device provided in Embodiment 3 of the present invention, such as Figure 4 As shown, the computer device includes a processor 40, a memory 41, an input device 42 and an output device 43; the number of processors 40 in the computer device can be one or more, Figure 4 Take a processor 40 as an example in the above; the processor 40, the memory 41, the input device 42 and the output device 43 in the computer equipment can be connected by a bus or other means, Figure 4 Take the connection through the bus as an example.

[0098] As a computer-readable storage medium, the memory 41 can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the reset method of the switch in the embodiment of the present invention (for example, the reset module 310, read and write call monitoring module 320, soft reset read operation response module 330, soft...

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 switch reset method, device, computer equipment and storage medium. The method includes: in response to triggering the switch to start, reset the chip according to the reset identifier; obtain the read-write interface call of the initialization process; if the read-write interface call is a soft reset read operation, respond to the soft reset read operation according to the mapping table, and the mapping table is hard Generated during the reset process; if the read / write interface call is a soft reset write operation, cancel the soft reset write operation; if the initialization process ends, restore the configuration of the chip according to the reset flag. When the switch is triggered to start, it can be determined according to the reset flag whether this start is a soft reset, thereby avoiding unnecessary reset operations. Use the mapping table generated during the hard reset process to respond to the read operation of the soft reset, and at the same time cancel the write operation of the soft reset, thereby effectively avoiding packet loss caused by parameter changes caused by initialization during the soft reset process, and improving the working efficiency of the switch during the reset process.

Description

technical field [0001] Embodiments of the present invention relate to a switch reset technology, and in particular, to a switch reset method, device, computer equipment, and storage medium. Background technique [0002] In the field of switches, the service requirements are getting higher and higher, and the switch needs to be restarted when the device is abnormal. Restarting the switch is divided into hot restart and cold restart. Warm restart is also called soft reset, and cold restart is also called hard reset. [0003] During the soft reset process, the internal chip of the switch needs to be reset and reset. Packet loss may occur during the switch reset process, resulting in service interruption. How to reset in the case of continuous flow has become an urgent problem to be solved. SUMMARY OF THE INVENTION [0004] The invention provides a reset method, device, computer equipment and storage medium of a switch, so as to avoid packet loss during the soft reset proces...

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 Patents(China)
IPC IPC(8): H04L12/12H04L49/65H04L41/0813
CPCH04L12/12H04L49/65H04L41/0813
Inventor 王小军薛兆井王倩
Owner 北京东土军悦科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products