WO2015139199A1 - 统计信息上报方法及装置 - Google Patents

统计信息上报方法及装置 Download PDF

Info

Publication number
WO2015139199A1
WO2015139199A1 PCT/CN2014/073605 CN2014073605W WO2015139199A1 WO 2015139199 A1 WO2015139199 A1 WO 2015139199A1 CN 2014073605 W CN2014073605 W CN 2014073605W WO 2015139199 A1 WO2015139199 A1 WO 2015139199A1
Authority
WO
WIPO (PCT)
Prior art keywords
statistical
task
statistical task
request message
processing request
Prior art date
Application number
PCT/CN2014/073605
Other languages
English (en)
French (fr)
Inventor
林科
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480000233.XA priority Critical patent/CN105264944B/zh
Priority to PCT/CN2014/073605 priority patent/WO2015139199A1/zh
Publication of WO2015139199A1 publication Critical patent/WO2015139199A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method and apparatus for reporting statistical information. Background technique
  • the real-time acquisition of the network status information of the entire network by the controller is the basis of the management network.
  • the controller implements multi-path forwarding, load balancing, and quality of service (Qua Li ty of Real-time network information is required as a basis for applications such as Serv i ce and QoS. To meet the requirements of different applications, the controller needs to obtain statistics on the ports, queues, flow tables, group tables, and Meter tables on the switch in real time.
  • the embodiment of the invention provides a method and a device for reporting statistical information, which can enable the switch to periodically report statistical information of the statistical object to the controller, and the controller does not need to periodically send the statistical request message periodically.
  • a statistical information reporting method includes:
  • the statistic task is saved in the statistic task list, where the statistic task includes: the identifier and the scheduling of the statistic task. Cycle and statistical objects; Monitoring a scheduling period of the statistical task in the statistical task list, and acquiring a statistical task whose scheduling period expires in the statistical task list;
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message on the controller.
  • the method further includes: when the content of the operation type field carried in the statistic task processing request message is a modification statistic task, where the statistic task includes The identification and modification information of the statistical task is searched for the statistical task statistics task.
  • the method further includes: when the content of the operation type field carried in the statistic task processing request message is a deletion statistic task, the statistic task includes The identifier of the statistic task is searched for the statistic task in the statistic task list that is the same as the statistic task, and the statistic task is deleted.
  • the monitoring the scheduling period of the statistical task in the statistical task list, and obtaining the statistical task in the statistical task list that the scheduling period expires includes:
  • the timer of the statistical task in the statistical task list is monitored, and the statistical task whose scheduling period expires in the statistical task list is obtained.
  • the method further includes:
  • the statistical task processing request message when the statistical task processing request message includes multiple statistical tasks, is a request message defined by using the OpenFlow OpenF low protocol in the TLV format; corresponding,
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message is reported to the controller by using a reply message defined by the OpenF low protocol of the TLV format.
  • a second aspect provides a statistical information reporting apparatus, where the apparatus includes: a receiving unit, an obtaining unit, a saving unit, a monitoring unit, and a reporting unit;
  • the receiving unit is configured to receive, by the controller, a statistical task processing request message carrying a statistical task
  • the obtaining unit is configured to obtain a statistical task from the statistical task processing request message received by the receiving unit;
  • the saving unit is configured to: when the content of the operation type field carried in the statistic task processing request message is a statistic task, save the statistic task acquired by the acquiring unit to a statistic task list, where
  • the statistical task includes: an identifier, a scheduling period, and a statistical object of the statistical task;
  • the monitoring unit is configured to monitor a scheduling period of the statistical task saved by the saving unit in the statistical task list, and obtain a statistical task in which the scheduling period expires in the statistical task list;
  • the controller reports statistical information of the statistical object of the statistical task obtained according to the statistical task request message received by the receiving unit.
  • the device further includes: a modifying unit, configured to: when the content of the operation type field carried in the statistical task processing request message is a modified statistical task,
  • the statistics task includes: identifying and modifying information of the statistical task, and searching for the statistical task to modify the statistical task.
  • the device further includes: a deleting unit, configured to: when the content of the operation type field carried in the statistical task processing request message is a deletion statistical task,
  • the statistic task includes: identifier of the statistic task, searching for the statistic
  • the monitoring unit is specifically configured to: monitor a timer of the statistical task in the statistical task list, and obtain a scheduling period in the statistical task list to Statistical tasks of the period.
  • the device further includes: a reset unit, configured to reset a timer for reporting the end of the statistical task.
  • the statistical task processing request message when the statistical task processing request message includes multiple statistical tasks, is a request message defined by using the OpenFlow OpenF low protocol in the TLV format;
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message is reported to the controller by using a reply message defined by the OpenF low protocol of the TLV format.
  • a statistical information reporting apparatus includes:
  • An application physically stored in the memory comprising instructions operable to cause the processor and the apparatus to:
  • the statistic task is saved in the statistic task list, where the statistic task includes: the identifier and the scheduling of the statistic task. Cycle and statistical objects;
  • the system of the statistical tasks obtained according to the statistical task request message on the controller Count the statistics of the object.
  • the application further comprises instructions operable to cause the processor and the apparatus to perform the following process:
  • the statistic task When the content of the operation type field carried in the statistic task processing request message is a statistic task, the statistic task includes: the identifier and the modification information of the statistic task, and the statistic task is searched for.
  • the application further comprises instructions operable to cause the processor and the apparatus to:
  • the statistic task When the content of the operation type field carried in the statistic task processing request message is a deletion statistic task, the statistic task includes: the identifier of the statistic task, and the identifier of the statistic task list is the same as the identifier of the statistic task.
  • the statistical task delete the statistical task.
  • the application further comprises specific instructions operable to cause the processor and the apparatus to perform the following process:
  • the timer of the statistical task in the statistical task list is monitored, and the statistical task whose scheduling period expires in the statistical task list is obtained.
  • the application further includes specific instructions operable to cause the processor and the apparatus to perform the following process:
  • the statistical task processing request message when the statistical task processing request message includes multiple statistical tasks, is a request message defined by using the OpenFlow OpenF low protocol in the TLV format;
  • the statistical information reporting method and device provided by the embodiment of the present invention can enable the switch to periodically report the statistical information of the statistical object to the controller, and the controller does not need to periodically send the statistical request message periodically, thereby effectively saving the bandwidth of the control channel. It also reduces the overhead of the controller.
  • Figure 1 is a schematic diagram of the structure of an SDN network
  • FIG. 2 is a flowchart of a method for reporting statistical information according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of the internal working process of the switch provided by the present invention.
  • FIG. 5 is an information interaction diagram of a statistical information reporting method according to Embodiment 3 of the present invention
  • FIG. 6 is a schematic diagram of a statistical information reporting apparatus according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic diagram of a statistical information reporting apparatus according to Embodiment 5 of the present invention. detailed description
  • the statistical information reporting method provided by the embodiment of the present invention is applied to the statistical information reporting system in the SDN network shown in FIG. 1.
  • the core idea of the SDN network is to convert the packet forwarding process originally controlled by the switch/router into The independent process that the switch and controller complete separately. After the conversion, the controller determines the transmission path of all the data packets in the network, and the switch maintains a different flow table different from the forwarding table locally. If the data packet to be forwarded has a corresponding item in the flow table, the fast forwarding is performed directly. ; if there is no entry in the flow table, the packet will be sent to the controller for transmission. Confirm the path and forward it according to the delivery result.
  • the controller and the switch form a statistical information reporting system, and the controller and the switch are connected by signaling.
  • the controller sends a statistical task processing request message carrying the statistical task to the switch according to the specific requirement, and the statistics task can be created, modified, or deleted on the switch to trigger the statistics of the statistical object periodically reported by the switch.
  • Information where statistical objects include: ports, queues, flow tables, group tables, or Meter tables.
  • the statistics of the port may be specifically the rate at which the port sends and receives packets, and the controller does not need to repeatedly send the same statistical task processing request message periodically.
  • the controller only needs to send the statistical task processing request message once, and does not need to periodically send the statistical task processing request message, and the number of statistical information on the control channel is reduced by half, which can effectively save the control channel.
  • the bandwidth can also reduce the overhead of the controller; and because the scheduling period is maintained on the switch side, the message delay of the controller channel will not affect the accuracy of the statistical information, and the accuracy of the statistical information is improved.
  • FIG. 2 is a flowchart of a method for reporting statistical information according to Embodiment 1 of the present invention.
  • the method is performed by using the switch in FIG. 1 as an execution subject.
  • the method specifically includes:
  • the receiving controller sends a statistical task processing request message carrying a statistical task.
  • the statistical task processing request message is a customized request message, where the format of the customized request message is as follows:
  • the field scheduler-id is the identifier of the statistic task, that is, the scheduler-id can uniquely identify a statistic task; the field timer is the scheduling period of the statistic task identified by the scheduler_id, and the unit can be but not limited to ms.
  • the switch is based on The statistics of the task is reported to the controller. For example, the content of the field t imer of a certain statistical task is 500 ms, then the switch is every 500 ms. Ren The service timeout or the scheduling period of the statistic task expires.
  • the statistic information of the statistic object of the statistic task is sent to the controller.
  • the field command is the operation type of the statistic task identified by the scheduler-id.
  • the content of the field can be, but is not limited to, 0.
  • the creation, modification, and deletion operations are a creation statistic task
  • the operation type of the statistic task is a creation statistic task
  • the statistics object of the statistics task identified by the scheduler_id the content of the field may be, but is not limited to, 0, 1, 2, 3 or 4, respectively, indicating that the statistical object of the above statistical task is a flow table, a group table, a meter table, a port or a queue.
  • the statistics object of the statistics task is a port, queue, group table or meter table
  • you also need to specify the content of the field reques t_ id because there are usually multiple ports, queues, group tables or meter tables on the switch, through the field request-id
  • the content can determine which port, queue, group table or meter table to count, to determine a
  • the switch needs to query the statistics of port 2.
  • the statistics object of the statistics task is a flow table
  • the reciuest_id field is no longer valid and can be specified directly.
  • the content is 0, but you need to specify the contents of the fields table-id, out-port, out-group, cookie, cookie-mask and match at the same time, that is, you need to specify complete matching information to determine a specific statistical object.
  • the controller sends the request message to the switch.
  • the switch after receiving the statistical task processing request message carrying the statistical task, the switch obtains the operation type, scheduling period, and statistical object of the statistical task according to the identifier of the statistical task in the statistical task processing request message, that is, the acquiring A statistical task, where the statistical object is a specific statistical object.
  • the statistical object is a port, a queue, a group table, or a meter table
  • the contents of the field type and the request-id field need to be acquired at the same time; when the statistical object is a flow table At the same time, you need to get the contents of the fields type, table. id, out-port, out-group, cookie, cookie_mask and match.
  • the statistic task is saved to the statistic task list, where the statistic task includes: the identifier of the statistic task, the scheduling period, and the statistic object.
  • the identifier, scheduling period, and statistics object of the statistics task are added to the statistics task list.
  • the statistic information of each statistic task in the statistic task list is reported to the controller periodically.
  • the statistic task when the content of the operation type field carried in the statistic task processing request message is a modified statistic task, the statistic task includes: the identifier and the modification information of the statistic task, and the tamper information is modified to modify the statistic task. .
  • the statistic task when the content of the operation type field carried in the statistic task processing request message is a deletion statistic task, the statistic task includes: the identifier of the statistic task, searching the statistic S240, and monitoring the statistic task.
  • the scheduling period of the statistical task in the list is obtained, and the statistical task whose scheduling period expires in the statistical task list is obtained.
  • the timer of the statistical task in the statistical task list is monitored, and a statistical task in which the scheduling period expires in the statistical task list is obtained.
  • the switch uses the statistics task scheduling module to schedule and manage statistics tasks in the statistics task list.
  • the statistic task is saved to the statistic task list, the statistic is started.
  • the timer of the task when the timer is 500 ms, indicates that the scheduling period of the statistical task expires, and the statistical task scheduling module obtains the statistical task from the statistical task list.
  • the switch can also use other devices that can monitor the time limit, such as hardware triggers. To monitor the scheduling period of statistical tasks.
  • the switch can report the statistics of the port 2 (for example, the rate of sending and receiving packets) to the controller by using a customized reply message.
  • the statistic task scheduling module resets the timer of the statistic task that ends the reporting, that is, The statistics task is timed and continues to monitor the scheduling period of other statistical tasks in the statistics task list.
  • the operation type of the statistics task may be determined according to the content of the operation type field carried in the received statistical task processing request message.
  • Complete the statistics task and add the statistics, scheduling period, and statistics objects of the statistic task to the statistic task list.
  • By monitoring the scheduling period of the statistic task periodically report the statistics of the statistics object to the controller.
  • the statistic task of the statistic task is obtained, and the statistic task is the same as that of the statistic task.
  • the statistic task is modified according to the modification information. Find the statistics task in the statistics task list that is the same as the ID of the statistics task, and delete the statistics task.
  • FIG. 4 is a flowchart of a method for reporting statistical information according to Embodiment 2 of the present invention. As shown in FIG. 4, the method specifically includes:
  • the receiving controller sends a statistical task processing request message that carries multiple statistical tasks.
  • the statistical task processing request message is a request message defined by using an OpenF low protocol in a Type Length Va lue format: TLV format.
  • each field in the customized request message given in S210 is also included.
  • the request message defined by the OpenFlow protocol in the TLV format can carry multiple TLV fields, it can be implemented in A statistical task that carries multiple statistical objects in a request message.
  • the switch needs to obtain each statistical task from the statistical task processing request message according to the identifier of each statistical task.
  • the statistic task is saved in the statistic task list, where the statistic task includes: the identifier of the statistic task , scheduling period and statistical objects.
  • the switch obtains multiple statistics tasks and determines that the content of the operation type field co ⁇ and of each statistical task is 0, that is, when the statistics task needs to be created, all the obtained statistical tasks are saved. Go to the statistics task list.
  • S440 Monitor a timer of each statistical task in the statistical task list, and obtain a statistical task whose scheduling period expires in the statistical task list.
  • the timer corresponding to each statistical task is started, and the timers of each statistical task in the statistical task list are monitored, and the scheduling period expires in the statistical task list.
  • S45 0 Report, to the controller, statistical information of a statistical object of the statistical task obtained according to the statistical task request message, and reset a timer of the last closed statistical task.
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message is sent to the controller by using a reply message defined by the OpenF l ow protocol of the TLV format.
  • the statistical task scheduling module resets the timer of the last closed statistical task, that is, re-times the statistical task, and continues to monitor the statistical task list. The scheduling period of other statistical tasks.
  • the TLV format has better flexibility and scalability, and a request message can carry TLV fields of multiple statistical objects, specifically, the statistical task system.
  • the meter object can be any combination of ports, queues, flow tables, group tables, or Meter tables, so that one request message can process multiple specific statistical tasks simultaneously.
  • FIG. 5 is an information interaction diagram of a statistical information reporting method according to Embodiment 3 of the present invention. As shown in FIG. 5, the embodiment of the present invention specifically includes the following steps:
  • S510 The controller sends a request message to the switch, requesting the switch to process the corresponding statistical task.
  • the switch adds the request message to the statistics task list.
  • the switch periodically schedules a statistical task specified by the request message in the statistics task list.
  • the switch uses the reply message to reply the controller with the statistical information corresponding to the foregoing statistical task. Therefore, in the statistical information reporting method provided by the embodiment of the present invention, for a type of statistical information, the controller only needs to send a statistical task processing request message, and does not need to periodically send a statistical task processing request message, and the number of statistical information on the control channel is reduced. In half, the bandwidth of the control channel can be effectively saved, and the overhead of the controller can also be reduced. Moreover, since the statistical period is maintained at the switch end, the message delay of the controller channel does not affect the accuracy of the statistical information, and the statistics are improved. The accuracy of the information.
  • FIG. 6 is a schematic diagram of a statistical information reporting apparatus according to Embodiment 4 of the present invention.
  • the apparatus can be used to perform the method described in Figure 2.
  • the apparatus includes: a receiving unit 601, an obtaining unit 602, a saving unit 603, a monitoring unit 604, and a reporting unit 605.
  • the receiving unit 601 is configured to receive, by the controller, a statistical task processing request message carrying a statistical task.
  • the statistical task processing request message is a request message defined by using an OpenFlow OpenFow protocol in a TLV format.
  • the obtaining unit 602 is configured to obtain a statistical task from the statistical task processing request message received by the receiving unit 601.
  • the saving unit 603 is configured to save the statistical task acquired by the obtaining unit 602 to the statistics when the content of the operation type field carried in the statistical task processing request message is a creation of a statistical task.
  • the statistical task includes: an identifier, a scheduling period, and a statistics object of the statistical task.
  • the monitoring unit 604 is configured to monitor a scheduling period of the statistical task saved by the saving unit 603 in the statistical task list, and obtain a statistical task in which the scheduling period expires in the statistical task list.
  • the monitoring unit 604 is specifically configured to: monitor a timer of the statistical task in the statistical task list, and obtain a statistical task whose scheduling period expires in the statistical task list.
  • the reporting unit 605 reports to the controller, the statistical information of the statistical object of the statistical task obtained according to the statistical task request message received by the receiving unit 601.
  • the statistics task processing request message includes multiple statistics tasks
  • the statistics obtained according to the statistical task request message are reported to the controller by using a reply message defined by the OpenF low protocol in the TLV format. Statistics for the statistical objects of the task.
  • the device further includes: a modifying unit 606, configured to: when the content of the operation type field carried in the statistical task processing request message is a modified statistical task, the statistical task includes: the identifier of the statistical task Modifying the information, searching for the statistical task in the statistical task list that is the same as the identifier of the statistical task, and modifying the statistical task according to the modification information.
  • a modifying unit 606 configured to: when the content of the operation type field carried in the statistical task processing request message is a modified statistical task, the statistical task includes: the identifier of the statistical task Modifying the information, searching for the statistical task in the statistical task list that is the same as the identifier of the statistical task, and modifying the statistical task according to the modification information.
  • the device further includes: a deleting unit 607, configured to: when the content of the operation type field carried in the statistical task processing request message is a deletion statistical task, the statistical task includes: the identifier of the statistical task, Finding a statistical task in the statistical task list that is the same as the identifier of the statistical task, and deleting the statistical task.
  • a deleting unit 607 configured to: when the content of the operation type field carried in the statistical task processing request message is a deletion statistical task, the statistical task includes: the identifier of the statistical task, Finding a statistical task in the statistical task list that is the same as the identifier of the statistical task, and deleting the statistical task.
  • the device further includes: a reset unit 608, configured to reset a timer of the last ended statistical task.
  • a reset unit 608 configured to reset a timer of the last ended statistical task.
  • the controller only needs to send the statistical task processing request message once, and does not need to periodically send the statistical task processing request message, and the number of statistical information on the control channel is reduced. In half, the bandwidth of the control channel can be effectively saved, and the overhead of the controller can also be reduced. Moreover, since the statistical period is maintained at the switch end, the message delay of the controller channel does not affect the accuracy of the statistical information, and the statistics are improved. Information precision Exact.
  • FIG. 7 is a schematic diagram of a statistical information reporting apparatus according to Embodiment 5 of the present invention. As shown in FIG. 7, the apparatus includes: a network interface 701, a processor 702, and a memory 703. System bus 704 is used to connect network interface 701, processor 702, and storage 703.
  • processor 702 can be a CPU.
  • Network interface 701 is used to communicate with other devices.
  • the memory 703 can be a persistent storage such as a hard disk drive and flash memory, and the memory 703 has software modules and device drivers.
  • the software modules are capable of executing the various functional modules of the above described method of the present invention; the device drivers can be network and interface drivers.
  • the statistic task is saved in the statistic task list, where the statistic task includes: the identifier and the scheduling of the statistic task. Cycle and statistical objects;
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message on the controller.
  • the application further includes instructions operable to cause the processor 702 and the device to perform the following process:
  • the statistic task includes: the identifier and the modification information of the statistic task, and the statistic task is searched for.
  • the application further includes instructions operable to cause the processor 802 and the apparatus to perform the following process:
  • the statistic task When the content of the operation type field carried in the statistic task processing request message is a deletion statistic task, the statistic task includes: the identifier of the statistic task, and the identifier of the statistic task list is the same as the identifier of the statistic task.
  • the statistical task delete the statistical task.
  • the application further includes instructions operable to cause the processor 802 and the apparatus to perform the following process:
  • the timer of the statistical task in the statistical task list is monitored, and the statistical task whose scheduling period expires in the statistical task list is obtained.
  • the application also includes specific instructions that can be used to cause the processor and the apparatus to perform the following processes:
  • the statistical task processing request message when the statistical task processing request message includes multiple statistical tasks, is a request message defined by using an OpenFlow OpenFlow protocol in a TLV format;
  • the statistical information of the statistical object of the statistical task obtained according to the statistical task request message is reported to the controller by using a reply message defined by the OpenF low protocol of the TLV format.
  • the controller only needs to send a statistical task processing request message, and does not need to periodically send a statistical task processing request message, and the statistics on the control channel.
  • the number of messages is reduced by half, the bandwidth of the control channel can be effectively saved, and the overhead of the controller can be reduced.
  • the message delay of the controller channel does not affect the accuracy of the statistical information. Improve the accuracy of statistical information.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other form of storage known in the art. In the medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种统计信息上报方法及装置,包括:接收控制器发送携带统计任务的统计任务处理请求消息;从所述统计任务处理请求消息中获取统计任务;当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计任务时,将所述统计任务保存到统计任务列表中,其中,所述统计任务包括:所述统计任务的标识、调度周期和统计对象;监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列表中调度周期到期的统计任务;向所述控制器上报根据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。由此,可以使交换机能周期性向控制器上报统计对象的统计信息,不再需要控制器周期性重复发送统计请求消息。

Description

统计信息上报方法及装置 技术领域
本发明涉及移动通信领域, 尤其涉及一种统计信息上报方法及装置。 背景技术
在软件定义网络( Sof tware Def ined Netwok ing , SDN ) 中, 控制器实时 获取全网的网络状态信息是管理网络的基础, 控制器在实现多路径转发、 负 载均衡, 服务质量(Qua l i ty of Serv i ce , QoS )等应用时都需要有实时的网 络信息作为基础。 为了满足不同应用的需求, 控制器上需要实时获取交换机 上端口、 队列、 流表、 组表和 Me ter表的统计信息。
现有技术中, 控制器在实现不同应用需求时, 经常需要周期性重复发送 统计请求 mu 1 1 i pa r t消息来获得实时的网络信息,这些重复发送的 mu 1 1 i pa r t 消息会大量占用控制通道的带宽, 从而增加了控制器的额外开销。 发明内容
本发明实施例提供了一种统计信息上报方法及装置, 可以使交换机能周 期性向控制器上报统计对象的统计信息, 不再需要控制器周期性重复发送统 计请求消息。
第一方面, 提供了一种统计信息上报方法, 该方法包括:
接收控制器发送携带统计任务的统计任务处理请求消息;
从所述统计任务处理请求消息中获取统计任务;
当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计 任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和统计对象; 监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列 表中调度周期到期的统计任务;
向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息。
结合第一方面, 在第一方面的第一种实现方式中, 所述方法还包括: 当 所述统计任务处理请求消息中携带的操作类型字段的内容为修改统计任务 时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所述统计任 述统计任务。
结合第一方面, 在第一方面的第二种实现方式中, 所述方法还包括: 当所 述统计任务处理请求消息中携带的操作类型字段的内容为删除统计任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任务列表中与所述 统计任务的标识相同的统计任务, 删除所述统计任务。
结合第一方面,第一方面的第三种实现方式中, 所述监视所述统计任务列 表中所述统计任务的调度周期, 获取所述统计任务列表中调度周期到期的统 计任务包括:
监视所述统计任务列表中所述统计任务的定时器,获取所述统计任务列表 中调度周期到期的统计任务。
结合第一方面的第三种实现方式, 在第一方面的地四种实现方式中, 所 述在向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息之后, 所述方法还包括:
重置上 结束的统计任务的定时器。
结合第一方面或第一方面的上述四种实现方式中任一种实现方式, 在第 一方面的第五种实现方式中, 当所述统计任务处理请求消息中包括多个统计 任务时, 所述统计任务处理请求消息为通过使用 TLV格式的开放流 OpenF low 协议定义的请求消息; 相应的,
通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
第二方面, 提供了一种统计信息上报装置, 所述装置包括: 接收单元、 获取单元、 保存单元、 监视单元和上报单元;
所述接收单元,用于接收控制器发送携带统计任务的统计任务处理请求消 息;
所述获取单元,用于从所述接收单元接收的所述统计任务处理请求消息中 获取统计任务;
所述保存单元,用于当所述统计任务处理请求消息中携带的操作类型字段 的内容为创建统计任务时, 将所述获取单元获取的所述统计任务保存到统计 任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和 统计对象;
所述监视单元,用于监视所述统计任务列表中所述保存单元保存的所述统 计任务的调度周期, 获取所述统计任务列表中调度周期到期的统计任务; 所述上报单元, 向所述控制器上报根据所述接收单元接收的所述统计任 务请求消息获得的所述统计任务的统计对象的统计信息。
结合第二方面, 第二方面的第一种实现方式中, 所述装置还包括: 修改单 元, 用于当所述统计任务处理请求消息中携带的操作类型字段的内容为修改 统计任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所 息修改所述统计任务。
结合第二方面, 在第二方面的第二种实现方式中, 所述装置还包括: 删除 单元, 用于当所述统计任务处理请求消息中携带的操作类型字段的内容为删 除统计任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任 结合第二方面, 在第二方面的第三种实现方式中, 所述监视单元具体用 于: 监视所述统计任务列表中所述统计任务的定时器, 获取所述统计任务列 表中调度周期到期的统计任务。
结合第二方面的第三种实现方式,在第二方面的第四种实现方式中,所述 装置还包括: 重置单元, 用于重置上报结束的统计任务的定时器。
结合第二方面或第二方面的上述四种实现方式中任一种实现方式, 在第 二方面的第五种实现方式中, 当所述统计任务处理请求消息中包括多个统计 任务时, 所述统计任务处理请求消息为通过使用 TLV格式的开放流 OpenF low 协议定义的请求消息;
相应的,
通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
第三方面, 提供了一种统计信息上报装置, 所述装置包括:
网络接口;
处理器;
存储器;
物理存储在所述存储器中的应用程序, 所述应用程序包括可用于使所述 处理器和所述装置执行以下过程的指令:
接收控制器发送携带统计任务的统计任务处理请求消息;
从所述统计任务处理请求消息中获取统计任务;
当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计 任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和统计对象;
监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列 表中调度周期到期的统计任务;
向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息。
结合第三方面,在第三方面的第一种实现方式中,所述应用程序还包括可 用于使所述处理器和所述装置执行以下过程的指令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为修改统计 任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所述统 改所述统计任务。
结合第三方面,在第三方面的第二种实现方式中,所述应用程序还包括可 用于使所述处理器和所述装置执行以下过程的指令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为删除统计 任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任务列表 中与所述统计任务的标识相同的统计任务, 删除所述统计任务。
结合第三方面, 在第三方面的第三种实现方式中, 所述应用程序还包括 可用于使所述处理器和所述装置执行以下过程的具体指令:
监视所述统计任务列表中所述统计任务的定时器,获取所述统计任务列表 中调度周期到期的统计任务。
结合第三方面的第三种实现方式, 在第三方面的第四种实现方式中, 所 述应用程序还包括可用于使所述处理器和所述装置执行以下过程的具体指 令:
重置上报结束的统计任务的定时器。
结合第三方面或第三方面的上述四种实现方式中任一种实现方式, 在第 三方面的第五种实现方式中, 当所述统计任务处理请求消息中包括多个统计 任务时, 所述统计任务处理请求消息为通过使用 TLV格式的开放流 OpenF low 协议定义的请求消息;
相应的,
通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
本发明实施例提供的统计信息上报方法及装置, 可以使交换机能周期性 向控制器上报统计对象的统计信息, 不再需要控制器周期性重复发送统计请 求消息, 从而有效节约了控制通道的带宽, 也能减少控制器的额外开销。 附图说明
图 1为 SDN网络结构示意图;
图 2为本发明实施例一提供的统计信息上报方法流程图;
图 3本发明提供的交换机内部工作流程示意图;
图 4为本发明实施例二提供的统计信息上报方法流程图;
图 5为本发明实施例三提供的统计信息上报方法的信息交互图; 图 6为本发明实施例四提供的统计信息上报装置示意图;
图 7为本发明实施例五提供的统计信息上报装置示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供的统计信息上报方法应用于图 1所示的 SDN网络中的 统计信息上报系统中, SDN网络的核心思想就是将原本完全由交换机 /路由器 控制的数据包转发过程, 转化为由交换机和控制器分别完成的独立过程。 转 化之后, 控制器决定了所有数据包在网络中的传输路径, 交换机会在本地维 护一个与转发表不同的流表, 如果要转发的数据包在流表中有对应项, 则直 接进行快速转发; 若流表中没有此项, 数据包就会被发送到控制器进行传输 路径的确认, 再根据下发结果进行转发。
图 1 中, 控制器和交换机组成统计信息上报系统, 且控制器与交换机通 过信令连接。 具体地, 控制器根据具体需求, 通过向交换机发送携带统计任 务的统计任务处理请求消息, 可在交换机上相应的创建、 修改或删除统计任 务, 从而触发交换机周期性上报统计任务的统计对象的统计信息, 其中, 统 计对象包括: 端口、 队列、 流表、 组表或者 Meter表等。 举例来说, 端口的 统计信息可以具体为端口收发包的速率, 而控制器无需再周期性重复发送相 同的统计任务处理请求消息。 由此, 针对一个统计对象的统计信息, 控制器 只需发送一次统计任务处理请求消息, 无需再周期性发送统计任务处理请求 消息, 控制通道上的统计信息数量减少了一半, 能有效节约控制通道的带宽, 也能减少控制器的额外开销; 而且由于调度周期在交换机端维护, 控制器通 道的消息时延就不会再影响统计信息的准确性, 提高了统计信息的精确度。
图 2为本发明实施例一提供的统计信息上报方法流程图。所述方法以图 1 中的交换机为执行主体, 举例说明, 所述方法具体包括:
S210 , 接收控制器发送携带统计任务的统计任务处理请求消息。
可选地, 所述统计任务处理请求消息为自定义的请求消息, 其中, 该自定 义的请求消息格式如下所示:
Figure imgf000009_0001
其中,字段 scheduler— id为统计任务的标识, 即 scheduler— id可以唯一 标识一个统计任务;字段 t imer为 scheduler_ id标识的统计任务的调度周期, 单位可以但不限定为 ms , 具体地, 交换机根据统计任务的调度周期, 向控制 器上报该统计任务的统计对象的统计信息, 举例来说, 某一统计任务的字段 t imer的内容为 500ms , 那么交换机每隔 500ms (这个时间也可以称为统计任 务超时或者统计任务的调度周期到期) , 向控制器发送上述统计任务的统计 对象的统计信息;字段 command为 scheduler- id标识的统计任务的操作类型, 该字段的内容可以但不限定为 0、 1或 2, 分别表示创建、 修改和删除操作, 举例来说, 当统计任务处理请求消息中携带的该字段的内容为 0, 表示为该统 计任务的操作类型为创建统计任务; 字段 type为 scheduler_id标识的统计 任务的统计对象, 该字段的内容可以但不限定为 0、 1、 2、 3或 4, 分别表示 上述统计任务的统计对象为流表、 组表、 Meter表、 端口或者队列, 当统计任 务的统计对象为端口、队列、组表或者 Meter表时,还需指定字段 reques t_ id 的内容, 因为交换机上通常有多个端口、 队列、 组表或者 Meter表, 通过字 段 request- id的内容就可以确定具体统计的是哪个端口,队列,组表或 meter 表, 即可以确定一个具体的统计对象, 举例来说, 当 type=3, request_id=2 时, 则表示交换机需要查询端口 2 的统计信息; 当统计任务的统计对象为流 表时, 字段 reciuest_id不再有效, 可以直接指定其内容为 0, 但需要同时指 定字段 table—id, out-port , out-group, cookie, cookie—mask和 match的 内容, 也即需要指定完整的匹配信息, 才能确定一个具体的统计对象。
具体地,控制器指定自定义的请求消息中各字段的内容之后,将该请求消 息发送给交换机。
S220, 从所述统计任务处理请求消息中获取统计任务。
参见图 3所示的交换机内部工作流程示意图。 图 3中, 交换机在接收到 控制器发送携带统计任务的统计任务处理请求消息之后, 根据统计任务处理 请求消息中统计任务的标识, 获取该统计任务的操作类型, 调度周期和统计 对象, 即获取统计任务, 其中, 统计对象为一个具体的统计对象, 举例为, 当统计对象为端口、 队列、 组表或者 Meter 表, 需要同时获取字段 type 和 request-id 字段的内容; 当统计对象为流表时, 需要同时获取字段 type, table. id, out-port , out-group, cookie, cookie_mask和 match的内容。
S230, 当所述统计任务处理请求消息中携带的操作类型字段的内容为创 建统计任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任 务包括: 所述统计任务的标识、 调度周期和统计对象。
举例来说, 当获取到的统计任务的操作类型字段 co匪 and的内容为 0时, 即需要创建统计任务时, 将该统计任务的标识、 调度周期和统计对象加入到 统计任务列表中, 交换机通过对该统计任务列表中各统计任务的调度周期进 行监视, 从而实现周期性向控制器上报统计任务列表中各统计任务的统计信 息的上报。
可选地, 当所述统计任务处理请求消息中携带的操作类型字段的内容为 修改统计任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查 改信息修改所述统计任务。
可选地, 当所述统计任务处理请求消息中携带的操作类型字段的内容为 删除统计任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计 S240 , 监视所述统计任务列表中所述统计任务的调度周期, 获取所述统 计任务列表中调度周期到期的统计任务。
具体地, 监视所述统计任务列表中所述统计任务的定时器, 获取所述统 计任务列表中调度周期到期的统计任务。
图 3 中, 交换机通过统计任务调度模块对统计任务列表中各统计任务进 行调度管理, 举例来说, 统计任务列表中保存了如下统计任务: schedul er. id=3 , t imer=500ms, type=3 , reques t _ id=2 , 即该统计任务表示 每 500ms上报一次端口 2的统计信息, 并且为该统计任务设定一个定时器, 当该统计任务被保存到统计任务列表时, 启动该统计任务的定时器, 当该定 时器计时为 500ms 时, 表示上述统计任务的调度周期到期, 统计任务调度模 块从统计任务列表中获取该统计任务。
需要说明的是, 交换机还可以通过硬件触发器等其他能监控时限的设备 来监视统计任务的调度周期。
S250, 向所述控制器上 根据所述统计任务请求消息获得的所述统计任 务的统计对象的统计信息。
在获取到调度周期到期的统计任务后,可选地, 交换机可以通过使用自定 义的回复消息向所述控制器上报端口 2的统计信息(举例为,收发包的速率)。 需要说明的是, 当统计任务列表中保存了多个统计任务时, 在完成一个统计 对象的统计信息上报之后, 统计任务调度模块重置所述上报结束的统计任务 的定时器, 即重新对该统计任务进行计时, 并继续监视统计任务列表中其他 统计任务的调度周期。
需要说明的是,在本发明的其他实施例中,也可以先根据接收到的统计任 务处理请求消息中携带的操作类型字段的内容判断统计任务的操作类型, 当 为创建统计任务时, 获取该完整的统计任务, 并将该统计任务的标识、 调度 周期和统计对象加入到统计任务列表中, 通过监视统计任务的调度周期, 周 期性向控制器上报统计对象的统计信息; 当为修改统计任务时, 获取该统计 任务的标识和修改信息, 查找统计任务列表中与该统计任务的标识相同的统 计任务, 根据上述修改信息修改上述统计任务; 当为删除统计任务时, 获取 该统计任务的标识, 查找统计任务列表中与该统计任务的标识相同的统计任 务, 删除该统计任务。
图 4为本发明实施例二提供的统计信息上报方法流程图。 如图 4所示, 所述方法具体包括:
S410 , 接收控制器发送携带多个统计任务的统计任务处理请求消息。 可选地, 所述统计任务处理请求消息为通过使用 Type Length Va lue (筒 称: TLV )格式的 OpenF low协议定义的请求消息。
需要说明的是, 基于 TLV格式的 OpenFlow协议定义的请求消息格式中, 同样包括 S210中给出的自定义的请求消息中的各字段。 但是, 由于 TLV格式 的 OpenFlow协议定义的请求消息中可携带多个 TLV字段, 因此就可以实现在 请求消息中携带多个统计对象的统计任务。
S420 , 从所述统计任务处理请求消息中获取多个统计任务。
需要说明的是, 当上述统计任务处理请求消息中携带多个统计任务时, 交 换机需要依次根据各统计任务的标识从统计任务处理请求消息中获取各统计 任务。
S430 ,当所述统计任务处理请求消息中携带的操作类型字段的内容为创建 统计任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务 包括: 所述统计任务的标识、 调度周期和统计对象。
举例来说, 交换机在获取到多个统计任务之后,并判断各统计任务的操作 类型字段 co匪 and的内容均为 0时, 即需要创建统计任务时, 将获取到的多 个统计任务全部保存到统计任务列表中。
S440 ,监视所述统计任务列表中各统计任务的定时器,获取所述统计任务 列表中调度周期到期的统计任务。
依照 S420中的方法, 将多个统计任务都保存到统计任务列表时, 启动各 统计任务对应的定时器, 并监视统计任务列表中各统计任务的定时器, 获取 统计任务列表中调度周期到期的统计任务。
S45 0 , 向所述控制器上报根据所述统计任务请求消息获得的所述统计任 务的统计对象的统计信息, 重置所述上 结束的统计任务的定时器。
可选地, 通过使用 TLV格式的 OpenF l ow协议定义的回复消息向所述控制 器上 4艮根据所述统计任务请求消息获得的所述统计任务的统计对象的统计信 息。
具体地,在完成一个统计任务的统计对象的统计信息上 之后,统计任务 调度模块重置所述上 结束的统计任务的定时器, 即重新对该统计任务进行 计时, 并继续监视统计任务列表中其他统计任务的调度周期。
相对于固定格式的请求消息, TLV格式具有更好的灵活性和可扩展性, 同 时一个请求消息中可携带多个统计对象的 TLV字段, 具体地, 统计任务的统 计对象可以为端口、 队列、 流表、 组表或者 Me ter表中的任意多种组合, 这 样一个请求消息就能同时处理多个具体的统计任务。
图 5 为本发明实施例三提供的统计信息上报方法的信息交互图。 如图 5 所示, 本发明实施例具体包括如下步骤:
S510 , 控制器向交换机发送请求消息, 请求交换机处理相应的统计任务;
S520 , 交换机将该请求消息加入统计任务列表中;
S530 , 交换机周期性调度执行统计任务列表中通过请求消息指定的统计 任务;
S540 , 交换机使用回复消息向控制器回复上述统计任务对应的统计信息。 因此, 本发明实施例提供的统计信息上报方法, 针对一类统计信息, 控 制器只需发送一次统计任务处理请求消息, 无需再周期性发送统计任务处理 请求消息, 控制通道上的统计信息数量减少了一半, 能有效节约控制通道的 带宽, 也能减少控制器的额外开销; 而且由于统计周期在交换机端维护, 控 制器通道的消息时延就不会再影响统计信息的准确性, 提高了统计信息的精 确度。
图 6为本发明实施例四提供的统计信息上报装置示意图。 所述装置可以 用于执行图 2所述的方法。 图 6中, 该装置包括: 接收单元 601、 获取单元 602、 保存单元 603、 监视单元 604和上报单元 605。
接收单元 601 ,用于接收控制器发送携带统计任务的统计任务处理请求消 息。
可选地, 所述统计任务处理请求消息为通过使用 TLV 格式的开放流 OpenF l ow协议定义的请求消息。
获取单元 602 ,用于从接收单元 601接收的所述统计任务处理请求消息中 获取统计任务。
保存单元 603 ,用于当所述统计任务处理请求消息中携带的操作类型字段 的内容为创建统计任务时, 将获取单元 602 获取的所述统计任务保存到统计 任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和 统计对象。
监视单元 604 ,用于监视所述统计任务列表中保存单元 603保存的所述统 计任务的调度周期, 获取所述统计任务列表中调度周期到期的统计任务。
监视单元 604 具体用于: 监视所述统计任务列表中所述统计任务的定时 器, 获取所述统计任务列表中调度周期到期的统计任务。
上报单元 605 ,向所述控制器上报根据接收单元 601接收的所述统计任务 请求消息获得的所述统计任务的统计对象的统计信息。
可选地, 当所述统计任务处理请求消息中包括多个统计任务时,通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根据所述统计任 务请求消息获得的所述统计任务的统计对象的统计信息。
可选地, 该装置还包括: 修改单元 606 , 用于当所述统计任务处理请求消 息中携带的操作类型字段的内容为修改统计任务时, 所述统计任务包括: 所 述统计任务的标识和修改信息, 查找所述统计任务列表中与所述统计任务的 标识相同的统计任务, 根据所述修改信息修改所述统计任务。
可选地, 该装置还包括: 删除单元 607 , 用于当所述统计任务处理请求消 息中携带的操作类型字段的内容为删除统计任务时, 所述统计任务包括: 所 述统计任务的标识, 查找所述统计任务列表中与所述统计任务的标识相同的 统计任务, 删除所述统计任务。
可选地, 该装置还包括: 重置单元 608 , 用于重置上 结束的统计任务的 定时器。
因此, 本发明实施例提供的统计信息上报装置, 针对一类统计信息, 控 制器只需发送一次统计任务处理请求消息, 无需再周期性发送统计任务处理 请求消息, 控制通道上的统计信息数量减少了一半, 能有效节约控制通道的 带宽, 也能减少控制器的额外开销; 而且由于统计周期在交换机端维护, 控 制器通道的消息时延就不会再影响统计信息的准确性, 提高了统计信息的精 确度。
图 7为本发明实施例五提供的统计信息上报装置示意图。 如图 7所示, 所述装置包括: 网络接口 701、 处理器 702和存储器 703。 系统总线 704用于 连接网络接口 701、 处理器 702和存储 703。
举例来说, 处理器 702可以是 CPU。
网络接口 701用于与其它设备通信。
存储器 703可以是永久存储器,例如硬盘驱动器和闪存,存储器 703中具 有软件模块和设备驱动程序。 软件模块能够执行本发明上述方法的各种功能 模块; 设备驱动程序可以是网络和接口驱动程序。
在启动时,这些软件组件被加载到存储器 703中,然后被处理器 702访问 并执行如下指令:
接收控制器发送携带统计任务的统计任务处理请求消息;
从所述统计任务处理请求消息中获取统计任务;
当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计 任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和统计对象;
监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列 表中调度周期到期的统计任务;
向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息。
进一步的, 所述应用程序还包括可用于使所述处理器 702 和所述装置执 行以下过程的指令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为修改统计 任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所述统 改所述统计任务。 进一步的, 所述应用程序还包括可用于使所述处理器 802和所述装置执 行以下过程的指令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为删除统计 任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任务列表 中与所述统计任务的标识相同的统计任务, 删除所述统计任务。
进一步的,所述应用程序还包括可用于使所述处理器 802和所述装置执行 以下过程的指令:
监视所述统计任务列表中所述统计任务的定时器,获取所述统计任务列表 中调度周期到期的统计任务。
所述应用程序还包括可用于使所述处理器和所述装置执行以下过程的具 体指令:
重置上 结束的统计任务的定时器。
可选地, 当所述统计任务处理请求消息中包括多个统计任务时, 所述统 计任务处理请求消息为通过使用 TLV格式的开放流 OpenFlow协议定义的请求 消息;
相应的,
通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
综上, 本发明实施例提供的统计信息上报方法及装置, 针对一类统计信 息, 控制器只需发送一次统计任务处理请求消息, 无需再周期性发送统计任 务处理请求消息, 控制通道上的统计信息数量减少了一半, 能有效节约控制 通道的带宽, 也能减少控制器的额外开销; 而且由于统计周期在交换机端维 护, 控制器通道的消息时延就不会再影响统计信息的准确性, 提高了统计信 息的精确度。
专业人员应该还可以进一步意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为 超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、 处理 器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器
( RAM ) 、 内存、 只读存储器(ROM ) 、 电可编程 R0M、 电可擦除可编程 R0M、 寄存器、 硬盘、 可移动磁盘、 CD-R0M、 或技术领域内所公知的任意其它形式 的存储介质中。
以上所述的具体实施方式, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种统计信息上报方法, 其特征在于, 所述方法包括:
接收控制器发送携带统计任务的统计任务处理请求消息;
从所述统计任务处理请求消息中获取统计任务;
当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计 任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和统计对象;
监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列 表中调度周期到期的统计任务;
向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 当所述统计任务处理请求消息中携带的操作类型字段的内容为修改统计 任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所述统 改所述统计任务。
3、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 当所述 统计任务处理请求消息中携带的操作类型字段的内容为删除统计任务时, 所 述统计任务包括: 所述统计任务的标识, 查找所述统计任务列表中与所述统 计任务的标识相同的统计任务, 删除所述统计任务。
4、 根据权利要求 1所述的方法, 其特征在于, 所述监视所述统计任务列 表中所述统计任务的调度周期, 获取所述统计任务列表中调度周期到期的统 计任务包括: 监视所述统计任务列表中所述统计任务的定时器, 获取所述统计任务列 表中调度周期到期的统计任务。
5、 根据权利要求 4所述的方法, 其特征在于, 所述在向所述控制器上报 根据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息之 后, 所述方法还包括:
重置上 结束的统计任务的定时器。
6、 根据权利要求 1至 5任一所述的方法, 其特征在于,
当所述统计任务处理请求消息中包括多个统计任务时, 所述统计任务处 理请求消息为通过使用 TLV格式的开放流 OpenF low协议定义的请求消息; 相应的,
通过使用 TLV格式的 OpenF l ow协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
7、 一种统计信息上报装置, 其特征在于, 所述装置包括: 接收单元、 获 取单元、 保存单元、 监视单元和上报单元;
所述接收单元,用于接收控制器发送携带统计任务的统计任务处理请求消 息;
所述获取单元,用于从所述接收单元接收的所述统计任务处理请求消息中 获取统计任务;
所述保存单元,用于当所述统计任务处理请求消息中携带的操作类型字段 的内容为创建统计任务时, 将所述获取单元获取的所述统计任务保存到统计 任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和 统计对象;
所述监视单元,用于监视所述统计任务列表中所述保存单元保存的所述统 计任务的调度周期, 获取所述统计任务列表中调度周期到期的统计任务; 所述上报单元,向所述控制器上报根据所述接收单元接收的所述统计任务 请求消息获得的所述统计任务的统计对象的统计信息。
8、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括: 修改单 元, 用于当所述统计任务处理请求消息中携带的操作类型字段的内容为修改 统计任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所 息修改所述统计任务。
9、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括: 删除单 元, 用于当所述统计任务处理请求消息中携带的操作类型字段的内容为删除 统计任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任务 列表中与所述统计任务的标识相同的统计任务, 删除所述统计任务。
10、根据权利要求 7所述的装置, 其特征在于, 所述监视单元具体用于: 监视所述统计任务列表中所述统计任务的定时器, 获取所述统计任务列 表中调度周期到期的统计任务。
11、 根据权利要求 10所述的装置, 其特征在于, 所述装置还包括: 重置 单元, 用于重置上 结束的统计任务的定时器。
12、 根据权利要求 7-11任一所述的装置, 其特征在于,
当所述统计任务处理请求消息中包括多个统计任务时, 所述统计任务处 理请求消息为通过使用 TLV格式的开放流 OpenFlow协议定义的请求消息; 相应的, 通过使用 TLV格式的 OpenF l ow协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
1 3、 一种统计信息上报装置, 其特征在于, 所述装置包括:
网络接口;
处理器;
存储器;
物理存储在所述存储器中的应用程序, 所述应用程序包括可用于使所述 处理器和所述装置执行以下过程的指令:
接收控制器发送携带统计任务的统计任务处理请求消息;
从所述统计任务处理请求消息中获取统计任务;
当所述统计任务处理请求消息中携带的操作类型字段的内容为创建统计 任务时, 将所述统计任务保存到统计任务列表中, 其中, 所述统计任务包括: 所述统计任务的标识、 调度周期和统计对象;
监视所述统计任务列表中所述统计任务的调度周期,获取所述统计任务列 表中调度周期到期的统计任务;
向所述控制器上 根据所述统计任务请求消息获得的所述统计任务的统 计对象的统计信息。
14、 根据权利要求 1 3所述的装置, 其特征在于,
所述应用程序还包括可用于使所述处理器和所述装置执行以下过程的指 令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为修改统计 任务时, 所述统计任务包括: 所述统计任务的标识和修改信息, 查找所述统 改所述统计任务。
15、 根据权利要求 1 3所述的装置, 其特征在于,
所述应用程序还包括可用于使所述处理器和所述装置执行以下过程的指 令:
当所述统计任务处理请求消息中携带的操作类型字段的内容为删除统计 任务时, 所述统计任务包括: 所述统计任务的标识, 查找所述统计任务列表 中与所述统计任务的标识相同的统计任务, 删除所述统计任务。
16、 根据权利要求 1 3所述的装置, 其特征在于,
所述应用程序还包括可用于使所述处理器和所述装置执行以下过程的具 体指令:
监视所述统计任务列表中所述统计任务的定时器,获取所述统计任务列表 中调度周期到期的统计任务。
17、 根据权利要求 16所述的装置, 其特征在于, 所述应用程序还包括可 用于使所述处理器和所述装置执行以下过程的具体指令:
重置上 结束的统计任务的定时器。
18、 根据权利要求 1 3-17任一所述的装置, 其特征在于,
当所述统计任务处理请求消息中包括多个统计任务时, 所述统计任务处 理请求消息为通过使用 TLV格式的开放流 OpenF low协议定义的请求消息; 相应的,
通过使用 TLV格式的 OpenF low协议定义的回复消息向所述控制器上报根 据所述统计任务请求消息获得的所述统计任务的统计对象的统计信息。
PCT/CN2014/073605 2014-03-18 2014-03-18 统计信息上报方法及装置 WO2015139199A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480000233.XA CN105264944B (zh) 2014-03-18 2014-03-18 统计信息上报方法及装置
PCT/CN2014/073605 WO2015139199A1 (zh) 2014-03-18 2014-03-18 统计信息上报方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/073605 WO2015139199A1 (zh) 2014-03-18 2014-03-18 统计信息上报方法及装置

Publications (1)

Publication Number Publication Date
WO2015139199A1 true WO2015139199A1 (zh) 2015-09-24

Family

ID=54143631

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073605 WO2015139199A1 (zh) 2014-03-18 2014-03-18 统计信息上报方法及装置

Country Status (2)

Country Link
CN (1) CN105264944B (zh)
WO (1) WO2015139199A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046082A (zh) * 2019-04-15 2019-07-23 苏州浪潮智能科技有限公司 一种io特征信息处理方法、获取方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647747A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备测量的方法、设备及系统
CN102647753A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102647741A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102647743A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102946325A (zh) * 2012-11-14 2013-02-27 中兴通讯股份有限公司 一种基于软件定义网络的网络诊断方法、系统及设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012111051A1 (en) * 2011-02-17 2012-08-23 Nec Corporation Flow communication system
WO2012130264A1 (en) * 2011-03-29 2012-10-04 Nec Europe Ltd. User traffic accountability under congestion in flow-based multi-layer switches
WO2014047784A1 (zh) * 2012-09-25 2014-04-03 华为技术有限公司 报文转发路径确定方法及网络设备、控制设备
CN103391296B (zh) * 2013-07-29 2016-08-24 北京华为数字技术有限公司 一种控制器、转发器及通道建立方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647747A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备测量的方法、设备及系统
CN102647753A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102647741A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102647743A (zh) * 2011-02-17 2012-08-22 中兴通讯股份有限公司 控制用户设备进行测量的方法及系统
CN102946325A (zh) * 2012-11-14 2013-02-27 中兴通讯股份有限公司 一种基于软件定义网络的网络诊断方法、系统及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046082A (zh) * 2019-04-15 2019-07-23 苏州浪潮智能科技有限公司 一种io特征信息处理方法、获取方法及相关装置
CN110046082B (zh) * 2019-04-15 2020-05-29 苏州浪潮智能科技有限公司 一种io特征信息处理方法、获取方法及相关装置

Also Published As

Publication number Publication date
CN105264944B (zh) 2019-06-21
CN105264944A (zh) 2016-01-20

Similar Documents

Publication Publication Date Title
JP7183416B2 (ja) 時間依存ネットワーキング通信方法及び装置
EP3223474B1 (en) Method and device for processing adaptive flow table
CN111355669B (zh) 控制网络拥塞的方法、装置及系统
CN110121180B (zh) 一种数据分析装置、系统及方法
WO2016015582A1 (zh) 传输报文的方法、装置和系统
US20070171909A1 (en) Centralized wireless QoS architecture
CN112702282B (zh) 时间敏感网络的柔性化配置方法和系统
CN105516961A (zh) 无感知认证方法系统,基于该方法系统的控制方法、系统
US20230042747A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
WO2012068909A1 (zh) 基于瘦无线接入点架构的网管实现方法及系统
CN114374647B (zh) 一种对时敏业务流和路由联合调度的规划方法及装置
US11212687B2 (en) Method and system for controlling an operation of a communication network to reduce latency
JP2022532731A (ja) スライスベースネットワークにおける輻輳回避
JP7348293B2 (ja) データ処理方法及び機器
CN107623752B (zh) 基于链路层的网络管理方法和装置
WO2023015644A1 (zh) 一种链式业务流调度的规划方法和系统架构
US10263864B2 (en) Apparatus and method for collecting adaptive flow statistics data in carrier network
WO2015196914A1 (en) Information communication methods, apparatuses and systems
WO2015139199A1 (zh) 统计信息上报方法及装置
WO2022156691A1 (zh) 网络切片通信的方法、装置和系统
WO2022127386A1 (zh) 状态迁移的方法、网络设备及存储介质
WO2021208882A1 (zh) 一种能效评估方法及相关设备
CN114245317B (zh) 数据处理方法、装置及计算机可读存储介质
Pirzada et al. esdn: Rethinking datacenter transports using end-host sdn controllers
WO2017165999A1 (zh) 网络服务实现方法、服务控制器及通信系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480000233.X

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14886331

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14886331

Country of ref document: EP

Kind code of ref document: A1