Skip to contentSkip to conversation

How can i retrieve the ecn nonce information in a dccp datagram

DISCUSSION Ivo Augusto 3 participants 5 messages Jul 14, 2009 – Jul 31, 2009

lore
Share & tools
lore
#0 lore raw

Hi guys,
    I am working in the implementation of some features in CCID4 congestion control. Although, i'm with a trouble in the implementation of a feature.
One of the features that we're currently implementing is the handle of ECN nonce status.

However, we didn't know how we can access the ECN nonce information in the DCCP datagram. Can we access this information directly from the datagram or is there a predefined way to do that?

thanks,

Ivo

--
Ivo Augusto Andrade Rocha Calado
MSc. Candidate
Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br
Systems and Computing Department - http://www.dsc.ufcg.edu.br
Electrical Engineering and Informatics Center - http://www.ceei.ufcg.edu.br
Federal University of Campina Grande - http://www.ufcg.edu.br

PGP: 0x03422935
Quidquid latine dictum sit, altum viditur.

#1 lore raw

Ciao Ivo,

| However, we didn't know how we can access the ECN nonce information in
| the DCCP datagram. Can we access this information directly from the
| datagram or is there a predefined way to do that?
| 

The stock kernel does not support ECN bits.

It is really my fault, I forgot to announce that there is a separate tree to support ECN. This extends the ECN support to the extent that ECN bits can be modified and read even in userspace. There were also some programs to work with the userspace ECN modifications, and continuing work on this.

The tree is available from

git://eden-feed.erg.abdn.ac.uk/dccp_exp [subtree 'ecn']

http://eden-feed.erg.abdn.ac.uk/latest-ecn-subtree.diff.gz

http://eden-feed.erg.abdn.ac.uk/cgi-bin/gitweb.cgi?pÜcp_exp.git;a=shortlog;hìn

This is all from work several months ago, as said, I just forgot to activate/announce it. The patch is meant to be applied on top of the either the DCCP or CCID-4 tree.

Will also start posting the ECN-tree patches to the list.

Please post any further issues regarding ECN support, looking forward to hearing from you.

Gerrit

#2 lore raw
In reply to Ivo Augusto

I'm in the Linux Symposium, in Montreal, and there were some people asking about the DCCP feedback to the user space applications. The ECN bit is one of the requirements from them. So, it is very important to have this available as soon as possible.

Ivo, when I get back to the laboratory or to Brazil we can discuss more about this issue.

BR,
Leandro.

Quoted 36 lines · Gerrit Renker

Ciao Ivo,

| However, we didn't know how we can access the ECN nonce information in
| the DCCP datagram. Can we access this information directly from the
| datagram or is there a predefined way to do that?
|

The stock kernel does not support ECN bits.

It is really my fault, I forgot to announce that there is a separate tree to support ECN. This extends the ECN support to the extent that ECN bits can be modified and read even in userspace. There were also some programs to work with the userspace ECN modifications, and continuing work on this.

The tree is available from

 git://eden-feed.erg.abdn.ac.uk/dccp_exp [subtree 'ecn']

 http://eden-feed.erg.abdn.ac.uk/latest-ecn-subtree.diff.gz

 http://eden-feed.erg.abdn.ac.uk/cgi-bin/gitweb.cgi?pÜcp_exp.git;a=shortlog;hìn

This is all from work several months ago, as said, I just forgot to activate/announce it. The patch is meant to be applied on top of the either the DCCP or CCID-4 tree.

Will also start posting the ECN-tree patches to the list.

Please post any further issues regarding ECN support, looking forward to hearing from you.

Gerrit
--
To unsubscribe from this list: send the line "unsubscribe dccp" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 12 lines
Leandro Melo de Sales
Pervasive and Embedded Computing Laboratory
Assistent Professor in Computer Science at Federal University of Alagoas
PhD candidate in Computer Science at UFCG

"The warrior is strong in loyalty, intensity, determination,
initiative, persistence, courage and willpower. The warrior is light
in the soul, self-trust and compassion. The warrior is often called to
take the front when other cowardly make a step backwards. There are
warriors on the battlefield and in everyday life."

http://www.leandrosales.com/
author
#3 lore raw
In reply to Ivo Augusto

Hi Gerrit and everybody,
   we made the merge between the CCID4 (with our new patches) and ECN trees to allow us implement some features of TRFC-SP. The merge was a success (neither compile error nor kernel panic :P). Everything is working fine :)!
However we are in doubt about what dccp branch our patches should be applied, because the TRFC-SP has relation with CCID4 branch but also depends of ECN branch Therefore, these patches don't strictly fit with ecn or ccid4 branch.
So, what should we do about it?

I have another doubt, how stable the ECN branch is? Are there a lot improvements to be done in the next few days or weeks?

Cheers,

Ivo

Quoted 26 lines · Gerrit Renker

Ciao Ivo,

| However, we didn't know how we can access the ECN nonce information in
| the DCCP datagram. Can we access this information directly from the
| datagram or is there a predefined way to do that?
|

The stock kernel does not support ECN bits.

It is really my fault, I forgot to announce that there is a separate tree to support ECN. This extends the ECN support to the extent that ECN bits can be modified and read even in userspace. There were also some programs to work with the userspace ECN modifications, and continuing work on this.

The tree is available from

 git://eden-feed.erg.abdn.ac.uk/dccp_exp [subtree 'ecn']

 http://eden-feed.erg.abdn.ac.uk/latest-ecn-subtree.diff.gz

 http://eden-feed.erg.abdn.ac.uk/cgi-bin/gitweb.cgi?pÜcp_exp.git;a=shortlog;hìn

This is all from work several months ago, as said, I just forgot to activate/announce it. The patch is meant to be applied on top of the either the DCCP or CCID-4 tree.

Quoted 6 lines

Will also start posting the ECN-tree patches to the list.

Please post any further issues regarding ECN support, looking forward to hearing from you.

Gerrit

--
Ivo Augusto Andrade Rocha Calado
MSc. Candidate
Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br
Systems and Computing Department - http://www.dsc.ufcg.edu.br
Electrical Engineering and Informatics Center - http://www.ceei.ufcg.edu.br
Federal University of Campina Grande - http://www.ufcg.edu.br

PGP: 0x03422935
Quidquid latine dictum sit, altum viditur.

--
Ivo Augusto Andrade Rocha Calado
MSc. Candidate
Embedded Systems and Pervasive Computing Lab - http://embedded.ufcg.edu.br
Systems and Computing Department - http://www.dsc.ufcg.edu.br
Electrical Engineering and Informatics Center - http://www.ceei.ufcg.edu.br
Federal University of Campina Grande - http://www.ufcg.edu.br

PGP: 0x03422935
Quidquid latine dictum sit, altum viditur.

#4 lore raw
In reply to Ivo Augusto
|       we made the merge between the CCID4 (with our new patches) and ECN
|    trees to allow us implement some features of TRFC-SP. The merge was a
|    success (neither compile error nor kernel panic :P). Everything is working
|    fine :)!

Thanks indeed for testing, please see below.

|    However we are in doubt about what dccp tree branch our patches should be
|    applied, because the TRFC-SP has relation with CCID4 branch but also
|    depends of ECN branch Therefore, these patches don't strictly fit with ecn
|    or ccid4 branch.
|    So, what should we do about it?

Good point - I think it is essential to reorganise the tree, to simplify merging operations. Step one is the question below:

|    I have another doubt, how stable the ECN branch is? Are there a lot
|    improvements to be done in the next few days or weeks?

The implementation is basic but I'd say it is sufficient for now. In its present state, it should be considered stable, in particular the CCID-3 implementation.

The implementation has been tested and has been running without any known problems for several months. If any bugs surface, they will of course be addresses.

Here is the list of things that will need further work:

1) There is an experimental Kconfig option "Interpret ECN congestion-experienced packets as lost" (commit 81a94d9e15c76d28b18f17ffd0c2ed178da249e6) which I would like to take out before merging it with the main test tree. This is an earlier option for experimentation only. People at Thales France have tested it, and the results show that the performance of "translating" an ECN-CE event into a standard DCCP loss event reduces efficiency and responsiveness.

2) There is IPv6 support but it is very ugly. I have started to work on a better solution. But since this touches other networking code paths, it could take a while until a more solution has been approved.
Even though it is ugly, it does work, so my suggestion for the moment is to keep the IPv6 ECN support as it is while sorting out a better solution. The patch that this refers to is called "net: Hack to enable IPv6 ECN support" (commit 5564ed8b54156b75540b637895a95c37ca71dc3a). I have posted a question about this on netdev already. Suggestions are welcome.

3) Only a single ECN codepoint, the default ECT(0) as per RFC 3168 is supported. This is in agreement with other Linux transport protocols, but could in some later future be extended.

4) Still on the ToDo list is a review of CCID-2. I think it still needs more work, but this is a general issue and not specific to ECN.

To come back to your question from above, I would like to ask whether people are generally OK with merging the ECN-subtree into the dccp test tree
- without the patch from (1) above,
- with the IPv6 ECN hack (2) as no more than a temporary solution,

I have not seen your CCID-4 patches but assume they apply on top of the dccp test tree. I think this would make things easier:
- no need for a separate patch
- the current CCID-4 implementation would come with ECN enabled
- you could merge your patches easier.

Once this is done, I would like to encourage submitting CCID-4 patches also so that we can update the CCID-4 tree.

Gerrit