free5gc / free5gc-compose

Apache License 2.0
130 stars 134 forks source link

Xn Handover - Test (manually) #92

Open IgnacioCTO opened 7 months ago

IgnacioCTO commented 7 months ago

Hello everyone,

I have installed free5g compose succesfully and, I've been able to deploy all the containers including some smalls modifications to generate 2 different gNbs and 1 UE (using ueransim). Therefore, I have the usual containers for the core running and then, one container for each gNb (gnb1 and gnb2) and a third container acting as UE (ue), that is conected to one of them (i have included the IPs of both gnbs withing the config file of the UE).

Now, I would like to create a function/command to trigger the Xn Handover from one gNb to the other (ie from gnb1 to gnb2). I would like to know if this is already implemented or if you could give me some guidance on how to carry it out. The first idea that came to my mind is changing the UE from one cell to the other (from the cell of gnb1 to gnb2 cell), would that work out?

Thank you for your help and time,

Ignacio

linouxis9 commented 7 months ago

@IgnacioCTO FYI PacketRusher supports Xn Handover if needed: https://github.com/HewlettPackard/PacketRusher

IgnacioCTO commented 7 months ago

Hi @linouxis9 !

Thank you for your feedback. I saw that you are contributing to PacketRusher and, I was wodering if there is a way to access the gNBs like in UERANSIM, where you can directly send commands to trigger the handover manually.

On the other side, I tried running the command 'sudo ./packetrusher multi-ue -n 1 -xnh 3000 -idl 13000 -ngh 23000 --tunnel --dedicatedGnb' and I've got some errors, should I change something in the config file? ( I have already adapted it for the other tests )

Left side is the core

Capture d'écran 2024-02-08 153138

I am using a VM with free5gc for the core and another VM for PacketRusher.

linouxis9 commented 7 months ago

Hi @IgnacioCTO! Sadly, for now, there no easy way to access the gnB and you have to use timers. Can you open an issue on the repository? I'll take a look, thanks a lot!! Also please try to do a xnh without an idl, and idl without a xnh. Cheers, Valentin