CN105264944B - Statistical information report method and device - Google Patents
Statistical information report method and device Download PDFInfo
- Publication number
- CN105264944B CN105264944B CN201480000233.XA CN201480000233A CN105264944B CN 105264944 B CN105264944 B CN 105264944B CN 201480000233 A CN201480000233 A CN 201480000233A CN 105264944 B CN105264944 B CN 105264944B
- Authority
- CN
- China
- Prior art keywords
- statistics
- statistics task
- task
- request message
- processing request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/10—Scheduling measurement reports ; Arrangements for measurement reports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of statistical information report method and devices, comprising: receives controller and sends the statistics task processing request message for carrying statistics task;Statistics task is obtained from statistics task processing request message;When the content of the action type field carried in statistics task processing request message is creates statistics task, the statistics task is saved in statistics task list, wherein, the statistics task includes: mark, dispatching cycle and the objects of statistics of the statistics task;Obtain overdue statistics task dispatching cycle in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list;The statistical information of the objects of statistics of the statistics task obtained to the controller report according to the statistics task request message.Thus, it is possible to make to exchange function periodically to the statistical information of controller report objects of statistics, it is no longer necessary to which controller is repeated cyclically transmission statistics request message.
Description
Technical field
The present invention relates to mobile communication field more particularly to a kind of statistical information report methods and device.
Background technique
In software defined network (Software Defined Netwoking, SDN), controller obtains the whole network in real time
Network state information is the basis for managing network, and controller is realizing multipath forwarding, load balancing, service quality (Quality
Of Service, QoS) etc. application when required the real-time network information based on.In order to meet the needs of different application,
It needs to obtain interchanger upper port, queue, flow table, the statistical information of group table and Meter table in real time on controller.
In the prior art, controller is when realizing different application demand, it is often necessary to be repeated cyclically transmission statistics request
Multipart message obtains the real-time network information, and it is logical that these multipart message for repeating to send can largely occupy control
The bandwidth in road, to increase the overhead of controller.
Summary of the invention
The embodiment of the invention provides a kind of statistical information report method and devices, can enable interchanger periodically to control
Device processed reports the statistical information of objects of statistics, it is no longer necessary to which controller is repeated cyclically transmission statistics request message.
In a first aspect, a kind of statistical information report method is provided, this method comprises:
It receives controller and sends the statistics task processing request message for carrying statistics task;
Statistics task is obtained from statistics task processing request message;
When the content of the action type field carried in statistics task processing request message is creates statistics task,
The statistics task is saved in statistics task list, wherein the statistics task include: the statistics task mark,
Dispatching cycle and objects of statistics;
It obtains and is adjusted in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list
Spend period overdue statistics task;
The objects of statistics of the statistics task obtained to the controller report according to the statistics task request message
Statistical information.
With reference to first aspect, in the first implementation of first aspect, the method also includes: when the statistics is appointed
When the content of the action type field carried in business processing request message is modifies statistics task, the statistics task includes: institute
The mark and modification information for stating statistics task search system identical with the mark of the statistics task in the statistics task list
Meter task modifies the statistics task according to the modification information.
With reference to first aspect, in second of implementation of first aspect, the method also includes: when the statistics is appointed
When the content of the action type field carried in business processing request message is deletes statistics task, the statistics task includes: institute
The mark for stating statistics task is searched statistics task identical with the mark of the statistics task in the statistics task list, is deleted
Except the statistics task.
With reference to first aspect, in the third implementation of first aspect, institute in the monitoring statistics task list
The dispatching cycle for stating statistics task, obtain that dispatching cycle in the statistics task list, overdue statistics task included:
The timer for monitoring statistics task described in the statistics task list is obtained and is dispatched in the statistics task list
Period overdue statistics task.
The third implementation with reference to first aspect, it is described to institute in four kinds of the ground of first aspect implementation
State the objects of statistics for the statistics task that controller report is obtained according to the statistics task request message statistical information it
Afterwards, the method also includes:
Resetting reports the timer of the statistics task of end.
Any implementation with reference to first aspect or in above-mentioned four kinds of implementations of first aspect, in first aspect
In 5th kind of implementation, when including multiple statistics tasks in statistics task processing request message, the statistics task
Handling request message is the request message by using the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
It is replied message to the controller report by using the OpenFlow protocol definition of TLV format according to the system
Count the statistical information of the objects of statistics for the statistics task that task requests message obtains.
Second aspect, provides a kind of statistical information reporting device, and described device includes: receiving unit, acquiring unit, guarantor
Memory cell, monitoring unit and reporting unit;
The receiving unit, the statistics task that carrying statistics task is sent for receiving controller handle request message;
The acquiring unit, for obtaining system from the received statistics task processing request message of the receiving unit
Meter task;
The storage unit, for the content when the action type field carried in statistics task processing request message
When to create statistics task, the statistics task that the acquiring unit is obtained is saved in statistics task list, wherein institute
State the mark, dispatching cycle and objects of statistics that statistics task includes: the statistics task;
The monitoring unit, the statistics task saved for monitoring storage unit described in the statistics task list
Dispatching cycle, obtain overdue statistics task dispatching cycle in the statistics task list;
The reporting unit, Xiang Suoshu controller report disappear according to the received statistics task request of the receiving unit
Cease the statistical information of the objects of statistics of the statistics task obtained.
In conjunction with second aspect, in the first implementation of second aspect, described device further include: modification unit is used for
When the content of the action type field carried in statistics task processing request message is modifies statistics task, the statistics
Task includes: the mark and modification information of the statistics task, search in the statistics task list with the statistics task
Identical statistics task is identified, the statistics task is modified according to the modification information.
In conjunction with second aspect, in second of implementation of second aspect, described device further include: delete unit, use
When handling the content of the action type field carried in request message when the statistics task to delete statistics task, the system
Meter task includes: the mark of the statistics task, is searched identical as the mark of the statistics task in the statistics task list
Statistics task, delete the statistics task.
In conjunction with second aspect, in the third implementation of second aspect, the monitoring unit is specifically used for: monitoring institute
The timer for stating statistics task described in statistics task list obtains overdue statistics dispatching cycle in the statistics task list
Task.
In conjunction with the third implementation of second aspect, in the 4th kind of implementation of second aspect, described device is also
It include: reset cell, for resetting the timer for reporting the statistics task of end.
In conjunction with any implementation in above-mentioned four kinds of implementations of second aspect or second aspect, in second aspect
In 5th kind of implementation, when including multiple statistics tasks in statistics task processing request message, the statistics task
Handling request message is the request message by using the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
It is replied message to the controller report by using the OpenFlow protocol definition of TLV format according to the system
Count the statistical information of the objects of statistics for the statistics task that task requests message obtains.
The third aspect, provides a kind of statistical information reporting device, and described device includes:
Network interface;
Processor;
Memory;
The application program of physical store in the memory, the application program include can be used for making the processor and
The instruction of described device execution following procedure:
It receives controller and sends the statistics task processing request message for carrying statistics task;
Statistics task is obtained from statistics task processing request message;
When the content of the action type field carried in statistics task processing request message is creates statistics task,
The statistics task is saved in statistics task list, wherein the statistics task include: the statistics task mark,
Dispatching cycle and objects of statistics;
It obtains and is adjusted in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list
Spend period overdue statistics task;
The objects of statistics of the statistics task obtained to the controller report according to the statistics task request message
Statistical information.
In conjunction with the third aspect, in the first implementation of the third aspect, the application program further includes that can be used for making
The processor and described device execute the instruction of following procedure:
When the content of the action type field carried in statistics task processing request message is modifies statistics task,
The statistics task includes: the mark and modification information of the statistics task, search in the statistics task list with the system
The identical statistics task of the mark of meter task modifies the statistics task according to the modification information.
In conjunction with the third aspect, in second of implementation of the third aspect, the application program further includes that can be used for making
The processor and described device execute the instruction of following procedure:
When the content of the action type field carried in statistics task processing request message is deletes statistics task,
The statistics task includes: the mark of the statistics task, searches the mark in the statistics task list with the statistics task
Know identical statistics task, deletes the statistics task.
In conjunction with the third aspect, in the third implementation of the third aspect, the application program further includes that can be used for making
The processor and described device execute the specific instruction of following procedure:
The timer for monitoring statistics task described in the statistics task list is obtained and is dispatched in the statistics task list
Period overdue statistics task.
It is described to apply journey in the 4th kind of implementation of the third aspect in conjunction with the third implementation of the third aspect
Sequence further includes that can be used for that the processor and described device is made to execute the specific instruction of following procedure:
Resetting reports the timer of the statistics task of end.
In conjunction with any implementation in above-mentioned four kinds of implementations of the third aspect or the third aspect, in the third aspect
In 5th kind of implementation, when including multiple statistics tasks in statistics task processing request message, the statistics task
Handling request message is the request message by using the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
It is replied message to the controller report by using the OpenFlow protocol definition of TLV format according to the system
Count the statistical information of the objects of statistics for the statistics task that task requests message obtains.
Statistical information report method and device provided in an embodiment of the present invention, can enable interchanger periodically to controller
Report the statistical information of objects of statistics, it is no longer necessary to which controller is repeated cyclically transmission statistics request message, thus effectively save
The bandwidth of control channel, also can be reduced the overhead of controller.
Detailed description of the invention
Fig. 1 is SDN network structural schematic diagram;
Fig. 2 is the statistical information report method flow chart that the embodiment of the present invention one provides;
Fig. 3 interchanger internal work process schematic diagram provided by the invention;
Fig. 4 is statistical information report method flow chart provided by Embodiment 2 of the present invention;
Fig. 5 is the information exchange figure for the statistical information report method that the embodiment of the present invention three provides;
Fig. 6 is the statistical information reporting device schematic diagram that the embodiment of the present invention four provides;
Fig. 7 is the statistical information reporting device schematic diagram that the embodiment of the present invention five provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Statistical information report method provided in an embodiment of the present invention is applied to the statistical information in SDN network shown in FIG. 1
In reporting system, the core concept of SDN network is exactly that the data packet originally completely by switch/router control is forwarded over
Journey is converted into the self-contained process being respectively completed by interchanger and controller.After conversion, controller determines that all data packets exist
Transmission path in network, exchange opportunity is in one flow table different from forwarding table of local maintenance, if the data packet to be forwarded
There are respective items in flow table, then directly carries out fast-forwarding;If not having this in flow table, data packet would be sent to controller
The confirmation for carrying out transmission path, is forwarded further according to result is issued.
In Fig. 1, controller and group of switches are at statistical information reporting system, and controller and interchanger are connected by signaling
It connects.Specifically, according to specific requirements, the statistics task processing request by sending carrying statistics task to interchanger disappears controller
Breath, can create accordingly on switches, modifies or delete statistics task, so that triggering interchanger periodically reports statistics task
Objects of statistics statistical information, wherein objects of statistics includes: port, queue, flow table, group table or Meter table etc..Citing
For, the statistical information of port can be specially the rate of port send and receive packets, and controller no longer needs to be repeated cyclically transmission phase
Same statistics task handles request message.It is directed to the statistical information of an objects of statistics as a result, controller need to only send primary system
Meter task handles request message, no longer needs to periodicity sending statistics task processing request message, the statistical information in control channel
Quantity reduces half, and the bandwidth of the effectively save control channel of energy also can be reduced the overhead of controller;And due to scheduling
Period would not influence the accuracy of statistical information again, improve system in exchange generator terminal maintenance, the Message Time Delay of controller channel
Count the accuracy of information.
Fig. 2 is the statistical information report method flow chart that the embodiment of the present invention one provides.The method is with the exchange in Fig. 1
Machine is executing subject, for example, the method specifically includes:
S210 receives controller and sends the statistics task processing request message for carrying statistics task.
Optionally, the statistics task processing request message is customized request message, wherein the customized request
Message format is as follows:
Wherein, field scheduler_id is the mark of statistics task, i.e. scheduler_id can be one with unique identification
Statistics task;Field timer be scheduler_id mark statistics task dispatching cycle, unit can with but be not limited to
Ms, specifically, interchanger is according to the dispatching cycle of statistics task, to the statistics of the objects of statistics of the controller report statistics task
Information, for example, the content of the field timer of a certain statistics task be 500ms, then interchanger every 500ms (this when
Between be referred to as statistics task time-out or expire the dispatching cycle of statistics task), send above-mentioned statistics task to controller
Objects of statistics statistical information;Field command is the action type of the statistics task of scheduler_id mark, the field
Content can with but be not limited to 0,1 or 2, respectively indicate creation, modification and delete operation, for example, at statistics task
The content of the field carried in reason request message is 0, is expressed as the action type of the statistics task as creation statistics task;Word
Section type is the objects of statistics of the statistics task of scheduler_id mark, the content of the field can with but be not limited to 0,1,2,
3 or 4, the objects of statistics for respectively indicating above-mentioned statistics task is flow table, group table, Meter table, port or queue, when statistics is appointed
When the objects of statistics of business is port, queue, group table or Meter table, the content of specific field request_id is also needed, because handing over
Change planes it is upper usually have multiple ports, queue, group table or Meter table, be assured that by the content of field request_id
Which port what is specifically counted is, table or meter table are organized in queue, it can determines a specific objects of statistics, citing comes
It says, works as type=3, when request_id=2, then it represents that interchanger needs to inquire the statistical information of port 2;When statistics task
When objects of statistics is flow table, field request_id is no longer valid, and can directly specify its content is 0, but needs while specifying
The content of field table_id, out_port, out_group, cookie, cookie_mask and match, namely need specified
Complete match information just can determine that a specific objects of statistics.
Specifically, controller is specified in customized request message after the content of each field, which is sent
To interchanger.
S220 obtains statistics task from statistics task processing request message.
Interchanger internal work process schematic diagram shown in Figure 3.In Fig. 3, interchanger is receiving controller transmission
After the statistics task processing request message for carrying statistics task, the mark of statistics task in request message is handled according to statistics task
Know, obtain the action type of the statistics task, dispatching cycle and objects of statistics, is i.e. acquisition statistics task, wherein objects of statistics is
One specific objects of statistics, is exemplified as, and when objects of statistics is port, queue, group table or Meter table, needs to obtain simultaneously
The content of field type and request_id field;When objects of statistics is flow table, need to obtain field type, table_ simultaneously
The content of id, out_port, out_group, cookie, cookie_mask and match.
S230, when the content of the action type field carried in statistics task processing request message is appointed for creation statistics
When business, the statistics task is saved in statistics task list, wherein the statistics task includes: the statistics task
Mark, dispatching cycle and objects of statistics.
For example, it when the content of the action type field command of the statistics task got is 0, that is, needs to create
When building statistics task, the mark of the statistics task, dispatching cycle and objects of statistics are added in statistics task list, interchanger
It is monitored by the dispatching cycle to each statistics task in the statistics task list, to realize periodically to controller report
The statistical information of each statistics task reports in statistics task list.
Optionally, when the content of the action type field carried in statistics task processing request message is modification statistics
When task, the statistics task includes: the mark and modification information of the statistics task, search in the statistics task list with
The identical statistics task of the mark of the statistics task modifies the statistics task according to the modification information.
Optionally, when the content of the action type field carried in statistics task processing request message counts to delete
When task, the statistics task includes: the mark of the statistics task, searches in the statistics task list and appoints with the statistics
The identical statistics task of the mark of business, deletes the statistics task.
S240 monitors the dispatching cycle of statistics task described in the statistics task list, obtains the statistics task column
Overdue statistics task dispatching cycle in table.
Specifically, the timer for monitoring statistics task described in the statistics task list obtains the statistics task column
Overdue statistics task dispatching cycle in table.
In Fig. 3, interchanger is scheduled pipe to each statistics task in statistics task list by statistics task scheduler module
Reason, for example, following statistics task: scheduler_id=3, timer=500ms is saved in statistics task list,
Type=3, request_id=2, the i.e. statistics task indicate that every 500ms reports the statistical information of a port 2, and to be somebody's turn to do
Statistics task sets a timer and starts determining for the statistics task when the statistics task is saved to statistics task list
When device, when the timer timing be 500ms when, indicate that the dispatching cycle of above-mentioned statistics task expires, statistics task scheduler module
The statistics task is obtained from statistics task list.
It should be noted that interchanger other can also can monitor the equipment in time limit by hardware trigger etc. to monitor system
The dispatching cycle of meter task.
The statistics for the statistics task that S250, Xiang Suoshu controller report are obtained according to the statistics task request message
The statistical information of object.
After getting overdue statistics task dispatching cycle, optionally, interchanger can be by using customized time
Multiple statistical information (be exemplified as, the rate of send and receive packets) of the message to the controller report port 2.It should be noted that when system
When saving multiple statistics tasks in meter task list, after the statistical information for completing an objects of statistics reports, statistics is appointed
The timer of the statistics task of end is reported described in business scheduler module resetting, i.e., again to statistics task progress timing, and after
The dispatching cycle of other statistics tasks in continuous monitoring statistics task list.
It should be noted that in other embodiments of the invention, it can also be first according to the statistics task processing received
The content of the action type field carried in request message judges the action type of statistics task, when for creation statistics task,
The complete statistics task is obtained, and the mark of the statistics task, dispatching cycle and objects of statistics are added to statistics task column
In table, by monitoring the dispatching cycle of statistics task, periodically to the statistical information of controller report objects of statistics;When for modification
When statistics task, the mark and modification information of the statistics task are obtained, searches the mark in statistics task list with the statistics task
Know identical statistics task, above-mentioned statistics task is modified according to above-mentioned modification information;When to delete statistics task, the system is obtained
The mark of meter task searches statistics task identical with the mark of the statistics task in statistics task list, deletes the statistics and appoints
Business.
Fig. 4 is statistical information report method flow chart provided by Embodiment 2 of the present invention.As shown in figure 4, the method has
Body includes:
S410 receives controller and sends the statistics task processing request message for carrying multiple statistics tasks.
Optionally, the statistics task processing request message is by using Type Length Value (referred to as: TLV)
The request message of the OpenFlow protocol definition of format.
It should be noted that equally including in the request message format of the OpenFlow protocol definition based on TLV format
Each field in customized request message provided in S210.But asking due to the OpenFlow protocol definition of TLV format
Multiple TLV fields can be carried by asking in message, therefore can realize that the statistics that multiple objects of statistics are carried in request message is appointed
Business.
S420 obtains multiple statistics tasks from statistics task processing request message.
It should be noted that interchanger needs when carrying multiple statistics tasks in above-mentioned statistics task processing request message
Each statistics task is successively obtained from statistics task processing request message according to the mark of each statistics task.
S430, when the content of the action type field carried in statistics task processing request message is appointed for creation statistics
When business, the statistics task is saved in statistics task list, wherein the statistics task includes: the statistics task
Mark, dispatching cycle and objects of statistics.
For example, interchanger is after getting multiple statistics tasks, and judges the action type word of each statistics task
When the content of section command is 0, that is, when needing to create statistics task, the multiple statistics tasks that will acquire all are saved in
In statistics task list.
S440 monitors the timer of each statistics task in the statistics task list, obtains in the statistics task list
Dispatching cycle overdue statistics task.
According to the method in S420, when multiple statistics tasks are all saved in statistics task list, start each statistics task
Corresponding timer, and monitor the timer of each statistics task in statistics task list, it obtains and dispatches week in statistics task list
Phase overdue statistics task.
The statistics for the statistics task that S450, Xiang Suoshu controller report are obtained according to the statistics task request message
The statistical information of object reports the timer of the statistics task of end described in resetting.
Optionally, replying message to the controller report root by using the OpenFlow protocol definition of TLV format
According to the statistical information of the objects of statistics of the statistics task of statistics task request message acquisition.
Specifically, after completing the statistical information of objects of statistics of a statistics task and reporting, statistics task dispatches mould
The timer that the statistics task of end is reported described in block resetting, i.e., carry out timing to the statistics task again, and continues monitoring system
Count the dispatching cycle of other statistics tasks in task list.
Relative to the request message of fixed format, TLV format has better flexibility and scalability, while one is asked
Seek the TLV field that multiple objects of statistics can be carried in message, specifically, the objects of statistics of statistics task can for port, queue,
Any multiple combinations in flow table, group table or Meter table, such a request message can handle multiple specific systems simultaneously
Meter task.
Fig. 5 is the information exchange figure for the statistical information report method that the embodiment of the present invention three provides.As shown in figure 5, this hair
Bright embodiment specifically comprises the following steps:
S510, controller send request message to interchanger, request the corresponding statistics task of switch processes;
The request message is added in statistics task list for S520, interchanger;
S530, interchanger periodic scheduling execute the statistics task specified in statistics task list by request message;
S540, interchanger use reply message to controller and reply the corresponding statistical information of above-mentioned statistics task.
Therefore, statistical information report method provided in an embodiment of the present invention, for a kind of statistical information, controller only needs to send out
Statistics task processing request message is sent, no longer needs to periodicity sending statistics task processing request message, in control channel
Statistical information quantity reduces half, and the bandwidth of the effectively save control channel of energy also can be reduced the overhead of controller;And
Since measurement period is in exchange generator terminal maintenance, the Message Time Delay of controller channel would not influence the accuracy of statistical information again,
Improve the accuracy of statistical information.
Fig. 6 is the statistical information reporting device schematic diagram that the embodiment of the present invention four provides.Described device can be used for executing
Method described in Fig. 2.In Fig. 6, which includes: receiving unit 601, acquiring unit 602, storage unit 603, monitoring unit
604 and reporting unit 605.
Receiving unit 601, the statistics task that carrying statistics task is sent for receiving controller handle request message.
Optionally, the statistics task processing request message is the open flows OpenFlow agreement by using TLV format
The request message of definition.
Acquiring unit 602, for obtaining statistics from the received statistics task processing request message of receiving unit 601
Task.
Storage unit 603, for the content when the action type field carried in statistics task processing request message
When to create statistics task, the statistics task that will acquire the acquisition of unit 602 is saved in statistics task list, wherein institute
State the mark, dispatching cycle and objects of statistics that statistics task includes: the statistics task.
Monitoring unit 604, for monitoring the statistics task of the preservation of storage unit 603 in the statistics task list
Obtain overdue statistics task dispatching cycle in the statistics task list dispatching cycle.
Monitoring unit 604 is specifically used for: monitoring the timer of statistics task described in the statistics task list, obtains institute
State overdue statistics task dispatching cycle in statistics task list.
Reporting unit 605, Xiang Suoshu controller report is according to the received statistics task request message of receiving unit 601
The statistical information of the objects of statistics of the statistics task obtained.
Optionally, when including multiple statistics tasks in statistics task processing request message, by using TLV format
OpenFlow protocol definition reply message the institute obtained to the controller report according to the statistics task request message
State the statistical information of the objects of statistics of statistics task.
Optionally, the device further include: modification unit 606, for being carried when in statistics task processing request message
Action type field content be modification statistics task when, the statistics task includes: the mark of the statistics task and repairs
Breath is converted to, statistics task identical with the mark of the statistics task in the statistics task list is searched, according to the modification
Information modifies the statistics task.
Optionally, device further include: unit 607 is deleted, for carrying when in statistics task processing request message
Action type field content be delete statistics task when, the statistics task includes: the mark of the statistics task, search
Statistics task identical with the mark of the statistics task, deletes the statistics task in the statistics task list.
Optionally, the device further include: reset cell 608, for resetting the timer for reporting the statistics task of end.
Therefore, statistical information reporting device provided in an embodiment of the present invention, for a kind of statistical information, controller only needs to send out
Statistics task processing request message is sent, no longer needs to periodicity sending statistics task processing request message, in control channel
Statistical information quantity reduces half, and the bandwidth of the effectively save control channel of energy also can be reduced the overhead of controller;And
Since measurement period is in exchange generator terminal maintenance, the Message Time Delay of controller channel would not influence the accuracy of statistical information again,
Improve the accuracy of statistical information.
Fig. 7 is the statistical information reporting device schematic diagram that the embodiment of the present invention five provides.As shown in fig. 7, described device packet
It includes: network interface 701, processor 702 and memory 703.System bus 704 is for connecting network interface 701, processor 702
With storage 703.
For example, processor 702 can be CPU.
Network interface 701 with other equipment for communicating.
Memory 703 can be permanent memory, such as hard disk drive and flash memory, have software mould in memory 703
Block and device driver.Software module is able to carry out the various functional modules of the above method of the present invention;Device driver can
To be network and interface drive program.
On startup, these component softwares are loaded into memory 703, are then accessed and are executed such as by processor 702
It gives an order:
It receives controller and sends the statistics task processing request message for carrying statistics task;
Statistics task is obtained from statistics task processing request message;
When the content of the action type field carried in statistics task processing request message is creates statistics task,
The statistics task is saved in statistics task list, wherein the statistics task include: the statistics task mark,
Dispatching cycle and objects of statistics;
It obtains and is adjusted in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list
Spend period overdue statistics task;
The objects of statistics of the statistics task obtained to the controller report according to the statistics task request message
Statistical information.
Further, the application program further includes that can be used for that the processor 702 and described device is made to execute following mistake
The instruction of journey:
When the content of the action type field carried in statistics task processing request message is modifies statistics task,
The statistics task includes: the mark and modification information of the statistics task, search in the statistics task list with the system
The identical statistics task of the mark of meter task modifies the statistics task according to the modification information.
Further, the application program further includes that can be used for that the processor 802 and described device is made to execute following mistake
The instruction of journey:
When the content of the action type field carried in statistics task processing request message is deletes statistics task,
The statistics task includes: the mark of the statistics task, searches the mark in the statistics task list with the statistics task
Know identical statistics task, deletes the statistics task.
Further, the application program further includes that can be used for that the processor 802 and described device is made to execute following mistake
The instruction of journey:
The timer for monitoring statistics task described in the statistics task list is obtained and is dispatched in the statistics task list
Period overdue statistics task.
The application program further includes that can be used for that the processor and described device is made to execute the specific instruction of following procedure:
Resetting reports the timer of the statistics task of end.
Optionally, when including multiple statistics tasks in statistics task processing request message, at the statistics task
Managing request message is the request message by using the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
It is replied message to the controller report by using the OpenFlow protocol definition of TLV format according to the system
Count the statistical information of the objects of statistics for the statistics task that task requests message obtains.
To sum up, statistical information report method and device provided in an embodiment of the present invention, for a kind of statistical information, controller
A statistics task processing request message need to be only sent, periodicity sending statistics task processing request message is no longer needed to, control is logical
Statistical information quantity on road reduces half, and the bandwidth of the effectively save control channel of energy also can be reduced additionally opening for controller
Pin;And since measurement period is in exchange generator terminal maintenance, the Message Time Delay of controller channel would not influence statistical information again
Accuracy improves the accuracy of statistical information.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.
Claims (18)
1. a kind of statistical information report method, which is characterized in that the described method includes:
It receives controller and sends the statistics task processing request message for carrying statistics task;
Statistics task is obtained from statistics task processing request message;
When the content of the action type field carried in statistics task processing request message is creates statistics task, by institute
It states statistics task to be saved in statistics task list, wherein the statistics task includes: the mark of the statistics task, scheduling
Period and objects of statistics;
It obtains and dispatches week in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list
Phase overdue statistics task;
The objects of statistics for the statistics task that request message obtains is handled according to the statistics task to the controller report
Statistical information.
2. the method according to claim 1, wherein the method also includes:
It is described when the content of the action type field carried in statistics task processing request message is modifies statistics task
Statistics task includes: the mark and modification information of the statistics task, searches in the statistics task list and appoints with the statistics
The identical statistics task of the mark of business modifies the statistics task according to the modification information.
3. the method according to claim 1, wherein the method also includes: when the statistics task processing ask
When seeking the content of the action type field carried in message to delete statistics task, the statistics task includes: that the statistics is appointed
The mark of business searches statistics task identical with the mark of the statistics task in the statistics task list, deletes the system
Meter task.
4. the method according to claim 1, wherein statistics described in the monitoring statistics task list is appointed
The dispatching cycle of business, obtain that dispatching cycle in the statistics task list, overdue statistics task included:
The timer for monitoring statistics task described in the statistics task list obtains dispatching cycle in the statistics task list
Overdue statistics task.
5. according to the method described in claim 4, it is characterized in that, described appointing to the controller report according to the statistics
After the statistical information of the objects of statistics for the statistics task that business processing request message obtains, the method also includes:
Resetting reports the timer of the statistics task of end.
6. method according to any one of claims 1 to 5, which is characterized in that
When including multiple statistics tasks in statistics task processing request message, the statistics task processing request message is
By using the request message of the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
Appointed by using the replying message to the controller report for OpenFlow protocol definition of TLV format according to the statistics
The statistical information of the objects of statistics for the statistics task that business processing request message obtains.
7. a kind of statistical information reporting device, which is characterized in that described device includes: receiving unit, acquiring unit, saves list
Member, monitoring unit and reporting unit;
The receiving unit, the statistics task that carrying statistics task is sent for receiving controller handle request message;
The acquiring unit is appointed for obtaining statistics from the received statistics task processing request message of the receiving unit
Business;
The storage unit, for being wound when the content of the action type field carried in statistics task processing request message
When building statistics task, the statistics task that the acquiring unit is obtained is saved in statistics task list, wherein the system
Meter task includes: mark, dispatching cycle and the objects of statistics of the statistics task;
The monitoring unit, the tune of the statistics task for monitoring the preservation of storage unit described in the statistics task list
The period is spent, overdue statistics task dispatching cycle in the statistics task list is obtained;
The reporting unit, Xiang Suoshu controller report disappear according to the received statistics task processing request of the receiving unit
Cease the statistical information of the objects of statistics of the statistics task obtained.
8. device according to claim 7, which is characterized in that described device further include: modification unit, for working as the system
When the content of the action type field carried in meter task processing request message is modifies statistics task, the statistics task packet
Include: the mark and modification information of the statistics task search the mark phase in the statistics task list with the statistics task
Same statistics task modifies the statistics task according to the modification information.
9. device according to claim 7, which is characterized in that described device further include: unit is deleted, for working as the system
When the content of the action type field carried in meter task processing request message is deletes statistics task, the statistics task packet
Include: the mark of the statistics task is searched statistics identical with the mark of the statistics task in the statistics task list and is appointed
Business, deletes the statistics task.
10. device according to claim 7, which is characterized in that the monitoring unit is specifically used for:
The timer for monitoring statistics task described in the statistics task list obtains dispatching cycle in the statistics task list
Overdue statistics task.
11. device according to claim 10, which is characterized in that described device further include: reset cell, for resetting
Report the timer of the statistics task terminated.
12. according to any device of claim 7-11, which is characterized in that
When including multiple statistics tasks in statistics task processing request message, the statistics task processing request message is
By using the request message of the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
Appointed by using the replying message to the controller report for OpenFlow protocol definition of TLV format according to the statistics
The statistical information of the objects of statistics for the statistics task that business processing request message obtains.
13. a kind of statistical information reporting device, which is characterized in that described device includes:
Network interface;
Processor;
Memory;
The application program of physical store in the memory, the application program include that can be used for making the processor and described
The instruction of device execution following procedure:
It receives controller and sends the statistics task processing request message for carrying statistics task;
Statistics task is obtained from statistics task processing request message;
When the content of the action type field carried in statistics task processing request message is creates statistics task, by institute
It states statistics task to be saved in statistics task list, wherein the statistics task includes: the mark of the statistics task, scheduling
Period and objects of statistics;
It obtains and dispatches week in the statistics task list dispatching cycle for monitoring statistics task described in the statistics task list
Phase overdue statistics task;
The objects of statistics for the statistics task that request message obtains is handled according to the statistics task to the controller report
Statistical information.
14. device according to claim 13, which is characterized in that
The application program further includes that can be used for that the processor and described device is made to execute the instruction of following procedure:
It is described when the content of the action type field carried in statistics task processing request message is modifies statistics task
Statistics task includes: the mark and modification information of the statistics task, searches in the statistics task list and appoints with the statistics
The identical statistics task of the mark of business modifies the statistics task according to the modification information.
15. device according to claim 13, which is characterized in that
The application program further includes that can be used for that the processor and described device is made to execute the instruction of following procedure:
It is described when the content of the action type field carried in statistics task processing request message is deletes statistics task
Statistics task includes: the mark of the statistics task, searches the mark phase in the statistics task list with the statistics task
Same statistics task, deletes the statistics task.
16. device according to claim 13, which is characterized in that
The application program further includes that can be used for that the processor and described device is made to execute the specific instruction of following procedure:
The timer for monitoring statistics task described in the statistics task list obtains dispatching cycle in the statistics task list
Overdue statistics task.
17. device according to claim 16, which is characterized in that the application program further includes that can be used for making the processing
Device and described device execute the specific instruction of following procedure:
Resetting reports the timer of the statistics task of end.
18. any device of 3-17 according to claim 1, which is characterized in that
When including multiple statistics tasks in statistics task processing request message, the statistics task processing request message is
By using the request message of the open flows OpenFlow protocol definition of TLV format;
Correspondingly,
Appointed by using the replying message to the controller report for OpenFlow protocol definition of TLV format according to the statistics
The statistical information of the objects of statistics for the statistics task that business processing request message obtains.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/073605 WO2015139199A1 (en) | 2014-03-18 | 2014-03-18 | Statistical information reporting method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105264944A CN105264944A (en) | 2016-01-20 |
CN105264944B true CN105264944B (en) | 2019-06-21 |
Family
ID=54143631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480000233.XA Active CN105264944B (en) | 2014-03-18 | 2014-03-18 | Statistical information report method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105264944B (en) |
WO (1) | WO2015139199A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046082B (en) * | 2019-04-15 | 2020-05-29 | 苏州浪潮智能科技有限公司 | IO characteristic information processing method, IO characteristic information acquisition method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647747A (en) * | 2011-02-17 | 2012-08-22 | 中兴通讯股份有限公司 | Method, device and system for controlling measurement of UE (User Equipment) |
WO2012130264A1 (en) * | 2011-03-29 | 2012-10-04 | Nec Europe Ltd. | User traffic accountability under congestion in flow-based multi-layer switches |
CN103004147A (en) * | 2012-09-25 | 2013-03-27 | 华为技术有限公司 | Message forwarding path determining method, network device and control device |
CN103391296A (en) * | 2013-07-29 | 2013-11-13 | 北京华为数字技术有限公司 | Controller, openflow switch and method and system of channel establishing |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647743B (en) * | 2011-02-17 | 2017-04-12 | 中兴通讯股份有限公司 | Method and system for controlling user equipment (UE) to carry out measurement |
CN102647753B (en) * | 2011-02-17 | 2017-03-15 | 中兴通讯股份有限公司 | The method and system that control user equipment is measured |
WO2012111051A1 (en) * | 2011-02-17 | 2012-08-23 | Nec Corporation | Flow communication system |
CN102647741A (en) * | 2011-02-17 | 2012-08-22 | 中兴通讯股份有限公司 | Method and system for controlling user equipment (UE) to carry out measurement |
CN102946325B (en) * | 2012-11-14 | 2015-06-03 | 中兴通讯股份有限公司 | Network diagnosis method, system and equipment based on software defined network |
-
2014
- 2014-03-18 WO PCT/CN2014/073605 patent/WO2015139199A1/en active Application Filing
- 2014-03-18 CN CN201480000233.XA patent/CN105264944B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647747A (en) * | 2011-02-17 | 2012-08-22 | 中兴通讯股份有限公司 | Method, device and system for controlling measurement of UE (User Equipment) |
WO2012130264A1 (en) * | 2011-03-29 | 2012-10-04 | Nec Europe Ltd. | User traffic accountability under congestion in flow-based multi-layer switches |
CN103004147A (en) * | 2012-09-25 | 2013-03-27 | 华为技术有限公司 | Message forwarding path determining method, network device and control device |
CN103391296A (en) * | 2013-07-29 | 2013-11-13 | 北京华为数字技术有限公司 | Controller, openflow switch and method and system of channel establishing |
Also Published As
Publication number | Publication date |
---|---|
WO2015139199A1 (en) | 2015-09-24 |
CN105264944A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6845352B1 (en) | Framework for flexible and scalable real-time traffic emulation for packet switched networks | |
CN109067617B (en) | V2X protocol consistency test method, device and system | |
CN108809857A (en) | A method of the traffic monitoring based on SDN and service quality securing strategy | |
CN103053146B (en) | Data migration method and device | |
CN102377640B (en) | Message processing apparatus, message processing method and preprocessor | |
CN105103495B (en) | For allowing or refusing the admission control of the measurement request between the first and second equipment | |
CN104765641B (en) | A kind of job scheduling method and system | |
WO2017058445A1 (en) | Service function path performance monitoring | |
CN100461707C (en) | Method and system for realizing automatic detection for simple network managing protocol agent | |
Li et al. | OPTAS: Decentralized flow monitoring and scheduling for tiny tasks | |
CN108199861B (en) | Computer room management method and device | |
CN110119307B (en) | Data processing request processing method and device, storage medium and electronic device | |
CN112532409A (en) | Network parameter configuration method and device, computer equipment and storage medium | |
US20180357099A1 (en) | Pre-validation of a platform | |
CN101145977A (en) | A QoS monitoring system and its measuring method of IP data network | |
CN115562879B (en) | Computing power sensing method, computing power sensing device, electronic equipment and storage medium | |
CN101826999A (en) | Method and device for online message flow monitoring and bandwidth compensation | |
CN109639693B (en) | Intelligent distribution and utilization electricity business arrangement method and distribution and utilization electricity communication integrated terminal | |
CN105264944B (en) | Statistical information report method and device | |
CN112039746B (en) | Industrial control network system | |
CN114500354A (en) | Switch control method, device, control equipment and storage medium | |
CN106341433A (en) | Service system, signal server and intercom server | |
US10263864B2 (en) | Apparatus and method for collecting adaptive flow statistics data in carrier network | |
JP2016127393A (en) | Information processing unit, method and program | |
Chen et al. | Real-time capability analysis for switch industrial Ethernet traffic priority-based |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |