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

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

    19-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    1

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

Page 1: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

INF 123 SW ARCH, DIST SYS & INTEROP

LECTURE 13

Prof. Crista Lopes

Page 2: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

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 Prof. Crista Lopes.

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 Prof. Crista Lopes.

Advantage over direct calls

Component A Component BE

Component C

E

coupling

Page 6: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

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 Prof. Crista Lopes.

Events at different levels

Software architecture possibly with programming language

support

System architecture

Page 9: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

SW Level with PL Support

Object A Object B

Event Broker

1 23 4

Object C…

2 4

Language runtime

Page 11: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

Part 2

The Internet

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

ipconfig @ home

Page 14: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

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 Prof. Crista Lopes.

Hierarchical Security

Home network Home network

ISP ISP

UCI

Page 17: INF 123 SW ARCH, DIST SYS & INTEROP LECTURE 13 Prof. Crista Lopes.

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 Prof. Crista Lopes.

What the clients see

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