Nothing Special   »   [go: up one dir, main page]

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
reporting
controller
message
strategy
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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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 traffic statistics reporting processing method and device, controller and switch
Technical Field
The invention relates to the field of communication, in particular to a network traffic statistics reporting processing method, a network traffic statistics reporting processing device, a controller and a switch.
Background
As the existing networks have exposed more and more defects and the demand for Network performance is higher and higher, researchers have to add many complex functions to the router architecture, such as Open Shortest Path First (OSPF), Border Gateway Protocol (BGP), multicast, differentiated services, traffic engineering, Network Address Translation (NAT), firewall, Multi-Protocol Label Switching (MPLS), etc. This makes switching devices such as routers more and more bulky and performance-enhancing spaces smaller and smaller.
However, in contrast to the dilemma of the network field, the computer field has achieved a growing history. Looking at the development of the computer field in detail, it is not difficult to find out that the key is that the computer field finds a simple and available hardware bottom layer (x 86 instruction set). With such a common hardware infrastructure, there has been a rapid growth in software, both applications and operating systems. Many people now advocate redesigning computer network architectures believe that: networks can replicate the success of the computer world to solve all the problems encountered by today's networks. Under the guidance of this idea, future networks will certainly be such that: the underlying data paths (switches, routers) are "dumb, simple, minimal", and define a public Application Programming Interface (API) for flow tables that is open to the outside, while the controller is used to control the entire network. Future researchers can freely call the underlying API to program on the controller, thereby realizing the innovation of the network.
Based on the above concept, a Software Defined Network (SDN) appears, fig. 1 is an Open Flow (OF) protocol application architecture diagram in the related art, and fig. 2 is a schematic diagram OF a message Flow through an Open Flow processing pipeline in the related art, as shown in fig. 1 and 2, a core technology Open Flow protocol separates a Network device control plane (including an Open Flow Controller) from a data plane (including an Open Flow Logical Switch), thereby implementing flexible control OF Network traffic, and providing a good platform for innovation OF a core Network and applications.
The Open Flow protocol is a standard for describing information used for interaction between a controller and a switch, and an interface standard of the controller and the switch. The core part of the protocol is a set of information structures for the Open Flow protocol. Fig. 3 is a schematic diagram of message processing based on an Open Flow table in the related art, as shown in fig. 3, an entry Open Flow table or a pipeline formed by cascading a plurality of Flow tables arranged is used to configure a switch forwarding path, and as shown in table 1, table 1 is an Open Flow table in the related art, and as shown in table 1, the Flow table entry is composed of the following fields such as a matching field, a counter, and an instruction set:
TABLE 1
Match Fields Priority Counters Instructions Timeouts Cookie
Wherein, the matching Fields (Match Fields) are input keywords for message matching and are used for matching a flow table entry; counters (Counters) are various statistical information for management; instruction sets (Instructions) refer to operation Instructions on messages, and include discarding, forwarding messages to a specified port, setting a field value of a header of a message, adding an encapsulation label, and the like. An Action Set (Action Set) is associated with each packet, which is passed between the multiple flow tables of the pipe and modified by instructions of the respective flow tables until the end of the pipe processing, forming a final Action Set.
Open Flow networks support interfaces, Flow table entries (Flow Entry), Group table entries (Group), measurement table entries (Meter), and Queue traffic statistics (Queue) (e.g., number of messages processed and number of bytes). Related Flow Statistics messages are defined in the OpenFlow protocol, such as Individual Flow Statistics, Aggregate Flow Statistics, Group Statistics, Meter Statistics, Queue Statistics, etc. These messages are all initiated by the controller actively to the switch in a Multipart message requesting a query. This type of polling is suitable when the controller or APP polls the controller at low frequencies. When the controller needs to collect Open Flow network topology and count network Flow data as near as possible in real time, so that the controller can adjust a Flow table path in time according to the heat of a network local node, a link or a Flow table entry and perform load balancing, if the controller is also required to query Flow statistics data of corresponding Flow table entries, group table entries, measurement table entries, interfaces and queues in a high-frequency large-scale manner, heavy pressure is exerted on the controller, because in the query process, the controller may need to use a timer for polling and need to process two messages (request and response) to complete data extraction of one statistic point.
Therefore, the way of inquiring the network traffic statistic data by the controller in the related art causes a heavy burden to the controller, and affects the network performance.
Disclosure of Invention
The invention provides a network traffic statistics reporting processing method, a device, a controller and a switch, which are used for at least solving the problems that in the related technology, the controller is heavily burdened and the network performance is influenced by the way that the controller inquires network traffic statistics data.
According to an aspect of the present invention, a method for processing network traffic statistics report is provided, which includes: sending a statistical reporting strategy for processing network flow statistical data reporting to a switch; and receiving statistical result data reported by the switch according to the statistical reporting strategy.
Preferably, the statistical reporting policy includes at least one of: and counting reporting strategy identification, counting point types, counting point characteristics and triggering parameters for reporting the counting result data.
Preferably, after sending the statistical reporting policy for processing network traffic statistical data reporting to the switch, the method further includes: and sending instruction information for instructing to process the statistical reporting strategy to the switch.
Preferably, the instruction information includes at least one of: the instruction information is used for indicating to suspend the execution of the statistical reporting strategy, the instruction information is used for indicating to resume the statistical reporting strategy which is suspended from execution, and the instruction information is used for indicating to delete the statistical reporting strategy by the switch.
Preferably, the statistical reporting policy for handling network traffic statistical data reporting is sent to the switch by: sending a multi-component message to the switch, wherein the multi-component message comprises a statistic reporting strategy request message, and the statistic reporting strategy request message carries the statistic reporting strategy; and/or receiving the statistical result data and/or the execution state change information of the statistical reporting strategy reported by the switch in the following ways: and receiving a statistical report message from the switch, wherein the statistical report message carries the statistical result data and/or the execution state change information of the statistical reporting policy.
According to another aspect of the present invention, a method for processing network traffic statistics report is provided, which includes: receiving a statistical reporting strategy sent by a controller and used for processing network flow statistical data reporting; and reporting the statistical result data of the network flow statistics to the controller according to the statistical reporting strategy.
Preferably, the statistical reporting policy includes at least one of: and counting reporting strategy identification, counting point types, counting point characteristics and triggering parameters for reporting the counting result data.
Preferably, after receiving the statistical reporting policy sent by the controller for processing network traffic statistical data reporting, the method further includes: and receiving instruction information which is sent by the controller and used for instructing the statistical reporting strategy to be processed.
Preferably, the instruction information includes at least one of: the instruction information is used for indicating to suspend the execution of the statistical reporting strategy, the instruction information is used for indicating to resume the statistical reporting strategy which is suspended from execution, and the instruction information is used for indicating to delete the statistical reporting strategy by the switch.
Preferably, after receiving the statistical reporting policy sent by the controller for processing network traffic statistical data reporting, the method further includes: and reporting the statistics report strategy execution state change information to the controller.
Preferably, the statistical result data and/or the statistical reporting policy execution state change information are reported to the controller by the following method: sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries the statistical result data and/or the statistical report policy execution state change information; or sending asynchronous information to the controller, wherein the asynchronous information is a statistical report information, and the statistical report information carries the statistical result data and/or the statistical report policy execution state change information.
According to another aspect of the present invention, a device for reporting network traffic statistics is provided, which includes: the first sending module is used for sending a statistical reporting strategy for processing network flow statistical data reporting to the switch; and the first receiving module is used for receiving the statistical result data reported by the switch according to the statistical reporting strategy.
Preferably, the apparatus further comprises: and the second sending module is used for sending instruction information for instructing to process the statistical reporting strategy to the switch.
Preferably, the first sending module is further configured to send the statistical reporting policy for processing network traffic statistical data reporting to the switch in the following manner: sending a multi-component message to the switch, wherein the multi-component message comprises a statistic reporting strategy request message, and the statistic reporting strategy request message carries the statistic reporting strategy; and/or, the first receiving module is further configured to receive the statistical result data and/or the execution state change information of the statistical reporting policy, which are reported by the switch, in the following manner: and receiving a statistical report message from the switch, wherein the statistical report message carries the statistical result data and/or the execution state change information of the statistical reporting policy.
According to still another aspect of the present invention, there is provided a controller including: any one of the above network traffic statistics reporting processing devices.
According to another aspect of the present invention, a device for reporting network traffic statistics is provided, which includes: the second receiving module is used for receiving a statistical reporting strategy which is sent by the controller and used for processing the reporting of the network flow statistical data; and the first reporting module is used for reporting the statistical result data of the network flow statistics to the controller according to the statistical reporting strategy.
Preferably, the apparatus further comprises: and the third receiving module is used for receiving instruction information which is sent by the controller and used for instructing to process the statistical reporting strategy.
Preferably, the apparatus further comprises: and the second reporting module is used for reporting the statistical reporting strategy execution state change information to the controller.
Preferably, the first reporting module is further configured to report the statistical result data to the controller by at least one of the following manners: sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries the statistical result data; sending asynchronous information to the controller, wherein the asynchronous information is a statistical report message, and the statistical report message carries the statistical result data; and/or the second reporting module is further configured to report the statistical policy execution state change information to the controller by at least one of the following manners: sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistic report message, and the statistic report message carries the statistic policy execution state change information; and sending asynchronous information to the controller, wherein the asynchronous information is a statistical report information, and the statistical report information carries the statistical report strategy execution state change information.
According to still another aspect of the present invention, there is provided a switch, including: any one of the above network traffic statistics reporting processing devices.
According to the invention, a statistical reporting strategy for processing network flow statistical data reporting is sent to the switch; and receiving the statistical result data reported by the switch according to the statistical reporting strategy, so that the problem of heavy burden on the controller caused by the fact that the controller inquires the network flow statistical data in the related technology is solved, and the effects of reducing the burden of the controller on network flow statistics and further enhancing the network performance are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a diagram of an Open Flow protocol application architecture in the related art;
FIG. 2 is a schematic diagram of a message Flow through an Open Flow processing pipeline in the related art;
fig. 3 is a schematic diagram of message processing based on an Open Flow table in the related art;
fig. 4 is a flowchart of a first network traffic statistics reporting processing method according to an embodiment of the present invention;
fig. 5 is a flowchart of a second method for reporting network traffic statistics according to an embodiment of the present invention;
fig. 6 is a block diagram of a first device for processing network traffic statistics report according to an embodiment of the present invention;
fig. 7 is a block diagram of a preferred structure of a first device for processing network traffic statistics report according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a controller according to an embodiment of the present invention;
fig. 9 is a block diagram of a second device for processing network traffic statistics report according to an embodiment of the present invention;
fig. 10 is a block diagram of a preferred structure of a second device for processing network traffic statistics report according to an embodiment of the present invention;
fig. 11 is a block diagram of a second preferred structure of a second device for processing network traffic statistics report according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a switch according to an embodiment of the present invention;
fig. 13 is a flowchart OF a network traffic statistics reporting method in which an OF controller issues a multi-component (Multipart) statistics policy (add/modify) request message to an OF switch according to a preferred embodiment OF the present invention;
fig. 14 is a flowchart of a traffic statistics reporting method in which a controller issues a multi-component statistics policy (delete/suspend/resume) request message to a switch according to a preferred embodiment of the present invention;
fig. 15 is a flow diagram of a traffic statistics reporting method in which a switch sends an asynchronous multi-component statistics report message to a controller in accordance with a preferred embodiment of the present invention;
fig. 16 is a flowchart of a traffic statistics reporting method in which a switch sends an asynchronous statistics report message to a controller according to a preferred embodiment of the present invention;
fig. 17 is a flowchart of a traffic statistics reporting method for a switch to send an asynchronous statistics event message to a controller according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a method for processing network traffic statistics report is provided, and fig. 4 is a flowchart of a first method for processing network traffic statistics report according to an embodiment of the present invention, and as shown in fig. 4, the process includes the following steps:
step S402, sending a statistical reporting strategy for processing network flow statistical data reporting to a switch;
and step S404, receiving statistical result data reported by the switch according to the statistical reporting strategy.
Through the steps, after the statistical strategy reported by the network flow statistical data is sent to the switch, the receiving switch reports the statistical result data according to the statistical reporting strategy, compared with the related art that when the controller needs the network flow statistical data, the query request needs to be sent to the switch, and then the corresponding response message needs to be processed, which causes heavy burden to the controller, aiming at the problems in the related technology, the statistical reporting strategy is sent to the switch, and then the network flow statistics is reported according to the received statistical reporting strategy, which not only solves the problems that the mode of querying the network flow statistical data by the controller in the related technology causes heavy burden to the controller and affects the network performance, and further, the effects of lightening the burden of the controller for acquiring the network flow statistical data and enhancing the network performance are achieved.
The statistical reporting policy may include at least one of the following policies: a statistical reporting policy identifier (for distinguishing each statistical reporting policy if the statistical reporting policy is multiple), a statistical point type (i.e., a statistical object used for performing statistics, for example, a flow table entry, a group table entry, a measurement table entry, an interface, or a queue, etc.), a statistical point feature (i.e., description information of the statistical object, for example, information such as a matching field of the flow table entry, a group table entry identifier ID, etc.), a trigger parameter for reporting statistical result data (i.e., a manner for reporting the statistical result data, for example, may be a timed reporting, i.e., reporting at a certain specified time point, or a periodic reporting, i.e., reporting according to a predefined period, or a certain flow threshold is preset, and reporting is triggered when the threshold is reached, etc.).
Preferably, after sending the statistical reporting policy for processing network traffic statistical data reporting to the switch, the method may further include: and sending instruction information for indicating the processing of the statistical reporting strategy to the switch. The instruction information may be a separate controller-to-switch message or may be a sub-message of a Multipart message, the latter being recommended. The instruction information may include at least one of: the instruction information is used for indicating the execution suspension of the statistical reporting strategy, the instruction information is used for indicating the resumption of the suspended execution of the statistical reporting strategy, and the instruction information is used for indicating the switch to delete the statistical reporting strategy.
Preferably, a statistical reporting strategy for processing network traffic statistical data reporting is sent to the switch; and when receiving the statistical result data reported by the switch according to the statistical reporting policy, the switch may adopt multiple processing modes, for example, the statistical reporting policy for processing the reporting of the network traffic statistical data may be sent to the switch by the following modes: sending a multi-component message to a switch, wherein the multi-component message comprises a statistic reporting strategy request message which carries a statistic reporting strategy; the statistical result data reported by the switch and/or the execution state change information of the statistical reporting strategy can also be received in the following ways: and receiving a statistical report message from the switch, wherein the statistical report message carries statistical result data and/or execution state change information of a statistical reporting strategy. In other words, a pair of Statistics Policy Request/Reply messages is added to the Multipart message of the OpenFlow protocol; the message is used for the OF controller to issue a statistical strategy to the OFLS, and the switch replies a response message.
In this embodiment, a method for processing network traffic statistics report is provided, and fig. 5 is a flowchart of a second method for processing network traffic statistics report according to an embodiment of the present invention, where as shown in fig. 5, the process includes the following steps:
step S502, receiving a statistical reporting strategy sent by a controller and used for processing the reporting of network flow statistical data;
step S504, reporting the statistical result data of the network flow statistics to the controller according to the statistical reporting strategy.
Through the steps, the statistical reporting strategy which is sent by the controller and used for processing the reporting of the network flow statistical data is received, the statistical result data of the network flow statistics is reported to the controller according to the statistical reporting strategy, and compared with the prior art that the controller needs to send a query request to the switch when the network flow statistical data is needed, and then needs to process a corresponding response message, a heavy burden is caused to the controller, aiming at the problems in the prior art, the statistical reporting strategy is sent to the switch, and then the network flow statistics is reported according to the received statistical reporting strategy, so that the problems that the mode that the controller queries the network flow statistical data in the prior art, the heavy burden is caused to the controller, the network performance is influenced are solved, and the burden that the controller obtains the network flow statistical data is lightened, the effect of enhancing network performance.
The statistical reporting policy may include at least one of the following policies: a statistical reporting policy identifier (for distinguishing each statistical reporting policy if the statistical reporting policy is multiple), a statistical point type (i.e., a statistical object used for performing statistics, for example, a flow table entry, a group table entry, a measurement table entry, an interface, or a queue, etc.), a statistical point feature (i.e., description information of the statistical object, for example, information such as a matching field of the flow table entry, a group table entry identifier ID, etc.), a trigger parameter for reporting statistical result data (i.e., a manner for reporting the statistical result data, for example, may be a timed reporting, i.e., reporting at a certain specified time point, or a periodic reporting, i.e., reporting according to a predefined period, or a reporting threshold, i.e., some reports are preset, and when the threshold is reached, the threshold is triggered to report, etc.).
Preferably, after receiving a statistical reporting policy sent by the controller for processing network traffic statistical data reporting, the method further includes: and receiving instruction information which is sent by the controller and used for instructing to process the statistical reporting strategy. The instruction information includes at least one of: the instruction information is used for indicating the execution suspension of the statistical reporting strategy, the instruction information is used for indicating the resumption of the suspended execution of the statistical reporting strategy, and the instruction information is used for indicating the switch to delete the statistical reporting strategy.
After receiving a statistical reporting strategy sent by a controller and used for processing network traffic statistical data reporting, the method further comprises the following steps: reporting the statistic report strategy execution state change information to a controller: for example, the reported statistical policy execution state change information includes at least one of the following: and carrying out suspended network traffic statistics and deleting corresponding statistical strategies. In addition, when the processor of the switch is busy or the previously interacting controller is disconnected, the state of the switch needs to be reported to the controller or the standby controller of the previously interacting controller.
When sending the statistical result data and/or the statistical reporting policy execution state change information to the controller, various manners may be adopted, for example, the statistical result data and/or the statistical reporting policy execution state change information may be reported to the controller in the following manners: for example, an asynchronous message may be sent to the controller, where the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message includes a statistics report message, and the statistics report message carries statistics result data and/or statistics report policy execution state change information; for another example, the asynchronous information may also be sent to the controller, where the asynchronous information is a statistical report message, and the statistical report message carries statistical result data and/or statistical reporting policy execution state change information.
In this embodiment, a device for reporting network traffic statistics is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a first device for processing network traffic statistics reporting according to an embodiment of the present invention, and as shown in fig. 6, the first device includes a first sending module 62 and a first receiving module 64, which will be described below.
A first sending module 62, configured to send a statistical reporting policy for processing network traffic statistical data reporting to the switch; a first receiving module 64, connected to the first sending module 62, for receiving the statistical result data reported by the switch according to the statistical reporting policy.
Fig. 7 is a block diagram of a preferred structure of a first device for processing network traffic statistics report according to an embodiment of the present invention, and as shown in fig. 7, the first device includes a second sending module 72 in addition to all modules shown in fig. 6, and the second sending module 72 is described below.
A second sending module 72, connected to the first sending module 62, configured to send instruction information for instructing to process the statistical reporting policy to the switch.
Preferably, the first sending module 62 is further configured to send a statistical reporting policy for processing network traffic statistical data reporting to the switch by: sending a multi-component message to a switch, wherein the multi-component message comprises a statistic reporting strategy request message which carries a statistic reporting strategy; and/or, the first receiving module 64 is further configured to receive statistical result data reported by the switch and/or execution state change information of the statistical reporting policy by the following means: and receiving a statistical report message from the switch, wherein the statistical report message carries statistical result data and/or execution state change information of a statistical reporting strategy.
In this embodiment, a controller is further provided, fig. 8 is a schematic structural diagram of the controller according to an embodiment of the present invention, and as shown in fig. 7, the controller 80 includes any one of the first network traffic statistics report processing device 82.
In this embodiment, a device for processing network traffic statistics report is further provided, fig. 9 is a block diagram of a second device for processing network traffic statistics report according to an embodiment of the present invention, and as shown in fig. 9, the device includes a second receiving module 92 and a first reporting module 94, which will be described below.
A second receiving module 92, configured to receive a statistical reporting policy sent by the controller and used for processing reporting of network traffic statistical data; a first reporting module 94, connected to the second receiving module 92, for reporting the statistical result data of the network traffic statistics to the controller according to the statistical reporting policy.
Fig. 10 is a block diagram of a preferred structure of a second device for processing network traffic statistics report according to an embodiment of the present invention, and as shown in fig. 10, the device includes a third receiving module 102 in addition to all modules shown in fig. 9, and the third receiving module 102 is described below.
A third receiving module 102, connected to the second receiving module 92, configured to receive instruction information sent by the controller and used for instructing to process a statistical reporting policy.
Fig. 11 is a block diagram of a second preferred structure of a second device for processing network traffic statistics report according to an embodiment of the present invention, and as shown in fig. 11, the second device includes, in addition to all modules shown in fig. 9: the second reporting module 1102, which is described below, is configured to perform the following description on the second reporting module 1102.
A second reporting module 1102, connected to the second receiving module 92, configured to report the statistics reporting policy execution state change information to the controller.
Preferably, the first reporting module 94 is configured to report the statistical result data to the controller by at least one of the following methods: sending an asynchronous message to a controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries statistical result data; sending asynchronous information to a controller, wherein the asynchronous information is a statistical report message, and the statistical report message carries statistical result data; and/or, the second reporting module 1102 is configured to report the information of the statistical policy execution state change to the controller by at least one of the following manners: sending an asynchronous message to a controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries statistical strategy execution state change information; and sending asynchronous information to the controller, wherein the asynchronous information is a statistical report information, and the statistical report information carries the statistical reporting strategy execution state change information.
In this embodiment, a switch is further provided, fig. 12 is a schematic structural diagram of the switch according to the embodiment of the present invention, and as shown in fig. 12, the switch 120 includes the second network traffic statistics report processing device 122.
Based on the above problems in the related art, for an Open Flow network, in this embodiment, a method for Open Flow network traffic statistics is provided, where the method mainly includes the following steps:
the OF controller issues a statistical strategy to the OF switch; wherein the statistical strategy may comprise at least one of: the statistical strategy ID, the statistical point type (such as flow table entry, group table entry, measurement table entry, interface or queue), the statistical point characteristics (such as match field of flow table entry, group table entry ID), and the report triggering parameters (such as timing period and report threshold) of the statistical data. It should be noted that the above statistic point feature can exactly match one statistic point, and can also be wildcarded with one statistic point set.
And the OFLS reports the statistical data of the statistical points according to the statistical strategy.
Preferably, after the OF controller issues the statistical policy to the OFLS, the OF controller may further instruct the OFLS to execute the state OF the statistical policy, for example, the OF controller may instruct the OFLS to suspend executing the specified statistical policy; the OF controller may also instruct the OFLS to resume the suspended specified statistical policy after instructing the OFLS to suspend executing the specified statistical policy; the OF controller can also notify the OFLS to delete the assigned statistical strategy issued by the OFLS.
It should be noted that the OFLS notifies the controller of an event (such as a pause or a resume) of a change in the execution state of the statistical policy in some specific cases; specifically, when the CPU OF the OFLS is busy or the main OF controller is broken, the OFLS needs to notify the corresponding controller. When the OFLS replies to the statistical policy of resume execution suspension, the OFLS needs to notify the corresponding controller.
When the OF controller issues a statistical Policy to the OF switch, a pair OF Statistics Policy Request/Reply messages may be added in a Multipart message OF an Open Flow protocol; the message is used for the OF controller to issue a statistical strategy to the OFLS, and the switch replies a response message.
When the OFLS reports the statistical data of the statistic point according to the statistical policy, a Multipart message mechanism, that is, an asynchronous Multipart message, may be newly added to the asynchronous message of the Open Flow protocol, and a sub-message StatisticsReport (statistical report) message is added to the asynchronous Multipart message. The message is used for reporting the statistical data to the OF controller by the OFLS or aiming at the execution state OF the statistical strategy issued by the OF controller.
Optionally, a Statistics Report message is directly added to the asynchronous message of the OpenFlow protocol for executing the asynchronous Multipart Report message.
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 13 is a flowchart OF a network traffic statistical method in which an OF controller issues a multi-component (Multipart) statistical policy (add/modify) request message to an OF switch, as shown in fig. 13, the method includes the following steps:
step S1302, the OF controller sends a Multipart Statistics Policy request message to the OFLS, wherein the message is used for issuing Statistics Policy information to the OFLS;
the message may be defined by using a structure of p _ statistics _ policy _ request, and as shown below, the carried parameters may include a statistical policy ID, a statistical point type (including a flow, a group table, a measurement table, a port, a queue, and a flow table), a reporting trigger parameter of statistical data (including timing trigger and flow threshold trigger), a request command (including addition or modification), a number of statistical points, and the like.
The ofp _ statistics _ policy _ request message header is followed by a variable length array containing a specified number of statistics points, and the characteristics of the statistics points are described by the existing structure of the Open Flow protocol, such as ofp _ Flow _ states _ request (describing Flow entry characteristics), ofp _ port _ states _ request (describing port characteristics), or ofp _ group _ states _ request (describing group table characteristics).
In step S1304, the OFLS replies a Multipart Statistics Policy reply message to the OF controller, where the message has no special semantics, only indicates a confirmation request message, stores and starts to support the issued statistical Policy, and if the OFLS determines that the statistical Policy information has an Error (for example, repeatedly adds a statistical Policy with the same ID), replies an Error message, and informs the OF controller OF the Error message carrying a corresponding Error type (for example, a newly added Error type indicating the statistical Policy) and an Error code. Specifically, the message is defined using the structure structofp _ statistics _ policy _ reply, as follows:
fig. 14 is a flowchart of a traffic statistic method for a controller to issue a multi-component statistic policy (delete/pause/resume) request message to a switch according to a preferred embodiment of the present invention, as shown in fig. 14, the method includes the following steps:
step S1402, the OF controller sends a Multipart Statistics Policy request message to the OFLS, where the message is used to delete/suspend/resume Statistics Policy information to the OFLS;
wherein, the message is defined by using a structure of p _ statistics _ policy _ request, and the carried parameters comprise a statistical policy ID and a request command (comprising deletion, pause and recovery); optionally, the system also carries statistical point types (including flow type, group table type, measurement table type, port type, queue type, table type), reporting trigger parameters of statistical data (including timing trigger, flow threshold trigger), statistical point number, and the like.
If the number of the statistics points is carried, the header of the ofp _ statistics _ policy _ request message is followed by a variable length array, the variable length array includes a specified number of statistics points, and the characteristics of the statistics points are described by the existing structure of the OpenFlow protocol, such as ofp _ flow _ states _ request (describing flow entry characteristics), ofp _ port _ states _ request (describing port characteristics), or ofp _ group _ states _ request (describing group table characteristics).
The detailed message structure can be seen in the preferred embodiment shown in fig. 13.
The OFLS replies a Multipart Statistics Policy reply message to the OF controller. Specifically, the message is defined by using the structure _ statistics _ policy _ reply, and the specific message structure can be referred to the preferred embodiment shown in fig. 13.
Fig. 15 is a flow chart of a traffic statistic method for a switch to send an asynchronous multi-component statistics report message to a controller according to the preferred embodiment of the present invention, as shown in fig. 15, the flow chart comprises the following steps:
step S1502, OFLS sends Asynchronous Multipart Statistics report message to OF controller, the message is used for reporting statistic result to OF controller;
the message is defined by using a structure struct of p _ statistics _ report, and the carried parameters include a statistical strategy ID, statistical information (including statistical point types, statistical point characteristics and statistical data), statistical point number and the like.
The struct ofp _ statistics _ report header is followed by a variable length array containing statistical information of a specified number of statistical points, and the statistical information is described by an existing structure of the Open Flow protocol, such as ofp _ Flow _ stops (statistical information describing Flow entries), ofp _ port _ stops (statistical information describing ports), or ofp _ group _ stops (statistical information describing a group table).
Specifically, the message is defined using the structure struct of p _ statistics _ report, as follows:
fig. 16 is a flowchart of a traffic statistics method in which a switch sends an asynchronous statistics report message to a controller according to a preferred embodiment of the present invention, as shown in fig. 16, the flowchart includes the steps of:
step S1602, the OFLS sends an Asyncronous Statistics report message to the OF controller;
the message is defined by using a structure struct of p _ async _ statistics _ Report, and the carried parameters include a statistical strategy ID, statistical information (including statistical point types, statistical point characteristics and statistical data) and a statistical point number, and the Command parameter is simultaneously commanded to take a value of Report, and the Reason parameter is considered to take a value of Normal.
The struct ofp _ async _ statistics _ report header is followed by a variable length array containing statistics of a specified number of statistics points, which is described by an existing structure of the Open Flow protocol, such as ofp _ Flow _ stops (statistics information describing Flow entries), ofp _ port _ stops (statistics information describing ports), or ofp _ group _ stops (statistics information describing group tables).
In particular, the message is defined using the structure ofp _ async _ statistics _ report, as follows:
fig. 17 is a flowchart of a traffic counting method in which a switch transmits an asynchronous statistical event message to a controller according to a preferred embodiment of the present invention, as shown in fig. 17, the flowchart includes the steps of:
step S1702, when certain conditions (such as CPU busy and main OF controller chain breakage) are met on the OFLS, sending an Asynchronous Statistics report message to the OF controller;
the message is defined by using a structure struct OF p _ async _ statistics _ Report, the carried parameters include a statistical strategy ID, optionally, parameters such as a statistical point type, a statistical point feature, a statistical point number and the like are also carried, and meanwhile, the Command parameter is set to Report, and the REASON reaSON is set to 'OFPSRR _ CPU _ BUSY CPU BUSY or OFPSRR _ MOFC _ LINK _ DOWN main OF controller broken LINK'.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (20)

1. A network flow statistics reporting processing method is characterized by comprising the following steps:
sending a statistical reporting strategy for processing network flow statistical data reporting to a switch;
and receiving statistical result data reported by the switch according to the statistical reporting strategy.
2. The method of claim 1, wherein the statistical reporting policy comprises at least one of:
and counting reporting strategy identification, counting point types, counting point characteristics and triggering parameters for reporting the counting result data.
3. The method of claim 1, after sending the statistical reporting policy for handling network traffic statistical data reporting to the switch, further comprising:
and sending instruction information for instructing to process the statistical reporting strategy to the switch.
4. The method of claim 3, wherein the instruction information comprises at least one of:
the instruction information is used for indicating to suspend the execution of the statistical reporting strategy, the instruction information is used for indicating to resume the statistical reporting strategy which is suspended from execution, and the instruction information is used for indicating to delete the statistical reporting strategy by the switch.
5. The method according to any one of claims 1 to 4,
sending the statistical reporting strategy for processing network traffic statistical data reporting to a switch by the following method: sending a multi-component message to the switch, wherein the multi-component message comprises a statistic reporting strategy request message, and the statistic reporting strategy request message carries the statistic reporting strategy; and/or the presence of a gas in the gas,
receiving the statistical result data and/or the execution state change information of the statistical reporting strategy reported by the switch in the following modes: and receiving a statistical report message from the switch, wherein the statistical report message carries the statistical result data and/or the execution state change information of the statistical reporting policy.
6. A network flow statistics reporting processing method is characterized by comprising the following steps:
receiving a statistical reporting strategy sent by a controller and used for processing network flow statistical data reporting;
and reporting the statistical result data of the network flow statistics to the controller according to the statistical reporting strategy.
7. The method of claim 6, wherein the statistical reporting policy comprises at least one of:
and counting reporting strategy identification, counting point types, counting point characteristics and triggering parameters for reporting the counting result data.
8. The method of claim 6, further comprising, after receiving the statistical reporting policy sent by the controller for handling network traffic statistical data reporting, the method further comprising:
and receiving instruction information which is sent by the controller and used for instructing the statistical reporting strategy to be processed.
9. The method of claim 8, wherein the instruction information comprises at least one of:
the instruction information is used for indicating to suspend the execution of the statistical reporting strategy, the instruction information is used for indicating to resume the statistical reporting strategy which is suspended from execution, and the instruction information is used for indicating to delete the statistical reporting strategy by the switch.
10. The method of claim 6, further comprising, after receiving the statistical reporting policy sent by the controller for handling network traffic statistical data reporting, the method further comprising:
and reporting the statistics report strategy execution state change information to the controller.
11. The method according to claims 6 to 10, wherein the statistical result data and/or the statistical reporting policy execution state change information are reported to the controller by:
sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries the statistical result data and/or the statistical report policy execution state change information; or,
and sending asynchronous information to the controller, wherein the asynchronous information is a statistical report information, and the statistical report information carries the statistical result data and/or the statistical report policy execution state change information.
12. A device for reporting network traffic statistics, comprising:
the first sending module is used for sending a statistical reporting strategy for processing network flow statistical data reporting to the switch;
and the first receiving module is used for receiving the statistical result data reported by the switch according to the statistical reporting strategy.
13. The apparatus of claim 12, further comprising:
and the second sending module is used for sending instruction information for instructing to process the statistical reporting strategy to the switch.
14. The apparatus of claim 12,
the first sending module is further configured to send the statistical reporting policy for processing network traffic statistical data reporting to the switch in the following manner: sending a multi-component message to the switch, wherein the multi-component message comprises a statistic reporting strategy request message, and the statistic reporting strategy request message carries the statistic reporting strategy; and/or the presence of a gas in the gas,
the first receiving module is further configured to receive the statistical result data and/or the execution state change information of the statistical reporting policy, which are reported by the switch, in the following manner: and receiving a statistical report message from the switch, wherein the statistical report message carries the statistical result data and/or the execution state change information of the statistical reporting policy.
15. A controller, comprising: the device for processing statistical report of network traffic according to any of claims 12 to 14.
16. A device for reporting network traffic statistics, comprising:
the second receiving module is used for receiving a statistical reporting strategy which is sent by the controller and used for processing the reporting of the network flow statistical data;
and the first reporting module is used for reporting the statistical result data of the network flow statistics to the controller according to the statistical reporting strategy.
17. The method of claim 16, further comprising:
and the third receiving module is used for receiving instruction information which is sent by the controller and used for instructing to process the statistical reporting strategy.
18. The apparatus of claim 16, further comprising:
and the second reporting module is used for reporting the statistical reporting strategy execution state change information to the controller.
19. The apparatus of claim 16 or 18,
the first reporting module is further configured to report the statistical result data to the controller by at least one of the following manners: sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistical report message, and the statistical report message carries the statistical result data; sending asynchronous information to the controller, wherein the asynchronous information is a statistical report message, and the statistical report message carries the statistical result data; and/or the presence of a gas in the gas,
the second reporting module is further configured to report the statistical policy execution state change information to the controller by at least one of the following manners: sending an asynchronous message to the controller, wherein the asynchronous message is an asynchronous multi-component message, the asynchronous multi-component message comprises a statistic report message, and the statistic report message carries the statistic policy execution state change information; and sending asynchronous information to the controller, wherein the asynchronous information comprises a statistic report message, and the statistic report message carries the statistic report strategy execution state change information.
20. A switch, comprising: the device for processing statistical reporting of network traffic according to any one of claims 16 to 19.
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
US9948553B2 (en) System and method for virtual network-based distributed multi-domain routing control
EP2652923B1 (en) Communication path control system, path control device, communication path control method, and path control program
CA2882535C (en) Control device discovery in networks having separate control and forwarding devices
EP3175582B1 (en) Automated flow devolvement in an aggregate flow environment
WO2013115177A1 (en) Network system and topology management method
US8693375B2 (en) Automated multiple-instance spanning tree reconfiguration
JP2015503274A (en) System and method for mitigating congestion in a fat tree topology using dynamic allocation of virtual lanes
AU2014414703A1 (en) Data forwarding method, device and system in software-defined networking
EP2661025A1 (en) Information system, control device, communication method and program
KR20140106235A (en) Open-flow switch and packet manageing method thereof
CN114374647B (en) Planning method and device for time-sensitive service flow and route combined scheduling
CN103370911A (en) Flow communication system
CA2959511C (en) Network service aware routers, and applications thereof
US20160241485A1 (en) Method for updating flow table
JP6637196B2 (en) Method and network system for transferring packet flow group in network
CN107995121B (en) Method for counting flow in software defined network based on wildcard
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
WO2023015644A1 (en) Planning method and system architecture for scheduling of chained service flow
JP2012147104A (en) Network node
EP3242443B1 (en) Path continuity determination in an aggregate flow environment
WO2017121471A1 (en) Dynamic forwarding rules in sdn
US9596129B2 (en) Communication system, control apparatus, communication apparatus, information-relaying method, and program
WO2014126094A1 (en) Communication system, communication method, control device, and control device control method and program
KR101610031B1 (en) Method for controlling openflow switch embedded controller in software defined network and apparatus thereof

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