Skip to Content
  • Article
  • Open Access

19 October 2026

17 Pages

Queueing-Theory Integrated Cyber-Physical Systems Architecture for Agricultural Automation: Analytical Modeling of Latency, Throughput, and State-Dependent Cloud Escalation

,
and
Department of Biosystems and Agricultural Engineering, Michigan State University, East Lansing, MI 48824, USA
*
Author to whom correspondence should be addressed.

Abstract

Cyber-physical systems for agricultural automation require predictable performance across sensing, communication, edge, fog, and cloud resources, yet buffer sizes and offloading decisions are often selected empirically. This paper presents a five-tier Queueing-Theoretic Cyber-Physical Systems (QI-CPS) architecture with finite-buffer edge processing and state-dependent cloud escalation. The edge is modeled as M/M/1/K, the fog as a First-Come, First-Served (FCFS) M/M/c system, and the cloud as M/G/1. An arrival is admitted when the instantaneous edge occupancy Ne(t) satisfies Ne(t) < K, where K is the total capacity of the finite edge system, and is routed directly to the cloud when Ne(t) = K. The stationary Blocking Probability PB therefore determines the long-run overflow fraction and couples edge capacity to fog and cloud arrival rates. Because finite-capacity overflow and general cloud service do not satisfy classical Jackson product-form assumptions, the tiers are linked through a route-conditioned analytical decomposition and evaluated using end-to-end Discrete-Event Simulation (DES). The experiment covers K = 1–15, edge utilization ρe = 0.5–0.9, and c = 1, 2, 4, and 8 fog servers, with five independent replications, 3000 warm-up arrivals, 30,000 measured arrivals per replication, and 95% confidence intervals. For ρe = 0.8 and c = 4, K = 1 overloads the cloud; the analytical point minimum occurs at K = 4, while K = 4-5 form a near-optimal DES suitable range (121.2 ± 2.7 and 120.7 ± 3.2 ms, respectively). The results show that suitable edge capacity depends on workload and fog capacity and must satisfy both fog and cloud stability constraints. QI-CPS therefore provides a transparent method for screening feasible buffer capacities and quantifying the trade-off between local queueing and cloud overflow.

1. Introduction

Global food demand is expected to grow by roughly 50% by 2050, even as arable land shrinks and climate variability makes farming less predictable [1]. Precision agriculture, sometimes called Agriculture 4.0, addresses this pressure by deploying cyber-physical systems to work for variable-rate input application, real-time crop health monitoring, and autonomous field operations at a resolution no human crew could match [2,3]. Here, a cyber-physical system tightly couples sensing, computation, communication, and physical actuation in a closed loop so software decisions can act on the physical world in real time [4]. Existing agricultural deployments already span a wide range of applications: soil-moisture-driven smart irrigation [5], CNN-based plant disease detection reporting classification accuracies as high as 99% [6,7], GPS-guided robotic weeding and harvesting [8], and UAV-based multispectral crop surveillance [9]. Taken together, these systems mark a shift from crop production as a labor-intensive craft toward a data-driven, sensor-mediated discipline, in which the underlying computing infrastructure is now as consequential to yield and resource efficiency as the agronomic decisions it supports.
Despite this progress, agricultural CPS architectures remain largely empirical. Tier boundaries, buffer capacities, and offloading rules are commonly selected through trial-and-error tuning or isolated simulation rather than through a model that exposes how local congestion changes downstream load [10]. This matters for time-sensitive functions such as irrigation cut-off, pesticide dosing, and robotic collision avoidance, where delayed computation can cause crop damage, chemical overapplication, or safety incidents. Queueing models have been used extensively in edge, fog, cloud, and IoT systems [11,12,13], but directly transferring classical product-form assumptions is inappropriate when a finite edge buffer creates state-dependent overflow and the cloud has general service times. The need is therefore not simply to combine familiar queue formulas but to link heterogeneous tiers using explicit routing and traffic equations, then test the approximation at the system level.
Queueing theory, originating in Erlang’s traffic analysis [14] and developed systematically by Kleinrock [15], provides a mature language for utilization, waiting time, blocking, and stability. M/M/1, M/M/c, and M/G/1 models are established in queueing theory [14,15,16] and are widely applied in cloud provisioning and mobile edge computing [17,18,19]. Agricultural applications introduce additional constraints, including intermittent connectivity, seasonal and event-driven traffic, heterogeneous inference workloads, and cost-sensitive hardware. These conditions motivate an analytically transparent but simulation-checked framework rather than an exact product-form claim. The present study therefore uses canonical tier models as a decomposition, couples them through state-dependent branch flows, and evaluates the resulting end-to-end approximation with DES.
This paper makes four contributions:
  • A five-tier QI-CPS architecture: Sensing, communication, edge, fog, and cloud resources are separated so that each computational tier can be modeled and provisioned according to its service characteristics.
  • A flow-coupled analytical framework: Explicit branch equations link stationary edge blocking to fog and cloud arrival rates, and a route-conditioned expression assigns each task only the delays of the route it follows.
  • A state-dependent cloud-escalation rule: Instantaneous occupancy Ne(t), rather than stationary PB or a CPU threshold, determines whether an arrival is admitted to edge-fog processing or sent directly to the cloud.
  • End-to-end simulation and stability-constrained design: A complete DES evaluates 300 combinations of K, ρe, and c with independent replications and 95% confidence intervals, while explicit fog and cloud stability conditions define the feasible design region and reveal workload-dependent optimal capacities.
The remainder of the paper is organized as follows. Section 2 reviews relevant CPS, queueing, and agricultural-computing studies. Section 3 defines the five-tier architecture and its state-dependent routing topology. Section 4 develops the tier models, traffic equations, route-conditioned latency, and downstream stability constraints. Section 5 describes the end-to-end DES. Section 6 presents the results. Section 7 discusses their implications and limitations, and Section 8 concludes the study.

3. Proposed QI-CPS Architecture

3.1. Overall Architecture and Routing Topology

The QI-CPS architecture separates sensing, communication, edge, fog, and cloud functions and applies state-dependent routing at the finite-capacity edge tier. Sensor tasks first incur sensing and communication delays and then attempt admission to an edge M/M/1/K system. An arrival that observes fewer than K tasks is admitted, receives edge service, and subsequently enters the fog M/M/c tier. An arrival that observes K tasks is blocked from the edge and routed directly to the cloud M/G/1 tier. The overflow route therefore bypasses both edge service and fog processing. The analytical model and discrete-event simulation (DES) implement this topology consistently.
QI-CPS is formulated as a flow-coupled analytical decomposition rather than a classical open Jackson network [30]. Finite-capacity blocking produces state-dependent routing; the overflow stream is generally not Poisson, and the cloud has a general service-time distribution. Tier-level queueing models are therefore linked through explicit mean-flow equations, and the accuracy of the resulting end-to-end expression is evaluated using DES. The five functional tiers are: (i) sensing, with deterministic mean sensing delay Ds; (ii) communication, with route-dependent transmission delay; (iii) finite-buffer edge computing modeled as M/M/1/K; (iv) pooled fog computing modeled as FCFS M/M/c; and (v) cloud processing modeled as FCFS M/G/1. The fog tier follows the First-Come, First-Served (FCFS) discipline assumed by the Erlang-C formulation. Priority and QoS-differentiated scheduling are outside the scope of the analytical model. The resulting five-tier routing topology is illustrated in Figure 1.
Figure 1. Five-tier QI-CPS routing topology.

3.2. Edge and Fog Processing

The edge tier represents a field gateway executing time-sensitive inference and sensor fusion tasks. Its service rate is μe, and its capacity K includes the task in service. Finite capacity is essential because embedded agricultural gateways have bounded memory and compute resources. The fog tier aggregates the accepted output of one representative edge stream and supplies c statistically identical parallel servers, each with rate μf. Pooling provides additional capacity without changing the state-dependent decision made at the edge.

3.3. Cloud Processing

In the evaluated topology, the cloud receives only edge overflow traffic. Cloud service times are Gamma-distributed in the DES and are represented analytically by their first two moments in an M/G/1 model. This accommodates service-time variability associated with heterogeneous workloads such as model updates, batch analytics, and complex image processing jobs [31]. The baseline experiment includes no independent background cloud workload; if present, add such traffic directly to the cloud flow equation.

3.4. State-Dependent Cloud-Escalation Rule

Let Ne(t) be the number of tasks in the edge system immediately before an arrival at time t. The instantaneous routing decision R(t) is based on occupancy, not on a probability threshold:
R t = edge → fog , N e t < K , cloud , N e t = K
where R(t) is the route assigned to the arrival at time t, Ne(t) is the instantaneous edge occupancy immediately before that arrival, and K is the total edge-system capacity, including any task in service.
Equation (1) is formulated in this study from the admission rule of a finite-capacity queue: an arrival is admitted when space is available; otherwise, it follows the cloud-overflow branch. The stationary blocking probability PB = Pr{Ne = K} is the long-run fraction of Poisson arrivals expected to encounter a full edge system under the Poisson Arrivals See Time Averages (PASTA) property. It is therefore an outcome of the finite-buffer model, not an instantaneous control variable. The term blocking-aware escalation distinguishes this rule from fixed probabilistic offloading. Increasing K reduces escalation frequency but can increase the sojourn time of admitted tasks; reducing K shortens the local queue but can overload the cloud. Buffer selection must therefore consider latency and downstream stability jointly.

4. Mathematical Framework

4.1. Assumptions and Scope

A representative gateway receives a stationary Poisson task stream of rate λe. Edge and fog service times are independent and exponentially distributed with rates μe and μf, respectively. The fog contains c identical FCFS servers. Cloud service times are independent with mean 1 μ c and coefficient of variation cv. The additive terms represent sensing and communication delays Ds, Dt, and Dec, where Dt applies to the admitted edge-fog route and Dec applies to direct edge-cloud escalation. Feedback, task duplication, retries, and independent cloud traffic are excluded from the baseline analysis. All reported steady-state analytical delays require the corresponding downstream stability conditions. Table 2 shows other symbols and definitions used in the analytical framework.
Table 2. Symbols and definitions used in the analytical framework.

4.2. Edge Tier: M/M/1/K

For the M/M/1/K edge model [14], the offered edge utilization is defined as ρe = λ e μ e , where, λe and μe denote the edge arrival rate and the edge service rate, respectively. The stationary occupancy probabilities are as follows
p n = ( 1 − ρ e ) ρ e n 1 − ρ e K = 1 , ρ e ≠ 1 1 K + 1 , ρ e = 1   n = 0 , 1 … , K
where pn is the stationary probability that the edge contains n tasks, n is the occupancy state, and K is the total edge capacity.
The stationary blocking probability is as follows
P B K = p K = 1 − ρ e ρ e K 1 − ρ e K + 1
where PB(K) is the stationary blocking probability, and pK is the probability that an arrival observes the full state K. Under Poisson arrivals, PASTA lets us interpret this full-state probability as the long-run blocked fraction [14].
The mean number of tasks at the edge and the admitted edge rate are as follows
L e = ∑ n = 0 K n p n .
λe,a = λe(1 − PB)
where Le is the mean number of tasks in the edge system and λe,a is the mean admitted arrival rate; all other symbols retain the definitions given above.
Because blocked arrivals do not enter the edge system, Little’s law applied to admitted tasks gives
W e = L e λ e 1 − P B
where We is the mean edge sojourn time of an admitted task. Equation (6) follows Little’s law applied to the admitted stream [14].

4.3. Branch Traffic Equations

Every admitted edge task proceeds to the fog, whereas every blocked arrival proceeds directly to the cloud. The mean branch rates are therefore
λf = λe(1 − PB).
λc = λePB
where λf is the mean arrival rate to the fog, and λc is the mean overflow rate to the cloud. This study derives Equations (7) and (8) by applying flow conservation to the two mutually exclusive outcomes in Equation (1).
If an independent background cloud workload λc,b is introduced, the total cloud rate becomes λc,tot = λePB + λc,b. The present numerical study sets λc,b = 0 to isolate the consequences of edge overflow.

4.4. Fog Tier: FCFS M/M/c

For the FCFS M/M/c fog model [14,15], let af = λ f μ f and ρf = λ f cμ f , where af is the offered fog load, ρf is the fog utilization. For ρf < 1, the Erlang-C waiting probability and mean fog sojourn time are
C c , a f = a f c c ! 1 − ρ f ∑ n = 0 c − 1 a f n n ! + a f c c ! 1 − ρ f .
W f = 1 μ f + C c , a f c μ f − λ f
where c is the number of identical fog servers, μf is the service rate of each fog server, C (c, af) is the Erlang-C probability that an arrival waits, and Wf is the mean fog sojourn time.
Equations (9) and (10) are the standard FCFS M/M/c results [14,15].

4.5. Cloud Tier: M/G/1

The cloud utilization depends on K through the overflow probability, with ρc(K) = λ ( k ) μ c for ρc < 1, the Pollaczek-Khinchine M/G/1 result [14,15] gives
W c K = 1 μ c + λ c K E   S c 2 2 1 − ρ c K .
E   S c 2 = 1 + c v 2 μ c 2
where Wc(K) is the mean cloud sojourn time, ρc(K) = λ ( k ) μ c is cloud utilization, μc is the reciprocal of the mean cloud service time, Sc is the cloud service time, E[Sc2] is its second moment, and cv is its coefficient of variation.
Equations (11) and (12) follow the Pollaczek-Khinchine M/G/1 result and the second-moment identity E[Sc2] = Var (Sc) + E[Sc]2 [14,15]. Thus, cloud delay is not a fixed escalation penalty. A smaller K increases PB, which increases λc and can sharply increase Wc as ρc approaches one.

4.6. Route Conditioned End-to-End Latency

An admitted task follows sensing → communication → edge → fog, whereas a blocked task follows sensing → direct edge-cloud communication → cloud. The respective conditional mean route delays are as follows
TA = Ds + Dt + We + Wf.
TB = Ds + Dec + Wc
where TA is the conditional mean end-to-end latency of an admitted task, TB is the conditional mean end-to-end latency of a blocked task, Ds is the mean sensing delay, Dt is the communication delay on the admitted edge-fog route, Dec is the direct edge-cloud communication delay, and We, Wf, and Wc are the corresponding mean tier sojourn times.
Equations (13) and (14) are formulated from the two routes defined in Equation (1). The mean end-to-end latency across all arrivals is the route-probability-weighted quantity
E[T] = (1 − PB)TA + PBTB.
E[T] = Ds + (1 − PB)(Dt + We + Wf) + PB(Dec + Wc)
where E[T] is the mean end-to-end latency over all arrivals.
Equations (15) and (16) are derived in this study by applying the law of total expectation to admitted and blocked routes, with probabilities 1 − PB and PB, respectively. This composition assigns edge and fog delays only to admitted tasks and cloud delay only to blocked tasks. It also captures the coupling PB(K) → λc(K) → Wc(K). Because downstream arrival processes generated by finite-buffer routing need not be Poisson, this expression is treated as an engineering approximation based on mean-flow decomposition rather than an exact product-form solution.

4.7. Stability and Buffer-Selection Conditions

Although the finite-edge system is positive recurrent for any finite λe and μe, finite steady-state delays at the downstream queues require
λe[1 − PB(K)] < cμf.
λePB(K) < μc
where the left side of Equation (17) is the fog arrival rate, and cμf is the aggregate fog service capacity, while the left side of Equation (18) is the cloud arrival rate, and μc is the cloud service capacity.
These inequalities apply the standard condition that the arrival rate must remain below service capacity for a stable downstream queue [14,15]. A feasible buffer capacity must satisfy both inequalities. The design problem is therefore
K * = arg   min K ∈ { 1 , … , 15 } λ e 1 − P B K < c μ f λ e P B K < μ c   E T K
where K* is the latency-minimizing feasible edge capacity among the tested integer values K = 1, …, 15. Equation (19) defines the design criterion proposed in this study: minimizing route-conditioned mean latency subject to the downstream stability conditions established in (17) and (18).

4.8. Performance Measures

The study reports PB, accepted and overflow rates, fog and cloud utilizations, tier sojourn times, route-conditioned mean end-to-end latency, 95% confidence intervals for DES estimates, the analytical DES percentage difference, the feasible stability region, and the analytical and simulated minimizing capacities.

5. Simulation Methodology

End-to-End Discrete-Event Simulation

A custom event-driven DES reproduces the complete routing topology. Poisson arrivals attempt edge admission. Accepted tasks receive exponential edge service and, at edge completion, join the common FCFS queue feeding c exponential fog servers. Blocked tasks bypass the edge and fog and immediately join a single FCFS cloud server with Gamma-distributed service time. The Gamma shape and scale are selected to produce a mean of 1 μ c and a coefficient of variation cv = 1.3. Constant sensing and route-appropriate communication delays are added to each task’s completion time. The experiment covers K = 1, …, 15, ρe = 0.5, 0.6, 0.7, 0.8, 0.9, and c = 1, 2, 4, 8, for 300 configurations. Each configuration uses five independent replications. The first 3000 generated arrivals are treated as warm-up observations, followed by 30,000 measured arrivals per replication. Reproducible deterministic seeds are assigned by configuration and replication. Means are computed across replications, and the 95% confidence intervals use 1.96 times the replication standard error. Configurations violating either downstream stability condition are labeled unstable and excluded from steady-state optimization rather than summarized using finite-run transient delays. The final analytical and DES experiment settings are summarized in Table 3.
Table 3. Final analytical and DES experiment settings.

6. Results

6.1. Blocking and Coupled Downstream Load

Figure 2 shows that PB decreases monotonically with K but increases with offered edge utilization. This local improvement does not imply monotonic system improvement: reducing PB transfers traffic from the cloud branch to the fog branch and simultaneously changes the conditional edge delay. Consequently, the same capacity adjustment can relieve one downstream tier while loading the other.
Figure 2. Edge blocking probability versus capacity K for the tested offered edge utilizations.

6.2. Analytical and DES Capacity Sensitivity

Figure 3 and Figure 4 show the analytical and DES latency surfaces, respectively, for c = 4. Both exhibit a low-latency interior region among stable capacities. Small K can overload the cloud through overflow; increasing K keeps more tasks at the edge and shifts additional completed traffic to the fog.
Figure 3. Analytical route-conditioned mean end-to-end latency versus edge capacity for c = 4.
Figure 4. End-to-end DES mean latency and 95% confidence intervals versus edge capacity for c = 4.
The analytical surface is a mean-flow approximation, whereas the DES surface represents the implemented state-dependent event process. Differences between neighboring minima should therefore be interpreted alongside replication uncertainty.

6.3. Analytical and DES Capacity Sensitivity at the Baseline Operating Point

At ρe = 0.8 and c = 4, Figure 5 and Table 4 compare analytical and DES mean latency. K = 1 is cloud-unstable (PB = 0.444, λc ≈ 21.33 tasks/s, ρc ≈ 1.42). The analytical point estimate is lowest at K = 4 (108.9 ms). The DES point estimate is lowest at K = 5 (120.7 ± 3.2 ms), while K = 4 gives 121.2 ± 2.7 ms. Their 0.5 ms difference is small relative to the reported 95% confidence interval half-widths. These separate intervals do not constitute a paired comparison, and their overlap alone is not a formal significance test. The manuscript does not report the five replication-level paired differences, so the data do not establish a unique DES-optimal capacity. K = 4–5 is a near-optimal candidate range for this operating point; a direct replicated comparison would be needed to distinguish the two statistically.
Figure 5. Analytical and DES capacity sensitivity at ρe = 0.8 and c = 4.
Table 4. Capacity sensitivity at ρe = 0.8 and c = 4.
The analytical and simulated point minima fall at neighboring capacities. The decomposition treats λc = λePB as an effective mean input rate in an M/G/1 formula; actual overflow epochs in DES retain dependence on the full-buffer state. Fog input likewise reflects edge admission and departures. The two approaches thus identify a similar candidate region, while their numerical differences illustrate approximation error. The available summary statistics do not support a precise ordering of K = 4 and K = 5.
The difference between K* analytical and K* DES is methodologically meaningful. The decomposition uses λc = λePB as an effective mean rate and applies the M/G/1 formula as though the overflow input were Poisson. In the DES, overflow epochs are generated by the actual full-buffer state and retain temporal dependence. Departures into fog are likewise shaped by edge service and admission. The analytical formulation therefore identifies a useful design neighborhood, while the DES resolves the integrated operational optimum. The result does not support an exact Jackson product-form interpretation.

6.4. Workload- and Fog-Dependent Optimal Capacity

Figure 6 plots the capacity with the smallest observed DES mean in each tested configuration. These are point-estimate minimizers, not statistically established unique optima. As offered utilization increases, larger buffers often reduce cloud overflow; the fog capacity determines whether this additional admitted load remains stable. Four and eight fog servers often yield neighboring candidate capacities, and several higher-load cases with c = 1 have no feasible steady-state capacity. The plotted capacities should guide shortlisting; close alternatives require direct replicated comparisons.
Figure 6. Capacity with the smallest observed DES mean for each tested workload and fog-server configuration.

6.5. Minimum Achievable Latency and Fog Provisioning

For each workload and fog configuration, Figure 7 shows the minimum simulated latency attainable for K = 1, …, 15. Moving from one to multiple fog servers expands the feasible region and reduces latency. Four fog servers provide a robust operating region across the tested loads; eight servers offer a smaller incremental benefit because the edge and cloud branches then account for a larger share of system latency. This result supports balanced provisioning rather than unbounded fog scaling.
Figure 7. Minimum stable DES mean end-to-end latency versus offered edge utilization for c = 1, 2, 4, and 8, with 95% confidence intervals.

6.6. Stability-Constrained Design Region

Figure 8 reports the smallest K satisfying both downstream stability conditions. The cloud condition places a lower bound on K because smaller buffers create more overflow. The fog condition can place an upper bound on K when c is small because admitted traffic increases as blocking falls. These coupled constraints explain why a locally attractive edge setting can be infeasible for the system as a whole. Table 5 summarizes the analytical and DES point-estimate minimizing capacities across workloads and fog configurations.
Figure 8. Minimum edge capacity satisfying both λe(1 − PB) < cμf and λePB < μc.
Table 5. Analytical and DES point-estimate minimizing capacities across workloads and fog configurations.

7. Discussion

7.1. Analytical Approximation Versus Integrated DES

The tier formulas expose causal design relationships and can be evaluated rapidly. Agreement with isolated canonical queues, however, is insufficient to establish the performance of the complete architecture. The end-to-end DES provides a system-level evaluation because it implements the same admission state, branch routing, service distributions, and resource contention without replacing overflow traffic with an independent Poisson stream. The difference observed near the optimum quantifies the practical effect of mean-flow decomposition and defines the level of analytical accuracy available for capacity screening.
For well-provisioned fog cases, the analytical curves can guide screening. Final capacity selection should compare nearby alternatives using replication-level paired differences or additional independent replications, especially when estimated differences are small. Measured arrival burstiness, network delays, and service-time distributions can also shift the candidate region.

7.2. Implications for Agricultural CPS Design

Three implications follow. First, edge blocking is a routing outcome with system-wide consequences, not merely a local loss metric. Second, more edge buffering is not always better: larger K lowers cloud overflow but increases local retention and sends more completed traffic toward fog. Third, fog and cloud must be sized together. A deployment that tunes K using edge latency alone can move congestion downstream and may cross a stability boundary.
For resource-constrained agricultural deployments, the model provides a practical sequence: estimate λe and μe from gateway telemetry; evaluate PB(K); reject capacities that violate either downstream stability inequality; use the analytical decomposition to shortlist candidate capacities; and confirm the shortlist with DES driven by measured traffic and service distributions. This sequence is more robust than applying a fixed cloud-delay penalty or selecting a single universal K.

7.3. Limitations

The baseline uses stationary Poisson input, exponential edge and fog service, a single representative gateway flow, constant mean communication delays, and no independent cloud workload. The warm-up is specified by arrival count rather than by a formal transient-deletion diagnostic. Replication-based confidence intervals quantify stochastic error but not model-form uncertainty. The analytical branch models use effective mean arrival rates even though overflow and departure streams can be non-Poisson. Finally, the parameter values are design-study settings rather than measurements from a deployed farm, so the reported optima should not be transferred unchanged to another workload.

7.4. Future Validation

Future work should replace the baseline source with bursty Markov-modulated or empirical agricultural traces; estimate service distributions from edge accelerators and cloud jobs; include route-specific stochastic communication delay, failures, retries, and background cloud traffic; and extend the topology to multiple gateways sharing fog capacity. Priority scheduling and learning-based admission control should be evaluated in DES with queueing models appropriate to those disciplines. Releasing the simulation code, configuration data, and seeds will also support independent reproduction and comparison.

8. Conclusions

This paper presented QI-CPS, a five-tier queueing-theoretic architecture for agricultural automation with finite-buffer edge processing and state-dependent cloud escalation. We coupled canonical edge, fog, and cloud queues through explicit branch-flow equations and a route-conditioned analytical decomposition, then evaluated the results with an integrated DES. Buffer selection must satisfy both fog and cloud stability constraints. At ρe = 0.8 and c = 4, K = 1 overloads the cloud; the analytical point estimate is lowest at K = 4, while DES produces similar means at K = 4 and K = 5 (121.2 ± 2.7 and 120.7 ± 3.2 ms, respectively). The reported summary intervals cannot establish a unique DES optimum, so K = 4–5 is the near-optimal capacity range. Across workloads and fog capacities, the point-estimate minimizing capacity changes, and some configurations lack a feasible steady state. The framework supports stability screening and simulation-based comparison of neighboring designs, while future work will focus on validating its performance using field traces.

Author Contributions

D.T.C.: Conceptualizing, writing of the original draft, investigation, and data analysis; P.C.M.: Conceptualization, review of manuscript, data analysis, and validation; D.D.U.: Conceptualization, validation, review of the manuscript, and supervision. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

No empirical field dataset was used. Section 4 and Section 5 and Table 3 report the analytical parameters, simulation design, routing rules, stability conditions, replication protocol, and random-seed rule required to reproduce the study. The simulation source code is available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
5G NRFifth-Generation New Radio
CNNConvolutional Neural Network
CPSCyber-Physical System
CPUCentral Processing Unit
cvCoefficient of Variation (service-time)
DESDiscrete-Event Simulation
GPSGlobal Positioning System
IoTInternet of Things
LoRaWANLong Range Wide Area Network
LPWANLow-Power Wide-Area Network
MAPEMean Absolute Percentage Error
MECMobile Edge Computing
NB-IoTNarrowband Internet of Things
P-K (formula)Pollaczek-Khinchine formula
QI-CPSQueueing-Theory Integrated Cyber-Physical System
QoSQuality of Service
UAVUnmanned Aerial Vehicle
URLLCUltra-Reliable Low-Latency Communication
WANWide Area Network
Wi-FiWireless local-area networking standard (IEEE 802.11)
WSNWireless Sensor Network

References

  1. FAO. The Future of Food and Agriculture: Trends and Challenges; Food and Agriculture Organization of the United Nations: Rome, Italy, 2017. [Google Scholar]
  2. Wolfert, S.; Ge, L.; Verdouw, C.; Bogaardt, M.-J. Big Data in Smart Farming—A review. Agric. Syst. 2017, 153, 69–80. [Google Scholar] [CrossRef] [Scilit]
  3. Verdouw, C.N.; Wolfert, J.; Beulens, A.J.M.; Rialland, A. Virtualization of food supply chains with the internet of things. J. Food Eng. 2016, 176, 128–136. [Google Scholar] [CrossRef] [Scilit]
  4. Lee, E.A. Cyber Physical Systems: Design Challenges. In Proceedings of the 2008 11th IEEE International Symposium on Object and Component-Oriented Real-Time Distributed Computing (ISORC), Orlando, FL, USA, 5–7 May 2008; pp. 363–369. [Google Scholar] [CrossRef] [Scilit]
  5. Gutierrez, J.; Villa-Medina, J.F.; Nieto-Garibay, A.; Porta-Gandara, M.A. Automated Irrigation System Using a Wireless Sensor Network and GPRS Module. IEEE Trans. Instrum. Meas. 2014, 63, 166–176. [Google Scholar] [CrossRef] [Scilit]
  6. Ferentinos, K.P. Deep learning models for plant disease detection and diagnosis. Comput. Electron. Agric. 2018, 145, 311–318. [Google Scholar] [CrossRef] [Scilit]
  7. Kamilaris, A.; Prenafeta-Boldú, F.X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef] [Scilit]
  8. Bac, C.W.; Van Henten, E.J.; Hemming, J.; Edan, Y. Harvesting Robots for High-value Crops: State-of-the-art Review and Challenges Ahead. J. Field Robot. 2014, 31, 888–911. [Google Scholar] [CrossRef] [Scilit]
  9. Zhang, C.; Kovacs, J.M. The application of small unmanned aerial systems for precision agriculture: A review. Precis. Agric. 2012, 13, 693–712. [Google Scholar] [CrossRef] [Scilit]
  10. Boursianis, A.D.; Papadopoulou, M.S.; Diamantoulakis, P.; Liopa-Tsakalidi, A.; Barouchas, P.; Salahas, G.; Karagiannidis, G.; Wan, S.; Goudos, S.K. Internet of Things (IoT) and Agricultural Unmanned Aerial Vehicles (UAVs) in smart farming: A comprehensive review. Internet Things 2022, 18, 100187. [Google Scholar] [CrossRef] [Scilit]
  11. Deng, R.; Lu, R.; Lai, C.; Luan, T.H.; Liang, H. Optimal Workload Allocation in Fog-Cloud Computing Towards Balanced Delay and Power Consumption. IEEE Internet Things J. 2016, 3, 1171–1181. [Google Scholar] [CrossRef] [Scilit]
  12. Fan, Q.; Ansari, N. Application Aware Workload Allocation for Edge Computing-Based IoT. IEEE Internet Things J. 2018, 5, 2146–2153. [Google Scholar] [CrossRef] [Scilit]
  13. Erlang, A.K. Solution of some problems in the theory of probabilities of significance in automatic telephone exchanges. Post. Off. Electr. Eng. J. 1917, 10, 189–197. [Google Scholar]
  14. Kleinrock, L. Queueing Systems; Wiley: New York, NY, USA, 1975; Volume 1: Theory. [Google Scholar]
  15. Kleinrock, L. Queueing Systems; Wiley: New York, NY, USA, 1976; Volume 2: Computer Applications. [Google Scholar]
  16. Gross, D.; Shortle, J.F.; Thompson, J.M.; Harris, C.M. Fundamentals of Queueing Theory, 4th ed.; Wiley-Interscience: Hoboken, NJ, USA, 2008. [Google Scholar] [CrossRef] [Scilit]
  17. Ghosh, R.; Longo, F.; Naik, V.K.; Trivedi, K.S. Modeling and performance analysis of large scale IaaS Clouds. Future Gener. Comput. Syst. 2013, 29, 1216–1234. [Google Scholar] [CrossRef] [Scilit]
  18. Mao, Y.; You, C.; Zhang, J.; Huang, K.; Letaief, K.B. A Survey on Mobile Edge Computing: The Communication Perspective. IEEE Commun. Surv. Tutor. 2017, 19, 2322–2358. [Google Scholar] [CrossRef] [Scilit]
  19. Mach, P.; Becvar, Z. Mobile Edge Computing: A Survey on Architecture and Computation Offloading. IEEE Commun. Surv. Tutor. 2017, 19, 1628–1656. [Google Scholar] [CrossRef] [Scilit]
  20. Shi, W.; Cao, J.; Zhang, Q.; Li, Y.; Xu, L. Edge Computing: Vision and Challenges. IEEE Internet Things J. 2016, 3, 637–646. [Google Scholar] [CrossRef] [Scilit]
  21. Bonomi, F.; Milito, R.; Zhu, J.; Addepalli, S. Fog computing and its role in the internet of things. In Proceedings of the First Edition of the MCC Workshop on Mobile Cloud Computing, Helsinki Finland, 17 August 2012; pp. 13–16. [Google Scholar] [CrossRef] [Scilit]
  22. Botta, A.; De Donato, W.; Persico, V.; Pescapé, A. Integration of Cloud computing and Internet of Things: A survey. Future Gener. Comput. Syst. 2016, 56, 684–700. [Google Scholar] [CrossRef] [Scilit]
  23. Chen, X.; Jiao, L.; Li, W.; Fu, X. Efficient Multi-User Computation Offloading for Mobile-Edge Cloud Computing. IEEE/ACM Trans. Netw. 2015, 24, 2795–2808. [Google Scholar] [CrossRef] [Scilit]
  24. Tzounis, A.; Katsoulas, N.; Bartzanas, T.; Kittas, C. Internet of Things in agriculture, recent advances and future challenges. Biosyst. Eng. 2017, 164, 31–48. [Google Scholar] [CrossRef] [Scilit]
  25. Muangprathub, J.; Boonnam, N.; Kajornkasirat, S.; Lekbangpong, N.; Wanichsombat, A.; Nillaor, P. IoT and agriculture data analysis for smart farm. Comput. Electron. Agric. 2019, 156, 467–474. [Google Scholar] [CrossRef] [Scilit]
  26. Elijah, O.; Rahman, T.A.; Orikumhi, I.; Leow, C.Y.; Hindia, M.H.D.N. An Overview of Internet of Things (IoT) and Data Analytics in Agriculture: Benefits and Challenges. IEEE Internet Things J. 2018, 5, 3758–3773. [Google Scholar] [CrossRef] [Scilit]
  27. Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef] [Scilit]
  28. Ray, P.P. Internet of things for smart agriculture: Technologies, practices and future direction. AIS 2017, 9, 395–420. [Google Scholar] [CrossRef] [Scilit]
  29. Bechar, A.; Vigneault, C. Agricultural robots for field operations: Concepts and components. Biosyst. Eng. 2016, 149, 94–111. [Google Scholar] [CrossRef] [Scilit]
  30. Jackson, J.R. Networks of Waiting Lines. Oper. Res. 1957, 5, 518–521. [Google Scholar] [CrossRef] [Scilit]
  31. Rana, S.; Hensel, O.; Nasirahmadi, A. Generative semantic reconstruction for annotation-ready vegetation priors in spectrally heterogeneous imagery. MethodsX 2026, 16, 103967. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.