INF 123 SW Arch, dist sys & interop Lecture 13

19
INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes

description

INF 123 SW Arch, dist sys & interop Lecture 13. Prof. Crista Lopes. Objectives. Understanding of Event-Based Architectures Understanding practicalities of th e Internet IP addresses routers security. Event-Based Architectures. - PowerPoint PPT Presentation

Transcript of INF 123 SW Arch, dist sys & interop Lecture 13

Page 1: INF 123  SW Arch, dist sys &  interop Lecture 13

INF 123 SW ARCH, DIST SYS & INTEROP

LECTURE 13Prof. Crista Lopes

Page 2: INF 123  SW Arch, dist sys &  interop Lecture 13

Objectives Understanding of Event-Based

Architectures Understanding practicalities of the

Internet IP addresses routers security

Page 3: INF 123  SW Arch, dist sys &  interop Lecture 13

Event-Based Architectures An EBA is an architecture based on parts

that interact solely or predominantly using event notifications, instead of direct method calls.

Page 4: INF 123  SW Arch, dist sys &  interop Lecture 13

Event-Based Architectures

Component A Component B

Event Broker

1 23 4

1. Component A registers an event of type E2. Component B subscribes to that event type3. Component A raises that event4. Component B is notified of that event

Page 5: INF 123  SW Arch, dist sys &  interop Lecture 13

Advantage over direct calls

Component A Component BE

Component C

E

coupling

Page 6: INF 123  SW Arch, dist sys &  interop Lecture 13

Advantage over direct calls

Component A Component B

Event Broker

1 23 4

Component C…No coupling!

2 4

Page 7: INF 123  SW Arch, dist sys &  interop Lecture 13

Disadvantage over direct calls Less control on timing More difficult to understand program

flow

Page 8: INF 123  SW Arch, dist sys &  interop Lecture 13

Events at different levels Software architecture

possibly with programming language support

System architecture

Page 9: INF 123  SW Arch, dist sys &  interop Lecture 13

SW Level without PL support

Object A Object B

Event Broker (your code or library object)

1 23 4

Object C…

2 4

Page 10: INF 123  SW Arch, dist sys &  interop Lecture 13

SW Level with PL Support

Object A Object B

Event Broker

1 23 4

Object C…

2 4Language runtime

Page 11: INF 123  SW Arch, dist sys &  interop Lecture 13

Distributed System Level

Component A Component B

Event Broker (your component or someone else’s)

1 23 4

Component C…

2 4

Network

Page 12: INF 123  SW Arch, dist sys &  interop Lecture 13

Part 2

The Internet

Page 13: INF 123  SW Arch, dist sys &  interop Lecture 13

ipconfig @ home

Page 14: INF 123  SW Arch, dist sys &  interop Lecture 13

myipaddress.com

myIPaddress.com

Your computer’s IP address is:

75.32.137.8

Page 15: INF 123  SW Arch, dist sys &  interop Lecture 13

Hierarchical Identification

Home network Home network

ISP ISP

UCI

192.x.x.x 192.x.x.x

75.32.137.8 69.232.36.159128.195.54.203

128.195.54.203

Page 16: INF 123  SW Arch, dist sys &  interop Lecture 13

Hierarchical Security

Home network Home network

ISP ISP

UCI

Page 17: INF 123  SW Arch, dist sys &  interop Lecture 13

OpenSim Virtual World deployment

Home network Home network

ISP ISP

UCI

192.x.x.x 192.x.x.x

75.32.137.8 69.232.36.159ucigrid03.nacs.uci.edu

128.195.54.203

ResourceServices

Simulator Simulator

region registration

teleport!

Page 18: INF 123  SW Arch, dist sys &  interop Lecture 13

What the clients see

Page 19: INF 123  SW Arch, dist sys &  interop Lecture 13