Embodiment
A kind of multi-functional network equipment is currently, there are, it is a kind of network equipment of many plug-in cards, such as, in interchanger
Containing functional cards such as FW, IPS, ACG in machine frame, but each functional cards is only powered by same machine frame, data
Import and export are directly connected by I/O plates, in actual applications, it is desired nonetheless to carry out networking to each board, for example, passing through two layers of friendship
The mode changed is directly connected to the mode of netting twine and carries out networking, and data are separately configured to each board and come in and go out path, flow
Initial data according to the data come in and go out path flowed between each board, therefore, its substantially with described in background technology
Scheme be consistent, there is also configuration is excessively complicated, the problem of maintenance cost is too high.
Moreover, in the network equipment of above-mentioned many plug-in cards, the business processing between the board of each difference in functionality is separate,
Mutual result can not realize multiplexing, can usually repeat many fundamental operations, therefore, business processing efficiency also compared with
It is low.
Based on above-mentioned analysis, the embodiments of the invention provide a kind of multifunctional network equipment, Fig. 1 is specifically referred to.
Fig. 1 is multifunctional network device structure schematic diagram provided in an embodiment of the present invention.
As shown in figure 1, the multifunctional network equipment includes main control module 101, relay module 102 and more than one function
Module, each functional module is obtained by more than one hardware virtualization with identical function.In Fig. 1, three functions are shown
Module, is respectively labeled as functional module 103-1, functional module 103-2 and functional module 103-3.
Main control module 101, the flow path configuration information for receiving and storing flow is generated according to the configuration information
Rule list, the rule list includes the corresponding relation of traffic characteristic and flow path, and the rule list is issued into each function
Module.In the network equipment shown in Fig. 1, rule list is handed down to functional module 103-1, functional module 103-2 by main control module 101
With functional module 103-3.
The functional module, the feature for recognizing flow is determined the need for according to the feature and the rule list
Business processing is carried out to the flow, if it is not needed, it is to issue flow to carry out business processing to the flow to judge
Objective function module be also intended for outgoing interface, if it is desired, business processing is carried out to the flow, after the completion of business processing,
Judgement is to issue flow will also be intended for outgoing interface to the objective function module that the flow carries out business processing.
Relay module 102, hardware ID and the objective function mould for being currently located functional module according to the flow
The hardware ID of block, carries out message encapsulation to the flow, the flow is issued into the objective function mould using the message of encapsulation
Block.
It can be seen that, in the embodiment shown in fig. 1, pass through the mutual cooperation of modules in multifunctional network equipment, it is not necessary to
Networking is carried out to each hardware, i.e., data discrepancy path each hardware need not be separately configured, it is possible to realize to flow
Multi-functional processing, is configured compared to direct in the prior art on each hardware to the data discrepancy path of hardware itself,
The embodiment of the present invention simplifies configuration process, reduces maintenance cost.
It is illustrative for a specific example below on the embodiment shown in Fig. 1:
Example one:The functional module of multifunctional network equipment includes FW modules, IPS modules and ACG modules, main control module 101
Indicate that the flow path of the flow with feature A includes FW modules and IPS modules in the flow path configuration information of storage, that is, need
FW processing and IPS processing are carried out to the flow with feature A, then the flow handling process of the multifunctional network equipment includes:
Rule list 1 is issued FW modules, IPS by main control module 101 according to the flow path configuration information create-rule table 1
Module and ACG modules.Main control module 101 can also receive and store drainage configuration file, be given birth to according to the drainage configuration file
Into drainage rule, the drainage rule is issued to I/O plates, I/O plates drain into flow accordingly according to drainage rule
Functional module.
In example one, flow is incorporated into FW modules by I/O plates according to drainage rule, and FW modules receive flow from I/O mouthfuls
1, identify that the flow 1 has feature A, rule searching table 1 determines that needs carry out business processing, therefore, FW to the flow 1
Module carries out business processing based on its hardware virtualized to the flow 1, after being disposed, and calls the 102 pairs of processing of relay module
Flow afterwards carries out message encapsulation, and the flow 1 after processing is exported into FW modules using the message after encapsulation, wherein, in the report
Objective function module information is carried in text, specifically, in example one, the objective function module is IPS modules.
IPS modules receive the flow 1 from FW modules, recognize the feature and rule searching table 1 of the flow 1, determine
Need to carry out business processing to flow 1, therefore, IPS modules carry out business processing based on its hardware virtualized to the flow 1,
After being disposed, the flow after processing is directly exported into outgoing interface.
In one embodiment, each functional module of multifunctional network equipment shown in Fig. 1 can be included into the tactful mould in direction
Block, Service Processing Module and outgoing direction policy module.The difference of each functional module is Service Processing Module, difference in functionality mould
The Service Processing Module of block performs different types of business processing, for example, FW modules perform FW class business processings, IPS modules are held
Row IPS class business processings.The direction policy module that enters of each functional module is issued according to the feature and main control module of flow
Rule list, it is ensured that flow correctly drainage between each functional module.Specifically:
It is described enter direction policy module, the feature for recognizing inbound traffics, according to the feature of inbound traffics and the rule list,
Determine the need for the business processing classification that inbound traffics are carried out with business processing and needs to carry out the flow, i.e., it is specific
Which business processing is done to the flow, when business processing need not be carried out to inbound traffics, it is determined that being that issue flow will
Outgoing interface is also intended for the objective function module that the flow carries out business processing.
Inbound traffics, for needing to carry out business processing to inbound traffics, are performed corresponding industry by the Service Processing Module
Business is handled.
The outgoing direction policy module, for the feature according to inbound traffics and/or the processing knot of the Service Processing Module
Fruit determines the feature of outflow, according to the feature of outflow and the rule list, it is determined that being that issue outflow will be to described
The objective function module that outflow carries out business processing is also intended for outgoing interface.
For example, in above-mentioned example one, it is assumed that IPS modules carry out business processing based on its hardware virtualized to the flow 1
Afterwards, mistakenly call relay module 102 that the flow 1 after processing is drained into ACG modules for some reason, ACG modules are received
To after flow 1, the feature of inbound traffics 1 is recognized by entering direction policy module first, according to the feature of inbound traffics 1 and the rule
Table 1, it is determined whether need to carry out business processing to inbound traffics, by inquiring about the rule list 1, it is described enter direction policy module hair
Need not now business processing be carried out to the flow 1, and flow 1 should be exported directly to outgoing interface, therefore, it is described enter direction plan
Slightly module directly invokes relay module 102, and the flow 1 is exported to outgoing interface.
Wherein, the outgoing direction policy module is except can be in addition to the characteristic matching rule list according to inbound traffics, due to warp
Cross after business processing, further traffic characteristic can also be generally extracted from result, therefore, the outgoing direction plan
Slightly module can also further determine the feature of outflow according to the result of the Service Processing Module, based on outflow
Characteristic matching rule list, it is determined that being to issue flow to carry out the flow objective function module or hair of business processing
To outgoing interface.
On relay module 102 it is specific how encapsulated message, in one embodiment, relay module 102 can be each report
Text encapsulation hardware header field, business information header field and data message domain, wherein:
The hardware header field, for storage source hardware ID and target hardware ID, the source hardware ID includes the flow most
The ID of the nearly hardware once flowed through, the target hardware ID include flow described in lower a pair carry out business processing hardware ID,
The ID for next hardware that i.e. described flow will be flowed through.
The business information header field, for store it is all and/or will to flow carry out business processing function mould
The information of block.
The data message domain, the primary data information (pdi) for storing flow.
For example, in above-mentioned example one, after FW modules are disposed to flow 1, the hard of the flow 1 will be handled in the FW modules
The ID of part board, such as HIG are first-class, are added to hardware header field as source hardware ID, by next functional module, i.e. IPS modules
The ID for handling the hardware board of flow 1 is added to hardware header field as target hardware ID, and the storage mark in business information header field
Know information, have been completed the processing to flow 1 for identifying FW modules, the primary data information (pdi) of flow is then stored in number
According to message domain.
Although applicant noted that each different functional module performs different types of business processing, having perhaps
Many fundamental operations are identicals, for example, being required for extracting five-tuple information etc., in order to avoid repeating fundamental operation, one
In embodiment, can also in the business information header field memory function module to the processing result information of the flow so that
The result multiplexing between each difference in functionality module is realized, business processing efficiency is improved.
Specifically, in embodiments of the present invention, it is described enter direction policy module can recognize inbound traffics whether come from other
Functional module, becomes a mandarin measure feature if it is, being extracted by parsing the business information header field of inbound traffics, otherwise, directly from it is described enter
Traffic characteristic is extracted in flow.Wherein, because the flow from other functional modules from the I/O mouthfuls of flows come up with directly using
Be different agreement, wherein, the flow from other functional modules is obtained by the drainage of relay module 102, therefore,
It is described enter direction policy module can recognize inbound traffics whether come from other functional modules.
From foregoing description, by multifunctional network equipment provided in an embodiment of the present invention, user is only needed in master control
Module configures the flow path configuration information of flow, without to hardware such as each functional cards, configuration data goes out approach one by one
Footpath, therefore, enormously simplify configuration operation, if necessary to change flow path, also only need on main control module modification flow road
Footpath configuration information, reduces maintenance cost, and flow path configuration becomes more flexible.
In the embodiment of the present invention, user can configure diversified flow path according to actual needs, for example, as a kind of
Extreme case, can configure the flow path and only include One function module, such as, in flow path only include FW modules,
Then flow is after FW modules are introduced, and FW modules are to directly exporting to the flow after processing after flow finishing service processing
Outgoing interface.Typically, can configure the flow path includes more than two functional modules.When including more than two functions
During module, the path can have sequencing between flowing through at least two functional modules, can also not have sequencing, specifically
Refer to Fig. 2 and Fig. 3.
Fig. 2 is the flow path schematic diagram that multifunctional network equipment provided in an embodiment of the present invention handles flow.
Referring to Fig. 2, two flow paths, respectively flow path A and flow path B are illustrated therein is, for spy
A flow is levied, according to flow path A processing, for the flow with feature B, according to flow path B processing.Wherein, flow road
Footpath A flows through FW modules and load balancing (Load Balancing, LB) module, flow path B flow through FW modules, IPS modules,
Have in ACG modules and LB modules, also, as shown in the direction of arrow in Fig. 2, flow path A and flow path B between each module
Sequencing, i.e., it is necessary to first carry out FW processing to the flow with feature A in flow path A, then LB processing is carried out, in stream
, it is necessary to first carry out FW processing to the flow with feature B in amount path B, IPS processing is then carried out, ACG processing is carried out afterwards,
Finally carry out LB processing.
Referring to Fig. 2, multifunctional network equipment is handled flow according to flow path A and flow path B
The course of work is illustrated:
First, main control module 101 receives the flow path configuration information of flow, in the configuration information, indicates for tool
There is feature A flow, according to flow path A processing, for the flow with feature B, according to flow path B processing.Wherein, flow
Amount path A flows through FW modules and LB modules, and flow path B flows through FW modules, IPS modules, ACG modules and LB modules, also, such as
Shown in the direction of arrow in Fig. 2, there is sequencing between each module in flow path A and flow path B.
Then, rule list is handed down to each by main control module 101 according to the flow path configuration information create-rule table
Functional module, if these functional modules are carried on physically separated multiple hardware, the rule list is issued to often
On individual hardware, to facilitate functional module matched rule table.
When flow is drained into after FW modules by I/O plates, FW modules recognize the feature of inbound traffics first, and according to becoming a mandarin
The characteristic matching rule list of amount, wherein, if inbound traffics have feature A, inbound traffics are carried out extraction five-tuple, packet filtering,
After the business processings such as access rule checking, call relay module 102 that the flow after processing is drained into LB modules, if inbound traffics
With feature B, then inbound traffics are carried out after business processing, call relay module 102 that the flow after processing is drained into IPS moulds
Block.IPS modules are also the feature for recognizing inbound traffics first, and according to the characteristic matching rule list of inbound traffics, to feature B's
Inbound traffics are carried out after the business processings such as depth detection, call relay module 102 that the flow after processing is drained into ACG modules, ACG
Module is directed to the inbound traffics with feature B, and functional module before depth detection result etc. is extracted from the business information head of message
Service processing result information, then in conjunction with the service processing result information of functional module before, carry out application behavior auditing etc.
After business processing, call relay module 102 that the flow after processing is drained into LB modules.LB modules are to feature A or feature B
Inbound traffics carry out business processing after, by matched rule table, learn needs the flow after processing is exported into outgoing interface, because
This, LB modules need not call relay module 102 but the flow after processing directly is exported into I/O plates.
Fig. 3 is the another flow path schematic diagram that multifunctional network equipment provided in an embodiment of the present invention handles flow.
Referring to Fig. 3, two flow paths, respectively flow path A and flow path B1 are illustrated therein is, for spy
A flow is levied, according to flow path A processing, for the flow with feature B1, according to flow path B1 processing.Wherein, flow
Path A flows through FW modules and LB modules, and flow path B1 flows through FW modules, IPS modules, ACG modules and LB modules, also, such as
Shown in the direction of arrow in Fig. 3, there is sequencing between two modules in flow path A, i.e., it is necessary to right in flow path A
Flow with feature A first carries out FW processing, then carries out LB processing, and in flow path B1, IPS modules and ACG modules it
Between there is no sequencing, i.e. FW processing is first carried out to the flow with feature B1, IPS processing or ACG processing are then carried out again,
After IPS processing and ACG processing are all completed, LB processing is finally carried out.
Referring to Fig. 3, multifunctional network equipment is entered according to the flow path B1 courses of work handled flow
Row explanation:
First, main control module 101 receives the flow path configuration information of flow, in the configuration information, indicates for tool
There is feature A flow, handled according to flow path A (Relay A), for the flow with feature B1, according to flow path B1
(Relay B1) processing.
Then, rule list is handed down to each by main control module 101 according to the flow path configuration information create-rule table
Functional module, if these functional modules are carried on physically separated multiple hardware, the rule list is issued to often
On individual hardware.
Wherein, when according to the flow path configuration information create-rule table, for not having that the flow path is included
There is the functional module of sequencing, the rule list that main control module 101 is generated includes the poly- of the functional module without sequencing
Heal up information, it is one of described functional module without sequencing that next objective function module is identified with aggregation port.
When the hardware ID of objective function module is the aggregation port information of two or more functional module, traversal aggregation port is represented
Each functional module so that each functional module that aggregation port is represented completes processing to flow.Specifically, this two with
On functional module with random or in the way of certain weight determines sequencing which functional module can be determined first to flow
Handled, then the functional module is after flow is disposed, when calling relay 102 encapsulated message of module, update industry
In business information header field it is all and/or the information of functional module that flow will be handled, so as to record the function mould
Block has completed the processing to flow, is continued to carry out business to flow as other functional modules representated by the aggregation port so as to subsequently
Processing.
Such as, multifunctional network equipment for the flow with feature B1 according to flow path B1 when handling, master control mould
In the rule list that block 101 is generated, objective function module mark of the flow with feature B1 after the processing of FW modules finishing service
Knowledge is the aggregation port information of IPS modules and ACG modules.
When flow is drained into after FW modules by I/O plates, FW modules recognize the feature of inbound traffics first, and according to becoming a mandarin
The characteristic matching rule list of amount, wherein, if inbound traffics have feature B1, to inbound traffics carry out business processing after, by
With rule list, it is IPS modules and the aggregation port information of ACG modules to find the hardware ID of objective function module, therefore, is connect calling
When power module 102 exports flow, relay module 102 seals the hardware ID of the aggregation port information as the objective function module
Dress is in messages.
Assuming that having feature B1 flow, the IPS representated by aggregation port derived from FW modules for a certain moment B1-1
Module and ACG modules first carry out business processing by determining at random or by certain weight by IPS modules, then are entered by ACG modules
Row business processing, i.e., according to the Relay B1-1 processing in Fig. 3, then IPS modules are exported to the B1-1 moment from FW modules
With feature B1 flow finishing service processing after, by matched rule table, when calling relay 102 encapsulated message of module,
Still using the aggregation port information of IPS modules and ACG modules as objective function module hardware ID, and in business information header field
It is interior update it is all and/or will to flow carry out business processing functional module information, so as to record the IPS function moulds
Block has completed the business processing to flow, is continued so as to after by ACG modules to flow progress business processing.
Assuming that having feature B1 flow, the IPS representated by aggregation port derived from FW modules for a certain moment B1-2
Module and ACG modules first carry out business processing by determining at random or by certain weight by ACG modules, then are entered by ACG modules
Row business processing, i.e., according to the Relay B1-2 processing in Fig. 3, then ACG modules are exported to the B1-2 moment from FW modules
With feature B1 flow finishing service processing after, by matched rule table, when calling relay 102 encapsulated message of module,
Still using the aggregation port information of IPS modules and ACG modules as objective function module hardware ID, and in business information header field
It is interior update it is all and/or will to flow carry out business processing functional module information, so as to record the ACG function moulds
Block has completed the business processing to flow, is continued so as to after by IPS modules to flow progress business processing.
On which kind of when flow path is configured, is preferably set up at least two function moulds that flow path is included in the case of
There is sequencing between block, be preferably set up in the case of which kind of between at least two functional modules that flow path is included without first
Afterwards sequentially, the embodiment of the present invention is proposed, if a certain functional module, which is first handled, can reduce the processing work of follow-up function module
The a certain module, then be set to be located at before the follow-up function module, if between certain at least two functional module by amount
Processing workload when sequencing changes always does not have significant change, then can set between at least two functional module
There is no sequencing.
According to the business processing feature of each functional module, there is elder generation by reasonably setting between at least two functional modules
Afterwards sequentially, it is possible to reduce the processing workload of the network equipment always, treatment effeciency is improved, by reasonably setting at least two functions
There is no sequencing between module, can be realized between same previous functional modules (each functional module of i.e. no sequencing)
The fully connected topology of flow, so as to load of the equilibrium with previous functional modules, it is to avoid a certain some functional modules of moment
Extremely busy and other functional modules are then relatively idle.
It is below, illustrative to multifunctional network equipment provided in an embodiment of the present invention from hardware view angle,
Specifically refer to Fig. 4.
Fig. 4 is the hardware configuration connection diagram of multifunctional network equipment provided in an embodiment of the present invention.
As shown in figure 4, the multifunctional network equipment includes 4 pieces of boards, every piece of board includes processor, network interface, interior
Deposit and nonvolatile memory, and above-mentioned each hardware is connected by bus, wherein:
Nonvolatile memory, for store instruction code;The operation that the instruction code is completed when being executed by processor
The function that corresponding module predominantly in internal memory is completed.
Processor, for being communicated with nonvolatile memory, reads and performs stored in nonvolatile memory described
Instruction code, completes the function that the corresponding module in above-mentioned internal memory is completed.
In internal memory, the operation completed when the instruction code in nonvolatile memory is performed predominantly internal memory
The function that corresponding module is completed.
Wherein, board 0 is used as master control board card, and the memory modules of board 0 include main control module, will based on virtualization technology
Board 1- boards 3 are used as functional cards, specifically, and functional module 1 and relay module are included in the internal memory of board 1 and board 2,
The internal memory of board 3 includes functional module 2 and relay module.
In another embodiment, functional module and relay module can also be many-to-one relations, that is, set a relay
Module, multiple functional modules all call a relay module.Such as, it is the relay module in board 1, board 2 and board 3 is only
It is vertical to come out, it is placed on another another piece of board physically separated with the board 1, board 2 and board 3;For another example, at one piece
Two functional modules are realized on board, two functional modules call one on same board with two functional modules
Relay module.
For software view, the connection knot of main control module, functional module and relay module in multifunctional network equipment
Structure and the specific detailed description for referring to foregoing embodiments of the action completed.
The embodiment of the present invention additionally provides a kind of flow processing method, specifically refers to Fig. 5.
Fig. 5 is flow processing method flow chart provided in an embodiment of the present invention.
As shown in figure 5, the flow includes:
Step 501, main control module receives and stores the flow path configuration information of flow, is generated according to the configuration information
Rule list, the rule list includes the corresponding relation of traffic characteristic and flow path, and the rule list is issued into each function
Module, the functional module is obtained by more than one hardware virtualization with identical function.
Step 502, functional module recognizes the feature of flow, is determined the need for pair according to the feature and the rule list
The flow carries out business processing and is to issue flow to carry out the flow objective function module of business processing
Also it is intended for outgoing interface.
Wherein, functional module be if it is judged that business processing need not be carried out, then determine whether be by flow issue by
Outgoing interface is also intended for the objective function module that the flow carries out business processing, if it is judged that needing at carry out business
Reason, then to flow progress business processing, after the completion of business processing, then judge to issue flow to enter the flow
The objective function module of row business processing is also intended for outgoing interface.
Step 503, according to the rule list matching result of step 502, flow is directly issued into outgoing interface, or, call and connect
Power module is currently located the hardware ID of functional module and the hardware ID of the objective function module according to the flow, to the stream
Amount carries out message encapsulation, and the flow is issued into the objective function module using the message of encapsulation.
Wherein, the functional module recognizes the feature of inbound traffics, is fitted into according to the feature of inbound traffics and the rule list
Direction strategy, when entering direction strategy matching result for business processing need not be carried out to the inbound traffics, according to inbound traffics
Feature and rule list matching outgoing direction strategy, are to need to carry out business to the inbound traffics when entering direction strategy matching result
During processing, corresponding business processing is performed, the feature of outflow is determined according to the feature and/or service processing result of inbound traffics,
According to the feature of outflow and rule list matching outgoing direction strategy;Wherein, it is to flow that matching outgoing direction strategy, which includes determination,
Amount, which will be issued, to be also intended for outgoing interface to the objective function module that the flow carries out business processing.
Wherein, the progress message encapsulation can include:For each message encapsulation hardware header field, business information header field sum
According to message domain.
The hardware header field, for storage source hardware ID and target hardware ID, the source hardware ID includes the flow most
The ID of the nearly hardware once flowed through, the target hardware ID include the ID for next hardware that the flow will be flowed through.
The business information header field, for store it is all and/or will to flow carry out business processing function mould
The information of block.
The data message domain, the primary data information (pdi) for storing flow.
The business information header field, can be also used for processing result information of the memory function module to the inbound traffics.
Whether the functional module identification inbound traffics come from other functional modules, if it is, by parsing the inbound traffics
Business information header field extract traffic characteristic, otherwise, directly extract traffic characteristic from the inbound traffics.
There can be sequencing between at least two functional modules that the flow path is flowed through.
Can also be without sequencing, when no priority is suitable between at least two functional modules that the flow path is flowed through
During sequence, the rule list includes the aggregation port information of the functional module without sequencing, and the carry out message encapsulation includes:
When objective function module is that two or more does not have the functional module of sequencing, the aggregation port information is regard as the target
Functional module hardware ID encapsulation in messages, update business information header field in it is all and/or will be to flow at
The information of the functional module of reason.
It can be seen that, by the embodiment of the present invention, when carrying out multi-functional processing to flow, due to board is abstracted into logic function
Module, it is more directly perceived for a user, using more convenient;It is additionally, since using relay module between each functional module
Drainage, therefore, is no longer influenced by networking limitation, business configuration is more flexible, and maintenance cost is substantially reduced;Further, when each
When using Relay mode drainages between individual functional module, if further the service processing result of functional module is carried in report
Wen Zhong, it is also possible that the result of upper One function module directly can be multiplexed by next functional module, greatlys save meter
Consumption is calculated, efficiency is improved;Moreover, the continuous integrating of multifunctional network equipment also becomes to be more prone to, if follow-up will increase new
Function, then directly new functional module can be added in relay mechanism.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modification, equivalent substitution and improvements done within refreshing and principle etc., should be included within the scope of protection of the invention.