← Back to team overview

rohc team mailing list archive

Re: [Question #276107]: Current CID in use

 

Question #276107 on rohc changed:
https://answers.launchpad.net/rohc/+question/276107

    Status: Open => Needs information

Didier Barvaux requested more information:
Hello,

>  Didier is it possible when we call c_create_context() if no usable context
> found can we recycle all the contexts which does have the value more than
> like rtp time out (20 > now.sec - c->latest_used) ? In that way we might free
> few contexts which were not being used.

I would like to better understand your situation, so I'll try to
rephrase it and ask you some questions.

The current ROHC compressor does not use a timeout value for contexts. The ROHC compressor prefers using:
 a/ a free context (if any)
 b/ recycle the least used context (if no free context is found)

If I understand correctly, you would like in case b/ that the ROHC
compressor frees more than one context (ie. all contexts that were not
used since a defined timeout delay). Is my understanding correct?

If yes, what is the gain that you expect? It won't improve compression
ratio. Maybe it will save some CPU cycles searching for the right
context if you configured MAX_CID=16384 and many of your flows are short
lived.

The purpose of those questions are for my understanding of your
scenarios and goals. The ROHC compressor does not allow users to
interact with the way it selects a compression context, adding some API
to customize the packet classifier and the context recycling might be a
great way to improve the library. Tell me more please.

Regards,
Didier

-- 
You received this question notification because your team ROHC Team is
an answer contact for rohc.