Error resilient data transport in sensor network applications: a generic perspective