Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and...

27
Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122

Transcript of Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and...

Page 1: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Socially-aware pub-sub system for human networks

Yaxiong ZhaoJie Wu

Department of Computer and Information SciencesTemple UniversityPhiladelphia 19122

Page 2: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 3: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 4: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Background: Why human networks?

• Mobile wireless networks have been a dream– A lot of research

• Ad hoc networks• Central of the past 20 years' research

– Hardly hear any successful stories

• People used to believe that mobile wireless networks should:– Support wireless internet– Be connected at all times– These are difficult and even impossible to realize

Page 5: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Background: Wireless networks that we did not build

• Twitter: send messages to your followers and receive from people you are following– Very popular on mobile devices

• Delay Tolerant networks– Intermittently connected mobile devices/hosts

• How about combine them together?– A network formed by human carried wireless devices– Running social network applications– Do not require Internet-like infrastructure

Page 6: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Pub-sub for human networks

• Pub-sub is a powerful paradigm– Publishers generate messages– Clients consume messages– Brokers forward messages according to their contents

• The benefits of Pub-sub– Anonymity– Loose coupling– Flexibility

• However, it requires complex processing on brokers and does not consider mobility– This paper tackles these problems

Page 7: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 8: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Overview

• Two components– Content representation

• Subscriptions and events• We use old classic methods in the literature

– Pub-sub routing• Social election• Find socially-active users to forward messages

Page 9: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 10: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Traditional content representation

• Subscriptions are represented as conjunctions of multiple attribute constraints– Each attribute has a constraint– Age = [10, 20], Height = [120, 190]– A subscription corresponds to a multi-dimensional

region– An event is a multi-dimensional point

• Excellent expressiveness• High processing and storage costs

– Matching in multi-dimensional space is NP-hard in worst-case

Page 11: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 12: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Pub-sub routing

• Brokers are responsible for forwarding messages

• Who should be brokers?– This is not a problem for traditional pub-sub

systems– However, in Human networks, it is difficult to

find such users

Page 13: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Does DTN routing work?

• The answer is, NO– It breaks the anonymity of pub-sub– Requires a lot of pre-processing

• Impractical in practice• The obtained results do not hold for newly aquirred

users in the network• It is difficult to obtain such data in the first place

Page 14: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Social election

• Human networks are a social network– There will be active users moving around– How to find such users?– Election!

• Each user should be in contact with a certain number of brokers– An interval [lower_bound, upper_bound]– If a user meets brokers less than or lower_bound

• I may stay too far from the crowds

– If the number is larger than upper_bound• I do not need so many brokers

Page 15: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Social election cont'd

• Eventually, the most active users will become brokers– Since they move around in a larger area– They are more likely to become brokers

A B

A is more likely to be elected as broker than B.

Page 16: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Social election cont'd

• A heuristic based on popularity– The popularity of a user is measured as the

number of different users it met in a time window [now – T, now]

– This time window is the same as the one used in the election

– The user should always select those of a higher popularity to be brokers

Page 17: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Pub-sub forwarding based on utility

• A message's utility is defined as the division of the message's matching score and its age– An old message has less utility

• The messages in a brokers buffer are ranked according to their utilities

Page 18: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Pub-sub forwarding cont'd

• Forwarding happens only between brokers

• Always forward highest-ranked messages

• Buffer management– When the buffer is over-flowed– The lowest ranked messages will be purged

from the buffer

Page 19: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Delegation forwarding

• A utility threshold for each message

• Forward it only when the next-hop has a better utility than its own threshold– The threshold raises after a successful

forwarding– Reduce copy numbers

Page 20: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 21: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Experiment setting

• Two mobility models– RWP and SLAW (mimic human mobility)

• Written in C++• 100 users in a 1000*1000m2 region• Communication range 50m• Compare with Random selection of brokers

– A fraction of users are selected as brokers– The ratio is made to be the same as that obtained in

our system

Page 22: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Delivery ratio RWP and delegation forwarding

Page 23: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Delivery ratio SLAW and delegation forwarding

Page 24: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Changing of brokers’ numbers with moving speed (RWP)

Page 25: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Outline

• Background and motivation

• Pub-sub system design– Subscription representation and processing– Pub-sub routing

• Experiment results

• Conclusion

Page 26: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Conclusion

• Flooding in the entire network is too resource consuming

• Finding a small set of brokers is sufficient for efficient message delivery

Page 27: Socially-aware pub-sub system for human networks Yaxiong Zhao Jie Wu Department of Computer and Information Sciences Temple University Philadelphia 19122.

Questions?

• Thanks for listening!