📜 ⬆️ ⬇️

CDN in a backpack. How we made a portable CDN

At the CSTB TV show, we needed to tell about the CDN and show the essence of our business clearly. To do this, we have assembled a valid model of broadcast video over the Internet. Of course, we did not take into account in this model the algorithm that constitutes the know-how of our service, but the basic elements of the CDN work were shown. It began, as usual, with the project:



That is what on this scheme, we will tell a little later. First about the event. CSTB is considered the largest exhibition on television and telecommunications in Eastern Europe. For many TV people and everyone associated with television, this is a landmark event. If you rent a stand here, this is to some extent an image step. The exhibition is professional, there are no random people here, and the presence among the exhibitors is a way to say that your business is going well.

And, of course, there is a chance to meet a potential partner, so many attract visitors to their booth with unconventional moves. For example, the television channel TV1000 Action posted on the walls painted posters in the spirit of the provincial cinema:
')


And at the First TVCH stand, the girl first played the violin, then the bagpipers performed in skirts and to top it all off there was a striptease (we didn’t take pictures of it):



We have long thought how to present your company. At first, they wanted to broadcast a lot of windows with different videos on the screen, then play some game with visitors. There was also a thought to launch a robot at the exhibition that would walk between the aisles and call on the stand. However, all these are traditional moves for exhibitions, and I did not want to use standard methods. As a result, we decided to assemble a miniature CDN model on the stand. The idea came at the very last moment, so the scheme was drawn by hand in a couple of minutes.

We placed two TVs on the stand. On one, there was a presentation about the company, and on the second, we brought out an Internet broadcast using special equipment and two cameras located here. One camera was broadcasting what was happening in front of the stand. The second was sent to the toy railway, which we bought at Children's World and assembled at the stand. In order not to leave the “iron” unattended, we every evening dismantled our CDN and put it in a backpack, and every morning we mounted it again. The entire installation process took no more than 20 minutes - the model turned out to be compact.

Of the two cameras, one was an IP camera (1080P Color IP Camera ELP-IP618A). She issued a video stream in the format of RTSP, which is already suitable for display in an Internet browser. But we passed this stream through CDNbox - a device that converts it to RTMP format. It benefits in image quality and image stability compared to RTSP.

The second camera was filmed in HD. We connected it to the Avermedia Avercaster HD Duet transcoder, which translated the signal from a video camera in HD format to RTMP. It was an ordinary camera with HDMI-connector (Sony HDR-CX220E). So we showed that you can even use an amateur camera to broadcast video to the Internet:



Then the video in RTMP format was transmitted to a laptop (Dell Inspiron 11), which played the role of a server:



On the laptop was installed Wowza - is software that provides streaming video to the Internet. Wowza sent a video stream to a page with a built-in player - we wrote it in HTML in 20 minutes. This page imitated the site on the Internet, where the video broadcast. It was displayed in the browser, which was installed on the TV by default. All the components of the scheme were connected with each other by a router - an ordinary TP-Link.



Of course, it was impossible to demonstrate all the capabilities of a CDN using such a model. Our goal was simply to show that the broadcast of the World Cup or the Olympics is not necessarily associated with TV, an armchair and beer. This is all an on-air broadcast, and there is also an on-line broadcast.

During broadcasting, the signal passes through the air for most of its way from the camera to the viewer. The camera transmits it to the signal processing center, then sends the transmitting antenna to the receiving antenna via repeaters, and only then the image enters the television receiver by wire. In the case of an Internet broadcast, the digitized image immediately enters the network and is further transmitted via wire in Internet formats.

For example, to provide broadcast for 300 thousand connections via the Internet, a network of 100 servers is needed. At the same time, we do not just install “hardware”, but “balance” it, so that with each particular user, the node that is suitable for it more than the rest works. If somewhere the channel is blocked, distribution goes from another node. Our competence is that residents of different regions can enjoy guaranteed uninterrupted viewing of the broadcast.

A special software package called a load balancer solves an equation with three variables: channels, load nodes, the location of the user, and for each connection to the broadcast gives the optimal solution. The Balancer is located on a separate “server farm” in our main data center in Moscow. This is a serious technology, it is protected by a patent and constitutes our know-how. It is a pity that in the conditions of the exhibition to demonstrate its work failed.

If we wanted to bring our exhibition model as close as possible to reality, then we needed to arrange several laptops throughout the exhibition, and we needed 25 pieces for clarity. Probably, we also needed a separate laptop with a “balancer”, which would be hard to show . Therefore, there was a second TV set on the stand, where we had a presentation with a detailed story about the technology.

By the way, the crisis did not interfere with the exhibition: they still want to talk about themselves and make plans for the development of the company. Perhaps there were almost as many exhibitors as last year. Only visitors were not so much. The day after the opening, when the peak of visits happens, they seem to be two times smaller. But they ran twice as fast as usual, and no one was aware of the pessimistic mood.

The trends of the video-related industries remained unchanged. The first and most important trend: TV channels continue to go on the Internet, OTT-services and smart TV. The second trend: the companies - producers of specialized content are flourishing, despite the crisis. We have seen people who shoot videos about hunting, fishing, kitesurfing, windsurfing. If for whom and hit the crisis, then only for those who did not have a clear business model.

Source: https://habr.com/ru/post/252649/


All Articles