Giter VIP home page Giter VIP logo

Comments (9)

myonlystarWang avatar myonlystarWang commented on June 6, 2024 1

OK, I see.
What about your open5gs docker-compose.yaml setting?
In the amf setting:
Did you uncomment the #port #38412?

from docker_open5gs.

myonlystarWang avatar myonlystarWang commented on June 6, 2024

Hi
I met the same issue,but finally solved.
My network topology is as follows:

   ((open5gs+kamalio docker)deployed in VM1) <--------------------->(UERANSIM deployed in VM2)
       VM ip: 192.168.120.130/24                                        VM ip: 192.168.120.126/24 

Thats is in the open5gs-gnb.yaml of UERANSIM,you should modify the linkIp ngapIp gtpIp to your real used ip,for me it is 192.168.120.126(for your case,it should be 172.18.56.*)

from docker_open5gs.

sumitsimplex avatar sumitsimplex commented on June 6, 2024

Thank you for your answer. My setup is slightly different.

((open5gs docker-compose))  <---DOCKER_HOST---->  ((UERANSIM docker-compose with "bridge" n/w mode))
"Subnet": "172.22.0.0/24"      172.18.56.177        "Subnet": "172.17.0.0/16", "Gateway": "172.17.0.1"

I can ping docker host from UERANSIM container.

# ping 172.18.56.177
PING 172.18.56.177 (172.18.56.177) 56(84) bytes of data.
64 bytes from 172.18.56.177: icmp_seq=1 ttl=37 time=2.96 ms
64 bytes from 172.18.56.177: icmp_seq=2 ttl=37 time=2.35 ms_

Also I did set all three values along with the amfConfigs, here...

mcc: '001'          # Mobile Country Code value
mnc: '01'           # Mobile Network Code value (2 or 3 digits)

nci: '0x000000010'  # NR Cell Identity (36-bit)
idLength: 32        # NR gNB ID length in bits [22...32]
tac: 1              # Tracking Area Code

linkIp: 172.17.0.2   # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
ngapIp: 172.17.0.2   # gNB's local IP address for N2 Interface (Usually same with local IP)
gtpIp: 172.17.0.2    # gNB's local IP address for N3 Interface (Usually same with local IP)

# List of AMF address information
amfConfigs:
  - address: 172.18.56.177
    port: 38412

# List of supported S-NSSAIs by this gNB
slices:
  - sst: 1

# Indicates whether or not SCTP stream number errors should be ignored.
ignoreStreamIds: true

But I can't understand what I am doing wrong that SCTP connection doesn't work for me?

# build/nr-gnb -c config/open5gs-gnb.yaml
UERANSIM v3.1.9
[2021-08-07 18:46:05.259] [sctp] [info] Trying to establish SCTP connection... (172.18.56.177:38412)
[2021-08-07 18:51:09.640] [sctp] [error] Connecting to 172.18.56.177:38412 failed. SCTP could not connect: Connection timed out

from docker_open5gs.

herlesupreeth avatar herlesupreeth commented on June 6, 2024

Rightly pointed out. You need to uncomment ports 38412 under amf section of your docker compose file

from docker_open5gs.

sumitsimplex avatar sumitsimplex commented on June 6, 2024

I did that already. All required ports are mapped.
Screenshot 2021-08-08 at 09 46 29

from docker_open5gs.

sumitsimplex avatar sumitsimplex commented on June 6, 2024

OK, I see.
What about your open5gs docker-compose.yaml setting?
In the amf setting:
Did you uncomment the #port #38412?

yes

from docker_open5gs.

herlesupreeth avatar herlesupreeth commented on June 6, 2024

I can think of two things

  1. If you are using Windows to run the containers by any change then its not possible due to lack of SCTP support
  2. Can you run the below command on the host machine and send me the output?

sudo netstat -tuplnS | grep 38412

from docker_open5gs.

sumitsimplex avatar sumitsimplex commented on June 6, 2024

Yes I am using windows. May be it's windows that lack support for sctp.
So netstat doesn't work as it in windows, lacks some flags but looking at the output for netstat -n don't think it has port 38412 anywhere. But also I can't even see 3000 which is webui which is working fine.

These are the flags available in windows
NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval]

from docker_open5gs.

herlesupreeth avatar herlesupreeth commented on June 6, 2024

Closing this as the repo is not tested in Windows OS

from docker_open5gs.

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.