Summary of the invention
The purpose of the embodiment of the invention is to provide and can realizes network traffics processing distributed traffic treatment system, equipment and the flow association process method thereof of association in real time.
The purpose of the embodiment of the invention is achieved through the following technical solutions:
A kind of flow association process method comprises:
Reception is from the related information of distributed apparatus;
Distribute described related information to all distributed apparatus, the related information of described distribution is used for offering each distributed apparatus and stores when determining needs according to predetermined strategy.
Another kind of flow association process method comprises:
To from the flow that receives, resolve the related information that obtains and send to switching equipment;
Determine whether needs when receiving the related information of described switching equipment distribution, and store when needed.
A kind of distributed apparatus comprises: Dispatching Unit and at least one processing unit, wherein:
Described Dispatching Unit is used for receiving flow and distributes flow to described processing unit; When receiving related information, determine the processing unit of this related information of needs according to predetermined strategy, and this related information is distributed to the processing unit of described this related information of needs;
Described processing unit is used for resolving from the flow that described Dispatching Unit is distributed to and obtains related information and send to switching equipment, preserves when receiving the related information of described Dispatching Unit distribution.
A kind of switching equipment comprises: receiving element, transmitting element, wherein:
Receiving element is used for receiving the related information from distributed apparatus;
Transmitting element is used for to the described related information that receives of all distributed apparatus distributions, and the related information of described distribution is used for offering each distributed apparatus and stores when determining needs according to predetermined strategy.
A kind of distributed traffic treatment system comprises switching equipment and at least one distributed apparatus, wherein:
Described switching equipment be used for to receive the related information that frame type equipment sends, and all frame type equipments are distributed in the distributed processing system(DPS);
Described frame type equipment is used for obtaining related information from the flow parsing that receives and sends to switching equipment, and when receiving the related information of described switching equipment distribution, determines whether needs, and store when needed.
The embodiment of the invention adopts the unified related information that receives distributed apparatus of switching equipment, and all distributed apparatus distributions in the distributed traffic treatment system, and the method for being stored when the related information of the described distribution of needs by each distributed apparatus, owing to when receiving described related information, directly distribute, can accomplish that the network traffics processing is related in real time, for the follow-up coupling of searching when the newly-built flow facilitates, improve the real-time that flow is handled from described correlation information stored.And, because switching equipment directly is distributed to each distributed apparatus when receiving described related information, and preserved when needed by each distributed apparatus, therefore do not need to preserve related information on the switching equipment, and also be to preserve the related information that needs on each distributed apparatus, therefore less demanding to equipment, be beneficial to the saving cost.
Embodiment
The embodiment of the invention provides a kind of distributed traffic treatment system, equipment and flow association process method thereof, adopt the unified related information that receives distributed apparatus of switching equipment, and all distributed apparatus distributions in the distributed traffic treatment system, and stored when the related information of the described distribution of needs by each distributed apparatus, owing to when receiving described related information, directly distribute, can accomplish that therefore the network traffics processing is related in real time.Below be elaborated respectively by specific embodiment.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
With reference to Fig. 1, be the embodiment of the invention one distributed traffic treatment system flow association process method flow diagram, handle from the related information of distributed apparatus and be distributed as example describing with switching equipment, concrete steps are as follows:
S101, receive the related information from distributed apparatus;
S102, distribute described related information to all distributed apparatus, make each distributed apparatus store when determining the related information of the described distribution of needs according to predetermined strategy.
Wherein, can copy described related information and be distributed on each distributed apparatus by the broadcast or multicast mode, also can adopt the mode of IP address Hash (Hash) to distribute described related information to all distributed apparatus, at this moment, can adopt special-purpose discharge device to carry out the distribution of Hash formula.
New flow is arranged when (also can be called session or connection) in each distributed apparatus, can search correlation information stored and mate, and to carrying out predetermined operation with the described newly-built flow of related information coupling.
From present embodiment as can be seen, described switching equipment is by receiving the related information that distributed apparatus sends, and described related information is distributed to distributed apparatus all in the distributed system, make each distributed apparatus store when determining the related information of the described distribution of needs according to predetermined strategy, because switching equipment was directly distributed when receiving related information, can accomplish that therefore the network traffics processing is related in real time.And because distributed apparatus is stored the related information of needs, therefore when newly-built flow, can carry out match query at this equipment when receiving related information, seek on other equipment and needn't arrive, therefore can handle in real time.And, owing on the described switching equipment related information that receives is directly distributed, and each distributed apparatus is just preserved the related information that needs, so memory consumption is less, can the conserve memory resource.
With reference to Fig. 2, for the embodiment of the invention two distributed traffic treatment system flow association process method flow diagrams, with one of them distributed apparatus in the distributed system flow related information is treated to example and describes, concrete steps are as follows:
S201, will from the flow that receives, resolve the related information that obtains and send to switching equipment;
Because a user's flow may pass through a plurality of links, thereby handle through a plurality of distributed apparatus, each distributed apparatus receives flow and therefrom resolves and obtains related information.
In concrete the application, adopt frame type equipment as above-mentioned distributed apparatus usually, frame type equipment is made up of a Dispatching Unit and a plurality of processing unit usually, enters the interior flow of frame type equipment and is distributed on each processing unit by Dispatching Unit and handles.And the related information that some are used for related identification might be resolved and obtain to each processing unit in each frame type equipment, and the processing unit in the related information that the processing unit of each frame type equipment parses and other each frame type equipments carries out information sharing and could improve the flow treatment effeciency.
Dispatching Unit can adopt broadcasting or the mode of multicast with traffic distribution in the frame type equipment on each processing unit, to the processing unit of handling this customer flow, each processing unit sends to switching equipment with the related information that parses to the mode that also can adopt the IP address Hash with traffic distribution.
S202, determine whether needs when receiving the related information of described switching equipment distribution, and store when needed.
For frame type equipment, receive related information by Dispatching Unit in each frame type equipment and resolve, be distributed to then on the processing unit that needs and preserve.Like this, the related information of processing unit and described preservation mates when newly-built flow (being also referred to as session or connection), and when coupling this flow is carried out predetermined operation.
Switching equipment can copy described related information and be distributed on each distributed apparatus by the broadcast or multicast mode, also can adopt the mode of IP address Hash to distribute described related information to all distributed apparatus, at this moment, can carry out the distribution of Hash formula by the discharge device of special use.
For frame type equipment, Dispatching Unit can be determined the processing unit of this related information of needs according to predetermined strategy, and described related information is sent to this processing unit preserves.Usually need to determine the method for processing unit of related information identical with the method for Dispatching Unit distribution flow.For example, adopt the mode of IP address Hash to distribute during the distribution flow, when then Dispatching Unit is received related information, also carry out the distribution of Hash formula according to the IP address in the related information, like this, this related information will be distributed on the processing unit of handling this customer flow in the frame type equipment.Be understandable that, also can related information be distributed to each processing unit in the frame type equipment with the broadcast or multicast mode, filter and only keep the related information of own needs then by each processing unit, can according to whether identical with the IP address of the flow of self handling as each processing unit, and when identical, described related information is preserved.IP address can be the IP address of source end subscriber, also can be purpose terminal use's IP address.
In the present embodiment, the related information that adopts each distributed apparatus to parse from flow sends to switching equipment, and receive the related information that switching equipment is distributed, and only preserve needed related information, because each distributed apparatus all reports the related information that parses, and each distributed apparatus can both receive the related information that switching equipment is distributed, therefore, can accomplish that the network traffics processing is related in real time, and processing unit related information direct and the inner preservation of distributed apparatus mates when newly-built flow, do not need in other equipment, to search, therefore can realize the real-time processing to flow.And when coupling, this flow is carried out predetermined operation.
The embodiment of the invention is particularly useful for jumbo network traffics treatment system.
With reference to Fig. 3, be the embodiment of the invention three distributed traffic treatment system flow association process method flow diagrams, with reference to Fig. 4, be the embodiment of the invention four distributed traffic treatment system structural representations, at first with Fig. 4 the common application scenarios of embodiment of the invention method is described.A common user's flow may pass through a plurality of links, thereby through a plurality of distributed apparatus, and distributed apparatus is frame type equipment usually, and may comprise a plurality of processing units in the frame type equipment, the flow that enters this frame type equipment is distributed on each processing unit by the Dispatching Unit in the frame type equipment to be handled.Comprise switching equipment 41 and at least one frame type equipment 42 among Fig. 4, wherein, frame type equipment 42 is made up of Dispatching Unit 421 and at least one processing unit 422.
The processing unit of each frame type equipment sends to switching equipment, and is distributed to frame type equipments all in the distributed system by switching equipment after resolving and obtaining related information, in the frame type equipment, is distributed on the processing unit that needs by Dispatching Unit again.Following reference application scenarios shown in Figure 4 is elaborated by concrete steps:
Processing unit in S301, the frame type equipment is according to the analysis result of protocol traffic, and generation need be notified the related information of other processing units and send to switching equipment;
For example, a processing unit in certain frame type equipment is from certain user's FTP control channel, parse the FTP data channel triplet information that this user's dynamic negotiation goes out, it also is related information, need to handle on the every other frame type equipment in the distribution of notifications formula system processing unit of this customer flow, at this moment, this processing unit just sends to related information on the switching equipment.
S302, switching equipment are received the related information that described processing unit is sent, and described related information is distributed on the frame type equipments all in the distributed system;
In concrete the application, can adopt the broadcast or multicast mode of Ethernet switch, related information reproduction and be distributed on all frame type equipments, also can adopt the discharge device of special use to distribute.
S303, when other frame type equipments are received related information, according to predetermined strategy, need to determine the processing unit of this related information, and described related information is distributed to the processing unit of described this related information of needs;
After other frame type equipments are received related information, need need to determine the processing unit of described related information according to predetermined strategy, and described related information is sent to this processing unit preserve.Usually need to determine the method for processing unit of related information identical with the method for Dispatching Unit distribution flow.For example, adopt the mode of IP address Hash to distribute during the distribution flow, when then Dispatching Unit is received related information, also carry out the distribution of Hash formula according to the IP address in the related information, like this, this related information will be distributed on the processing unit of handling this customer flow in the frame type equipment.Be understandable that, also can related information be distributed to each processing unit in the frame type equipment with the broadcast or multicast mode, filter and only keep the related information of own needs then by each processing unit, can according to whether identical with the IP address of the flow of self handling as each processing unit, and when identical, described related information is preserved.
So far, can realize the real-time association of flow that each distributed apparatus is handled.
S304, processing unit are stored in related information in this face of land, to newly-built flow (being also referred to as session or the connection) coupling of tabling look-up, to carrying out predetermined operation with the flow of related information coupling.
From present embodiment as can be seen, receive related information and distribute by switching equipment, can realize that network traffics handle related in real time.And in frame type equipment inside, because related information sent to processing unit this locality, the related information during therefore newly-built flow is searched and can be carried out in real time in this locality, and does not need to external equipment to search, and can realize therefore that flow is related to handle in real time.And, because switching equipment is directly transmitted, do not need to preserve related information, and the memory cell in each frame type equipment is also only preserved the related information relevant with this processing unit, therefore less demanding to equipment, can save cost.
More than embodiment of the invention distributed traffic treatment system flow association process method is had been described in detail, below the applied system of described method, equipment and device are carried out correspondence explanation:
With reference to Fig. 4, be the embodiment of the invention four distributed traffic treatment system structural representations, this system comprises: switching equipment 41 and at least one frame type equipment 42, wherein:
Switching equipment 41 be used for to receive the related information that frame type equipment 42 sends, and all frame type equipments 42 are distributed in the distributed processing system(DPS);
Frame type equipment 42 is used for obtaining related information from the flow parsing that receives and sends to switching equipment 41, and when receiving the related information of switching equipment 41 distributions, determines whether needs, and store when needed.
Usually, switching equipment 41 comprises: receiving element, transmitting element, wherein:
Receiving element is used for receiving the related information from frame type equipment 42;
Transmitting element is used for to the described related information that receives of all frame type equipments 42 distributions.
Usually, frame type equipment 42 comprises: Dispatching Unit 421 and at least one processing unit 422, wherein:
Dispatching Unit 421 is used for receiving flow and distributes flows to processing unit 422; When receiving related information, determine the processing unit 422 of this related information of needs according to predetermined strategy, and be distributed to the processing unit 422 of described this related information of needs;
Processing unit 422 is used for resolving from the flow that Dispatching Unit 421 is distributed to and obtains related information and send to switching equipment 41, preserves when receiving the related information of Dispatching Unit 421 distributions.
Dispatching Unit 421 can adopt the mode of broadcast or multicast to distribute, and also can take the mode of IP address Hash to distribute.
Usually, Dispatching Unit 421 adopts the ways of distribution identical with the distribution flow that described related information is distributed.For example, adopt the mode of IP address Hash to distribute during the distribution flow, Dispatching Unit 421 comprises searches subelement, when receiving related information, search the processing unit 422 of handling the relative users flow according to the IP address in the related information by the described subelement of searching, like this, this related information will be distributed on the processing unit 422 of also handling this customer flow in the frame type equipment.Be understandable that, also can related information be distributed to each processing unit 422 in the frame type equipment 42 with the broadcast or multicast mode, filter and only keep the related information of own needs then by each processing unit 422, corresponding, processing unit 422 can comprise the coupling subelement, be used for determining whether the IP address of the related information that receives and the flow of handling mates, and when coupling, preserve described related information.
As can be seen, the described switching equipment of present embodiment is by receiving the related information that distributed apparatus sends, and described related information is distributed to distributed apparatus all in the distributed system, make each distributed apparatus store when determining the related information of the described distribution of needs according to predetermined strategy, because switching equipment was directly distributed when receiving related information, can accomplish that therefore the network traffics processing is related in real time.And because distributed apparatus is stored the related information of needs, therefore when newly-built flow, can carry out match query at this equipment when receiving related information, seek on other equipment and needn't arrive, therefore can handle in real time.And, owing on the described switching equipment related information that receives is directly distributed, and each distributed apparatus is just preserved the related information that needs, and therefore less demanding to Device memory, be beneficial to the saving cost.
With reference to Fig. 5, be the embodiment of the invention five dispensing device structural representations, this dispensing device comprises: receiving element 51, processing unit determining unit 52, transmitting element 53, wherein:
Receiving element 51 is used for receiving flow and related information;
Processing unit determining unit 52 is for the processing unit of determining the related information that needs receiving element 51 receives according to predetermined strategy;
Transmitting element 53, the traffic distribution that is used for receiving element 51 is received is to handling device, and the processing unit of determining to processing unit determining unit 52 sends described related information.
With reference to Fig. 6, be the embodiment of the invention six processing unit structural representations, this processing unit comprises: receiving element 61, memory cell 62, processing unit 63, transmitting element 64, wherein:
Receiving element 61 is used for receiving flow and related information;
Memory cell 62 is used for the related information that receiving element 61 receives is stored;
Processing unit 63, the flow that is used for receiving from receiving element 61 parses related information, and newly-built flow is searched the related information of coupling from memory cell 62, and when coupling described newly-built flow is carried out predetermined operation;
Transmitting element 64, the related information that is used for processing unit 63 is parsed sends.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than distributed traffic treatment system, equipment and flow association process method thereof that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.