Presentation is loading. Please wait.

Presentation is loading. Please wait.

Real-Time Communications over the Web: webRTC Claudio Vacalebre

Similar presentations


Presentation on theme: "Real-Time Communications over the Web: webRTC Claudio Vacalebre"— Presentation transcript:

1 Real-Time Communications over the Web: webRTC Claudio Vacalebre claudio@cloudators.com

2 Agenda Introduction – 10 minutes Technology in action – xx minutes Feel free to interrupt any time

3

4

5 http://www.w3.org/History.html See also: http://netvalley.com/intval1.htmlhttp://netvalley.com/intval1.html

6

7

8

9

10

11

12 What is webRTC and why should I use it?... Google has just announced organisations participating in GSoC 2014 There are a couple of WebRTC possibilities (needing both students and co-mentors): a) I've offered to mentor a project involving improvement to JSCommunicator, with a focus on extending the capabilities of https://rtc.debian.org/ for the Debian community https://wiki.debian.org/SummerOfCode2014/Projects/WebRTC%20portal%20 for%20the%20Debian%20community b) the Jitsi project is participating, they have some WebRTC projects: https://jitsi.org/Development/GSoC Please feel to email me privately or on the Debian soc-coordination list for the first project and join the Jitsi GSoC list to discuss their opportunities https://rtc.debian.org/https://wiki.debian.org/SummerOfCode2014/Projects/WebRTC%20portal%20 for%20the%20Debian%20communityhttps://jitsi.org/Development/GSoC Mozilla also has some WebRTC/XMPP/Jingle projects in their InstantBird project: https://wiki.mozilla.org/Community:SummerOfCode14#Instantbird

13 WebRTC to write rich, realtime multimedia applications on the web without plugins without downloads without installs webRTC helps build a strong RTC platform that works across multiple web browsers and across multiple platforms.

14

15 Demo Devices

16 Demo Cloud Providers

17

18

19

20

21 Introduction: “open source” doesn't just mean access to the source code. The distribution terms of open-source software must comply with the following criteria: 1. Free Redistribution The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale. 2. Source Code The program must include source code, and must allow distribution in source code as well as compiled form. Where some form of a product is not distributed with source code, there must be a well-publicized means of obtaining the source code for no more than a reasonable reproduction cost preferably, downloading via the Internet without charge. The source code must be the preferred form in which a programmer would modify the program. Deliberately obfuscated source code is not allowed. Intermediate forms such as the output of a preprocessor or translator are not allowed. 3. Derived Works The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software. 4. Integrity of The Author's Source Code The license may restrict source-code from being distributed in modified form only if the license allows the distribution of "patch files" with the source code for the purpose of modifying the program at build time. The license must explicitly permit distribution of software built from modified source code. The license may require derived works to carry a different name or version number from the original software. 5. No Discrimination Against Persons or Groups The license must not discriminate against any person or group of persons. 6. No Discrimination Against Fields of Endeavor The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research. 7. Distribution of License The rights attached to the program must apply to all to whom the program is redistributed without the need for execution of an additional license by those parties. 8. License Must Not Be Specific to a Product The rights attached to the program must not depend on the program's being part of a particular software distribution. If the program is extracted from that distribution and used or distributed within the terms of the program's license, all parties to whom the program is redistributed should have the same rights as those that are granted in conjunction with the original software distribution. 9. License Must Not Restrict Other Software The license must not place restrictions on other software that is distributed along with the licensed software. For example, the license must not insist that all other programs distributed on the same medium must be open-source software. 10. License Must Be Technology-Neutral No provision of the license may be predicated on any individual technology or style of interface. The Open Source Definition

22 easyRTC in the Cloud AWS DNS: eNom EC2 Instance O.S.: WS2012 R2 Standard easyRTC Node.js,Express,Socket.io,webRTC [fake] Certificate Firewall rules Security Groups Azure DNS: eNom Virtual Machine O.S.: WS2012 R2 Datacenter easyRTC Node.js,Express,Socket.io,webRTC [fake] Certificate Firewall rules Endpoints

23 Peer Connection model (total endpoints) * (total endpoints - 1) 2 nodes == 2 streams 3 nodes == 6 4 nodes == 12 5 nodes == 20 6 nodes == 30 7 nodes == 42 8 nodes == 56 9 nodes == 72 10 nodes == 90webRTC

24 Signaling Signaling is the process of coordinating communication. In order for a WebRTC application to set up a 'call', its clients need to exchange information: Session control messages used to open or close communication. Error messages. Media metadata such as codecs and codec settings, bandwidth and media types. Key data, used to establish secure connections. Network data, such as a host's IP address and port as seen by the outside world.

25 Why is signaling not defined by WebRTC? To avoid redundancy and maximize compatibility with established technologies (SIP, Jingle) This approach is outlined by JSEP, the JavaScript Session Establishment ProtocolJavaScript Session Establishment Protocol JSEP's architecture also avoids a browser having to save state: that is, to function as a signaling state machine. This would be problematic if, for example, signaling data was lost each time a page was reloaded. Instead, signaling state can be saved on a server.

26 SDP JSEP requires the exchange between peers of offer and answer: the media metadata mentioned above. Offers and answers are communicated in Session Description Protocol format (SDP), which look like this:

27

28

29

30

31 Major components access the camera and microphonegetUserMedia, which allows a web browser to access the camera and microphone PeerConnection, which sets up the audio/video calls share data via peer- to-peerDataChannels, which allow browsers to share data via peer- to-peerwebRTC

32 Security The browser is the TCB Trusted Computing Base DTLS is required to prevent eavesdropping, tampering, or message forgerywebRTC

33 Notes WebRTC enables peer to peer communication BUT... WebRTC still needs servers: For clients to exchange metadata to coordinate communication: this is called signaling. To cope with network address translators (NATs) and firewalls.


Download ppt "Real-Time Communications over the Web: webRTC Claudio Vacalebre"

Similar presentations


Ads by Google