WO2016045185A1 - 通知消息的获取、上报方法、装置及通知消息的交互系统 - Google Patents
通知消息的获取、上报方法、装置及通知消息的交互系统 Download PDFInfo
- Publication number
- WO2016045185A1 WO2016045185A1 PCT/CN2014/092175 CN2014092175W WO2016045185A1 WO 2016045185 A1 WO2016045185 A1 WO 2016045185A1 CN 2014092175 W CN2014092175 W CN 2014092175W WO 2016045185 A1 WO2016045185 A1 WO 2016045185A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- meter
- packet loss
- notification message
- loss rate
- ofpt
- Prior art date
Links
Images
Definitions
- the present invention relates to the field of communications, and in particular to an interactive system for acquiring, reporting, and reporting a notification message.
- FIG. 1 is a schematic diagram of an OpenFlow network component architecture according to the related art.
- the control plane of the OpenFlow network is implemented by an OpenFlow controller.
- the OpenFlow controller is a device with powerful computing capabilities.
- the specific device configuration can be a PC, a server, or a server cluster.
- the forwarding plane of the OpenFlow network is implemented by an OpenFlow switch.
- the OpenFlow switch is a device with powerful switching capabilities.
- the specific device configuration can be equipped with multiple network ports and a flow table for packet processing and forwarding. Meta device.
- the interface between the OpenFlow controller and the OpenFlow switch runs the OpenFlow protocol. Therefore, the interface is also called OpenFlow Channel.
- the OpenFlow protocol is developed and modified by the International Standards Organization Open Networking Foundation (ONF).
- the current OpenFlow protocol defines a meter table.
- the content of the meter is sent by the controller to the SDN forwarding device.
- the meter is directly connected to the flow table entry.
- Any flow table entry can define a meter in its instruction set. , measuring and controlling the rate of all streams connected to it.
- the metering band in the meter defines the minimum rate at which it can operate and the way in which packets are processed, enabling the rate of control of the data stream transmitted over the band.
- the rate of the data stream is higher than the lowest rate that can be set in the metering band, the data stream is discarded, so that when the packet loss is relatively large, the user experience will be affected.
- the current related technology does not provide a solution that can dynamically increase the rate of a packet when the packet loss rate of a certain service data reaches a preset threshold, so as to ensure normal forwarding of the data stream and improve the user's
- An embodiment of the present invention provides an interaction system for acquiring, reporting, and reporting a notification message, so as to at least solve the lack of a preset threshold for the packet loss rate of a service data flow in the related art, and thus cannot implement dynamic The problem of adjusting the metering rate of the metering belt.
- a method of acquiring a notification message is provided.
- the method for obtaining a notification message includes: transmitting a meter to an SDN forwarding device, where the meter carries a preset packet loss rate; and receiving a notification message from the SDN forwarding device, where the notification message is The actual packet loss rate of the currently processed service data flow is triggered when the actual packet loss rate is greater than the preset packet loss rate.
- the issuance of the meter to the SDN forwarding device comprises: expanding the OFPT_METER_MOD in the OpenFlow protocol; and transmitting the meter by sending the OFPT_METER_MOD to the SDN forwarding device.
- a flag is added to the OFPT_METER_MOD, where the flag is used to indicate that the SDN forwarding device reports the meter when the actual packet loss rate is greater than the preset packet loss rate.
- a data type is added in the OFPT_METER_MOD, wherein the data type is used to set the actual packet loss rate monitored by the meter.
- the notification message is an asynchronous message of the OpenFlow protocol.
- the method further includes: adjusting a metering rate of the service data stream according to the notification message, or managing the notification message.
- a reporting method of a notification message is provided.
- the reporting method of the notification message includes: receiving a meter from a software-defined network SDN controller, wherein the meter carries a preset packet loss rate; and monitoring the actual processing of the currently processed service data stream When the packet loss rate is greater than the preset packet loss rate, a notification message is sent to the SDN controller.
- receiving the meter from the SDN controller comprises: receiving an OFPT_METER_MOD in an extended OpenFlow protocol sent by the SDN controller; and obtaining a meter from the OFPT_METER_MOD.
- the newly added flag bit is obtained from the OFPT_METER_MOD, wherein the flag bit is used to indicate that the meter is reported to the SDN controller when the actual packet loss rate is greater than the preset packet loss rate.
- the newly added data type is obtained from OFPT_METER_MOD, wherein the data type is used to set the actual packet loss rate monitored by the meter.
- the notification message is an asynchronous message of the OpenFlow protocol.
- an apparatus for acquiring a notification message is provided.
- the device for obtaining a notification message includes: a sending module, configured to send a meter to a software-defined network SDN forwarding device, wherein the meter carries a preset packet loss rate; and the receiving module is configured to receive A notification message from the SDN forwarding device, wherein the notification message is triggered if the actual packet loss rate of the currently processed service data stream is greater than a preset packet loss rate.
- the sending module includes: a configuration unit configured to extend the OFPT_METER_MOD in the OpenFlow protocol; and a sending unit configured to send the meter by sending the OFPT_METER_MOD to the SDN forwarding device.
- the configuration unit is configured to add a flag bit to the OFPT_METER_MOD, wherein the flag bit is used to indicate that the SDN forwarding device reports the meter when the actual packet loss rate is greater than the preset packet loss rate.
- the configuration unit is configured to add a data type in the OFPT_METER_MOD, wherein the data type is used to set the actual packet loss rate monitored by the meter.
- the notification message is an asynchronous message of the OpenFlow protocol.
- the apparatus further includes: a processing module, configured to adjust a metering rate of the service data flow according to the notification message, or to manage the notification message.
- a processing module configured to adjust a metering rate of the service data flow according to the notification message, or to manage the notification message.
- a reporting apparatus for a notification message is provided.
- the reporting device of the notification message includes: a receiving module, configured to receive a meter from a software-defined network SDN controller, wherein the meter carries a preset packet loss rate; and the sending module is configured to be If the actual packet loss rate of the currently processed service data flow is greater than the preset packet loss rate, the notification message is sent to the SDN controller.
- the receiving module comprises: a receiving unit configured to receive the OFPT_METER_MOD in the extended OpenFlow OpenFlow protocol sent by the SDN controller; and an obtaining unit configured to obtain the meter from the OFPT_METER_MOD.
- the obtaining unit is configured to obtain the newly added flag bit from the OFPT_METER_MOD, wherein the flag bit is used to indicate that the meter is reported to the SDN controller when the actual packet loss rate is greater than the preset packet loss rate.
- the obtaining unit is configured to obtain a new data type from the OFPT_METER_MOD, wherein the data type is used to set an actual packet loss rate monitored by the meter.
- the notification message is an asynchronous message of the OpenFlow protocol.
- an interactive system for notification messages is provided.
- the interaction system of the notification message includes: the acquisition device of the notification message and the reporting device of the notification message.
- the meter is sent to the SDN forwarding device, where the meter carries the preset packet loss rate, and receives the notification message from the SDN forwarding device, where the notification message is the currently processed service data. If the actual packet loss rate of the flow is greater than the preset packet loss rate, the related technology lacks a preset threshold for the packet loss rate of a service data flow, and thus the measurement rate of the measurement band cannot be dynamically adjusted. The problem, in turn, can dynamically increase the rate of the metering band, ensure the normal forwarding of the data stream, and improve the user experience.
- FIG. 1 is a schematic diagram of an OpenFlow network component architecture according to related art
- FIG. 2 is a flowchart of a method for acquiring a notification message according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for reporting a notification message according to an embodiment of the present invention
- FIG. 4 is a flow chart of dynamically adjusting a meter table in accordance with a preferred embodiment of the present invention.
- FIG. 5 is a structural block diagram of an apparatus for acquiring a notification message according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of an apparatus for acquiring a notification message according to a preferred embodiment of the present invention.
- FIG. 7 is a structural block diagram of a reporting apparatus of a notification message according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of a reporting apparatus for a notification message according to a preferred embodiment of the present invention.
- FIG. 9 is a structural block diagram of an interactive system of a notification message according to an embodiment of the present invention.
- FIG. 2 is a flow chart of a method for acquiring a notification message according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following processing steps:
- Step S202 Delivering a meter to the SDN forwarding device, where the meter carries a preset packet loss rate
- Step S204 Receive a notification message from the SDN forwarding device, where the notification message is triggered if the actual packet loss rate of the currently processed service data stream is greater than the preset packet loss rate.
- the measurement rate of the measurement band can be dynamically adjusted.
- the preset packet loss rate is added to the meter sent to the SDN forwarding device, so that the actual packet loss rate of the currently processed service data stream is greater than the preset packet loss rate.
- the SDN forwarding device is triggered to send a notification message to inform the SDN controller of the above situation, so that the SDN controller adjusts the metering rate of the metering band in time.
- the problem that the metering rate of the metering band can be dynamically adjusted when the packet loss rate of a certain service data reaches a preset threshold cannot be realized in the related art, thereby dynamically increasing the rate of the metering band and ensuring the data flow. Normal forwarding to improve the user experience.
- delivering the meter to the SDN forwarding device may include the following operations:
- Step S1 expanding the OFPT_METER_MOD in the OpenFlow OpenFlow protocol
- Step S2 The meter is delivered by sending the OFPT_METER_MOD to the SDN forwarding device.
- a flag bit may be added to the OFPT_METER_MOD, where the flag bit is used to indicate that the SDN forwarding device reports the meter when the actual packet loss rate is greater than the preset packet loss rate.
- the flag bit is used to indicate that the SDN forwarding device reports the meter when the actual packet loss rate is greater than the preset packet loss rate.
- a data type may be added in the OFPT_METER_MOD, wherein the data type is used to set the actual packet loss rate monitored by the meter.
- the notification message may be an asynchronous message of the OpenFlow protocol, and the SDN forwarding device reports the asynchronous message to the controller when the packet loss rate of the service data flow is higher than the default packet loss rate in the meter. .
- step S204 after receiving the notification message from the SDN forwarding device in step S204, the following operations may also be included:
- Step S3 Adjust the measurement rate of the service data flow according to the notification message, or manage the notification message. That is, the SDN controller can adjust the measurement rate of the service data flow in time after receiving the notification message, and can also store the notification message for subsequent processing.
- FIG. 3 is a flowchart of a method for reporting a notification message according to an embodiment of the present invention. As shown in FIG. 3, the method may include the following processing steps:
- Step S302 Receive a meter from the SDN controller, where the meter carries a preset packet loss rate;
- Step S304 Send a notification message to the SDN controller if the actual packet loss rate of the currently processed service data flow is greater than the preset packet loss rate.
- receiving the meter from the software defined network SDN controller may include the following operations:
- Step S4 receiving the OFPT_METER_MOD in the extended OpenFlow OpenFlow protocol sent by the SDN controller;
- Step S5 Obtain a meter from OFPT_METER_MOD.
- the newly added flag bit can be obtained from the OFPT_METER_MOD, wherein the flag bit is used to indicate that the meter is reported to the SDN controller when the actual packet loss rate is greater than the preset packet loss rate.
- the newly added data type can be obtained from the OFPT_METER_MOD, wherein the data type is used to set the actual packet loss rate monitored by the meter.
- the foregoing notification message may be an asynchronous message of the OpenFlow protocol.
- the OFPT_METER_MOD in the existing OpenFlow protocol is extended, and the packet loss rate is defined in the OFPT_METER_MOD.
- the SDN controller can send the meter table by sending the OFPT_METER_MOD to the SDN forwarding device. To do this, you need to expand as follows:
- OFPMF_NOTIF 1 ⁇ 4, /* reported to the controller */
- a new type is added to the struct ofp_meter_band_type to set the packet loss rate value controlled by the current meter table.
- OFPT_MONITOR_NOTIFY 30, /*Async message*/
- FIG. 4 is a flow diagram of dynamically adjusting a meter table in accordance with a preferred embodiment of the present invention. As shown in FIG. 4, the process may include the following processing steps:
- Step S402 The SDN controller sends the meter to the SDN forwarding device, where the delivered meter table can carry the lowest rate and the maximum packet loss rate.
- the SDN controller may deliver the meter table by sending an OFPT_METER_MOD to the SDN forwarding device.
- a flag is added to the flags in the OFPT_METER_MOD to indicate whether the meter table needs to be reported to the controller when the packet loss rate of the service data stream is higher than the packet loss rate set in the meter table. If the value is set to 1, Note that the meter table needs to be reported to the controller.
- a new type can be added to the struct ofp_meter_band_type to set the value of the packet loss rate controlled by the current meter.
- Step S404 When the packet loss rate of the service data flow is higher than the packet loss rate set in the meter, the SDN forwarding device sends an asynchronous message to the SDN controller, where the packet loss rate of the controller service data flow is higher than the meter.
- the packet loss rate set in the table When the packet loss rate of the service data flow is higher than the packet loss rate set in the meter, the SDN forwarding device sends an asynchronous message to the SDN controller, where the packet loss rate of the controller service data flow is higher than the meter.
- the packet loss rate set in the table is set in the packet loss rate set in the table.
- Step S406 After receiving the asynchronous message, the SDN controller may reset the band value of the meter table as needed.
- FIG. 5 is a structural block diagram of an apparatus for acquiring a notification message according to an embodiment of the present invention.
- the device may be applied to the SDN controller.
- the device for acquiring the notification message may include: a sending module 10, configured to send a meter to the SDN forwarding device, where the meter carries a preset to be preset
- the packet loss rate is received by the receiving module 20, and is configured to receive a notification message from the SDN forwarding device, where the notification message is triggered if the actual packet loss rate of the currently processed service data stream is greater than the preset packet loss rate.
- the device shown in FIG. 5 solves the problem that the prior art lacks a preset threshold for the packet loss rate of a certain service data flow, thereby failing to dynamically adjust the measurement rate of the measurement band, thereby dynamically increasing the measurement.
- the rate of the band ensures the normal forwarding of the data stream and improves the user experience.
- the sending module 10 may include: a configuration unit 100 configured to extend the OFPT_METER_MOD in the OpenFlow OpenFlow protocol; and a sending unit 102 configured to send the meter by sending the OFPT_METER_MOD to the SDN forwarding device. table.
- the configuration unit 100 is configured to add a flag bit in the OFPT_METER_MOD, wherein the flag bit is used to indicate that the SDN forwarding device reports the meter when the actual packet loss rate is greater than the preset packet loss rate.
- the configuration unit 100 is configured to add a data type in the OFPT_METER_MOD, wherein the data type is used to set an actual packet loss rate monitored by the meter.
- the foregoing notification message may be an asynchronous message of the OpenFlow protocol.
- the apparatus may further include: a processing module 30 configured to adjust a metering rate of the service data flow according to the notification message, or to manage the notification message.
- a processing module 30 configured to adjust a metering rate of the service data flow according to the notification message, or to manage the notification message.
- FIG. 7 is a structural block diagram of a reporting apparatus for a notification message according to an embodiment of the present invention.
- the apparatus may be applied to an SDN forwarding device.
- the reporting device of the notification message may include: a receiving module 40 configured to receive a meter from the SDN controller, wherein the meter carries a preset The packet loss rate is set to send a notification message to the SDN controller when the actual packet loss rate of the currently processed service data stream is greater than the preset packet loss rate.
- the receiving module 40 may include: a receiving unit 400 configured to receive an OFPT_METER_MOD in an extended OpenFlow OpenFlow protocol sent by an SDN controller; and an obtaining unit 402 configured to obtain a meter from the OFPT_METER_MOD .
- the obtaining unit 402 is configured to obtain the newly added flag bit from the OFPT_METER_MOD, wherein the flag bit is used to indicate that the meter is reported to the SDN controller when the actual packet loss rate is greater than the preset packet loss rate.
- the obtaining unit 402 is configured to obtain a new data type from the OFPT_METER_MOD, wherein the data type is used to set an actual packet loss rate monitored by the meter.
- the foregoing notification message may be an asynchronous message of the OpenFlow protocol.
- the interactive system of the notification message may include: an acquisition device 1 for notifying a message and a reporting device 2 for notifying a message.
- a preset packet loss rate is added to the meter delivered by the SDN forwarding device to trigger the SDN forwarding device to send a notification message when the actual packet loss rate of the currently processed service data flow is greater than the preset packet loss rate.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the interactive system for acquiring, reporting, and reporting a notification message provided by the embodiment of the present invention has the following beneficial effects: the rate of the metering band can be dynamically increased, and the normal forwarding of the data stream is ensured. user experience.
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种通知消息的获取、上报方法、装置及通知消息的交互系统,在上述方法中,向SDN转发设备下发计量表,其中,计量表中携带有预设丢包率;接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的。根据本发明提供的技术方案,能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
Description
本发明涉及通信领域,具体而言,涉及一种通知消息的获取、上报方法、装置及通知消息的交互系统。
随着软件定义网络(Software Defined Network,简称为SDN)概念的提出及其应用的发展,作为SDN核心技术的开放流(OpenFlow)技术正处于快速发展阶段。目前,利用OpenFlow技术建设的OpenFlow网络已经越来越多地应用于实际的生产生活中。OpenFlow网络采用控制平面与转发平面(亦被称为数据平面或用户平面)相分离的架构。图1是根据相关技术的OpenFlow网络组件架构示意图。如图1所示,OpenFlow网络的控制平面由OpenFlow控制器来实现,OpenFlow控制器是一种具备强大计算能力的设备,其具体的设备形态可以是个人电脑、服务器或服务器集群等。OpenFlow网络的转发平面由OpenFlow交换机来实现,OpenFlow交换机是一种具备强大交换能力的设备,其具体的设备形态可以配备多个网络端口、基于流表(Flow Table)进行报文处理与转发的网元设备。OpenFlow控制器与OpenFlow交换机之间的接口运行OpenFlow协议,故而,该接口亦被称为OpenFlow通道(OpenFlow Channel)。
OpenFlow协议由国际标准组织开放网络基金会(Open Networking Foundation,简称为ONF)负责制定和修改。当前的OpenFlow协议定义了计量表(meter table),该计量表的内容由控制器下发至SDN转发设备,计量直接连接到流表项,任意的流表项可以在它的指令集中定义一个计量,计量测量和控制与其相连的所有流的速率。计量表中的计量带定义了带可以运行的最低速率和处理数据包的方式,能够实现控制通过带传送的数据流的速率。当数据流的速率高于计量带中设置的可以运行的最低速率时,数据流会丢弃,这样丢包比较多的时候,将会影响用户体验。然而,目前相关技术中并没有提供一种解决方案能够实现当某个业务数据流的丢包率达到预设阈值时,能够动态增大带的速率,以保证数据流的正常转发,提高用户的体验。
发明内容
本发明实施例提供了一种通知消息的获取、上报方法、装置及通知消息的交互系统,以至少解决相关技术中缺乏针对某个业务数据流的丢包率配置预设阈值,因而无法实现动态调整计量带的计量速率的问题。
根据本发明的一个方面,提供了一种通知消息的获取方法。
根据本发明实施例的通知消息的获取方法包括:向SDN转发设备下发计量表,其中,计量表中携带有预设丢包率;接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的。
优选地,向SDN转发设备下发计量表包括:对开放流(OpenFlow)协议中的OFPT_METER_MOD进行扩展;通过向SDN转发设备发送OFPT_METER_MOD来下发计量表。
优选地,在OFPT_METER_MOD中新增一个标志位,其中,标志位用于当实际丢包率大于预设丢包率时,指示SDN转发设备上报计量表。
优选地,在OFPT_METER_MOD中新增一种数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
优选地,通知消息为OpenFlow协议的异步消息。
优选地,在接收来自于SDN转发设备的通知消息之后,还包括:根据通知消息调整业务数据流的计量速率,或者,对通知消息进行管理。
根据本发明的另一方面,提供了一种通知消息的上报方法。
根据本发明实施例的通知消息的上报方法包括:接收来自于软件定义网络SDN控制器的计量表,其中,计量表中携带有预设丢包率;在监控到当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,向SDN控制器发送通知消息。
优选地,接收来自于SDN控制器的计量表包括:接收SDN控制器发送的经过扩展的开放流(OpenFlow)协议中的OFPT_METER_MOD;从OFPT_METER_MOD中获取计量表。
优选地,从OFPT_METER_MOD中获取新增的标志位,其中,标志位用于指示当实际丢包率大于预设丢包率时,向SDN控制器上报计量表。
优选地,从OFPT_METER_MOD中获取新增的数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
优选地,通知消息为OpenFlow协议的异步消息。
根据本发明的又一方面,提供了一种通知消息的获取装置。
根据本发明实施例的通知消息的获取装置包括:下发模块,设置为向软件定义网络SDN转发设备下发计量表,其中,计量表中携带有预设丢包率;接收模块,设置为接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的。
优选地,下发模块包括:配置单元,设置为对OpenFlow协议中的OFPT_METER_MOD进行扩展;发送单元,设置为通过向SDN转发设备发送OFPT_METER_MOD来下发计量表。
优选地,配置单元,设置为在OFPT_METER_MOD中新增一个标志位,其中,标志位用于当实际丢包率大于预设丢包率时,指示SDN转发设备上报计量表。
优选地,配置单元,设置为在OFPT_METER_MOD中新增一种数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
优选地,通知消息为OpenFlow协议的异步消息。
优选地,上述装置还包括:处理模块,设置为根据通知消息调整业务数据流的计量速率,或者,对通知消息进行管理。
根据本发明的再一方面,提供了一种通知消息的上报装置。
根据本发明实施例的通知消息的上报装置包括:接收模块,设置为接收来自于软件定义网络SDN控制器的计量表,其中,计量表中携带有预设丢包率;发送模块,设置为在监控到当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,向SDN控制器发送通知消息。
优选地,接收模块包括:接收单元,设置为接收SDN控制器发送的经过扩展的开放流OpenFlow协议中的OFPT_METER_MOD;获取单元,设置为从OFPT_METER_MOD中获取计量表。
优选地,获取单元,设置为从OFPT_METER_MOD中获取新增的标志位,其中,标志位用于指示当实际丢包率大于预设丢包率时,向SDN控制器上报计量表。
优选地,获取单元,设置为从OFPT_METER_MOD中获取新增的数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
优选地,通知消息为OpenFlow协议的异步消息。
根据本发明的再一方面,提供了一种通知消息的交互系统。
根据本发明实施例的通知消息的交互系统包括:上述通知消息的获取装置以及上述通知消息的上报装置。
通过本发明实施例,采用向SDN转发设备下发计量表,其中,计量表中携带有预设丢包率;接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的,解决了相关技术中缺乏针对某个业务数据流的丢包率配置预设阈值,因而无法实现动态调整计量带的计量速率的问题,进而能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据相关技术的OpenFlow网络组件架构示意图;
图2是根据本发明实施例的通知消息的获取方法的流程图;
图3是根据本发明实施例的通知消息的上报方法的流程图;
图4是根据本发明优选实施例的动态调整meter表的流程图;
图5是根据本发明实施例的通知消息的获取装置的结构框图;
图6是根据本发明优选实施例的通知消息的获取装置的结构框图;
图7是根据本发明实施例的通知消息的上报装置的结构框图;
图8是根据本发明优选实施例的通知消息的上报装置的结构框图;
图9是根据本发明实施例的通知消息的交互系统的结构框图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
图2是根据本发明实施例的通知消息的获取方法的流程图。如图2所示,该方法可以包括以下处理步骤:
步骤S202:向SDN转发设备下发计量表,其中,计量表中携带有预设丢包率;
步骤S204:接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的。
相关技术中,无法实现当某个业务数据流的丢包率达到预设阈值时,能够动态调整计量带的计量速率。采用如图2所示的方法,通过在向SDN转发设备下发的计量表中新增预设丢包率,用以在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,触发SDN转发设备发送通知消息,告知SDN控制器所出现的上述情况,以使SDN控制器及时对计量带的计量速率进行调整。由此解决了相关技术中无法实现当某个业务数据流的丢包率达到预设阈值时,能够动态调整计量带的计量速率的问题,进而能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
优选地,在步骤S202中,向SDN转发设备下发计量表可以包括以下操作:
步骤S1:对开放流OpenFlow协议中的OFPT_METER_MOD进行扩展;
步骤S2:通过向SDN转发设备发送OFPT_METER_MOD来下发计量表。
优选地,在步骤S1中,可以在OFPT_METER_MOD中新增一个标志位,其中,该标志位用于当实际丢包率大于预设丢包率时,指示SDN转发设备上报计量表。在具体实施过程中,如果该标志位设置为1,则说明SDN转发设备需要将计量表上报至SDN控制器;如果该标志位设置为0,则说明SDN转发设备无需将计量表上报至SDN控制器。
优选地,在步骤S1中,可以在OFPT_METER_MOD中新增一种数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
在优选实施过程中,上述通知消息可以为OpenFlow协议的异步消息,用于当业务数据流的丢包率高于meter表中预设的丢包率时,SDN转发设备上报该异步消息给控制器。
优选地,在步骤S204,接收来自于SDN转发设备的通知消息之后,还可以包括以下操作:
步骤S3:根据通知消息调整业务数据流的计量速率,或者,对通知消息进行管理。即SDN控制器既可以在接收到上述通知消息后,及时对业务数据流的计量速率进行调整,也可以对通知消息进行存储,以便后续处理。
图3是根据本发明实施例的通知消息的上报方法的流程图。如图3所示,该方法可以包括以下处理步骤:
步骤S302:接收来自于SDN控制器的计量表,其中,计量表中携带有预设丢包率;
步骤S304:在监控到当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,向SDN控制器发送通知消息。
优选地,在步骤S302中,接收来自于软件定义网络SDN控制器的计量表可以包括以下操作:
步骤S4:接收SDN控制器发送的经过扩展的开放流OpenFlow协议中的OFPT_METER_MOD;
步骤S5:从OFPT_METER_MOD中获取计量表。
优选地,在步骤S5中,可以从OFPT_METER_MOD中获取新增的标志位,其中,标志位用于指示当实际丢包率大于预设丢包率时,向SDN控制器上报计量表。
优选地,在步骤S5中,可以从OFPT_METER_MOD中获取新增的数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
在优选实施过程中,上述通知消息可以为OpenFlow协议的异步消息。
下面将通过以下两个优选实施例对上述优选实施过程作进一步的描述。
优选实施例一
在该优选实施例中,对现有OpenFlow协议中的OFPT_METER_MOD进行扩展,在OFPT_METER_MOD中定义丢包率。
SDN控制器可以通过向SDN转发设备发送OFPT_METER_MOD以此来下发meter表。为此,需要进行如下扩展:
1、在OFPT_METER_MOD内的flags中增加一个标记位,其用于指示当业务数据流的丢包率高于meter表中预先设置的丢包率时,是否需要将meter表上报至控制器,如果设置为1,则说明需要将meter表上报至控制器。
/*Meter configuration flags*/
enum ofp_meter_flags{
OFPMF_KBPS=1<<0,
OFPMF_PKTPS=1<<1,
OFPMF_BURST=1<<2,
OFPMF_STATS=1<<3,
OFPMF_NOTIF=1<<4,/*上报至控制器*/
};
2、struct ofp_meter_band_type中新增加一个类型,用于设置当前meter表控制的丢包率数值。
3、新增加了一种异步消息,用于当业务数据流的丢包率高于meter表中预先设置的丢包率时,SDN转发设备将该异步消息上报至控制器。针对该异步消息,新增加一个消息类型为30,即对原有的ofp_type扩展如下:
enum ofp_type{
….
OFPT_MONITOR_NOTIFY=30,/*Async message*/
};
其消息的具体内容如下:
优选实施例二
图4是根据本发明优选实施例的动态调整meter表的流程图。如图4所示,该流程可以包括以下处理步骤:
步骤S402:SDN控制器下发meter表至SDN转发设备,其中,下发的meter表中可以携带有最低速率以及最大丢包率。
在优选实施过程中,SDN控制器可以通过向SDN转发设备发送OFPT_METER_MOD来下发meter表。在OFPT_METER_MOD内的flags中增加一个标记位,用于指示当业务数据流的丢包率高于meter表中设置的丢包率时,是否需要将meter表上报至控制器,如果设置为1,则说明需要将meter表上报至控制器。
此外,还可以在struct ofp_meter_band_type中新增加一个类型,用于设置当前meter表控制的丢包率数值。
步骤S404:当业务数据流的丢包率高于meter表中设置的丢包率时,SDN转发设备会向SDN控制器发送异步消息,用于通告控制器业务数据流的丢包率高于meter表中设置的丢包率。
步骤S406:SDN控制器在接收到上述异步消息后,根据需要可以重新设置meter表的band值。
图5是根据本发明实施例的通知消息的获取装置的结构框图。该装置可以应用于SDN控制器中,如图5所示,该通知消息的获取装置可以包括:下发模块10,设置为向SDN转发设备下发计量表,其中,计量表中携带有待预设丢包率;接收模块20,设置为接收来自于SDN转发设备的通知消息,其中,通知消息是在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下被触发的。
采用如图5所示的装置,解决了相关技术中缺乏针对某个业务数据流的丢包率配置预设阈值,因而无法实现动态调整计量带的计量速率的问题,进而能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
优选地,如图6所示,下发模块10可以包括:配置单元100,设置为对开放流OpenFlow协议中的OFPT_METER_MOD进行扩展;发送单元102,设置为通过向SDN转发设备发送OFPT_METER_MOD来下发计量表。
优选地,配置单元100,设置为在OFPT_METER_MOD中新增一个标志位,其中,标志位用于当实际丢包率大于预设丢包率时,指示SDN转发设备上报计量表。
优选地,配置单元100,设置为在OFPT_METER_MOD中新增一种数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
在优选实施过程中,上述通知消息可以为OpenFlow协议的异步消息。
优选地,如图6所示,上述装置还可以包括:处理模块30,设置为根据通知消息调整业务数据流的计量速率,或者,对通知消息进行管理。
图7是根据本发明实施例的通知消息的上报装置的结构框图。该装置可以应用于SDN转发设备中,如图7所示,该通知消息的上报装置可以包括:接收模块40,设置为接收来自于SDN控制器的计量表,其中,计量表中携带有预设丢包率;发送模块50,设置为在监控到当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,向SDN控制器发送通知消息。
优选地,如图8所示,接收模块40可以包括:接收单元400,设置为接收SDN控制器发送的经过扩展的开放流OpenFlow协议中的OFPT_METER_MOD;获取单元402,设置为从OFPT_METER_MOD中获取计量表。
优选地,获取单元402,设置为从OFPT_METER_MOD中获取新增的标志位,其中,标志位用于指示当实际丢包率大于预设丢包率时,向SDN控制器上报计量表。
优选地,获取单元402,设置为从OFPT_METER_MOD中获取新增的数据类型,其中,数据类型用于设置计量表监控的实际丢包率。
在优选实施过程中,上述通知消息可以为OpenFlow协议的异步消息。
图9是根据本发明实施例的通知消息的交互系统的结构框图。如图9所示,该通知消息的交互系统可以包括:通知消息的获取装置1以及通知消息的上报装置2。
从以上的描述中,可以看出,上述实施例实现了如下技术效果(需要说明的是这些效果是某些优选实施例可以达到的效果):采用本发明实施例所提供的技术方案,通过在向SDN转发设备下发的计量表中新增预设丢包率,用以在当前处理的业务数据流的实际丢包率大于预设丢包率的情况下,触发SDN转发设备发送通知消息,告知SDN控制器所出现的上述情况,以使SDN控制器及时对计量带的计量速率进行调整,能够
动态调整计量带的计量速率的问题,进而能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
如上所述,本发明实施例提供的一种通知消息的获取、上报方法、装置及通知消息的交互系统具有以下有益效果:能够动态地增大计量带的速率,确保数据流的正常转发,提高用户体验。
Claims (23)
- 一种通知消息的获取方法,包括:向软件定义网络SDN转发设备下发计量表,其中,所述计量表中携带有预设丢包率;接收来自于所述SDN转发设备的通知消息,其中,所述通知消息是在当前处理的业务数据流的实际丢包率大于所述预设丢包率的情况下被触发的。
- 根据权利要求1所述的方法,其中,向所述SDN转发设备下发所述计量表包括:对开放流OpenFlow协议中的OFPT_METER_MOD进行扩展;通过向所述SDN转发设备发送所述OFPT_METER_MOD来下发所述计量表。
- 根据权利要求2所述的方法,其中,在所述OFPT_METER_MOD中新增一个标志位,其中,所述标志位用于当所述实际丢包率大于所述预设丢包率时,指示所述SDN转发设备上报所述计量表。
- 根据权利要求2所述的方法,其中,在所述OFPT_METER_MOD中新增一种数据类型,其中,所述数据类型用于设置所述计量表监控的所述实际丢包率。
- 根据权利要求2所述的方法,其中,所述通知消息为所述OpenFlow协议的异步消息。
- 根据权利要求1所述的方法,其中,在接收来自于所述SDN转发设备的所述通知消息之后,还包括:根据所述通知消息调整所述业务数据流的计量速率,或者,对所述通知消息进行管理。
- 一种通知消息的上报方法,包括:接收来自于软件定义网络SDN控制器的计量表,其中,所述计量表中携带有预设丢包率;在监控到当前处理的业务数据流的实际丢包率大于所述预设丢包率的情况下,向所述SDN控制器发送通知消息。
- 根据权利要求7所述的方法,其中,接收来自于所述SDN控制器的计量表包括:接收所述SDN控制器发送的经过扩展的开放流OpenFlow协议中的OFPT_METER_MOD;从所述OFPT_METER_MOD中获取所述计量表。
- 根据权利要求8所述的方法,其中,从所述OFPT_METER_MOD中获取新增的标志位,其中,所述标志位用于指示当所述实际丢包率大于所述预设丢包率时,向所述SDN控制器上报所述计量表。
- 根据权利要求8所述的方法,其中,从所述OFPT_METER_MOD中获取新增的数据类型,其中,所述数据类型用于设置所述计量表监控的所述实际丢包率。
- 根据权利要求8所述的方法,其中,所述通知消息为所述OpenFlow协议的异步消息。
- 一种通知消息的获取装置,包括:下发模块,设置为向软件定义网络SDN转发设备下发计量表,其中,所述计量表中携带有预设丢包率;接收模块,设置为接收来自于所述SDN转发设备的通知消息,其中,所述通知消息是在当前处理的业务数据流的实际丢包率大于所述预设丢包率的情况下被触发的。
- 根据权利要求12所述的装置,其中,所述下发模块包括:配置单元,设置为对开放流OpenFlow协议中的OFPT_METER_MOD进行扩展;发送单元,设置为通过向所述SDN转发设备发送所述OFPT_METER_MOD来下发所述计量表。
- 根据权利要求13所述的装置,其中,所述配置单元,设置为在所述OFPT_METER_MOD中新增一个标志位,其中,所述标志位用于当所述实际丢包率大于所述预设丢包率时,指示所述SDN转发设备上报所述计量表。
- 根据权利要求13所述的装置,其中,所述配置单元,设置为在所述OFPT_METER_MOD中新增一种数据类型,其中,所述数据类型用于设置所述计量表监控的所述实际丢包率。
- 根据权利要求13所述的装置,其中,所述通知消息为所述OpenFlow协议的异步消息。
- 根据权利要求12所述的装置,其中,所述装置还包括:处理模块,设置为根据所述通知消息调整所述业务数据流的计量速率,或者,对所述通知消息进行管理。
- 一种通知消息的上报装置,包括:接收模块,设置为接收来自于软件定义网络SDN控制器的计量表,其中,所述计量表中携带有预设丢包率;发送模块,设置为在监控到当前处理的业务数据流的实际丢包率大于所述预设丢包率的情况下,向所述SDN控制器发送通知消息。
- 根据权利要求18所述的装置,其中,所述接收模块包括:接收单元,设置为接收所述SDN控制器发送的经过扩展的开放流OpenFlow协议中的OFPT_METER_MOD;获取单元,设置为从所述OFPT_METER_MOD中获取所述计量表。
- 根据权利要求18所述的装置,其中,所述获取单元,设置为从所述OFPT_METER_MOD中获取新增的标志位,其中,所述标志位用于指示当所述实际丢包率大于所述预设丢包率时,向所述SDN控制器上报所述计量表。
- 根据权利要求18所述的装置,其中,所述获取单元,设置为从所述OFPT_METER_MOD中获取新增的数据类型,其中,所述数据类型用于设置所述计量表监控的所述实际丢包率。
- 根据权利要求18所述的装置,其中,所述通知消息为所述OpenFlow协议的异步消息。
- 一种通知消息的交互系统,包括:权利要求12至17中任一项所述的通知消息的获取装置以及权利要求18至22中任一项所述的通知消息的上报装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410499815.9A CN105516015A (zh) | 2014-09-25 | 2014-09-25 | 通知消息的获取、上报方法、装置及通知消息的交互系统 |
CN201410499815.9 | 2014-09-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016045185A1 true WO2016045185A1 (zh) | 2016-03-31 |
Family
ID=55580186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/092175 WO2016045185A1 (zh) | 2014-09-25 | 2014-11-25 | 通知消息的获取、上报方法、装置及通知消息的交互系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105516015A (zh) |
WO (1) | WO2016045185A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737127B (zh) * | 2017-04-13 | 2022-07-22 | 中兴通讯股份有限公司 | 一种信息通告方法及装置 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101541027A (zh) * | 2009-04-20 | 2009-09-23 | 中兴通讯股份有限公司 | 一种无线接入点接口故障定位实现方法和系统 |
CN101640629A (zh) * | 2008-07-29 | 2010-02-03 | 华为技术有限公司 | 一种链路丢包监控的方法和双向转发探测设备 |
CN103841044A (zh) * | 2014-02-27 | 2014-06-04 | 中国科学技术大学苏州研究院 | 基于软件定义网络下面向不同流的带宽控制方法 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120082193A1 (en) * | 2010-08-25 | 2012-04-05 | Qualcomm Incorporated | Beamforming feedback options for mu-mimo |
EP2700542B1 (en) * | 2011-04-22 | 2018-05-30 | Panasonic Intellectual Property Management Co., Ltd. | Vehicular input device and vehicular input method |
CN103346922B (zh) * | 2013-07-26 | 2016-08-10 | 电子科技大学 | 基于sdn的确定网络状态的控制器及其确定方法 |
-
2014
- 2014-09-25 CN CN201410499815.9A patent/CN105516015A/zh active Pending
- 2014-11-25 WO PCT/CN2014/092175 patent/WO2016045185A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640629A (zh) * | 2008-07-29 | 2010-02-03 | 华为技术有限公司 | 一种链路丢包监控的方法和双向转发探测设备 |
CN101541027A (zh) * | 2009-04-20 | 2009-09-23 | 中兴通讯股份有限公司 | 一种无线接入点接口故障定位实现方法和系统 |
CN103841044A (zh) * | 2014-02-27 | 2014-06-04 | 中国科学技术大学苏州研究院 | 基于软件定义网络下面向不同流的带宽控制方法 |
Also Published As
Publication number | Publication date |
---|---|
CN105516015A (zh) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ishimori et al. | Control of multiple packet schedulers for improving QoS on OpenFlow/SDN networking | |
CN105723657B (zh) | 交换机、控制器、系统及链路质量检测方法 | |
US10686725B2 (en) | Software defined network (SDN) quality-of-service (QoS) | |
US9565035B1 (en) | Enhanced audio video bridging (AVB) methods and apparatus | |
CN107888499A (zh) | 一种基于sdn的发布订阅系统及消息转发方法 | |
EP2817971B1 (en) | Network controlled streaming | |
WO2018176496A1 (zh) | Iptv业务质量检测的方法、装置及系统 | |
US9900100B2 (en) | Optical line terminal, communication control method, and communication control program | |
US9800479B2 (en) | Packet processing method, forwarder, packet processing device, and packet processing system | |
KR20140106235A (ko) | 오픈플로우 스위치 및 그 패킷 처리 방법 | |
CN104468254A (zh) | 网络流量统计上报处理方法、装置、控制器及交换机 | |
KR20160052518A (ko) | Sdn 환경에서 트래픽의 동적 제어를 위한 방법 및 장치 | |
WO2019128989A1 (zh) | 一种智能路由器服务质量的实现方法、路由器及电子设备 | |
US20220006744A1 (en) | Service forwarding method and network device | |
EP3506573A1 (en) | Method and system for traffic management, packet switching device and user device | |
WO2012088910A1 (zh) | 连通性故障检测方法和系统 | |
Guimaraes et al. | Enhancing openflow with media independent management capabilities | |
US20140010233A1 (en) | Communication device, method for controlling the communication device, and communication system | |
US20150195209A1 (en) | Congestion Notification in a Network | |
US8804749B2 (en) | Mechanism for updating parameters of a session set up through a virtual circuit | |
US20150109922A1 (en) | Method and apparatus for bandwidth adjustment in network virtualization system | |
US20160080218A1 (en) | System and Method for Network Health and Management | |
WO2016045185A1 (zh) | 通知消息的获取、上报方法、装置及通知消息的交互系统 | |
CN104320322A (zh) | 一种报文控制方法和设备 | |
CN107835109B (zh) | 一种测试软件定义的分组传送网网络的方法及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14902868 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: 14902868 Country of ref document: EP Kind code of ref document: A1 |