-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
391cb79
commit 3cf6cd9
Showing
6 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} |