15. WTF P2P?
NAT/Firewall Traversal
NetGroup Native Multicast
NetGroupSendMode Fusion
NetGroupSendResult NetGroupReplicationStrategy
RTMFP IP Address Mobility NetStream
Encryption
Directed Routing
IT’S HUGE! Posting
Application-Level-Multicast Bootstrap
GroupSpeci er
NetStreamMulticastInfo
Topology
Object Replication NetGroupInfo
Partial Reliability
NetGroupReceiveMode
NetConnection
Congestion Control ®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 15
16. What is Peer-to-peer?
Hub-and-Spoke network
Hub-and-spoke:
- centralized
- Single point of failure
- cost of a server
- adding more clients make network slower
Centralized server-based service model.
- need failover and backups
P2P network
P2P
- decentralized
- adding more clients make network faster
- robustness, no failover
A peer-to-peer system of nodes without central infrastructure.
®
Source: Wikipedia.org
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 16
17. What is Peer-to-peer?
Point-to-point one-to-one “Swarming” many-to-many
Live streaming Large- le download (possibly progressive)
Document delivery
*Connections in step 2
Live Application-Level Multicast one-to-many Distributed Data Storage (distributed hash table)
Broadcast (1 to many, some latency tolerable) DHT-like structures to form distributed database
Interactive (many to many, or 1 to many with feedback,
low latency required)
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 17
18. 500kbps
500kbps
P2P with
Adobe Stratus
Creating Real Time Experiences with Flash
500kbps
500kbps
500kbps 500kbps
Server will receive 1Mbps and send 1Mbps
A er 10 minutes: 37MB/stream = 148MB
19. Peer-to-peer in Flash Player
Demo game - MILL Author
Pavel Šimek, Geewa
Czech Republic
h p://nestor.cz/mill/
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 19
20. Peer-to-peer in Flash Player
Demo app - Phone
h p://labs.adobe.com/technologies/stratus/samples/
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 20
21. Adobe Stratus
Hosted rendezvous service
rtmfp://stratus.adobe.com
Looks like FMS, but...
‣ No client-server streaming
‣ No recording
‣ No server-side scripts or application logic
‣ Requires (free) developer key to connect
Emerging technology
STRATUS
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 21
22. Peer-to-peer in Flash Player
RTMFP Adobe Stratus
‣ Real Time Media Flow Protocol Hosted rendezvous service
‣ Introduced in Flash Player 10 and upgraded in FP 10.1 rtmfp://stratus.adobe.com
‣ Based on UDP (lossy, be er latency)
‣ Encrypted 128-bit AES
‣ Need to accept every incoming connection
STRATUS
USE CASES
‣ Multiplayer games,
‣ VoIP
‣ Audio/Video
‣ Collaboration
‣ Chat
Firewall fallback to RTMP/T (Flash Media Server)
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 22
23. What’s new about P2P in Flash Player 10.1
Groups & Multicast
‣ GroupSpeci er
‣ NetGroup
‣ NetGroupInfo Group of peers
‣ NetGroupReceiveMode
‣ NetGroupReplicationStrategy
‣ NetGroupSendMode
‣ NetGroupSendResult
‣ NetStream updated
‣ NetStreamMulticastInfo
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 23
24. Deploying Flash P2P app to Facebook
Placing our P2P game to Facebook
‣ Login into our P2P app with Facebook login
‣ Exchange ngerprints
‣ Connect our friends and exchange data with them
Facebook AS 3.0 API
Stratus
Fingerprint exchange
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 24
25. Yes - even this!
Advanced Multicast, Security, Managing NetGroup, Future FMS
®
Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe con dential. 25