Showing posts with label 5G. Show all posts
Showing posts with label 5G. Show all posts

Monday, August 15, 2022

5G Node Funtional Split - gNB , AMF, SMF, UPF


 Keeping it simple for clarity of understanding.
Let's consider as two part :

Part 1: NG-RAN  -->  gNB/ng-eNB
Part2 : 5GC          --> AMF, SMF, UPF

gNB/ng-eNB Functionality:

  1. RRM - Radio Resource Magament 
  2. Radio Bearer Control
  3. Radio Admission Control 
  4. Connetion Mobility Control
  5. Dynamic Resource Allocation (Sceduling on UL and DL)
  6. IP Header Compression , Encryption and Integrity Protection of Data
  7. AMF Selection during Registration when no routing to AMF can be dterimied from the onformation provided by UE.
  8. Rounting of user plane data towards UPF
  9. Routing of Control plane Information towards AMF

AMF Functionalty:
  1. Mobility Management 
  2. Support Intra and Inter System Mobility
  3. Registraion Area Managament 
  4. Idle Mode UE Reachability
  5. SMF Selection
  6. NAS Signalling 
  7. NAS and AS Security
SMF Functionality:
  1. Session Mangement 
  2. UE IP addrress allocation and management 
  3. Downlink Data Notification
  4. Selection and Control of User Plane Function 
UPF Funtionality:
  1. Anchonr Point for Intra/Inter-RAT Mobility 
  2. SDF to QoS flow mapping
  3. Packet Routing and Forwarding
  4. Packet inspection and User plane part of policy rule enforcement
  5. Downlink packet buffering and downlink data notification triggering


Friday, January 8, 2021

SST SD and S-NSSAI in 5G

SST - Slice/Service Type

SD - Slice Differentiator. Also referred as sst-sd in 38.331 5gnr rrc specification .
Usage: This is optional entity. This is to complement SST. Which helps to differentiate among multiple network slices.




S-NSSAI - Single Network Slice Selection Assistance Information 
Usage: In-order to identify a network slice end to end

An S-NSSAI is comprised of:



- A Slice/Service type (SST),

- A Slice Differentiator (SD), which is optional information that complements the Slice/Service type(s) to differentiate amongst multiple Network Slices.





SST is 8 bit information. SST field value can be standardized (3GPP defined 0 to 127) or non-standardized (Operator-Reserved  128 to 255).
 
SD is 24 bit information.
S-NSSAI can consit both SST and SD or only SST.
So S-NSSAI can can be of 32bit or 8 bit only.


Example of S-NSSAI inside AMF Configuration is as below

      <s_nssai>
        <id>0</id>
        <sd>198153</sd>
        <sst>3</sst>
      </s_nssai>

Where as inside CU configuration it's as below.

                   <sNSSAI>50529801</sNSSAI>

  
But if you see that number 3 , 198153 and 50529801 - it's quite difficult at first glance to relate them.
Now let's understand the relation between them.

sst is 3 here and it has 8 bit as per the structure.
So the binary format of 3 in 8 bit comes as 0000 0011 .
sd is 198153  here and it has 24 bit as per the structure.
So the binary format of 198153   in 24 bit comes as  0000 0011 0000 0110 0000 1001 .
Now if we form the s-NSSAI with available sst and sd then it becomes like below - 
8 bit sst     -  24 bit sd
0000 0011 -  0000 0011 0000 0110 0000 1001
s-NSSAI -> 0000 0011 0000 0011 0000 0110 0000 1001 -> which is in decimal 50529801.

SST value for 
eMBB - 1
URLLC - 2
MIoT - 3
V2X - 4


Source : 
23.003 : https://www.etsi.org/deliver/etsi_ts/123000_123099/123003/16.05.00_60/ts_123003v160500p.pdf
23.501 : https://www.etsi.org/deliver/etsi_ts/123500_123599/123501/16.06.00_60/ts_123501v160600p.pdf
38.331 : https://www.etsi.org/deliver/etsi_ts/138300_138399/138331/15.06.00_60/ts_138331v150600p.pdf

Thursday, October 22, 2020

Understanding RB in 5G

Let's Understand  SCS first.
As per the below table the subcarrier spacing is in the multiple of 15kHz .

 

Below is the NRB available as per the table provided by 3GPP Specification 38.101-2
But lets understand how to get 66RB/NRB/PRB from 100MHz with 120kHz subcarrier spacing  


To understand this we need to understand the concept of guard band.
Guard band is the spacing between two 5G band, this is to avoid interference between the band.
Below table provided by 3GPP Specification 38.101-2







The formula for calculating the guard band is as below.
Calculation for (CHBW x 1000 (kHz) - RB value x SCS x 12) / 2 - SCS/2
Now we will calculate how 66RB/NRB/PRB from 100MHz with 120kHz subcarrier spacing
As per the above calculation 
 (((100*1000) - (66*120*12))/2) - (120/2) =  (100000 - 95040)/2 -120/2 = 4960/2 - 120/2 = 2480 - 60 = 2420

2420 value is in kHz and need at the beginning and at the end of the band to guard it. 
Below table provided by 3GPP Specification 38.101-2


Now for 100 MHz in kHz is 100,000kHz
If we remove the guard band from the beginning of the band and end of the band then we get 95160kHz
100,000 kHz - 2420 kHz - 2420 kHz = 95160 kHz
Each sub carrier is of 120kHz which leads us to 793 sub carriers out of 95160 kHz 
95160 kHz /120 kHz  = 793 sub carriers
One RB consist 12 sub carrier.
so from 793 we get 793/12 = 66.083 ~ 66RB

Sunday, May 10, 2020

G's and N's in 5G

gNB, ng-eNB and en-gNB

You might come across this terms and this are utterly confusing.
Let's understand them one by one.




gNB-
gNB is the logical name for 5G radio node.
It's the pretty same as eNB in LTE.
There are various post as how the prefix arrived as 'g' here in 5G NodeB which points out towards a minutes of the RAN3#92 meeting from the year of 2016. Below are the important transcript snap from the meeting minutes.

-> Offline_46 (ZTE): – Find a proper name for “NB BS”
– various proposals, no agreement at first.
Vince Spatafora (AT&T): fNB?
Sivavakeesar Sivapathalingham (NEC): 5NB?
Sangeetha Banglae [sic] (Intel): gNB?”

Finally the award goe's to Sangeetha Bangale from Intel.
'g'  letter stands here for the generation - which interns indicates to new generation.


ng-eNB
'ng' stands for straightforward as next generation and there is no award for the guess. The 'ng' indicates a relation towards 5G. Now mind the word eNB on the second part of it. Which means this is related to LTE as well. Confusing right??
Let's make it simpler now -- This is indeed a eNB which interns uses it's conventional LTE air interface to connect with UE


en-gNB
en - stands here for enhanced. This is also similar to ng-eNB. Where instead of eB , the gNB is enhanced. Remember this is not ng-but en. Because g is already with the NB - gNB , which interns says the gNB is next generation and en indicates it is enhanced.
Which makes ir capable of talking with eNB's so that existing LTE infrastructure can be used.

gNB will be used in case of standalone 5G means in SA.
The en-gNB will be used in case of NSA/ENDC.

Monday, February 17, 2020

Difference between RRCResumeRequest and RRCResumeRequest1

There are two messages has been defined on 38.331 related to rrc resume request.
1. RRCResumeRequest 
2. RRCResumeRequest1

Only difference between this two message is the resumeIdentity used in it.

RRCResumeRequest  uses shortI-RNTI-Value as  resumeIdentity.
Where as RRCResumeRequest1 uses I-RNTI-Value as resumeIdentity. 

Selection of this messages while resuming the rrc connection depends on SIB1 content.
In SIB1 there is an IE - useFullResumeID
If this IE is present then UE shall use useFullResumeID (I-RNTI-Value) as  resumeIdentity  - which means it shall trigger RRCResumeRequest1.


5.3.13.3 Actions related to transmission of RRCResumeRequest or RRCResumeRequest1 message

The UE shall set the contents of RRCResumeRequest or RRCResumeRequest1 message as follows:
1> if field useFullResumeID is signalled in SIB1:
      2> select RRCResumeRequest1 as the message to use;
      2> set the resumeIdentity to the stored fullI-RNTI value;
1> else:
      2> select RRCResumeRequest as the message to use;

      2> set the resumeIdentity to the stored shortI-RNTI value;



SuspendConfig ::= SEQUENCE {
                           fullI-RNTI I-RNTI-Value,
                          shortI-RNTI ShortI-RNTI-Value,
                          ran-PagingCycle PagingCycle,
                          ran-NotificationAreaInfo RAN-NotificationAreaInfo OPTIONAL, -- Need M
                          t380 PeriodicRNAU-TimerValue OPTIONAL, -- Need R
                          nextHopChainingCount NextHopChainingCount,
...

}

UE will receive fullI-RNTI -> I-RNTI-Value and shortI-RNTI ->ShortI-RNTI-Value in RRCRelease message. 

Wednesday, July 24, 2019

5G Node Funtional Split - gNB , AMF, SMF, UPF

 Keeping it simple for clarity of understanding. Let's consider as two part : Part 1: NG-RAN  -->  gNB/ng-eNB Part2 : 5GC          --...