What is UE Context Setup Request in 5G F1AP?

It is the UE-associated message the gNB-CU sends to the gNB-DU to create a DU-side UE context, choose the SpCell, deliver CU-to-DU RRC information, and request setup of SRBs, DRBs, and related resources.

Who sends UE Context Setup Request?

The gNB-CU sends it to the gNB-DU over F1-C.

What are the most important IEs in UE Context Setup Request?

The core ones are gNB-CU UE F1AP ID, SpCell ID, ServCellIndex, CU to DU RRC Information, SRB To Be Setup List, DRB To Be Setup List, QoS Flow Level QoS Parameters, and UL UP TNL Information to Be Setup List.

Does UE Context Setup Request create the F1-U tunnel?

It provides the gNB-CU side UL transport endpoints for each DRB. The gNB-DU returns the corresponding DL endpoints in UE Context Setup Response.

When does the DU send UE Context Setup Failure instead of UE Context Setup Response?

The DU sends UE Context Setup Failure when it cannot establish the UE context, cannot accept the requested SpCell, or cannot establish even one bearer needed for the procedure.