CN106375109A - Switch configuration simulated issuing method, system and computer - Google Patents

Switch configuration simulated issuing method, system and computer Download PDF

Info

Publication number
CN106375109A
CN106375109A CN201610701798.1A CN201610701798A CN106375109A CN 106375109 A CN106375109 A CN 106375109A CN 201610701798 A CN201610701798 A CN 201610701798A CN 106375109 A CN106375109 A CN 106375109A
Authority
CN
China
Prior art keywords
configuration
mqc
issues
order
data structure
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
CN201610701798.1A
Other languages
Chinese (zh)
Other versions
CN106375109B (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610701798.1A priority Critical patent/CN106375109B/en
Publication of CN106375109A publication Critical patent/CN106375109A/en
Application granted granted Critical
Publication of CN106375109B publication Critical patent/CN106375109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a switch configuration simulated issuing system. The system comprises an MQC configuration command analysis module, a port issuing configuration command analysis module, an ACL rule analysis module, and a bottom layer simulated issuing module; the front three modules belong to analytic layer module for analyzing configuration files according to the configuration files input by a user and information of the single board type, slot number and the like, when the analytic layer is accurately executed, an interface of the bottom layer simulated issuing module can be called to enter the simulated issuing stage and return a simulated issuing result; the system enables the user to be divorced from real physical equipment and performs configuration issuing through software simulation, and the issuing effects of the current configuration on different equipment can be conveniently and rapidly checked, thereby evaluating the performance of single equipment, and selecting a product most suitable for the need of the user himself through comparison. The invention further discloses a switch configuration simulated issuing method and computer which have the abovementioned effect.

Description

Method, system and computer that a kind of switch configuration simulation issues
Technical field
The present invention relates to technical field of data processing, the method issuing particularly to a kind of configuration simulation of switch, system And computer.
Background technology
In recent years, with the surge of internet traffic, numerous companies start the switch device in machine room is carried out one after another Regenerate and upgrade, the customer order that therefore network equipment manufacturer receives also gets more and more.Limited by experimental situation, equipment vendors The demand that all users can not possibly be proposed all carries out the networking checking of reality.Under this background, it is badly in need of wanting one kind simply high The auxiliary checking system of effect, quickly goes out the effect that issues being currently configured to help user to carry out network equipment choosing for client feedback Purchase.Therefore, how to realize simple and quick switch configuration simulation to issue, be that those skilled in the art need the technology solving to ask Topic.
Content of the invention
It is an object of the invention to provide system, method and computer that a kind of switch configuration simulation issues, can depart from Real physical equipment, carries out configuration distributing by the form of software emulation, and can conveniently check and be currently configured The effect that issues on different devices to assess single device performance with this.
For solving above-mentioned technical problem, the present invention provides the system that a kind of switch configuration simulation issues, comprising:
Mqc configuration order parsing module, for carrying out extracting simultaneously mqc strategy configuration order in the configuration file receiving Parsing, is generated the data message meeting rule criterion, is stored using hash table;
Port distribution configuration command parsing module, for searching the described configuration file port transmitting order to lower levels receiving, carries Take port configuration information, and create and issue instance data structure and the overall situation issues chained list;
Acl rule parsing module, for carrying out extracting simultaneously acl rule configuration order in the described configuration file receiving Parsing, is generated the data structure meeting pre-defined rule standard, and is stored using hash table;
Bottom simulation issue module, for according to described hash table, issue instance data structure, the overall situation issues chained list and use The board type that family selects and veneer quantity enter line parameter secondary parsing operation and parameter matching operation, and call bottom sdk layer Code library analog configuration is issued to hardware process and returns and issue result.
Wherein, described mqc configuration order parsing module, comprising:
Mqc class command resolution unit, for being extracted and being solved mqc class order in described configuration file Analysis, makes every configuration information generate the data structure meeting pre-defined rule standard, and creates corresponding hash node to be stored in hash In table;
Mqc behavior command resolution unit, for being extracted mqc behavior order in described configuration file And parse, make every configuration information generate the data structure meeting pre-defined rule standard, and create corresponding hash node to be stored in In hash table;
Mqc policy command resolution unit, for the configuration according to mqc class order and mqc behavior order Information, mqc policy order in described configuration file is extracted and is parsed, and so that every configuration information generation is met predetermined The data structure of rule criterion, and create corresponding hash node and be stored in hash table.
Wherein, described port distribution configuration command parsing module is specially searched under the described configuration file port receiving Say the word, extract port configuration information, global port index is calculated according to configuration information middle-end slogan, set up port mapping and close System, parsing port issues configuration subcommand and builds the module that the overall situation issues chained list.
Wherein, described bottom simulation issues module, comprising:
Sal drive Parameter analysis of electrochemical unit, for according to described hash table, issue instance data structure, the overall situation issues chained list Secondary parsing is carried out to the described instance data structure that issues;
Adapt drives adaptation unit, for creating and safeguarding that an overall acl entry issues chained list;
Soc chip parameter matching unit, for entering line parameter matching operation to various chip characteristics;
Sdk bottom code unit, is used for calling bottom sdk layer identification code storehouse analog configuration to be issued to hardware process and return institute The acl service condition information table of optional equipment.
The present invention also provides a kind of method that switch configuration simulation issues, comprising:
The configuration file of receiving user's input and parameter information;Wherein, described parameter information includes board type, number of slots Amount;
Mqc strategy configuration order in described configuration file is extracted and parsed, is generated the data meeting rule criterion Information, is stored using hash table;
Search described configuration file port transmitting order to lower levels, extract port configuration information, and create and issue instance data structure Issue chained list with the overall situation;
Acl rule configuration order in described configuration file is extracted and parsed, generates and meet pre-defined rule standard Data structure, and stored using hash table;
According to described hash table, issue instance data structure, the overall situation issues board type and the list that chained list and user select Plate quantity enters line parameter secondary parsing operation and parameter matching operation, and calls bottom sdk layer identification code storehouse analog configuration to be issued to Hardware process simultaneously returns and issues result.
Wherein, mqc strategy configuration order in described configuration file is extracted and parsed, generate and meet rule criterion Data message, is stored using hash table, comprising:
Mqc class order in described configuration file is extracted and parsed, so that every configuration information generation is met pre- Determine the data structure of rule criterion, and create corresponding hash node to be stored in hash table;
Mqc behavior order in described configuration file is extracted and parsed, so that every configuration information is generated and meet The data structure of pre-defined rule standard, and create corresponding hash node and be stored in hash table;
According to the configuration information of mqc class order and mqc behavior order, by mqc in described configuration file Policy order is extracted and is parsed, and makes every configuration information generate the data structure meeting pre-defined rule standard, and creates Corresponding hash node is stored in hash table.
Wherein, search described configuration file port transmitting order to lower levels, extract port configuration information, and create and issue instance data Structure and the overall situation issue chained list, comprising:
Search the described configuration file port transmitting order to lower levels receiving, extract port configuration information, according in configuration information Port numbers calculate global port index, set up port mapping relationship, and parsing port issues to configure subcommand and build the overall situation and issues Chained list.
Wherein, according to described hash table, instance data structure, the overall board type issuing chained list and user's selection are issued And veneer quantity enters line parameter secondary parsing operation and parameter matching operation, and call under the analog configuration of bottom sdk layer identification code storehouse It is dealt into hardware process and return and issue result, comprising:
According to described hash table, issue instance data structure, the overall situation issues chained list and the described instance data structure that issues is entered The secondary parsing of row;
Create and safeguard that an overall acl entry issues chained list;
Line parameter matching operation is entered to various chip characteristics;
Bottom sdk layer identification code storehouse analog configuration is called to be issued to hardware process and return the acl service condition of selected device Information table.
The present invention also provides a kind of computer, comprising: the switch configuration simulation according to any of the above-described issues System.
The system that switch configuration simulation provided by the present invention issues, it is possible to provide the choosing of plurality of switches board type Select, make user depart from real physical equipment, configuration distributing is carried out by the form of software emulation, and can be conveniently Check be currently configured on different devices issue effect, the performance that single switch is assessed with this, picked out by comparing It is best suitable for the product of oneself demand;Save the time tested using physical equipment in a large number, can significantly shorten project week Phase, save project cost, equipment company can be made more reasonably to carry out personnel placement, taking into account small-sized client's single device demand While moreover it is possible to ensure that sufficient research and development strength is verified to the complicated demand of marquee account, raising work efficiency;The present invention Additionally provide method and the computer that switch configuration simulation issues, there is above-mentioned beneficial effect, will not be described here.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing providing obtains other accompanying drawings.
The structured flowchart of the system that the switch configuration simulation that Fig. 1 is provided by the embodiment of the present invention issues;
The resolving schematic diagram of the analytic sheaf that Fig. 2 is provided by the embodiment of the present invention;
The flow chart of the method that the switch configuration simulation that Fig. 3 is provided by the embodiment of the present invention issues.
Specific embodiment
The core of the present invention is system, method and the computer providing a kind of switch configuration simulation to issue, and can depart from Real physical equipment, carries out configuration distributing by the form of software emulation, and can conveniently check and be currently configured The effect that issues on different devices to assess single device performance with this.
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, the structural frames of the system that the switch configuration simulation that Fig. 1 is provided by the embodiment of the present invention issues Figure;This system may include that analytic sheaf setting mqc configuration order parsing module 100, port distribution configuration command parsing module 200 and acl rule parsing modules 300 and bottom simulation issue module 400;
Why this system arranges mqc configuration order parsing module 100, port distribution configuration command parsing mould in analytic sheaf Block 200 and acl rule parsing module 300 are the processes due to depending on actual hardware environment by, completely using software Form emulates out.Analyzed according to systematic entirety, from being macroscopically divided into upper-layer configured command analysis part (to parse system Layer) and bottom simulation issue part (i.e. bottom simulation issue module).In conjunction with the order line in mqc configuration and configuration file Tissue order, because acl regular command is located at the last position of whole configuration file, and the matched rule in class view In configuration, there is a strong possibility can be applied to acl rule in advance.The specific position of acl rule, brings to the design of analytic sheaf software Certain difficulty, so that position acl module configuration rearward can parse in advance it is proposed that " pre-parsed, then issue " Mentality of designing, be applied to acl rule class matched rule command analysis in, class exemplary construction data only records Current acl group number and acl set type, are now not relevant in current acl group thering is which kind of rule configuration on earth, but will be right The lookup of acl rule example structure has been put into bottom simulation and has issued among flow process.Thus issue life when analysis program runs into port When making row, do not directly invoke driving interface and enter simulation and issue, but each is waited to issue be configured to function as an example pair As, define a kind of data structure representing, each field store having parsed, simulation will be passed to issue interface function Parameter, and these are issued instance data structure organized together in the form of overall chained list.When subsequently all orders include acl Rule configuration is after all parsing finishes, and the traversal overall situation issues content in chained list to call driving interface, make each configure according to Secondary entrance simulation issues the stage.
Wherein, acl (access control list, accesses control list) is the instruction of router and exchange interface List, for the packet of control port turnover.Acl be applied to all of by Routing Protocol, such as ip, ipx, appletalk etc..
Mqc configuration order parsing module 100, for being put forward mqc strategy configuration order in the configuration file receiving Take and parse, generate the data message (data structure made an appointment) meeting rule criterion, stored using hash table;
Specifically, because mqc order is made up of tri- parts of class, behavior, policy, therefore resolving can To include:
Mqc class command resolution unit, for being extracted and being solved mqc class order in described configuration file Analysis, makes every configuration information generate the data structure meeting pre-defined rule standard, and creates corresponding hash node to be stored in hash In table;
Mqc behavior command resolution unit, for being extracted mqc behavior order in described configuration file And parse, make every configuration information generate the data structure meeting pre-defined rule standard, and create corresponding hash node to be stored in In hash table;
Mqc policy command resolution unit, for the configuration according to mqc class order and mqc behavior order Information, mqc policy order in described configuration file is extracted and is parsed, and so that every configuration information generation is met predetermined The data structure of rule criterion, and create corresponding hash node and be stored in hash table.
Wherein, during whole analog configuration issues, the data being actually subjected to issue is to configure well in mqc order Policy policy information, therefore, is believing it becomes possible to establish the data instance that will issue after the process of parsing module Cease and lay the first stone for follow-up work.
Port distribution configuration command parsing module 200, for searching the described configuration file port transmitting order to lower levels receiving, Extract port configuration information, and create and issue instance data structure and the overall situation issues chained list;
Wherein, keyword judgement is carried out to the order line configuration file of input, for extracting exit port relevant configuration;If Common port port view, then, in addition to view command is parsed, also will calculate global port index according to port numbers, set up Port mapping relationship, the port during issuing for follow-up simulation is searched and is laid the foundation;Parsing issues configuration subcommand, and builds The overall situation issues chained list, waits bottom layer driving interface to be called to enter simulation and issues the stage.The order line configuration file of input is user The configuration file of input, this configuration file is the basis of parsing.Here the instance data structure that issues is mqc policy life Resolution unit is made to process the node in the hash table generating.
Specifically, described port distribution configuration command parsing module 200 is specifically for searching the described configuration literary composition receiving Part port transmitting order to lower levels, extracts port configuration information, calculates global port index according to configuration information middle-end slogan, sets up port Mapping relations, parsing port issues to configure subcommand and build the overall situation and issues chained list.
Acl rule parsing module 300, for being put forward acl rule configuration order in the described configuration file receiving Take and parse, generate the data structure meeting pre-defined rule standard, and stored using hash table;
Wherein, acl rule configuration order in order line configuration file is extracted and parsed, using rational data knot Structure is stored.Issue the stage in bottom simulation, drive software can be ordered according to the acl matched rule under the class view in mqc Order carries out the search operation of acl group rule.In configuration file, the regular command of acl group is after the parsing of this functional module, Just very easily can provide ergodic condition data for the search operation of follow-up acl relevant information, be that simulation issues flow process energy Enough correct important foundations run.
Wherein, first three module belongs to upper layer commands row parsing module is analytic sheaf, i.e. the configuration literary composition according to user input Part, and the parameter information such as board type, number of slots amount, specific parameter information type and species can be according to the actual need of user Ask and confirmed, parameter information is the information of the carrier hardware of execution configuration file.Related acl order in configuration file is entered Row parsing, including mqc, acl rule and port transmitting order to lower levels.Mqc order is by tri- part groups of class, behavior, policy Become, have three corresponding units that it is carried out with classification and extract data parsing, generate the data structure meeting certain rule criterion. Numerous in view of configuration, therefore in the form of hash table, the data after parsing is stored, convenient follow-up simulation issued In journey, related content is made a look up.The flow process of analytic sheaf is as shown in Fig. 2 after user input configuration file, the parsing of Fig. 2 is suitable Sequence, carries out extracting parsing according to order to relevant configuration order.According to keyword extraction and judgement, carry out first under mqc The parsing operation of two kinds of orders of class, behavior, is that each configuration information one hash node of establishment is stored in hash table In, then parse policy order, depend on the relevant configuration of class and behavior.Then look up the end in configuration file Mouth transmitting order to lower levels, records the information such as port type, port numbers of sending out, establishment issues instance data structure and the overall situation issues chained list; Finally the acl Rule Information in parsing configuration file, is stored equally in the form of hash table.
Bottom simulation issue module 400, for according to described hash table, issue instance data structure, the overall situation issues chained list And the board type that selects of user and veneer quantity enters line parameter secondary parsing operation and parameter matching operation, and call bottom Sdk layer identification code storehouse analog configuration is issued to hardware process and returns and issue result.
Specifically, bottom simulation issues module 400 and belongs to simulation and issue layer and includes:
Sal drive Parameter analysis of electrochemical unit, for according to described hash table, issue instance data structure, the overall situation issues chained list Secondary parsing is carried out to the described instance data structure that issues, mainly completes secondary parsing.
Adapt drives adaptation unit, for creating and safeguarding that an overall acl entry issues chained list;
Wherein, this chained list is the data structure passing to bottom sdk built-in function.According to incoming " the coming into force of sal analytic sheaf Range information ", chooses whether to need to extend chained list node, " extends out ".Such as select all outside ports to veneer to come into force, need To be set to e_port for each chip duplication chained list node and by coupling port mask.
Soc chip parameter matching unit, for entering line parameter matching operation to various chip characteristics;
Sdk bottom code unit, is used for calling bottom sdk layer identification code storehouse analog configuration to be issued to hardware process and return institute The acl service condition information table of optional equipment.
When executing above-mentioned several unit, first initialization operation is carried out to them.
The specific work process that bottom simulation issues module 400 is as follows:
After analytic sheaf correct execution, bottom simulation can be called to issue module, issue the interface of module by bottom simulation Enter simulation and issue the stage.The initial phase of analog systemss first, drives the row that makes in Parameter analysis of electrochemical unit to parse including sal Initialization, adapt drive drive software initialization in adaptation unit, sdk software initialization in sdk bottom code unit.Then Entering sal drives Parameter analysis of electrochemical unit the issue profile instance incoming to upper strata to carry out secondary parsing, creates and safeguard one entirely Office acl entry issues chained list, and this chained list is the data structure passing to bottom sdk built-in function.Soc chip parameter coupling is single Unit mainly be responsible for adapting operation is carried out to various chip characteristics, Main Function is the division safeguarding slice, group, entry, The application of meter, counter and release.Sdk bottom code unit is exactly mainly that the block code that issues that refer to the bottom is entered Row analog physical issues operation, if sdk layer can normally return, illustrates that simulation issues process success, and returns current institute The acl service condition information table of optional equipment.
The system being issued based on technique scheme, switch configuration simulation provided in an embodiment of the present invention, this system is got rid of The traditional method tested is abandoned on physical switches, based on the configuration file that user provides, with software emulation Form go out with speed the fastest for client feedback be currently configured issue effect.Acl has powerful rule-based filtering function, is handing over Range of application in software system of changing planes is extremely wide, therefore preferentially realizes analog configuration in acl module and issues, has even more important Practical value.
To switch provided in an embodiment of the present invention configuration simulation, the method issuing and computer are introduced below, hereafter The system that the switch configuration method that issues of simulation of description and computer are issued with above-described switch configuration simulation can Mutually to should refer to.
Refer to Fig. 3, the flow chart of the method that the switch configuration simulation that Fig. 3 is provided by the embodiment of the present invention issues; The method may include that
S100, the configuration file of receiving user's input and parameter information;Wherein, described parameter information include board type, Number of slots amount;
S110, by described configuration file mqc strategy configuration order extracted and parsed, generate meet rule criterion Data message, is stored using hash table;
S120, search described configuration file port transmitting order to lower levels, extract port configuration information, and create and issue instance data Structure and the overall situation issue chained list;
S130, by described configuration file acl rule configuration order extracted and parsed, generate meet pre-defined rule mark Accurate data structure, and stored using hash table;
S140, according to described hash table, issue instance data structure, the overall situation issues the board type that chained list and user select And veneer quantity enters line parameter secondary parsing operation and parameter matching operation, and call under the analog configuration of bottom sdk layer identification code storehouse It is dealt into hardware process and return and issue result.
Optionally, mqc strategy configuration order in described configuration file is extracted and parsed, generate and meet rule criterion Data message, stored using hash table, comprising:
Mqc class order in described configuration file is extracted and parsed, so that every configuration information generation is met pre- Determine the data structure of rule criterion, and create corresponding hash node to be stored in hash table;
Mqc behavior order in described configuration file is extracted and parsed, so that every configuration information is generated and meet The data structure of pre-defined rule standard, and create corresponding hash node and be stored in hash table;
According to the configuration information of mqc class order and mqc behavior order, by mqc in described configuration file Policy order is extracted and is parsed, and makes every configuration information generate the data structure meeting pre-defined rule standard, and creates Corresponding hash node is stored in hash table.
Optionally, search described configuration file port transmitting order to lower levels, extract port configuration information, and create and issue instance number Issue chained list according to structure and the overall situation, comprising:
Search the described configuration file port transmitting order to lower levels receiving, extract port configuration information, according in configuration information Port numbers calculate global port index, set up port mapping relationship, and parsing port issues to configure subcommand and build the overall situation and issues Chained list.
Optionally, according to described hash table, instance data structure, the overall Monoplacophora issuing chained list and user's selection are issued Type and veneer quantity enter line parameter secondary parsing operation and parameter matching operation, and call bottom sdk layer identification code storehouse analog configuration It is issued to hardware process and return and issue result, comprising:
According to described hash table, issue instance data structure, the overall situation issues chained list and the described instance data structure that issues is entered The secondary parsing of row;
Create and safeguard that an overall acl entry issues chained list;
Line parameter matching operation is entered to various chip characteristics;
Bottom sdk layer identification code storehouse analog configuration is called to be issued to hardware process and return the acl service condition of selected device Information table.
The present invention also provides a kind of computer, comprising: under the switch configuration simulation according to above-mentioned any embodiment The system sent out.
In description, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is real with other Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it corresponds to the method disclosed in Example, so description is fairly simple, referring to method part illustration in place of correlation ?.
Professional further appreciates that, in conjunction with the unit of each example of the embodiments described herein description And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, generally describes composition and the step of each example in the above description according to function.These Function to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Specialty Technical staff can use different methods to each specific application realize described function, but this realization should Think beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can directly be held with hardware, processor The software module of row, or the combination of the two is implementing.Software module can be placed in random access memory (ram), internal memory, read-only deposit Reservoir (rom), electrically programmable rom, electrically erasable rom, depositor, hard disk, moveable magnetic disc, cd-rom or technology In known any other form of storage medium in field.
The system, method and the computer that above switch provided by the present invention configuration simulation are issued have carried out detailed Jie Continue.Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is only It is to be used to help understand the method for the present invention and its core concept.It should be pointed out that for those skilled in the art For, under the premise without departing from the principles of the invention, the present invention can also be carried out with some improvement and modify, these improve and repair Decorations also fall in the protection domain of the claims in the present invention.

Claims (9)

1. the system that a kind of switch configuration simulation issues is it is characterised in that include:
Mqc configuration order parsing module, for being extracted and being solved mqc strategy configuration order in the configuration file receiving Analysis, is generated the data message meeting rule criterion, is stored using hash table;
Port distribution configuration command parsing module, for searching the described configuration file port transmitting order to lower levels receiving, extracts end Mouthful configuration information, and create and issue instance data structure and the overall situation issues chained list;
Acl rule parsing module, for being extracted and being solved acl rule configuration order in the described configuration file receiving Analysis, is generated the data structure meeting pre-defined rule standard, and is stored using described hash table;
Bottom simulation issue module, for according to described hash table, issue instance data structure, the overall situation issues chained list and user choosing The board type selected and veneer quantity enter line parameter secondary parsing operation and parameter matching operation, and call bottom sdk layer identification code Storehouse analog configuration is issued to hardware process and returns and issue result.
2. system according to claim 1 is it is characterised in that described mqc configuration order parsing module, comprising:
Mqc class command resolution unit, for being extracted and parsing mqc class order in described configuration file, makes Every configuration information generates the data structure meeting pre-defined rule standard, and creates corresponding hash node and be stored in hash table;
Mqc behavior command resolution unit, for being extracted and being solved mqc behavior order in described configuration file Analysis, makes every configuration information generate the data structure meeting pre-defined rule standard, and creates corresponding hash node to be stored in hash In table;
Mqc policy command resolution unit, for the configuration information according to mqc class order and mqc behavior order, Mqc policy order in described configuration file is extracted and parsed, so that every configuration information is generated and meet pre-defined rule mark Accurate data structure, and create corresponding hash node and be stored in hash table.
3. system according to claim 2 is it is characterised in that described port distribution configuration command parsing module is specially looked into Look for the described configuration file port transmitting order to lower levels receiving, extract port configuration information, calculated according to configuration information middle-end slogan Global port indexes, and sets up port mapping relationship, and parsing port issues configuration subcommand and builds the module that the overall situation issues chained list.
4. system according to claim 1 is it is characterised in that the simulation of described bottom issues module, comprising:
Sal drive Parameter analysis of electrochemical unit, for according to described hash table, issue instance data structure, the overall situation issues chained list to institute State and issue instance data structure and carry out secondary parsing;
Adapt drives adaptation unit, for creating and safeguarding that an overall acl entry issues chained list;
Soc chip parameter matching unit, for entering line parameter matching operation to various chip characteristics;
Sdk bottom code unit, is used for calling bottom sdk layer identification code storehouse analog configuration to be issued to hardware process and sets selected by returning Standby acl service condition information table.
5. a kind of method that switch configuration simulation issues is it is characterised in that include:
The configuration file of receiving user's input and parameter information;Wherein, described parameter information includes board type, number of slots amount;
Mqc strategy configuration order in described configuration file is extracted and is parsed, is generated the data message meeting rule criterion, Stored using hash table;
Search described configuration file port transmitting order to lower levels, extract port configuration information, and create and issue instance data structure and complete Office issues chained list;
Acl rule configuration order in described configuration file is extracted and parsed, is generated the data meeting pre-defined rule standard Structure, and stored using hash table;
According to described hash table, issue instance data structure, the overall situation issues board type and the veneer number that chained list and user select Measure into line parameter secondary parsing operation and parameter matching operation, and call bottom sdk layer identification code storehouse analog configuration to be issued to hardware Process simultaneously returns and issues result.
6. method according to claim 5 is it is characterised in that carry out mqc strategy configuration order in described configuration file Extract and parse, generate the data message meeting rule criterion, stored using hash table, comprising:
Mqc class order in described configuration file is extracted and parsed, so that every configuration information is generated and meet pre- set pattern The then data structure of standard, and create corresponding hash node and be stored in hash table;
Mqc behavior order in described configuration file is extracted and parsed, so that every configuration information generation is met predetermined The data structure of rule criterion, and create corresponding hash node and be stored in hash table;
According to the configuration information of mqc class order and mqc behavior order, by mqc policy in described configuration file Order is extracted and is parsed, and makes every configuration information generate the data structure meeting pre-defined rule standard, and creates corresponding Hash node is stored in hash table.
7. method according to claim 6, it is characterised in that searching described configuration file port transmitting order to lower levels, extracts end Mouthful configuration information, and create and issue instance data structure and the overall situation issues chained list, comprising:
Search the described configuration file port transmitting order to lower levels receiving, extract port configuration information, according to configuration information middle port Number calculate global port index, set up port mapping relationship, parsing port issues configuration subcommand and builds the overall situation and issue chained list.
8. method according to claim 7 is it is characterised in that according to described hash table, issue instance data structure, the overall situation Issue chained list and the board type of user's selection and veneer quantity enters line parameter secondary parsing operation and parameter matching operation, and adjust It is issued to hardware process with bottom sdk layer identification code storehouse analog configuration and return and issue result, comprising:
According to described hash table, issue instance data structure, the overall situation issues chained list and carries out two to the described instance data structure that issues Secondary parsing;
Create and safeguard that an overall acl entry issues chained list;
Line parameter matching operation is entered to various chip characteristics;
Bottom sdk layer identification code storehouse analog configuration is called to be issued to hardware process and return the acl service condition information of selected device Table.
9. a kind of computer is it is characterised in that include: under the switch configuration simulation according to any one of claim 1-4 The system sent out.
CN201610701798.1A 2016-08-22 2016-08-22 A kind of method, system and computer that interchanger configuration simulation issues Active CN106375109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610701798.1A CN106375109B (en) 2016-08-22 2016-08-22 A kind of method, system and computer that interchanger configuration simulation issues

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610701798.1A CN106375109B (en) 2016-08-22 2016-08-22 A kind of method, system and computer that interchanger configuration simulation issues

Publications (2)

Publication Number Publication Date
CN106375109A true CN106375109A (en) 2017-02-01
CN106375109B CN106375109B (en) 2019-09-24

Family

ID=57879506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610701798.1A Active CN106375109B (en) 2016-08-22 2016-08-22 A kind of method, system and computer that interchanger configuration simulation issues

Country Status (1)

Country Link
CN (1) CN106375109B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558142A (en) * 2019-01-14 2019-04-02 郑州云海信息技术有限公司 A kind of open network installation environment transplantation method and device
CN114567581A (en) * 2022-01-14 2022-05-31 新华三技术有限公司合肥分公司 Method and equipment for configuring table entry
CN117201315A (en) * 2023-11-03 2023-12-08 之江实验室 Command issuing method and device in multi-mode network programming environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997414A (en) * 2013-02-18 2014-08-20 华为技术有限公司 Configuration information generation method and network control unit
WO2014209265A1 (en) * 2013-06-24 2014-12-31 Hewlett Packard Development Company, L.P. Hard zoning corresponding to flow
CN104394008A (en) * 2014-10-10 2015-03-04 广东电网有限责任公司电力科学研究院 A method for configuring uniformly different types of intelligent electronic devices and the system thereof
CN105634986A (en) * 2014-11-30 2016-06-01 中国科学院沈阳自动化研究所 Switch implementation method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997414A (en) * 2013-02-18 2014-08-20 华为技术有限公司 Configuration information generation method and network control unit
WO2014209265A1 (en) * 2013-06-24 2014-12-31 Hewlett Packard Development Company, L.P. Hard zoning corresponding to flow
CN104394008A (en) * 2014-10-10 2015-03-04 广东电网有限责任公司电力科学研究院 A method for configuring uniformly different types of intelligent electronic devices and the system thereof
CN105634986A (en) * 2014-11-30 2016-06-01 中国科学院沈阳自动化研究所 Switch implementation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵云飞 等: "ACL、QoS和策略路由在数据中心的应用", 《信息通信》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558142A (en) * 2019-01-14 2019-04-02 郑州云海信息技术有限公司 A kind of open network installation environment transplantation method and device
CN109558142B (en) * 2019-01-14 2021-10-29 郑州云海信息技术有限公司 Method and device for transplanting open network installation environment
CN114567581A (en) * 2022-01-14 2022-05-31 新华三技术有限公司合肥分公司 Method and equipment for configuring table entry
CN114567581B (en) * 2022-01-14 2023-12-26 新华三技术有限公司合肥分公司 Method and equipment for configuring table items
CN117201315A (en) * 2023-11-03 2023-12-08 之江实验室 Command issuing method and device in multi-mode network programming environment
CN117201315B (en) * 2023-11-03 2024-01-30 之江实验室 Command issuing method and device in multi-mode network programming environment

Also Published As

Publication number Publication date
CN106375109B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN107659543B (en) Protection method for APT (android packet) attack of cloud platform
CN101639879B (en) Database security monitoring method, device and system
Gehlot et al. An introduction to systems modeling and simulation with colored petri nets
CN109831500A (en) The synchronous method of configuration file and Pod in Kubernetes cluster
CN105450461B (en) A kind of shunt method and the network equipment
CN107431712A (en) Network flow daily record for multi-tenant environment
CN109800056A (en) A kind of block chain dispositions method based on container
CN103999065B (en) Network equipments configuration manages
CN107003906A (en) The type of cloud computing technology part is to type analysis
CN110661842B (en) Resource scheduling management method, electronic equipment and storage medium
CN105471662B (en) Cloud Server, virtual network strategy centralized control system and method
CN107800781A (en) A kind of configuration data processing method and device
CN103327116B (en) The dynamic copies storage means of a kind of network file
CN109412878A (en) Multi-tenant service access implementation method, device and electronic equipment
CN109743346A (en) Session process configuration method, device and computer readable storage medium
CN106375109A (en) Switch configuration simulated issuing method, system and computer
CA2931687A1 (en) System and method for creating service chains and virtual networks in the cloud
CN107911251A (en) A kind of method for configuring network equipment, device and medium
CN109063077A (en) A kind of data access method and device based on elasticity search
CN111385124A (en) Gateway service implementation method, control device and gateway
CN107038050A (en) A kind of game configuration loading method based on virtual server
CN108512822A (en) A kind of Risk Identification Method and device of data processing event
CN107797721A (en) A kind of interface information display methods and its device
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN107196915A (en) Authority setting method, apparatus and system

Legal Events

Date Code Title Description
C06 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