paint-brush
Adding WebRTC to Your Networkby@jamesjor23
175 reads

Adding WebRTC to Your Network

by June 25th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

WebRTC is an innovative technology that helps in building custom real time chat applications. The typical requirement is to leave the existing deployment untouched and bridge the existing network through some sort of a GW. The comparison below doesn’t relate to any vendor specific product but rather looks at common functionalities of such products. In the contact center example, users browsing the website of the company, can call in directly from the browser. The optimal approach would be to run Opus end-to-end from browser to the agent but in cases where this is not possible, it is best to keep Opus on the open Internet leg.
featured image - Adding WebRTC to Your Network
undefined HackerNoon profile picture

WebRTC is an innovative technology helps in building custom real time chat applications. But how WebRTC should be added to the offerings, what the additional service benefits are and how to architect the solution? The typical requirement is to leave the existing deployment untouched and bridge WebRTC into the existing network through some sort of a GW. Where should the logical function of the GW be located and what should the network architecture look like are usually the questions debated. To answer them, I decided to write this post.

To demonstrate the consideration points and options, I will use an example of a contact center. For the sake of this example, let’s take a contact center that has both PSTN lines as well as SIP Trunks from a service provider. All traffic inside the contact center is via SIP where some of the agents are working on premise and others are home agents who are “called in” for handling contact center peak traffic.

Architecture Options when Adding WebRTC

A dedicated GWAdding a WebRTC interface to their current core serverAdding WebRTC through an SBC.

Before and After WebRTC

Before

Traffic comes from a service provider over SIP trunks or PSTNAll traffic in the contact center is SIPHome agents are connected over IP-SIP but this is done in a secured and controlled manner. The contact center core server is placed inside the contact center network. Security is handled by other elements so it is protected from denial of service attacks, call fraud and other security vulnerabilitiesCalls are using G.729 or G.711. Transcoding, if required, is handled in the contact center network.


After

Adding WebRTC into the game creates new requirements and a new type of traffic source. With WebRTC, users browsing the website of the company serviced by the contact center, can call in directly from the browser. Their traffic runs over the Internet directly to the contact center.

WebRTC includes 2 voice codecs: G.711 and Opus. These are the codecs that come within the browser. If the intention is to eliminate the need for download, calls must be initiated using one of these 2 codecs.

Since G.711 is not built for running over the open Internet as it doesn’t include resiliency, it is beneficial to initiate the calls with Opus. The optimal approach would be to run Opus end-to-end from the browser to the agent but in cases where this is not possible, it is best to keep Opus on the open Internet leg and transcode when getting into the contact center network.

The contact center is required to have a “leg” in the public Internet domain.

Quality of service is not managed. Even though in many cases the quality is good, supporting SLA requires the capacity to manage and monitor quality of experience (QoE).

Supporting Opus requires either adding a new intensive computing transcoding function or adding Opus to the agent’s client.

The comparison below doesn’t relate to any vendor specific product but rather looks at common functionalities of such products. Given this, the following conclusion should be viewed in context of the actual functionality supported by the specific products considered.

The comparison shows that in the case of the contact center example in this post, adding WebRTC to the existing internal contact center server will yield high risk and therefore, it is not a recommended alternative.

The selection between a pure GW and an SBC would depend on priority focus. If security and QoS are of high priority, the comparison leans towards the SBC alternative.