Delay tolerant networks are mobile wireless networks where most of the time there is no end-to-end communication path from the source to the destination. This situation occurs if the network is sparse and partitioned into several areas due to high mobility, low density nodes or when the network extends over long distances. Traditional mobile ad hoc routing protocols are inefficient for these networks since they require the existence of connected end-to-end paths to be able to route any data. To overcome this issue, we propose to improve the two routing protocols: Prophet and the model of "transfer by delegation" (custody transfer). This improvement is to merge these two protocols and combine their advantages. To implement this approach we developed a DTN simulator. Simulation examples are illustrated in the article.