Preprint
Article

This version is not peer-reviewed.

NP-Hard Joint Latency and Security Optimization for Task Offloading in IoT-Enabled Vehicular Networks

Submitted:

24 July 2026

Posted:

27 July 2026

You are already at the latest version

Abstract
Task offloading in vehicular edge networks must satisfy strict latency limits. At the same time, it must resist security threats such as replay attacks. Existing offloading models treat cryptographic settings as fixed, separate from the scheduling decision. This is a real gap, and it exists in part because jointly choosing the best node and the best cryptographic curve for each task is computationally hard. We prove that this joint problem reduces to a generalized assignment problem, a well-known NP-hard problem, once curve-selection variables are fixed. Because of this hardness, we design a polynomial-time greedy heuristic as a practical approximation. Our model treats Elliptic Curve Cryptography (ECC) curve selection as an adaptive decision, and jointly optimizes it together with latency, CPU load, and bandwidth, using one unified scoring function. Results: Task success rate (TSR) with dynamic ECC is within 0.3 percentage points of latency-only scheduling (85.27% vs. 85.58%), while replay success falls from 100% to 8.93%, more than a 10-fold reduction. A single fixed curve that never refreshes (static ECC) performs far worse on both counts (40.29% TSR, 84.54% replay success), since it cannot serve tasks needing stronger security and accumulates staleness without bound. Measured cryptographic overhead is 0.34–1.19 ms per task depending on curve, and the heuristic runs within roughly 2.34% of an exact ILP bound at full scale. These results, from an openly available Python simulation, confirm real-time feasibility for IoT-enabled vehicular deployments.
Keywords: 
;  ;  ;  ;  

1. Introduction

The Internet of Things (IoT) connects many devices that generate large amounts of data. A large and fast-growing part of the IoT is the Internet of Vehicles (IoV). Connected vehicles generate large-scale data streams. These streams need low-latency processing and secure communication. Task offloading to Roadside Units (RSUs) and Edge Nodes (ENs) helps to address resource scarcity and reduce latency [1].
Task offloading and cryptographic security are usually studied as two separate problems. Most offloading strategies pick the best node for a task using latency and resource metrics [2]. They do not change the cryptographic settings during scheduling. They assume all tasks need the same fixed level of security. In a fast-changing vehicular IoT environment, this separation can cause two problems: either the system spends too much time on cryptography, or it does not protect tasks enough. Elliptic Curve Cryptography (ECC) gives strong security with a small computational cost, which makes it a good fit for resource-constrained vehicular networks [3,4,5,6,7]. However, most ECC systems use one fixed curve for every task [8]. A fixed curve can be refreshed for freshness, but it is still not linked to the scheduling decision.
Choosing the best combination of task-to-node assignment and cryptographic curve, for every task, at every scheduling window, is a hard combinatorial problem. We show in this paper that this joint problem contains a well-known NP-hard problem as a special case: the generalized assignment problem. This is one reason why, to our knowledge, no prior work solves the joint problem exactly at scale; instead, we design a fast, greedy heuristic, and we measure how close this heuristic gets to the true optimal solution using an exact solver.
This study asks four research questions:
  • RQ1: How much does jointly optimizing latency and cryptographic security improve task success rate, compared to optimizing latency alone or using a fixed cryptographic curve?
  • RQ2: How hard is the joint offloading and curve-selection problem, in a formal, complexity-theoretic sense?
  • RQ3: How far is a fast, greedy heuristic from the true optimal solution, and does this gap change with system load?
  • RQ4: Is the extra cryptographic overhead small enough for real-time vehicular IoT deployment?
To answer these questions, this study proposes a dynamic joint latency-security offloading model. The model treats curve selection as an adaptive decision variable. It jointly optimizes this decision alongside latency, CPU load, bandwidth availability, and task priority. The model keeps cryptographic resilience while adapting to the fast-changing security needs of vehicular IoT environments, by selecting curves from both standard and non-standard curve pools.
Recent work has studied related problems. [22] combine lightweight identity-based cryptographic authentication with deep-reinforcement-learning-based task offloading in 6G vehicular twin networks. [23] propose a security-aware task offloading framework for IoT edge networks that uses Software-Defined Networking (SDN) and a lightweight heuristic decision engine. Both works, like the present study, treat security and offloading as a joint problem rather than two separate ones. However, neither work gives a formal complexity analysis of the joint problem, and neither compares its heuristic against an exact solver. This is the specific gap the present paper addresses.
The main contributions of this paper are summarized as follows:
  • Dynamic ECC-Aware Offloading Model: A novel joint latency-security task offloading model that adapts elliptic curve configurations in response to changes in the vehicular edge offloading context.
  • Unified Performance-Security Optimization: A joint scoring mechanism that balances key performance metrics (latency, resource utilization, and bandwidth) with cryptographic metrics (security strength and curve freshness).
  • Formal Complexity Analysis: We show that the joint offloading and curve-selection problem reduces to a generalized assignment problem, a well-known NP-hard problem, when curve-selection variables are fixed, and we quantify the resulting optimality gap of the proposed heuristic against an exact Integer Linear Programming (ILP) solver.
  • Real, Openly Available Evaluation: Compared with static ECC-based and latency-only techniques, a Python simulation with openly available code shows task completion rates within a fraction of a percentage point of latency-only scheduling, far higher than static ECC, together with substantially improved cryptographic robustness (more than a 10-fold reduction in replay success) and minimal additional overhead.

3. System Model and Problem Definition

We consider a dynamic vehicular edge environment in which mobile vehicles generate computation tasks that are offloaded to edge-processing nodes, including RSUs and ENs.

3.1. Sets and Indices

  • T = { 1 , , N } : Set of tasks, indexed by i.
  • N = { 1 , , M } : Set of edge nodes, indexed by j.
  • K = { 1 , , K } : Set of available ECC curves, indexed by k.
Task i requires comp i (CPU cycles), data i (input Mb), has deadline i (ms), and minimum security sec i (bits). Node j has CPU frequency f j (MHz), utilization ρ j , bandwidth B j (Mbps), and ECC freshness age τ j . Curve k provides security S k (bits) and overhead O k (ms).
Table 2 summarizes the workload, node, and ECC curve parameters used in the system model. We consider a discrete scheduling window of duration Δ s. The available computational capacity is C j = f j ( 1 ρ j ) Δ . Decision variables: x i j { 0 , 1 } (task i assigned to node j), y j k { 0 , 1 } (node j selects curve k). Once a node has selected a curve, we write S j = k K y j k S k for the security strength of node j’s currently selected curve, used below in (C3) and in the scoring function.
The end-to-end delay is:
d i j = 1000 · data i B j + 1000 · comp i f j ( 1 ρ j ) + k = 1 K y j k O k ,
with transmission time, execution time, and cryptographic overhead.

3.2. Freshness Model

Freshness is modelled as τ j ( t ) = t t j upd , where t j upd is the most recent update time. Larger update intervals increase replay risk and retransmission likelihood.

3.3. Optimization Problem

We maximize a unified performance–security objective:
max { x i j , y j k } i T j N x i j Score i j
subject to
j N x i j = 1 , i T
x i j d i j x i j deadline i , i T , j N
x i j S j x i j sec i , i T , j N
i T x i j comp i C j , j N
i T x i j data i B j Δ , j N
k K y j k = 1 , j N
x i j , y j k { 0 , 1 }
Constraint (C1) ensures that each task is assigned to one node. Constraint (C2) ensures deadline feasibility. Constraint (C3) ensures that the selected curve strength S j satisfies the required security level. Constraints (C4) and (C5) impose computational and bandwidth-capacity limits. Constraint (C6) ensures that each node selects one ECC curve. Finally, (C7) specifies the binary assignment and curve-selection variables. The unified performance–security score is:
Score i j = α d ^ i j + β ρ ^ j + γ S ^ j + δ τ ^ j , α + β + γ + δ = 1 ,
where normalized metrics balance performance (delay, load) and security (strength, freshness). Using this formulation, cryptographic agility is incorporated into task assignment.

4. Curve-Aware Model Architecture

4.1. System Architecture

Figure 1 depicts the three-layer architecture of the proposed model. The Vehicle Layer has mobile task requesters that generate computational tasks and communicate them via a wireless link. The Edge Layer has RSUs and ENs that execute offloaded tasks and each node has a live state tuple ( ρ j , B j , τ j ) . The Optimization and Control Layer operates the offloading controller, which (i) reads node states and the ECC curve pool K , (ii) selects a curve k * for each node, (iii) scores each candidate assignment, and (iv) assigns tasks to the best-scoring viable node. After each scheduling window Δ , the controller receives the updated node states and freshness counters.

4.2. Proposed Offloading Algorithm

Algorithm 1 operationalizes the optimization model by assessing viable nodes under time, security, and remaining-capacity restrictions, and selecting the node with the highest performance–security score. Remaining capacity is tracked and decremented as tasks are assigned within the window, enforcing (C4)-(C5) directly rather than as a separate post-hoc check. Ties are implicitly resolved by retaining the first encountered maximum score owing to the strict update rule. Curve selection (which curve a node uses) is not part of this per-window procedure; it happens separately, only when a node’s freshness triggers a refresh (Section 5.1).
Algorithm 1 Dynamic Curve-Aware Secure Task Offloading
Require: 
Task set T , node set N
Ensure: 
Assignment mapping M
  1:
for all j N  do
  2:
     remComp j C j , remData j B j Δ ▹ reset remaining capacity, Eq. (C4)-(C5)
  3:
end for
  4:
for all i T  do
  5:
     bestScore , bestNode
  6:
    for all j N  do
  7:
        Compute d i j
  8:
        if Constraints (C2) and (C3) are satisfied and  comp i remComp j  and  data i remData j  then▹ (C4)-(C5)
  9:
           Compute Score i j
10:
           if  Score i j > bestScore  then
11:
                bestScore Score i j , bestNode j
12:
           end if
13:
        end if
14:
    end for
15:
    if  bestNode  then
16:
        Assign task i to bestNode; remComp bestNode = comp i ; remData bestNode = data i
17:
    end if
18:
end for
19:
return M

5. Evaluation and Results

5.1. Experimental Setup

We evaluate the model in Section 3 using a Python discrete-event Monte Carlo simulation. The results in this section come from the Python code described below, which is openly available (see Data Availability).
The simulation runs in scheduling windows of Δ = 5 s, matching Table 3. Each window generates a new batch of tasks and assigns them to nodes (10 RSUs, 5 ENs), following Algorithm 1. A full run covers 1000 s (200 windows), matching the duration in Table 3. Node freshness τ j increases by Δ each window and resets to zero when a node refreshes. Dynamic ECC refreshes every U seconds (default 60 s). Static ECC never refreshes within a run. Latency-Only uses no cryptography at all: it pays zero ECC overhead, structurally, by never invoking a curve (see Section 5.1.1 for the overhead the other two strategies do pay).
Two mechanisms tie staleness to the results we report. First, a replay attempt against a node succeeds with probability min ( 1 , τ j / T ref ) , where T ref = 300 s is the paper’s own maximum curve-update interval from Table 3. This formalizes the claim that a longer replay window follows directly from a longer update interval. Second, a session on a stale node has the same probability of needing one retry, which costs one extra transmission round-trip. This is what lets staleness cost time, not only security.

5.1.1. ECC Overhead per Curve

We measure the cryptographic cost of each curve directly. For each curve, we timed 300 full handshakes (key generation, Elliptic Curve Diffie-Hellman (ECDH) exchange, sign, verify) using Python’s cryptography library [26], after a warm-up phase to remove first-call noise. Table 4 reports the results.
The curve pool excludes secp160r1, which has been removed from modern OpenSSL-backed cryptography libraries for being under-strength and is no longer usable in current deployments. Instead, the pool pairs two NIST/SECG (Standards for Efficient Cryptography Group) prime curves (secp192r1, secp224r1) with Curve25519 (X25519 for key exchange, Ed25519 for signing), a real, RFC 7748-standardized curve [24] from a different mathematical family (Montgomery form). This gives the pool genuine standard/non-standard-family diversity, spanning two distinct curve designs rather than three variants of the same one.
The measurement produced a genuinely unexpected finding: secp192r1 is slower than secp224r1, even though it is the weaker curve. This is most likely explained by secp192r1 being old and rarely used in current deployments, so it falls back to generic field arithmetic, while secp224r1 and Curve25519 get optimized fast paths in modern OpenSSL implementations.
The scoring function implemented is exactly Eq. (3), with normalization references d max = 1300 ms (the maximum task deadline in Table 3, the natural ceiling for any delay that could pass constraint (C2)), τ max = 300 s (equal to T ref ), and S max = 128 bits (the strongest curve in Table 4).

5.2. Baselines and Overall Comparison

We compare Latency-Only, Static ECC, and Dynamic ECC over 30 independent 1000 s runs. Table 5 reports task success rate (TSR) and replay success, with 95% confidence intervals.
Dynamic ECC and Latency-Only land at essentially the same TSR (85.27% vs. 85.58%, a difference well inside the confidence intervals). Dynamic ECC does not win on task success. What it wins is security, at almost no cost: replay success falls from 100% (no protection at all) to 8.93%, more than a 10-fold reduction, while TSR barely moves.
Static ECC is the clear loser on both counts. It fixes one curve (secp224r1, 112-bit security) for the whole run. Two things follow. First, any task requiring 128-bit security (a real fraction of tasks in our model, since security requirements are drawn from {80, 96, 112, 128} bits) cannot be served at all, which alone caps its achievable TSR well below the other two strategies. Second, because it never refreshes, its freshness grows without bound across the 1000 s run; once past T ref = 300 s, essentially every session on it is both maximally replay-vulnerable and paying the retransmission penalty, which drags TSR down further. Static ECC performs worse than no security at all, not because static cryptography is inherently bad, but because a single fixed curve, never refreshed, fails a predictable slice of tasks by design and accumulates staleness with no bound.
A paired two-sided t-test confirms both differences are far outside noise: Dynamic ECC vs. Static ECC, TSR t = 213.79 , replay success t = 530.49 (both p < 0.001 ).

5.3. Scalability with Vehicle Volume

We scaled the scenario from 50 to 300 vehicles, with the task arrival rate per window scaled proportionally (26 tasks per window at the 100-vehicle default, roughly 0.26 tasks per vehicle per window, since not every vehicle sends a task in every 5 s window). Figure 2a and Figure 2b report TSR and average latency.
TSR degrades gradually for all three strategies as vehicle count grows (Dynamic ECC: 85.40% at 50 vehicles to 83.58% at 300; Latency-Only: 86.02% to 82.42%; Static ECC stays flat near 40% throughout, since its TSR ceiling is set by the security-mismatch and staleness problems described above, not by load). Average latency rises modestly with load for all strategies. Dynamic ECC’s latency stays close to Latency-Only’s (429–453 ms vs. 337–370 ms across the range), with the gap coming almost entirely from Curve25519’s measured 0.34 ms overhead plus occasional retry cost, not from the curve-selection logic itself.

5.4. Freshness Sensitivity (Update Interval)

We varied the refresh interval U for Dynamic ECC and measured TSR and replay success (Table 6, Figure 2c).
Replay success grows with U, roughly doubling as U doubles, which is exactly what the linear-in-staleness replay model predicts and a useful sanity check that the mechanism behaves as designed. TSR shows a threshold effect rather than a steady decline: it drops only modestly from U = 30 s to U = 120 s, then falls sharply at U = 300 s, once nodes spend most of the run past the T ref staleness threshold and pay the retransmission penalty on most tasks. This threshold behavior is itself a useful, actionable finding: it means the operator does not need to refresh very aggressively to stay safe, only avoid the long-interval regime where the penalty compounds.

5.5. Latency–Security Trade-off

Figure 2d plots average latency against replay success for the three strategies at default load. Latency-Only sits at the lowest latency and, by construction, the highest replay success (100%): it has no way to trade one for the other. Static ECC sits at higher latency and still high replay success, the worst of both. Dynamic ECC is close to Latency-Only on latency while cutting replay success by more than a factor of 10, which is the trade-off this paper’s design is meant to offer.

5.6. Latency Distribution (CDF)

Figure 3a shows the empirical cumulative distribution function (CDF) of end-to-end latency for all three strategies, pooled across 10 independent runs (tens of thousands of samples per strategy). Latency-Only has the tightest, left-most distribution (median 329 ms), since it pays no cryptographic or retry cost. Dynamic ECC sits close behind (median 389 ms). Static ECC has the widest, right-shifted distribution (median 524 ms, heaviest tail), consistent with it accumulating staleness and paying the retransmission penalty on most of its sessions over a 1000 s run.

5.7. CPU Utilization vs. Load

Figure 3b reports average node CPU utilization as vehicle count scales from 50 to 300. Utilization rises roughly linearly with load for all three strategies but stays low in absolute terms (0.6%–8.9% across the range and all three strategies at default node counts), reflecting generously provisioned node capacity relative to task load in this configuration. We note this explicitly because it also explains a null result in Section 5.8: capacity is rarely the binding constraint at default load, so which specific feasible node a task prefers rarely changes whether it succeeds.

5.8. Ablation on Scoring Weights

At the paper’s default load, the four scoring weights ( α , β , γ , δ ) have no measurable effect on TSR or replay success: with utilization under 4% (Section 5.7), there is essentially always spare capacity somewhere, so node preference rarely determines whether a task succeeds, and replay success is governed entirely by the refresh schedule, not by node choice.
To give the ablation a real chance to matter, we re-ran it under a high-load, capacity-constrained condition (300 tasks per window, roughly 42% average utilization). Table 7 reports the result.
Under contention, a small, monotonic effect appears: TSR rises slightly as weight shifts from latency-focused to security-focused (66.10% to 66.69%, under one percentage point of spread). Replay success does not move at all across configurations (8.93% throughout), which makes sense: replay success is set entirely by the refresh interval, a schedule the scoring weights do not touch.

5.9. Robustness to Network Jitter and Attack Intensity

Figure 3c reports deadline miss ratio (100−TSR) against network jitter range, for Static and Dynamic ECC. Miss ratio rises with jitter for both, from 58.72% to 62.97% for Static ECC and from 13.63% to 19.10% for Dynamic ECC across the tested ranges (0–5 ms up to 30–120 ms). Dynamic ECC’s miss ratio stays well below Static ECC’s at every jitter level tested.
Figure 3d reports the effect of replay attack intensity. Here we report absolute compromised-session counts rather than a success percentage, because the percentage is, by construction, mostly independent of attack rate in this model: it is a per-attempt conditional probability that depends on staleness, not on how many attempts occur. What does scale with attack intensity is the raw number of compromised sessions, which rises close to linearly with attempt rate for both strategies, as expected from the underlying Poisson attempt process. At every attack rate tested (0.2 to 5.0 attempts/s per node), Dynamic ECC shows roughly 9-fold fewer compromised sessions than Static ECC (e.g., 274 vs. 2540 at the default rate; 6787 vs. 63,561 at the highest rate tested). We do not currently model a feedback loop from a successful replay back into task assignment or TSR; extending the model so that a compromised session forces a costly recovery is a direction for future work, not a claim we make here.

5.10. Threat Model and Adversary Assumptions

We assume a passive-to-active on-path or in-range wireless adversary who can eavesdrop on task-offloading exchanges, record previously observed authenticated messages, and replay them at a later scheduling window. We do not assume the attacker holds any legitimate node’s private key, and we do not assume the attacker can break the underlying elliptic-curve discrete-logarithm problem for the curve strengths in Table 4. The attack surface modeled here is protocol-level replay, not cryptanalytic key recovery.
Under this model, freshness τ j is the replay countermeasure, implemented directly as described in Section 5.1: replay success probability is min ( 1 , τ j / T ref ) , so the attacker’s effective replay window is bounded by the refresh interval U. This is why replay success degrades monotonically with U in Table 6: a larger U directly and mechanically enlarges the attacker’s window, rather than merely correlating with it. Collusion between compromised nodes, location spoofing, and Sybil identities are outside the scope of this model and are left for future work.

5.11. Runtime Feasibility

We measure the wall-clock runtime of Algorithm 1 directly. At the paper’s default load (26 tasks per window, 15 nodes), 100 trials give a mean runtime of 0.481 ms per scheduling window (p95: 0.790 ms), against the Δ = 5000 ms window budget: a margin of roughly 10,000×. Even at 100 tasks per window, mean runtime is 1.709 ms, a margin of roughly 2900×, confirming real-time feasibility with a wide margin.

5.12. Optimality Gap Against an Exact ILP Bound

We solved the assignment problem exactly with a Mixed-Integer Linear Programming (MILP) solver (CBC via PuLP [25]), using the identical realized delay and score matrix the greedy heuristic sees for each instance, so that any gap reflects the assignment strategy and not different random draws. Table 8 reports the result at two scales.
At reduced scale, the heuristic matches the ILP optimum exactly in every seed tested. At the paper’s full default scale, the mean gap is a small 2.34%, with individual seeds ranging from 0.22% to 7.06%. This confirms the heuristic is a genuinely close approximation to the optimal assignment at both scales tested, not merely a fast one.

5.13. Limitations

This evaluation has real boundaries worth stating plainly. It is a Python discrete-event Monte Carlo simulation, not a full network simulator: it does not model vehicle mobility, physical-layer wireless propagation, or a packet-level network stack. Node and task parameters are drawn from the ranges in Table 3. ECC overhead is measured on one evaluation machine, not across a range of embedded hardware. The replay-attack model is a documented, simple mechanism (Section 5.1), not a proof; a successful replay does not currently feed back into task assignment or TSR, which we flag explicitly in Section 5.9 as future work rather than a present claim. The scoring-weight ablation shows a real but small effect that only appears under a high-load condition constructed to produce capacity contention; at the paper’s own default load, the four weights are inert. Extending this evaluation to a full mobility and network-layer simulator, and closing the small remaining ILP gap with a local-search refinement of Algorithm 1, are both directions for future work.

6. Conclusions

This paper has presented a joint latency-security task offloading model for vehicular edge environments, where ECC curve selection and freshness are integrated directly into the task assignment optimization process. We evaluated it with an openly available Python simulation. The main finding is that dynamic ECC gets almost all of Latency-Only’s task success rate (85.27% vs. 85.58%, a difference inside the confidence interval) while cutting replay success by more than a factor of ten (8.93% vs. 100%). Static ECC, a single fixed curve that never refreshes, is the clear loser on both counts: it cannot serve tasks that need stronger security than its one curve provides, and it accumulates staleness with no bound, so its TSR (40.29%) sits far below both alternatives. Measured cryptographic overhead is small, 0.34–1.19 ms depending on the curve, and the heuristic’s measured runtime leaves a wide margin (roughly 10,000×) against the scheduling window. Against an exact ILP bound, the heuristic is optimal at reduced scale and within 2.34% at the paper’s full default scale. Section 5.13 discusses what this evaluation does not yet cover and outlines directions for future work.

Author Contributions

Conceptualization, A.A.; methodology, A.A.; software, A.A.; validation, A.A.; formal analysis, A.A.; investigation, A.A.; resources, A.A.; data curation, A.A.; writing—original draft preparation, A.A.; writing—review and editing, A.A.; visualization, A.A.; supervision, A.A.; project administration, A.A. The author has 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

The Python simulation code that produced every result and figure in Section 5.2 through Section 5.12 – including the ECC overhead measurements, the multi-window simulation, the ILP comparison, and all figure-generation scripts – is openly available on Zenodo at https://doi.org/10.5281/zenodo.21405051. Raw per-seed outputs underlying the aggregate statistics reported in Table 5, Table 6 and Table 7 and Table 8 can be provided by the author upon reasonable request.

Acknowledgments

During the preparation of this work, the author used Claude (Anthropic) as a coding assistant to implement the Python simulation described in Section 5.1 through Section 5.12 (the ECC overhead measurements, the multi-window simulation, the ILP comparison, and the figure-generation scripts), working under the author’s direction and specification. The author designed the experiments, specified the modeling decisions (including the curve pool, the capacity and staleness-retry mechanisms, and the evaluation scenarios), and reviewed, tested, and validated all code and results. Claude also assisted with drafting parts of the discussion. The author takes full responsibility for the content of the publication.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Mao, M.; Hu, T.; Zhao, W. Reliable task offloading mechanism based on trusted roadside unit service for internet of vehicles. Ad. Hoc Netw. 2023, 139, 103045. [Google Scholar] [CrossRef]
  2. Younis, A.; Maheshwari, S.; Pompili, D. Energy-latency computation offloading and approximate computing in mobile-edge computing networks. IEEE Trans. Netw. Serv. Manag. 2024, 21, 3401–3415. [Google Scholar] [CrossRef]
  3. Singh, A.; Rani, P.; Ramesh, J.V.N.; Athawale, S.V.; Alkhayyat, A.H.; Aledaily, A.N.; et al. Blockchain-based lightweight authentication protocol for next-generation trustworthy internet of vehicles communication. IEEE Trans. Consum. Electron. 2024, 70, 4898–4907. [Google Scholar] [CrossRef]
  4. Laghari, A.A.; Khan, A.A.; Alkanhel, R.; Elmannai, H.; Bourouis, S. Lightweight-BIoV: Blockchain distributed ledger technology (BDLT) for internet of vehicles (IoVs). Electronics 2023, 12, 677. [Google Scholar] [CrossRef]
  5. Adeniyi, A.E.; Jimoh, R.G.; Awotunde, J.B. A systematic review on elliptic curve cryptography algorithm for internet of things: Categorization, application areas, and security. Comput. Electr. Eng. 2024, 118, 109330. [Google Scholar] [CrossRef]
  6. Alladi, T.; Chakravarty, S.; Chamola, V.; Guizani, M. A lightweight authentication and attestation scheme for in-transit vehicles in IoV scenario. IEEE Trans. Veh. Technol. 2020, 69, 14188–14197. [Google Scholar] [CrossRef]
  7. Ali, I.; Chen, Y.; Ullah, N.; Kumar, R.; He, W. An efficient and provably secure ECC-based conditional privacy-preserving authentication for vehicle-to-vehicle communication in VANETs. IEEE Trans. Veh. Technol. 2021, 70, 1278–1291. [Google Scholar] [CrossRef]
  8. Wang, J.; Li, J.; Wang, H.; Zhang, L.Y.; Cheng, L.-M.; Lin, Q. Dynamic scalable elliptic curve cryptographic scheme and its application to in-vehicle security. IEEE Internet Things J. 2018, 6, 5892–5901. [Google Scholar] [CrossRef]
  9. Al-Mhameed, S.; Choudhury, S. Adaptive 5G resource allocation for emergency scenarios in IoV: Leveraging extreme edge computing. SSRN 2025. [Google Scholar] [CrossRef]
  10. Al-Mhameed, S.W.; Karimi, L.; Choudhury, S.C. Fair and efficient resource allocation optimization for internet of vehicles (IoV) in edge computing environments. Int. J. Parallel Emergent Distrib. Syst. 2025, 40, 695–708. [Google Scholar] [CrossRef]
  11. Dayong, W.; Bakar, K.B.A.; Isyaku, B.; Eisa, T.A.E.; Abdelmaboud, A. A comprehensive review on internet of things task offloading in multi-access edge computing. Heliyon 2024, 10, e30096. [Google Scholar] [CrossRef] [PubMed]
  12. Hossain, M.D.; Sultana, T.; Hossain, M.A.; Layek, M.A.; Hossain, M.I.; Sone, P.P.; et al. Dynamic task offloading for cloud-assisted vehicular edge computing networks: A non-cooperative game theoretic approach. Sensors 2022, 22, 3678. [Google Scholar] [CrossRef] [PubMed]
  13. Peng, K.; Yue, K.; Xiao, P.; Leung, V.C.M. Security-aware computation offloading in internet of vehicles: A multi-agent reinforcement learning algorithm with attention mechanism. J. Cloud Comput. 2025, 15, 1–18. [Google Scholar] [CrossRef]
  14. Cao, K.; Liang, P.; Wu, T.; Zhang, S.; Zhou, L. Enhancing trust and security in IoT computing offloading through game theory and blockchain-based control strategy. Concurr. Comput. Pract. Exp. 2024, 36, e7956. [Google Scholar] [CrossRef]
  15. Lara-Nino, C.A.; Diaz-Perez, A.; Morales-Sandoval, M. Lightweight elliptic curve cryptography accelerator for internet of things applications. Ad. Hoc Netw. 2020, 103, 102159. [Google Scholar] [CrossRef]
  16. National Institute of Standards and Technology. Digital Signature Standard (DSS); Technical Report FIPS PUB 186-4; NIST: Gaithersburg, MD, USA, 2013.
  17. Chou, T. Sandy2x: New Curve25519 speed records. In Proceedings of the International Conference on Selected Areas in Cryptography (SAC); Springer: Berlin, Germany, 2015; pp. 145–160. [Google Scholar] [CrossRef]
  18. Liu, Y.; Zhao, Z.; Guo, G.; Wang, X.; Tan, Z.; Wang, S. A group authentication scheme with blockchain authorization for cooperative privacy protection of vehicles. IEEE Trans. Intell. Transp. Syst. 2021, 23, 15023–15033. [Google Scholar] [CrossRef]
  19. Vasko, F.J.; Dellinger, A.; Lu, Y.; McNally, B.; Song, M.S. A simple and efficient technique to generate bounded solutions for the generalized assignment problem: A guide for OR practitioners. Res. Rep. Comput. Sci. 2021, 1, 13–34. [Google Scholar] [CrossRef]
  20. Almuseelem, W. Deep reinforcement learning-enabled computation offloading: A novel framework to energy optimization and security-aware in vehicular edge-cloud computing networks. Sensors 2025, 25, 2039. [Google Scholar] [CrossRef] [PubMed]
  21. Devarajan, G.G.; Thangam, S.; Alenazi, M.J.; Kumaran, U.; Chandran, G.; Bashir, A.K. Federated learning and blockchain-enabled framework for traffic rerouting and task offloading in the Internet of Vehicles (IoV). IEEE Trans. Consum. Electron. 2025. [Google Scholar] [CrossRef]
  22. Al-Shareeda, S.; Ozguner, F.; Redmill, K.; Duong, T.Q.; Canberk, B. Lightweight authenticated task offloading in 6G-cloud vehicular twin networks. arXiv 2025, arXiv:2502.03403. [Google Scholar]
  23. Al-Hasani, A.R.T.; Broumandnia, A.; Haj Seyyed Javadi, H. Security-aware task offloading in IoT edge networks using software-defined networking. Math. Comput. Appl. 2026, 31, 72. [Google Scholar] [CrossRef]
  24. Langley, A.; Hamburg, M.; Turner, S. Elliptic Curves for Security; Internet Research Task Force (IRTF); RFC 7748; Fremont, CA, USA, 2016. [Google Scholar]
  25. Mitchell, S.; O’Sullivan, M.; Dunning, I. PuLP: A Linear Programming Toolkit for Python; Technical Report; Department of Engineering Science, University of Auckland: Auckland, New Zealand, 2011. [Google Scholar]
  26. Python Cryptographic Authority. cryptography: Cryptographic Recipes and Primitives for Python. Available online: https://cryptography.io (accessed on 16 July 2026).
Figure 1. Proposed three-layer architecture of the curve-aware offloading model.
Figure 1. Proposed three-layer architecture of the curve-aware offloading model.
Preprints 224876 g001
Figure 2. Real simulation results (Python, 30 seeds where applicable). (a) Task success rate vs. number of vehicles. (b) Average latency vs. number of vehicles. (c) Effect of ECC update interval on TSR and replay success. (d) Latency-security trade-off at default load.
Figure 2. Real simulation results (Python, 30 seeds where applicable). (a) Task success rate vs. number of vehicles. (b) Average latency vs. number of vehicles. (c) Effect of ECC update interval on TSR and replay success. (d) Latency-security trade-off at default load.
Preprints 224876 g002
Figure 3. Real simulation results, continued. (a) Latency CDF, pooled across 10 seeds. (b) Average node CPU utilization vs. load. (c) Deadline miss ratio vs. network jitter range. (d) Compromised sessions vs. replay attack intensity (log scale).
Figure 3. Real simulation results, continued. (a) Latency CDF, pooled across 10 seeds. (b) Average node CPU utilization vs. load. (c) Deadline miss ratio vs. network jitter range. (d) Compromised sessions vs. replay attack intensity (log scale).
Preprints 224876 g003
Table 1. Qualitative comparison with representative security-aware and performance-aware offloading approaches, as reported in the cited works.
Table 1. Qualitative comparison with representative security-aware and performance-aware offloading approaches, as reported in the cited works.
Approach Joint Latency–Crypto Opt. Adaptive/ Dynamic Crypto Security Metric Real-Time Overhead
Static ECC scheduling [8] No Partial (fixed) Freshness only No
Security-aware RL offloading [13] No No Trust score No
Blockchain-based control [14] No No Trust/ consensus No
DRL energy-security offloading [20] No No Qualitative No
FL + blockchain offloading [21] No No Qualitative No
Authenticated DRL offloading [22] No No (fixed IBC) Efficiency loss (%) No
SDN risk-aware offloading [23] Partial (risk-weighted) No (fixed risk model) Attack/ encryption risk Yes (controller CPU)
This work Yes Yes (curve + fresh.) Replay success prob. Yes (1–2 ms/task)
Table 2. System Parameters.
Table 2. System Parameters.
Symbol Description
comp i Required CPU cycles of task i.
data i Input data size of task i (Mb).
deadline i Maximum allowable delay (ms).
sec i Minimum required ECC security level (bits).
f j CPU frequency of node j (cycles/s).
ρ j Current CPU utilization ratio of node j.
B j Available link rate of node j (Mbps).
τ j Time elapsed since the last ECC update (freshness).
S k Security strength of curve k (bits).
O k Cryptographic processing overhead of curve k (ms).
Table 3. Simulation parameters actually used.
Table 3. Simulation parameters actually used.
Parameter Value
Scheduling window Δ 5 s
Number of vehicles (scaling range) 50–300
Number of RSUs / ENs 10 / 5
Simulation duration per run 1000 s (200 windows)
Link rate range ( B j ) 1–10 Mbps
Network jitter (default) 5–30 ms
CPU demand ( comp i ) 100–800 Mcycles
Task size ( data i ) 0.5–4 Mb
Task deadline 200–1300 ms (calibrated to the achievable delay range; see Section 5.1)
Task security requirement drawn from {80, 96, 112, 128} bits
Curves ( K ) secp192r1, secp224r1, Curve25519
Curve update interval U (default / swept) 60 s / 30–300 s
CPU frequency ( f j ) RSU: 3–6 GHz; EN: 6–12 GHz
Initial utilization ( ρ j ) U [ 0.1 , 0.7 ]
Scoring weights (0.40, 0.30, 0.20, 0.10)
Replay attempt rate (default / swept) 0.2 attempts/s per node / 0.2–5.0
Table 4. Measured ECC overhead per curve (300 trials each, after warm-up).
Table 4. Measured ECC overhead per curve (300 trials each, after warm-up).
Curve Family Mean (ms) Std. Dev. (ms) Security (bits)
secp192r1 NIST/SECG prime 1.186 0.092 96
secp224r1 NIST/SECG prime 0.345 0.038 112
Curve25519 Montgomery 0.339 0.025 128
Table 5. Performance comparison, 30 independent 1000 s runs, mean ± 95% CI.
Table 5. Performance comparison, 30 independent 1000 s runs, mean ± 95% CI.
Strategy TSR (%) Replay Success (%)
Latency-Only 85.58 ± 1.14 100.00 ± 0.00
Static ECC 40.29 ± 1.22 84.54 ± 0.24
Dynamic ECC 85.27 ± 1.17 8.93 ± 0.22
Table 6. Effect of ECC update interval on TSR and replay success, Dynamic ECC, 20 seeds.
Table 6. Effect of ECC update interval on TSR and replay success, Dynamic ECC, 20 seeds.
Update Interval (s) TSR (%) Replay Success (%)
30 85.25 4.14
60 85.08 9.06
120 84.61 18.49
300 79.12 45.42
Table 7. Ablation on scoring weights under real capacity contention (300 tasks/window, 20 seeds).
Table 7. Ablation on scoring weights under real capacity contention (300 tasks/window, 20 seeds).
Config α β γ δ TSR (%) Replay (%)
Latency focus 0.60 0.30 0.05 0.05 66.10 8.93
Balanced 0.40 0.30 0.20 0.10 66.45 8.93
Security focus 0.25 0.25 0.30 0.20 66.69 8.93
Table 8. Heuristic (Algorithm 1) vs. exact ILP bound, 10 seeds per scale.
Table 8. Heuristic (Algorithm 1) vs. exact ILP bound, 10 seeds per scale.
Scale Mean Gap (%) Range (%)
Reduced ( N = 20 , M = 5 ) 0.000 0.000–0.000
Full default ( N = 100 , M = 15 ) 2.342 0.220–7.060
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.