The document discusses extending the ns network simulator. It can be extended in OTcl by modifying code and adding new files without recompiling. It can also be extended in C++ by modifying code, adding new files, and recompiling. The document provides examples of extending ns by adding a new message agent and packet header in both OTcl and C++. It also discusses debugging extensions in OTcl and C++ as well as addressing memory issues.