Skip to content

Commit

Permalink
wip close #23
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Dec 18, 2024
1 parent 391cb79 commit 3cf6cd9
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
21 changes: 21 additions & 0 deletions jsonapi/n1n2/handover_command.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

import (
"net/netip"

"github.com/nextmn/json-api/jsonapi"
)

// Handovercommand is sent by the CP to the source gNB to start the execution of handover, and forwarded to the UE
type HandoverCommand struct {
UeCtrl jsonapi.ControlURI `json:"ue-ctrl"`
Cp jsonapi.ControlURI `json:"cp"`
Sessions []netip.Addr `json:"sessions"`
gNBSource jsonapi.ControlURI `json:"gnb-source"`
gNBTarget jsonapi.ControlURI `json:"gnb-target"`
}
11 changes: 11 additions & 0 deletions jsonapi/n1n2/handover_confirm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

// HandoverConfirm is send by the target UE to the target gNB after the UE is synchronized to the new cell
type HandoverConfirm struct {
Command HandoverCommand `json:"handover-command"`
}
11 changes: 11 additions & 0 deletions jsonapi/n1n2/handover_notify.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

// HandoverNotify is send by the target gNB to the CP after handover have been confirmed by the UE
type HandoverNotify struct {
Command HandoverCommand `json:"handover-command"`
}
10 changes: 10 additions & 0 deletions jsonapi/n1n2/handover_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

// HandoverRequest is send by the CP to the target gNB during the handover preparation phase
type HandoverRequest struct {
}
10 changes: 10 additions & 0 deletions jsonapi/n1n2/handover_request_ack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

// HandoverRequestAck is send by the target gNB to the CP in response to an HandoverRequest
type HandoverRequestAck struct {
}
19 changes: 19 additions & 0 deletions jsonapi/n1n2/handover_required.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2024 Louis Royer and the NextMN contributors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
// SPDX-License-Identifier: MIT

package n1n2

import (
"net/netip"

"github.com/nextmn/json-api/jsonapi"
)

// HandoverRequired is send by the source gNB to the CP to start the handover preparation phase
type HandoverRequired struct {
Ue jsonapi.ControlURI `json:"ue"`
PduSessions []netip.Addr `json:"pdu-sessions"` // list of all pdu sessions of the UE to be moved
TargetgNB jsonapi.ControlURI `json:"target-gnb"`
}

0 comments on commit 3cf6cd9

Please sign in to comment.