Environment is the surroundings of an MSC. When the MSC is placed in a wider context my using MSC references, the communication with the environment from inside the MSC diagram should match the communication with the MSC reference which references it.

The environment is represented by the diagram frame.

Communication with the environment goes through gates.