External System Domain
An external system is Modeler’s representation of a model whose behavior is determined by code external to Modeler. Such a model can represent anything from a microchip to a model of user behavior patterns. Modeler passes data to the external system and receives data from it with no implicit knowledge of how the external code processed the data. To Modeler, the external system is a black box.
External systems can contain any number of external system (esys) interfaces, which both Modeler and the outside code can access.
The External System Editor gives you a way to build external system definitions (ESDs), specifying the number and kinds of esys interfaces, how to build the cosimulation, and other attributes. When you have designed the ESD, you can save it as a file and then assign that ESD to an esys module using the module’s “esd model” attribute. The ESD serves as an interface between Modeler and the external system, as dictated by the esys module’s process model.
A cosimulation consists of a model created in Modeler, cosimulation code, and external code. The Riverbed model contains one or more ESDs that specify the external systems to be used. The external code can be a complete simulator or a communications mechanism (such as a socket or memory) to other processes. The cosimulation code ties the Modeler simulation kernel and the external code together. Cosimulation code uses the External Simulation Access (ESA) API, as defined in Chapter 1 “External Simulation Access” on page 1.
If the external code is another simulator, the cosimulation can exist in one process, as shown in the following figure.
Figure 207: Single-Process Cosimulation

If however, the external code is a communication mechanism, the cosimulation exists as several processes. An example of this is a High-Level Architecture cosimulation, which uses RTI to communicate between processes, as shown in the following figure.
Figure 208: Multi-Process High-Level Architecture Cosimulation

This section focuses on the process of designing ESDs, with the following topics: