|
Algorithm 1: Pseudocode for the Proposed Adaptive UA-RA Approach. |
Input: MBS, SBS, UE information, QoS requirements
Output: (for UA-RA decision)
|
-
1:
Initialize , ; ▹ Initialization Stage
-
2:
for all do ▹ Requests Classification Stage
-
3:
Classify into {uRLLC, eMBB, mMTC};
-
4:
Assign priority P: ;
-
5:
end for
-
6:
for all do
-
7:
if then ▹ Tier Selection Stage
-
8:
-
9:
else
-
10:
-
11:
end if
-
12:
▹ Cell Selection Stage
-
13:
for all do
-
14:
if then
-
15:
-
16:
break
-
17:
end if
-
18:
end for
-
19:
▹ CQI Mapping Stage
-
20:
-
21:
enqueue(, )
-
22:
end for
-
23:
for all do ▹ Resource Allocation Stage
-
24:
-
25:
end for
-
26:
for all do ▹ Lending Stage
-
27:
for all do
-
28:
if then
-
29:
-
30:
-
31:
if then
-
32:
-
33:
LEND() ▹ SDN controller issues the lending command
-
34:
▹ state updated by SDN controller
-
35:
▹ state updated by SDN controller
-
36:
▹ state updated by SDN controller
-
37:
end if
-
38:
end if
-
39:
end for
-
40:
end for
|