CN106375109B - A kind of method, system and computer that interchanger configuration simulation issues - Google Patents
A kind of method, system and computer that interchanger configuration simulation issues Download PDFInfo
- Publication number
- CN106375109B CN106375109B CN201610701798.1A CN201610701798A CN106375109B CN 106375109 B CN106375109 B CN 106375109B CN 201610701798 A CN201610701798 A CN 201610701798A CN 106375109 B CN106375109 B CN 106375109B
- Authority
- CN
- China
- Prior art keywords
- configuration
- issues
- mqc
- 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.)
- Active
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000008569 process Effects 0.000 claims description 21
- 239000000284 extract Substances 0.000 claims description 10
- 238000013507 mapping Methods 0.000 claims description 7
- 230000006978 adaptation Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 241001120281 Monoplacophora Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic 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)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the systems that interchanger configuration simulation issues, it include: MQC configuration order parsing module, port distribution configuration command parsing module, acl rule parsing module, bottom simulation issues module, first three module belongs to analytic sheaf module, the configuration file inputted according to user, and the information such as board type, slot position quantity, configuration file is parsed, after analytic sheaf correctly executes, just returning can call bottom simulation to issue the interface of module, issue the stage into simulation and return to simulation and issue result;The system makes user be detached from true physical equipment, by way of software emulation, carries out configuration distributing, and can conveniently check be currently configured on different devices issue effect, single device performance is assessed with this, and by comparing, picks out the product for being most suitable for oneself demand.The method and computer issued the invention also discloses interchanger configuration simulation, has said effect.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of method, system that interchanger configuration simulation issues
And computer.
Background technique
In recent years, with the surge of internet traffic, numerous companies start to carry out the switch device in computer room one after another
It regenerates and upgrades, therefore the customer order that network equipment manufacturer receives is also more and more.It is limited by experimental situation, device manufacturer
The demand that can not be proposed to all users all carries out actual networking verifying.In this background, it is badly in need of wanting a kind of simple height
The auxiliary of effect verifies system, quickly go out for client feedback be currently configured issue effect to help user to carry out network equipment choosing
Purchase.Therefore, how to realize that simple and quick interchanger configuration simulation issues, be that those skilled in the art need the technology solved to ask
Topic.
Summary of the invention
The object of the present invention is to provide system, method and computers that a kind of configuration simulation of interchanger issues, can be detached from
True physical equipment is carried out configuration distributing by way of software emulation, and can conveniently check current-configuration
The effect that issues on different devices assesses single device performance with this.
In order to solve the above technical problems, the present invention provides a kind of system that interchanger configuration simulation issues, comprising:
MQC configuration order parsing module, for extracting simultaneously MQC strategy configuration order in the configuration file received
Parsing is generated the data information for meeting rule criterion, is stored using HASH table;
Port distribution configuration command parsing module is mentioned for searching the configuration file port transmitting order to lower levels received
Port configuration information is taken, and creation issues instance data structure and the overall situation issues chained list;
Acl rule parsing module, for extracting simultaneously acl rule configuration order in the configuration file received
Parsing is generated the data structure for meeting pre-defined rule standard, and is stored using HASH table;
Bottom simulation issue module, for according to the HASH table, issue instance data structure, the overall situation issues chained list and use
The board type and veneer quantity of family selection carry out the secondary parsing operation of parameter and parameter matching operation, and call SDK layers of bottom
Code library analog configuration, which is issued to hardware process and returns, issues result.
Wherein, the MQC configuration order parsing module, comprising:
MQC class command resolution unit, for extracting and solving MQC class order in the configuration file
Analysis makes every configuration information generate the data structure for meeting pre-defined rule standard, and creates corresponding HASH node deposit HASH
In table;
MQC behavior command resolution unit, for extracting MQC behavior order in the configuration file
And parse, so that every configuration information is generated the data structure for meeting pre-defined rule standard, and create corresponding HASH node deposit
In HASH table;
MQC policy command resolution unit, for the configuration according to MQC class order and MQC behavior order
MQC policy order in the configuration file is extracted and is parsed by information, meets every configuration information generation predetermined
The data structure of rule criterion, and create in corresponding HASH node deposit HASH table.
Wherein, the port distribution configuration command parsing module is specially searched under the configuration file port received
It says the word, extracts port configuration information, global port index is calculated according to configuration information middle-end slogan, establishes port mapping pass
System, parsing port issue configuration subcommand and construct the global module for issuing chained list.
Wherein, the bottom simulation issues module, comprising:
SAL drive Parameter analysis of electrochemical unit, for according to the HASH table, issue instance data structure, the overall situation issues chained list
Secondary parsing is carried out to the instance data structure that issues;
ADAPT drives adaptation unit, for creating and safeguarding that an overall situation ACL ENTRY issues chained list;
SOC chip parameter matching unit, for carrying out parameter matching operation to various chip characteristics;
SDK bottom code unit, for calling bottom SDK layer identification code library analog configuration to be issued to hardware process and returning to institute
The ACL service condition information table of optional equipment.
The present invention also provides the methods that a kind of configuration simulation of interchanger issues, comprising:
Receive the configuration file and parameter information of user's input;Wherein, the parameter information includes board type, number of slots
Amount;
MQC strategy configuration order in the configuration file is extracted and parsed, the data for meeting rule criterion are generated
Information is stored using HASH table;
Configuration file port transmitting order to lower levels is searched, extracts port configuration information, and create and issue instance data structure
Chained list is issued with the overall situation;
Acl rule configuration order in the configuration file is extracted and parsed, generation meets pre-defined rule standard
Data structure, and stored using HASH table;
According to the HASH table, issue instance data structure, the global board type and list for issuing chained list and user's selection
Plate quantity carries out the secondary parsing operation of parameter and parameter matching operation, and bottom SDK layer identification code library analog configuration is called to be issued to
Hardware process and return issue result.
Wherein, MQC strategy configuration order in the configuration file is extracted and is parsed, generation meets rule criterion
Data information is stored using HASH table, comprising:
MQC class order in the configuration file is extracted and parsed, meets every configuration information generation pre-
Determine the data structure of rule criterion, and creates in corresponding HASH node deposit HASH table;
MQC behavior order in the configuration file is extracted and parsed, every configuration information generation is met
The data structure of pre-defined rule standard, and create in corresponding HASH node deposit HASH table;
According to the configuration information of MQC class order and MQC behavior order, by MQC in the configuration file
Policy order is extracted and is parsed, and so that every configuration information is generated the data structure for meeting pre-defined rule standard, and create
In corresponding HASH node deposit HASH table.
Wherein, configuration file port transmitting order to lower levels is searched, extracts port configuration information, and create and issue instance data
Structure and the overall situation issue chained list, comprising:
The configuration file port transmitting order to lower levels received is searched, port configuration information is extracted, according in configuration information
Port numbers calculate global port index, establish port mapping relationship, and parsing port issues configuration subcommand and constructs the overall situation and issues
Chained list.
Wherein, according to the HASH table, issue instance data structure, the global board type for issuing chained list and user's selection
And veneer quantity carries out the secondary parsing operation of parameter and parameter matching operation, and calls under the analog configuration of bottom SDK layer identification code library
It is dealt into hardware process and returns and issue result, comprising:
According to the HASH table, issue instance data structure, the overall situation issue chained list to it is described issue instance data structure into
The secondary parsing of row;
It creates and safeguards that an overall situation ACL ENTRY issues chained list;
Parameter matching operation is carried out to various chip characteristics;
Bottom SDK layer identification code library analog configuration is called to be issued to hardware process and return to the ACL service condition of selected device
Information table.
The present invention also provides a kind of computers, comprising: is issued according to interchanger described in any of the above embodiments configuration simulation
System.
The system that interchanger configuration simulation provided by the present invention issues, it is possible to provide the choosing of plurality of switches board type
It selects, user is made to be detached from true physical equipment, configuration distributing is carried out by way of software emulation, and can be conveniently
Check be currently configured on different devices issue effect, the performance of single switch is assessed with this, is picked out by comparing
It is most suitable for the product of oneself demand;The time largely tested using physical equipment is saved, project week can be significantly shortened
Phase saves 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 guarantee that sufficient research and development strength verifies the complicated demand of marquee account, improves working efficiency;The present invention
The method and computer that interchanger configuration simulation issues are additionally provided, there is above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the structural block diagram for the system that the configuration simulation of interchanger provided by the embodiment of the present invention issues;
Fig. 2 is the resolving schematic diagram of analytic sheaf provided by the embodiment of the present invention;
Fig. 3 is the flow chart for the method that the configuration simulation of interchanger provided by the embodiment of the present invention issues.
Specific embodiment
Core of the invention is to provide a kind of system, method and computer that interchanger configuration simulation issues, and can be detached from
True physical equipment is carried out configuration distributing by way of software emulation, and can conveniently check current-configuration
The effect that issues on different devices assesses single device performance with this.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the structural frames for the system that the configuration simulation of interchanger provided by the embodiment of the present invention issues
Figure;The system may include: analytic sheaf setting MQC configuration order parsing module 100, port distribution configuration command parsing module
200 and acl rule parsing module 300 and bottom simulation issue module 400;
Why the system is in analytic sheaf setting MQC configuration order parsing module 100, port distribution configuration command parsing mould
Block 200 and acl rule parsing module 300 are the processes due to depending on one actual hardware environment, use software completely
Form, which simulates, to be come.It is analyzed according to systematic entirety, (is parsed from system is macroscopically divided into upper-layer configured command analysis part
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 sequence, since acl rule order is located at the last position of entire configuration file, and in the matching rule of class view
In configuration, there is a strong possibility can be applied to acl rule in advance.The specific position of acl rule is brought to the design of analytic sheaf software
Certain difficulty proposes " pre-parsed, then issue " in order to enable the ACL module configuration of position rearward can parse in advance
Mentality of designing, in the class matching rule command analysis for being applied to acl rule, class exemplary construction data are only recorded
Current ACL group number and ACL set type are not relevant for having which kind of rule to configure in current ACL group on earth at this time, but will be right
The lookup of acl rule exemplary construction has been put into bottom simulation and has issued among process.Thus life is issued when analysis program encounters port
It when enabling row, does not call directly driving interface and enters simulation and issue, but each is waited issuing and is configured to function as an example pair
As, define a kind of data structure to indicate, each field store it is having parsed, to be transmitted to simulation and issue interface function
Parameter, and by these issue instance data structure in the form of global chained list tissue to together.When subsequent all orders include ACL
Rule configuration all parsing finish after, traversal the overall situation issues the content in chained list to call driving interface, make each configuration according to
It is secondary to issue the stage into simulation.
Wherein, ACL (Access Control List, accesses control list) is the instruction of router and exchange interface
List, for the data packet of control port disengaging.ACL is suitable for all by Routing Protocol, such as IP, IPX, AppleTalk.
MQC configuration order parsing module 100, for proposing MQC strategy configuration order in the configuration file received
It takes and parses, generate the data information (data structure made an appointment) for meeting rule criterion, stored using HASH table;
Specifically, resolving can since MQC order is made of tri- parts class, behavior, policy
To include:
MQC class command resolution unit, for extracting and solving MQC class order in the configuration file
Analysis makes every configuration information generate the data structure for meeting pre-defined rule standard, and creates corresponding HASH node deposit HASH
In table;
MQC behavior command resolution unit, for extracting MQC behavior order in the configuration file
And parse, so that every configuration information is generated the data structure for meeting pre-defined rule standard, and create corresponding HASH node deposit
In HASH table;
MQC policy command resolution unit, for the configuration according to MQC class order and MQC behavior order
MQC policy order in the configuration file is extracted and is parsed by information, meets every configuration information generation predetermined
The data structure of rule criterion, and create in corresponding HASH node deposit HASH table.
Wherein, during entire analog configuration issues, the data for being actually subjected to issue are configured in MQC order
Policy policy information, therefore, after the processing by parsing module, it will be able to establish the data instance letter that will be issued
Breath lays the foundation for follow-up work.
Port distribution configuration command parsing module 200, for searching the configuration file port transmitting order to lower levels received,
Port configuration information is extracted, and creation issues 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 will also calculate global port index according to port numbers, establish then other than parsing to view command
Port mapping relationship, the port during issuing for subsequent simulation, which is searched, to lay the foundation;Parsing issues configuration subcommand, and constructs
The overall situation issues chained list, waits bottom layer driving interface to be called to enter simulation and issues the stage.Order line configuration file, that is, user of input
The configuration file of input, the configuration file are the bases of parsing.Here the instance data structure that issues is MQC policy life
The node in HASH table for enabling resolution unit processing generate.
Specifically, the port distribution configuration command parsing module 200 is specifically used for searching the configuration text received
Part port transmitting order to lower levels extracts port configuration information, calculates global port index according to configuration information middle-end slogan, establishes port
Mapping relations, parsing port, which issues configuration subcommand and constructs the overall situation, issues chained list.
Acl rule parsing module 300, for proposing acl rule configuration order in the configuration file received
It takes and parses, generate the data structure for meeting pre-defined rule standard, and stored using HASH table;
Wherein, acl rule configuration order in order line configuration file is extracted and is parsed, use reasonable data knot
Structure is stored.The stage is issued in bottom simulation, drive software can be ordered according to the ACL matching rule under the class view in MQC
Enable the search operation for carrying out ACL group rule.The regular command of ACL group is after the parsing Jing Guo this functional module in configuration file,
Ergodic condition and data very easily can be provided for the search operation of subsequent ACL relevant information, be that simulation issues process energy
Enough important foundations correctly run.
Wherein, first three module belongs to upper layer commands row parsing module i.e. analytic sheaf, i.e., according to the configuration text of user's input
The parameter informations such as part and board type, slot position quantity, specific parameter information type and type can be according to the practical need of user
It asks and is confirmed, parameter information is the information for executing the carrier hardware of configuration file.To the related ACL order in configuration file into
Row parsing, including MQC, acl rule and port transmitting order to lower levels.MQC order is by tri- part groups of class, behavior, policy
At there are three corresponding units to carry out classification extraction and data parsing to it, generates the data structure for meeting certain rule criterion.
It is numerous in view of configuring, therefore the data after parsing are stored using the form of HASH table, facilitate subsequent simulation to issue
Related content is searched in journey.For the process of analytic sheaf as shown in Fig. 2, user inputs after configuration file, the parsing of Fig. 2 is suitable
Sequence extracts parsing according to order to relevant configuration order.According to keyword extraction and judgement, carry out under MQC first
The parsing operation of two kinds of class, behavior orders, creates a HASH node for each configuration information and is stored in HASH table
In, then parse policy order, the relevant configuration dependent on class and behavior.Then the end in configuration file is searched
Mouth transmitting order to lower levels records the information such as hair port type, port numbers, and creation issues instance data structure and the overall situation issues chained list;
The acl rule information in configuration file is finally parsed, is stored equally in the form of HASH table.
Bottom simulation issue module 400, for according to the HASH table, issue instance data structure, the overall situation issues chained list
And the board type and veneer quantity of user's selection carry out the secondary parsing operation of parameter and parameter matching operation, and call bottom
SDK layer identification code library analog configuration, which is issued to hardware process and returns, issues result.
Specifically, bottom simulation issues module 400 and belongs to simulation and issues layer and include:
SAL drive Parameter analysis of electrochemical unit, for according to the HASH table, issue instance data structure, the overall situation issues chained list
Secondary parsing is carried out to the instance data structure that issues, mainly completes secondary parsing.
ADAPT drives adaptation unit, for creating and safeguarding that an overall situation ACL ENTRY issues chained list;
Wherein, this chained list is the data structure for passing to bottom SDK library function.It " is come into force according to what SAL analytic sheaf was passed to
Range information " chooses whether to need to extend chained list node, i.e., " extends out ".For example selection comes into force to all outside ports of veneer, needs
E_PORT is set as each chip duplication chained list node and by matching port mask.
SOC chip parameter matching unit, for carrying out parameter matching operation to various chip characteristics;
SDK bottom code unit, for calling bottom SDK layer identification code library analog configuration to be issued to hardware process and returning to institute
The ACL service condition information table of optional equipment.
When executing above-mentioned several units, they are initialized first.
The specific work process that bottom simulation issues module 400 is as follows:
After analytic sheaf correctly executes, bottom simulation can be called to issue module, the interface of module is issued by bottom simulation
The stage is issued into simulation.The initial phase of simulation system first, including enabling row parse in SAL driving Parameter analysis of electrochemical unit
Initialization, ADAPT drive drive software initialization in adaptation unit, SDK software initialization in SDK bottom code unit.Then
Secondary parsing is carried out to the profile instance that issues that upper layer is passed into SAL driving Parameter analysis of electrochemical unit, create and safeguard one it is complete
Office ACL ENTRY issues chained list, this chained list is the data structure for passing to bottom SDK library function.The matching of SOC chip parameter is single
Member be mainly responsible for various chip characteristics carry out adapting operation, main function be safeguard slice division, group, entry,
The application and release of meter, counter.SDK bottom code unit be mainly exactly refer to the bottom issue block code into
Row analog physical issues operation, if SDK layers can normally return, illustrates that simulation issues process success, and return to current institute
The ACL service condition information table of optional equipment.
Based on the above-mentioned technical proposal, the system that interchanger configuration simulation provided in an embodiment of the present invention issues, the system are got rid of
The conventional method tested in physical switches is abandoned, based on the configuration file that user provides, with software emulation
Form issues effect using most fast speed as what client feedback was currently configured out.ACL has the function of powerful rule-based filtering, is handing over
Application range is extremely wide in software systems of changing planes, therefore preferentially realizes that analog configuration issues, and has even more important in ACL module
Practical value.
The method issued is simulated to interchanger provided in an embodiment of the present invention configuration below and computer is introduced, hereafter
Method and computer that the interchanger configuration simulation of description issues and the system that the configuration simulation of above-described interchanger issues can
Correspond to each other reference.
Referring to FIG. 3, Fig. 3 is the flow chart for the method that the configuration simulation of interchanger provided by the embodiment of the present invention issues;
This method may include:
S100, the configuration file and parameter information for receiving user's input;Wherein, the parameter information include board type,
Slot position quantity;
S110, MQC strategy configuration order in the configuration file is extracted and is parsed, generation meets rule criterion
Data information is stored using HASH table;
S120, configuration file port transmitting order to lower levels is searched, extracts port configuration information, and create and issue instance data
Structure and the overall situation issue chained list;
S130, acl rule configuration order in the configuration file is extracted and is parsed, generation meets pre-defined rule mark
Quasi- data structure, and stored using HASH table;
S140, according to the HASH table, issue instance data structure, the global board type for issuing chained list and user's selection
And veneer quantity carries out the secondary parsing operation of parameter and parameter matching operation, and calls under the analog configuration of bottom SDK layer identification code library
It is dealt into hardware process and returns and issue result.
Optionally, MQC strategy configuration order in the configuration file is extracted and is parsed, generation meets rule criterion
Data information, stored using HASH table, comprising:
MQC class order in the configuration file is extracted and parsed, meets every configuration information generation pre-
Determine the data structure of rule criterion, and creates in corresponding HASH node deposit HASH table;
MQC behavior order in the configuration file is extracted and parsed, every configuration information generation is met
The data structure of pre-defined rule standard, and create in corresponding HASH node deposit HASH table;
According to the configuration information of MQC class order and MQC behavior order, by MQC in the configuration file
Policy order is extracted and is parsed, and so that every configuration information is generated the data structure for meeting pre-defined rule standard, and create
In corresponding HASH node deposit HASH table.
Optionally, configuration file port transmitting order to lower levels is searched, extracts port configuration information, and create and issue instance number
Chained list is issued according to structure and the overall situation, comprising:
The configuration file port transmitting order to lower levels received is searched, port configuration information is extracted, according in configuration information
Port numbers calculate global port index, establish port mapping relationship, and parsing port issues configuration subcommand and constructs the overall situation and issues
Chained list.
Optionally, according to the HASH table, issue instance data structure, the global Monoplacophora for issuing chained list and user's selection
Type and veneer quantity carry out the secondary parsing operation of parameter and parameter matching operation, and call bottom SDK layer identification code library analog configuration
It is issued to hardware process and returns and issue result, comprising:
According to the HASH table, issue instance data structure, the overall situation issue chained list to it is described issue instance data structure into
The secondary parsing of row;
It creates and safeguards that an overall situation ACL ENTRY issues chained list;
Parameter matching operation is carried out to various chip characteristics;
Bottom SDK layer identification code library analog configuration is called to be issued to hardware process and return to the ACL service condition of selected device
Information table.
The present invention also provides a kind of computers, comprising: according under the configuration simulation of interchanger described in above-mentioned any embodiment
The system of hair.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
System, method and the computer issued above to interchanger provided by the present invention configuration simulation has carried out detailed Jie
It continues.Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention.It should be pointed out that for those skilled in the art
For, it without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention, these improve and repair
Decorations are also fallen within the protection scope of the claims of the present invention.
Claims (9)
1. a kind of system that interchanger configuration simulation issues characterized by comprising
MQC configuration order parsing module, for extracting and solving MQC strategy configuration order in the configuration file received
Analysis is generated the data information for meeting rule criterion, is stored using HASH table;
Port distribution configuration command parsing module extracts end for searching the configuration file port transmitting order to lower levels received
Mouth configuration information, and creation issues instance data structure and the overall situation issues chained list;
Acl rule parsing module, for extracting and solving acl rule configuration order in the configuration file received
Analysis is generated the data structure for meeting pre-defined rule standard, and is stored using the HASH table;
Bottom simulation issue module, for according to the HASH table, issue instance data structure, the overall situation issues chained list and user select
The board type and veneer quantity selected carry out the secondary parsing operation of parameter and to the progress of various chip characteristics to profile instance is issued
Parameter matching operation, and call bottom SDK layer identification code library analog configuration to be issued to hardware process and return and issue result.
2. system according to claim 1, which is characterized in that the MQC configuration order parsing module, comprising:
MQC class command resolution unit makes for extracting and parsing MQC class order in the configuration file
Every configuration information generates the data structure for meeting pre-defined rule standard, and creates in corresponding HASH node deposit HASH table;
MQC behavior command resolution unit, for extracting and solving MQC behavior order in the configuration file
Analysis makes every configuration information generate the data structure for meeting pre-defined rule standard, and creates corresponding HASH node deposit 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 the configuration file is extracted and parsed, every configuration information generation is made to meet pre-defined rule mark
Quasi- data structure, and create in corresponding HASH node deposit HASH table.
3. system according to claim 2, which is characterized in that the port distribution configuration command parsing module is specially to look into
The configuration file port transmitting order to lower levels received is looked for, port configuration information is extracted, is calculated according to configuration information middle-end slogan
Global port index, establishes port mapping relationship, and parsing port issues configuration subcommand and constructs the global module for issuing chained list.
4. system according to claim 1, which is characterized in that the bottom simulation issues module, comprising:
SAL drive Parameter analysis of electrochemical unit, for according to the HASH table, issue instance data structure, the overall situation issues chained list to institute
It states and issues the secondary parsing of instance data structure progress;
ADAPT drives adaptation unit, for creating and safeguarding that an overall situation ACL ENTRY issues chained list;
SOC chip parameter matching unit, for carrying out parameter matching operation to various chip characteristics;
SDK bottom code unit is set for calling bottom SDK layer identification code library analog configuration to be issued to selected by hardware process and return
Standby ACL service condition information table.
5. a kind of method that interchanger configuration simulation issues characterized by comprising
Receive the configuration file and parameter information of user's input;Wherein, the parameter information includes board type, veneer quantity;
MQC strategy configuration order in the configuration file is extracted and is parsed, the data information for meeting rule criterion is generated,
It is stored using HASH table;
It searches configuration file port transmitting order to lower levels, extracts port configuration information, and create and issue instance data structure and complete
Office issues chained list;
Acl rule configuration order in the configuration file is extracted and parsed, the data for meeting pre-defined rule standard are generated
Structure, and stored using HASH table;
According to the HASH table, issue instance data structure, the global board type and veneer number for issuing chained list and user's selection
Amount carries out parameter secondary parsing operation and to the progress parameter matching operation of various chip characteristics to issuing profile instance, and calls bottom
Layer SDK layer identification code library analog configuration, which is issued to hardware process and returns, issues result.
6. according to the method described in claim 5, it is characterized in that, MQC strategy configuration order in the configuration file is carried out
It extracts and parses, generate the data information for meeting rule criterion, stored using HASH table, comprising:
MQC class order in the configuration file is extracted and parsed, every configuration information generation is made to meet pre- set pattern
The then data structure of standard, and create in corresponding HASH node deposit HASH table;
MQC behavior order in the configuration file is extracted and parsed, meets every configuration information generation predetermined
The data structure of rule criterion, and create in corresponding HASH node deposit HASH table;
According to the configuration information of MQC class order and MQC behavior order, by MQC policy in the configuration file
Order is extracted and is parsed, and so that every configuration information is generated the data structure for meeting pre-defined rule standard, and create corresponding
HASH node is stored in HASH table.
7. according to the method described in claim 6, extracting end it is characterized in that, search configuration file port transmitting order to lower levels
Mouth configuration information, and creation issues instance data structure and the overall situation issues chained list, comprising:
The configuration file port transmitting order to lower levels received is searched, port configuration information is extracted, according to configuration information middle port
Number global port index is calculated, establishes port mapping relationship, parsing port, which issues configuration subcommand and constructs the overall situation, issues chained list.
8. the method according to the description of claim 7 is characterized in that according to the HASH table, issuing instance data structure, the overall situation
The board type and veneer quantity for issuing chained list and user's selection carry out the secondary parsing operation of parameter and parameter matching operation, and adjust
It is issued to hardware process with bottom SDK layer identification code library analog configuration and is returned and issue result, comprising:
According to the HASH table, issue instance data structure, the overall situation issue chained list to it is described issue instance data structure carry out two
Secondary parsing;
It creates and safeguards that an overall situation ACL ENTRY issues chained list;
Parameter matching operation is carried out to various chip characteristics;
Bottom SDK layer identification code library analog configuration is called to be issued to hardware process and return to the ACL service condition information of selected device
Table.
9. a kind of computer characterized by comprising under interchanger configuration simulation according to claim 1-4
The system of hair.
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 CN106375109A (en) | 2017-02-01 |
CN106375109B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558142B (en) * | 2019-01-14 | 2021-10-29 | 郑州云海信息技术有限公司 | Method and device for transplanting open network installation environment |
CN114567581B (en) * | 2022-01-14 | 2023-12-26 | 新华三技术有限公司合肥分公司 | Method and equipment for configuring table items |
CN117201315B (en) * | 2023-11-03 | 2024-01-30 | 之江实验室 | Command issuing method and device in multi-mode network programming environment |
Citations (4)
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 |
-
2016
- 2016-08-22 CN CN201610701798.1A patent/CN106375109B/en active Active
Patent Citations (4)
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)
Title |
---|
ACL、QoS和策略路由在数据中心的应用;赵云飞 等;《信息通信》;20130531;第74-76页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106375109A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106385329B (en) | Processing method, device and the equipment of resource pool | |
CN107689882A (en) | The method and apparatus of service deployment in a kind of virtualization network | |
CN110531987A (en) | Management method, device and computer readable storage medium based on Kubernetes cluster | |
CN106375109B (en) | A kind of method, system and computer that interchanger configuration simulation issues | |
CN106301829A (en) | A kind of method and apparatus of Network dilatation | |
CN105471662B (en) | Cloud Server, virtual network strategy centralized control system and method | |
CN104615487B (en) | Parallel task optimization system and method | |
CN104133666B (en) | Determine the method, apparatus and artificial intelligence servers of artificial intelligence behavior | |
CN101946258A (en) | Model based deployment of computer based business process on dedicated hardware | |
CN1292127A (en) | Telephony call-center scripting by petri net principles and techniques | |
CN110661842B (en) | Resource scheduling management method, electronic equipment and storage medium | |
EP2285044A1 (en) | Computer readable medium, northbound interface uniform platform and starting method thereof | |
CN110392882A (en) | It is created in batches in the network for including virtualization network function by pipe function | |
CN109731334A (en) | Switching method and apparatus, storage medium, the electronic device of state | |
KR20180011257A (en) | Automatic recharging system, method and server | |
CN107800781A (en) | A kind of configuration data processing method and device | |
CN108241531A (en) | A kind of method and apparatus for distributing resource for virtual machine in the cluster | |
CN110069278A (en) | A kind of automation distributed multi-task packaging method and system | |
CN106663001A (en) | A single intention-based skill packet concurrent execution management method and system and a robot | |
CN101764696B (en) | Distributed routing exchange equipment and implementation method thereof | |
CN106612193A (en) | Network deployment configuration method and device in virtualization technology | |
CN109364489A (en) | The dance movement processing method and processing device of based role game for play | |
US7472355B2 (en) | Computer-implemented method for managing commands for a terminal session | |
CN109976763A (en) | A kind of code process method, apparatus, electronic equipment and computing system | |
CN105959220B (en) | The method and device that routing table issues |
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 |