A planning node configured to deploy distributed functions to a distributed control system, DCS, comprising a network and a plurality of communication devices facilitating an Internet of Things, loT, system involving servers and edge computers, the distributed functions being application programs involving one or more of artificial intelligence, Al, functions or control functions facilitating the loT system, the planning node comprising: a processor , configured to: gather requirements of the distributed functions constituting the distributed control system, DCS, information of the network, and information of the plurality of communication devices; and generate a plan for deployment of the distributed functions to corresponding ones of the plurality of communications devices and allocation of network resources to the corresponding ones of the plurality of communication devices based on the gathered requirements, the information of the network and the information of the plurality of communication devices, wherein the processor is configured to generate the plan for deployment of the distributed functions to the corresponding ones of the plurality of communications devices and the allocation of network resources to the corresponding ones of the plurality of communication devices based on the gathered requirements, the information of the network and the information of the plurality of communication devices, as a backup plan that is deployed when a state of the communication devices changes, and wherein the processor is configured to output a mitigated plan of the generated plan which comprises variance of the requirements of the generated plan, so that the mitigated plan can be utilized even if the requirements are not completely satisfied. a processor , configured to: gather requirements of the distributed functions constituting the distributed control system, DCS, information of the network, and information of the plurality of communication devices; and generate a plan for deployment of the distributed functions to corresponding ones of the plurality of communications devices and allocation of network resources to the corresponding ones of the plurality of communication devices based on the gathered requirements, the information of the network and the information of the plurality of communication devices, wherein gather requirements of the distributed functions constituting the distributed control system, DCS, information of the network, and information of the plurality of communication devices; and generate a plan for deployment of the distributed functions to corresponding ones of the plurality of communications devices and allocation of network resources to the corresponding ones of the plurality of communication devices based on the gathered requirements, the information of the network and the information of the plurality of communication devices, wherein the processor is configured to generate the plan for deployment of the distributed functions to the corresponding ones of the plurality of communications devices and the allocation of network resources to the corresponding ones of the plurality of communication devices based on the gathered requirements, the information of the network and the information of the plurality of communication devices, as a backup plan that is deployed when a state of the communication devices changes, and wherein the processor is configured to output a mitigated plan of the generated plan which comprises variance of the requirements of the generated plan, so that the mitigated plan can be utilized even if the requirements are not completely satisfied. <EOS>