ABSTRACT Internet of Things applications are based on ubiquitous networks of multiple distributed devices, with limited computing resources and power, capable of collecting and storing data from heterogeneous sources in real-time. To avoid network saturation and delays, new architectures are needed to provide real-time Big Data and data analytics capabilities at the edge of the network, where energy efficiency needs to be considered to ensure a sustainable and effective deployment in areas of human activity. In this research, we present an IoT model based on the principles of Model-Based Systems Engineering. It covers the description of the entire architecture, from IoT devices to the processing units in edge data centres, and includes the location-awareness of user equipment, network, and computing infrastructures to optimise federated resource management in terms of delay and power consumption. We present a framework to assist the dimensioning and the dynamic operation of IoT data stream analytics applications. Abbreviations : ADAS Advanced Driver Assistance System. 20, 21, 24AI Artificial Intelligence. 2, 24ANN Artificial Neural Network. 2, 21AP Access Point. 5, 10, 11, 12, 13, 17, 18, 19, 20CNF Core Network Function. 5DEVS Discrete Event System Specification. 3, 5, 6, 7, 9, 10, 11, 12, 15, 16, 17, 18, 20, 21, 24, 27, 28EDC Edge Data Centre. 2, 3, 5, 6, 9, 10, 12, 13, 20, 21, 22, 23, 25FaaS Function-as-a-Service. 3, 4, 5, 6FDD Frequency Division Duplexing. 11, 18, 19FSPL Free-Space Path Loss. 20GPU Graphics Processing Unit. 2, 21IoT Internet of Things. 2, 3, 4, 5, 6, 14, 19, 23, 24ISP Internet Service Provider. 5, 10M&S Modelling and Simulation. 3, 24M&S&O Modelling, Simulation, and Optimisation. 21MBSE Model-Based Systems Engineering. 3, 4, 5, 24MCS Modulation and Codification Scheme. 12MDC Micro Data Centre. 2ML Machine Learning. 2, 20, 24, 25NR 5G New Radio. 12P2P Point-to-Point. 5, 10PBCH Physical Broadcast Channel. 19PDCCH Physical Downlink Control Channel. 19PDSCH Physical Downlink Shared Channel. 19PSS Primary Synchronisation Signal. 11, 14PU Processing Unit. 7, 9, 21, 22, 23, 24, 25PUCCH Physical Uplink Control Channel. 19PUSCH Physical Uplink Shared Channel. 19QoS Quality of Service. 2, 4, 5, 6, 12, 24RAN Radio Access Network. 5, 10, 13, 16, 17, 20SDN Software-Defined Network. 5, 10SNR Signal-to-Noise Ratio. 11, 12, 14, 17UE User Equipment. 4, 5, 6, 10, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 24, 25WSN Wireless Sensor Network. 4