Quickly installing and configuring InternetStack and applications
ns-3 supports a rich set of network applications to easily use in simulations. In this section, you'll learn about the following interesting network applications that are implemented using either TCP or UDP:
- ns-3 UDP client and server applications
- ns-3 UDP echo client and server applications
- ns-3 TCP bulk send and packet sink applications
- ns-3 On-Off TCP/UDP Applications
- ns-3 3GPP HTTP client and server applications
ns-3 UDP client and server applications
In this section, we’ll learn how to simulate and test a UDP client and server application (as shown in Figure 3.8), where the client application sends a maximum N number of packets per second (e.g., 10 packets per second). However, the server application does not send any responses to the client application. To simulate this behavior in ns-3, the UdpServerHelper
and UdpClientHelper
classes are used: