This article mainly introduces WEBRTC end-to-end monitoring (we translate and collation, translator: Weizhenwei, check: Blacker), the earliest published in the " Weaving wind net "
Support original, reprint must indicate the source, welcome attention to my public number blacker (Id:blackerteam or WEBRTCORGCN).
Callstats is a real-time communication performance measurement company, their blog mentions the real-time communication process of the importance of performance, the following is the blog content;
Performance monitoring is an important aspect of system and service development that can help us detect and diagnose performance problems and help maintain the high availability of the system. Today, engineering teams make decisions based on data, so these performance measurements play an important role in implementing and deploying bug fixes.
In general, metrics for service monitoring fall into two categories:
• Regulation module : System load, error rate, user agitation, etc.;
• Duration : Creation time, transaction response time, and so on.
There is nothing different about WEBRTC in terms of measurement. An example of a scale metric such as the number of simultaneous online or failed meetings, an example of a duration measure such as when a connection is established.
Real-time measurement
In Callstats.io, real-time is an important metric for all systems. When the first participant joins the meeting, we categorize the meeting immediately. If a meeting creation fails, the server can immediately discover the cause of the failure and its failure and the time it takes for the meeting to start to fail. We really fancy this real-time processing capability, which can warn you as soon as something happens and present it to the user immediately. We call it "continuous analysis".
Correct end-to-end monitoring
Callstats.io monitors important aspects of WEBRTC connectivity through the GetStats () API or basic metrics, which are metrics from actual users (only users can represent themselves). This method is used to measure:
· End-to-end network performance for every pair of WEBRTC devices.
· WEBRTC the media performance of the device. This includes a number of metrics related to audio playback and video rendering.
These measures are aggregated independently for each connection, attendee, and meeting.
Failed
Time-based user behavior, such as when a user uses the service every day, or when the service is used one day in a week, fluctuates daily. However, the significant decline in usage over the past few days or weeks often indicates a problem with the service. For example, an increase in session build failures indicates a failure of the infrastructure, terminal, or network. Displays the moment at which an error may occur during a meeting.
Classification of Errors during conference establishment
WEBRTC Service component Failure Reason:
1. The terminal has the potential to change behavior. The browser is updated every six weeks, and the dev and beta versions are available earlier than the release version. As a result, the development team is intuitive about the issues that may be caused by new features and updates. In addition, theChrome and Firefox teams announced the PSA in advance and responded to support inquiries in a timely manner.
2. The infrastructure may be overloaded. That is, the server is exposed to more traffic than expected, causing performance problems. This can also happen when the underlying infrastructure disappears, or the first deployment of new features results in a partial customer impact.
3. The network may be congested due to network traffic regulation or uncertain network behavior. This may affect certain areas of the geography, or a particular network service provides a commercial /corporate network. Typically, in these cases the user is behind a restricted firewall, or there is a network device failure.
Service interruption
A service outage can occur when one or more WEBRTC Service Foundation components stop working:
· Signaling server outage: The session could not be established. In this case, the number of meetings in progress and the total number of meetings will be reduced.
· Turn server outage: Causes some sessions not to be established. In this scenario, some or all of the meeting failures are incremented, and the failure is categorized as an ice connection failure.
· Meeting Bridge Downtime: Some sessions cannot be established. One or more meeting bridges will send an outage report.
It is also important to point out these service outages to users. For example, tell a user that a connection to a signaling server or conference bridge is interrupted, or that a session is trying to rebuild, or that a session failure requires waiting or retrying immediately. Many services have already provided some basic diagnostics, such as: Audio meter, network bitrate, mute indication, and so on.
Similarly, our API shows network connection status and other key metrics. These metrics can be presented to end users in an appropriate interface to help them understand the current state of the app and mitigate the frustration of diagnosing a service outage.
Collect End-user feedback
Collecting end-user feedback is also important, which helps us find the correspondence between user experience and objective quality (or media and network metrics). Throughout Callstats.io's customers, we found that 10%~40% 's meeting had one or more user feedback comments. The amount of feedback depends to a great extent on asking the right questions in the right scenario.
Continuous testing
Throughout the industry, automated testing and continuous integration are the norm, and the same applies to WEBRTC. Browser vendors have done a lot to automate the testing process. In addition, there are some resources on GitHub that use selenium to test WEBRTC.
Summarize
In our view, the best way to end-to-end monitoring of WEBRTC is to use the API to integrate the monitoring solution into the core unit of the WEBRTC application. In this way, the monitoring scheme can track scale metrics and duration metrics in real time, providing developers with real-time information about the status of WEBRTC services. API-based scenarios also offer a number of callbacks, such as the ability to automatically adjust the performance of the WEBRTC application to provide the best possible media quality to end users.
Translator: Weizhenwei, detailed see: "Weaving wind net"
Android IOS WebRTC Audio Video Development summary (seven or eight)--why is WebRTC end-to-end monitoring critical?