110 likes | 204 Views
Live E! Workshop. 2006-06-29 @102A1. Introduction. Theme Content-Based Network (CBN) Aim To Learn about Publish Subscribe Model Introduction to Application Layer Messaging To Provide Materials concerned about Routing Work (today) Construct CBN as a Overlay Network ScenarioⅠ,Ⅱ,Ⅲ,Ⅳ.
E N D
Live E! Workshop 2006-06-29 @102A1
Introduction • Theme • Content-Based Network (CBN) • Aim • To Learn about Publish Subscribe Model • Introduction to Application Layer Messaging • To Provide Materials concerned about Routing • Work (today) • Construct CBN as a Overlay Network • ScenarioⅠ,Ⅱ,Ⅲ,Ⅳ. • Performance Test (if possible).
Review of CBN • CBN consists of : • Subscriber • registers “Predicates”, which he wants to receive. • Publisher • sends message into CBN. • Router • handles messages from publisher to subscriber, depends on the CONTENT of the message CBN Router Publisher Subscriber
Message in the workshop <?xml version=“1.0” ?> <sensor_data> <sensor_id>92a6e710-fdda-4317-a862-bacb5d53475c</sensor_id> <sensor_type>Temperature</sensor_type> <time>2006-05-12 03:12:34</time> <latitude>35.54256</latitude> <longitude>139.2345</longitude> <value>25.7</value> </sensor_data> sensor_id: Universally Unique IDentifier (UUID) sensor_type: Temperature, Humidity, Pressure, RainFall, WindDir, WindSpeed time: Current Time latitude: [-90 ,+90] (“+” means north, “-” means south) longitude:[-180,+180] (“+” means east, “-” means west) value: depends on sensor_type
Examples of Predicates • All the Message /* • Temperature Message /sensor_data[sensor_type=’Temperature’] • Message of North East of the Earth /sensor_data[latitude>=0 and longitude>=0] All (/*) North East of the Earth Temperature
Sensor Machine ScenarioⅠ Each has prefix of 10. Network mask: 255.0.0.0 DB Machine Router Machine 0.1.1 0.1.2 0.3.1 0.3.2 Group C Group A 0.1.3 0.3.3 0.2.3 0.4.3 Group D Group B 0.2.1 0.2.2 0.4.1 0.4.2
ScenarioⅡ 0.1.1 0.1.2 0.3.1 0.3.2 Group C Group A 0.1.3 0.3.3 0.2.3 0.4.3 Group D Group B 0.2.1 0.2.2 0.4.1 0.4.2
ScenarioⅢ 0.1.1 0.1.2 0.3.1 0.3.2 Group C Group A 0.1.3 0.3.3 0.2.3 0.4.3 Group D Group B 0.2.1 0.2.2 0.4.1 0.4.2
ScenarioⅣ 0.1.1 0.1.2 0.3.1 0.3.2 Group C Group A 0.1.3 0.3.3 0.2.3 0.4.3 Group D Group B 0.2.1 0.2.2 0.4.1 0.4.2
Member Allocation • Allocate to each machine • B4, M1, M2, Research Students, Dx in order. • Please superior people take care of junior students. Group C Group A Group D Group B
Implementation and Deployment • From developers: About overview of the sub-system and the way to deploy it. • Virtual Sensor (publisher) • Database (subscriber) • Router