Evaluating Centralized, Hierarchical, and Networked Architectures for Rule Systems Benjamin Craig University of New Brunswick Faculty of Computer Science.

Slides:



Advertisements
Similar presentations
Data Communications and Networking
Advertisements

Information Resources Management January 16, 2001.
Introduction to Databases
Distributed Databases John Ortiz. Lecture 24Distributed Databases2  Distributed Database (DDB) is a collection of interrelated databases interconnected.
Distributed databases
Chapter 13 (Web): Distributed Databases
Deploying a Distributed Symposium Planner Through Rule Responder Harold Boley Benjamin Craig Institute for Information Technology National Research Council,
Technical Architectures
Dept. of Computer Science & Engineering, CUHK1 Trust- and Clustering-Based Authentication Services in Mobile Ad Hoc Networks Edith Ngai and Michael R.
Overview Distributed vs. decentralized Why distributed databases
Asper School of Business University of Manitoba Systems Analysis & Design Instructor: Bob Travica System architectures Updated: November 2014.
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
Lecture The Client/Server Database Environment
The Client/Server Database Environment
Network Topologies.
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Basic Concepts of Computer Networks
WellnessRules: The Activity Rule Responder Taylor Osmun Harold Boley Benjamin Craig Institute for Information Technology National Research Council, Canada.
SymposiumPlanner-2011: Querying Two Virtual Organization Committees Zhili Zhao, Adrian Paschke, Chaudhry Usman Ali, and Harold Boley Corporate Semantic.
Principles of the SymposiumPlanner Instantiations of Rule Responder Zhili Zhao, Adrian Paschke, Chaudhry Usman Ali, and Harold Boley Corporate Semantic.
1 Expert Finding for eCollaboration Using FOAF with RuleML Rules MCeTECH May 2006 Jie Li 1,2, Harold Boley 1,2, Virendrakumar C. Bhavsar 1, Jing.
Institute of Computer and Communication Network Engineering OFC/NFOEC, 6-10 March 2011, Los Angeles, CA Lessons Learned From Implementing a Path Computation.
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
Network Systems Identify network systems and their components.
NETWORK TOPOLOGIES HNC COMPUTING - Network Concepts 1 Network Concepts Topologies.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Distributed Rule Responder Querying on the Semantic Web Harold Boley Institute for Information Technology National Research Council, Canada Fredericton,
Intro to Network Design
 Topology Topology  Different types of topology Different types of topology  bus topologybus topology  ring topologyring topology  star topologystar.
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
Personal Computer - Stand- Alone Database  Database (or files) reside on a PC - on the hard disk.  Applications run on the same PC and directly access.
Rule Responder Agents in Virtual Organizations Harold Boley Benjamin Craig Institute for Information Technology National Research Council, Canada Fredericton,
POLICY ENGINE Research: Design & Language IRT Lab, Columbia University.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved. Computer Software Chapter 4.
Oracle's Distributed Database Bora Yasa. Definition A Distributed Database is a set of databases stored on multiple computers at different locations and.
9 Systems Analysis and Design in a Changing World, Fourth Edition.
SEMANTIC AGENT SYSTEMS Towards a Reference Architecture for Semantic Agent Systems Applied to Symposium Planning Usman Ali.
1 Distributed Databases BUAD/American University Distributed Databases.
Databases Illuminated
 What are CASE Tools ?  Rational ROSE  Microsoft Project  Rational ROSE VS MS Project  Virtual Communication  The appropriate choice for ALL Projects.
Wellness-Rules: A Web 3.0 Case Study in RuleML-Based Prolog-N3 Profile Interoperation Harold Boley Taylor Osmun Benjamin Craig Institute for Information.
Enabling e-Research in Combustion Research Community T.V Pham 1, P.M. Dew 1, L.M.S. Lau 1 and M.J. Pilling 2 1 School of Computing 2 School of Chemistry.
A Data Stream Publish/Subscribe Architecture with Self-adapting Queries Alasdair J G Gray and Werner Nutt School of Mathematical and Computer Sciences,
Star Topology Star Networks are one of the most common network topologies. consists of one central switch, hub or computer, which acts as a conduit to.
Rule Responder Agents for Distributed Query Answering Harold Boley Benjamin Craig Taylor Osmun Institute for Information Technology National Research Council,
Rule Responder: A Multi-Agent Web Platform for Collaborative Virtual Organizations Based on RuleML and OO jDREW Benjamin Craig University Of New Brunswick.
Data Communications and Networks Chapter 1 - Classification of network topologies Data Communications and Network.
Rule Responder: An Intelligent Multi-Agent System for Collaborative Teams and Virtual Communities Benjamin Craig Harold Boley Institute for Information.
REST By: Vishwanath Vineet.
Prepared by:Ronnel P. Agulto, CpE Objectives Different types of topologies; Their advantages & disadvantages How to choose an appropriate topologies in.
Network Topologies.
Deploying a Distributed Symposium Planner Through Rule Responder Benjamin Craig Harold Boley Institute for Information Technology National Research Council,
RuleML Query Answering with Personal OO jDREW Agents in Rule Responder Benjamin Craig Harold Boley Fredericton, NB National Research Council - IIT May.
Credit:  refers to the physical arrangement of the computers and other networking devices that are linked together.
CSCI 465 D ata Communications and Networks Lecture 2 Martin van Bommel CSCI 465 Data Communications & Networks 1.
1 Chapter 22 Distributed DBMS Concepts and Design CS 157B Edward Chen.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Taylor Osmun Institute for Information Technology National Research Council, Canada Fredericton, NB, Canada 1.
Network Topology Computer network topology is the way various components of a network (like nodes, links, peripherals, etc) are arranged. Network topologies.
Network types Point-to-Point (Direct) Connection Dedicated circuit boards connected by cable; To transfer data from A to B: – A writes on its circuit board;
Managing Data Resources File Organization and databases for business information systems.
Client-Server & Peer-to-Peer Networks
The Client/Server Database Environment
The Client/Server Database Environment
The Client/Server Database Environment
Chapter 9: The Client/Server Database Environment
CHAPTER 3 Architectures for Distributed Systems
Orlando Florida RuleML 2007 Thursday, October 25, 2007
Software models - Software Architecture Design Patterns
Types of topology. Bus topology Bus topology is a network type in which every computer and network device is connected to single cable. When it has exactly.
Presentation transcript:

Evaluating Centralized, Hierarchical, and Networked Architectures for Rule Systems Benjamin Craig University of New Brunswick Faculty of Computer Science Fredericton, NB, Canada Senior Technical Report Presentation November 20, 2008

1Outline Defining the Terminology Defining the Terminology Rules, Distributed Systems, Topologies, OO jDREW, Rule Responder Rules, Distributed Systems, Topologies, OO jDREW, Rule Responder Topologies for distributed Architectures Topologies for distributed Architectures Star Topology Advantages and Disadvantages Star Topology Advantages and Disadvantages P2P Topology Advantages P2P Topology Advantages Knowledge Maintenance for Rule Systems Knowledge Maintenance for Rule Systems Knowledge Organization Knowledge Organization Knowledge Maintenance Knowledge Maintenance Conclusion Conclusion

2 What is a rule? Fact (POSL format): Fact (POSL format): spending(Peter Miller, min 5000 euro, last year). Rule (POSL format): Rule (POSL format): premium(?Customer) :- spending(?Customer, min 5000 euro, last year). A deductive rule engine can deduce that Peter Miller is a premium customer from his spending A deductive rule engine can deduce that Peter Miller is a premium customer from his spending

3 Distributed Systems A distributed system is a set of computer processes that appear to the user as a single system The distributed system must coordinate all of these processes Distributed systems are implemented using middleware that creates a communication topology

4 Hierarchical - Star Topology Single level hierarchy Single level hierarchy Connects all spokes with a centralized hub Connects all spokes with a centralized hub All information must be sent through the hub to the spokes All information must be sent through the hub to the spokes

5 Networked (P2P-Like Architecture) Fully connected network Fully connected network Connects all nodes together with a direct connection Connects all nodes together with a direct connection Full mesh topology Full mesh topology Partially connected network Partially connected network Only a subset of nodes are connected together Only a subset of nodes are connected together Partial mesh topology Partial mesh topology

6 OO jDREW Centralized Rule System Centralized Rule System Object Oriented Java Deductive Reasoning Engine for the Web – extensions of jDREW Object Oriented Java Deductive Reasoning Engine for the Web – extensions of jDREW Supports rules in two formats: Supports rules in two formats: POSL: Positional Slotted presentation syntax POSL: Positional Slotted presentation syntax RuleML: XML interchange syntax (can be generated from POSL) RuleML: XML interchange syntax (can be generated from POSL)

7 Rule Responder Distributed Rule System Is currently implemented as a hierarchical rule system Rule Responder is a prototypical multi-agent system for virtual communities Supports rule-based collaboration between the distributed members of community Members are assisted by semi-automated rule- based agents, which use rules to describe the decision and behavioral logic

8

9 Topology Performance When building a distributed system a topology is required When building a distributed system a topology is required Distributed topologies all have communication over head that centralized systems do not have Distributed topologies all have communication over head that centralized systems do not have A key design goal for distributed systems is to minimize this communication over head A key design goal for distributed systems is to minimize this communication over head

10 Star Advantages Isolation of spokes from other spokes Isolation of spokes from other spokes If one spoke fails then it does not affect others If one spoke fails then it does not affect others Adding and removing spokes in the hub is trivial Adding and removing spokes in the hub is trivial Hub provides single point of inspection of all traffic through the topology Hub provides single point of inspection of all traffic through the topology Improved Security Improved Security Trouble shooting is easy Trouble shooting is easy Easy to understand and implement Easy to understand and implement

11 Star Disadvantages Scalability, reliability and performance of the star topology rely on the hub If the hub fails then the entire system fails The hub can become overloaded and the system will experience slowdown To prevent the bottleneck of the star topology a P2P topology can be used

12 P2P Advantages Removes bottleneck performance issues of the star topology Removes bottleneck performance issues of the star topology Whenever a node is added the total bandwidth capacity is increased Whenever a node is added the total bandwidth capacity is increased When a node fails the system will be able to recover When a node fails the system will be able to recover A peer can act in place of another peer A peer can act in place of another peer

13 Knowledge Maintenance for Rule Systems A distributed system can have many different knowledge bases distributed across the system A distributed system can have many different knowledge bases distributed across the system Each knowledge base acts as a module Each knowledge base acts as a module Many files and databases Many files and databases A centralized system has all of the knowledge stored in a single location A centralized system has all of the knowledge stored in a single location Either a file or a database Either a file or a database

14 Knowledge Organization - I When deciding how to group modules one of two ways can be used When deciding how to group modules one of two ways can be used Predicate Centric Predicate Centric All clauses of a predicates are stored in one module All clauses of a predicates are stored in one module Person Centric Person Centric All clauses about one person or thing is stored in one module All clauses about one person or thing is stored in one module Rule Responder uses person centric organization Rule Responder uses person centric organization example on next slide example on next slide

15 Knowledge Organization - II Predicate Centric: phoneOf(ben, ) phoneOf(jim, ) Of(ben, Of(jim, Person Centric: phoneOf(ben, ) Of(ben, phoneOf(jim, ) Of(jim,

16 Module Boundaries When querying modules sometimes information from multiple modules is required When querying modules sometimes information from multiple modules is required Example Query Example Query “What are the phone numbers of everyone in the organization?” “What are the phone numbers of everyone in the organization?” This query must backtrack across multiple modules when using person centric storage This query must backtrack across multiple modules when using person centric storage

17 Centralized Maintenance All knowledge is stored in a single location All knowledge is stored in a single location Updating knowledge is simple Updating knowledge is simple Can better avoid/repair knowledge inconsistencies Can better avoid/repair knowledge inconsistencies All knowledge is stored in a single format All knowledge is stored in a single format No translation steps when using a rule engine to execute the rules and facts No translation steps when using a rule engine to execute the rules and facts

18 Distributed Maintenance Knowledge is stored in a many locations Knowledge is stored in a many locations Each agent can separately update their own knowledge Each agent can separately update their own knowledge Knowledge bases could be incomplete or inconsistent Knowledge bases could be incomplete or inconsistent Integrity rules can be used to test if the knowledge is complete and consistent Integrity rules can be used to test if the knowledge is complete and consistent Knowledge is stored in many formats Knowledge is stored in many formats Translation steps are required when sending a query from one rule engine to another Translation steps are required when sending a query from one rule engine to another An interchange language is required An interchange language is required

19 Benchmarking Use Case RuleML-20xy Symposia RuleML-20xy Symposia An organizational agent acts as the single point of entry to assist with symposium planning: An organizational agent acts as the single point of entry to assist with symposium planning: Currently, query answering about the symposium Currently, query answering about the symposium Ultimately, preparing and running the symposium Ultimately, preparing and running the symposium Personal agents have supported symposium chairs since 2007 (deployed as Q&A in 2008) Personal agents have supported symposium chairs since 2007 (deployed as Q&A in 2008)Q&A General Chair, Program Chair, Panel Chair, Publicity Chair, etc. General Chair, Program Chair, Panel Chair, Publicity Chair, etc.

20 Queries Used 1) Sponsoring the symposium 1) Sponsoring the symposium 2) Check panel participants 2) Check panel participants 3) View symposium sponsors 3) View symposium sponsors 4) View organization partners 4) View organization partners 5) Check panel time 5) Check panel time

21 OO jDREW (centralized) Benchmarking Query: Computation Time (ms): 1)141 2) 31 3)22 4)18 5)16 Results show that a centralized system does not take much computation time Queries do not require heavy computation

22 Rule Responder ( Benchmarking Rule Responder (Hierarchical) Benchmarking Same 5 queries used as in the OO jDREW bench marking Same 5 queries used as in the OO jDREW bench marking Query: Computation Time (ms): 1)3430 2) )4057 4)9048 5)2780 Increase in computation time due to sequential delivery of answers to the queries Increase in computation time due to sequential delivery of answers to the queries Communication overhead of distributed system not compensated by workload distribution Communication overhead of distributed system not compensated by workload distribution

23 Network Performance Considerations Speed ups can be obtained using a P2P topology Speed ups can be obtained using a P2P topology Instead of all communication going 'vertically' through the hub, direct 'horizontal' communication between spokes could be often used Instead of all communication going 'vertically' through the hub, direct 'horizontal' communication between spokes could be often used Will reduce the amount of communication steps in the distributed system Will reduce the amount of communication steps in the distributed system The bottleneck issue of a hierarchical system does not exist in a networked system The bottleneck issue of a hierarchical system does not exist in a networked system

24 Conclusion A rule system can be either distributed or centralized A rule system can be either distributed or centralized When using a distributed system the communication topology must be decided When using a distributed system the communication topology must be decided The topology should reflect the modularization decision about the distributed rule system The topology should reflect the modularization decision about the distributed rule system The advantages and disadvantages of distributed knowledge maintenance must be weighted when building a rule system The advantages and disadvantages of distributed knowledge maintenance must be weighted when building a rule system Our initial benchmarks, not requiring heavy computation, show increase in computation time for a distributed Hierarchal system Our initial benchmarks, not requiring heavy computation, show increase in computation time for a distributed Hierarchal system Only distributed networked system will *scale* to the Web Only distributed networked system will *scale* to the Web

25 OA PA 1 PA 2 PA 3 PA 4 PA 5 Expert 4 Expert 3 Expert 2 Expert 5 EA