When dealing with networks with long delay and intermittent connectivity between nodes, data can have trouble getting through to its destination. Delay-tolerant networks can solve such problems by providing reliable data transfer using the new bundling protocol with a store-and-forward technique. For allowing in-depth analysis of this protocol, there is a need to have means for running simulations in different network environments. This thesis describes the implementation of a simulation model for running simulations on delay-tolerant networks in a network simulator. Some simple simulations are run, showing basic characteristics and functionality when using various features of the DTN architecture and the bundling protocol for transmission.