The invention discloses a method and a device for monitoring the performance of a controller, which comprises detecting whether the download delay of a controller sending packets to a switch is within a preset delay range, and determining that the controller's performance is in an abnormal state when the download delay is not within a preset delay range. The invention detects the downtime delay of the controller sending data packets to the switch. By comparing the downtime delay with the preset delay range, if the downtime delay is within the preset delay range, the controller performance is no problem. If the downtime delay is not within the preset delay range, the controller performance is illustrated. In abnormal state. This method monitors the performance of the controller by sending delay of data packets, and effectively monitors the performance of the controller. The system resources can be reasonably utilized according to the performance. The following problems of the existing technology are solved: the controller performance in the network can not be monitored, resulting in poor utilization of system resources.
【技术实现步骤摘要】
一种监测控制器性能的方法和装置
本专利技术涉及通讯领域,特别是涉及一种监测控制器性能的方法和装置。
技术介绍
现有的分布式网络操作系统日益壮大,分布式集群控制器也越来越多,但是随着集群规模的增加,其性能瓶颈日益呈现。现有的网络性能监测技术都是针对转发设备,即根据交换机的负载状态来进行自适应的负载均衡。对于控制器北向的性能监测处于空白状态,因此,无法对网络中控制器的性能进行监测,导致系统资源利用率较差;也无法根据性能的变化对系统的资源使用情况进行调整,系统性能较低。
技术实现思路
本专利技术提供一种监测控制器性能的方法和装置,用以解决现有技术的如下问题:无法对网络中控制器的性能进行监测,导致系统资源利用率较差。为解决上述技术问题,一方面,本专利技术提供一种监测控制器性能的方法,包括:检测控制器向交换机下发数据包的下发时延是否处于预设时延范围内;在所述下发时延不处于所述预设时延范围内的情况下,确定所述控制器的性能处于异常状态。可选的,检测控制器向交换机下发数据包的下发时延是否处于预设时延范围内之前,还包括:根据来自所述交换机的业务请求向所述交换机发送一个数据包;或者,向所述交换机推送预定数量的数据包。可选的,向所述交换机推送预定数量的数据包,包括:根据用户的触发信号确定数据包的发送时间和所述预定数量,根据所述发送时间和上述预定数量向所述交换机推送数据包;或者,按照预定时间间隔向所述交换机推送所述预定数量的数据包。可选的,在所述业务请求为Packet-in消息的情况下,向所述交换机发送或推送数据包之后,还包括:根据所述Packet-in消息和Packet-out消息 ...
【技术保护点】
1.一种监测控制器性能的方法,其特征在于,包括:检测控制器向交换机下发数据包的下发时延是否处于预设时延范围内;在所述下发时延不处于所述预设时延范围内的情况下,确定所述控制器的性能处于异常状态。
【技术特征摘要】
1.一种监测控制器性能的方法,其特征在于,包括:检测控制器向交换机下发数据包的下发时延是否处于预设时延范围内;在所述下发时延不处于所述预设时延范围内的情况下,确定所述控制器的性能处于异常状态。2.如权利要求1所述的方法,其特征在于,检测控制器向交换机下发数据包的下发时延是否处于预设时延范围内之前,还包括:根据来自所述交换机的业务请求向所述交换机发送一个数据包;或者,向所述交换机推送预定数量的数据包。3.如权利要求2所述的方法,其特征在于,向所述交换机推送预定数量的数据包,包括:根据用户的触发信号确定数据包的发送时间和所述预定数量,根据所述发送时间和上述预定数量向所述交换机推送数据包;或者,按照预定时间间隔向所述交换机推送所述预定数量的数据包。4.如权利要求2所述的方法,其特征在于,在所述业务请求为Packet-in消息的情况下,向所述交换机发送或推送数据包之后,还包括:根据所述Packet-in消息和Packet-out消息计算出流表的下发时延,并根据showlatency命令查看所述流表的下发时延。5.如权利要求1至4中任一项所述的方法,其特征在于,确定所述控制器的性能处于异常状态之后,还包括:在所述下发时延大于所述预设时延范围上限值的情况下,确定在所述控制器对应的节点上增加其他控制器,以对所述控制器进行负载均衡;在所述下发时延小于所述预设时延范...
【专利技术属性】
技术研发人员:许欣,吴春明,周海峰,程秋美,杨奇,
申请(专利权)人:中兴通讯股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。