CN104468254A - Network flow statistic reporting processing method and device, controller and switch - Google Patents

Network flow statistic reporting processing method and device, controller and switch Download PDF

Info

Publication number
CN104468254A
CN104468254A CN201310440097.3A CN201310440097A CN104468254A CN 104468254 A CN104468254 A CN 104468254A CN 201310440097 A CN201310440097 A CN 201310440097A CN 104468254 A CN104468254 A CN 104468254A
Authority
CN
China
Prior art keywords
statistical report
strategy
message
statistics
controller
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.)
Pending
Application number
CN201310440097.3A
Other languages
Chinese (zh)
Inventor
梁乾灯
尤建洁
潘家伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310440097.3A priority Critical patent/CN104468254A/en
Publication of CN104468254A publication Critical patent/CN104468254A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a network flow statistics reporting processing method and device, a controller and a switch. The method comprises the steps of sending a statistic reporting strategy for processing network flow statistic data reporting to the switch, and receiving the statistic result data reported by the switch according to the statistic reporting strategy. According to the network flow statistics reporting processing method and device, the controller and the switch, the problem that heavy burden is caused on the controller in the related technology that the controller inquires the network flow statistic data, the burden of the controller on network flow statistics is further relieved, and the effect of network performance is further enhanced.

Description

Network flow statistic report process method, device, controller and switch
Technical field
The present invention relates to the communications field, in particular to a kind of network flow statistic report process method, device, controller and switch.
Background technology
Increasing disadvantage is exposed and the demand of people to network performance is more and more higher due to present network, researcher has to a lot of sophisticated functions to join in the middle of the architecture of router, such as open type shortest path priority protocol (OpenShortest Path First, referred to as OSPF), Border Gateway Protocol (Border Gateway Protocol, referred to as BGP), multicast, Differentiated Services, traffic engineering, network address translation (Network Address Translation, referred to as NAT), fire compartment wall, multiprotocol label switching (Multi-Protocol Label Switching, referred to as MPLS) etc.This just makes the switching equipment such as router space that is more and more too fat to move and performance boost more and more less.
But distinct with the predicament of network field, computer realm achieves development with rapid changepl. never-ending changes and improvements.The development of careful review computer realm, is not difficult to find that its key is that computer realm have found a kind of simply available hardware bottom layer (x86 instruction set).Owing to there being a kind of so public hardware bottom layer, so in software, no matter be that application program or operating system all achieve development at full speed.Now much advocate that the personage redesigning computer network architectures thinks: the success that network can copy computer realm solves all problems that present network runs into.Under the guidance of this thought, network in the future will be such: the data path (switch, router) of bottom is " mute, simple, minimum ", and define public application programming interface (the Application Programming Interface about stream table of an opening, referred to as API), adopt controller to control whole network simultaneously.The API that following researcher just can call bottom on the controller freely programmes, thus realizes the innovation of network.
Based on above-mentioned theory, there is software defined network (Software Defined Network, referred to as SDN), Fig. 1 be in correlation technique Open Flow(hereinafter referred to as OF) protocol application Organization Chart, Fig. 2 be in correlation technique message flow by the schematic diagram of Open Flow process pipeline, as Fig. 1, shown in 2, core technology Open Flow agreement is by separating network equipment chain of command (comprising Open Flow Controller) and data surface (comprising OpenFlow Logical Switch), thus achieve the flexible control of network traffics, for the innovation of core network and application provides good platform.
Open Flow agreement is used to the standard describing mutual information used between controller and switch, and the interface standard of controller and switch.The core of agreement is the set for Open Flow protocol information structure.Fig. 3 is the Message processing schematic diagram based on Open Flow stream table in correlation technique, as shown in Figure 3, entry Open Flow stream table or form pipeline through multiple stream table cascade of layout and be used for configuration switch forward-path, table 1 is Open Flow stream table in correlation technique, as shown in table 1, this stream table clause is made up of following several fields such as matching field, counter and instruction set:
Table 1
Match Fields Priority Counters Instructions Timeouts Cookie
Wherein, matching domain (Match Fields) is the input keyword of message coupling, for mating a stream table clause; Counter (Counters) is the various statistical informations for managing; Instruction set (Instructions) refers to the operational order to message, comprises abandoning, the designated port that E-Packets, arranging header field value, increase encapsulated tags etc.Behavior aggregate (Action Set) and each message are associated, it transmit between multiple stream tables of pipeline and the instruction shown by each stream revise, until line treatment terminates, form final behavior aggregate.
The traffic statistics (Queue) of Open Flow network support interface, stream table clause (Flow Entry), group table clause (Group), meter entry (Meter) and queue (such as, the message number of process and byte number).Define relevant traffic statistics message in OpenFlow agreement, as Individual Flow Statistics(single current statistics), Aggregate Flow Statistics(multithread statistics), Group Statistics(group table statistics), Meter Statistics(meter add up), Queue Statistics(priority-queue statistic) etc.These message all initiatively initiate requesting query to switch by controller in Multipart message.This inquiry mode is undertaken when low-frequency degree is inquired about proper at controller or APP by controller.When controller needs to collect Open Flow network topology, and as far as possible quasi real time network flow calculation data, so that controller can according to network local nodes, the temperature of link or stream table clause adjusts rectifier meter path in time, when doing load balancing, if now also require, controller goes frequent to inquire about corresponding stream table clause on a large scale, group table clause, meter entry, interface, the traffic statistics of queue, heavy pressure can be formed to controller, because in this query script, controller may need to use timer poll, and the data needing process two message (request and response) just can complete a statistics point are extracted.
Therefore, in the related by the mode of controller requester network traffic statistics, cause heavy burden to controller, affect the problem of network performance.
Summary of the invention
The invention provides a kind of network flow statistic report process method, device, controller and switch, at least to solve the mode by controller requester network traffic statistics in correlation technique, cause heavy burden to controller, affect the problem of network performance.
According to an aspect of the present invention, provide a kind of network flow statistic report process method, comprising: send the statistical report strategy reported for the treatment of network traffic statistics to switch; Receive the statistics data that described switch reports according to described statistical report strategy.
Preferably, described statistical report strategy comprise following one of at least: the trigger parameter that statistical report strategy mark, statistics vertex type, statistics point patterns, statistics data report.
Preferably, after sending to described switch the described statistical report strategy reported for the treatment of network traffic statistics, also comprise: send to described switch and be used to indicate the command information processing described statistical report strategy.
Preferably, described command information comprise following one of at least: be used to indicate and suspend the command information performing described statistical report strategy, the command information being used to indicate the described statistical report strategy recovering paused execution, be used to indicate the command information that described switch deletes described statistical report strategy.
Preferably, the described statistical report strategy reported for the treatment of network traffic statistics is sent in the following manner: send multi-part message to described switch to switch, wherein, include statistical report policy request message in described multi-part message, described statistical report policy request message carries described statistical report strategy; And/or, receive the executing state change information of described statistics data that described switch reports and/or described statistical report strategy in the following manner: receive the statistical report message from described switch, wherein, the executing state change information of described statistics data and/or described statistical report strategy is carried in described statistical report message.
According to a further aspect in the invention, provide a kind of network flow statistic report process method, comprising: receive the statistical report strategy reported for the treatment of network traffic statistics that controller sends; According to described statistical report strategy, report described controller by the statistics data of network flow statistic.
Preferably, described statistical report strategy comprise following one of at least: the trigger parameter that statistical report strategy mark, statistics vertex type, statistics point patterns, statistics data report.
Preferably, after the described statistical report strategy reported for the treatment of network traffic statistics receiving the transmission of described controller, also comprise: what receive the transmission of described controller is used to indicate the command information processing described statistical report strategy.
Preferably, described command information comprise following one of at least: be used to indicate and suspend the command information performing described statistical report strategy, the command information being used to indicate the described statistical report strategy recovering paused execution, be used to indicate the command information that described switch deletes described statistical report strategy.
Preferably, after the described statistical report strategy reported for the treatment of network traffic statistics receiving the transmission of described controller, also comprise: to described controller report statistical report strategy execution state change information.
Preferably, in the following manner to statistics data described in described controller report and/or described statistical report strategy execution state change information: send asynchronous message to described controller, wherein, described asynchronous message is asynchronous multi-part message, described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics data and/or described statistical report strategy execution state change information; Or send asynchronous information to described controller, wherein, described asynchronous message is statistical report message, and described statistical report message carries described statistics data and/or described statistical report strategy execution state change information.
According to also one side of the present invention, provide a kind of network flow statistic and report processing unit, comprising: the first sending module, for sending the statistical report strategy reported for the treatment of network traffic statistics to switch; First receiver module, for receiving the statistics data that described switch reports according to described statistical report strategy.
Preferably, this device also comprises: the second sending module, is used to indicate for sending to described switch the command information processing described statistical report strategy.
Preferably, described first sending module, also for sending the described statistical report strategy reported for the treatment of network traffic statistics in the following manner to switch: send multi-part message to described switch, wherein, include statistical report policy request message in described multi-part message, described statistical report policy request message carries described statistical report strategy; And/or, described first receiver module, also for receiving the executing state change information of described statistics data that described switch reports and/or described statistical report strategy in the following manner: receive the statistical report message from described switch, wherein, the executing state change information of described statistics data and/or described statistical report strategy is carried in described statistical report message.
In accordance with a further aspect of the present invention, provide a kind of controller, comprising: the network flow statistic described in above-mentioned any one reports processing unit.
Provide a kind of network flow statistic and report processing unit, comprising according to of the present invention: the second receiver module also on the one hand, for receiving the statistical report strategy reported for the treatment of network traffic statistics that controller sends; First reporting module, for according to described statistical report strategy, reports described controller by the statistics data of network flow statistic.
Preferably, this device also comprises: the 3rd receiver module, for receive described controller send be used to indicate the command information processing described statistical report strategy.
Preferably, this device also comprises: the second reporting module, for described controller report statistical report strategy execution state change information.
Preferably, described first reporting module, also in the following manner one of at least to statistics data described in described controller report: send asynchronous message to described controller, wherein, described asynchronous message is asynchronous multi-part message, described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics data; Send asynchronous information to described controller, wherein, described asynchronous message is statistical report message, and described statistical report message carries described statistics data; And/or, described second reporting module, also for one of at least adding up strategy execution state change information to described in described controller report in the following manner: send asynchronous message to described controller, wherein, described asynchronous message is asynchronous multi-part message, described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics strategy execution state change information; Send asynchronous information to described controller, wherein, described asynchronous message is statistical report message, and described statistical report message carries described statistical report strategy execution state change information.
According to also another aspect of the present invention, provide a kind of switch, comprising: the network flow statistic described in above-mentioned any one reports processing unit.
By the present invention, adopt and send to switch the statistical report strategy reported for the treatment of network traffic statistics; Receive the statistics data that described switch reports according to described statistical report strategy, solve the problem being caused heavy burden in correlation technique by controller requester network traffic statistics to controller, and then reach and alleviate the burden of controller on network flow statistic, and then strengthen the effect of network performance.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is Open Flow protocol application Organization Chart in correlation technique;
Fig. 2 be in correlation technique message flow by the schematic diagram of Open Flow process pipeline;
Fig. 3 is the Message processing schematic diagram based on Open Flow stream table in correlation technique;
Fig. 4 is the flow chart of the network flow statistic report process method one according to the embodiment of the present invention;
Fig. 5 is the flow chart of the network flow statistic report process method two according to the embodiment of the present invention;
Fig. 6 is the structured flowchart reporting processing unit one according to the network flow statistic of the embodiment of the present invention;
Fig. 7 is the preferred structure block diagram reporting processing unit one according to the network flow statistic of the embodiment of the present invention;
Fig. 8 is the structural representation of the controller according to the embodiment of the present invention;
Fig. 9 is the structured flowchart reporting processing unit two according to the network flow statistic of the embodiment of the present invention;
Figure 10 is the preferred structure block diagram one reporting processing unit two according to the network flow statistic of the embodiment of the present invention;
Figure 11 is the preferred structure block diagram two reporting processing unit two according to the network flow statistic of the embodiment of the present invention;
Figure 12 is the structural representation of the switch according to the embodiment of the present invention;
Figure 13 is that OF controller issues the network flow statistic report method flow chart of multi-part (Multipart) statistics strategy (newly-increased/amendment) request message to OF switch according to the preferred embodiment of the present invention;
Figure 14 is that controller issues the traffic statistics report method flow chart of multi-part statistics strategy (deletion/suspending/resuming) request message to switch according to the preferred embodiment of the present invention;
Figure 15 is that switch sends the traffic statistics report method flow chart of asynchronous multi-part statistical report message to controller according to the preferred embodiment of the present invention;
Figure 16 is that switch sends the traffic statistics report method flow chart of asynchronous statistical report message to controller according to the preferred embodiment of the present invention;
Figure 17 is that switch sends the flow chart of the traffic statistics report method of asynchronous statistical phenomeon message to controller according to the preferred embodiment of the present invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Provide a kind of network flow statistic report process method in the present embodiment, Fig. 4 is the flow chart of the network flow statistic report process method one according to the embodiment of the present invention, and as shown in Figure 4, this flow process comprises the steps:
Step S402, sends the statistical report strategy reported for the treatment of network traffic statistics to switch;
Step S404, the statistics data that desampler reports according to statistical report strategy.
Pass through above-mentioned steps, after sending the statistics strategy that reports of network traffic statistics to switch, the statistics data that desampler reports according to statistical report strategy, relative in correlation technique by controller when needs network traffic statistics, need to send inquiry request to switch, also need afterwards to process corresponding response message, white elephant is caused to controller, for the problems referred to above in correlation technique, adopt and send statistical report strategy to switch, report network traffic statistics are carried out afterwards according to the statistical report strategy received, not only solve the mode by controller requester network traffic statistics in correlation technique, heavy burden is caused to controller, affect the problem of network performance, and then reach the burden alleviating controller acquisition network traffic statistics, strengthen the effect of network performance.
Wherein, above-mentioned statistical report strategy can comprise following one of at least: (statistically report strategy is in multiple situation for statistical report strategy mark, for distinguishing each statistical report strategy), statistics vertex type is (namely for carrying out the objects of statistics of adding up, such as, it can be stream table clause, group table clause, meter entry, interface or queue etc.), statistics point patterns (the i.e. descriptor of objects of statistics, such as, it can be the matching domain of stream table clause, the information such as group table entry ID), the trigger parameter that statistics data report (namely reports the mode of statistics data, such as, can be that timing reports, namely report at a certain official hour point, also can be periodic report, namely report according to the prespecified cycle, or pre-set some traffic thresholds, when reach this thresholding namely trigger report).
Preferably, after sending to switch the statistical report strategy reported for the treatment of network traffic statistics, all right: send the command information being used to indicate process statistical report strategy to switch.This command information can be independent controller to switch message, also can be the sub-message of Multipart message, recommendation the latter.This command information can comprise following one of at least: be used to indicate and suspend the command information performing statistical report strategy, the command information being used to indicate the statistical report strategy recovering paused execution, be used to indicate the command information of switch deletion statistical report strategy.
Preferably, the statistical report strategy reported for the treatment of network traffic statistics is being sent to switch; And desampler report according to statistical report strategy statistics data time can adopt multiple processing mode, such as, the statistical report strategy reported for the treatment of network traffic statistics can be sent in the following manner: send multi-part message to switch to switch, wherein, include statistical report policy request message in multi-part message, this statistical report policy request message carries statistical report strategy; Also can the executing state change information of the statistics data that report of desampler and/or statistical report strategy in the following manner: receive the statistical report message from switch, wherein, the executing state change information of statistics data and/or statistical report strategy is carried in this statistical report message.In other words, namely in the Multipart message of OpenFlow agreement, newly-increased a pair Statistics Policy Request/Reply(adds up strategy request/answer) message; This message is used for OF controller and issues statistics strategy to OFLS, and switch replys response message.
Provide a kind of network flow statistic report process method in the present embodiment, Fig. 5 is the flow chart of the network flow statistic report process method two according to the embodiment of the present invention, and as shown in Figure 5, this flow process comprises the steps:
Step S502, receives the statistical report strategy reported for the treatment of network traffic statistics that controller sends;
Step S504, according to this statistical report strategy, reports controller by the statistics data of network flow statistic.
Pass through above-mentioned steps, by receiving the statistical report strategy reported for the treatment of network traffic statistics that controller sends, according to this statistical report strategy, controller is reported by the statistics data of network flow statistic, relative in correlation technique by controller when needs network traffic statistics, need to send inquiry request to switch, also need afterwards to process corresponding response message, white elephant is caused to controller, for the problems referred to above in correlation technique, adopt and send statistical report strategy to switch, report network traffic statistics are carried out afterwards according to the statistical report strategy received, not only solve the mode by controller requester network traffic statistics in correlation technique, heavy burden is caused to controller, affect the problem of network performance, and then reach the burden alleviating controller acquisition network traffic statistics, strengthen the effect of network performance.
Wherein, above-mentioned statistical report strategy can comprise following one of at least: (statistically report strategy is in multiple situation for statistical report strategy mark, for distinguishing each statistical report strategy), statistics vertex type is (namely for carrying out the objects of statistics of adding up, such as, it can be stream table clause, group table clause, meter entry, interface or queue etc.), statistics point patterns (the i.e. descriptor of objects of statistics, such as, it can be the matching domain of stream table clause, the information such as group table entry ID), the trigger parameter that statistics data report (namely reports the mode of statistics data, such as, can be that timing reports, namely report at a certain official hour point, also can be periodic report, namely report according to the prespecified cycle, or report thresholding, namely pre-set some and report thresholding, when reach this thresholding namely trigger report).
Preferably, after the statistical report strategy reported for the treatment of network traffic statistics receiving controller transmission, also comprise: receive the command information being used to indicate process statistical report strategy that controller sends.Command information comprise following one of at least: be used to indicate and suspend the command information performing statistical report strategy, the command information being used to indicate the statistical report strategy recovering paused execution, be used to indicate the command information of switch deletion statistical report strategy.
After the statistical report strategy reported for the treatment of network traffic statistics receiving controller transmission, also comprise: to controller report statistical report strategy execution state change information: such as, this statistics strategy execution state change information reported comprise following one of at least: paused to network flow statistic, recovered the network flow statistic suspended, delete corresponding statistics strategy.In addition, it should be noted that, at the processor of switch busy or before mutual controller chain rupture, to need by the state reporting of switch to controller, or the spare controller of interaction controller before.
When sending statistics data and/or statistical report strategy execution state change information to controller, various ways can be adopted, such as, can in the following manner to controller report statistics data and/or statistical report strategy execution state change information: such as, asynchronous message can be sent to controller, wherein, asynchronous message is asynchronous multi-part message, this asynchronous multi-part message includes statistical report message, and statistical report message carries statistics data and/or statistical report strategy execution state change information; Again such as, can also send asynchronous information to controller, wherein, asynchronous message is statistical report message, and this statistical report message carries statistics data and/or statistical report strategy execution state change information.
Additionally provide a kind of network flow statistic in the present embodiment and report processing unit, this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, term " module " can realize the software of predetermined function and/or the combination of hardware.Although the device described by following examples preferably realizes with software, hardware, or the realization of the combination of software and hardware also may and conceived.
Fig. 6 is the structured flowchart reporting processing unit one according to the network flow statistic of the embodiment of the present invention, and as shown in Figure 6, this device comprises the first sending module 62 and the first receiver module 64, is described below to this device.
First sending module 62, for sending the statistical report strategy reported for the treatment of network traffic statistics to switch; First receiver module 64, is connected to above-mentioned first sending module 62, for the statistics data that desampler reports according to statistical report strategy.
Fig. 7 is the preferred structure block diagram reporting processing unit one according to the network flow statistic of the embodiment of the present invention, and as shown in Figure 7, this device, except comprising all modules shown in Fig. 6, also comprises the second sending module 72, is described below to this second sending module 72.
Second sending module 72, is connected to above-mentioned first sending module 62, for sending the command information being used to indicate process statistical report strategy to switch.
Preferably, this first sending module 62, also for sending the statistical report strategy reported for the treatment of network traffic statistics in the following manner to switch: send multi-part message to switch, wherein, include statistical report policy request message in this multi-part message, statistical report policy request message carries statistical report strategy; And/or, this first receiver module 64, the statistics data also reported for desampler in the following manner and/or the executing state change information of statistical report strategy: receive the statistical report message from switch, wherein, the executing state change information of statistics data and/or statistical report strategy is carried in this statistical report message.
In the present embodiment, additionally provide a kind of controller, Fig. 8 is the structural representation of the controller according to the embodiment of the present invention, and as shown in Figure 7, the network flow statistic that this controller 80 comprises above-mentioned any one reports processing unit 1.
In the present embodiment, additionally provide a kind of network flow statistic and report processing unit, Fig. 9 is the structured flowchart reporting processing unit two according to the network flow statistic of the embodiment of the present invention, as shown in Figure 9, this device comprises the second receiver module 92 and the first reporting module 94, is described below to this device.
Second receiver module 92, for receiving the statistical report strategy reported for the treatment of network traffic statistics that controller sends; First reporting module 94, is connected to above-mentioned second receiver module 92, for according to statistical report strategy, reports controller by the statistics data of network flow statistic.
Figure 10 is the preferred structure block diagram one reporting processing unit two according to the network flow statistic of the embodiment of the present invention, as shown in Figure 10, this device, except comprising all modules shown in Fig. 9, also comprises the 3rd receiver module 102, is described below to the 3rd receiver module 102.
3rd receiver module 102, is connected to above-mentioned second receiver module 92, for receiving the command information being used to indicate process statistical report strategy that controller sends.
Figure 11 is the preferred structure block diagram two reporting processing unit two according to the network flow statistic of the embodiment of the present invention, as shown in figure 11, this device, except comprising all modules shown in Fig. 9, also comprises: the second reporting module 1102, is described below to this second reporting module 1102.
Second reporting module 1102, is connected to above-mentioned second receiver module 92, for controller report statistical report strategy execution state change information.
Preferably, this first reporting module 94, for in the following manner one of at least to controller report statistics data: send asynchronous message to controller, wherein, asynchronous message is asynchronous multi-part message, asynchronous multi-part message includes statistical report message, and statistical report message carries statistics data; Send asynchronous information to controller, wherein, asynchronous message is statistical report message, and statistical report message carries statistics data; And/or, second reporting module 1102, for in the following manner one of at least to controller report statistics strategy execution state change information: send asynchronous message to controller, wherein, asynchronous message is asynchronous multi-part message, asynchronous multi-part message includes statistical report message, and statistical report message carries statistics strategy execution state change information; Send asynchronous information to controller, wherein, asynchronous message is statistical report message, and statistical report message carries statistical report strategy execution state change information.
In the present embodiment, additionally provide a kind of switch, Figure 12 is the structural representation of the switch according to the embodiment of the present invention, and as shown in figure 12, the network flow statistic that this switch 120 comprises above-mentioned any one reports processing unit 2 122.
Based on the problems referred to above existing in correlation technique, for Open Flow network, provide a kind of method of Open Flow network flow statistic in the present embodiment, the method mainly comprises the steps:
OF controller issues statistics strategy to OF switch; Wherein, this statistics strategy can comprise following one of at least: add up tactful ID, statistics vertex type (such as: stream table clause, group table clause, meter entry, interface or queue), statistics point patterns (such as: the match territory of stream table clause, group table clause ID), statistics report trigger parameter (as timing cycle, reporting thresholding).It should be noted that, above-mentioned statistics point patterns can add up point by exact matching one, also can the set of wildcard one statistics point.
OFLS reports the statistics of statistics point according to statistics strategy.
More preferably, OF controller will add up policy distribution to after OFLS, and OF controller can also indicate OFLS to perform the state of this statistics strategy, and such as, OF controller can indicate OFLS to suspend the statistics strategy performing and specify; After OF controller also can indicate OFLS to suspend the statistics strategy performing and specify, instruction OFLS recovers the paused statistics strategy of specifying; OF controller can also notify the statistics strategy of specifying that OFLS deletes it and issues.
It is pointed out that OFLS in certain special cases, the event (as suspended or recovering) of the executing state change of notification controller statistics strategy; Particularly, when the CPU busy or main OF controller chain rupture of OFLS, the controller that OFLS needs notice corresponding.When OFLS replys the statistics strategy recovering to perform time-out, the controller that OFLS needs notice corresponding.
Wherein, when OF controller issues statistics strategy to OF switch, a pair Statistics Policy Request/Reply(can be increased newly add up strategy request/answer in the Multipart message of Open Flow agreement) message; This message is used for OF controller and issues statistics strategy to OFLS, and switch replys response message.
During the statistics that OFLS reports statistics to put according to statistics strategy, Multipart message mechanism can be increased newly in the asynchronous message of Open Flow agreement, i.e. asynchronous Multipart message, and increase a sub-message StatisticsReport(statistical report in this asynchronous Multipart message) message.This message is used for OFLS to OF controller report statistics or the executing state of statistics strategy that issues for OF controller.
Optionally, in the asynchronous message of OpenFlow agreement, Statistics Report message is directly increased for performing above-mentioned asynchronous Multipart Report message.
Below in conjunction with accompanying drawing, the preferred embodiment for the present invention is described.
Figure 13 is that OF controller issues the network flux statistical method flow chart of multi-part (Multipart) statistics strategy (newly-increased/amendment) request message to OF switch according to the preferred embodiment of the present invention, and as shown in figure 13, the method comprises the steps:
Step S1302, OF controller sends Multipart Statistics Policy(multi-part statistics strategy to OFLS) request message, this message is used for issuing statistics policy information to OFLS;
Wherein, this message can use structure struct ofp_statistics_policy_request to define, as follows, the parameter of carrying can include the tactful ID of statistics, statistics vertex type (comprising stream, group table, meter, port, queue, stream table), statistics report trigger parameter (comprise clocked flip, traffic threshold trigger), request command (comprise and add or amendment), statistics point number etc.
It is an elongated array after ofp_statistics_policy_request message header, this elongated array comprises a statistics point number designation number quantitative statistics point, and the feature ofp_flow_stats_request(of statistics point describes stream entry features), ofp_port_stats_request(describes port diagnostic) or ofp_group_stats_request(description group table feature) etc. the existing structure of Open Flow agreement describe.
Step S1304, OFLS replys Multipart Statistics Policy to OF controller and replys message, this message is not special semantic, only represent and confirm request message, preserve and start the statistics strategy supporting to issue, if OFLS thinks add up policy information wrong (such as repeating to add the statistics strategy of identical ID), just reply Error message, the type of error (type of error of strategy is added up in such as newly-increased expression) and the error code that carry correspondence inform OF controller.Particularly, this message uses structure structofp_statistics_policy_reply to define, as follows:
Figure 14 is that controller issues the flow statistical method flow chart of multi-part statistics strategy (deletion/suspending/resuming) request message to switch according to the preferred embodiment of the present invention, and as shown in figure 14, the method comprises the steps:
Step S1402, OF controller sends Multipart Statistics Policy(multi-part statistics strategy to OFLS) request message, this message is used for OFLS deletion/suspending/resuming statistics policy information;
Wherein, this message uses structure struct ofp_statistics_policy_request to define, and the parameter of carrying comprises the tactful ID of statistics, request command (comprise deletion, time-out, recover); Alternatively, also carry statistics vertex type (comprise flow pattern, group phenotype, measure phenotype, port type, queue type, phenotype), statistics report trigger parameter (comprise clocked flip, traffic threshold trigger), statistics point number etc.
If carry statistics point number, it is then an elongated array after ofp_statistics_policy_request message header, this elongated array comprises a statistics point number designation number quantitative statistics point, and the feature ofp_flow_stats_request(of statistics point describes stream entry features), ofp_port_stats_request(describes port diagnostic) or ofp_group_stats_request(description group table feature) etc. the existing structure of OpenFlow agreement describe.
Concrete message structure can preferred implementation shown in Figure 13.
OFLS replys Multipart Statistics Policy to OF controller and replys message.Particularly, this message uses structure structofp_statistics_policy_reply to define, and concrete message structure can preferred implementation shown in Figure 13.
Figure 15 is that switch sends the flow statistical method flow chart of asynchronous multi-part statistical report message to controller according to the preferred embodiment of the present invention, and as shown in figure 15, this flow process comprises the steps:
Step S1502, OFLS send the asynchronous multi-part statistics of Asynchronous Multipart Statistics(to OF controller) report message, this message is used for OF controller report statistics;
Wherein, this message uses structure struct ofp_statistics_report to define, and the parameter of carrying comprises the tactful ID of statistics, statistical information (comprising statistics vertex type, statistics point patterns, statistics), statistics point number etc.
It is an elongated array after struct ofp_statistics_report head, this elongated array comprises a statistical information for statistics point number designation number quantitative statistics point, and statistical information ofp_flow_stats(describes the statistical information of stream entry), ofp_port_stats(describes the statistical information of port) or the statistical information of ofp_group_stats(description group table) etc. the existing structure of Open Flow agreement describe.
Particularly, this message uses structure struct ofp_statistics_report to define, as follows:
Figure 16 sends the flow statistical method flow chart of asynchronous statistical report message according to switch according to the preferred embodiment of the present invention to controller, as shown in figure 16, this flow process comprises the steps:
Step S1602, OFLS send Asynchronous Statistics(multi-part statistics to OF controller) report message;
Wherein, this message uses structure struct ofp_async_statistics_report to define, the parameter of carrying comprises the tactful ID of statistics, statistical information (comprising statistics vertex type, statistics point patterns, statistics), statistics point number, order Command parameter value to be " report Report ", reason Reason parameter value is " normal Normal " simultaneously.
It is an elongated array after struct ofp_async_statistics_report head, this elongated array comprises a statistical information for statistics point number designation number quantitative statistics point, and statistical information ofp_flow_stats(describes the statistical information of stream entry), ofp_port_stats(describes the statistical information of port) or the statistical information of ofp_group_stats(description group table) etc. the existing structure of Open Flow agreement describe.
Particularly, this message uses structure ofp_async_statistics_report to define, as follows:
Figure 17 is that switch sends the flow chart of the flow statistical method of asynchronous statistical phenomeon message to controller according to the preferred embodiment of the present invention, and as shown in figure 17, this flow process comprises the steps:
Step S1702, when OFLS meeting some condition (as busy in CPU, main OF controller chain rupture), sends Asynchronous Statistics(multi-part statistics to OF controller) report message;
Wherein, this message uses structure struct ofp_async_statistics_report to define, the parameter of carrying comprises the tactful ID of statistics, alternatively, also carry the parameters such as statistics vertex type, statistics point patterns, statistics point number, order Command parameter to be set to " report Report ", reason REASON is set to " OFPSRR_CPU_BUSY CPU busy or the chain rupture of OFPSRR_MOFC_LINK_DOWN main OF controller " simultaneously.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. a network flow statistic report process method, is characterized in that, comprising:
The statistical report strategy reported for the treatment of network traffic statistics is sent to switch;
Receive the statistics data that described switch reports according to described statistical report strategy.
2. method according to claim 1, is characterized in that, described statistical report strategy comprise following one of at least:
The trigger parameter that statistical report strategy mark, statistics vertex type, statistics point patterns, statistics data report.
3. method according to claim 1, is characterized in that, after sending to described switch the described statistical report strategy reported for the treatment of network traffic statistics, also comprises:
Send to described switch and be used to indicate the command information processing described statistical report strategy.
4. method according to claim 3, is characterized in that, described command information comprise following one of at least:
Be used to indicate the command information suspending the described statistical report strategy of execution, the command information being used to indicate the described statistical report strategy recovering paused execution, be used to indicate the command information that described switch deletes described statistical report strategy.
5. method according to any one of claim 1 to 4, is characterized in that,
The described statistical report strategy reported for the treatment of network traffic statistics is sent in the following manner: send multi-part message to described switch to switch, wherein, include statistical report policy request message in described multi-part message, described statistical report policy request message carries described statistical report strategy; And/or,
Receive the executing state change information of described statistics data that described switch reports and/or described statistical report strategy in the following manner: receive the statistical report message from described switch, wherein, the executing state change information of described statistics data and/or described statistical report strategy is carried in described statistical report message.
6. a network flow statistic report process method, is characterized in that, comprising:
Receive the statistical report strategy reported for the treatment of network traffic statistics that controller sends;
According to described statistical report strategy, report described controller by the statistics data of network flow statistic.
7. method according to claim 6, is characterized in that, described statistical report strategy comprise following one of at least:
The trigger parameter that statistical report strategy mark, statistics vertex type, statistics point patterns, statistics data report.
8. method according to claim 6, is characterized in that, after the described statistical report strategy reported for the treatment of network traffic statistics receiving the transmission of described controller, also comprises:
What receive the transmission of described controller is used to indicate the command information processing described statistical report strategy.
9. method according to claim 8, is characterized in that, described command information comprise following one of at least:
Be used to indicate the command information suspending the described statistical report strategy of execution, the command information being used to indicate the described statistical report strategy recovering paused execution, be used to indicate the command information that described switch deletes described statistical report strategy.
10. method according to claim 6, is characterized in that, after the described statistical report strategy reported for the treatment of network traffic statistics receiving the transmission of described controller, also comprises:
To described controller report statistical report strategy execution state change information.
11., according to the method described in claim 6 to 10, is characterized in that, in the following manner to statistics data described in described controller report and/or described statistical report strategy execution state change information:
Asynchronous message is sent to described controller, wherein, described asynchronous message is asynchronous multi-part message, and described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics data and/or described statistical report strategy execution state change information; Or,
Send asynchronous information to described controller, wherein, described asynchronous message is statistical report message, and described statistical report message carries described statistics data and/or described statistical report strategy execution state change information.
12. 1 kinds of network flow statistics report processing unit, it is characterized in that, comprising:
First sending module, for sending the statistical report strategy reported for the treatment of network traffic statistics to switch;
First receiver module, for receiving the statistics data that described switch reports according to described statistical report strategy.
13. devices according to claim 12, is characterized in that, also comprise:
Second sending module, is used to indicate for sending to described switch the command information processing described statistical report strategy.
14. devices according to claim 12, is characterized in that,
Described first sending module, also for sending the described statistical report strategy reported for the treatment of network traffic statistics in the following manner to switch: send multi-part message to described switch, wherein, include statistical report policy request message in described multi-part message, described statistical report policy request message carries described statistical report strategy; And/or,
Described first receiver module, also for receiving the executing state change information of described statistics data that described switch reports and/or described statistical report strategy in the following manner: receive the statistical report message from described switch, wherein, the executing state change information of described statistics data and/or described statistical report strategy is carried in described statistical report message.
15. 1 kinds of controllers, is characterized in that, comprising: the network flow statistic according to any one of claim 12 to 14 reports processing unit.
16. 1 kinds of network flow statistics report processing unit, it is characterized in that, comprising:
Second receiver module, for receiving the statistical report strategy reported for the treatment of network traffic statistics that controller sends;
First reporting module, for according to described statistical report strategy, reports described controller by the statistics data of network flow statistic.
17. methods according to claim 16, is characterized in that, also comprise:
3rd receiver module, for receive described controller send be used to indicate the command information processing described statistical report strategy.
18. devices according to claim 16, is characterized in that, also comprise:
Second reporting module, for described controller report statistical report strategy execution state change information.
19. devices according to claim 16 or 18, is characterized in that,
Described first reporting module, also in the following manner one of at least to statistics data described in described controller report: send asynchronous message to described controller, wherein, described asynchronous message is asynchronous multi-part message, described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics data; Send asynchronous information to described controller, wherein, described asynchronous message is statistical report message, and described statistical report message carries described statistics data; And/or,
Described second reporting module, also for one of at least adding up strategy execution state change information to described in described controller report in the following manner: send asynchronous message to described controller, wherein, described asynchronous message is asynchronous multi-part message, described asynchronous multi-part message includes statistical report message, and described statistical report message carries described statistics strategy execution state change information; Send asynchronous information to described controller, wherein, include statistical report message in described asynchronous message, described statistical report message carries described statistical report strategy execution state change information.
20. 1 kinds of switches, is characterized in that, comprising: the network flow statistic according to any one of claim 16 to 19 reports processing unit.
CN201310440097.3A 2013-09-24 2013-09-24 Network flow statistic reporting processing method and device, controller and switch Pending CN104468254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310440097.3A CN104468254A (en) 2013-09-24 2013-09-24 Network flow statistic reporting processing method and device, controller and switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310440097.3A CN104468254A (en) 2013-09-24 2013-09-24 Network flow statistic reporting processing method and device, controller and switch

Publications (1)

Publication Number Publication Date
CN104468254A true CN104468254A (en) 2015-03-25

Family

ID=52913662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310440097.3A Pending CN104468254A (en) 2013-09-24 2013-09-24 Network flow statistic reporting processing method and device, controller and switch

Country Status (1)

Country Link
CN (1) CN104468254A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717683A (en) * 2015-03-26 2015-06-17 清华大学 User request processing method based on software-defined network southing interface protocol
CN105791009A (en) * 2016-03-02 2016-07-20 上海斐讯数据通信技术有限公司 Method and system for collecting user internet-surfing behavior based on SDN (Software Defined Network)
WO2016115853A1 (en) * 2015-01-23 2016-07-28 中兴通讯股份有限公司 User equipment (ue) processing method and apparatus
CN105827487A (en) * 2016-05-30 2016-08-03 上海斐讯数据通信技术有限公司 SDN network message flow statistics method, SDN network message flow processing method and SDN network system
CN106302028A (en) * 2016-09-22 2017-01-04 杭州华三通信技术有限公司 Flux monitoring method and device
CN106302216A (en) * 2015-05-20 2017-01-04 天脉聚源(北京)科技有限公司 A kind of method and system of Network Load Balance
EP3094048A4 (en) * 2014-01-10 2017-01-18 ZTE Corporation Method and device for monitoring network traffic, controller and storage medium
CN106941456A (en) * 2017-05-17 2017-07-11 华中科技大学 The load-balancing method and system of control plane in a kind of software defined network
WO2017211304A1 (en) * 2016-06-07 2017-12-14 中兴通讯股份有限公司 Software defined network-based counting method, device and system
CN107547422A (en) * 2017-05-26 2018-01-05 新华三技术有限公司 A kind of monitoring method of data flow, controller and interchanger
CN110703817A (en) * 2016-03-29 2020-01-17 华为技术有限公司 Control method, device and system for statistical flow
CN113794655A (en) * 2020-07-17 2021-12-14 北京京东尚科信息技术有限公司 Flow monitoring method and device, computer storage medium and electronic equipment

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3094048A4 (en) * 2014-01-10 2017-01-18 ZTE Corporation Method and device for monitoring network traffic, controller and storage medium
CN105871964B (en) * 2015-01-23 2020-08-07 中兴通讯股份有限公司 User Equipment (UE) processing method and device
WO2016115853A1 (en) * 2015-01-23 2016-07-28 中兴通讯股份有限公司 User equipment (ue) processing method and apparatus
US10476807B2 (en) 2015-01-23 2019-11-12 Xi'an Zhongxing New Software Co., Ltd. User equipment processing method and device
CN105871964A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 User experience (UE) processing method and device
CN104717683B (en) * 2015-03-26 2018-05-29 清华大学 A kind of user's request processing method based on software defined network southbound interface agreement
CN104717683A (en) * 2015-03-26 2015-06-17 清华大学 User request processing method based on software-defined network southing interface protocol
CN106302216A (en) * 2015-05-20 2017-01-04 天脉聚源(北京)科技有限公司 A kind of method and system of Network Load Balance
CN105791009A (en) * 2016-03-02 2016-07-20 上海斐讯数据通信技术有限公司 Method and system for collecting user internet-surfing behavior based on SDN (Software Defined Network)
US11716262B2 (en) 2016-03-29 2023-08-01 Huawei Technologies Co., Ltd. Control method, apparatus, and system for collecting traffic statistics
US11381480B2 (en) 2016-03-29 2022-07-05 Huawei Technologies Co., Ltd. Control method, apparatus, and system for collecting traffic statistics
CN110703817A (en) * 2016-03-29 2020-01-17 华为技术有限公司 Control method, device and system for statistical flow
CN110703817B (en) * 2016-03-29 2022-04-05 华为技术有限公司 Control method, device and system for statistical flow
CN105827487A (en) * 2016-05-30 2016-08-03 上海斐讯数据通信技术有限公司 SDN network message flow statistics method, SDN network message flow processing method and SDN network system
WO2017211304A1 (en) * 2016-06-07 2017-12-14 中兴通讯股份有限公司 Software defined network-based counting method, device and system
CN107483281A (en) * 2016-06-07 2017-12-15 中兴通讯股份有限公司 A kind of statistical method based on software defined network, apparatus and system
CN106302028A (en) * 2016-09-22 2017-01-04 杭州华三通信技术有限公司 Flux monitoring method and device
CN106302028B (en) * 2016-09-22 2020-01-03 新华三技术有限公司 Flow monitoring method and device
CN106941456B (en) * 2017-05-17 2019-08-30 华中科技大学 The load-balancing method and system of plane are controlled in a kind of software defined network
CN106941456A (en) * 2017-05-17 2017-07-11 华中科技大学 The load-balancing method and system of control plane in a kind of software defined network
CN107547422B (en) * 2017-05-26 2020-04-28 新华三技术有限公司 Data flow monitoring method, controller and switch
CN107547422A (en) * 2017-05-26 2018-01-05 新华三技术有限公司 A kind of monitoring method of data flow, controller and interchanger
CN113794655A (en) * 2020-07-17 2021-12-14 北京京东尚科信息技术有限公司 Flow monitoring method and device, computer storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN104468254A (en) Network flow statistic reporting processing method and device, controller and switch
Wibowo et al. Multi-domain software defined networking: research status and challenges
US20230318945A1 (en) Network Embedded Framework for Distributed Network Analytics
US9769054B2 (en) Network topology discovery method and system
Hu et al. A survey on software-defined network and openflow: From concept to implementation
CN102823205B (en) Aggregating data traffic from access domains
CN110178342A (en) The scalable application level of SDN network monitors
CN107204867A (en) A kind of information transferring method, device and system
CN103475654B (en) Network path optimization method, equipment and network system
CN108777633A (en) Support the intention type industry SDN north interface systems and exchange method of data dispatch
KR20140106235A (en) Open-flow switch and packet manageing method thereof
CN108289061B (en) Service chain topology system based on SDN
CN105530115B (en) A kind of method and device for realizing operation management maintainance function
CN113810205A (en) Method for reporting and receiving service computing power information, server and data center gateway
CN104426756A (en) Method for obtaining service node capability information and control platform
US20160241485A1 (en) Method for updating flow table
WO2014101731A1 (en) System and method for opening network capabilities, and related network elements
CN103825759A (en) Method and system for acquiring network topological information
CN104995882B (en) Message processing method and device
CN109995875A (en) Virtualization data distributes elastomeric network system
CN109168050A (en) A kind of video multicast method based on SDN
CN108833232A (en) A kind of pppoe client implementation method and pppoe client based on VPP
CN103825826A (en) Method and device for implementing dynamic routing
Said et al. Design and performance evaluation of mixed multicast architecture for internet of things environment
CN104734949A (en) Flow gauge configuration achieving method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325