Monitoring communication quality
By capturing and aggregating data packets from media streaming sessions, a platform generates and stores media quality data for real-time and offline analysis, addressing the limitations of RTCP in communication quality monitoring.
Patent Information
- Application Number
- US19/217427
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2026-11-26
AI Technical Summary
Existing real-time communication protocols like RTCP only allow end participants to monitor communication quality in real-time, preventing third parties from performing real-time or offline analysis of communication quality.
A platform captures data packets from media streaming sessions, aggregates quality-describing data packets, and generates media quality data in a predefined format, storing it in data storages for real-time and offline analysis.
Enables third parties to monitor and analyze communication quality across multiple participants, facilitating large-scale real-time and offline communication quality monitoring and visualization.
Smart Images

Figure US20260379879A1-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] This specification relates to data processing, and in particular, to monitoring communication quality.BACKGROUND
[0002] Real-time communication, for example, real-time audio communication or real-time video communication, are widely used in various scenes such as remote conferences, online education, live interaction, call center, etc. Presently, Real-time Transport Protocol (RTP) and Real-time Transport Control Protocol (RTCP) are the two principal protocols for transmitting and controlling data of real-time communication. In particular, RTCP is mainly used for monitoring the transmission quality of the data between the communication end parties and providing corresponding feedback.SUMMARY
[0003] This specification describes technologies for monitoring communication quality.
[0004] According to a first aspect, a computer-implemented method is provided. The method includes: capturing, by a platform, data packets related to a first communication of media streaming sessions established between a first pair of terminals; collecting quality-descripting data packets that indicate quality of service of the media streaming sessions from the data packets; aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets, wherein the first predefined format includes: an identifier indicating the first communication, a first group of fields corresponding to a protocol for quality of media streaming sessions, and a second group of fields corresponding to information of the quality-descripting data packets; and storing the media quality data into one or more data storages.
[0005] With reference to the first aspect, in some implementations, the first communication includes a cellular-based portion and an internet-based portion, the cellular-based portion of the first communication is established between a first terminal of the first pair of terminals and a base station, and the internet-based portion of the first communication is established between a second terminal of the first pair of terminals and the base station. In some implementations, capturing, by a platform, data packets related to the first communication includes: capturing data related to the internet-based portion of the first communication.
[0006] With reference to the first aspect, in some implementations, the internet-based portion of the first communication further includes a first segment established between the base station and a server of the platform, and a second segment established between the server of the platform and the second terminal of the first pair of terminals.
[0007] With reference to the first aspect, in some implementations, the first segment is based on Session Initiation Protocol, and the second segment is based on Web Real-Time Communication.
[0008] With reference to the first aspect, in some implementations, the data packets related to the first communication include data transmitted using at least one of Session Initiation Protocol, Real-time Transport Protocol or Real-time Transport Control Protocol. In some implementations, the quality-descripting data packets are data transmitted using the Real-time Transport Control Protocol.
[0009] With reference to the first aspect, in some implementations, the protocol for quality of media streaming sessions is Real-time Transport Control Protocol. In some implementations, the first group of fields includes at least one of following fields: a field of source address; a field of destination address; a field of Unix timestamp in second; a field of Unix timestamp in microsecond; or a field of net stack indicating type of a network.
[0010] With reference to the first aspect, in some implementations, the method further includes deriving a plurality of advanced fields based on at least one of the field of source address and the field of destination address. In some implementations, the plurality of advanced fields includes: a field of source service indicating information related to sending services provided by the media streaming sessions; a field of destination service indicating information related to receiving services provided by the media streaming sessions; a field of source information parsed from the field of source address; or a field of destination information parsed from the field of destination address.
[0011] With reference to the first aspect, in some implementations, the second group of fields includes at least one of following fields: a field of octets indicating a size of each of the data packets; a field of packets indicating a quantity of the data packets; a field of highest sequence number indicating a highest sequence number among the packets of the quality-descripting data packets; a field of fraction lost of the quality-descripting data packets; a field of jitter of the quality-descripting data packets; a field of packet lost indicating a quantity of packets lost during the media streaming sessions; a field of timestamp corresponding to a latest received sender report; or a field of time delay corresponding to a delay between the latest received sender report and a send of a current receiver report.
[0012] With reference to the first aspect, in some implementations, the method further includes: deriving a field of provider information based on the field of source address and the field of destination address, wherein the field of provider information is included in the second group of fields.
[0013] With reference to the first aspect, in some implementations, storing the media quality data into one or more storages includes: converting the media quality data having the first predefined format into storage data having a second predefined format, wherein the second predefined format includes: fields included in the media quality data having the first predefined format and additional fields for retrieving; and storing the storage data having the second predefined format into more than one storage.
[0014] With reference to the first aspect, in some implementations, the additional fields for retrieving include at least one of the following fields: an identifier for retrieving the storage data in the more than one storage; or a date field indicating a creation time for the storage data.
[0015] With reference to the first aspect, in some implementations, the second predefined format further includes a raw field for storing a complete version of the media quality data having the first predefined format.
[0016] With reference to the first aspect, in some implementations, the one or more storages include at least one of: a database storage, a message queue storage, or an elasticsearch storage.
[0017] With reference to the first aspect, in some implementations, storing the storage data having the second predefined format into more than one storage includes: determining a target storage for storing the storage data; converting the second predefined format of the storage data into a storage-specified format corresponding to the target storage; and storing the storage data into the more than one storage.
[0018] With reference to the first aspect, in some implementations, the method further includes: capturing, by the platform, data packets related to a second communication of media streaming sessions established between a second pair of terminals; collecting quality-descripting data packets corresponding to the second communication; aggregating the quality-descripting data packets corresponding to the second communication and generating media quality data based on the quality-descripting data packets corresponding to the second communication to obtain the media quality data corresponding to the second communication; and storing the media quality data corresponding to the second communication into the one or more storages.
[0019] With reference to the first aspect, in some implementations, the method further includes: reading the media quality data from the one or more storages; and analyzing at least one of quality of the first communication and quality of the second communication based on the media quality data.
[0020] With reference to the first aspect, in some implementations, analyzing at least one of quality of the first communication and quality of the second communication based on the media quality data includes: monitoring communication factors of the first communication and the second communication changing with time; and displaying trends of the communication factors changing with time, wherein the communication factors include at least one of: mean opinion score, round-trip time, fraction lost, jitter, or packet size.
[0021] According to a second aspect, one or more non-transitory computer-readable storage media are provided. The one or more computer-readable storage media store one or more instructions that, when executable by one or more computers, cause the one or more computers to perform the method according to the first aspect and / or one or more implementations of the first aspect.
[0022] According to a third aspect, a computer-implemented system is provided. The computer-implemented system includes one or more computers and one or more computer memory devices interoperably coupled with the one or more computers. The one or more computer memory devices have computer-readable storage media storing one or more instructions that, when executed by the one or more computers, perform the method according to the first aspect and / or one or more implementations of the first aspect.
[0023] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG. 1 shows a schematic diagram of a communication monitoring system.
[0025] FIG. 2 illustrates an example process for monitoring communication quality by a platform.
[0026] FIG. 3A illustrates an example first predefined format of the media quality data.
[0027] FIG. 3B illustrates an example second predefined format of the storage data.
[0028] FIG. 4 illustrates an example configuration of a program architecture for monitoring communication quality.
[0029] FIG. 5 illustrates an example computing system.
[0030] Like reference numbers and designations in the various drawings indicate like elements.DETAILED DESCRIPTION
[0031] Real-time communication is widely used in various scenes such as remote conferences, online education, live interaction, call center, etc. In general, real-time communication can be classified into, for example, text-based real-time communication, voice-based real-time communication (i.e., audio real-time communication) and video-based real-time communication (i.e., video real-time communication). When performing the real-time communication, Real-time Transport Protocol (RTP) and Real-time Transport Control Protocol (RTCP) are the two principal protocols used for transmitting and controlling data. In particular, RTP is mainly used for transmitting the data between two or more communication end parties, and RTCP is mainly used for monitoring the transmission quality of the data between the communication end parties and providing corresponding feedback. For example, RTCP can provide feedback for the quality of data transmission between a sender and a receiver, monitor network performance (e.g., packet loss rate, round-trip time (RTT), jitter) of the data transmission, synchronize multiple media streams, manager sessions between the sender and the receiver, etc.
[0032] However, RTCP is an end-to-end protocol, which means that the control and feedback information of RTCP is only exchange between direct or end participants (e.g., sender and receiver) of the communication. In other words, the RTCP merely allows the direct participants of the communication to monitor the quality of the communication in real time, and to coordinate the transmission mode of the communication. In this case, a third party, such as a platform for providing and establishing communications, is not able to perform real-time monitor and off-line analysis for the communications.
[0033] Techniques described in this disclosure allow RTCP-based communication to be monitored, for example, by a third party other than the end participants or parties of the communication. The third party can be, for example, a platform for providing and establishing communications. The described techniques allow the third party to monitor communications for one or more pairs of the end participants, aggregate the results, and perform real-time and / or off-line analysis for the communications provided by or involved with the platform. As an example, a computer-implemented method includes: capturing, by a platform, data packets related to a first communication of media streaming sessions established between a first pair of terminals; collecting quality-descripting data packets that indicate quality of service of the media streaming sessions from the data packets; aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets, wherein the first predefined format includes: an identifier indicating the first communication, a first group of fields corresponding to a protocol for quality of media streaming sessions, and a second group of fields corresponding to information of the quality-descripting data packets; and storing the media quality data into one or more data storages.
[0034] The described techniques can achieve one or more technical benefits / advantages. In some implementations, the described techniques allow a third party to monitor quality of communication performed thereon by multiple end participants, over the same or different time periods and / or communication resources. For example, by capturing data packets related to communication and collecting quality-descripting data packets that indicate quality of service (QoS) of the media streaming sessions from the data packets, a third party can collect data about communication quality in real time. In some implementations, the described techniques can analyze and further provide visualization of the communication quality by aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets and storing the media quality data into one or more data storages. Thus, the platform can realize monitoring of large-scale real-time audio and video communication. In some implementations, different or additional advantages can be achieved.
[0035] FIG. 1 shows a schematic diagram of a communication monitoring system 100. Referring to FIG. 1, the communication monitoring system 100 can be implemented by two end participants 110, 120 of communication and a platform 130. As an example, the platform 130 can be an ecommerce platform (e.g., online shopping platform), and the two end participants 110, 120 can be users of the platform 130, for example, a supplier or merchant who provides products (e.g., a good and / or service provider) and a customer / consumer that is an ultimate recipient of the products (e.g., a buyer). In some implementations, the communication system 100 can also include more than two end participants. In some implementations, communication can be established between the two end participants 110, 120 (such as the buyer and the service provider) by phone calls. For example, the buyer calls the hotline of the service provider to change the shipping address of an order, or the service provider calls the buyer to confirm order information. In such situations, communication is established, resulting in transmitting media stream between the buyer and the service provider.
[0036] In some implementations, communication established between the end participants can be divided into two sections. Referring to FIG. 1, a first communication section is a wireless communication portion (e.g., based on a cellular or wireless local area network (WLAN), Bluetooth, etc.) portion and is established between the end participant 110 and a base station 152 (e.g., a cellular base station or an access point). In some implementations, the base station 152 can be a mobile communication provider (e.g., a wireless carrier or mobile network operator), and the first communication section can be, for example, a 4G-based or a 5G-based communication. In some implementations, the first communication section is handled by the mobile communication provider. A second communication section is an internet-based portion and is established between the base station 152 and the end participant 120. In some implementations, the second communication section is established via a sever 154 of the platform 130. For example, the second communication section can include a first segment between the base station 152 and the sever 154 and a second segment between the sever 154 and the end participant 120. In some implementations, the first section is based on SIP (Session Initiation Protocol). In some implementations, the second segment is based on WebRTC (Web Real-Time Communication).
[0037] In some implementations, take the buyer calls the hotline of the platform who is the service provider of the ecommerce as an example. The buyer dials the hotline number of the platform and establishes a 5G-based communication with a telecommunication service operator. The telecommunication service operator then identifies the ownership of the hotline number and routes the call to the Internet network through SIP to access the server of the platform. The server further forwards the call to the platform based on WebRTC protocol.
[0038] Referring to FIG. 1, the communication monitoring system 100 further includes a storage 156 for storing media quality data of the media stream involved in the communication. In some implementations, the media quality data stored in the storage 156 corresponds to the internet-based portion of the communication established between the two end participants 110, 120. In some implementations, the media quality data are obtained and stored in the storage 156 by the platform 130 based on the method described below with reference to FIG. 2.
[0039] In some implementations, the platform 130 can monitor communication between the end participants 110, 120 by accessing the media quality data stored in the storage 156. For example, the platform 130 can monitor the communication between the buyer and the platform. When the network condition of either the buyer or the platform is detected to be poor, the platform 130 can autonomously reduce the bit rate of the media stream involved in the communication to ensure the continuity of the call, thereby ensuring the quality of the communication.
[0040] FIG. 2 illustrates an example process 200 for monitoring communication quality by a platform. In some implementations, the process 200 can be performed by a platform (e.g., the platform 130 shown in FIG. 1 or the system 500 shown in FIG. 5) and programmed appropriately in accordance with this specification. Further, some of the operations may be omitted, or performed simultaneously or in a different order than shown in FIG. 2.
[0041] At 202, data packets related to a first communication of media streaming sessions established between a first pair of terminals are captured by a platform. In some implementations, the first pair of terminals can include the end participants 110, 120 shown in FIG. 1. As an example, the platform 130 captures data packets related to a first communication of media streaming sessions established between the end participants 110, 120. In some implementations, the first communication can be video communication or audio communication established between the first pair of terminals. In some implementations, the data packets are related to the internet-based portion of the first communication. For example, the data packets are related to the communication section based on the SIP internet and the WebRTC internet of FIG. 1. In some implementations, the data packets include data transmitted through internet using, for example, SIP, RTP and / or RTCP.
[0042] At 204, quality-descripting data packets that indicate quality of service of the media streaming sessions are collected, by the platform, from the data packets. In some implementations, the quality-descripting data packets are data transmitted through RTCP due to the data transmitted through RTCP describes the situation of the media stream of both terminals in real time. For example, the platform 130 collects data transmitted through RTCP from the captured data packets related to the first communication.
[0043] At 206, the quality-descripting data packets are aggregated by the platform. In some implementations, the quality-descripting data packets are aggregated, so as to facilitate data packaging and format conversion. For example, the platform 130 aggregates the data transmitted through RTCP. In some implementations, aggregating the quality-descripting data packets includes collecting, decoding, parsing, filtering, assembling, analyzing, or otherwise manipulating the quality-descripting data packets.
[0044] At 208, media quality data are generated, by the platform, in a first predefined format based on the quality-descripting data packets. For example, the platform 130 generates the media quality data in the first predefined format (e.g., an example first predefined format 300A as described with respect to FIG. 3A) based on the data transmitted through RTCP.
[0045] In some implementations, the first predefined format of the media quality data includes an identifier (SID) indicating the first communication. In some implementations, the identifier is a unique ID corresponds to the first communication of media streaming sessions. For example, the identifier can be obtained from the call-id generated based on the SIP.
[0046] In some implementations, the first predefined format further includes a first group of fields corresponding to a protocol for quality of media streaming sessions. In some implementations, since the aggregated data are data transmitted through RTCP, the first group of fields corresponds to RTCP. In some implementations, the first group of fields includes a field of source address, a field of destination address, a field of Unix timestamp in second, a field of Unix timestamp in microsecond, and / or a field of net stack indicating type of a network. The source address can refer to the IP address of the end participant who initiate the communication. The destination address can refer to the IP address of the end participant who passively accepts the communication. The net stack indicating type of a network includes, for example, Internet Protocol version4 (IPv4) and Internet Protocol version 6 (IPv6).
[0047] In some implementations, the platform can derive a plurality of advanced fields based on the field of source address and the field of destination address. In some implementations, the platform can derive, for example, a field of source service indicating information related to sending services provided by the media streaming sessions, a field of destination service indicating information related to receiving services provided by the media streaming sessions, a field of source information parsed from the field of source address, and / or a field of destination information parsed from the field of destination address. In some implementations, the information related to sending services provided by the media streaming sessions can include information such as name, cluster and environment of the services. In other words, the field of source service includes, for example, name of the source service, cluster of the source service, and environment of the source service. In some implementations, the information related to receiving services provided by the media streaming sessions can include information such as name, cluster and environment of the services. In other words, the field of destination service includes, for example, name of the destination service, cluster of the destination service, and environment of the destination service. In some implementations, the field of source information parsed from the field of source address can include information such as country code, region, province, city, and Internet service provider (ISP) of the end participant who initiate the communication. In some implementations, the field of destination information parsed from the field of destination address can include information such as country code, region, province, city, and Internet service provider of the end participant who passively accepts the communication. In some implementations, the plurality of advanced fields are included in the first group of fields includes in the first predefined format.
[0048] In some implementations, the first predefined format further includes a second group of fields corresponding to information of the quality-descripting data packets. For example, the second group of fields corresponds to information of data transmitted through RTCP. In some implementations, the second group of fields includes: a field of octets indicating a size of each of the data packets, a field of packets indicating a quantity of the data packets, a field of highest sequence number indicating a highest sequence number among the packets of the quality-descripting data packets, a field of fraction lost of the quality-descripting data packets, a field of jitter of the quality-descripting data packets, a field of packet lost indicating a quantity of packets lost during the media streaming sessions, a field of timestamp corresponding to a latest received sender report, and / or a field of time delay corresponding to a delay between the latest received sender report and a send of a current receiver report. For example, the highest sequence number is the highest sequence number of the packets among the data transmitted through RTCP received in a current communication cycle. For example, the fraction lost is the fraction lost of the data transmitted through RTCP. For example, the jitter is the jitter of the data transmitted through RTCP received in a current communication cycle.
[0049] In some implementations, the second group of fields further includes a field of provider information, that is, the information of the operator who provides the media stream. In some implementations, the operator includes the both the ISP of the end participant who initiates the communication and the ISP of the end participant who passively accepts the communication. In some implementations, the field of provider information can be derived, by the platform, based on the field of source address and the field of destination address. For example, the platform 130 generates the provider information based on the IP address of the end participant who initiates the communication and the IP address of the end participant who passively accepts the communication.
[0050] FIG. 3A illustrates an example first predefined format 300A of the media quality data. Referring to FIG. 3A, the first predefined format 300A includes the identifier (SID) 301, the first group of fields corresponding to RTCP 302, and the second group corresponding to information of the data transmitted through RTCP 303. The first group of fields corresponding to RTCP 302 includes a field of source address, a field of destination address, a field of Unix timestamp in second, a field of Unix timestamp in microsecond, a field of net stack, a field of source service, a field of destination service, a field of source information, and a field of destination information. The second group corresponding to information of the data transmitted through RTCP 303 includes a field of octets, a field of packets, a field of highest sequence number, a field of fraction lost, a field of jitter, a field of packet lost, a field of timestamp corresponding to a latest received sender report (LSR), a field of time delay corresponding to a delay between the latest received sender report and a send of a current receiver report (DLSR) and a field of provider information.
[0051] At 210, the media quality data is stored into one or more data storages by the platform. For example, the platform 130 stores the media quality data having the first predefined format into the one or more data storage (such as data storage 156 of FIG. 1). In some implementations, the media quality data having the first predefined format are converted into a storage data having a second predefined format (e.g., an example second predefined format 300B as described with respect to FIG. 3B), and the storage data is then stored into one or more data storage. For example, the platform 130 converts the media quality data having the first predefined format (such as the first predefined format 300A) into a storage data having a second predefined format (such as the second predefined format 300B) and stores the storage data into the one or more data storage (such as data storage 156 of FIG. 1).
[0052] In some implementations, the second predefined format of the storage data includes fields such as an identifier, a field corresponding to protocol information, and a field corresponding to data information. In some implementations, the identifier corresponds to the identifier (SID) indicating the first communication included in the first predefined format of the media quality data; the field corresponding to protocol information corresponds to the first group of fields corresponding to a protocol for quality of media streaming sessions included in the first predefined format of the media quality data; and the field corresponding to data information corresponds to second group of fields corresponding to information of the quality-descripting data packets included in the first predefined format of the media quality data. In this case, in some implementations, the identifier, the field corresponding to protocol information and the field corresponding to data information can be obtained directed from the media quality data. In some implementations, the data type of the identifier is varchar. The data type of the field corresponding to protocol information and the field corresponding to data information is Json string. In some implementations, the second predefined format of the storage data further includes a raw field for storing a complete version of the media quality data having the first predefined format. In some implementations, the data type of the raw field is Json string.
[0053] In some implementations, to ease the later retrieve operation performed in the storage the second predefined format of the storage data includes additional fields such as an identifier for retrieving the storage data in the storage (e.g., the auto-increment primary key (or called incremental identifier) and a date field indicating a creation time for the storage data. In some implementations, the data type of the identifier is BigInt, and the data type of date field is DateTime.
[0054] FIG. 3B illustrates an example second predefined format 300B of the storage data. Referring to FIG. 3B, the second predefined format 300B includes a field of incremental identifier (INCREMENTAL_ID), a field of identifier (SID), a field of data indicating a creation time for the storage data (CREATE_DATE), a field corresponding to protocol information (PROTOCOL_HEADER), a field corresponding to data information (DATA_HEADER), and a raw field (RAW) for storing a complete version of the media quality data having the first predefined format.
[0055] In some implementations, the one or more data storages can include, for example, database storage, message queue storage, and / or elasticsearch storage. In some implementations, the database storage is used for persistently storing the media quality data in database structure to facilitate data retrieval and analysis. The message queue storage is used for storing the media quality data in queue form. The elasticsearch storage uses inverted index and column storage and allows near real-time (NRT) retrieval and high-performance aggregation analysis of the media quality data. In some implementations, data stored in the above different storage have different formats. In this case, in some implementations, a format conversion operation can be performed on storage data having the second predefined format, so as to convert the storage data from the second predefined format into a storage-specified format. For example, the platform 130 can determine a target storage for storing the storage data. In response to determining that, for example, the target storage is the database storage, the platform 130 converts the second predefined format of the storage data into a storage-specified format corresponding to the target storage. For example, the platform 130 converts the second predefined format of the storage data into a format corresponding to the database storage. The platform 130 can then store the storage data having the format corresponding to the database storage into the database storage.
[0056] In some implementations, the platform 132 can capture and store multiple pieces of media quality data corresponding to different communication occurred at the platform 132. For example, other than the first communication as mentioned above, the platform 132 can also capture data packets related to a second communication of media streaming sessions established between a second pair of terminals, collect quality-descripting data packets corresponding to the second communication, aggregate the quality-descripting data packets, generate media quality data based on the quality-descripting data packets, and store the media quality data into the one or more storages. Thereby, the described techniques allow the platform 132 to monitor large-scale communication in real-time.
[0057] At 212, the media quality data is read from the one or more data storage and analyzed. In some implementations, operation and maintenance personnel of the platform can read the media quality data from the one or more data storage and analyze the quality of the corresponding communication based on the media quality data. For example, the one or more data storage stores media quality data corresponding to the first communication and media quality data corresponding to the second communication. In some implementations, through the platform, both the media quality data corresponding to the first communication and the media quality data corresponding to the second communication can be read from the one or more data storage, so as to analyze the quality of the first communication and the quality of the second communication. For example, the platform can monitor communication factors (e.g., mean opinion score, round-trip time, fraction lost, jitter, packet size, etc.,) of the first communication and the second communication changing with time; and display trends of the communication factors changing with time. In some implementations, the display form of the trends of communication factors changing with time can vary based on the objective of analysis. For example, the trends of different communication factors of the same communication can be displayed, for example, at a display of the platform that include user interface (e.g., graphic user interface), so as to facilitate review and analysis of one or more specific communication or its underlying communication resources (e.g., the communication link, software, firmware, or hardware supporting the communications). As another example, the trends of a same communication factor corresponding to different communication can be displayed at the display of the platform, so as to make a comparison between different communications. In some implementations, the result obtained from analyzing the media quality data can be further used for diagnosing, trouble shooting, and improving real-time communication service at the platform. In some implementations, the platform can fix the issue detected during the real-time communication or determine corresponding solutions for improving the real-time communication based on result and take adjustments or remedial actions to the current occurred communication accordingly. In some implementations, the obtained result can be used for off-line analysis for the communications as well.
[0058] FIG. 4 illustrates an example configuration of a program architecture 400 for monitoring communication quality. In some implementations, the program architecture 400 is implemented on an operating system level platform. For example, the program architecture 400 can be implemented on Kubernetes, a container orchestration platform that can automate the deployment, scaling, and management of containerized applications. In some implementations, the program architecture 400 can be programmed and applied to a platform included in a communication monitoring system, such as the platform 130 of FIG. 1.
[0059] Referring to FIG. 4, the configuration of the program architecture 400 includes a client 410, a first subsystem 420, and a second subsystem 430. In some implementations, the configuration of the program architecture 400 can includes other components, units, modules, or subsystems.
[0060] In some implementations, the client 410 is a terminal based on SIP and is used to initiate, manage and terminate real-time communication sessions (such as voice call, video calls, etc.). In some implementations, the client 410 initiates a communication session and sends media streaming data to the first subsystem 420 through the internet. In some implementations, the media streaming data includes data transmitted through SIP, data transmitted through RTP and data transmitted through RTCP.
[0061] In some implementations, the first subsystem 420 can be a manager, engine, or module for managing stateful applications. For example, the first subsystem 420 can be a stateful pod in Kubernetes. In some implementations, the first subsystem 420 includes a media server 422 and a communication quality data collector 424. For example, the media server 422 can be a container for containing core media services. For example, the media server 422 can receive data corresponding to the communication from the client 410, such that the media server 422 can contain the media streaming data including the data transmitted through RTP and the data transmitted through RTCP. In some implementations, the communication quality data collector 424 can be a container for containing communication quality data included in the data of the core media service, such as the data transmitted through RTCP. For example, the media streaming data of the communication session initiated by the client 410 are sent to the media server 422 of the first subsystem 420, and the data transmitted through RTCP included in the media streaming data are side recorded by the communication quality data collector 424 of the first subsystem 420. In some implementations, the communication quality data collector 424 can be regarded as a sidecar relative to the media server 422. In some implementations, the data is transmitted between the media server and the communication quality data collector 424 based on local communication through Unix domain socket (UDS) or Localhost.
[0062] In some implementations, the second subsystem 430 is an engine or module for deploying and operating the stateful applications. For example, the second subsystem 430 can be a deployment pod in Kubernetes. In some implementations, the second subsystem 430 includes a data aggregator 432. For example, the data aggregator 432 can be a container for containing data aggregation services. For example, the data aggregator 432 can aggregate the data transmitted through RTCP contained in the communication quality data collector 424 using remote procedure call (RPC). In some implementations, the data transmitted through RTCP is aggregated into media quality data having the first predefined format (e.g., as shown in FIG. 3A). In some implementations, the data aggregator 432 also converts the media quality data having the first predefined format into storage data having the second predefined format (e.g., as shown in FIG. 3B), so as to facilitate the unified storage of the data.
[0063] In some implementations, the configuration of the program architecture 400 further includes storage for storing the storage data. For example, the configuration of the program architecture 400 includes multiple data storages, such as a database storage 442, a message queue storage 444, or an elasticsearch storage 446. In some implementations, the storage data are stored, respectively, in all the multiple storages for future analysis. In some implementations, the second predefined format of the storage data is first converted into the storage-specified format corresponding to each of the multiple storages and is then stored in each storage.
[0064] From the above, a platform as a third party of the terminals or end participants of communication can monitor quality of real-time communication performed thereon and can analyze and further visualize the quality of the communication. Thus, the platform can improve maintenance and alarm ability of real-time communication quality, thereby realizing monitors of large-scale real-time audio and video communication.
[0065] FIG. 5 is an example computer or computer-implemented system 500. The system 500 can be used for the operations described in association with the implementations described herein, for example, for monitoring communication quality. For example, the system 500 may be included in computing devices of the one or more online components and / or the one or more offline components. The system 500 includes a processor 510, a memory 520, a storage device 530, and an input / output device 540. The components 510, 520, 530, and 540 are interconnected using a system bus 550. The processor 510 is capable of processing instructions for execution within the system 500. In some implementations, the processor 510 is a single-threaded processor. In some implementations, the processor 510 is a multi-threaded processor. The processor 510 is capable of processing instructions stored in the memory 520 or on the storage device 530 to display graphical user interfaces on the input / output device 540.
[0066] The memory 520 stores information within the system 500. In some implementations, the memory 520 is a computer-readable medium. The memory 520 can be a volatile memory unit or a non-volatile memory unit. The storage device 530 is capable of providing mass storage for the system 500. The storage device 530 is a computer-readable medium. The storage device 530 may be a floppy disk device, a hard disk device, an optical disk device, or a tape device. The input / output device 540 provides input / output operations for the system 500. The input / output device 540 includes a keyboard and / or pointing device. The input / output device 540 includes a display unit for displaying graphical user interfaces.
[0067] In this specification the term “engine,”“collector,”“sampler,”“manager,”“calibrator,” or “calculator” will be used broadly to refer to a software-based system or subsystem that can perform one or more specific functions. Generally, an engine (or a collector, a sampler, a manager, a calibrator, a calculator) will be implemented as one or more software modules or components, installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a particular engine (or collector, sampler, manager, calibrator, calculator); in other cases, multiple engines (or collectors, samplers, managers, calibrators, calculators) can be installed and running on the same computer or computers.
[0068] Embodiments of the subject matter and the functional operations described in this specification can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by, or to control the operation of, data processing apparatus. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or in addition, the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus.
[0069] The term “data processing apparatus” refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can also be, or further include, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). The apparatus can optionally include, in addition to hardware, code that creates an execution environment for computer programs, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0070] A computer program, which may also be referred to or described as a program, software, a software application, an app, a module, a software module, a script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data, e.g., one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple coordinated files, e.g., files that store one or more modules, sub-programs, or portions of code. A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a data communication network.
[0071] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuitry, e.g., an FPGA or an ASIC, or by a combination of special purpose logic circuitry and one or more programmed computers.
[0072] Computers suitable for the execution of a computer program can be based on general or special purpose microprocessors or both, or any other kind of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for performing or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by, or incorporated in, special purpose logic circuitry. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, e.g., a universal serial bus (USB) flash drive, to name just a few.
[0073] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.
[0074] To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user’s device in response to requests received from the web browser.
[0075] Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface, a web browser, or an app through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN) and a wide area network (WAN), e.g., the Internet.
[0076] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data, e.g., an HTML page, to a user device, e.g., for purposes of displaying data to and receiving user input from a user interacting with the device, which acts as a client. Data generated at the user device, e.g., a result of the user interaction, can be received at the server from the device.
[0077] While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any disclosure or on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular disclosures. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially be claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
[0078] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0079] Particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. As one example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A computer-implemented method for monitoring communication quality, comprising:capturing, by a platform, data packets related to a first communication of media streaming sessions established between a first pair of terminals;collecting quality-descripting data packets that indicate quality of service of the media streaming sessions from the data packets;aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets, wherein the first predefined format comprises: an identifier indicating the first communication, a first group of fields corresponding to a protocol for quality of media streaming sessions, and a second group of fields corresponding to information of the quality-descripting data packets; andstoring the media quality data into one or more data storages.
2. The computer-implemented method of claim 1, wherein the first communication comprises a cellular-based portion and an internet-based portion, the cellular-based portion of the first communication is established between a first terminal of the first pair of terminals and a base station, and the internet-based portion of the first communication is established between a second terminal of the first pair of terminals and the base station; and wherein capturing, by a platform, data packets related to the first communication comprises:capturing data related to the internet-based portion of the first communication.
3. The computer-implemented method of claim 2, wherein the internet-based portion of the first communication further comprises a first segment established between the base station and a server of the platform, and a second segment established between the server of the platform and the second terminal of the first pair of terminals.
4. The computer-implemented method of claim 3, wherein the first segment is based on Session Initiation Protocol, and the second segment is based on Web Real-Time Communication.
5. The computer-implemented method of claim 1, wherein the data packets related to the first communication comprise data transmitted using at least one of Session Initiation Protocol, Real-time Transport Protocol or Real-time Transport Control Protocol, and wherein the quality-descripting data packets are data transmitted using the Real-time Transport Control Protocol.
6. The computer-implemented method of claim 1, the protocol for quality of media streaming sessions is Real-time Transport Control Protocol; and wherein the first group of fields comprises at least one of following fields:a field of source address;a field of destination address;a field of Unix timestamp in second;a field of Unix timestamp in microsecond; ora field of net stack indicating type of a network.
7. The computer-implemented method of claim 6, further comprising:deriving a plurality of advanced fields based on at least one of the field of source address and the field of destination address, wherein the plurality of advanced fields comprises:a field of source service indicating information related to sending services provided by the media streaming sessions;a field of destination service indicating information related to receiving services provided by the media streaming sessions;a field of source information parsed from the field of source address; ora field of destination information parsed from the field of destination address.
8. The computer-implemented method of claim 6, wherein the second group of fields comprises at least one of following fields:a field of octets indicating a size of each of the data packets;a field of packets indicating a quantity of the data packets;a field of highest sequence number indicating a highest sequence number among the packets of the quality-descripting data packets;a field of fraction lost of the quality-descripting data packets;a field of jitter of the quality-descripting data packets;a field of packet lost indicating a quantity of packets lost during the media streaming sessions;a field of timestamp corresponding to a latest received sender report; ora field of time delay corresponding to a delay between the latest received sender report and a send of a current receiver report.
9. The computer-implemented method of claim 8, further comprising:deriving a field of provider information based on the field of source address and the field of destination address, wherein the field of provider information is comprised in the second group of fields.
10. The computer-implemented method of claim 1, wherein storing the media quality data into one or more storages comprises:converting the media quality data having the first predefined format into storage data having a second predefined format, wherein the second predefined format comprises: fields comprised in the media quality data having the first predefined format and additional fields for retrieving; andstoring the storage data having the second predefined format into more than one storage.
11. The computer-implemented method of claim 10, wherein the additional fields for retrieving comprise at least one of the following fields:an identifier for retrieving the storage data in the more than one storage; ora date field indicating a creation time for the storage data.
12. The computer-implemented method of claim 10, wherein the second predefined format further comprises a raw field for storing a complete version of the media quality data having the first predefined format.
13. The computer-implemented method of claim 1, wherein the one or more storages comprise at least one of: a database storage, a message queue storage, or an elasticsearch storage.
14. The computer-implemented method of claim 10, wherein storing the storage data having the second predefined format into more than one storage comprises:determining a target storage for storing the storage data;converting the second predefined format of the storage data into a storage-specified format corresponding to the target storage; andstoring the storage data into the more than one storage.
15. The computer-implemented method of claim 1, further comprising:capturing, by the platform, data packets related to a second communication of media streaming sessions established between a second pair of terminals;collecting quality-descripting data packets corresponding to the second communication;aggregating the quality-descripting data packets corresponding to the second communication and generating media quality data based on the quality-descripting data packets corresponding to the second communication to obtain the media quality data corresponding to the second communication; andstoring the media quality data corresponding to the second communication into the one or more storages.
16. The computer-implemented method of claim 15, further comprising:reading the media quality data from the one or more storages; andanalyzing at least one of quality of the first communication and quality of the second communication based on the media quality data.
17. The computer-implemented method of claim 16, wherein analyzing at least one of quality of the first communication and quality of the second communication based on the media quality data comprises:monitoring communication factors of the first communication and the second communication changing with time; anddisplaying trends of the communication factors changing with time, wherein the communication factors comprise at least one of: mean opinion score, round-trip time, fraction lost, jitter, or packet size.
18. A non-transitory computer-readable storage media storing one or more instructions that, when executable by one or more computers, cause the one or more computers to perform operations comprising:capturing, by a platform, data packets related to a first communication of media streaming sessions is established between a first pair of terminals;collecting quality-descripting data packets that indicate quality of service of the media streaming sessions from the data packets;aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets, wherein the first predefined format comprises: an identifier indicating the first communication, a first group of fields corresponding to a protocol for quality of media streaming sessions, and a second group of fields corresponding to information of the quality-descripting data packets; andstoring the media quality data into one or more data storages.
19. The non-transitory computer-readable storage media of claim 18, wherein the first communication comprises a cellular-based portion and an internet-based portion, the cellular-based portion of the first communication is established between a first terminal of the first pair of terminals and a base station, and the internet-based portion of the first communication is established between a second terminal of the first pair of terminals and the base station; and wherein capturing, by a platform, data packets related to the first communication comprises:capturing data related to the internet-based portion of the first communication.
20. A computer-implemented system, comprising:one or more computers; andone or more computer memory devices interoperably coupled with the one or more computers and having computer-readable storage media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:capturing, by a platform, data packets related to a first communication established between a first pair of terminals;collecting quality-descripting data packets that indicate quality of service of the media streaming sessions from the data packets;aggregating the quality-descripting data packets and generating media quality data in a first predefined format based on the quality-descripting data packets, wherein the first predefined format comprises: an identifier indicating the first communication, a first group of fields corresponding to a protocol for quality of media streaming sessions, and a second group of fields corresponding to information of the quality-descripting data packets; andstoring the media quality data into one or more data storages.
