Skip to main content


Showing posts from February, 2012

OverSim vs. Overlay Weaver

Quick comparison on OverSim & Overlay WeaverOverSimOverlay WeaverSimulatorEmulatorOMNet++ basedStand alone packageC++ based. Some parts of the code is expected to be use for productionJava based. Code is expected to be use for productionGUI for demonstrations - more featuresGUI for demonstrationsNo documentation - High learning curveNo documentation - High learning curveStatistics, visualizing tools, vectors (time series)Some statisticsMany built in overlays - Chord, Pastry, Bamboo, Koorde, Broose, Kademlia, GIA, NICE, NTree, Quon, Vast, & Publish-SubscribeBuilt in overlays - Chord, Kademlia, Koorde, Pastry, Tapestry & FRT-ChordBuilt in routing modes - Recursive, iterative, semi-recursiv, exhaustive-iterativeeBuilt in routing modes - Recursive, iterativeBuilt in applications - DHT, i3, scribe, P2PNS, KBRTestApp, DHTTestApp, & SimpleGameClientDHT & multicastRelatively Fast - Up to 100,000 nodesSeveral thousand.Underlay - simple & INETUnderlay. UDP & TCP on …

Discrete Event Engine - Python

Following Python Discrete Event Engine (DES) can be use to build many discrete event simulators. It supports any data type or object and is capable of handling large event lists (use binary search to sort events). See source code for details.


from DES import Event

events = DES()

#Add set of events
#event time, event type, node/customer/server ID, data
events.addEvent(5.5, 'Type1', 1, 'Test data 1')
events.addEvent(3.3, 'Type2', 2, [1, 2, 3, 4])
events.addEvent(1.5, 'Type3', 3, 567890)
events.addEvent(9.9, 'Type4')
events.addEvent(8.6, 'Type3', 1, 'Test data 5')

#remove event
#Provide at least event time & type
events.removeEvent(3.3, 'Type2', 2)

#Get remaining events in chronological order
event = events.getNextEvent()
print event.startTime, event.eventType
event = events.getNextEvent()
print event.startTime, event.eventType
event = events.getNextEvent()
print event.startTime, event.eventType

#Current simulat…

Yes, I hail starting private universities. But! - A Lecturer's Perspective

We are proud and privileged to teach the cream of the crop. We cherish when those students succeed in their endeavors. Most of us continue to stay in public universities mainly because of the intellectual challenges that these students present even at the expense of many monitory benefits. We hail them not only for their academic success but also for their all round abilities. This is about to change and what can we do about it?
I personally believe expansion of either public or private higher education is a must for any country. Anyone should be able to get the education they desire regardless of their performance in school, work, age differences, geographic location, economic, or ethnic background. Technological advancements are breaking these barriers and enabling everyone to learn at their own phase. Like it or not, it is the way forward. I see far more benefits in starting private universities in Sri Lanka. If a private institution can offer an undergraduate degree under Rs. 2 Mil…