Giter Club home page Giter Club logo

Comments (12)

free5gc-org avatar free5gc-org commented on May 18, 2024

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.

infinitydon avatar infinitydon commented on May 18, 2024

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.

sothy avatar sothy commented on May 18, 2024

@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.

infinitydon avatar infinitydon commented on May 18, 2024

@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.

sothy avatar sothy commented on May 18, 2024

@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.

infinitydon avatar infinitydon commented on May 18, 2024

@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.

sothy avatar sothy commented on May 18, 2024

@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.

infinitydon avatar infinitydon commented on May 18, 2024

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.

infinitydon avatar infinitydon commented on May 18, 2024

@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:

image

Maybe you might follow the way free5gc uses submodules in compiling (see the documentation).

from free5gc.

sothy avatar sothy commented on May 18, 2024

@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.

endrigoshi avatar endrigoshi commented on May 18, 2024

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.

liyinxin avatar liyinxin commented on May 18, 2024

Hi, can you tell me how to create a cluster with k8s for the free5gc?
Thanks very much!

from free5gc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.