> Can I somehow print the values on the console.. Wouldn't placing something like this be suffecient : printf("Commom Header length=%d",ch->sizeno()); If you are using FullTCP you can also use: printf("TCP Header =%d",tcph->hlen()); I am new to NS, so take this will a bucket of salk :) Srijith