<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Samy Benhamiche on Medium]]></title>
        <description><![CDATA[Stories by Samy Benhamiche on Medium]]></description>
        <link>https://medium.com/@samy.benhamiche?source=rss-71081a80b061------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NtfzbpXKRtfJkmk8.</url>
            <title>Stories by Samy Benhamiche on Medium</title>
            <link>https://medium.com/@samy.benhamiche?source=rss-71081a80b061------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:13:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samy.benhamiche/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Scalability in video-conferencing (Part 2)]]></title>
            <link>https://medium.com/linagora-engineering/scalability-in-video-conferencing-part-2-c63e8b22ed47?source=rss-71081a80b061------2</link>
            <guid isPermaLink="false">https://medium.com/p/c63e8b22ed47</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[linagora]]></category>
            <category><![CDATA[openpaas]]></category>
            <category><![CDATA[sfu]]></category>
            <category><![CDATA[video-conferencing]]></category>
            <dc:creator><![CDATA[Samy Benhamiche]]></dc:creator>
            <pubDate>Mon, 15 Oct 2018 12:59:34 GMT</pubDate>
            <atom:updated>2018-10-23T08:12:19.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3QPKQld73sBaUl_GkCLIQ.jpeg" /></figure><p>Previously in the first part of scalability in video-conferencing, I introduced the three most popular video-conferencing topologies. In this second part, we will discuss different tools based on these topologies, then I will explain which one has been chosen to scale Linagora’s open-source video-conferencing tool <a href="http://hubl.in/"><em>Hubl.in</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*XAkowemtnzLaCbJA1XyPug.png" /></figure><p>Before starting, lets remind some basics and important points that I presented previously in the <a href="https://medium.com/linagora-engineering/scalability-in-video-conferencing-part-1-276f52b4acac">first part article</a>:</p><ul><li>Hubl.in is a free and Open-Source video-conferencing tool developed by LINAGORA based on the <a href="https://webrtc.org/">WebRTC</a> standard that provides browsers tools for real-time communications.</li><li>Three video-conferencing topologies: Peer-To-Peer (Mesh), Selective Forwarding Unit (SFU), and Multipoint Control Unit (MCU).</li><li>LINAGORA wants to make Hubl.in that is based on a P2P topology scalable and able to support more than 5 participants per conference room.</li></ul><p>Now that I’ve put you in the context, let’s start to discuss some of the most popular video-conferencing servers tools. Note that WebRTC is the first condition that these tools must be based on.</p><p>Let’s begin with the most popular tool within the WebRTC community</p><h3>Janus</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNxp-9a0siqeNbRv2u31kg.png" /></figure><p>The <a href="https://janus.conf.meetecho.com/">Janus WebRTC Gateway</a> provides implementing the means to set up a WebRTC media communication with a browser, exchanging JSON messages with it, and relaying RTP/RTCP and messages between browsers and the server-side application logic they’re attached to. Any specific feature/application needs to be implemented in server side plugins, that browsers can then contact via the gateway to use the functionality they provide.</p><h4>Architecture</h4><p>The figure below shows how the Janus architecture is organised:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*GsMCqML1gPG63oQbpjlPHA.png" /><figcaption>JANUS Architecture</figcaption></figure><ul><li>Plugin: a list of plugins that are provided can be changed or extended to match our requirements, or just used as a simple reference should we be interested in writing a new plugin from scratch. Example of such plugins can be implementations of applications like echo tests, conference bridges, media recorders, etc.</li><li>Protocols: all the protocols that are implemented in the gateway are listed in this part.</li><li>Core: contains the core of the gateway.</li><li>Janus Interface (HTTP): the available HTTP interface that Janus gateway exposes to help its use from an external application.</li><li>Janus Interface &amp; SDP helper (JS): Session Documentation Protocole SDP is a format for describing streaming media communications parameters. Each SDP coming from the web application (peers) is anonymized and removed from all the transport information and leaving only relevant information before sending its to the plugins. It do the same thing within adding transport information to plugins SDP answers and anonymizing / removing all other information.</li><li>Web Application: the application we want to match with the Janus gateway.</li></ul><p>You can check all the available demo of Janus on: <a href="https://janus.conf.meetecho.com/demos.html">https://janus.conf.meetecho.com/demos.html</a></p><h3>What are the most pros and cons of Janus?</h3><p>Without any doubt, one of the most pros of JANUS gateway is the plugin philosophy, but not only:</p><ul><li>Easy to use.</li><li>The developers community are fast answering.</li><li>A complete and multi-purpose WebRTC gateway (audio, video, screen sharing, etc).</li><li>Scalability topology choice: SFU &amp; MCU (for audio streams).</li></ul><p>On another side, we notice some cons:</p><ul><li>Each functionality is a plugin.</li><li>No available plugin for MCU video streams.</li><li>Some parts of the documentation are not updated.</li></ul><h3>Jitsi</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*u0XsX1SPo93332hXXH8CwQ.jpeg" /></figure><p><a href="https://jitsi.org/jitsi-videobridge/">Jitsi</a> is a free software distributed under Apache 2 license which aims to provide a video-conferencing solution accessible from a web browser. It is the software solution that propels the <a href="https://docs.framasoft.org/fr/jitsimeet/">Framatalk</a> online service. Based on XMPP protocol, Jitsi is also compatible with WebRTC. If some video-conference tools are based on MCU for mixing the streams, through Jitsi videobridge, Jitsi uses SFU to avoid mixing all streams in one as it’s done in MCU.</p><h4>Architecture</h4><p>The next figure shows how the interaction of the different parts of Jitsi is establish:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvVPdCYcQ838fCZ830tHkA.jpeg" /><figcaption>Jitsi Achitecture</figcaption></figure><ul><li>Jitsi Meet: a WebRTC video-conference frontend.</li><li>HttpWeb Servers (Nginx, Apache, Jetty).</li><li>XMPP: an open-source alternative to commercial messaging and chat providers.</li><li>Prosody: an open-source and modern XMPP communication server. It aims to be easy to set up and configure.</li><li>Jicofo: Jitsi Conference Focus is the server that manage the connection between the participants and the videobridges.</li><li>Videobridge: an SFU server that manage all conference media streams.</li></ul><p>As we saw for Janus, Jitsi has also pros and cons.</p><h4>Pros</h4><ul><li>Based on XMPP protocol for real-time multimedia exchange.</li><li>Scalability using SFU</li><li>Licensed under MIT License</li><li>A lot of applications based on it are complete (use Screen Sharing, chat …)</li><li>Jitsi has it own video-conference software tool. If you didn’t develope it, you can use all the jitsi package (video-conference too and the gateway).</li></ul><h4>Cons</h4><ul><li>Installation is difficult.</li><li>Unstructured documentation.</li><li>Scalability using only SFU.</li></ul><h3><strong>Licode</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*t0Awxs2JxjiJS-IeQPJ2Kw.jpeg" /></figure><p>An Open Source WebRTC Communications Platform. Although it was originally MCU, it can now also behave as an SFU. <a href="http://lynckia.com/licode/">Licode</a> itself is implemented in C ++. With Licode, you can host your own WebRTC conference provider and build applications on top of it with easy to use APIs:</p><ul><li><a href="http://licode.readthedocs.io/en/master/client_api/">client-side</a> : this API handles connections to rooms and streams in your web applications.</li><li><a href="http://licode.readthedocs.io/en/master/server_api/">server-side</a> : The Licode server-side API provides your server communication with Nuve.</li></ul><h4>Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTYet5BFpFt2HG6EQqET0A.png" /><figcaption><a href="https://github.com/lynckia/licode/issues/335">Licode Architecture</a></figcaption></figure><ul><li><strong>Nuve </strong>: Manages Services (Custom APPs), Rooms and Users, generates tokens for delegated authentication so custom apps can provide access to users. It balances the Rooms among the available ErizoControllers.</li><li><strong>MongoDB</strong> Only used by Nuve to store information about rooms and tokens. No user information is managed by Licode.</li><li><strong>Erizo Controller </strong>Manages Control, signalling and data streams for the rooms assigned to it by Nuve. New started ErizoControllers are automatically discovered by Nuve as long as they are connected to the same RabbitMQ instance.</li><li><strong>MCU — Erizo Agent+ErizoJS</strong> (ErizoAPI+ErizoC++): Distributed MCU : A single Licode Room can be now easily distributed among an array of servers</li><li><strong>RabbitMQ:</strong> Message broker, enables the distribution of the architecture. Handles all the messages among the components of Licode. It does not handle media and/or communicate with the Clients.</li></ul><h4><strong>Pros</strong></h4><ul><li>A mature project</li><li>It guarantees high scalability (thanks to its distributed architecture)</li><li>It provides both client and server APIs , it is easy to integrate it .</li><li>As it is tested at <a href="https://www.knuddels.de/">https://www.knuddels.de/</a>, it can support a good number of rooms and each room can support a nice number of participants.</li></ul><h4><strong>Cons</strong></h4><ul><li>Mainly based and focus on MCU.</li><li>Screen sharing is not stable (on Firefox).</li></ul><h3>Kurento</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*8UGh2Xxv6OueOO_TrIcozA.png" /></figure><p><a href="http://www.kurento.org/">Kurento</a> is a WebRTC media server and a set of client APIs making simple the development of advanced video applications for WWW and smartphone platforms. Kurento features include group communications, transcoding, recording, mixing, broadcasting and routing of audiovisual flows.</p><p>It also provides advanced media processing capabilities involving computer vision, video indexing, augmented reality and speech analysis. Kurento modular architecture makes simple the integration of third party media processing algorithms (i.e. speech recognition, sentiment analysis, face recognition, etc.), which can be transparently used by application developers as the rest of Kurento built-in features.</p><h4>Architecture</h4><p>As the below figure shows, Kurento contains 3 sides:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnglGe5Uce5GFcCTzFhLuw.jpeg" /><figcaption><a href="https://doc-kurento.readthedocs.io/en/6.6.2/mastering/kurento_architecture.html">Kurento Archtecture</a></figcaption></figure><p>The kurento Server is the sever that manage media streams within media transporting, encoding/decoding, transcoding, mixing, media processing, etc. As you can see, the Media Pipline inside Kurento Server represents a <a href="https://gstreamer.freedesktop.org/">GStreamer</a> pipeline which is an open-source framework that allows you to manage and manipulate multimedia streams. Once the streams are processed, they are sent to the client side application through HTTP, RTP and WebRTC protocols.</p><p>On the other side, we have the application server. This server manage the signalling plane. It contains the business logic and connectors of the particular multimedia application being deployed. The application can use mature technologies such as HTTP and SIP Servlets. This part of the architecture is in full contact with the application, this is why developers have to design the application as simple and flexibile as possible.</p><p><strong>Pros</strong></p><ul><li>Modular architecture allows for multiple modules : anyone can create modules.</li><li>GStreamer dependency provides advanced media processing capabilities involving computer vision and augmented reality.</li></ul><p><strong>Cons</strong></p><ul><li>Interest for the project has highly decreased since Twilio acquired the team developing Kurento</li><li>Main developers and community are less active.</li></ul><h3><strong>SO, it’s difficult to chose one of all these tools isn’t it???</strong></h3><p>Yes, It is. To choose one of these tools, you have to list all your criteria and needs. For LINAGORA, the most important criteria is to not use a media server this year at all, which means to not use MCU infrastructure for the moment. Take a look on this table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnrGjZHpJP9HB1lvNERKaA.png" /></figure><p>As you can see, for an open source company like LINAGORA, license, number of stars, number of commits on Github and community activity are very important to chose which tool to use, which means that the community is always ready to answer you whenever you have any issues. According to these criteria, we can say that Janus is the most popular and used open source project.</p><p>For Hubl.in developpers, the WebRTC, SFU and MCU compatibily, frameworks, supported APIs are the most important criteria. But not only. The table bellow shows some of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sg1DvCyiWclPngceknAjKQ.png" /></figure><p>After testing all the tools, we choose <strong>Janus</strong> as an SFU video-conference bridge:</p><ul><li>It is the most stable SFU server.</li><li>Easy to connect with Hubl.in</li><li>Plugins needed for Hubl.in are already implemented.</li><li>The project community is very reactive.</li><li>AP’s needed for Hubl.in are supported.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*1WuzejtRPxRZZyjpGgC8VQ.jpeg" /><figcaption>Also because of him!</figcaption></figure><p>In the case of Hubl.in improvements, LINAGORA wanted to increase the number of video-conference participants. The third year of the research project OpenPaaS::NG has for goal to allow more than 5 participants in the same video-conference room. In this part of the project, speech recognition has also figured on Hubl.in. Indeed, we developed a bot called <strong>Hublot</strong>,<strong> </strong>which<strong> </strong>connect to Hubl.in as a participant and offer some recommendations according to the topics for the connected participants of the video-conference. Janus offers to LINAGORA’s Hubl.in product to allow the connexion of more than 5 participants in the same video-conference room, exactly 6 participants adding Hublot. Developers team decided to switch from easyRTC (P2P) to Janus SFU mode as needed. The idea is to allow users to chose which architecture to use. For example, if you are only 2 or 3 participants to connect to the same video-conference room, you can use easyRTC. Otherwise, you can use Janus gateway as shown bellow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkxPi26wDkW5sy-1oTJwoQ.jpeg" /></figure><p>RTC Adapter is a module developed by Linagora team in order to allow user to chose which technology to use.</p><p>As LINAGORA wanted to add sharing screen to Hubl.in, Janus offers this functionality too.</p><p>Note that the development of this part is in progress and not yet finalized.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzF8wVMxGN-g%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzF8wVMxGN-g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzF8wVMxGN-g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/41afb89271c645a6ee4608eba1bd57e6/href">https://medium.com/media/41afb89271c645a6ee4608eba1bd57e6/href</a></iframe><h3><strong>What can we say about all these technologies?</strong></h3><p>All the technologies and gateways mentioned in this two parts articles are interesting, each one is designed for specific needs. Before choosing one, it is necessary to properly determine the needs, whether we want to set up a multimedia server (MCU) or not (SFU). It is also necessary to clearly understand the context of the application we want to develop in order to choose the right tool. For example, if the application needs any framework, it is necessary to check if the it is supported on the gateway or not. for Hubl.in, we needed some tool that supports more than 6 participants in the same video-conference room, screen sharing functionality and also a tool that is compatible with speech recognition fields. That could make the integration easier.</p><h3>Coming next…</h3><p>We will talk about <strong>Hublot</strong> the video-conference bot assistant that gave birth to <a href="https://linto.ai/"><strong>LinTO</strong></a><strong>.</strong></p><p>Interesting, isn’t it!? “<a href="https://job.linagora.com/en/"><strong>Join us</strong></a><strong>”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*DDNWI6ZNv-jhxWg4O2nqMg.gif" /></figure><p>Don’t hesitate to ask any question about all the topics cited in this two parts article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c63e8b22ed47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linagora-engineering/scalability-in-video-conferencing-part-2-c63e8b22ed47">Scalability in video-conferencing (Part 2)</a> was originally published in <a href="https://medium.com/linagora-engineering">Linagora Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scalability in video-conferencing (Part 1)]]></title>
            <link>https://medium.com/linagora-engineering/scalability-in-video-conferencing-part-1-276f52b4acac?source=rss-71081a80b061------2</link>
            <guid isPermaLink="false">https://medium.com/p/276f52b4acac</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[hublin]]></category>
            <category><![CDATA[openpaas]]></category>
            <category><![CDATA[video-conferencing]]></category>
            <dc:creator><![CDATA[Samy Benhamiche]]></dc:creator>
            <pubDate>Thu, 26 Oct 2017 09:32:17 GMT</pubDate>
            <atom:updated>2017-11-10T10:52:22.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xivwhlcGT15o86-p6kV6gA.jpeg" /></figure><p><a href="http://open-paas.org/">OpenPaaS</a> is an open collaboration platform for business. <a href="https://linagora.com/">Linagora</a> developed <a href="http://www.hubl.in/">Hubl.in</a><em> </em>which is a free and Open-Source video-conferencing tool built into OpenPaaS. This virtual meeting is based on the <a href="https://webrtc.org/">WebRTC</a> standard that provides browsers tools for real-time communications, and Linagora would like to improve <strong>the scalability of Hubl.in</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*t0oqkpIBWjO-OFtryaTEIQ.png" /></figure><p>This is a two parts article about scalability in video-conferencing. The purpose of this first article is to introduce the general context of our project and some video-conferencing notions like the several topologies to develop a video-conferencing tool, the difference between them and which one is the best to develop your own tool. Then, in the next article (part 2), we will discuss about different existing topologies while specifying some advantages and drawbacks of each. After that, we will talk about the difference between some existing tools of each topology, and this will allow you to understand which one has been selected to improve our amazing <a href="http://www.hubl.in/">Hubl.in</a>.</p><h4>What is a video-conferencing?</h4><p>Video-conferencing allows two or more people to have a real time communication including (or not) sharing data.The real time communication can be audio, video, chat, sharing file and also screen sharing. It is mainly done over IP networks or phone networks.</p><h4>Is it easy to implement?</h4><p>It is simple to do a basic video-conferencing software. You only need to rely on audio/video device interfaces (exposed as endpoints) in order to directly connect two given clients over a network (it is exactly what Skype and Facetime did at the beginning).</p><p>Hubl.in is based on the same basics, it is called WebRTC standards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*fRb23i6tF3FXeJBkV3b9PQ.png" /></figure><p>WebRTC is an open source project that provides browsers and mobile applications with Real-Time Communications (RTC) and IoT (Internet of Things) through simple APIs.</p><h4>Scalability</h4><p>Scalability in video-conferencing means supporting a growing number of people that can communicate simultaneously.</p><p>There are three different ways to set up a video-conferencing:</p><ul><li>Peer-To-Peer (Mesh)</li><li>Selective Forwarding Unit (SFU)</li><li>Multipoint Control Unit (MCU).</li></ul><blockquote>Peer-To-Peer (Mesh)</blockquote><p>Mesh is certainly the lowest cost solution for video-conferencing. Each client sends all its streams to all other clients. All video-conferencing (i.e. Skype, Facetime …) or Open-Source WebRTC software (i.e. Hubl.in …) began using Peer-to-Peer because it is:</p><ul><li>A low-cost solution without using any intermediate infrastructure (server, cloud, etc.)</li><li>Easy to use and implement</li><li>Data privacy is respected without going through a server</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/0*zriOxQTRDmStar3U." /><figcaption><strong>Peer to Peer topology</strong></figcaption></figure><h4>OK! P2P is apparently low-cost and simple to use, but what happens if the number of participants increases?</h4><p>When the number of the participants increases:</p><ul><li>Participants overwhelm the bandwidth by sending audio and video streams to all participants.</li><li>They overwhelm processing capacity (i.e.CPU) at the endpoint client by coding and decoding simultaneously all streams.</li></ul><p>As a result, the quality of the video-conference is degraded (frozen video, sound cut-offs, etc.)</p><h4>Is there any other way to resolve these issues?</h4><p>Fortunately, there are two other ways to resolve P2P scalability issues:</p><p><strong>SFU</strong> and <strong>MCU</strong>, let’s talk first about SFU (Selective Forwarding Unit)</p><blockquote>Selective Forwarding Unit (SFU)</blockquote><p>Selective Forwarding Unit, as its name refers to, allows users to send audio and/or video streams toward the SFU. In this case, clients can select which streams to send. After that, they receive one or many streams from the other participants. Every client can choose to receive <strong>one</strong> high bit-rate (highest quality) stream, and <strong>one or more</strong> low bit-rate(s). Then, SFU responds to clients demands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*2zIJVLyq8enrfujx2FsZCQ.png" /><figcaption>Selective Forwarding Unit topology</figcaption></figure><p>In the picture above:</p><ul><li>All users (1,2 and 3) send their streams to SFU</li><li>User 3 is the host of the conference. In this case, he is the speaker.</li><li>User 1 and user 2 instruct SFU to receive a <strong>high bit-rate</strong> (large red arrow) of the speaker (user 3)</li><li>User 3 demands to receive a <strong>high bit-rate</strong> (large blue arrow) of the user 1</li><li>SFU responds to user 1 and user 2 by sending a high bit-rate of user 3</li><li>SFU sends all the other strams on their <strong>lowest bit-rate</strong></li></ul><h4>So clients don’t have any control on the SFU server?</h4><p>Clients with full correspondence with the SFU media server have a total control over the streams they receive. Because of that, they can have full control over the flexibility of the SFU.</p><h4>Why use SFU instead of P2P?</h4><ul><li>SFU is based on a centralized topology which allows to receive all participants streams, then according to them, it select the stream to forward to each one.</li><li>The additional latency of the SFU server is minimal.</li></ul><p>This is why SFU is the most popular topology of the WebRTC communities.</p><h4>What is the main SFU’s drawback?</h4><p>The main drawback of SFU is the fact that the steps of encoding and decoding the streams are done on the browsers, which slows down the processing after a high number of participants.</p><blockquote>Multipoint Control Unit (MCU)</blockquote><p>Multipoint Control Unit also called “video-conferencing gateway” or” bridge” is a centralized video-conference infrastructure.</p><p>MCU avoids that each user (client) sends all his audio and video streams, When it receives all the streams, MCU encodes, decodes then combines all the streams into <strong>one</strong> stream, then sends the combined stream to all participants.</p><p>Sending only one stream to the users means to noticeably reduce latency and communication between the MCU servers and users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/0*jCS8iaa73t-YyElM." /><figcaption><strong>Multipoint Control Unit topology</strong></figcaption></figure><h4>Is mixing all participant’s streams into one stream the only advantage over SFU?</h4><p>In addition with mixing all streams into one stream before sending it all the participants, MCU can also:</p><ul><li>Supports differents clients and call signaling like <strong>SIP </strong>or <strong>H.323</strong>.</li><li>Equalizes and mix all audio streams by filtering noise, reducing echo etc.</li></ul><p>Moreover, centralizing the encoding and decoding of the streams decreases bandwidth consumption as well as computation load on the client endpoint</p><h4>So, why MCU is not as popular as SFU?</h4><p>Without doubt, scalabality is the main advantage of the MCU topology. But the implementation is more complex, and takes a lot of computing resources on the server.</p><p>SFU could be the best balance between the P2P that overwhelms the client, and the MCU where all processing are centralized.</p><h4>Which topology to use for my video-conference application?</h4><p>It depends on your use case :</p><ul><li>If you need to develop an application for <strong>less than 3 participants</strong>, you can go with a <strong>Peer-to-Peer</strong> topology, it’s simple to implement and certainly the lowest topology ever.</li><li>If you need an application which support <strong>between 5 and 10 participants, </strong>and you have a good bandwidth? Do it with <strong>SFU</strong> specially if you are fan of <strong>WebRTC</strong>: it’s a low cost centralized topology.</li><li>If you want to invest in a media server to allow <strong>more than 10 participants</strong>, you don’t have a good<strong> </strong>bandwidth? Go with <strong>MCU</strong> server. Don’t forget to improve your skills in signal, image and video processing, you will need to use some tools like <a href="https://gstreamer.freedesktop.org/"><strong>Gstreamer</strong></a> to process and mix your media streams.</li></ul><p>Some <a href="http://blog.dialogic.com/blog/benefits-of-a-hybrid-sfu-mcu-webrtc-architecture">articles</a> talk about an <strong>Hybrid</strong> <strong>Topology</strong>: which allows all particpants using <a href="https://www.voipsupply.com/blog/voip-insider/what-are-sip-phones/">SIP</a> devices to use <strong>MCU</strong> for the encoding, decoding and stream combination. The other particpants using PCs or laptops send all their streams to SFU. Be sure to configure the <strong>best</strong> bandwidth to the <strong>SFU</strong> part, because of high number of the exchange streams between the centralized server and the clients.</p><h4>Stay tuned …</h4><p>In the next part, we will discuss about the different existing SFU’s and MCU’s tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=276f52b4acac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/linagora-engineering/scalability-in-video-conferencing-part-1-276f52b4acac">Scalability in video-conferencing (Part 1)</a> was originally published in <a href="https://medium.com/linagora-engineering">Linagora Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>