23
JXTA JXTA By Fawaz AlSulaiman By Fawaz AlSulaiman [email protected] [email protected] 3718739 3718739

JXTAJXTA By Fawaz AlSulaiman [email protected]

Embed Size (px)

Citation preview

Page 1: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

JXTAJXTAJXTAJXTABy Fawaz AlSulaimanBy Fawaz [email protected]@gmail.com

37187393718739

Page 2: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

2

Contents• Introduction• The Need Peer to Peer• Why JXTA• Walk Through JXTA• Conclusion• References

Page 3: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

3

Introduction• JXTA stands for “juxtapose” that

means putting things aside of each other. Simply, Peer-to-Peer

Page 4: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

4

History• JXTA started as JXTA SEARCH in June

2000 when Gene Kan and Yaroslav Faybishenko of Infrasearch created a demo search engine which connected multiple Web servers together using a peer-to-peer (P2P) protocol.

• Nearly a year later, the Infrasearch team is now part of Sun’s Project JXTA. The Sun’s Project can be found on the site http://www.jxta.org

Page 5: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

5

Peer-to-Peer (P2P)• The Internet has three valuable fundamental

assets • Information which are documents, audios,

videos …etc.• Network capabilities ,“Bandwidth”.• Computing resources, such as processing,

storage The Utilization Ratio for these assets is low !

Because of low end-user contributions

Page 6: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

6

The Effect of the Traditional Client-Server

Computing Model• world produces about 2x1018 bytes

of information every year, but only publishes about 3x1012 bytes. Moreover, Google claims that it searches about only 3.8x1010 web pages

Page 7: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

7

Continue• Many new fiber have been installed,

the new installed bandwidth gets little use since everyone goes to same pages such as Amazon for books or to eBay for auctions. What happen is,

“ hot spots just get hotter while cold pipes remain cold”

Page 8: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

8

JXTA Objective• Interoperability(peer groups, variety of services

supported)• Platform Independence(Programming Language, OS, Network

technology• Ubiquity(all digital devices, even not invented

yet devices)

Page 9: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

9

Page 10: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

10

JXTA Core Building Blocks

• Peers • peer groups• Advertisements• Messages• Pipes • Services

Page 11: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

11

Peer Group A

Peer Group B

NetPeerGroup

Page 12: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

12

Advertisement• <?xml version="1.0"?>• <!DOCTYPE jxta:PipeAdvertisement>• <jxta:PipeAdvertisement xmlns:jxta="http://www.jxta.org">• <Id>• urn:jxta:uuid-59616261646162614E50472050325033A10C• F46E7B7041B48C3EBF32A5DA2A4404• </Id>• <Type>• JxtaUnicast• </Type>• <Name>• frodo.replyTo• </Name>• </jxta:PipeAdvertisement>

Page 13: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

13

Page 14: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

14

JXTA Protocols• Endpoint Routing Protocol (ERP) • The Peer Resolver Protocol • The Rendezvous Protocol • The Peer Discovery protocol (PDP) • The Peer Information Protocol (RIP) • The Pipe Binding Protocol

Page 15: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

15

Page 16: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

16

Rendezvous Peer View • Rendezvous super peers maintains its own rendezvous

peer view which is an ordered list of other known rendezvous in the peer group by their peer ID’s.

• Rendezvous periodically select a given random number of rendezvous from their local RVP, and send them a random list of their known rendezvous.

• Rendezvous check their neighbor rendezvous (+1 or more, -1 or less).

• Rendezvous update and clean non-responding rendezvous from their RPV.

• Rendezvous might retrieve rendezvous info from a predetermined set of bootstrapping seeding rendezvous.

Page 17: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

17

Edge peer Rendezvous connection

• Check its cache for Rdv advertisement.

• If No responsetry to propagate request through

possible connections • If No response Try seed Rendezvous• If No response Be a Rendezvous

Page 18: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

18

P1

H(adv)1

R1

R6

R5

R4

R3

R2Adv1

Page 19: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

19

P1

H(adv)1

R1R5

R5

R4

R3

R2

Adv1

P2

R6

Page 20: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

20

P1

H(adv)1

R1

R6

R5

R4

R3

R2

Adv1

P2

R7R8

UP

UP

down

down

Page 21: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

21

Page 22: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

22

Conclusion• JXTA considered one of the biggest

project in P2P.• A project that unite all works of

Peer to Peer• JXTA Open Source License attracts

a lot of developers and companies.

Page 23: JXTAJXTA By Fawaz AlSulaiman FawazAS@gmail.com3718739

23

References• http://www.jxta.org• http://www.aim.com• Steve Waterhouse, “JXTA Search: Distributed Search for Distributed Networks”, Sun Microsystems,

Inc., 2001.• Li Gong, ”Project JXTA: A Technology Overview”, Sun Microsystems, Inc., 2002• http://www.google.com• JXTATM Technology: Creating Connected Communities, Sun Microsystems, 2004• Sing Li, “Making P2P interoperable: The JXTA story”,2001 • Bernard Traversat, Ahkil Arora, Mohamed Abdelziz, Mike Duigou, Carl Haywood, “Project JXTA 2.0

Super-Peer Virtual Network”, Sun Microsystems, 2003• Daniel Brookshier, Darren Govoni, Navaneeth Krishnan, Juan Carlos Soto “JXTA: Java P2P

Programming”, SAMS, 1st edition,2002• Ion Stocia, Robert Morris, David Liben-Nowell, “Chord: A Scalable Peer-to-Peer Lookup Protocol for

Internet Applications”, ACM Transactions on Networking, Vol 11, No.1, 2003• Q.Lv and al., Search and Replication in Unstructured Peer-to-Peer Network,

www.cs.princeton.edu/~qlv/download/searchp2p_full.pdf• “Project JXTA: An Open, Innovative Collaboration”, Sun Microsystems.• Rita Yu Chen,Bill Yeager,”Java mobile agents on project JXTA peer-to-peer Platform”, Proceedings

of the 36th Hawaii International Conference on System Sciences(HICSS’03), IEEE, 2002