HewlettPackard / HewlettPackard/PacketRusher

[FEATURE] free5GC Rel-17 data model

Open
#175 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
193
Forks
47
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
PacketRusher is currently using free5gc/nas v1.1.3 and free5gc/ngap v1.0.8.
The latest versions are free5gc/nas v1.1.4 and free5gc/ngap v1.0.9.

**Describe the solution you'd like**
PacketRusher should upgrade to use free5gc/nas v1.1.4 and free5gc/ngap v1.0.9, but it contains breaking changes.

**Describe alternatives you've considered**
PacketRusher could stay with the previous version and not take advance of upcoming changes in free5GC libraries.

**Additional context**
I pulled the upgrades but it upgraded free5gc/openapi from v1.0.8 to v1.0.9-0.20250102055216-bb5814d1e736.
That version comes from their `feat/r17` branch: https://github.com/free5gc/openapi/tree/bb5814d1e736dfd65232e717ff2199a395e95847
This in turn causes the following errors in PacketRusher:

```text
ubuntu@N0:~/PacketRusher$ make
go build cmd/packetrusher.go
# my5G-RANTester/internal/control_test_engine/ue/context
internal/control_test_engine/ue/context/context.go:558:40: authSubs.Opc undefined (type models.AuthenticationSubscription has no field or method Opc)
internal/control_test_engine/ue/context/context.go:560:47: authSubs.Opc undefined (type models.AuthenticationSubscription has no field or method Opc)
internal/control_test_engine/ue/context/context.go:562:38: authSubs.PermanentKey undefined (type models.AuthenticationSubscription has no field or method PermanentKey)
internal/control_test_engine/ue/context/context.go:564:45: authSubs.PermanentKey undefined (type models.AuthenticationSubscription has no field or method PermanentKey)
internal/control_test_engine/ue/context/context.go:566:33: cannot use authSubs.SequenceNumber (variable of type *models.SequenceNumber) as string value in argument to hex.DecodeString
internal/control_test_engine/ue/context/context.go:587:28: cannot use fmt.Sprintf("%08x", sqnHn) (value of type string) as *models.SequenceNumber value in assignment
internal/control_test_engine/ue/context/context.go:650:35: ue.UeSecurity.AuthenticationSubs.PermanentKey undefined (type models.AuthenticationSubscription has no field or method PermanentKey)
internal/control_test_engine/ue/context/context.go:650:58: undefined: models.PermanentKey
internal/control_test_engine/ue/context/context.go:653:35: ue.UeSecurity.AuthenticationSubs.Opc undefined (type models.AuthenticationSubscription has no field or method Opc)
internal/control_test_engine/ue/context/context.go:653:49: undefined: models.Opc
internal/control_test_engine/ue/context/context.go:653:49: too many errors
make: *** [Makefile:2: all] Error 1
```

Please suggest whether PacketRusher should attempt this upgrade or stay with release-16.

Contributor guide

Open the contributing guide

Research direction

Start with internal/control_test_engine/ue/context/context.go around the reported authentication subscription errors, then run make to reproduce the build failure. Compare the free5GC Rel-17 model changes with PacketRusher's current use of nas, ngap, and openapi, and document whether compatibility can be implemented; done means the chosen release direction is clear and the project builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.