The Datagram Congestion Control Protocol (DCCP) is a proposal for a new transport protocol. In short, DCCP is an unreliable protocol like UDP, but provides congestion control like TCP. DCCP can be easily extended to support multiple congestion control mechanisms. Currently there are two congestion control mechanisms, TCP-like and TFRC, specified. The goal of this master thesis project was to implement a DCCP module for the Network Simulator (ns) that supports both TCP-like and TFRC congestion control and all features needed for them to function according to the specifications. The resulting module provides a good base for further development and evaluation of the DCCP protocol. Well-defined interfaces enable code r...