amf

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilCtx = errors.New("nil context")
)

Functions

func Status

func Status(c *gin.Context)

get status of the controller

Types

type Amf

type Amf struct {
	// contains filtered or unexported fields
}

func NewAmf

func NewAmf(bindAddr netip.AddrPort, control jsonapi.ControlURI, userAgent string, smf *smf.Smf) *Amf

func (*Amf) Context added in v0.0.3

func (amf *Amf) Context() context.Context

func (*Amf) EstablishmentRequest

func (amf *Amf) EstablishmentRequest(c *gin.Context)

func (*Amf) HandleEstablishmentRequest added in v0.0.3

func (amf *Amf) HandleEstablishmentRequest(ps n1n2.PduSessionEstabReqMsg)

func (*Amf) HandleHandoverNotify added in v0.0.3

func (amf *Amf) HandleHandoverNotify(m n1n2.HandoverNotify)

Handover Notify is send by the target gNB to the Control Plane. Upon the reception of Handover Notify, the Control Plane may: 1. update DL rule in the UPF-i if direct forwarding was used 2. create new DL rules if sourceArea != targetArea 3. release old DL rules if sourceArea != targetArea 4. release rules for the old UL path (from source upf-i to source upf-a) if target area != source area: 5. release forwarding DL rule in UPF-i if sourceArea != targetArea

func (*Amf) HandleHandoverRequestAck added in v0.0.3

func (amf *Amf) HandleHandoverRequestAck(m n1n2.HandoverRequestAck)

Handover Request Ack is send by the target gNB to the Control Plane. Upon reception of Handover Request Ack, the Control Plane: 1. if indirect forwarding is used: configure UPF-i with a DL rule to target gNB (existing DL rule to source gNB is preserved until Handover Notify reception) 2. send Handover Command to source gNB

func (*Amf) HandleHandoverRequired added in v0.0.3

func (amf *Amf) HandleHandoverRequired(m n1n2.HandoverRequired)

Handover Required is send by the source gNB to the Control Plane. Upon reception of Handover Required, the Control Plane 1. configure new UL path for each session 2. send an Handover Request to the target gNB with the configured UL FTEIDs

func (*Amf) HandleN2EstablishmentResponse added in v0.0.3

func (amf *Amf) HandleN2EstablishmentResponse(ps n1n2.N2PduSessionRespMsg)

func (*Amf) HandoverNotify added in v0.0.3

func (amf *Amf) HandoverNotify(c *gin.Context)

func (*Amf) HandoverRequestAck added in v0.0.3

func (amf *Amf) HandoverRequestAck(c *gin.Context)

func (*Amf) HandoverRequired added in v0.0.3

func (amf *Amf) HandoverRequired(c *gin.Context)

func (*Amf) N2EstablishmentResponse

func (amf *Amf) N2EstablishmentResponse(c *gin.Context)

func (*Amf) Start

func (amf *Amf) Start(ctx context.Context) error

func (*Amf) WaitShutdown

func (amf *Amf) WaitShutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL