Using TCP in Distributed Simulations

TCP stores application layer payload in buffers, and then segments, concatenates, and reassembles them during transmission, retransmission, and reception. With the oms_sar package you can perform actual packet segmentation and reassembly in simulations. This package should be used instead of the current op_sar package to allow for TCP communications in a distributed simulation environment. The following sections describe the new functionality of the TCP model:

Overview of oms_sar Package

When packets from one simulation need to be communicated to a remote simulation over real hardware, TCP should be capable of segmenting payload to a real bit stream so that it can be reassembled on the receiving end. For this purpose, the TCP model has been modified to manage/store the payload as real bits using the oms_sar buffer package.

  • On the transmitting node, packets are passed from the application layer into the transport layer, where the TCP model segments the data, using oms_sar, and passes it to the lower layers.
  • On the receiving node, packets are passed from the lower layers to the transport layer, where they are reassembled by the TCP model, using oms_sar, and made available to the application layer.

The oms_sar package engaged by the TCP model enables it to send and receive real-world payload (e.g., images, text) when sourced externally. This is in addition to the existing capability to exchange simulated payload, which does not have content. Simulated payload sizes are relevant for studying network effects.