NGAP Load Balancing with LoxiLB and free5GC (L7 load-balancer) #967
-
I'm trying to implement SCTP load balancing for Free5GC AMF using LoxiLB, but encountering connection issues. Here's my setup: this is how I implement in very detail NGAP Load Balancing with LoxiLB using free5GC this note open to edit! welcome any suggestions for improving this setup, corrections to my configurations, or alternative approaches. Feel free to point out if I'm misunderstanding any If you need any additional information or logs, I'll be happy to provide them. Environment:
Configuration:
Current Setup:
docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --entrypoint=/root/loxilb-io/loxilb/loxilb --net=host --name loxilb ghcr.io/loxilb-io/loxilb:scp --proxyonlymode Deploy kube-loxilb
Modify the AMF serviceModify the AMF service to use LoadBalancer type and add LoxiLB annotations
change: amf:
n2if: # NGAP
ipAddress: 10.100.50.250
service:
ngap:
enabled: false
name: amf-n2
port: 38412
nodeport: 31412
protocol: SCTP
type: NodePort to: amf:
n2if: # NGAP
ipAddress: 10.100.50.251
service:
ngap:
enabled: true
name: amf-n2
port: 38412
protocol: SCTP
type: LoadBalancer
loadBalancerClass: "loxilb.io/loxilb" #
annotations:
loxilb.io/probetype: "none"
loxilb.io/lbmode: "fullproxy"
loxilb.io/epselect: "n2"
loxilb.io/lbclass: "loxilb.io/loxilb"
amf2:
n2if: # NGAP
ipAddress: 10.100.50.252
service:
ngap:
enabled: true
name: amf2-n2
port: 38412
protocol: SCTP
type: LoadBalancer
loadBalancerClass: "loxilb.io/loxilb" #
annotations:
loxilb.io/probetype: "none"
loxilb.io/lbmode: "fullproxy"
loxilb.io/epselect: "n2"
loxilb.io/lbclass: "loxilb.io/loxilb" gnb can't find AMF###have no ct
so I create lb by my own and still can't establish connection
Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello, I reviewed the document you posted about "NGAP Load Balancing with LoxiLB using Free5GC." LoxiLB is running independently outside of Kubernetes. In this case, Kubernetes likely doesn't have a route configuration for directing packets to the external IP In other words, I believe you need to add a route to the Kubernetes nodes to ensure that packets sent from the gNB are correctly delivered to LoxiLB. |
Beta Was this translation helpful? Give feedback.
-
Kindly try creating the rules manually as follows (add "select=n2" ) as follows -
Further I have some questions :
Further we have some more enhancements in L7 NGAP support. Request to use the image |
Beta Was this translation helpful? Give feedback.
-
Thanks @williamlin0518 @backguynn. The final blog is live here . |
Beta Was this translation helpful? Give feedback.
Thanks @williamlin0518 @backguynn. The final blog is live here .