[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CBR packet
Hi Haobo,
thanks for your answer.
There is perhaps a simpler solution to my problem.
In fact I want to send busrt of packets and flag the first packet of the
busrt.
I already modify CBR to send burst.
I add to cbr.cc :
void CBR_Burst_Traffic::timeout()
{
if (! running_)
return;
/* send a packet */
// The test tcl/ex/test-rcvr.tcl relies on the "NEW_BURST" flag
being
// set at the start of any exponential burst ("talkspurt").
if (Burst_ == 0)
agent_->sendmsg(size_, "NEW_BURST");
else
agent_->sendmsg(size_);
/* figure out when to send the next one */
nextPkttime_ = next_interval(size_);
/* schedule it */
if (nextPkttime_ > 0)
timer_.resched(nextPkttime_);
}
to mark the first packet of a burst. (I don't know if this function
really do that?)
However I am not able to check in my OTcl program when I recieve a
packet with the NEW_BURST flag.
Can you help me?
Do you have even a simpler solution to my problem.
Thanks,
Arnaud.
--
----------------------------------------------------------------------
Arnaud Legout
Institut Eurecom Phone : 00.33.4.93.00.26.61
2229, route des Cretes Fax : 00.33.4.93.00.26.27
BP 193 E-mail: [email protected]
06904 Sophia Antipolis cedex Web : http://www.eurecom.fr/~legout
FRANCE
----------------------------------------------------------------------