jan 31, 2001csci {4,6}900: ubiquitous computing1 recap. ubiquitous computing vision –the computer...

21
Jan 31, 2001 CSCI {4,6}900: Ubiquitous Comp uting 1 Recap. Ubiquitous Computing Vision The Computer for the Twenty-First Century , Mark Weiser The Coming Age Of Calm Technology, Mark Weiser and John Seely Brown People, Places, Things: Web Presence for the Real World Tim Kindberg, John Barton, Jeff Morgan, Gene Becker, Ilja Bedner, Debbie Caswell, Phillipe Debaty, Gita Gopal, Marcos Frid, Venky Krishnan, Howard Morris, Celine Pering, John Schettino, Bill Serra. Next Century Challenges: Data-Centric Networking for Invisible Computing. Mike Esler, Jeffrey Hightower, Tom Anderson, and Gaetano Borriello

Upload: meagan-montgomery

Post on 16-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 1

Recap.

• Ubiquitous Computing Vision– The Computer for the Twenty-First Century, Mark Weiser– The Coming Age Of Calm Technology, Mark Weiser and

John Seely Brown– People, Places, Things: Web Presence for the Real World

Tim Kindberg, John Barton, Jeff Morgan, Gene Becker, Ilja Bedner, Debbie Caswell, Phillipe Debaty, Gita Gopal, Marcos Frid, Venky Krishnan, Howard Morris, Celine Pering, John Schettino, Bill Serra.

– Next Century Challenges: Data-Centric Networking for Invisible Computing. Mike Esler, Jeffrey Hightower, Tom Anderson, and Gaetano Borriello

Page 2: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 2

Recap

• Distributed Systems Architecture– Intro. to Distributed system architecture (Domain Name

Service (DNS), Gnutella, DNS round robin etc.)– Oceanstore: An Extremely Wide-Area Storage System

David Bindel, Yan Chen, Patrick Eaton, Dennis Geels, Ramakrishna Gummadi, Sean Rhea, Haim Weatherspoon, Westley Weimer, Christopher Wells, Ben Zhao, and John Kubiatowicz

– Feasibility of a Serverless Distributed File System Deployed on an Existing Set of Desktop PCs William J. Bolosky, John R. Douceur, David Ely, and Marvin Theimer

Page 3: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 3

Recap

• Location and Naming management– The Anatomy of a Context-Aware Application Andy Harter,

Andy Hopper, Pete Steggles, Andy Ward, Paul Webster– Active Names: Flexible Location and Transport of Wide-

Area Resources Amin Vahdat, Michael Dahlin, Thomas Anderson, and Amit Aggarwal

Page 4: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 4

Outline

1. The Dangers of Replication and a Solution, Jim Gray, Pat Helland, Patrick O'Neil, and Dennis Shasha. In Proceedings of the ACM SIGMOD international conference on Management of data, 1996

Page 5: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 5

Replication – Intro.

• As systems grow, need to scale up

….

Page 6: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 6

Scale Up

• You can scale up by buying a bigger machine

….

Page 7: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 7

Partition

• You can scale up by partitioning the machines (e.g. service users in east coast from Atlanta and west coast from L.A.)

….

Page 8: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 8

Replication

• You can replicate data

….

Page 9: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 9

Serializability – Intro.

• What is the value of X in node 3?• Causal ordering (Update x when you hear from

Node 1 or Node 2)

Node 1 Node 2tim

e

X=1000

X=200

X=100

Node 3

X=?

X=?

Page 10: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 10

Serializability – Intro.

• What is the value of X in node 3?• Causal ordering (Update x when you hear from

Node 1 or Node 2)

Node 1 Node 2tim

e

X=1000

X=200

X=100

Node 3

X=?

X=200

Page 11: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 11

Goals of replication

• Availability and scaleabilityProvide high availability and scaleability through replication

• MobilityAllow mobile nodes to read and update the database while

disconnected from the network

• SerializabilityProvide single-copy serializable transaction execution

• ConvergenceProvide convergence to avoid system delusion

Page 12: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 12

Eager Replication

• All replicas synchronized to the same value immediately

RR

R

R R R

time

Page 13: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 13

Eager Replication

• All replicas synchronized to the same value• Lower update performance and response time

RR

R

R R R

time

Page 14: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 14

Lazy Replication

• One replica is updated by the transaction• Replicas synchronize asynchronously• Multiple versions of data

RR

R

R R R

time

Page 15: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 15

Single node Transaction

• No conflicts

Checking –1000Savings +500CD +500Commit

Page 16: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 16

Eager Transaction

N nodes – N times as much work

Checking –1000

Savings +500

CD +500

Commit

Checking –1000

Savings +500

CD +500

Commit

Checking –1000

Savings +500

CD +500

Commit

Page 17: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 17

Lazy Transaction

• N nodes – N times as much work• N transactions

Checking –1000Savings +500CD +500Commit

Checking –1000Savings +500CD +500Commit

Checking –1000Savings +500CD +500Commit

Page 18: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 18

Concurrency anomaly in Lazy Replication

• R` - Which version of data should it see?• If committed transaction is ‘wrong’, conflict• Conflicts have to be reconciled

R’R

R```

R R`` R`

time

Page 19: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 19

Scaleup pitfall

• When the nodes divulge hopelessly• System delusion – database is inconsistent and no

obvious way to repair it

R’R

R```

R R`` R`

time

Page 20: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 20

Regulate replica updates

• Group: Any node with a copy can update item– Update anywhere

• Master: Only a master can update the primary copy. All replicas are read-only. All update requests are sent to the master

Page 21: Jan 31, 2001CSCI {4,6}900: Ubiquitous Computing1 Recap. Ubiquitous Computing Vision –The Computer for the Twenty-First Century, Mark Weiser –The Coming

Jan 31, 2001 CSCI {4,6}900: Ubiquitous Computing 21

Replication strategies

Propagation

Vs.

Ownership

Lazy Eager

Group N transactions

N object owners

1 transaction

N object owners

Master N transactions

1 object owner

1 transaction

1 object owner

Two tier N+1 transactions, 1 object ownerTentative locate update, eager base update