defined the edge_node, service_node process when various kinds of messages are received.