Optimizing message ferry scheduling in a DTN