Professional Documents
Culture Documents
Using
Peer to Peer Mechanisms
Subodh Kumar E S
ShashiKiran B S
Shivakumar M
Contents
Introduction
Requirement Analysis
Design
Implementation
Conclusion
Future Enhancement
INTRODUCTION
Cluster Architecture
SERVER SERVER
NODE 1 NODE 4
LAN
SERVER SERVER
NODE 2 NODE 3
Off ers a ser vice
Advantages :
Deployed to improve performance or high availability
for an applicati on.
Limitations :
Master Node maintains synchrony for every
communicati on in the cluster.
MASTER
NODE
SERVER SERVER
NODE 1 NODE 3
LAN
Distributed Computi ng
Instant Messaging
Enterprise Collabarati on
REQUIREMENT
ANALYSIS
Objective of the Model
Provide a Dynamic node joining procedure, for the
server nodes which want to join the cluster.
Boot Strapping
Deals with the Cluster setup
Cluster Management
Deals with the managing cluster
Applicati on Interacti on
Deals with the service management
Boot Strapping
Setti ng up Master Node of the Cluster Infrastructure
Cluster Management
Discovery of the Master Node
Server Node Joining mechanism
Confi gurati on of the Server Node
Set the mode of the Applicati on Server
Transfer of Cluster informati on
Cluster Management
Server node leaving procedure
Status check of every server node
Inti mati on of Masters exit
Display of Cluster status informati on to the user
Application Interaction
Allocati on of Applicati on Server
Managing back up of user informati on
Non Functional Requirements
Response Time
Inter Operability
Usability
Scalability
Security
Software Requirements
Windows XP/2000/ Vista OS
JVM , Networking APIs
NetBeans Integrated Development Environment
Hardware Requirements
Processor - Intel Penti um-III or above
RAM - 512 MB or above
Ethernet Card
LAN Switch
DESIGN
Design Specifications
Master IP
Master Node Start Up
Master Port
Master IP
IP LIST
Node
Cluster Management
Get
IP LIST MasterNode
Master IP
Status request
Node
Check
Status
Cluster Management
IP, AppType
Update Configure
Cluster info Node Multicast
NODE LIST
Cluster Management
MasterNode
AppNode
Mode
Assignment
NODE LIST
Cluster Management
Inform IP , Log_out
msg MasterNode
MasterNode
IP , Log_out Remove: IP
Inform all Update Cluster
Node Leaving msg members Structure
Updated
List of Server Server Node
Nodes List
NODE LIST
MEMBER LIST
Cluster Management
IP, Status
MEMBER LIST
Active
Server Node
List Update
Member List
Cluster Management
List of
Server Nodes
Stop
Nodes Master
NODE LIST
Node
Application Interaction
NODE LIST
Master Node
Server Node List
getAppNode(AppType)
Get Nodes
Get
App Node AppNode IP, Port
Assign
Master IP
AppType
AppNode
Client
Application Interaction
Update Client IP
App Node
UserList
Service Info,
Client IP
Updated
Client List
Client IP
App
USER LIST Service
Client List
Service Info
Server Node
IP, Port
Update Service
Client
Members Request
Server
Node
List
MEMBER LIST
IMPLEMENTATION
Boot Strapping
Setti ng up the Master Node
Class MasterNode
ssm : ServerSocket
sma : Socket
MasterNode( ) : IPaddrM : String
IPaddrL : String
Initi alizes all the Lists AppType : String
MSStatus : int
Initi alizes GUI NodeList : Hashtable
Sets the Master Node Status TempList : Vector
AppA : Hashtable
AppB : Hashtable
Run( ) : AppC : Hashtable
Starts to Listen Node requests
Independent Service for requests MasterNode() : void
Disp_CInfo() : void
Init_GUI() : void
Inform_All() : void
MultiCast(AppType ) : void
CheckApp(IP,Apptype) : boolean
CheckSt(IP) : boolean
run() : void
Cluster Management
Master Node Discovery
AppServer( ) :
Class AppServer
AppReader Class:
Listens for Mode assignment from Master Node.
Gets the Status and Cluster Informati on.
Cluster Management
Transfer of Cluster Informati on
MasterNode.Multi cast(A pptype):
Master Node module for Informati on transmission.