On 4/7/22 01:46, Geovany Teca wrote:
> Hi Everyone,
> I am simulating a Wireless Local Network (Wi-Fi) using an On-Off
> application traffic generator as shown below. I am able to see the
> content of probe request/response, association request/response,
> beacon, and ACK, but for the 802.11 Data frame, it shows me a
> Malformed Packet error. From Wireshark, it seems that the protocol
> versions field is set to 2, the allowed value for this field according
> to the 802.11 standard is 0x00, but the thing is that I don't change
> the Header of any frame that is exchanged. I took the third.cc
> tutorial and I am able to see UDP frames in the CSMA network, but when
> I implemented the same UDP application for Wi-Fi the Data frame in
> Wireshark has the same Malformed Packet error. Is the problem with
> Wireshark, that it cannot read 802.11 Data frames or ns-3 is not
> generating 802.11 data frames properly? Thank you in advance for any
> explanation or help.
> PS: Wireshark error also attached.
>
> Best regards
> Geovani
I can't reproduce your problem (using ns-3-dev) on our existing examples
that use UDP and TCP. For instance, I ran:
$ ./ns3 run 'wifi-simple-ht-hidden-stations --nMpdus=4 --enableRts=1'
and looked at the Pcap under Wireshark and, once I disabled FCS checking
in 'IEEE 802.11', 'UDP', 'IPv4', and 'TCP' protocols in the preferences,
all of the frames are accepted by Wireshark.
Similarly, this also produces good output for me:
$ ./ns3 run 'wifi-tcp --pcap=1'
Can you please try the above examples? If they are OK, then perhaps
there is some problem with the modified program that you are using (I
think you would have to share the program for us to look further).
- Tom