[go: up one dir, main page]

CN106850337B - A kind of network quality detection method and device - Google Patents

A kind of network quality detection method and device Download PDF

Info

Publication number
CN106850337B
CN106850337B CN201611247185.1A CN201611247185A CN106850337B CN 106850337 B CN106850337 B CN 106850337B CN 201611247185 A CN201611247185 A CN 201611247185A CN 106850337 B CN106850337 B CN 106850337B
Authority
CN
China
Prior art keywords
network
parameter
terminal
cdn node
service
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
Application number
CN201611247185.1A
Other languages
Chinese (zh)
Other versions
CN106850337A (en
Inventor
王�琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201611247185.1A priority Critical patent/CN106850337B/en
Publication of CN106850337A publication Critical patent/CN106850337A/en
Priority to PCT/CN2017/115561 priority patent/WO2018121237A1/en
Application granted granted Critical
Publication of CN106850337B publication Critical patent/CN106850337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics

Landscapes

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

Abstract

本发明公开了一种网络质量检测方法,包括:发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;接收所述采集设备采集的参数集;利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。本发明同时还公开了一种网络质量检测装置。

Figure 201611247185

The invention discloses a network quality detection method, comprising: sending a detection task, where the detection task is used to instruct a collection device to collect a parameter set of a first network in sections, where the parameter set represents a transmission parameter of the first network; The first network is an end-to-end network; a parameter set collected by the collection device is received; the network quality of the first network is analyzed by using the parameter set, and a network quality detection result of the first network is obtained . The invention also discloses a network quality detection device.

Figure 201611247185

Description

一种网络质量检测方法及装置A kind of network quality detection method and device

技术领域technical field

本发明涉及通信领域,尤其涉及一种网络质量检测方法及装置。The present invention relates to the field of communications, and in particular, to a network quality detection method and device.

背景技术Background technique

在端到端的视频服务系统中,影响用户播放体验的主要因素有两个:1、码流传输延时和损伤;2、交互延时。这两个因素构成视频服务质量。In an end-to-end video service system, there are two main factors that affect the user's playback experience: 1. Stream transmission delay and damage; 2. Interaction delay. These two factors constitute the video service quality.

传统衡量内容分发网络(CDN)到终端的视频服务质量的方式存在一定缺陷:有的方法准确性差,有的方法实现难度大,且灵活性较差。The traditional method of measuring the video service quality from the content distribution network (CDN) to the terminal has certain defects: some methods have poor accuracy, and some methods are difficult to implement and have poor flexibility.

另外,对于CDN到终端之间的网络服务路径质量,目前还没有有效的衡量方案。In addition, there is currently no effective measurement solution for the quality of the network service path between the CDN and the terminal.

发明内容SUMMARY OF THE INVENTION

为解决现有存在的技术问题,本发明实施例提供一种网络质量检测方法及装置。In order to solve the existing technical problems, embodiments of the present invention provide a network quality detection method and device.

本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:

本发明实施例提供了一种网络质量检测方法,应用于服务器,所述方法包括:An embodiment of the present invention provides a network quality detection method, which is applied to a server, and the method includes:

发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;sending a detection task, where the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network; the first network is an end-to-end network;

接收所述采集设备采集的参数集;receiving a parameter set collected by the collection device;

利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。Using the parameter set, the network quality of the first network is analyzed to obtain a network quality detection result of the first network.

上述方案中,所述采集设备为终端,所述接收所述采集设备采集的参数集,包括:In the above solution, the collection device is a terminal, and the receiving the parameter set collected by the collection device includes:

接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据实时流传输协议(RTSP)延时和路由跟踪(traceroute)时延得到;Receive the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data packet in the first network Transmission delay; wherein, the signaling response delay is obtained according to Real Time Streaming Protocol (RTSP) delay and traceroute delay;

相应地,对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。Correspondingly, the first parameter and the second parameter are analyzed to obtain a network quality detection result of the first network.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal;

当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, take the IP address as the dimension, aggregate and analyze the first parameters collected by the terminal for each routing path, and determine at least two routing paths The routing point with the largest and smallest transmission delay in the

对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;Aggregate and analyze the second parameters collected by the terminal for each routing path, and determine the network segment with the largest and smallest transmission delay between routes in at least two routing paths;

基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal;

当所述网络拓扑路径信息表征端到端的路由路径有一条时,依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;When the network topology path information indicates that there is one end-to-end routing path, a time-sharing dynamic baseline model is established according to the first parameter and the second parameter collected within the preset time period of the terminal; the model reflects the network with different service times segment quality;

并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model.

上述方案中,所述采集设备包括第一CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;In the above solution, the collection device includes a first CDN node, a second CDN node, and a terminal; the network between the first CDN node and the terminal is the first network; the second CDN node is an upper-level node of the first CDN node;

所述接收所述采集设备采集的参数集,包括:The receiving the parameter set collected by the collecting device includes:

接收第二CDN节点发送的第三参数;receiving the third parameter sent by the second CDN node;

接收第一CDN节点发送的第四参数及第五参数;receiving the fourth parameter and the fifth parameter sent by the first CDN node;

接收终端发送的第六参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;Receive the sixth parameter sent by the terminal; the third parameter and the fourth parameter represent the service quality indicator of the link of the second CDN node facing the first CDN node; the fifth parameter and the sixth parameter represent the link of the first CDN node facing the terminal service quality indicators;

相应地,对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果。Correspondingly, the third parameter, the fourth parameter, the fifth parameter and the sixth parameter are analyzed to obtain the network quality detection result of the first network.

上述方案中,所述对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果,包括:In the above solution, the third parameter, the fourth parameter, the fifth parameter and the sixth parameter are analyzed to obtain the network quality detection result of the first network, including:

利用所述第三参数、第四参数、第五参数及第六参数,并结合设置的阈值及网络服务链路的历史趋势,得到所述第一网络的网络质量检测结果。Using the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, combined with the set threshold and the historical trend of the network service link, the network quality detection result of the first network is obtained.

上述方案中,发送检测任务,包括:In the above solution, sending detection tasks includes:

当终端的播放记录异常时,发送检测任务。When the playback record of the terminal is abnormal, a detection task is sent.

本发明实施例还提供了一种网络质量检测方法,应用于终端,所述方法包括:An embodiment of the present invention further provides a network quality detection method, which is applied to a terminal, and the method includes:

接收检测任务;所述检测任务用于指示终端分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为所述终端所在的端到端网络;Receive a detection task; the detection task is used to instruct the terminal to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is the end-to-end network where the terminal is located network;

响应所述检测任务,采集第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据RTSP延时和traceroute时延得到;In response to the detection task, a first parameter and a second parameter are collected; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the mid-to-end of the first network. The data packet transmission delay of the terminal; wherein, the signaling response delay is obtained according to the RTSP delay and the traceroute delay;

发出所述第一参数及第二参数。The first parameter and the second parameter are issued.

上述方案中,所述采集第一参数,包括:In the above scheme, the collection of the first parameter includes:

向第一CDN节点发送RTSP请求;第一CDN节点为终端的对端;Send an RTSP request to the first CDN node; the first CDN node is the opposite end of the terminal;

并向所述第一CDN节点发送traceroute请求;and send a traceroute request to the first CDN node;

根据发送的RTSP请求以及RTSP响应的接收状态,确定RTSP延时;并根据发送的traceroute请求以及traceroute响应的接收状态,确定traceroute延时;Determine the RTSP delay according to the sent RTSP request and the receiving status of the RTSP response; and determine the traceroute delay according to the sent traceroute request and the receiving status of the traceroute response;

利用RTSP时延和traceroute时延,得到所述第一参数。The first parameter is obtained by using RTSP delay and traceroute delay.

上述方案中,所述利用RTSP时延和traceroute时延,得到所述第一参数,包括:In the above solution, the RTSP delay and the traceroute delay are used to obtain the first parameter, including:

将所述RTSP时延与traceroute延时求差,得到所述第一参数。The first parameter is obtained by calculating the difference between the RTSP delay and the traceroute delay.

上述方案中,所述采集第二参数,包括:In the above scheme, the collection of the second parameter includes:

采集第一CDN节点到终端的IP包的时延,得到所述第二参数。The second parameter is obtained by collecting the delay of the IP packet from the first CDN node to the terminal.

本发明实施例又提供了一种网络质量检测方法,应用于采集设备,所述方法包括:An embodiment of the present invention further provides a network quality detection method, which is applied to a collection device, and the method includes:

接收检测任务;所述检测任务用于指示所述采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;receiving a detection task; the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network;

响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;In response to the detection task, collect the service quality index of the corresponding link according to its position in the first network and the direction of the end-to-end network service link;

发出采集的服务质量指标。Issue the collected service quality indicators.

上述方案中,所述采集对应链路的服务质量指标,包括:In the above solution, the collection of quality of service indicators of the corresponding link includes:

获取所述服务链路的IP地址和端口;Obtain the IP address and port of the service link;

利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets;

对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link.

上述方案中,当所述采集设备为终端时,所述利用IP地址和端口,抓取数据包,包括:In the above solution, when the collection device is a terminal, the IP address and port are used to capture data packets, including:

利用IP地址和端口,在所述终端的入向抓取数据包;其中,Use the IP address and port to capture data packets in the incoming direction of the terminal; wherein,

所述第一网络为所述终端所在的端到端网络;得到的服务质量指标为第六参数。The first network is the end-to-end network where the terminal is located; the obtained service quality indicator is the sixth parameter.

上述方案中,当所述采集设备为第一CDN节点时,所述利用IP地址和端口,抓取数据包,包括:In the above solution, when the collection device is the first CDN node, the use of the IP address and port to capture data packets includes:

利用IP地址和端口,在所述第一CDN节点的入向和出向抓取数据包;其中,Use the IP address and port to capture data packets in the inbound and outbound directions of the first CDN node; wherein,

第一CDN节点与终端之间的网络为第一网络,得到的服务质量指标为第四参数及第五参数;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标。The network between the first CDN node and the terminal is the first network, and the obtained service quality index is the fourth parameter and the fifth parameter; the fifth parameter and the sixth parameter represent the service quality index of the first CDN node facing the terminal link.

上述方案中,当所述采集设备为第二CDN节点时,所述利用IP地址和端口,抓取数据包,包括:In the above solution, when the collection device is the second CDN node, the use of the IP address and port to capture data packets includes:

利用IP地址和端口,在所述第二CDN节点的出向抓取数据包;其中,Using the IP address and port, the data packet is captured in the outbound direction of the second CDN node; wherein,

第二CDN节点为第一CDN节点的上级节点,得到的服务质量指标为第三参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标。The second CDN node is an upper-level node of the first CDN node, and the obtained service quality index is the third parameter; the third parameter and the fourth parameter represent the service quality index of the second CDN node facing the link of the first CDN node.

本发明实施例还提供了一种网络质量检测装置,包括:The embodiment of the present invention also provides a network quality detection device, including:

第一发送单元,用于发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;a first sending unit, configured to send a detection task, where the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is end-to-end network;

第一接收单元,用于接收所述采集设备采集的参数集;a first receiving unit, configured to receive the parameter set collected by the collection device;

分析单元,用于利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。An analysis unit, configured to use the parameter set to analyze the network quality of the first network to obtain a network quality detection result of the first network.

上述方案中,所述第一接收单元,具体用于:In the above scheme, the first receiving unit is specifically used for:

接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据实时流传输协议RTSP延时和路由跟踪traceroute时延得到;Receive the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data packet in the first network Transmission delay; wherein, the signaling response delay is obtained according to the real-time streaming protocol RTSP delay and the traceroute delay;

所述分析单元,用于对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit is configured to analyze the first parameter and the second parameter to obtain a network quality detection result of the first network.

上述方案中,所述分析单元,还用于:In the above scheme, the analysis unit is also used for:

根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal;

当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,根据所述第一网络的网络拓扑结构,以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, according to the network topology structure of the first network, with the IP address as the dimension, the first parameter for each routing path collected by the terminal is performed. Aggregate and analyze to determine the routing point with the largest and smallest transmission delay in at least two routing paths;

对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;以及Aggregating and analyzing the second parameters collected by the terminal for each routing path, and determining the network segment with the largest and smallest transmission delay between routes in at least two routing paths; and

基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined.

上述方案中,所述分析单元,还用于:In the above scheme, the analysis unit is also used for:

根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal;

当所述网络拓扑路径信息表征端到端的路由路径有一条时,依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;When the network topology path information indicates that there is one end-to-end routing path, a time-sharing dynamic baseline model is established according to the first parameter and the second parameter collected within the preset time period of the terminal; the model reflects the network with different service times segment quality;

并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model.

上述方案中,所述采集设备包括第一CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述第一接收单元,具体用于:In the above solution, the collection device includes a first CDN node, a second CDN node and a terminal; the network between the first CDN node and the terminal is the first network; the second CDN node is an upper-level node of the first CDN node; The first receiving unit is specifically used for:

接收第二CDN节点发送的第三参数;receiving the third parameter sent by the second CDN node;

接收第一CDN节点发送的第四参数及第五参数;receiving the fourth parameter and the fifth parameter sent by the first CDN node;

接收终端发送的第六参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;Receive the sixth parameter sent by the terminal; the third parameter and the fourth parameter represent the service quality indicator of the link of the second CDN node facing the first CDN node; the fifth parameter and the sixth parameter represent the link of the first CDN node facing the terminal service quality indicators;

所述分析单元,具体用于:对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit is specifically configured to: analyze the third parameter, the fourth parameter, the fifth parameter and the sixth parameter to obtain a network quality detection result of the first network.

本发明实施例又提供了一种网络质量检测装置,包括:An embodiment of the present invention further provides a network quality detection device, including:

第二接收单元,用于接收检测任务;所述检测任务用于指示终端分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为所述终端所在的端到端网络;The second receiving unit is configured to receive a detection task; the detection task is used to instruct the terminal to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is the the end-to-end network where the terminal is located;

第一采集单元,用于响应所述检测任务,采集第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据RTSP延时和traceroute时延得到;A first collection unit, configured to collect a first parameter and a second parameter in response to the detection task; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the Describe the end-to-end packet transmission delay in the first network; wherein, the signaling response delay is obtained according to RTSP delay and traceroute delay;

第二发送单元,用于发出所述第一参数及第二参数。The second sending unit is configured to send the first parameter and the second parameter.

上述方案中,所述第一采集单元,具体用于:In the above scheme, the first collection unit is specifically used for:

向第一CDN节点发送RTSP请求;第一CDN节点为终端的对端;Send an RTSP request to the first CDN node; the first CDN node is the opposite end of the terminal;

并向所述第一CDN节点发送traceroute请求;and send a traceroute request to the first CDN node;

根据发送的RTSP请求以及RTSP响应的接收状态,确定RTSP延时;并根据发送的traceroute请求以及traceroute响应的接收状态,确定traceroute延时;Determine the RTSP delay according to the sent RTSP request and the receiving status of the RTSP response; and determine the traceroute delay according to the sent traceroute request and the receiving status of the traceroute response;

利用RTSP时延和traceroute时延,得到所述第一参数。The first parameter is obtained by using RTSP delay and traceroute delay.

上述方案中,所述第一采集单元,具体用于:In the above scheme, the first collection unit is specifically used for:

采集第一CDN节点到终端的IP包的时延,得到所述第二参数。The second parameter is obtained by collecting the delay of the IP packet from the first CDN node to the terminal.

本发明实施例还提供了一种网络质量检测装置,包括:The embodiment of the present invention also provides a network quality detection device, including:

第三接收单元,用于接收检测任务;所述检测任务用于指示所述采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;a third receiving unit, configured to receive a detection task; the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network;

第二采集单元,用于响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;a second collection unit, configured to respond to the detection task and collect the service quality index of the corresponding link according to its position in the first network and the direction of the end-to-end network service link;

第三发送单元,用于发出采集的服务质量指标。The third sending unit is configured to send the collected service quality indicators.

上述方案中,所述第二采集单元,具体用于:In the above scheme, the second collection unit is specifically used for:

获取所述服务链路的IP地址和端口;Obtain the IP address and port of the service link;

利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets;

对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link.

本发明实施例提供的网络质量检测方法及装置,发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;接收所述采集设备采集的参数集;利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果,将网络分段进行检测,如此能够准确、快速地检测网络质量。In the network quality detection method and device provided by the embodiments of the present invention, a detection task is sent, where the detection task is used to instruct a collection device to collect a parameter set of a first network in sections, where the parameter set represents a transmission parameter of the first network; The first network is an end-to-end network; a parameter set collected by the collection device is received; the network quality of the first network is analyzed by using the parameter set, and a network quality detection result of the first network is obtained , segment the network for detection, so that the network quality can be detected accurately and quickly.

附图说明Description of drawings

在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。In the drawings, which are not necessarily to scale, like reference numerals may describe like parts in the different views. Similar reference numbers with different letter suffixes may denote different instances of similar components. The accompanying drawings generally illustrate, by way of example and not limitation, the various embodiments discussed herein.

图1为本发明实施实例一一种网络质量检测的方法流程示意图;1 is a schematic flowchart of a method for detecting network quality in an embodiment of the present invention;

图2为本发明实施实例一另一种网络质量检测的方法流程示意图;FIG. 2 is a schematic flowchart of another method for network quality detection according to an embodiment of the present invention;

图3为本发明实施实例一再一种网络质量检测的方法流程示意图;FIG. 3 is a schematic flowchart of another method for network quality detection according to an embodiment of the present invention;

图4为本发明实施实例二一种网络质量检测装置结构示意图;4 is a schematic structural diagram of a network quality detection apparatus according to Embodiment 2 of the present invention;

图5为本发明实施实例二另一种网络质量检测装置结构示意图;5 is a schematic structural diagram of another network quality detection apparatus according to Embodiment 2 of the present invention;

图6为本发明实施实例二再一种网络质量检测装置结构示意图;FIG. 6 is a schematic structural diagram of another network quality detection apparatus according to the second embodiment of the present invention;

图7为本发明实施实例三系统架构示意图;FIG. 7 is a schematic diagram of the system architecture of Embodiment 3 of the present invention;

图8为本发明实施实例三采集终端到CDN系统的接入网络的请求路由信息和时延的过程示意图;8 is a schematic diagram of a process of collecting request routing information and time delay from a terminal to an access network of a CDN system according to Embodiment 3 of the present invention;

图9为本发明实施实例三CDN系统到终端的传输时延检测及分析方法流程示意图;9 is a schematic flowchart of a method for detecting and analyzing transmission delay from a CDN system to a terminal according to Embodiment 3 of the present invention;

图10为本发明实施实例三采集CDN系统到终端的单播服务链路服务质量指标的过程示意图;FIG. 10 is a schematic diagram of a process of collecting a service quality indicator of a unicast service link from a CDN system to a terminal according to Embodiment 3 of the present invention;

图11为本发明实施实例三单播服务链路示意图。FIG. 11 is a schematic diagram of a unicast service link in Embodiment 3 of the present invention.

具体实施方式Detailed ways

下面结合附图及实施例对本发明再作进一步详细的描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

传统衡量CDN到终端的视频服务质量的方式,主要有以下两种:Traditionally, there are two main ways to measure the quality of video service from CDN to terminal:

第一种方式:基于上报的终端指标来统计汇总计算CDN及接入网的服务质量。The first way: based on the reported terminal indicators, the service quality of the CDN and the access network is calculated and summarized.

这种方式是从数据的统计和汇总结果入手,给出可能性的原因,该处理方式存在一定缺陷:第一,需要基于大规模机顶盒数据量分析,这是因为机顶盒数据量越大,分析结果可靠性越高;第二,由于分析的数据只是机顶盒自身的数据,并不涉及网络的数据,所以当造成的可能性原因较多时,用户分析难度越多,无法准确定位。This method starts from the statistics and summary results of the data, and gives the possible reasons. This method has certain defects: First, it needs to be analyzed based on the data volume of large-scale set-top boxes. This is because the larger the set-top box data volume, the higher the analysis results The higher the reliability; second, because the analyzed data is only the data of the set-top box itself, and does not involve the data of the network, so when there are many possible reasons, the more difficult it is for users to analyze, and accurate positioning is impossible.

第二种方式:在中间传输网络上抓包然后做码流匹配分析,以获得服务质量。The second way: Capture packets on the intermediate transmission network and then perform stream matching analysis to obtain service quality.

这种方式运算难度复杂而且CDN到机顶盒的单独码流难以匹配,灵活性较差。This method is difficult to calculate, and it is difficult to match the individual code streams from the CDN to the set-top box, and the flexibility is poor.

从上面的描述中可以看出,目前的衡量方式均存在一定缺陷:有的衡量方法准确性差,有的衡量方法实现难度较大,且灵活性较差。It can be seen from the above description that the current measurement methods all have certain defects: some measurement methods are inaccurate, and some measurement methods are difficult to implement and less flexible.

另外,目前CDN到终端之间的网络服务路径质量无法有效衡量。In addition, at present, the quality of the network service path between the CDN and the terminal cannot be effectively measured.

基于此,在本发明的各种实施例中:发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;接收所述采集设备采集的参数集;利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。Based on this, in various embodiments of the present invention: sending a detection task, where the detection task is used to instruct a collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network; The first network is an end-to-end network; a parameter set collected by the collection device is received; the network quality of the first network is analyzed by using the parameter set, and a network quality detection result of the first network is obtained .

实施例一Example 1

本发明实施例提供一种网络质量检测方法,应用于服务器,如图1所示,该方法包括:An embodiment of the present invention provides a network quality detection method, which is applied to a server. As shown in FIG. 1 , the method includes:

步骤101:发送检测任务;Step 101: Send a detection task;

这里,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络。Here, the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network; the first network is an end-to-end network.

其中,实际应用时,所述第一网络可以是CDN节点到终端的视频服务网络。Wherein, in practical application, the first network may be a video service network from a CDN node to a terminal.

步骤102:接收所述采集设备采集的参数集;Step 102: Receive a parameter set collected by the collection device;

步骤103:利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。Step 103: Using the parameter set, analyze the network quality of the first network to obtain a network quality detection result of the first network.

其中,实际应用时,网络质量的一个表现形式是交互时延(传输时延),所以需要分段采集网络的交互时延,从而来分析网络质量。Among them, in practical application, one manifestation of the network quality is the interaction delay (transmission delay), so it is necessary to collect the interaction delay of the network in sections to analyze the network quality.

基于此,在一实施例中,当所述采集设备为终端时,步骤102的具体实现包括:Based on this, in an embodiment, when the collection device is a terminal, the specific implementation of step 102 includes:

服务器接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据RTSP延时和traceroute时延得到。The server receives the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data in the first network Packet transmission delay; wherein, the signaling response delay is obtained according to RTSP delay and traceroute delay.

相应地,在步骤103中,服务器对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。Correspondingly, in step 103, the server analyzes the first parameter and the second parameter to obtain a network quality detection result of the first network.

在该实施例中,当端到端的路由路径有至少两条时,还可以基于采集的参数集对路由路径进行呈现。In this embodiment, when there are at least two end-to-end routing paths, the routing paths may also be presented based on the collected parameter set.

基于此,该方法还可以包括:Based on this, the method may also include:

服务器根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;The server determines the network topology path information of the first network corresponding to the terminal according to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information;

当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,服务器以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, the server uses the IP address as a dimension to aggregate and analyze the first parameters collected by the terminal for each routing path, and determine at least two routes. The routing point with the largest and smallest transmission delay in the path;

对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;Aggregate and analyze the second parameters collected by the terminal for each routing path, and determine the network segment with the largest and smallest transmission delay between routes in at least two routing paths;

基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined.

当然,当所述网络拓扑路径信息表征端到端的路由路径有一条时,服务器可以依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;Of course, when the network topology path information indicates that there is one end-to-end routing path, the server may establish a time-sharing dynamic baseline model according to the first parameter and the second parameter collected within the preset time period of the terminal; the models reflect different quality of network segmentation at service time;

并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model.

网络质量的另一个表现形式是码流的传输质量(网络服务路径质量),所以需要分段采集网络的传输质量,从而来分析网络质量。Another manifestation of the network quality is the transmission quality of the code stream (the quality of the network service path), so it is necessary to collect the transmission quality of the network in sections to analyze the network quality.

基于此,在一实施例中,所述采集设备包括第一CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;步骤102的具体实现可以包括:Based on this, in an embodiment, the collection device includes a first CDN node, a second CDN node, and a terminal; the network between the first CDN node and the terminal is the first network; the second CDN node is the first CDN node the upper-level node; the specific implementation of step 102 may include:

服务器接收第二CDN节点发送的第三参数;The server receives the third parameter sent by the second CDN node;

服务器接收第一CDN节点发送的第四参数及第五参数;The server receives the fourth parameter and the fifth parameter sent by the first CDN node;

服务器接收终端发送的第六参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标。The server receives the sixth parameter sent by the terminal; the third parameter and the fourth parameter represent the service quality indicator of the link of the second CDN node facing the first CDN node; the fifth parameter and the sixth parameter represent the first CDN node facing the terminal chain Road service quality indicators.

相应地,在步骤103中,服务器对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果。Correspondingly, in step 103, the server analyzes the third parameter, the fourth parameter, the fifth parameter and the sixth parameter to obtain a network quality detection result of the first network.

其中,所述对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果,包括:Wherein, the analyzing the third parameter, the fourth parameter, the fifth parameter and the sixth parameter to obtain the network quality detection result of the first network, including:

利用所述第三参数、第四参数、第五参数及第六参数,并结合设置的阈值及网络服务链路的历史趋势,得到所述第一网络的网络质量检测结果。Using the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, combined with the set threshold and the historical trend of the network service link, the network quality detection result of the first network is obtained.

对于传输质量的检测,可以根据终端的播放记录来触发检测任务的下发。For the detection of the transmission quality, the delivery of the detection task can be triggered according to the playback record of the terminal.

基于此,在一实施例中,步骤101的具体实现包括:Based on this, in an embodiment, the specific implementation of step 101 includes:

当终端的播放记录异常时,服务器发送检测任务。When the playback record of the terminal is abnormal, the server sends a detection task.

对应地,为了实现本发明实施例的网络质量检测方法,需要采集设备采集相应的参数。Correspondingly, in order to implement the network quality detection method according to the embodiment of the present invention, a collection device needs to collect corresponding parameters.

因此,本发明实施例还提供了一种网络质量检测方法,应用于终端,如图2所示,该法包括:Therefore, an embodiment of the present invention also provides a network quality detection method, which is applied to a terminal. As shown in FIG. 2 , the method includes:

步骤201:接收检测任务;Step 201: receive a detection task;

这里,所述检测任务用于指示终端分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为所述终端所在的端到端网络。Here, the detection task is used to instruct the terminal to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is the end-to-end network where the terminal is located.

步骤202:响应所述检测任务,采集第一参数及第二参数;Step 202: in response to the detection task, collect the first parameter and the second parameter;

这里,所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延。Here, the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data packet transmission delay in the first network.

其中,所述信令响应时延依据RTSP延时和traceroute时延得到。Wherein, the signaling response delay is obtained according to RTSP delay and traceroute delay.

所述采集第一参数,包括:The collecting the first parameter includes:

向第一CDN节点发送RTSP请求;第一CDN节点为终端的对端;Send an RTSP request to the first CDN node; the first CDN node is the opposite end of the terminal;

并向所述第一CDN节点发送traceroute请求;and send a traceroute request to the first CDN node;

根据发送的RTSP请求以及RTSP响应的接收状态,确定RTSP延时;并根据发送的traceroute请求以及traceroute响应的接收状态,确定traceroute延时;Determine the RTSP delay according to the sent RTSP request and the receiving status of the RTSP response; and determine the traceroute delay according to the sent traceroute request and the receiving status of the traceroute response;

利用RTSP时延和traceroute时延,得到所述第一参数。The first parameter is obtained by using RTSP delay and traceroute delay.

其中,所述利用RTSP时延和traceroute时延,得到所述第一参数,包括:Wherein, the RTSP delay and the traceroute delay are used to obtain the first parameter, including:

将所述RTSP时延与traceroute延时求差,得到所述第一参数。The first parameter is obtained by calculating the difference between the RTSP delay and the traceroute delay.

所述采集第二参数,包括:The collecting the second parameter includes:

采集第一CDN节点到终端的IP包的时延,得到所述第二参数。The second parameter is obtained by collecting the delay of the IP packet from the first CDN node to the terminal.

步骤203:发出所述第一参数及第二参数。Step 203: Send the first parameter and the second parameter.

本发明实施例还提供了一种网络质量检测方法,应用于采集设备,如图3所示,该法还包括:The embodiment of the present invention also provides a network quality detection method, which is applied to a collection device. As shown in FIG. 3 , the method further includes:

步骤301:接收检测任务;Step 301: Receive a detection task;

这里,所述检测任务用于指示所述采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数。Here, the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network.

步骤302:响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;Step 302: In response to the detection task, collect the service quality indicator of the corresponding link according to its position in the first network and the direction of the end-to-end network service link;

具体地,获取所述服务链路的IP地址和端口;Specifically, obtain the IP address and port of the service link;

利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets;

对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link.

这里,当所述采集设备为终端时,所述利用IP地址和端口,抓取数据包,包括:Here, when the collection device is a terminal, the use of the IP address and port to capture data packets includes:

利用IP地址和端口,在所述终端的入向抓取数据包;其中,Use the IP address and port to capture data packets in the incoming direction of the terminal; wherein,

所述第一网络为所述终端所在的端到端网络;得到的服务质量指标为第六参数。The first network is the end-to-end network where the terminal is located; the obtained service quality indicator is the sixth parameter.

当所述采集设备为第一CDN节点时,所述利用IP地址和端口,抓取数据包,包括:When the collection device is the first CDN node, the use of the IP address and port to capture data packets includes:

利用IP地址和端口,在所述第一CDN节点的入向和出向抓取数据包;其中,Use the IP address and port to capture data packets in the inbound and outbound directions of the first CDN node; wherein,

第一CDN节点与终端之间的网络为第一网络;得到的服务质量指标为第四参数及第五参数。The network between the first CDN node and the terminal is the first network; the obtained service quality indicators are the fourth parameter and the fifth parameter.

当所述采集设备为第二CDN节点时,所述利用IP地址和端口,抓取数据包,包括:When the collection device is the second CDN node, the use of the IP address and port to capture data packets includes:

利用IP地址和端口,在所述第二CDN节点的出向抓取数据包;其中,Using the IP address and port, the data packet is captured in the outbound direction of the second CDN node; wherein,

第二CDN节点为第一CDN节点的上级节点;得到的服务质量指标为第三参数。The second CDN node is an upper-level node of the first CDN node; the obtained service quality indicator is the third parameter.

也就是说,第二CDN节点为第一CDN节点的依赖节点。That is, the second CDN node is a dependent node of the first CDN node.

第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标。The fifth parameter and the sixth parameter represent the service quality indicator of the first CDN node facing the terminal link; the third parameter and the fourth parameter represent the service quality indicator of the second CDN node facing the first CDN node link.

步骤303:发出采集的服务质量指标。Step 303: Send the collected service quality indicators.

本发明实施例提供的网络质量检测方法,发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;接收所述采集设备采集的参数集;利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果,将网络分段进行检测,如此能够准确、快速地检测网络质量。In the network quality detection method provided by the embodiment of the present invention, a detection task is sent, where the detection task is used to instruct a collection device to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the The first network is an end-to-end network; the parameter set collected by the collection device is received; the network quality of the first network is analyzed by using the parameter set, the network quality detection result of the first network is obtained, and the network quality of the first network is obtained. The network segment is detected, so that the network quality can be detected accurately and quickly.

另外,接收第二CDN节点发送的第三参数;接收第一CDN节点发送的第四参数及第五参数;接收终端发送的第六参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;相应地,对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果,对服务链路分段进行检测,如此,能够正确、快速地检测端到端的网络服务路径质量。In addition, the third parameter sent by the second CDN node is received; the fourth parameter and the fifth parameter sent by the first CDN node are received; the sixth parameter sent by the terminal is received; the third parameter and the fourth parameter represent the second CDN node The service quality index for the link of the first CDN node; the fifth parameter and the sixth parameter represent the service quality index of the first CDN node for the terminal link; correspondingly, the third parameter, the fourth parameter, the fifth parameter And the sixth parameter is analyzed to obtain the network quality detection result of the first network, and the service link segment is detected. In this way, the end-to-end network service path quality can be detected correctly and quickly.

实施例二Embodiment 2

为实现本发明实施例的方法,本实施例提供一种网络质量检测装置,设置在服务器,如图4所示,该装置包括:In order to implement the method of the embodiment of the present invention, the present embodiment provides a network quality detection apparatus, which is set on a server. As shown in FIG. 4 , the apparatus includes:

第一发送单元41,用于发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为端到端网络;The first sending unit 41 is configured to send a detection task, where the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is an end-to-end network;

第一接收单元42,用于接收所述采集设备采集的参数集;a first receiving unit 42, configured to receive the parameter set collected by the collection device;

分析单元43,用于利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit 43 is configured to analyze the network quality of the first network by using the parameter set to obtain a network quality detection result of the first network.

其中,实际应用时,所述第一网络可以是CDN节点到终端的视频服务网络。Wherein, in practical application, the first network may be a video service network from a CDN node to a terminal.

实际应用时,网络质量的一个表现形式是交互时延(传输时延),所以需要分段采集网络的交互时延,从而来分析网络质量。In practical application, one manifestation of network quality is the interaction delay (transmission delay), so it is necessary to collect the interaction delay of the network in sections to analyze the network quality.

基于此,在一实施例中,所述第一接收单元42,具体用于:Based on this, in an embodiment, the first receiving unit 42 is specifically configured to:

当所述采集设备为终端时,接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据RTSP延时和traceroute时延得到;When the collection device is a terminal, receive the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the The end-to-end data packet transmission delay in the first network; wherein, the signaling response delay is obtained according to RTSP delay and traceroute delay;

所述分析单元43,用于对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit 43 is configured to analyze the first parameter and the second parameter to obtain a network quality detection result of the first network.

在该实施例中,当端到端的路由路径有至少两条时,还可以基于采集的参数集对路由路径进行呈现,所述分析单元43,还用于:In this embodiment, when there are at least two end-to-end routing paths, the routing paths may also be presented based on the collected parameter set, and the analysis unit 43 is further configured to:

根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal;

当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,根据所述第一网络的网络拓扑结构,以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, according to the network topology structure of the first network, with the IP address as the dimension, the first parameter for each routing path collected by the terminal is performed. Aggregate and analyze to determine the routing point with the largest and smallest transmission delay in at least two routing paths;

对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;以及Aggregating and analyzing the second parameters collected by the terminal for each routing path, and determining the network segment with the largest and smallest transmission delay between routes in at least two routing paths; and

基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined.

当然,当所述网络拓扑路径信息表征端到端的路由路径有一条时,所述分析单元43可以依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;Certainly, when the network topology path information indicates that there is one end-to-end routing path, the analysis unit 43 may establish a time-sharing dynamic baseline model according to the first parameter and the second parameter collected within the preset time period of the terminal; The above model reflects the network segmentation quality at different service times;

并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model.

网络质量的另一个表现形式是码流的传输质量(网络服务路径质量),所以需要分段采集网络的传输质量,从而来分析网络质量。Another manifestation of the network quality is the transmission quality of the code stream (the quality of the network service path), so it is necessary to collect the transmission quality of the network in sections to analyze the network quality.

基于此,在一实施例中,所述采集设备包括第一CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述第一接收单元42,具体用于:Based on this, in an embodiment, the collection device includes a first CDN node, a second CDN node, and a terminal; the network between the first CDN node and the terminal is the first network; the second CDN node is the first CDN node The upper-level node; the first receiving unit 42 is specifically used for:

服务器接收第二CDN节点发送的第三参数;The server receives the third parameter sent by the second CDN node;

服务器接收第一CDN节点发送的第四参数及第五参数;The server receives the fourth parameter and the fifth parameter sent by the first CDN node;

服务器接收终端发送的第六参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;The server receives the sixth parameter sent by the terminal; the third parameter and the fourth parameter represent the service quality indicator of the link of the second CDN node facing the first CDN node; the fifth parameter and the sixth parameter represent the first CDN node facing the terminal chain Road service quality indicators;

所述分析单元43,具体用于:对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit 43 is specifically configured to: analyze the third parameter, the fourth parameter, the fifth parameter and the sixth parameter to obtain a network quality detection result of the first network.

其中,所述对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果,包括:Wherein, the analyzing the third parameter, the fourth parameter, the fifth parameter and the sixth parameter to obtain the network quality detection result of the first network, including:

所述分析单元43利用所述第三参数、第四参数、第五参数及第六参数,并结合设置的阈值及网络服务链路的历史趋势,得到所述第一网络的网络质量检测结果。The analyzing unit 43 obtains the network quality detection result of the first network by using the third parameter, the fourth parameter, the fifth parameter and the sixth parameter in combination with the set threshold and the historical trend of the network service link.

对于传输质量的检测,可以根据终端的播放记录来触发检测任务的下发。For the detection of the transmission quality, the delivery of the detection task can be triggered according to the playback record of the terminal.

基于此,在一实施例中,当终端的播放记录异常时,所述第一发送单元41发送检测任务。Based on this, in an embodiment, when the playback record of the terminal is abnormal, the first sending unit 41 sends a detection task.

实际应用时,所述第一发送单元41、第一接收单元42可由网络质量检测装置中的处理器结合收发机实现;分析单元43可由网络质量检测装置中的处理器实现。In practical application, the first sending unit 41 and the first receiving unit 42 may be implemented by a processor in the network quality detection device combined with a transceiver; the analysis unit 43 may be implemented by a processor in the network quality detection device.

为实现本发明实施例的方法,本实施例还提供了一种网络质量检测装置,设置在终端,如图5所示,所述装置包括:In order to implement the method of the embodiment of the present invention, the embodiment further provides a network quality detection apparatus, which is set at the terminal, as shown in FIG. 5 , the apparatus includes:

第二接收单元51,用于接收检测任务;所述检测任务用于指示终端分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;所述第一网络为所述终端所在的端到端网络;The second receiving unit 51 is configured to receive a detection task; the detection task is used to instruct the terminal to collect a parameter set of the first network in sections, where the parameter set represents the transmission parameters of the first network; the first network is the end-to-end network where the terminal is located;

第一采集单元52,用于响应所述检测任务,采集第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据RTSP延时和traceroute时延得到;The first collection unit 52 is configured to collect the first parameter and the second parameter in response to the detection task; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the The end-to-end data packet transmission delay in the first network; wherein, the signaling response delay is obtained according to RTSP delay and traceroute delay;

第二发送单元53,用于发出所述第一参数及第二参数。The second sending unit 53 is configured to send the first parameter and the second parameter.

其中,所述第一采集单元52,具体用于:Wherein, the first collection unit 52 is specifically used for:

向第一CDN节点发送RTSP请求;第一CDN节点为终端的对端;Send an RTSP request to the first CDN node; the first CDN node is the opposite end of the terminal;

并向所述第一CDN节点发送traceroute请求;and send a traceroute request to the first CDN node;

根据发送的RTSP请求以及RTSP响应的接收状态,确定RTSP延时;并根据发送的traceroute请求以及traceroute响应的接收状态,确定traceroute延时;Determine the RTSP delay according to the sent RTSP request and the receiving status of the RTSP response; and determine the traceroute delay according to the sent traceroute request and the receiving status of the traceroute response;

利用RTSP时延和traceroute时延,得到所述第一参数。The first parameter is obtained by using RTSP delay and traceroute delay.

其中,所述利用RTSP时延和traceroute时延,得到所述第一参数,包括:Wherein, the RTSP delay and the traceroute delay are used to obtain the first parameter, including:

所述第一采集单元52将所述RTSP时延与traceroute延时求差,得到所述第一参数。The first collection unit 52 calculates the difference between the RTSP delay and the traceroute delay to obtain the first parameter.

所述第一采集单元52,具体用于:The first collection unit 52 is specifically used for:

采集第一CDN节点到终端的IP包的时延,得到所述第二参数。The second parameter is obtained by collecting the delay of the IP packet from the first CDN node to the terminal.

实际应用时,所述第二接收单元51及第二发送单元53可由网络质量检测装置中的收发机实现;所述第一采集单元52可由网络质量检测装置中的处理器结合收发机实现。In practical applications, the second receiving unit 51 and the second sending unit 53 can be implemented by a transceiver in the network quality detection device; the first collection unit 52 can be implemented by a processor in the network quality detection device combined with the transceiver.

本实施例还提供了一种网络质量检测装置,设置在采集设备,如图6所示,该装置包括:This embodiment also provides a network quality detection device, which is set in the collection device. As shown in FIG. 6 , the device includes:

第三接收单元61,用于接收检测任务;所述检测任务用于指示所述采集设备分段采集第一网络的参数集,所述参数集表征所述第一网络的传输参数;The third receiving unit 61 is configured to receive a detection task; the detection task is used to instruct the collection device to collect a parameter set of the first network in sections, where the parameter set represents a transmission parameter of the first network;

第二采集单元62,用于响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;The second collection unit 62 is configured to, in response to the detection task, collect the service quality index of the corresponding link according to its position in the first network and the direction of the end-to-end network service link;

第三发送单元63,用于发出采集的服务质量指标。The third sending unit 63 is configured to send the collected service quality indicators.

其中,所述第二采集单元,具体用于:Wherein, the second collection unit is specifically used for:

获取所述服务链路的IP地址和端口;Obtain the IP address and port of the service link;

利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets;

对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link.

其中,当所述采集设备为终端时,所述利用IP地址和端口,抓取数据包,包括:Wherein, when the collection device is a terminal, the use of the IP address and port to capture data packets includes:

所述第二采集单元62利用IP地址和端口,在所述终端的入向抓取数据包;其中,The second collection unit 62 uses the IP address and port to capture data packets in the incoming direction of the terminal; wherein,

所述第一网络为所述终端所在的端到端网络;得到的服务质量指标为第六参数。The first network is the end-to-end network where the terminal is located; the obtained service quality indicator is the sixth parameter.

当所述采集设备为第一CDN节点时,所述利用IP地址和端口,抓取数据包,包括:When the collection device is the first CDN node, the use of the IP address and port to capture data packets includes:

所述第二采集单元62利用IP地址和端口,在所述第一CDN节点的入向和出向抓取数据包;其中,The second collection unit 62 uses the IP address and port to capture data packets in the inbound and outbound directions of the first CDN node; wherein,

第一CDN节点与终端之间的网络为第一网络;得到的服务质量指标为第四参数及第五参数。The network between the first CDN node and the terminal is the first network; the obtained service quality indicators are the fourth parameter and the fifth parameter.

当所述采集设备为第二CDN节点时,所述利用IP地址和端口,抓取数据包,包括:When the collection device is the second CDN node, the use of the IP address and port to capture data packets includes:

所述第二采集单元62利用IP地址和端口,在所述第二CDN节点的出向抓取数据包;其中,The second collection unit 62 uses the IP address and port to capture data packets in the outbound direction of the second CDN node; wherein,

第二CDN节点为第一CDN节点的上级节点;得到的服务质量指标为第三参数。The second CDN node is an upper-level node of the first CDN node; the obtained service quality indicator is the third parameter.

也就是说,第二CDN节点为第一CDN节点的依赖节点。That is, the second CDN node is a dependent node of the first CDN node.

其中,第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标。Wherein, the fifth parameter and the sixth parameter represent the service quality indicator of the first CDN node facing the terminal link; the third parameter and the fourth parameter represent the service quality indicator of the second CDN node facing the first CDN node link.

实际应用时,所述第三接收单元61及第三发送单元63可由网络质量检测装置中的收发机实现;所述第二采集单元62可由网络质量检测装置中的处理器实现。In practical application, the third receiving unit 61 and the third sending unit 63 may be implemented by a transceiver in the network quality detection apparatus; the second collection unit 62 may be implemented by a processor in the network quality detection apparatus.

实施例三Embodiment 3

在实施例一、二的基础上,本实施例详细描述本发明实施例的网络质量检测过程。Based on Embodiments 1 and 2, this embodiment describes in detail the network quality detection process of the embodiment of the present invention.

在本实施例中,端到端的网络为CDN节点到终端的网络。In this embodiment, the end-to-end network is a network from a CDN node to a terminal.

从终端视频服务的整个组网流程来看,涉及的网元及设备包括:CDN节点、承载网、接入网、以及终端设备;基于这种组网架构,本发明实施例中,从两个方面来建立CDN系统到终端的视频网络服务质量指标体系,具体地,从码流传输和交互延时两个方面检测网络服务质量。其中,交互时延是指:CDN系统到终端的传输时延;码流传输是指:码流传输CDN系统内部码流传输及CDN系统到终端的码流传输质量对比分析。From the perspective of the entire networking process of the terminal video service, the involved network elements and equipment include: CDN node, bearer network, access network, and terminal equipment; based on this networking architecture, in this embodiment of the present invention, the two To establish a video network service quality index system from the CDN system to the terminal, specifically, the network service quality is detected from the two aspects of code stream transmission and interaction delay. Among them, the interaction delay refers to: the transmission delay from the CDN system to the terminal; the code stream transmission refers to: the code stream transmission within the CDN system and the comparative analysis of the code stream transmission quality from the CDN system to the terminal.

图7为本实施例系统架构示意图。从图7中可以看出,核心部件包含八个部分,分别是:系统任务管理模块、数据下发和接收模块、数据分析模块、承载网数据采集模块、接入网数据采集模块、CDN节点数据采集模块以及终端数据采集模块。其中,FIG. 7 is a schematic diagram of the system architecture of this embodiment. As can be seen from Figure 7, the core components include eight parts, namely: system task management module, data sending and receiving module, data analysis module, bearer network data collection module, access network data collection module, CDN node data Acquisition module and terminal data acquisition module. in,

系统任务管理模块、数据下发和接收模块、数据分析模块部署在服务器,即部署在本地,而承载网数据采集模块、接入网数据采集模块、CDN节点数据采集模块以及终端数据采集模块进行远程部署。The system task management module, data sending and receiving module, and data analysis module are deployed on the server, that is, deployed locally, while the bearer network data collection module, access network data collection module, CDN node data collection module, and terminal data collection module perform remote deploy.

系统任务管理模块,负责管理和调度各数据采集模块的采集任务;也就是说,管理系统与各数据采集模块的任务管理和任务同步;The system task management module is responsible for managing and scheduling the collection tasks of each data collection module; that is, the management system and the task management and task synchronization of each data collection module;

数据下发和接收模块,用于下发采集任务,并接收各数据采集模块采集的数据,并对接收的采集数据进行解析,以便使数据分析模块进行分析;The data sending and receiving module is used to send the collection task, and receive the data collected by each data collection module, and analyze the received collected data, so that the data analysis module can analyze;

数据分析模块,主要基于各数据采集模块采集的数据进行网络质量的分析;The data analysis module mainly analyzes the network quality based on the data collected by each data collection module;

承载网数据采集模块,主要用于采集承载网的资源,包含资源分组、路由信息等,据此可以得到承载网的拓扑结构;The bearer network data collection module is mainly used to collect the resources of the bearer network, including resource grouping, routing information, etc., according to which the topology structure of the bearer network can be obtained;

接入网数据采集模块,主要用于采集接入网的资源,包含资源分组、路由信息等,据此可以得到接入网的拓扑结构。The access network data collection module is mainly used to collect the resources of the access network, including resource grouping, routing information, etc., according to which the topological structure of the access network can be obtained.

这里,实际应用时,可以采用http+json(上报的采集数据的格式为json格式)的方式做任务下发和数据上报,采集任务的启动和停止可以采用同步消息接口,而采集数据的上报则可以采用异步消息接口处理。Here, in actual application, the method of http+json (the format of the reported collection data is json format) can be used for task distribution and data reporting. The start and stop of the collection task can use the synchronous message interface, and the report of the collected data is Asynchronous message interface can be used for processing.

基于图7所示的系统结构,下面描述CDN系统到终端的传输时延检测及分析方法。Based on the system structure shown in FIG. 7 , the method for detecting and analyzing the transmission delay from the CDN system to the terminal is described below.

首先,描述采集终端到CDN系统的接入网络的请求路由信息和时延的过程。First, the process of collecting the request routing information and time delay from the terminal to the access network of the CDN system is described.

如图8所示,该过程主要包括:As shown in Figure 8, the process mainly includes:

步骤801:系统任务管理模块向终端下发时延分析任务;Step 801: The system task management module issues a delay analysis task to the terminal;

步骤802:终端的终端数据采集模块接到任务后,向CDN系统发起RTSP请求,并采集RTSP响应的时延;Step 802: After receiving the task, the terminal data collection module of the terminal initiates an RTSP request to the CDN system, and collects the delay of the RTSP response;

这里,采集的RTSP响应的时延可以称为RTSP时延,可以认为是一种协议信令类信息。Here, the collected RTSP response delay may be called RTSP delay, which may be considered as a kind of protocol signaling information.

步骤803:终端数据采集模块向CDN系统发起traceroute请求,并采集traceroute路由信息及对应的时延;Step 803: The terminal data collection module initiates a traceroute request to the CDN system, and collects traceroute routing information and corresponding delay;

这里,采集的traceroute路由信息包含网关跳转等相关信息。Here, the collected traceroute routing information includes gateway jumping and other related information.

步骤804:终端数据采集模块发起IP包传输时延分析任务,具体地,记录从CDN节点到终端的IP包时延。Step 804: The terminal data collection module initiates an IP packet transmission delay analysis task, specifically, records the IP packet delay from the CDN node to the terminal.

任务结束后将采集的数据结果通过数据下发和接收模块上报给数据分析模块,以对数据进行分析。After the task is over, the collected data results are reported to the data analysis module through the data sending and receiving module to analyze the data.

从上面的描述中可以看出,采集终端到CDN系统的接入网络的请求路由信息和时延的过程,首先,终端数据采集模块发起测试请求,并进行基础数据采集;接着,基于采集的基础数据,分析RTSP时延、traceroute路由时延、以及CDN节点到终端的IP包时延,最后将时延分析结果上报给数据分析模块。As can be seen from the above description, in the process of collecting the request routing information and delay from the terminal to the access network of the CDN system, first, the terminal data collection module initiates a test request and collects basic data; Data, analyze RTSP delay, traceroute routing delay, and IP packet delay from CDN node to terminal, and finally report the delay analysis result to the data analysis module.

数据分析模块获得终端数据采集模块上报的RTSP时延、traceroute路由时延、以及CDN节点到终端的IP包时延这些参数后,对这些参数进行分析,分析出CDN系统到终端的网络的网络质量检测结果。After the data analysis module obtains the parameters of RTSP delay, traceroute routing delay, and IP packet delay from the CDN node to the terminal reported by the terminal data acquisition module, it analyzes these parameters and analyzes the network quality of the network from the CDN system to the terminal. Test results.

具体地,首先,数据分析模块根据traceroute路由时延、RTSP时延来计算CDN系统的信令响应(CDN节点对于终端的请求响应)时延,并利用IP包的时延来计算CDN节点到终端的数据包传输时延。Specifically, first, the data analysis module calculates the signaling response delay of the CDN system (the CDN node's response to the terminal's request) according to the traceroute routing delay and RTSP delay, and uses the IP packet delay to calculate the CDN node-to-terminal delay packet transmission delay.

其中,CDN节点到终端的数据包传输时延=传输控制协议(TCP)建链时延+IP包传输时延;Among them, the data packet transmission delay from the CDN node to the terminal = Transmission Control Protocol (TCP) chain establishment delay + IP packet transmission delay;

CDN系统的信令响应时延=RTSP时延-traceroute路由的总时延。Signaling response delay of CDN system=RTSP delay-total delay of traceroute route.

接着,根据计算的结果分析CDN系统到终端的网络的网络质量检测结果;Next, analyze the network quality detection result of the network from the CDN system to the terminal according to the calculated result;

具体地,对于CDN系统的信令响应时延,当CDN系统的信令响应时延呈现劣化趋势时(通过设置的阈值以及横向时间对比,可以获知CDN系统的信令响应时延是否呈现劣化趋势),分析是否是因为CDN系统自身造成的影响还是中间网络的原因,当RTSP时延呈劣化趋势时(通过设置的阈值以及横向时间对比,可以获知RTSP时延是否呈现劣化趋势),说明CDN系统自身负荷很高,从而对于终端的响应会出现加长响应时间或超时的情况。当RTSP时延正常时,说明是中间网络的原因,可利用traceroute路由中每一跳路由网关信息及每一跳的时延,通过设置的阈值以及横向时间对比的方式,可以获知是哪段路由路径出现了异常。Specifically, for the signaling response delay of the CDN system, when the signaling response delay of the CDN system shows a deterioration trend (by comparing the set threshold and the horizontal time, it can be known whether the signaling response delay of the CDN system has a deterioration trend or not ), and analyze whether it is due to the influence of the CDN system itself or the intermediate network. When the RTSP delay shows a deteriorating trend (through the set threshold and horizontal time comparison, you can know whether the RTSP delay shows a deterioration trend), indicating that the CDN system The self-load is very high, so that the response time to the terminal may be prolonged or timed out. When the RTSP delay is normal, it means that the intermediate network is the cause. You can use the routing gateway information of each hop in the traceroute route and the delay of each hop to know which section of the route is by setting the threshold and comparing the horizontal time. An exception occurred in the path.

对于数据传输时延,当数据包传输时延劣化((通过设置的阈值以及横向时间对比,可以获知数据包传输时延是否呈现劣化趋势))时,说明CDN节点自身服务正常而中间传输网络不稳定。For the data transmission delay, when the data packet transmission delay is degraded ((by comparing the set threshold and the horizontal time, it can be known whether the data packet transmission delay shows a deterioration trend)), it means that the CDN node itself serves normally and the intermediate transmission network is not Stablize.

综上所述,对于CDN系统到终端的传输时延检测及分析方法,如图9所示,主要包括:To sum up, the method for detecting and analyzing the transmission delay from the CDN system to the terminal, as shown in Figure 9, mainly includes:

首先,终端向CDN节点发送RTSP请求,采集RTSP时延,统计终端到CDN系统的traceroute路由信息及对应的时延,并统计CDN节点到终端的数据包传输时延(步骤901);First, the terminal sends an RTSP request to the CDN node, collects RTSP delay, counts traceroute routing information from the terminal to the CDN system and the corresponding delay, and counts the data packet transmission delay from the CDN node to the terminal (step 901);

接着,将得到的RTSP时延、数据包传输时延、以及traceroute路由时延进行阈值及横向时间比较(步骤902);Next, compare the obtained RTSP delay, data packet transmission delay, and traceroute routing delay with threshold and horizontal time (step 902);

最后,得到CDN系统到终端的传输时延分析结果(步骤903)。Finally, the analysis result of the transmission delay from the CDN system to the terminal is obtained (step 903).

另外,实际应用时,数据分析模块还可以提供CDN系统到终端中间网络的各级路由服务情况。In addition, in practical application, the data analysis module can also provide routing services at all levels from the CDN system to the terminal intermediate network.

具体来说,系统任务管理模块向终端发起批量的如图8所示的时延采集过程,以记录每条服务路经对应traceroute路由信息及时延情况、RTSP时延以及数据包传输时延,数据分析模块可以根据承载网数据采集模块、接入网数据采集模块采集的资源以及traceroute路由信息中每一跳路由网关信息,得到的CDN系统到终端的网络拓扑路径信息,以IP地址为维度进行汇聚分析、比较CDN系统和终端之间网络的路由服务情况,统计最优服务路径和最差服务路径的路由信息,并统计分析长周期的数据,以分析突变和离散的情况和劣化趋势,从而提供整改网络服务质量提供参考建议,以用于网络调优。Specifically, the system task management module initiates a batch delay collection process as shown in Figure 8 to the terminal to record the routing information and delay of each service path corresponding to the traceroute, RTSP delay and data packet transmission delay. The analysis module can aggregate the network topology path information from the CDN system to the terminal according to the resources collected by the bearer network data collection module, the access network data collection module and the routing gateway information of each hop in the traceroute routing information, and use the IP address as the dimension for aggregation. Analyze and compare the routing service situation of the network between the CDN system and the terminal, count the routing information of the optimal service path and the worst service path, and statistically analyze long-term data to analyze sudden changes and discrete situations and deterioration trends, thereby providing Rectification of network service quality provides reference suggestions for network tuning.

这里,统计分析的方式包括:Here, the ways of statistical analysis include:

对于多路径情况,1、多网络路径下以IP地址为维度,将利用traceroute路由时延及RTSP时延进行时延汇聚归因,找出传输时延最大的路由点,以体现路由质量;For the multi-path situation, 1. In the multi-network path, the IP address is used as the dimension, and the traceroute routing delay and RTSP delay are used for delay aggregation and attribution, and the routing point with the largest transmission delay is found to reflect the routing quality;

2、多网络路径下将路由间的传输时延(数据包传输时延)进行汇聚,找出路由间传输的最大时延网络段,体现路由间网络段质量;2. Aggregate the transmission delay (data packet transmission delay) between routes under multiple network paths, find out the network segment with the maximum delay in transmission between routes, and reflect the quality of the network segment between routes;

3、根据以上2个汇总数据,结合机顶盒(终端)到CDN节点和CDN节点之间的网络路径信息,统计最差的网络路径、路由点、路由间传输网络。3. According to the above two summary data, combined with the network path information from the set-top box (terminal) to the CDN node and the CDN node, count the worst network path, routing point, and inter-route transmission network.

针对单个固定网络路径,建立分时动态基线模型,体现在不同服务时间的网络分段质量,记忆和学习其延时分布规律,当网络出现异常裂变时,根据均方差设置阀值,挑选出网络出现异常时离散的问题点和时间。For a single fixed network path, establish a time-sharing dynamic baseline model, which is reflected in the quality of network segmentation at different service times, and memorize and learn its delay distribution law. Discrete problem points and times when an anomaly occurs.

基于图7所示的系统结构,下面描述CDN系统到终端的码流传输质量(网络服务路径质量)检测及分析方法。Based on the system structure shown in FIG. 7 , the following describes the method for detecting and analyzing the transmission quality of the code stream (network service path quality) from the CDN system to the terminal.

具体来说,本发明实施例提供一种CDN系统到终端的单播服务链路网络质量监控方式。Specifically, the embodiment of the present invention provides a method for monitoring network quality of a unicast service link from a CDN system to a terminal.

首先,描述采集CDN系统到终端的单播服务链路服务质量指标的过程。First, the process of collecting the service quality indicators of the unicast service link from the CDN system to the terminal is described.

如图10所示,该过程涉及的模块主要包括:系统任务管理模块、终端数据采集模块、CDN节点数据采集模块。结合图10,该过程主要包括:As shown in Figure 10, the modules involved in this process mainly include: a system task management module, a terminal data collection module, and a CDN node data collection module. With reference to Figure 10, the process mainly includes:

首先,系统任务管理模块向终端下发视频指标采集任务,终端的终端数据采集模块实时获取当前服务码流的媒体IP地址和端口,上报系统任务管理模块端记录;First, the system task management module sends a video index collection task to the terminal, and the terminal data collection module of the terminal obtains the media IP address and port of the current service stream in real time, and reports it to the system task management module for record;

具体来说,终端从RTSP消息中获取IP地址和端口,并上报给系统任务管理模块。Specifically, the terminal obtains the IP address and port from the RTSP message, and reports it to the system task management module.

接着,系统任务管理模块得到的IP地址,启动第一CDN节点(服务节点)向第二CDN节点(第一CDN节点的依赖节点)发送RTSP请求,并建立码流服务连接;Next, the IP address obtained by the system task management module starts the first CDN node (service node) to send an RTSP request to the second CDN node (the dependent node of the first CDN node), and establishes a stream service connection;

本步骤完成后,形成终端到第一CDN节点和第二CDN节点的网络服务链路。After this step is completed, a network service link from the terminal to the first CDN node and the second CDN node is formed.

然后,系统任务管理模块同步向终端、第一CDN节点及第二节点下发网络质量分析任务;Then, the system task management module synchronously delivers the network quality analysis task to the terminal, the first CDN node and the second node;

最后,终端的终端数据采集模块采集服务链路上终端入向的网络质量指标,第一CDN节点的CDN节点数据采集模块(CDN1节点数据采集模块)采集服务链路上第一CDN节点的出向和入向的网络质量指标,第二CDN节点的CDN节点(CDN2节点数据采集模块)数据采集模块采集服务链路上第二CDN节点出向的网络质量指标。Finally, the terminal data collection module of the terminal collects the network quality indicators of the terminal inbound on the service link, and the CDN node data collection module (CDN1 node data collection module) of the first CDN node collects the outbound and outbound directions of the first CDN node on the service link. For the inbound network quality indicator, the data acquisition module of the CDN node (CDN2 node data acquisition module) of the second CDN node collects the outbound network quality indicator of the second CDN node on the service link.

这里,终端和CDN节点采集的网络质量指标是基于tcpdump实现的,只需要获得相应的tcpdump参数即可,只是实现时各设备采集的方向并不相同。Here, the network quality indicators collected by the terminal and the CDN node are implemented based on tcpdump, and only the corresponding tcpdump parameters need to be obtained, but the direction of the collection of each device is different during implementation.

具体地,如图11所示,服务链路可以分为:CDN节点间的服务链路111以及CDN节点与终端之间的服务链路112。Specifically, as shown in FIG. 11 , the service links can be divided into: service links 111 between CDN nodes and service links 112 between CDN nodes and terminals.

那么,CDN节点间的服务链路网络质量指标的采集包括:第二CDN节点以IP地址和端口(port)作为本节点的出向tcpdump入参,通过tcpdump抓包的方式获得出向的网络质量指标;而第一CDN节点,以IP地址和端口(port)作为本节点的入向tcpdump入参,通过tcpdump抓包的方式获得入向的网络质量指标;综合第一CDN节点和第二CDN节点获得的网络质量指标,得到CDN节点间的服务链路网络质量指标。Then, the collection of network quality indicators of service links between CDN nodes includes: the second CDN node uses the IP address and port (port) as the outbound tcpdump input parameters of this node, and obtains the outbound network quality indicators by capturing packets through tcpdump; The first CDN node uses the IP address and port (port) as the ingress tcpdump input parameters of the node, and obtains the ingress network quality indicator by tcpdump packet capture; Network quality index, obtains the service link network quality index between CDN nodes.

CDN节点与终端之间的服务链路网络质量指标的采集包括:第一CDN节点,以IP地址和端口(port)作为本节点的出向tcpdump入参,通过tcpdump抓包的方式获得出向的网络质量指标;终端以IP地址和端口(port)作为本节点的入向tcpdump入参,通过tcpdump抓包的方式获得入向的网络质量指标,综合第一CDN节点和终端获得的网络质量指标,得到CDN节点与终端之间的服务链路网络质量指标。The collection of the network quality indicators of the service link between the CDN node and the terminal includes: the first CDN node uses the IP address and port (port) as the outgoing tcpdump input parameters of the node, and obtains the outgoing network quality through tcpdump packet capture. Indicator; the terminal takes the IP address and port (port) as the inbound tcpdump input parameters of the node, obtains the inbound network quality indicator by tcpdump packet capture, and combines the network quality indicators obtained by the first CDN node and the terminal to obtain the CDN Service link network quality indicator between nodes and terminals.

其中,网络质量指标可以包括:网络吞吐量、丢包、抖动、重传、建链时长等参数。网络质量指标可以称为TCP类信息。The network quality indicators may include parameters such as network throughput, packet loss, jitter, retransmission, and link establishment duration. The network quality indicator may be referred to as TCP-like information.

接着,数据分析模块实时对各设备采集的网络质量指标进行分析,实时横向对比网络质量指标,从而分析出码流网络质量的劣化趋势和位置。Then, the data analysis module analyzes the network quality indicators collected by each device in real time, and compares the network quality indicators horizontally in real time, so as to analyze the deterioration trend and position of the code stream network quality.

也就是说,数据分析模块将实时采集的网络质量指标,对比分析单个用户服务的网络服务质量的历史趋势,从而分析出劣化情况和劣化位置。具体是将采集的网络质量指标(TCP建链时间、网络吞吐、丢包、抖动、重传等)做多维数据的关联比较。That is to say, the data analysis module compares and analyzes the historical trend of the network service quality of a single user service with the network quality indicators collected in real time, so as to analyze the deterioration situation and the deterioration position. Specifically, the collected network quality indicators (TCP link establishment time, network throughput, packet loss, jitter, retransmission, etc.) are correlated and compared with multi-dimensional data.

下面结合场景给出比较结果。The comparison results are given below in combination with the scenarios.

应用场景1:终端起始播放场景Application Scenario 1: Terminal Start Playing Scenario

此场景正常情况下,客户端尽力下载,网络质量指标情况如下:Under normal circumstances in this scenario, the client does its best to download, and the network quality indicators are as follows:

传输层:TCP建链时间短,TCP重传率很低。Transport layer: The TCP chain establishment time is short, and the TCP retransmission rate is very low.

应用场景2:终端正常播放场景Application Scenario 2: Terminal normal playback scenario

此场景正常情况下,客户端匀速下载,网络质量指标情况如下:Under normal circumstances in this scenario, the client downloads at a constant speed, and the network quality indicators are as follows:

传输层:TCP建链时间短,TCP重传率很低,丢包率较低、发端和收端码流基本一致。Transport layer: The TCP chain establishment time is short, the TCP retransmission rate is very low, the packet loss rate is low, and the code streams of the sender and receiver are basically the same.

应用场景3:网络丢包严重场景Application Scenario 3: Scenario of Serious Network Packet Loss

此场景下,由于网络丢包造成卡顿,网络质量指标情况如下:In this scenario, the network freezes due to packet loss, and the network quality indicators are as follows:

传输层:丢包率高、收发码率差别较大、TCP建链时间会波动、TCP重传率很高且无规律波动、抖动大。Transport layer: high packet loss rate, large difference in sending and receiving code rate, TCP link establishment time will fluctuate, TCP retransmission rate is high and irregular fluctuations, and jitter is large.

应用场景4:网速不够或限速场景Application Scenario 4: Insufficient Internet Speed or Speed Limit Scenario

此场景下,由于网速不够造成卡顿,网络质量指标情况如下:In this scenario, due to insufficient network speed, the network quality indicators are as follows:

传输层:TCP建链时间较稳定,TCP重传率有但不高且较稳定、下载码率低。Transport layer: The TCP chain establishment time is relatively stable, the TCP retransmission rate is stable but not high, and the download code rate is low.

应用场景5:CDN节点的服务器性能不足场景Application Scenario 5: Insufficient Server Performance of CDN Nodes

此场景下,由于CDN服务器性能问题造成会话处理不及时造成卡顿,网络质量指标情况如下:In this scenario, due to the performance problem of the CDN server, the session is not processed in a timely manner, resulting in a freeze. The network quality indicators are as follows:

传输层:TCP建链时间短,TCP重传率不高、丢包率低,RTSP时延异常波动有时很高。Transport layer: The TCP chain establishment time is short, the TCP retransmission rate is not high, the packet loss rate is low, and the abnormal fluctuation of RTSP delay is sometimes high.

实际应用时,根据终端的播放记录,当播放记录出现异常时,系统任务管理模块智能联动机顶盒的终端数据采集模块和CDN节点的CDN节点数据采集模块,发起单路码流服务主动诊断流程,并由数据分析模块给出诊断结果,从而提供针对网络服务质量的一键式检测、问题定位机制。In actual application, according to the playback record of the terminal, when the playback record is abnormal, the system task management module intelligently links the terminal data acquisition module of the set-top box and the CDN node data acquisition module of the CDN node to initiate the active diagnosis process of the single-channel stream service, and The diagnosis result is given by the data analysis module, thereby providing a one-click detection and problem location mechanism for network service quality.

从上面的描述中可以看出,CDN系统到终端的单播服务链路网络质量监控方式中,终端实时针对单个视频发起RTSP信令以请求下发码流,服务CDN节点向依赖CDN节点发起RTSP信令请求,从而形成实时单播服务链路,在该服务链路上通过抓包分析,来得到CDN节点的入向、出向的服务质量指标和终端的服务质量指标,并对该链路上的视频网络传输的服务质量指标项做横向对比分析,判断网络服务质量的劣化位置。As can be seen from the above description, in the network quality monitoring mode of the unicast service link from the CDN system to the terminal, the terminal initiates RTSP signaling for a single video in real time to request the delivery of the code stream, and the serving CDN node initiates RTSP to the dependent CDN node Signaling request to form a real-time unicast service link. Through packet capture analysis on the service link, the inbound and outbound service quality indicators of the CDN node and the service quality indicators of the terminal are obtained, and the service quality indicators on the link are obtained. The service quality index items of the video network transmission are horizontally compared and analyzed to determine the deterioration position of the network service quality.

综上所述,本发明实施例的供的方案,将网络分段进行检测,所以能够更加快捷、准确地检测CDN到终端的视频网络质量。To sum up, the solutions provided by the embodiments of the present invention detect network segments, so that the video network quality from the CDN to the terminal can be detected more quickly and accurately.

另外,还可以对服务链路分段进行检测,如此,能够正确、快速地检测端到端的网络服务路径质量。In addition, the service link segment can also be detected, so that the end-to-end network service path quality can be detected correctly and quickly.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (17)

1.一种网络质量检测方法,其特征在于,应用于服务器,所述方法包括:1. A network quality detection method, characterized in that, applied to a server, the method comprising: 发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述采集设备包括第一内容分发网络CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述参数集包括第三参数、第四参数、第五参数和第六参数,所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;Send a detection task, the detection task is used to instruct the collection device to collect the parameter set of the first network in sections, and the collection device includes the first content distribution network CDN node, the second CDN node and the terminal; the first CDN node and the terminal are connected. The intervening network is the first network; the second CDN node is the superior node of the first CDN node; the parameter set includes the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, the third parameter and the fourth parameter The parameter represents the service quality indicator of the second CDN node facing the link of the first CDN node; the fifth parameter and the sixth parameter represent the service quality indicator of the first CDN node facing the terminal link; 接收第二CDN节点发送的第三参数;receiving the third parameter sent by the second CDN node; 接收第一CDN节点发送的第四参数及第五参数;接收终端发送的第六参数;receiving the fourth parameter and the fifth parameter sent by the first CDN node; receiving the sixth parameter sent by the terminal; 利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。Using the parameter set, the network quality of the first network is analyzed to obtain a network quality detection result of the first network. 2.根据权利要求1所述的方法,其特征在于,所述采集设备为终端,所述接收所述采集设备采集的参数集,包括:2. The method according to claim 1, wherein the collection device is a terminal, and the receiving the parameter set collected by the collection device comprises: 接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据实时流传输协议RTSP延时和路由跟踪traceroute时延得到;Receive the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data packet in the first network Transmission delay; wherein, the signaling response delay is obtained according to the real-time streaming protocol RTSP delay and the traceroute delay; 相应地,对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。Correspondingly, the first parameter and the second parameter are analyzed to obtain a network quality detection result of the first network. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal; 当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, take the IP address as the dimension, aggregate and analyze the first parameters collected by the terminal for each routing path, and determine at least two routing paths The routing point with the largest and smallest transmission delay in the 对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;Aggregate and analyze the second parameters collected by the terminal for each routing path, and determine the network segment with the largest and smallest transmission delay between routes in at least two routing paths; 基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, wherein the method further comprises: 根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal; 当所述网络拓扑路径信息表征端到端的路由路径有一条时,依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;When the network topology path information indicates that there is one end-to-end routing path, a time-sharing dynamic baseline model is established according to the first parameter and the second parameter collected within the preset time period of the terminal; the model reflects the network with different service times segment quality; 并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model. 5.根据权利要求4所述的方法,其特征在于,所述对所述第三参数、第四参数、第五参数及第六参数进行分析,得到所述第一网络的网络质量检测结果,包括:5. The method according to claim 4, wherein the third parameter, the fourth parameter, the fifth parameter and the sixth parameter are analyzed to obtain a network quality detection result of the first network, include: 利用所述第三参数、第四参数、第五参数及第六参数,并结合设置的阈值及网络服务链路的历史趋势,得到所述第一网络的网络质量检测结果。Using the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, combined with the set threshold and the historical trend of the network service link, the network quality detection result of the first network is obtained. 6.根据权利要求4所述的方法,其特征在于,发送检测任务,包括:6. method according to claim 4, is characterized in that, sending detection task, comprises: 当终端的播放记录异常时,发送检测任务。When the playback record of the terminal is abnormal, a detection task is sent. 7.一种网络质量检测方法,其特征在于,应用于采集设备,所述方法包括:7. A network quality detection method, characterized in that, applied to a collection device, the method comprising: 接收检测任务;所述检测任务用于指示所述采集设备分段采集第一网络的参数集,所述采集设备包括第一内容分发网络CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述参数集包括第三参数、第四参数、第五参数和第六参数,所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;Receive a detection task; the detection task is used to instruct the collection device to collect the parameter set of the first network in sections, and the collection device includes a first content distribution network CDN node, a second CDN node, and a terminal; the first CDN node and The network between the terminals is the first network; the second CDN node is the upper-level node of the first CDN node; the parameter set includes the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, the third parameter and the The fourth parameter represents the service quality indicator of the second CDN node facing the link of the first CDN node; the fifth parameter and the sixth parameter represent the service quality indicator of the first CDN node facing the terminal link; 响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;In response to the detection task, collect the service quality index of the corresponding link according to its position in the first network and the direction of the end-to-end network service link; 发出采集的服务质量指标。Issue the collected service quality indicators. 8.根据权利要求7所述的方法,其特征在于,所述采集对应链路的服务质量指标,包括:8. The method according to claim 7, wherein the collecting the quality of service index of the corresponding link comprises: 获取所述服务链路的IP地址和端口;Obtain the IP address and port of the service link; 利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets; 对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link. 9.根据权利要求8所述的方法,其特征在于,当所述采集设备为终端时,所述利用IP地址和端口,抓取数据包,包括:9. The method according to claim 8, wherein when the collection device is a terminal, the use of an IP address and a port to capture data packets, comprising: 利用IP地址和端口,在所述终端的入向抓取数据包;其中,Use the IP address and port to capture data packets in the incoming direction of the terminal; wherein, 所述第一网络为所述终端所在的端到端网络;得到的服务质量指标为第六参数。The first network is the end-to-end network where the terminal is located; the obtained service quality indicator is the sixth parameter. 10.根据权利要求9所述的方法,其特征在于,当所述采集设备为第一CDN节点时,所述利用IP地址和端口,抓取数据包,包括:10. The method according to claim 9, wherein, when the collection device is the first CDN node, the use of an IP address and a port to capture data packets, comprising: 利用IP地址和端口,在所述第一CDN节点的入向和出向抓取数据包;其中,Use the IP address and port to capture data packets in the inbound and outbound directions of the first CDN node; wherein, 第一CDN节点与终端之间的网络为第一网络,得到的服务质量指标为第四参数及第五参数;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标。The network between the first CDN node and the terminal is the first network, and the obtained service quality index is the fourth parameter and the fifth parameter; the fifth parameter and the sixth parameter represent the service quality index of the first CDN node facing the terminal link. 11.根据权利要求10所述的方法,其特征在于,当所述采集设备为第二CDN节点时,所述利用IP地址和端口,抓取数据包,包括:11. The method according to claim 10, wherein, when the collection device is a second CDN node, the use of the IP address and port to capture data packets, comprising: 利用IP地址和端口,在所述第二CDN节点的出向抓取数据包;其中,Using the IP address and port, the data packet is captured in the outbound direction of the second CDN node; wherein, 第二CDN节点为第一CDN节点的上级节点,得到的服务质量指标为第三参数;所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标。The second CDN node is an upper-level node of the first CDN node, and the obtained service quality index is the third parameter; the third parameter and the fourth parameter represent the service quality index of the second CDN node facing the link of the first CDN node. 12.一种网络质量检测装置,其特征在于,所述装置包括:12. An apparatus for detecting network quality, wherein the apparatus comprises: 第一发送单元,用于发送检测任务,所述检测任务用于指示采集设备分段采集第一网络的参数集,所述采集设备包括第一内容分发网络CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述参数集包括第三参数、第四参数、第五参数和第六参数,所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;a first sending unit, configured to send a detection task, where the detection task is used to instruct a collection device to collect a parameter set of the first network in sections, and the collection device includes a first content distribution network CDN node, a second CDN node, and a terminal; The network between the first CDN node and the terminal is the first network; the second CDN node is the upper-level node of the first CDN node; the parameter set includes the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, so The third parameter and the fourth parameter represent the service quality index of the second CDN node facing the link of the first CDN node; the fifth parameter and the sixth parameter represent the service quality index of the first CDN node facing the terminal link; 第一接收单元,用于接收第二CDN节点发送的第三参数、接收第一CDN节点发送的第四参数及第五参数、接收终端发送的第六参数;a first receiving unit, configured to receive the third parameter sent by the second CDN node, receive the fourth parameter and the fifth parameter sent by the first CDN node, and receive the sixth parameter sent by the terminal; 分析单元,用于利用所述参数集,对所述第一网络的网络质量进行分析,得到所述第一网络的网络质量检测结果。An analysis unit, configured to use the parameter set to analyze the network quality of the first network to obtain a network quality detection result of the first network. 13.根据权利要求12所述的装置,其特征在于,所述第一接收单元,具体用于:13. The apparatus according to claim 12, wherein the first receiving unit is specifically configured to: 接收终端发送的第一参数及第二参数;所述第一参数表征所述第一网络中端到端的信令响应时延;所述第二参数表征所述第一网络中端到端的数据包传输时延;其中,所述信令响应时延依据实时流传输协议RTSP延时和路由跟踪traceroute时延得到;Receive the first parameter and the second parameter sent by the terminal; the first parameter represents the end-to-end signaling response delay in the first network; the second parameter represents the end-to-end data packet in the first network Transmission delay; wherein, the signaling response delay is obtained according to the real-time streaming protocol RTSP delay and the traceroute delay; 所述分析单元,用于对所述第一参数及第二参数进行分析,得到所述第一网络的网络质量检测结果。The analyzing unit is configured to analyze the first parameter and the second parameter to obtain a network quality detection result of the first network. 14.根据权利要求13所述的装置,其特征在于,所述分析单元,还用于:14. The device according to claim 13, wherein the analysis unit is further configured to: 根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal; 当所述网络拓扑路径信息表征端到端的路由路径有至少两条时,根据所述第一网络的网络拓扑结构,以IP地址为维度,对终端采集的针对每条路由路径的第一参数进行汇聚及分析,确定出至少两条路由路径中传输时延最大及最小的路由点;When the network topology path information indicates that there are at least two end-to-end routing paths, according to the network topology structure of the first network, with the IP address as the dimension, the first parameter for each routing path collected by the terminal is performed. Aggregate and analyze to determine the routing point with the largest and smallest transmission delay in at least two routing paths; 对终端采集的针对每条路由路径的第二参数进行汇聚及分析,确定出至少两条路由路径中路由间传输时延最大及最小的网络段;以及Aggregating and analyzing the second parameters collected by the terminal for each routing path, and determining the network segment with the largest and smallest transmission delay between routes in at least two routing paths; and 基于确定的网络段及路由点,并结合所述第一网络的路由服务信息,确定所述终端的最优服务路径和最差服务路径的路由信息。Based on the determined network segment and routing point, and in combination with the routing service information of the first network, the routing information of the optimal service path and the worst service path of the terminal is determined. 15.根据权利要求12所述的装置,其特征在于,所述分析单元,还用于:15. The device according to claim 12, wherein the analysis unit is further configured to: 根据所述第一网络的网络拓扑结构及traceroute路由信息中每一跳路由网关信息,确定所述终端对应的所述第一网络的网络拓扑路径信息;According to the network topology structure of the first network and each hop routing gateway information in the traceroute routing information, determine the network topology path information of the first network corresponding to the terminal; 当所述网络拓扑路径信息表征端到端的路由路径有一条时,依据终端预设时间段内采集的第一参数及第二参数,建立分时动态基线模型;所述模型体现不同服务时间的网络分段质量;When the network topology path information indicates that there is one end-to-end routing path, a time-sharing dynamic baseline model is established according to the first parameter and the second parameter collected within the preset time period of the terminal; the model reflects the network with different service times segmentation quality; 并在所述模型上确定所述第一网络网络质量异常时的问题点和时间。And the problem point and time when the network quality of the first network is abnormal is determined on the model. 16.一种网络质量检测装置,其特征在于,所述装置包括:16. An apparatus for detecting network quality, wherein the apparatus comprises: 第三接收单元,用于接收检测任务;所述检测任务用于指示采集设备分段采集第一网络的参数集,所述采集设备包括第一内容分发网络CDN节点、第二CDN节点及终端;第一CDN节点与终端之间的网络为第一网络;第二CDN节点为第一CDN节点的上级节点;所述参数集包括第三参数、第四参数、第五参数和第六参数,所述第三参数及第四参数表征第二CDN节点面向第一CDN节点链路的服务质量指标;第五参数及第六参数表征第一CDN节点面向终端链路的服务质量指标;a third receiving unit, configured to receive a detection task; the detection task is used to instruct a collection device to collect a parameter set of the first network in segments, and the collection device includes a first content distribution network CDN node, a second CDN node and a terminal; The network between the first CDN node and the terminal is the first network; the second CDN node is the upper-level node of the first CDN node; the parameter set includes the third parameter, the fourth parameter, the fifth parameter and the sixth parameter, so The third parameter and the fourth parameter represent the service quality index of the second CDN node facing the link of the first CDN node; the fifth parameter and the sixth parameter represent the service quality index of the first CDN node facing the terminal link; 第二采集单元,用于响应所述检测任务,依据自身在所述第一网络的位置以及端到端的网络服务链路方向,采集对应链路的服务质量指标;a second collection unit, configured to respond to the detection task and collect the service quality index of the corresponding link according to its position in the first network and the direction of the end-to-end network service link; 第三发送单元,用于发出采集的服务质量指标。The third sending unit is configured to send the collected service quality indicators. 17.根据权利要求16所述的装置,其特征在于,所述第二采集单元,具体用于:17. The device according to claim 16, wherein the second collection unit is specifically configured to: 获取所述服务链路的IP地址和端口;Obtain the IP address and port of the service link; 利用IP地址和端口,抓取数据包;Use IP address and port to capture data packets; 对抓取的数据包进行分析,得到所述对应链路的服务质量指标。The captured data packets are analyzed to obtain the service quality index of the corresponding link.
CN201611247185.1A 2016-12-29 2016-12-29 A kind of network quality detection method and device Active CN106850337B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611247185.1A CN106850337B (en) 2016-12-29 2016-12-29 A kind of network quality detection method and device
PCT/CN2017/115561 WO2018121237A1 (en) 2016-12-29 2017-12-12 Network quality detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611247185.1A CN106850337B (en) 2016-12-29 2016-12-29 A kind of network quality detection method and device

Publications (2)

Publication Number Publication Date
CN106850337A CN106850337A (en) 2017-06-13
CN106850337B true CN106850337B (en) 2020-07-03

Family

ID=59113515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611247185.1A Active CN106850337B (en) 2016-12-29 2016-12-29 A kind of network quality detection method and device

Country Status (2)

Country Link
CN (1) CN106850337B (en)
WO (1) WO2018121237A1 (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850337B (en) * 2016-12-29 2020-07-03 中兴通讯股份有限公司 A kind of network quality detection method and device
CN108449232B (en) * 2018-03-25 2022-01-14 上海德载信息技术有限公司 Network speed self-adaptive control method
CN110324162B (en) * 2018-03-29 2021-10-15 华为技术有限公司 Method, device and system for detecting service quality
WO2019214830A1 (en) 2018-05-11 2019-11-14 Huawei Technologies Co., Ltd. Control plane entity and management plane entity for exchaning network slice instance data for analytics
CN110890972B (en) * 2018-09-07 2022-06-28 中国移动通信集团浙江有限公司 A method and device for evaluating the health degree of a business system
CN109688031B (en) * 2019-03-04 2020-11-03 腾讯科技(深圳)有限公司 Network monitoring method and related equipment
CN110380938A (en) * 2019-08-07 2019-10-25 重庆金美通信有限责任公司 A kind of multidimensional converged network monitoring method based on programmable model
CN111031403B (en) * 2019-11-05 2022-01-18 网宿科技股份有限公司 Method, system and equipment for detecting stuck
CN112866042B (en) * 2019-11-12 2023-07-18 中兴通讯股份有限公司 Network quality detection method, device, computer equipment and computer readable medium
CN111049700B (en) * 2019-11-19 2023-01-10 深圳明心科技有限公司 Network transmission management method and system
CN111147323A (en) * 2019-12-17 2020-05-12 中国联合网络通信集团有限公司 Speed measuring method and device
CN111147328A (en) * 2019-12-26 2020-05-12 怀来斯达铭数据有限公司 Network quality monitoring method and system
CN113139146B (en) * 2020-01-17 2023-07-21 中国移动通信集团浙江有限公司 Website quality evaluation method, device and computing equipment
CN111740857B (en) * 2020-05-29 2023-12-26 新华三信息安全技术有限公司 Method and device for issuing Network Quality Analysis (NQA) configuration
CN111901825B (en) * 2020-08-11 2023-02-24 中国联合网络通信集团有限公司 Wireless communication network quality evaluation method and device based on network quality slice
CN112333756B (en) * 2020-09-14 2024-02-27 咪咕文化科技有限公司 Regional network quality monitoring method, system, electronic equipment and storage medium
CN112702222B (en) * 2020-12-03 2022-10-21 南京暴走团电子商务有限公司 Network quality detection device based on internet technology development
CN112994956B (en) * 2021-04-23 2021-07-16 广东省新一代通信与网络创新研究院 A network remote sensing acquisition method and system based on topology optimization
CN113542064B (en) * 2021-07-13 2023-02-28 北京字跳网络技术有限公司 Network path determination method, network path determination device, electronic apparatus, network path determination medium, and program product
CN114286380B (en) * 2021-09-30 2025-01-28 烽火通信科技股份有限公司 A deterministic delay service transmission method and system for dynamically adjusting time slices
CN114143251B (en) * 2021-12-08 2023-10-13 北京天融信网络安全技术有限公司 Intelligent routing method, intelligent routing device, electronic equipment and computer readable storage medium
CN115150302B (en) * 2022-06-29 2023-12-29 中国电子科技集团公司第五十四研究所 End-to-end satellite network performance measurement method
CN116056245B (en) * 2022-07-19 2023-10-20 荣耀终端有限公司 Data scheduling method, device and computer readable storage medium
CN115496460B (en) * 2022-08-03 2024-10-25 慧之安信息技术股份有限公司 Intelligent farmer system based on digital twinning
CN117997800A (en) * 2022-11-04 2024-05-07 中兴通讯股份有限公司 Time delay determining method and device, electronic equipment and storage medium
CN116244081B (en) * 2023-03-10 2023-09-19 苏州亿铸智能科技有限公司 Multi-core calculation integrated accelerator network topology structure control system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145977A (en) * 2006-09-11 2008-03-19 中兴通讯股份有限公司 A QoS monitoring system and its measuring method of IP data network
CN102143389A (en) * 2011-04-22 2011-08-03 赛特斯网络科技(南京)有限责任公司 Quality assurance (QA) system and method of internet protocol television (IPTV) services
CN102340802A (en) * 2010-07-14 2012-02-01 中国联合网络通信集团有限公司 Service quality monitoring method and system
CN102439905A (en) * 2011-09-30 2012-05-02 华为技术有限公司 Method, device and system for automatically discovering network topology
CN102857799A (en) * 2012-09-14 2013-01-02 乐视网信息技术(北京)股份有限公司 Set top box fault diagnosis method
CN103813182A (en) * 2014-01-28 2014-05-21 苏州工业园区科升通讯有限公司 System and method for QOS (quality of service) monitoring of IPTV (internet protocol television) services
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6978223B2 (en) * 2001-09-06 2005-12-20 Bbnt Solutions Llc Systems and methods for network performance measurement using packet signature collection
KR100400431B1 (en) * 2002-04-18 2003-10-04 Willtek Corp System for measuring radio environment in mobile communication terminal
CN106850337B (en) * 2016-12-29 2020-07-03 中兴通讯股份有限公司 A kind of network quality detection method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145977A (en) * 2006-09-11 2008-03-19 中兴通讯股份有限公司 A QoS monitoring system and its measuring method of IP data network
CN102340802A (en) * 2010-07-14 2012-02-01 中国联合网络通信集团有限公司 Service quality monitoring method and system
CN102143389A (en) * 2011-04-22 2011-08-03 赛特斯网络科技(南京)有限责任公司 Quality assurance (QA) system and method of internet protocol television (IPTV) services
CN102439905A (en) * 2011-09-30 2012-05-02 华为技术有限公司 Method, device and system for automatically discovering network topology
CN102857799A (en) * 2012-09-14 2013-01-02 乐视网信息技术(北京)股份有限公司 Set top box fault diagnosis method
CN103813182A (en) * 2014-01-28 2014-05-21 苏州工业园区科升通讯有限公司 System and method for QOS (quality of service) monitoring of IPTV (internet protocol television) services
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet

Also Published As

Publication number Publication date
CN106850337A (en) 2017-06-13
WO2018121237A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN106850337B (en) A kind of network quality detection method and device
EP2530870B1 (en) Systems and methods for measuring quality of experience for media streaming
US9577906B2 (en) Scalable performance monitoring using dynamic flow sampling
TW536890B (en) Scalable real-time quality of service monitoring and analysis of service dependent subscriber satisfaction in IP networks
US20170126476A1 (en) System and method for automatically identifying failure in services deployed by mobile network operators
EP3295612B1 (en) Uplink performance management
EP2589181A1 (en) Method and apparatus for analysis of the operation of a communication system using events
US11936930B2 (en) Data processing method, server, and data collection device
KR20150090216A (en) Monitoring encrypted sessions
CN111989979A (en) Method and system for controlling operation of a communication network to reduce latency
CN102325060B (en) Link bandwidth test method and router
JP4935635B2 (en) Network bandwidth estimation program, network bandwidth estimation device, network bandwidth estimation method, and measurement device
US8867350B2 (en) Method and apparatus for packet buffering measurement
JP6033058B2 (en) Communication path identification device
Szilágyi et al. Network side lightweight and scalable YouTube QoE estimation
EP3854130A1 (en) Technique for performing analysis of an rtp flow
CA2742038C (en) Systems and methods for measuring quality of experience for media streaming
US20140086091A1 (en) Method, apparatus, and system for analyzing network transmission characteristic
JP5923914B2 (en) Network state estimation apparatus and network state estimation program
CN105611406A (en) Method for access network service provider to monitor delay feature from user to video server
US12068934B2 (en) Method and system for network segment performance monitoring
JP5528372B2 (en) Flow quality degradation identification device and method
US20130121192A1 (en) Measuring message stream quality across networks
Fallon Huang et al.
KR20150033816A (en) Device for Detecting Abnormal Surge in Control Packet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant