Skip to content

Commit

Permalink
FIX: code block display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored Jul 20, 2023
1 parent ff1e1e3 commit 7c90fdc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/blog/UDM_introduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Upon reception of the Nudm_UEAuthentication_Get Request, the UDM shall de-concea
* SUPI: A globally unique 5G Subscription Permanent Identifier, used to identify UE.
* SUCI: Subscription concealed identifier, obtained by encrypting supi through the Home Network Public Key so that supi will not be obtained by a third party on the network.

```golang=
```golang
logger.UeauLog.Traceln("In GenerateAuthDataProcedure")

response = &models.AuthenticationInfoResult{}
Expand Down Expand Up @@ -61,7 +61,7 @@ Open the response packet, and we can see the response body matches the Authentic

After AUSF authenticates the UE, it will confirm the result with UDM. These details will be used in linking authentication confirmation to the Nudm_UECM_Registration procedure from AMF.

```golang=
```golang
func communicateWithUDM(ue *context.AmfUe, accessType models.AccessType) error {
ue.GmmLog.Debugln("communicateWithUDM")
amfSelf := context.GetSelf()
Expand Down Expand Up @@ -131,8 +131,8 @@ func communicateWithUDM(ue *context.AmfUe, accessType models.AccessType) error {
ue.ContextValid = true
return nil
}
```

*amf/internal/gmm/handler.go*

Next, let's take a look at this function. It is called in HandleInitialRegistration, which handles UE's initial registration. UeCmRegistration will use the Nudm_UECM (UECM) service to store related UE Context Management information in UDM. In lines 40, 47, and 54, AMF uses the Nudm_SubscriberDataManagement (SDM) Service to get some subscribe data.
Expand All @@ -142,7 +142,7 @@ In the UeCmRegistration function, AMF registers as UE's serving NF on UDM and st

![upload_c3e5e7c63f1bb7a934877e7fa29b82ec](https://github.com/Jerry0666/Network-function-UDM-introduction/assets/131638457/c24e6f2e-4193-4830-aa4f-e6edb97c1490)

```golang=
```golang
// TS 29.503 5.3.2.2.2
func RegistrationAmf3gppAccessProcedure(registerRequest models.Amf3GppAccessRegistration, ueID string) (
header http.Header, response *models.Amf3GppAccessRegistration, problemDetails *models.ProblemDetails,
Expand Down Expand Up @@ -218,7 +218,7 @@ The GPSI is used to address a 3GPP subscription in data networks outside the rea

In the SDMGetSmfSelectData function, AMF gets subscribed S-NSSAIs (Single Network Slice Selection Assistance Information) and Data Network Names for these S-NSSAIs. AMF will use this information to select an SMF that manages the PDU Session.

```golang=
```golang
func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) error {
ue.GmmLog.Infoln("Handle InitialRegistration")

Expand All @@ -241,7 +241,7 @@ func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) erro
In the initialization of HandleInitialRegistration, AMF sends a request to the UDM to receive the UE's NSSAI. After receiving subscribed NSSAI, AMF will compare it to UE's requested NSSAI. If there is a S-NSSAI that has not been subscribed before, AMF will request NSSF for Allowed NSSAI.
```golang=
```golang
func handleRequestedNssai(ue *context.AmfUe, anType models.AccessType) error {
amfSelf := context.GetSelf()

Expand Down

0 comments on commit 7c90fdc

Please sign in to comment.