- From: Manoj Kumar Ampalam <amk_141 AT yahoo.co.in>
- To: discussion AT sctp.de
- Subject: [SCTP-Discussion] sinfo_timetolive parameter not working
- Date: Thu May 12 08:12:01 2005
- List-id: SCTP Discussions <discussion.sctp.de>
I tried to check if sctp sender actually drops
messages if the message expires based on timetolive. I
modified the network conditions using dummynet and
configured a pipe with 0.95 percent loss rate (in
direction from sender to receiver).
I tried to observe sent packets using tcpdump on
sender side. I see that the same message/packet is
being retransmitted again and again even after 20
seconds while the 'timetolive' parameter for all
messages is only 4 seconds and I dont see any FWD TSN
packets in the process.
I have enclosed the code fragement I use for fixing
timetolive parameter and sending messages.
for (i=0; i>-1; i++)
{
sleep(1); // one message per second
*((int*)buf+4) = i; // buf is the message to
send.
// value 'i' acts as index to
// message
msg->msg_iov->iov_base = buf;
msg->msg_iov->iov_len=200; //size of message =200
msg->msg_flags=MSG_XPG4_2;
*((int*)(msg->msg_iov->iov_base))=i;
sri->sinfo_timetolive = 4; // setting ttl to 4ms
if (ext_sendmsg(*((int*)fd), msg, 0) < 0)
{
perror("sendmsg");
exit(1);
}
}
Am i doing anything wrong?
Any help in this regard will be greatly appreciated.
Thanks
Manoj.
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
- [SCTP-Discussion] sinfo_timetolive parameter not working, Manoj Kumar Ampalam, 05/12/2005
Archive powered by MHonArc 2.6.19+.