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!