A medical system, comprising: a medical machine; and a gateway device configured to communicate with the medical machine to allow access to a network, the gateway device comprising a data allowance and limitation unit that is configured to limit communication between the medical machine and the network when the data allowance and limitation unit is in an open state, wherein the data allowance and limitation unit is placed in the open state when a plannable system event occurs, and wherein, while in the open state, the data allowance and limitation unit is placed in a closed state when an unplanned event occurs, thereby providing less limited communication between the medical machine and the network compared to the open state.