Unicast tft with multiple nodes

25 views
Skip to first unread message

David Anzola

unread,
Dec 20, 2025, 7:25:13 PM (4 days ago) Dec 20
to 5G-LENA-users
Hello everyone,

I am modifying the CttcNrV2xDemoSimple script in order to develop a custom routing algorithm where nodes will sending both unicast and broadcast messages to each other.

I need some assistance understanding how to set up unicast tft's between large amounts of nodes, as I haven't been able to find any example code showcasing this.

Is this an appropriate method? I have a strange issue where the node receiving a single unicast packet will 'receive' the that packet over and over infinitely instead of just once. 

    SidelinkInfo unicastSlInfo;
    unicastSlInfo.m_castType = SidelinkInfo::CastType::Unicast;
    unicastSlInfo.m_dstL2Id = group1dstL2Id;
    unicastSlInfo.m_rri = MilliSeconds(100);
    unicastSlInfo.m_pdb = delayBudget;
    unicastSlInfo.m_harqEnabled = harqEnabled;

    for (uint32_t i = 0; i < ueVoiceContainer.GetN(); ++i)
    {
        Ptr<Node> ue = ueVoiceContainer.Get(i);
        Ptr<NetDevice> ueDevice = ueNetDev.Get(i);
        Ipv4Address ueAddress=ue->GetObject<Ipv4>()->GetAddress(1,0).GetLocal();
        unicastSlInfo.m_dstL2Id=i+1;

       Ptr<LteSlTft> unicastTft=
        Create<LteSlTft>(LteSlTft::Direction::BIDIRECTIONAL, ueAddress, unicastPort, unicastSlInfo);
        nrSlHelper->ActivateNrSlBearer(Seconds(0.1), ueNetDev, unicastTft);
    }

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages