P2P for mobile devices

13,710 views
13,476 views

Published on

The slidedeck for my talk on Peer to Peer for Mobile devices at Adobe Flash Platform Summit 2011, Bangalore

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
13,710
On SlideShare
0
From Embeds
0
Number of Embeds
9,093
Actions
Shares
0
Downloads
57
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

P2P for mobile devices

  1. 1. P2P for Mobile DevicesImmanuel Noel | Platform Evangelist, Adobe blog.inoel.in
  2. 2. What ?P2P – File sharing?Distributed application architectureLive, Real Time connectivity for devicesFlash Platform support
  3. 3. Why ?• Scalability• Network Efficiency• Secure• Cloud Sourcing Information• Better User Experience• Take advantage of P2P capabilities of AIR for Mobile
  4. 4. Where ?Everything from application-level videomulticasting to swarming file delivery andmultiuser games without a server !Corporate enterprise, social media, andentertainment applications
  5. 5. DemosLink on the last slide
  6. 6. The EntitiesPeerRTMFPGroup – Super Set of neighborsNeighbors – Directly connected peers
  7. 7. How ? GroupRTMFP Capable Server
  8. 8. Infrastructure• FMS Server rtmfp://<SERVER>• Cirrus service (non-commercial), rtmfp://p2p.rtmfp.net/ + DEVELOPER+KEY• Isolated LAN rtmfp://
  9. 9. Why connect to a external server?• Facilitate connectivity• Directory of connected devices• Authenticity• Manage topology• Self managed P2P groups – No Manual Peer ID Exchange
  10. 10. Real Time Media Flow Protocol• Protocol• Enables Live, Real time connectivity• Not File Sharing, Best for streaming• Unlike RTMP, based on the UDP protocol• Rapid Connection Restore• IP Mobility• 128-bit AES encryption
  11. 11. Routing Multicast Many to Many Directed Routing One to Many Object ReplicationBest effort techniques to transfer large data
  12. 12. Group Specifier• Define a P2P group• Specify capabilities – Multicast – ipMulticastMemberUpdatesEnabled – MulticastEnabled – RoutingEnabled – PostingEnabled – ObjectReplicationEnabled, and more ! (Group Name + Group Capabilities) = Group Identifier
  13. 13. Events NetConnection.Connect.Success NetGroup.Connect.Success NetGroup.Neighbor.ConnectnetGroup.sendToNeighbor(data) NetGroup.SendTo.Notify (event.info.message)
  14. 14. NetStream - Audio and VideoSendervar camera:Camera = Camera.getCamera();var mic:Microphone = Microphone.getMicrophone();_outgoingStream.attachAudio(mic);_outgoingStream.attachCamera(camera);_outgoingStream.publish( "P2PVideo" );ListenerNetGroup.MulticastStream.PublishNotifyReceiver_incomingStream.play("P2PVideo");
  15. 15. Where Next Cirrushttp://labs.adobe.com/technologies/cirrus/ Sample Code http://inoel.in/p2p
  16. 16. Where Right Now Ekalavyahttp://bit.ly/ekalavya
  17. 17. Thank You inoel@adobe.comTwitter: @immanuelnoel http://blog.inoel.in

×