Yes, you can only Peek a specific header if there are no other headers
in front of it. If you need to access a header that is not at the head
of the packet, you need to remove those prepended header(s) first.
You can possibly work around this by tagging the packet (ns-3 Packet
tag) and performing the actual mark when it leaves the other
NrNetDevice. For instance, when entering the NrNetDevice, define a new
Packet tag type that copies the ECN byte into it. When you need to
inspect at the RLC layer after the PDCP header has been prepended, use
the Packet API to find the tag and read it. If needed to mark the
packet (from ECT-1 to CE), call Packet::ReplacePacketTag() to update the
value. Then, just before the packet leaves the egress NrNetDevice,
fetch the tag again and ensure that the ECN value is updated if needed.
On 10/3/24 09:10, Maria Eduarda Veras Martins wrote:
> The "error" is actually in the PDCP layer. If you try to access the IPv4
> header after adding the PDCP header, the IP header always remains null.
> Is this expected behavior?
> Screenshot from 2024-10-03 13-03-25.png
>
>
> Em qui., 3 de out. de 2024 às 11:14, Kent Huns
> <
kent.sa...@gmail.com <mailto:
kent.sa...@gmail.com>> escreveu:
>
> You can check if the 0 value is truly "numeric 0" or "null".
> ....sorry, I have no more ideas. I don't know at all about the
> upper layer.
>
> On Thu, Oct 3, 2024 at 10:17 PM Maria Eduarda Veras Martins
> <
me...@cin.ufpe.br <mailto:
me...@cin.ufpe.br>> wrote:
>
> Hi Kent!
>
> I saw in the issue that *apparently* RLC-AM is working fine, but
> when I tried to retrieve the ECN it still exhibited the same
> behavior.
> Screenshot from 2024-10-03 10-05-27.png
> Do you know anything about it?
>
> Thank you,
> Maria.
>
> Em qui., 3 de out. de 2024 às 09:41, Kent Huns
> <
kent.sa...@gmail.com <mailto:
kent.sa...@gmail.com>>
> Captura de tela 2024-10-02 151249.png
>
> I am obtaining the ECN as follows:
> Captura de tela 2024-10-02 151343.png
>
> (I am not sure if I should post here or on ns3-users. If
> there is any issue, I can delete it later.)
>
> Kind Regards,
> Maria.
>
> --
> You received this message because you are subscribed to the
> Google Groups "5G-LENA-users" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to
>
5g-lena-user...@googlegroups.com
> <mailto:
5g-lena-user...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/5g-lena-users/a08494a7-0dfd-497d-aa59-0e285f3547c0n%40googlegroups.com <
https://groups.google.com/d/msgid/5g-lena-users/a08494a7-0dfd-497d-aa59-0e285f3547c0n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "5G-LENA-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
5g-lena-user...@googlegroups.com
> <mailto:
5g-lena-user...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/5g-lena-users/CAEdnndnqdJ6O901VUEr8zwf%2BG91KPdHSR5Q_EJmyvjTdSaEibw%40mail.gmail.com <
https://groups.google.com/d/msgid/5g-lena-users/CAEdnndnqdJ6O901VUEr8zwf%2BG91KPdHSR5Q_EJmyvjTdSaEibw%40mail.gmail.com?utm_medium=email&utm_source=footer>.