free5gc / smf

Apache License 2.0
16 stars 89 forks source link

Infinite loop in SMF association #66

Closed aviweit closed 1 year ago

aviweit commented 1 year ago

Hi,

If for example, a user accidentally specifies a wrong UPF ipaddress/fqdn in smfcfg.yaml, or a UPF becomes unreachable then SMF enters an infinite loop as in the below snippet:

...
smf              | 2023-01-09T12:40:46Z [WARN][LIB][PFCP] Host lookup failed: lookup upfy.free5gc.org on 127.0.0.11:53: no such host
smf              | 2023-01-09T12:40:46.110531355Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.111507851Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.111688325Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.11194104Z [INFO][SMF][App] Sending PFCP Association Request to UPF[upfy.free5gc.org](0.0.0.0)
smf              | 2023-01-09T12:40:46Z [WARN][LIB][PFCP] Host lookup failed: lookup upfy.free5gc.org on 127.0.0.11:53: no such host
smf              | 2023-01-09T12:40:46.116318928Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.117371065Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.117531576Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.117777796Z [INFO][SMF][App] Sending PFCP Association Request to UPF[upfy.free5gc.org](0.0.0.0)
smf              | 2023-01-09T12:40:46Z [WARN][LIB][PFCP] Host lookup failed: lookup upfy.free5gc.org on 127.0.0.11:53: no such host
smf              | 2023-01-09T12:40:46.12364955Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.124610823Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.125053258Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.12526417Z [INFO][SMF][App] Sending PFCP Association Request to UPF[upfy.free5gc.org](0.0.0.0)
smf              | 2023-01-09T12:40:46Z [WARN][LIB][PFCP] Host lookup failed: lookup upfy.free5gc.org on 127.0.0.11:53: no such host
smf              | 2023-01-09T12:40:46.138944451Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.139087411Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.13919816Z [INFO][SMF][PFCP] received a request that is re-sent
smf              | 2023-01-09T12:40:46.139268451Z [INFO][SMF][App] Sending PFCP Association Request to UPF[upfy.free5gc.org](0.0.0.0)
...

I am using SMF main branch (commit ID: 74cf154) with free5gc-compose on Ubuntu 20.04 VM.

Thanks.