eceg group. ispace room before ispace room after

33
ECEG Group

Upload: clara-sherman

Post on 21-Jan-2016

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ECEG Group. iSpace Room Before iSpace Room After

ECEG Group

Page 2: ECEG Group. iSpace Room Before iSpace Room After

iSpace Room Before

Page 3: ECEG Group. iSpace Room Before iSpace Room After

iSpace Room After

Page 4: ECEG Group. iSpace Room Before iSpace Room After

Abstract

• Event Heap• Solution: ECEG

Page 5: ECEG Group. iSpace Room Before iSpace Room After

Video

Page 6: ECEG Group. iSpace Room Before iSpace Room After

ECEG System Features

• Resource Discovery

Page 7: ECEG Group. iSpace Room Before iSpace Room After

ECEG System Features

• Resource Discovery

• Generic Application Platform

Page 8: ECEG Group. iSpace Room Before iSpace Room After

ECEG System Features

• Resource Discovery

• Generic Application Platform

• Remote Control

Page 9: ECEG Group. iSpace Room Before iSpace Room After

ECEG System Features

• Resource Discovery

• Generic Application Platform

• Remote Control

• Instant Messenger

Page 10: ECEG Group. iSpace Room Before iSpace Room After

ECEG System – How to Use

Page 11: ECEG Group. iSpace Room Before iSpace Room After

ECEG System

http://2g1319.ssvl.kth.se/~csd2002-forumispace/download/eceg.htm

Page 12: ECEG Group. iSpace Room Before iSpace Room After

System Overview

Application

P2P Communication

Discovery

JXTA

TCP/IP

Wave LAN

Page 13: ECEG Group. iSpace Room Before iSpace Room After

BlueTooth

Page 14: ECEG Group. iSpace Room Before iSpace Room After

Infrared

Page 15: ECEG Group. iSpace Room Before iSpace Room After

Wave LAN

Page 16: ECEG Group. iSpace Room Before iSpace Room After

Transport layer solutions

• Event Heap• Jini• Jxta

• Definition– Transport layer’s responsibility is to define

how traffic should be sent over inter-networks

Page 17: ECEG Group. iSpace Room Before iSpace Room After

Event HeapA centeral event dispatcher, all the message goes through the event

heap server.

Page 18: ECEG Group. iSpace Room Before iSpace Room After

Jini

Establishes a distributed system by moving interfaces of objects around the network

LookupService

LookupService

ServiceProvider

ServiceProvider

ClientClient

Page 19: ECEG Group. iSpace Room Before iSpace Room After

JiniJini

LookupService

LookupService

ServiceProvider

ServiceProvider

ClientClient

Page 20: ECEG Group. iSpace Room Before iSpace Room After

JiniJini

LookupService

LookupService

ServiceProvider

ServiceProvider

ClientClient Service Object

Service Attribute

Page 21: ECEG Group. iSpace Room Before iSpace Room After

JiniJini

LookupService

LookupService

ServiceProvider

ServiceProvider

ClientClient

Page 22: ECEG Group. iSpace Room Before iSpace Room After

JiniJini

LookupService

LookupService

ServiceProvider

ServiceProvider

ClientClient

Page 23: ECEG Group. iSpace Room Before iSpace Room After

Jini

• Advantages– Simplicity.– Robustness.

• Disadvantages– Platform dependency.– IP based.

Page 24: ECEG Group. iSpace Room Before iSpace Room After

JXTA”A layered model solution for developing Peer 2 Peer

applications, consisting of protocols that are independent from underlying topology” -SUN

Page 25: ECEG Group. iSpace Room Before iSpace Room After

JXTA

Peer 2 Peer

Dynamic

Lightweight

Page 26: ECEG Group. iSpace Room Before iSpace Room After

Chosen Technology: JXTA

• Advantages– Interoperability.– Platform Independent.– Ubiquity

• Disadvantages– Under Development.– Inherently Chatty.

Page 27: ECEG Group. iSpace Room Before iSpace Room After

ECEG System

Application

P2P Communication

Discovery

Page 28: ECEG Group. iSpace Room Before iSpace Room After

Source Code• public void discoveryEvent(DiscoveryEvent ev)• {• Debug.trace("-> MyPeerGroupNeigborhood.discoveryEvent", 1);

• DiscoveryResponseMsg response = ev.getResponse();• int index = -1;• Peer peerTemp = null;

• try• {• String aResponse = response.getPeerAdv();

• /* First we can elicit what peer has published the advert, we can then• determine which groups it belongs to */• InputStream is = new ByteArrayInputStream((aResponse).getBytes());• peerAdvert = (PeerAdvertisement)AdvertisementFactory.newAdvertisement(• new MimeMediaType("text/xml"), is);• Debug.trace("Number of responses received from: " + peerAdvert.getName() + " is " +• response.getResponseCount(), 2);

• index = neighborhoodData.doesPeerExist(peerAdvert.getPeerID());

• Debug.trace("Peer Description: " + peerAdvert.getDescription(), 2);

• Enumeration enum = response.getResponses();

• if (index >= 0) // the peer exists• {• Debug.trace("Peer exists", 1);• neighborhoodData.setPeerAliveFlag(peerAdvert.getPeerID());• ParsePeer.parse(• (Peer)neighborhoodData.vectorManip.elementAt(index),• peerAdvert, enum, this, true);• Debug.writePeerHtmlFile(peerAdvert.getName());• ParsePeer.dealWithSubAdvertisements(enum, (Peer)neighborhoodData.vectorManip.elementAt(index), this);• Debug.trace("End of peer exists", 1);• }• else if (index < 0)• {• Debug.trace("Peer does not exist", 3);• peerTemp = new Peer();• neighborhoodData.addPeer(peerTemp);• ParsePeer.parse(peerTemp, peerAdvert, enum, this, false);• ParsePeer.dealWithSubAdvertisements(enum, peerTemp, this);• Debug.trace("End of peer does not exist", 1);

• discovery.getRemoteAdvertisements (null, DiscoveryService.ADV, null, null, 30, this);• discovery.publish(myPeer.pipeAdvertisement, DiscoveryService.ADV);• discovery.remotePublish(myPeer.pipeAdvertisement, DiscoveryService.ADV);• }• }• catch (IOException ioe)• {• Debug.error("An IO error occured!!");• Debug.error(ioe.toString());• ioe.printStackTrace();• }• catch (Exception e)• {• e.printStackTrace();• }

• Debug.trace("<- MyPeerGroupNeigborhood.discoveryEvent", 1);• }

Page 29: ECEG Group. iSpace Room Before iSpace Room After

Project Issues

• Project Scope• Project Plan

Adherence• Extra Frills:

– Mouse Sender/Receiver

– Instant Messenger– Dynamic IP Discovery– Inter iSpace

Communication

Page 30: ECEG Group. iSpace Room Before iSpace Room After

Problems Faced

• Team Member Loss• Tomorrow’s

Technology• Inter-Subnet• Peer Groups

Page 31: ECEG Group. iSpace Room Before iSpace Room After

Conclusion

• Wave LAN

• JXTA

• Layered Model

• Developed Application

• Future

Page 32: ECEG Group. iSpace Room Before iSpace Room After

Acknowledgements

• Li Wei

• Erik Eliasson

• Fredrik Kilander

• Teaching Team

Page 33: ECEG Group. iSpace Room Before iSpace Room After

Questions & Answers

?