Specification and verification of network algorithms using temporal logic