Epidemic routing algorithm written in C++ and Tcl for the NS2 environment