Documentation
¶
Overview ¶
Package n1n2 allow to simulate N1/N2 interface using a REST API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type N2PduSessionReqMsg ¶
type N2PduSessionReqMsg struct {
Cp jsonapi.ControlURI `json:"cp"`
UeInfo PduSessionEstabAcceptMsg `json:"ue-info"` // information to forward to the UE
// Uplink FTEID: the gNB will establish an Uplink GTP Tunnel using the following
Upf netip.Addr `json:"upf"`
UplinkTeid uint32 `json:"uplink-teid"`
}
N2PduSessionReqMsg is sent by the CP to the gNB to establish a PDU Session.
type N2PduSessionRespMsg ¶
type N2PduSessionRespMsg struct {
UeInfo PduSessionEstabAcceptMsg `json:"ue-info"` // used to identify the PDU Session
// Downlink FTEID: the CP will use this to configure a downlink GTP Tunnel in Upf-i
DownlinkTeid uint32 `json:"downlink-teid"`
Gnb netip.Addr `json:"gnb"`
}
N2PduSessionRespMsg is sent to the CP by the gNB as a response of N2PduSessionReqMsg.
type PduSessionEstabAcceptMsg ¶
type PduSessionEstabAcceptMsg struct {
Header PduSessionEstabReqMsg `json:"header"` // copy of the PDU Session Establishment Request Message
Addr netip.Addr `json:"address"` // IP Address attributed to the UE for this PDU Session
}
PduSessionEstabAcceptMsg is sent to the UE by the gNB when the PDU Session establishment is accepted.
type PduSessionEstabReqMsg ¶
type PduSessionEstabReqMsg struct {
Ue jsonapi.ControlURI `json:"ue"`
Gnb jsonapi.ControlURI `json:"gnb"`
Dnn string `json:"dnn"`
}
PduSessionEstabReqMessage is sent by the UE to the gNB (then forwarded by the gNB to the CP) to start the PDU Session Establishment Procedure.
type RadioPeerMsg ¶
type RadioPeerMsg struct {
Control jsonapi.ControlURI `json:"control"`
Data netip.AddrPort `json:"data"`
}
RadioPeerMsg is used to discover UEs/gNBs "radio" peers.
Click to show internal directories.
Click to hide internal directories.