docker-free5gc icon indicating copy to clipboard operation
docker-free5gc copied to clipboard

UPF turned off after few requests

Open nathalie21005 opened this issue 2 years ago • 3 comments

Hi @abousselmi,

I am trying to send multiple request like (Register, PDU Session release,..) using 4 UEs. But I after few minutes the upf is turning down and not able to handle the request any more. Do you have any idea? Capture1 Error message: Host lookup failed: lookup upf.free5gc.org no such host

Regards, Nathalie Wehbe

nathalie21005 avatar May 10 '22 14:05 nathalie21005

Hi @nathalie21005 ,

If you say the upf is crashing it should be normal that URANSIM is not able to reach it. I'p not sure if docker will continue resolving the fqdn of a dead container, but anyway, do you have the error logs of the upf?

Regards,

abousselmi avatar May 21 '22 22:05 abousselmi

Hi @abousselmi, I found the problem and the fix, and I suggest to modify it in this project too. The problem is the size of the buffer of the upf, so I modified the code by multiplying the buffer size by 32. under this upf\lib\utlt\src path the file is utlt_buff.c. The code I modified is the following: #define MAX_NUM_OF_BUFBLK_POOL 256 * 32

#define MAX_NUM_OF_BUFBLK_POOL_64 128 * 32 #define MAX_NUM_OF_BUFBLK_POOL_128 128 * 32 #define MAX_NUM_OF_BUFBLK_POOL_256 128 * 32 #define MAX_NUM_OF_BUFBLK_POOL_512 64 * 32 #define MAX_NUM_OF_BUFBLK_POOL_1024 64 * 32

Regards, Nathalie

nathalie21005 avatar May 22 '22 00:05 nathalie21005

Hi @nathalie21005,

Thanks for sharing this feedback, it will for sure help other users and devs. I don't think adding the change to the free5gc-compose project will be a good move.

But I suggest that you create a PR in the free5gc/upf project and check with @free5gc-org to make sure that this doesn't produce regression down the road.

Regards,

abousselmi avatar May 22 '22 19:05 abousselmi