Sending Packet Tag via TCP connection

106 views
Skip to first unread message

Sakshi

unread,
May 9, 2014, 2:34:51 AM5/9/14
to ns-3-...@googlegroups.com
Hello,

I am sending packet tag via TCP connection. Packet tag consist data-type of uint32_t. But packet tags are not received correctly in receiver side.

I tried tracing it. Till TcpSocketBase::Send function packets are maintaining same tag as it was send.

But while extracting it from buffer in function TcpSocketBase::Recv it is not received correctly.

Pl do reply asap.

Thank you,

Rgds,
Sakshi

Konstantinos

unread,
May 9, 2014, 5:18:18 AM5/9/14
to ns-3-...@googlegroups.com
TCP is a byte-stream protocol. So each packet that you generate from the application and you add the tag, is converted in a byte stream, and packets-tags are lost.
So, perhaps if you add a byte-tag instead of packet-tag, you will be able to see it on the receiver.

sakshi chourasia

unread,
May 9, 2014, 8:37:59 AM5/9/14
to ns-3-...@googlegroups.com
Thanks Konstantinos.


--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/CHRRVxCXSo8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Sakshi Chourasia,
MS Scholar,
Department of CSE,
IIT Madras.
Reply all
Reply to author
Forward
0 new messages