Research Article
Self-Adapting Routing Overlay Network for Frequently Changing Application Traffic in Content-Based Publish/Subscribe System
Algorithm 1
Predicting path generation algorithm.
predicting path generation algorithm | predicting path generation sponsor: | (1) For each , in counter table | (2) cal traffic cost(notification ) | (3) For each , in counter table | (4) cal traffic cost(subscription ) | (5) For each , in counter table | (6) cal traffic cost(subscription ) | (7) result = | (8) predicting message = cal max traffic cost(result) | (9) If equal(predicting message, notified message) | (10) recv path list += broker | (11) Else | (12) new path list = broker | (13) neighbor = neighbor(predicting message direction) | (14) notify(neighbor, predicting message, traffic cost, path list) | predicting path generation listener: | (1) listen to notified predicting message | (2) store(predicting message, traffic cost, path list) |
|