SCTP Discussions

Text archives Help


[SCTP-Discussion] Bundling delay


Chronological Thread 
  • From: "ALLEGRET PILAUD Pierre RD-CORE-ISS" <pierre.allegret AT francetelecom.com>
  • To: <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] Bundling delay
  • Date: Wed Oct 27 13:07:00 2004
  • List-id: SCTP Discussions <discussion.sctp.de>

Title: Bundling delay

Hi to All,

As bundling is efficient for the CPU usage in load tests, I would like to have the possibility to change the default value implemented.

I don't see anything in the source concerning a timer so I have implemented modifications in the code :

distribution.h :
"#define BUNDLING_DELAY    30  /* delay to wait for bundling in ms */ "

Flowcontrol.c :
     int fc_check_for_txmit(…)
        {
        …/…
        int diff;
        struct timeval now;
        …/…
                result = bu_put_Data_Chunk((SCTP_simple_chunk *) dat->data, &destination);
                /* bundling delay modification */
        //        data_is_submitted = TRUE;
        //        adl_gettime(&(fc->cparams[destination].last_send_time));
                adl_gettime(&now);
                diff = adl_timediff_to_msecs(&now,&(fc->cparams[destination].last_send_time));
                if ( diff >= BUNDLING_DELAY ) // defined in distribution.h
                        {
                        data_is_submitted = TRUE; /* data must be sent */
                        adl_gettime(&(fc->cparams[destination].last_send_time)); /* time update of the last sending data

                        }
                /* end of modif */
 
I am not sure that it is the best way. Is somebody have a best idea to introduce such feature ?

Thanks for your answer.

Pierre Allégret



  • [SCTP-Discussion] Bundling delay, ALLEGRET PILAUD Pierre RD-CORE-ISS, 10/27/2004

Archive powered by MHonArc 2.6.19+.

Top of page