Amazing technological breakthrough possible @S-Logix

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • +91- 81240 01111

Social List

How to attach queue length in ip header of the packet using NS2?


The queue length of the packet is attached in ip header of the packet and it is accessed in routing layer to find the current traffic status of the node.

C++ part :

struct hdr_cmn *ch = HDR_CMN(p);
struct hdr_ip *ih = HDR_IP(p);
int p_len = q_->length();
ih->qlengt_ = p_len;