CN113259452A - Storm control implementation method, device, equipment and readable storage medium - Google Patents

Storm control implementation method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113259452A
CN113259452A CN202110607121.2A CN202110607121A CN113259452A CN 113259452 A CN113259452 A CN 113259452A CN 202110607121 A CN202110607121 A CN 202110607121A CN 113259452 A CN113259452 A CN 113259452A
Authority
CN
China
Prior art keywords
storm control
configuration information
database
control parameter
storm
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
CN202110607121.2A
Other languages
Chinese (zh)
Other versions
CN113259452B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110607121.2A priority Critical patent/CN113259452B/en
Publication of CN113259452A publication Critical patent/CN113259452A/en
Application granted granted Critical
Publication of CN113259452B publication Critical patent/CN113259452B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a storm control realization method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: reading storm control configuration information from a configuration file corresponding to the equipment; synchronizing the storm control configuration information to the SAI, issuing the storm control configuration information to a switching chip connected with the equipment by the SAI, and carrying out storm control by the switching chip according to the storm control configuration information. According to the technical scheme, storm control is achieved through the sonic system, storm control configuration information is read from the configuration file and is synchronized to the SAI, the SAI issues the storm control configuration information to the exchange chip, and the exchange chip performs storm control.

Description

Storm control implementation method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of multi-service network technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for implementing storm control.
Background
With the development of multi-service networks, data carried in the networks increases in geometric multiples, and services in the multi-service networks occupy a large amount of network bandwidth, so that the bandwidth becomes a bottleneck in the development of the internet. In order to make the bandwidth meet the service requirement as much as possible, storm control is required.
At present, when storm control is realized, each manufacturer generally develops and designs a control system of the manufacturer, and the control system developed and designed is utilized to realize the storm control, but the control systems developed and designed by the manufacturers are different, so that the compatibility of the control system is low, and the compatibility of the storm control realization is low, and other personnel do not know the structure of the control system, so that once a problem occurs in the storm control realization process, a technical developer for developing and designing the control system in the manufacturer is required to maintain, and the maintainability of the storm control realization is low.
In summary, how to improve the compatibility and maintainability of storm control implementation is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a storm control implementation method, apparatus, device and computer readable storage medium for improving the compatibility and maintainability of storm control implementation.
In order to achieve the above purpose, the present application provides the following technical solutions:
a storm control implementation method is applied to a sonic system and comprises the following steps:
reading storm control configuration information from a configuration file corresponding to the equipment;
synchronizing the storm control configuration information to SAI, so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information.
Preferably, synchronizing the storm control configuration information to the SAI comprises:
storing the storm control configuration information in a database of management configuration information; wherein the storm control configuration information comprises a first storm control parameter belonging to configuration information and application information and a second storm control parameter belonging to configuration information;
and judging whether a first storm control parameter in the database of the management configuration information is updated, if so, synchronizing the updated first storm control parameter from the database of the management configuration information to an application specific integrated circuit database, synchronizing a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the application specific integrated circuit database, and synchronizing the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the application specific integrated circuit database to the SAI.
Preferably, before synchronizing the updated first storm control parameter from the database of management configuration information to the asic database, the method further comprises:
synchronizing the updated first storm control parameter from the database of management configuration information to a database of management application information;
accordingly, synchronizing the updated first storm control parameter from the database of management configuration information to an application specific integrated circuit database, comprising:
and acquiring the updated first storm control parameter from the database of the management application information, and synchronizing the updated first storm control parameter acquired from the database of the management application information into the application specific integrated circuit database.
Preferably, synchronizing a second storm control parameter corresponding to the updated first storm control parameter from the database of management configuration information to the asic database includes:
acquiring a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information and processing the second storm control parameter to generate a corresponding identifier;
and synchronizing the identifier into the application specific integrated circuit database, and synchronizing the corresponding second storm control parameter into the application specific integrated circuit database according to the identifier.
Preferably, reading storm control configuration information from a configuration file corresponding to the device includes:
and reading the storm control configuration information from a corresponding configuration file when the equipment is initialized and a configuration file corresponding to a configuration instruction received by the equipment in the running process.
Preferably, the exchanging chip performs storm control according to the storm control configuration information, and includes:
when the exchange chip determines that the current type of traffic received by the port corresponding to the storm control configuration information reaches a predetermined threshold value, the exchange chip controls the port to discard the received current type of traffic, and controls the port to receive traffic when other types of traffic reach the port.
A storm control realizing device is applied to a sonic system and comprises:
the reading module is used for reading storm control configuration information from a configuration file corresponding to the equipment;
and the synchronization module is used for synchronizing the storm control configuration information to an SAI (software interface), so that the SAI issues the storm control configuration information to an exchange chip connected with the equipment, and the exchange chip performs storm control according to the storm control configuration information.
Preferably, the synchronization module includes:
the storage unit is used for storing the storm control configuration information into a database of management configuration information; wherein the storm control configuration information comprises a first storm control parameter belonging to configuration information and application information and a second storm control parameter belonging to configuration information;
a determining unit, configured to determine whether a first storm control parameter in the database of the management configuration information is updated, if so, synchronize the updated first storm control parameter from the database of the management configuration information to an asic database, synchronize a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the asic database, and synchronize the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the asic database to the SAI.
A storm control implementing device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storm control implementation method as claimed in any one of the preceding claims when executing said computer program.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the storm control implementation method according to any one of the preceding claims.
The application provides a storm control implementation method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: reading storm control configuration information from a configuration file corresponding to the equipment; synchronizing the storm control configuration information to the SAI so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information.
According to the technical scheme, storm control is achieved by applying the sonic system, storm control configuration information is read from a configuration file corresponding to equipment when the storm control is achieved, then the storm control information is synchronized to the SAI, the SAI issues the storm control configuration information to the exchange chip connected with the equipment, and the exchange chip carries out storm control according to the storm control configuration information.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for implementing storm control according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another implementation of storm control provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a storm control implementation apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a storm control implementation device according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a storm control implementation method, device, equipment and computer readable storage medium, which are used for improving the compatibility and maintainability of storm control implementation.
In order to make the technical solutions more clearly understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, which shows a flowchart of a storm control implementation method provided in an embodiment of the present application, an implementation method of storm control provided in an embodiment of the present application is applied to a sonic system, and may include:
s11: and reading storm control configuration information from a configuration file corresponding to the equipment.
The storm control implementation process provided by the present application may be specifically implemented by a sonic (Software for Open network in the Cloud) system, and when implementing the storm control, the sonic system may first read storm control configuration information from a configuration file corresponding to a device (specifically, a switch), where the storm control configuration information includes, but is not limited to, a storm type, port information, speed limit information, rate information, and a name (specifically, a name corresponding to the storm control configuration information).
S12: synchronizing the storm control configuration information to the SAI so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information.
After reading the storm control configuration information, the sonic system may synchronize the read storm control configuration information to an SAI (Switch Abstraction Interface), and the SAI issues the storm control configuration information to a Switch chip connected to the device, and then the Switch chip performs storm control according to the received storm control configuration information, specifically, the Switch chip continuously monitors inbound traffic of a port corresponding to the storm control configuration information, and compares the acquired traffic of the current type with a configured storm suppression level (specifically, a corresponding predetermined threshold value), and if the acquired storm suppression level is reached, suppresses the traffic of the current type until the stack traffic drops below the predetermined threshold value. It should be noted that the switch chip is a chip used in the switch device.
In the implementation process of storm control, the sonic system and the SAI operate in an open and open mode and belong to a co-building, sharing and open network ecosystem, so that the sonic system and the SAI are visible and transparent to various manufacturers, and the storm control is not required to be implemented by developing and designing a special control system by various manufacturers, so that the workload of development and design can be reduced, the convenience of storm control implementation can be improved, the compatibility of storm control implementation can be improved, and the maintenance can be performed by various developers in a development platform, so that the maintainability of the storm control implementation can be improved, and the stability of the sonic system and the storm control implementation can be improved.
According to the technical scheme, storm control is achieved by applying the sonic system, storm control configuration information is read from a configuration file corresponding to equipment when the storm control is achieved, then the storm control information is synchronized to the SAI, the SAI issues the storm control configuration information to the exchange chip connected with the equipment, and the exchange chip carries out storm control according to the storm control configuration information.
Referring to fig. 2, which shows a flowchart of another implementation of storm control provided in an embodiment of the present application, a method for implementing storm control provided in an embodiment of the present application, where synchronizing storm control configuration information to an SAI, may include:
storing the storm control configuration information into a database of management configuration information; wherein the storm control configuration information may include a first storm control parameter belonging to the configuration information and the application information and a second storm control parameter belonging to the configuration information;
judging whether a first storm control parameter in a database of management configuration information is updated or not, if so, synchronizing the updated first storm control parameter from the database of the management configuration information to an application specific integrated circuit database, synchronizing a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the application specific integrated circuit database, and synchronizing the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the application specific integrated circuit database to SAI.
When synchronizing the storm control configuration information to the SAI, the storm control configuration information read from the configuration file may be stored in a database of the management configuration information, and the read storm control configuration information may specifically include a first storm control parameter belonging to both the configuration information and the application information, and a second storm control parameter belonging to the configuration information, and the storm type and the port information in the storm control configuration information are specifically the first storm control parameter, and the speed limit information and the rate information in the storm control configuration information are specifically the second storm control parameter.
After storing the read storm control configuration information in the database of management configuration information, it may be determined whether the first storm control parameter in the database of management configuration information is updated and, if so, the updated first storm control parameter in the database of management configuration information may be synchronized from the database of management configuration information to the asic database, and in particular to the database of data transfer to the SAI, meanwhile, the second storm control parameter corresponding to the updated first storm control parameter can be obtained from the database of the management configuration information, and specifically, the second storm control parameter corresponding to the updated first storm control parameter can be obtained from the database of the management configuration information according to the name, and synchronizing the acquired second storm control parameter corresponding to the updated first storm control parameter to the ASIC database. And then, synchronizing the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the asic database to the SAI, wherein when synchronizing from the asic database to the SAI, the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter may be synchronized from the asic database to the SAI by using a program for synchronizing related information. It should be noted that if it is determined that the first storm control parameter in the database of the management configuration information is not updated, the subsequent process is not executed.
The read storm control configuration information is stored in the database of the management configuration information, the first storm control parameter and the corresponding second storm control parameter are synchronized to the application specific integrated circuit database from the database of the management configuration information after being updated, and the synchronization standardization and the standardization of the storm control configuration information can be realized through the process of synchronizing the application specific integrated circuit database to the SAI, so that the maintainability is improved, and the read storm control configuration information is stored in the database of the management configuration information, so that the relevant configuration information can be conveniently and directly checked and obtained from the database.
Before synchronizing the updated first storm control parameter from the database of the management configuration information to the asic database, the method for implementing storm control according to the embodiment of the present application may further include:
synchronizing the updated first storm control parameter from the database of the management configuration information to the database of the management application information;
accordingly, synchronizing the updated first storm control parameter from the database of management configuration information to the asic database may include:
and acquiring the updated first storm control parameter from the database of the management application information, and synchronizing the updated first storm control parameter acquired from the database of the management application information into the application specific integrated circuit database.
In this application, before synchronizing the updated first storm control parameter from the database for managing configuration information to the database for managing application information, the updated first storm control parameter may be synchronized from the database for managing configuration information to the database for managing application information, that is, after determining that the first storm control parameter belonging to both configuration information and application information in the database for managing configuration information is updated, the updated first storm control parameter may be synchronized from the database for managing configuration information to the database for managing application information, so that the updated first storm control parameter is stored by using the database for managing application information, so that the first storm control parameter may be checked and acquired from the database for managing application information.
After the updated first storm control parameter is synchronized to the database of the management application information from the database of the management configuration information, correspondingly, the process of synchronizing the updated first storm control parameter to the database of the application specific integrated circuit from the database of the management configuration information can be to directly acquire the updated first storm control parameter from the database of the management application information, and synchronize the updated first storm control parameter acquired from the database of the management application information to the database of the application specific integrated circuit, so that the normalization and standardization of the storage and synchronization of the first storm control parameter are realized, and the maintainability is improved.
It should be noted that, in the foregoing process, it may be specifically determined, by using the program for managing port information, whether the first storm control parameter in the database for managing configuration information is updated, and when it is determined that the update occurs, the updated first storm control parameter is synchronized from the database for managing configuration information to the database for managing application information by using the program for managing port information, and the updated first storm control parameter may be acquired from the database for managing application information by using the program for processing port information and synchronized into the asic database. In addition, in fig. 2, the cache server (Redis-server) includes three databases, namely, a database for managing configuration information, a database for managing application information, and an asic database.
In an implementation method of storm control provided in an embodiment of the present application, synchronizing a second storm control parameter corresponding to an updated first storm control parameter from a database of management configuration information to an asic database may include:
acquiring a second storm control parameter corresponding to the updated first storm control parameter from a database of the management configuration information and processing the second storm control parameter to generate a corresponding identifier;
and synchronizing the identifier into the application specific integrated circuit database, and synchronizing the corresponding second storm control parameter into the application specific integrated circuit database according to the identifier.
In this application, when synchronizing the second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the asic database, the second storm control parameter corresponding to the updated first storm control parameter may be obtained from the database of the management configuration information and processed to generate a corresponding identifier, where the specific processing procedure is to integrate the speed limit information and the rate information in the second storm control parameter corresponding to the updated first storm control parameter into a whole and generate an identifier corresponding to the whole (where the identifier mentioned herein may be specifically id, that is, oid corresponding to fig. 2), and then the generated identifier may be obtained, and the obtained identifier is synchronized to the asic database, and then the second storm control parameter corresponding to the identifier is obtained according to the identifier stored in the asic database (specifically, that is, the identifier corresponding to the identifier is obtained A second storm control parameter corresponding to the updated first storm control parameter), and synchronizing the obtained second storm control parameter to the application specific integrated circuit database.
Through the process, the second storm control parameter can be normalized and standardized synchronously, so that the maintenance and the like can be realized along the flow in the follow-up process.
It should be noted that, in the above process, the program for processing speed limit information may be used to obtain the second storm control parameter corresponding to the updated first storm control parameter from the database for managing configuration information and process the second storm control parameter, the program for processing port information is used to obtain the identifier from the program for processing speed limit information, the program for processing port information synchronizes the updated first storm control parameter and the identifier together into the asic database, and then the program for processing speed limit information is used to obtain the second storm control parameter corresponding to the identifier according to the identifier.
In the method for implementing storm control provided in the embodiment of the present application, reading storm control configuration information from a configuration file corresponding to a device may include:
and reading storm control configuration information from a corresponding configuration file when the equipment is initialized and a configuration file corresponding to a configuration instruction received by the equipment in the operation process.
Specifically, referring to fig. 2, when reading the storm control configuration information from the configuration file corresponding to the device, the storm control configuration information may be read from the configuration file corresponding to the device during initialization, and the process may specifically use a program for synchronizing the port information to read the storm control configuration information from the configuration file corresponding to the device during initialization.
In addition, if the device receives the configuration instruction in the operation process, the storm control configuration information is also read from the configuration file corresponding to the configuration instruction received by the device in the operation process, specifically referring to fig. 2.
Through the process, the storm control configuration information in all the configuration files corresponding to the equipment can be read, so that the accuracy of storm control is improved.
In the method for implementing storm control provided in the embodiment of the present application, the switching chip performs storm control according to the storm control configuration information, and the method may include:
when the exchange chip determines that the current type of traffic received by the port corresponding to the storm control configuration information reaches a predetermined threshold value, the control port discards the received current type of traffic, and receives the traffic when other types of traffic reach the port.
In this application, when the switch chip performs storm control according to the storm control configuration information, if the switch chip determines that the current type of traffic received by the port corresponding to the storm control information reaches the predetermined threshold value, the switch chip may control the port corresponding to the storm control configuration information to discard the received current type of traffic, and when the port corresponding to the storm control configuration information receives other types of traffic (specifically, traffic different from the current type of traffic) and reaches the port, the control port continues to receive the type of traffic (that is, other types of traffic). Compared with the prior art that the port is closed while the current type of traffic is discarded, the method and the device do not close the port, but enable the port to continue to normally receive other types of traffic so as to ensure that data corresponding to other types of traffic can be normally processed.
An embodiment of the present application further provides a storm control implementation apparatus, which is applied to a sonic system, and refer to fig. 3, which shows a schematic structural diagram of the storm control implementation apparatus provided in the embodiment of the present application, and the storm control implementation apparatus may include:
a reading module 31, configured to read storm control configuration information from a configuration file corresponding to a device;
and the synchronization module 32 is configured to synchronize the storm control configuration information to the SAI, so that the SAI issues the storm control configuration information to the switch chip connected to the device, and the switch chip performs storm control according to the storm control configuration information.
In an embodiment of the present application, the storm control device includes:
a storage unit for storing the storm control configuration information into a database of management configuration information; wherein the storm control configuration information may include a first storm control parameter belonging to the configuration information and the application information and a second storm control parameter belonging to the configuration information;
and the judging unit is used for judging whether the first storm control parameter in the database of the management configuration information is updated or not, if so, synchronizing the updated first storm control parameter from the database of the management configuration information to the application specific integrated circuit database, synchronizing the second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the application specific integrated circuit database, and synchronizing the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the application specific integrated circuit database to the SAI.
In the storm control implementation apparatus provided in the embodiment of the present application, the synchronization module 32 may further include:
a synchronization unit for synchronizing the updated first storm control parameter from the database of management configuration information to the database of management application information before synchronizing the updated first storm control parameter from the database of management configuration information to the application specific integrated circuit database;
accordingly, the judging unit may include:
the first acquiring subunit is configured to acquire the updated first storm control parameter from the database for managing the application information, and synchronize the updated first storm control parameter acquired from the database for managing the application information with the asic database.
The storm control implementation device provided by the embodiment of the application, the judgment unit may include:
the second acquiring subunit is used for acquiring and processing a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to generate a corresponding identifier;
and the synchronization subunit is used for synchronizing the identifier into the application specific integrated circuit database and synchronizing the corresponding second storm control parameter into the application specific integrated circuit database according to the identifier.
In an embodiment of the present application, the storm control device includes:
the reading unit is used for reading storm control configuration information from a corresponding configuration file during equipment initialization and a configuration file corresponding to a configuration instruction received by the equipment in the operation process.
An embodiment of the present application further provides a storm control implementation device, see fig. 4, which shows a schematic structural diagram of a storm control implementation device provided in an embodiment of the present application, and the storm control implementation device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
reading storm control configuration information from a configuration file corresponding to the equipment; synchronizing the storm control configuration information to the SAI so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information.
It should be noted that the storm control implementation device provided in the present application may specifically be a switch, and certainly, is not limited thereto.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps may be implemented:
reading storm control configuration information from a configuration file corresponding to the equipment; synchronizing the storm control configuration information to the SAI so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For a description of a relevant part in a storm control implementation apparatus, a device, and a computer-readable storage medium provided in the embodiments of the present application, reference may be made to detailed descriptions of a corresponding part in a storm control implementation method provided in the embodiments of the present application, and details are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A storm control implementation method is applied to a sonic system and comprises the following steps:
reading storm control configuration information from a configuration file corresponding to the equipment;
synchronizing the storm control configuration information to an SAI (software interface), so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information;
synchronizing the storm control configuration information to an SAI, comprising:
storing the storm control configuration information in a database of management configuration information; wherein the storm control configuration information comprises a first storm control parameter belonging to configuration information and application information and a second storm control parameter belonging to configuration information;
and judging whether a first storm control parameter in the database of the management configuration information is updated, if so, synchronizing the updated first storm control parameter from the database of the management configuration information to an application specific integrated circuit database, synchronizing a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the application specific integrated circuit database, and synchronizing the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the application specific integrated circuit database to the SAI.
2. The method of claim 1, wherein prior to synchronizing the updated first storm control parameter from the database of management configuration information to an application specific integrated circuit database, further comprising:
synchronizing the updated first storm control parameter from the database of management configuration information to a database of management application information;
accordingly, synchronizing the updated first storm control parameter from the database of management configuration information to an application specific integrated circuit database, comprising:
and acquiring the updated first storm control parameter from the database of the management application information, and synchronizing the updated first storm control parameter acquired from the database of the management application information into the application specific integrated circuit database.
3. The method of claim 2, wherein synchronizing a second storm control parameter corresponding to the updated first storm control parameter from the database of management configuration information to the ASIC database comprises:
acquiring a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information and processing the second storm control parameter to generate a corresponding identifier;
and synchronizing the identifier into the application specific integrated circuit database, and synchronizing the corresponding second storm control parameter into the application specific integrated circuit database according to the identifier.
4. The method of claim 1, wherein reading storm control configuration information from a configuration file corresponding to a device comprises:
and reading the storm control configuration information from a corresponding configuration file when the equipment is initialized and a configuration file corresponding to a configuration instruction received by the equipment in the running process.
5. The method of claim 1, wherein the switching chip performs storm control according to the storm control configuration information, and comprises:
when the exchange chip determines that the current type of traffic received by the port corresponding to the storm control configuration information reaches a predetermined threshold value, the exchange chip controls the port to discard the received current type of traffic, and controls the port to receive traffic when other types of traffic reach the port.
6. A storm control implementation device is applied to a sonic system and comprises:
the reading module is used for reading storm control configuration information from a configuration file corresponding to the equipment;
the synchronization module is used for synchronizing the storm control configuration information to an SAI (software interface), so that the SAI issues the storm control configuration information to a switching chip connected with the equipment, and the switching chip performs storm control according to the storm control configuration information;
the synchronization module includes:
the storage unit is used for storing the storm control configuration information into a database of management configuration information; wherein the storm control configuration information comprises a first storm control parameter belonging to configuration information and application information and a second storm control parameter belonging to configuration information;
a determining unit, configured to determine whether a first storm control parameter in the database of the management configuration information is updated, if so, synchronize the updated first storm control parameter from the database of the management configuration information to an asic database, synchronize a second storm control parameter corresponding to the updated first storm control parameter from the database of the management configuration information to the asic database, and synchronize the updated first storm control parameter and the second storm control parameter corresponding to the updated first storm control parameter from the asic database to the SAI.
7. A storm control implementing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storm control implementation method of any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the storm control implementation method according to any one of claims 1 to 5.
CN202110607121.2A 2021-06-01 2021-06-01 Storm control implementation method, device, equipment and readable storage medium Active CN113259452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110607121.2A CN113259452B (en) 2021-06-01 2021-06-01 Storm control implementation method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110607121.2A CN113259452B (en) 2021-06-01 2021-06-01 Storm control implementation method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113259452A true CN113259452A (en) 2021-08-13
CN113259452B CN113259452B (en) 2021-09-17

Family

ID=77185681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110607121.2A Active CN113259452B (en) 2021-06-01 2021-06-01 Storm control implementation method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113259452B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472663A (en) * 2014-07-04 2016-04-06 北京三星通信技术研究有限公司 Method and device for managing wireless resource
CN111585835A (en) * 2020-04-20 2020-08-25 深圳市信锐网科技术有限公司 Control method and device for out-of-band management system and storage medium
US20200382419A1 (en) * 2019-05-31 2020-12-03 Microsoft Technology Licensing, Llc Distributed sonic fabric chassis
CN112073333A (en) * 2020-08-28 2020-12-11 苏州浪潮智能科技有限公司 Intelligent containerized flow storm control method and system based on SONiC development

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472663A (en) * 2014-07-04 2016-04-06 北京三星通信技术研究有限公司 Method and device for managing wireless resource
US20200382419A1 (en) * 2019-05-31 2020-12-03 Microsoft Technology Licensing, Llc Distributed sonic fabric chassis
CN111585835A (en) * 2020-04-20 2020-08-25 深圳市信锐网科技术有限公司 Control method and device for out-of-band management system and storage medium
CN112073333A (en) * 2020-08-28 2020-12-11 苏州浪潮智能科技有限公司 Intelligent containerized flow storm control method and system based on SONiC development

Also Published As

Publication number Publication date
CN113259452B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US11586673B2 (en) Data writing and reading method and apparatus, and cloud storage system
EP3337094B1 (en) Method and apparatus for deploying network services
JP6332774B2 (en) Network function virtualized NFV failure management apparatus, device, and method
US10536456B2 (en) Method and system for identifying user information in social network
CN110602056B (en) Service parameter transmission method and device
WO2020087948A1 (en) Network slice template generation method, apparatus and device, and storage medium
CN110187995B (en) Method for fusing opposite end node and fusing device
CN105141453A (en) Control method capable of not interrupting service in upgrading process of system and system thereof
CN103200021A (en) Network management system, client-end, service-end and method for achieving data allocation in batches
CN111258627A (en) Interface document generation method and device
JP2019506764A (en) System and method for obtaining, processing and updating global information
CN110990110A (en) Virtual machine creation method and device based on Sriov network card
CN112328363A (en) Cloud hard disk mounting method and device
CN113259452B (en) Storm control implementation method, device, equipment and readable storage medium
CN103023704B (en) Virtual network service equipment access method and system
CN113326104B (en) Method, system and device for modifying internal configuration of virtual machine
CN110807035A (en) Serial number generation method, device, equipment and storage medium
WO2018010603A1 (en) Storage mode upgrade method, apparatus and system based on video cloud storage system
CN110503504B (en) Information identification method, device and equipment of network product
CN112286622A (en) Virtual machine migration processing and strategy generating method, device, equipment and storage medium
CN112350856B (en) Distributed service sign-off method and equipment
CN112948733B (en) Interface maintenance method, device, computing equipment and medium
CN115296979A (en) Fault processing method, device, equipment and storage medium
CN106993036B (en) Running environment information processing method and switch
CN113138877B (en) Method, apparatus and computer program product for managing backup systems

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