axakhan commited on
Commit
65496c3
·
verified ·
1 Parent(s): 6387e18

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +299 -0
README.md ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - reinforcement-learning
5
+ - tabular-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - network-slicing
10
+ - 5G
11
+ - IoV
12
+ - DRL
13
+ - MEC
14
+ - URLLC
15
+ - eMBB
16
+ - mMTC
17
+ - vehicular-networks
18
+ - 3GPP
19
+ - MobFogSim
20
+ - SUMO
21
+ size_categories:
22
+ - 1M<n<10M
23
+ ---
24
+
25
+ # IoV-DynSlice-2026
26
+
27
+ **Dynamic 5G Network Slicing Dataset for Internet of Vehicles — 7.83 Million Rows**
28
+
29
+ Generated using **MobFogSim** (fog/edge computing simulator) extended with a **3GPP TR 38.901 Urban Macro (UMa) channel model**, driven by a real-world **SUMO vehicular mobility trace** from Islamabad, Pakistan.
30
+
31
+ Designed for training Deep Reinforcement Learning (DRL) agents (PPO, SAC, TD3) to perform dynamic bandwidth allocation across three 5G network slices: URLLC, eMBB, and mMTC.
32
+
33
+ ---
34
+
35
+ ## Dataset at a Glance
36
+
37
+ | Property | Value |
38
+ |---|---|
39
+ | Total rows | 7,834,940 |
40
+ | Columns | 42 |
41
+ | Seeds | 10 |
42
+ | Vehicles per seed | 1,000 |
43
+ | Simulation ticks | 786 (seconds) |
44
+ | Missing values | 0 |
45
+ | File format | CSV |
46
+ | License | CC-BY 4.0 |
47
+
48
+ ---
49
+
50
+ ## Simulation Setup
51
+
52
+ ### Infrastructure
53
+ | Parameter | Value | Standard |
54
+ |---|---|---|
55
+ | Base stations (gNBs) | 225 (15×15 grid) | 3GPP TR 38.901 UMa |
56
+ | Inter-Site Distance (ISD) | 500 m | 3GPP TR 38.901 Table A.1-2 |
57
+ | Coverage area | 56.25 km² (7.5×7.5 km) | Urban core Islamabad |
58
+ | Carrier frequency | 3.5 GHz (n78 band) | PTA Pakistan 5G allocation |
59
+ | Total spectrum | 100 MHz | 3GPP TS 38.104 FR1 max |
60
+ | Tx power | 30 dBm | — |
61
+ | BS height | 25 m | UMa standard |
62
+ | UE height | 1.5 m | UMa standard |
63
+ | Noise figure | 7 dB | — |
64
+
65
+ ### Channel Model
66
+ 3GPP TR 38.901 Urban Macro (UMa) path loss:
67
+
68
+ ```
69
+ PL [dB] = 13.54 + 39.08 × log₁₀(d) + 20 × log₁₀(fc) − 0.6 × (hUT − 1.5)
70
+ ```
71
+
72
+ where `d` is distance in metres, `fc` is carrier frequency in GHz, and `hUT` is UE height in metres.
73
+
74
+ SINR → PLR mapping follows 5-tier lookup table derived from 3GPP link-level curves. Shannon capacity: `BW × log₂(1 + SINR_linear) × (1 − PLR)`.
75
+
76
+ ### Mobility
77
+ - **Trace**: SUMO simulation of Islamabad, Pakistan
78
+ - **Total SUMO vehicles**: 171,140
79
+ - **Selected vehicles per seed**: 1,000 (random selection)
80
+ - **Time steps**: 786 seconds
81
+ - **Coverage**: 271 km² total SUMO area
82
+
83
+ ### 5G Network Slices
84
+ | Slice | SLA Latency | SLA PLR | Base BW | Max BW |
85
+ |---|---|---|---|---|
86
+ | URLLC | ≤ 1 ms | ≤ 0.1% | 20 MHz | 50 MHz |
87
+ | eMBB | ≤ 10 ms | ≤ 5% | 60 MHz | 70 MHz |
88
+ | mMTC | ≤ 500 ms | ≤ 10% | 20 MHz | 25 MHz |
89
+
90
+ ---
91
+
92
+ ## Event Types (DPC — Dynamic Priority Controller)
93
+
94
+ The DPC detects 6 network conditions from real-time traffic signals and adjusts slice priorities and bandwidth allocation accordingly.
95
+
96
+ | Event | Count | % | Description |
97
+ |---|---|---|---|
98
+ | VEHICLE_SURGE | 1,909,960 | 24.4% | Rapid increase in vehicle density |
99
+ | HANDOVER_STORM | 1,879,990 | 24.0% | High handover rate (>5 per tick) |
100
+ | CONGESTION | 1,527,550 | 19.5% | Slow traffic, moderate density |
101
+ | EMERGENCY | 1,779,900 | 22.7% | Peak density, URLLC breach |
102
+ | NORMAL | 327,570 | 4.2% | Free-flow, low density, no events |
103
+ | ACCIDENT | 409,970 | 5.2% | High stopped-vehicle fraction (≥92%) |
104
+
105
+ ### Bandwidth Allocation per Event (MHz)
106
+
107
+ | Event | URLLC | eMBB | mMTC | Total |
108
+ |---|---|---|---|---|
109
+ | NORMAL | 20 | 60 | 20 | 100 |
110
+ | CONGESTION | 30 | 55 | 15 | 100 |
111
+ | VEHICLE_SURGE | 30 | 55 | 15 | 100 |
112
+ | HANDOVER_STORM | 35 | 50 | 15 | 100 |
113
+ | EMERGENCY | 40 | 45 | 15 | 100 |
114
+ | ACCIDENT | 50 | 35 | 15 | 100 |
115
+
116
+ ---
117
+
118
+ ## Column Schema (42 columns)
119
+
120
+ ### Identification
121
+ | Column | Type | Description |
122
+ |---|---|---|
123
+ | `vehicle_id` | int | Unique vehicle identifier |
124
+ | `timestamp` | int | SUMO simulation second (0–785) |
125
+ | `seed` | int | Random seed used for this run |
126
+
127
+ ### Vehicle State
128
+ | Column | Type | Description |
129
+ |---|---|---|
130
+ | `vehicle_x_m` | float | Vehicle x-coordinate (metres) |
131
+ | `vehicle_y_m` | float | Vehicle y-coordinate (metres) |
132
+ | `vehicle_speed_mps` | float | Instantaneous speed (m/s) |
133
+ | `dist_to_nearest_ap_m` | float | Distance to nearest gNB (metres) |
134
+ | `nearest_ap_id` | int | ID of nearest gNB |
135
+ | `vehicle_handover` | int | 1 if handover occurred this tick |
136
+ | `vehicle_migration` | int | 1 if VM migration occurred |
137
+
138
+ ### Traffic Context
139
+ | Column | Type | Description |
140
+ |---|---|---|
141
+ | `traffic_density_veh_per_km2` | float | Global vehicle density (all SUMO vehicles / 271 km²) |
142
+ | `vehicle_count` | int | Total SUMO vehicles active at this tick |
143
+ | `event_flag` | int | Numeric encoding of event_type |
144
+ | `event_type` | str | NORMAL / CONGESTION / VEHICLE_SURGE / HANDOVER_STORM / EMERGENCY / ACCIDENT |
145
+ | `root_cause` | str | DPC root cause classification |
146
+ | `congestion_severity` | int | 0=NORMAL, 1=CONGESTION, 2=SURGE/HO-STORM, 3=EMERGENCY/ACCIDENT |
147
+
148
+ ### DRL Reward Signal
149
+ | Column | Type | Range | Description |
150
+ |---|---|---|---|
151
+ | `reward` | float | [−0.44, +0.39] | Composite DRL reward |
152
+
153
+ Reward formula:
154
+ ```
155
+ r = 0.35×latComp + 0.20×lossComp + 0.15×netComp − 0.10×migPenalty − 0.20×slaPenalty
156
+ ```
157
+
158
+ ### URLLC Slice Metrics
159
+ | Column | Type | Description |
160
+ |---|---|---|
161
+ | `urllc_latency_ms` | float | URLLC slice latency (ms) |
162
+ | `urllc_packet_loss_rate` | float | URLLC PLR |
163
+ | `urllc_bandwidth_alloc_mhz` | float | Allocated bandwidth (MHz) |
164
+ | `urllc_throughput_mbps` | float | Achieved throughput (Mbps) |
165
+ | `urllc_jitter_ms` | float | Latency jitter (ms) |
166
+ | `urllc_slice_priority` | int | Current priority level |
167
+
168
+ ### eMBB Slice Metrics
169
+ | Column | Type | Description |
170
+ |---|---|---|
171
+ | `embb_latency_ms` | float | eMBB slice latency (ms) |
172
+ | `embb_packet_loss_rate` | float | eMBB PLR |
173
+ | `embb_bandwidth_alloc_mhz` | float | Allocated bandwidth (MHz) |
174
+ | `embb_throughput_mbps` | float | Achieved throughput (Mbps) |
175
+ | `embb_jitter_ms` | float | Latency jitter (ms) |
176
+ | `embb_slice_priority` | int | Current priority level |
177
+
178
+ ### mMTC Slice Metrics
179
+ | Column | Type | Description |
180
+ |---|---|---|
181
+ | `mmtc_latency_ms` | float | mMTC slice latency (ms) |
182
+ | `mmtc_packet_loss_rate` | float | mMTC PLR |
183
+ | `mmtc_bandwidth_alloc_mhz` | float | Allocated bandwidth (MHz) |
184
+ | `mmtc_throughput_mbps` | float | Achieved throughput (Mbps) |
185
+ | `mmtc_jitter_ms` | float | Latency jitter (ms) |
186
+ | `mmtc_slice_priority` | int | Current priority level |
187
+
188
+ ### Network State
189
+ | Column | Type | Description |
190
+ |---|---|---|
191
+ | `network_utilization_percent` | float | Total spectrum utilisation (always 100% — full allocation) |
192
+ | `edge_cpu_utilization_percent` | float | Edge server CPU utilisation |
193
+ | `global_migration_count` | int | Cumulative VM migrations |
194
+ | `global_handover_count` | int | Cumulative handovers |
195
+ | `handover_rate_per_tick` | float | Handovers per second at this tick |
196
+ | `isci_value` | float | Inter-Slice Contention Index |
197
+ | `dynamic_priority_shift_flag` | int | 1 if DPC shifted priorities this tick |
198
+ | `sla_violation_count` | int | Number of slices violating SLA (0–3) |
199
+ | `packet_delivery_ratio` | float | Network-wide packet delivery ratio |
200
+ | `fog_latency_ms` | float | Fog node RTT (ms) from 3GPP physics model |
201
+
202
+ ---
203
+
204
+ ## DRL Environment
205
+
206
+ ### Observation Space (9 features)
207
+ ```python
208
+ obs = [
209
+ urllc_latency_ms, # URLLC slice latency
210
+ embb_latency_ms, # eMBB slice latency
211
+ mmtc_latency_ms, # mMTC slice latency
212
+ urllc_bandwidth_alloc_mhz, # current URLLC BW allocation
213
+ embb_bandwidth_alloc_mhz, # current eMBB BW allocation
214
+ mmtc_bandwidth_alloc_mhz, # current mMTC BW allocation
215
+ traffic_density_veh_per_km2,# traffic density
216
+ vehicle_speed_mps, # mean vehicle speed
217
+ isci_value # inter-slice contention index
218
+ ]
219
+ ```
220
+
221
+ ### Action Space (3 continuous values)
222
+ Bandwidth allocation in MHz for each slice. Constraint: sum ≤ 100 MHz.
223
+ ```
224
+ action = [urllc_bw, embb_bw, mmtc_bw] ∈ [0, 100]³
225
+ ```
226
+
227
+ ### Reward
228
+ ```
229
+ range: [−0.44, +0.39]
230
+ mean: −0.291 (std: 0.133)
231
+ ```
232
+ | Event | Mean Reward |
233
+ |---|---|
234
+ | NORMAL | +0.255 |
235
+ | VEHICLE_SURGE | −0.251 |
236
+ | CONGESTION | −0.282 |
237
+ | HANDOVER_STORM | −0.313 |
238
+ | ACCIDENT | −0.358 |
239
+ | EMERGENCY | −0.403 |
240
+
241
+ ---
242
+
243
+ ## Loading the Dataset
244
+
245
+ ```python
246
+ import pandas as pd
247
+ from datasets import load_dataset
248
+
249
+ # Option 1: pandas (recommended for large datasets)
250
+ df = pd.read_csv("hf://datasets/axakhan/IOV/combined_dataset_v6.csv")
251
+
252
+ # Option 2: HuggingFace datasets library
253
+ dataset = load_dataset("axakhan/IOV")
254
+ df = dataset["train"].to_pandas()
255
+
256
+ # DRL state columns
257
+ STATE_COLS = [
258
+ "urllc_latency_ms", "embb_latency_ms", "mmtc_latency_ms",
259
+ "urllc_bandwidth_alloc_mhz", "embb_bandwidth_alloc_mhz", "mmtc_bandwidth_alloc_mhz",
260
+ "traffic_density_veh_per_km2", "vehicle_speed_mps", "isci_value"
261
+ ]
262
+
263
+ ACTION_COLS = [
264
+ "urllc_bandwidth_alloc_mhz",
265
+ "embb_bandwidth_alloc_mhz",
266
+ "mmtc_bandwidth_alloc_mhz"
267
+ ]
268
+
269
+ X = df[STATE_COLS].values # observations
270
+ a = df[ACTION_COLS].values # actions taken by DPC
271
+ r = df["reward"].values # rewards
272
+ ```
273
+
274
+ ---
275
+
276
+ ## Citation
277
+
278
+ If you use this dataset in your research, please cite:
279
+
280
+ ```bibtex
281
+ @dataset{khan2026iovdynslice,
282
+ author = {Khan, Abubakar},
283
+ title = {IoV-DynSlice-2026: Dynamic 5G Network Slicing Dataset for Internet of Vehicles},
284
+ year = {2026},
285
+ publisher = {Hugging Face},
286
+ url = {https://huggingface.co/datasets/axakhan/IOV},
287
+ note = {7.83M rows, MobFogSim + 3GPP TR 38.901 UMa + SUMO Islamabad trace,
288
+ 225 gNBs, ISD=500m, fc=3.5GHz, BW=100MHz, 1000 vehicles × 10 seeds}
289
+ }
290
+ ```
291
+
292
+ ---
293
+
294
+ ## Related Work
295
+
296
+ - MobFogSim: [github.com/diogomg/MobFogSim](https://github.com/diogomg/MobFogSim)
297
+ - 3GPP TR 38.901: Study on channel model for frequencies from 0.5 to 100 GHz
298
+ - 3GPP TS 22.261: Service requirements for the 5G system
299
+ - SUMO: [sumo.dlr.de](https://sumo.dlr.de)