Comments (12)
Hi,
For our test script, it's just check if we have install the all-in-one free5GC successfully. Because we are not implementing RAN and UE parted, most of the procedure of RAN and UE is hard code in test script. If you have different IP setting for cluster architecture, you may need to change the IP that are hard code inside test script.
Or the better way may be using a ran simulator to test it.
If you want to modify the test script, basically you can check src/test/registration_test.go and change the IP there.
from free5gc.
Thanks for the quick response, I think Ii prefer the option of using a simulator, in the past I used Openairtinterface to simulate 4G ue/enb but if anyone has an alternative 5G opensource simulator in mind should kindly let me know.
from free5gc.
@infinitydon I made small test tool based on free5GC registration test file. Please feel to add
https://bitbucket.org/sothy5/gnbsim/src/dev/
from free5gc.
@sothy Much thanks for this effort! I have checked the repo but how can I initiate a basic test? I could not find information on this.
from free5gc.
@infinitydon I didnt test well, if you compile and run, it should work.
go build main.go
./main
or go run main.go
from free5gc.
@sothy - I am getting some dependency errors:
reg/registration.go:6:2: cannot find package "github.com/free5gc/CommonConsumerTestData/UDM/TestGenAuthData" in any of:
/usr/local/go/src/github.com/free5gc/CommonConsumerTestData/UDM/TestGenAuthData (from $GOROOT)
/go/src/github.com/free5gc/CommonConsumerTestData/UDM/TestGenAuthData (from $GOPATH)
reg/registration.go:7:2: cannot find package "github.com/free5gc/CommonConsumerTestData/UDR/TestRegistrationProcedure" in any of:
/usr/local/go/src/github.com/free5gc/CommonConsumerTestData/UDR/TestRegistrationProcedure (from $GOROOT)
/go/src/github.com/free5gc/CommonConsumerTestData/UDR/TestRegistrationProcedure (from $GOPATH)
util/db/mangodb.go:6:2: cannot find package "github.com/free5gc/MongoDBLibrary" in any of:
/usr/local/go/src/github.com/free5gc/MongoDBLibrary (from $GOROOT)
/go/src/github.com/free5gc/MongoDBLibrary (from $GOPATH)
ran/ran_ue_context.go:7:2: cannot find package "github.com/free5gc/UeauCommon" in any of:
/usr/local/go/src/github.com/free5gc/UeauCommon (from $GOROOT)
/go/src/github.com/free5gc/UeauCommon (from $GOPATH)
ngap/build.go:6:2: cannot find package "github.com/free5gc/aper" in any of:
/usr/local/go/src/github.com/free5gc/aper (from $GOROOT)
/go/src/github.com/free5gc/aper (from $GOPATH)
ran/ran_ue_context.go:8:2: cannot find package "github.com/free5gc/milenage" in any of:
/usr/local/go/src/github.com/free5gc/milenage (from $GOROOT)
/go/src/github.com/free5gc/milenage (from $GOPATH)
ran/nas_helper.go:6:2: cannot find package "github.com/free5gc/nas" in any of:
/usr/local/go/src/github.com/free5gc/nas (from $GOROOT)
/go/src/github.com/free5gc/nas (from $GOPATH)
ran/nas_helper.go:7:2: cannot find package "github.com/free5gc/nas/nasMessage" in any of:
/usr/local/go/src/github.com/free5gc/nas/nasMessage (from $GOROOT)
/go/src/github.com/free5gc/nas/nasMessage (from $GOPATH)
reg/registration.go:12:2: cannot find package "github.com/free5gc/nas/nasTestpacket" in any of:
/usr/local/go/src/github.com/free5gc/nas/nasTestpacket (from $GOROOT)
/go/src/github.com/free5gc/nas/nasTestpacket (from $GOPATH)
reg/registration.go:13:2: cannot find package "github.com/free5gc/nas/nasType" in any of:
/usr/local/go/src/github.com/free5gc/nas/nasType (from $GOROOT)
/go/src/github.com/free5gc/nas/nasType (from $GOPATH)
ran/nas_helper.go:8:2: cannot find package "github.com/free5gc/ngap" in any of:
/usr/local/go/src/github.com/free5gc/ngap (from $GOROOT)
/go/src/github.com/free5gc/ngap (from $GOPATH)
ngap/build.go:7:2: cannot find package "github.com/free5gc/ngap/ngapConvert" in any of:
/usr/local/go/src/github.com/free5gc/ngap/ngapConvert (from $GOROOT)
/go/src/github.com/free5gc/ngap/ngapConvert (from $GOPATH)
ngap/build.go:8:2: cannot find package "github.com/free5gc/ngap/ngapType" in any of:
/usr/local/go/src/github.com/free5gc/ngap/ngapType (from $GOROOT)
/go/src/github.com/free5gc/ngap/ngapType (from $GOPATH)
ran/ran_ue_context.go:9:2: cannot find package "github.com/free5gc/openapi/models" in any of:
/usr/local/go/src/github.com/free5gc/openapi/models (from $GOROOT)
/go/src/github.com/free5gc/openapi/models (from $GOPATH)
util/amf.go:8:2: cannot find package "github.com/ishidawataru/sctp" in any of:
/usr/local/go/src/github.com/ishidawataru/sctp (from $GOROOT)
/go/src/github.com/ishidawataru/sctp (from $GOPATH)
Can you give a step by step guide on how to build this?
Also I checked https://bitbucket.org/sothy5/gnbsim/src/dev/reg/registration.go, seems I need to edit the following parameters that is inside the file:
const (
RANIPAddress = "127.0.0.1"
AMFIPAddress = "127.0.0.1"
RANSCTPPort = 38412
AMFSCTPPort = 9487
UDPDPPort = 2152
)
Please note that I am running the 5G components in individual PODs (i.e. not localhost), how can I configure your simulator in an environment like kubernetes?
NAME READY STATUS RESTARTS AGE
free5gc-amf-deployment-66744dbc4f-ndhqw 1/1 Running 0 13h
free5gc-ausf-deployment-6589ddd96f-rm6k5 1/1 Running 0 13h
free5gc-mongodb-0 2/2 Running 0 13h
free5gc-nrf-deployment-656b465db8-k2whf 1/1 Running 0 13h
free5gc-nssf-deployment-5bcdf56fc-t65cp 1/1 Running 0 13h
free5gc-pcf-deployment-759479f9bb-pjg2l 1/1 Running 0 13h
free5gc-smf-deployment-8d46888f4-tfwz4 1/1 Running 0 13h
free5gc-udm-deployment-694749d586-z22hr 1/1 Running 0 13h
free5gc-udr-deployment-765bcf5d8f-s9nkp 1/1 Running 0 13h
free5gc-upf-deployment-589ffdb69f-8ksq2 1/1 Running 0 13h
free5gc-webui-deployment-c56dfdfc-6xc9g 1/1 Running 0 70m
from free5gc.
@infinitydon quick answer is that you have to download one by one all dependency. For example,
go get github.com/free5gc/CommonConsumerTestData/UDM/TestGenAuthData
In my setup, I tried to activate go mod and tries to compile.
It gives me error. I dont know why?
build command-line-arguments: cannot load free5gc/lib/MongoDBLibrary/logger: cannot find module providing package
free5gc/lib/MongoDBLibrary/logger`
I dont know who is looking for this package. Do you have any place how do you create these pods in kubernetes? It means configuration files?
Free5gc is still using lib folder. It is not easy. Will see
from free5gc.
In kubernetes each 5G function has it's own service IP address like:
AMF - 192.168.2.2
SMF - 192.168.2.3
NRF - 192.168.2.5
AUSF - 192.168.2.4
NSSF - 192.168.2.6
UDM - 192.168.2.7
UDR - 192.168.2.8
UPF - 192.168.2.10
PCF - 192.168.2.9
Unfortunately I don't know much about the golang libraries.
from free5gc.
@sothy I think you need to update the dependency path because most of the free5gc component/libraries are now in their separate repos. See the screenshot below:
Maybe you might follow the way free5gc uses submodules in compiling (see the documentation).
from free5gc.
@infinitydon I dont use this way. I used golang way. It got failed. NO idea. Otherwise, I have to work this manner
Update: When I add GO11Module=off, it is compiled. Better you should have lib and let me know.
It is compiled or not
from free5gc.
I think it is fixed if you just do the following after cloning the repository:
git submodule init
git submodule update
Then the compilation should be okay as you will get all the libraries necessary.
from free5gc.
Hi, can you tell me how to create a cluster with k8s for the free5gc?
Thanks very much!
from free5gc.
Related Issues (20)
- [Feat] Improve/Correct the webconsole build behavior and update docs accordingly
- [Feat] 您好,想咨询一下AF和NEF功能大约什么时候发布? HOT 2
- VM of N3IWUE has slow upload in speedtest HOT 1
- Is multicast feature supported on V3.3.0 ? HOT 1
- [Docs] How to add subscriber via REST-API HOT 2
- free5gc SCTP could not connect HOT 11
- INSUFFICIENT_RESOURCES_FOR_SPECIFIC_SLICE_AND_DNN HOT 10
- [Feat]How can I set a static IP address for a UE? HOT 3
- [Bugs] N3IWUE fails to stablish network connection with N3IWF in v3.4.0 HOT 11
- Test free5GC HOT 6
- Duplicate Definition of t3555 Timer in amfcfg.yaml HOT 1
- [Feat]Options for Creating an sslkey.log HOT 1
- [Bug] UPF not working in Kubernetes Cluster HOT 5
- Profile B not implemented HOT 1
- [Bugs] Wrong Interface Type in PFCP Session Establishment Request for IP Based PDU Session HOT 5
- [Bugs] Sometime accept for the SCTP socket fails
- [Bugs] SMF panic on external (3rd party) CHF integration HOT 29
- [Bugs] HTTP PRI method appearing in distributed tracing HOT 1
- [Bugs] LGPL module is used in CHF HOT 1
- [Bugs] CHF uses unknown license module (github.com/fclairamb/afero-snd) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free5gc.