free5gc / free5gc-compose

Apache License 2.0
137 stars 141 forks source link

user plane traffic is not passing in UPF #19

Closed sothy closed 3 years ago

sothy commented 3 years ago

Hello, I deployed Free5GC with a single SMF and UPF. Then, I modifed gnbsim to send and receive icmp message. when traffic flows over UPF, I am getting following error.

2021-01-31T20:59:29Z` [DEBU][UPF][Util] Packet match with GTP-U header failed
2021-01-31T20:59:29Z [DEBU][UPF][Util] Find Rule for buffering test failed
2021-01-31T20:59:29Z [DEBU][UPF][Util] Pool Free successful, total capacity[16], available[16]
2021-01-31T20:59:29Z [TRAC][UPF][Util] Buffer Free Size[8192]
2021-01-31T20:59:29Z [DEBU][UPF][Util] Pool Free successful, total capacity[256], available[255]
2021-01-31T20:59:29Z [DEBU][UPF][Util] Error handling UP socket

My smf conf:

Info:
  version: 1.0.0
  description: AMF initial local configuration

configuration:
  smfName: SMF
  sbi:
    scheme: http
    registerIPv4: smf.free5gc.org # IP used to register to NRF
    bindingIPv4: smf.free5gc.org  # IP used to bind the service
    port: 29502
    tls:
      key: gofree5gc/support/TLS/smf.key
      pem: gofree5gc/support/TLS/smf.pem
  serviceNameList:
    - nsmf-pdusession
    - nsmf-event-exposure
  snssai_info:
    - sNssai:
        sst: 1
        sd: 010203
      dnnSmfInfoList:
        - dnn: internet
    - sNssai:
        sst: 1
        sd: 112233
      dnnSmfInfoList:
        - dnn: internet
  pfcp:
    addr: smf.free5gc.org
  userplane_information:
    up_nodes:
      gNB1:
        type: AN
        an_ip: 192.188.2.3
      UPF:
        type: UPF
        node_id: upf1.free5gc.org
    links:
      - A: gNB1
        B: UPF
  dnn:
    internet:
      dns:
        ipv4: 8.8.8.8
        ipv6: 2001:4860:4860::8888
    internet2:
      dns:
        ipv4: 8.8.4.4
        ipv6: 2001:4860:4860::8844
  ue_subnet: 60.60.0.0/16
  nrfUri: http://nrf.free5gc.org:29510

My UPF conf:

ubuntu@ub18-vm-2:~/free5gc-compose$ cat config/upfcfg1.yaml 
info:
  version: 1.0.0
  description: UPF configuration

configuration:
  # debugLevel: panic|fatal|error|warn|info|debug|trace
  debugLevel: trace

  pfcp:
    - addr: upf1.free5gc.org

  gtpu:
    - addr: upf1.free5gc.org
    # [optional] gtpu.name
    # - name: upf.5gc.nctu.me
    # [optional] gtpu.ifname
    # - ifname: gtpif

  dnn_list:
    - dnn: internet
      cidr: 60.60.0.0/24
      # [optional] apn_list[*].natifname
      # natifname: eth0

I observed PFCP message and GTP tunnel are ok. Pls tell me where is problem? Thanks

abousselmi commented 3 years ago

Hi @sothy

The configuration looks fine. I cannot tell why the traffic fails to flow through the UPF. You say you modified gnbsim and this could be the cause of your problem. Do you have any updates on this ?