Task #1281
closed
Added by Junxiao Shi over 10 years ago.
Updated over 10 years ago.
Description
If nothing is received on an accepted unicast DatagramFace for at least a configurable duration, close this face.
- Description updated (diff)
In ccnd 0.7.2 this is implemented as:
- If a face is initiated by this node (not accepted), set a PERMANENT flag.
- Every time a packet is received, increment the recently received packets counter.
- Periodically, enumerate all faces, delete face if it does not have PERMANENT flag and the recently received packets counter is zero. Also clear the recently received packets counter on all faces.
Therefore, an accepted face that receives zero packets between two periodical procedure executions would be deleted.
- % Done changed from 0 to 10
Do we need the "recently received packets counter" for other purpose different from this task? Do we need the information about the number of the recently received packets for something else? Otherwise I will simply use a bool instead of a counter, since the only thing that matters is if n_receivedPacket > 0.
Should sending operation extend the lifetime of the face?
We don't need the counter for other propose.
Only receive operation extends lifetime.
Lifetime control only applies to accepted unicast faces. You may need a flag on the DatagramFace to indicate whether it's accepted.
If FaceMgmt is called to create the same face as an accepted face, this flag should be unset.
- Status changed from New to Code review
- % Done changed from 10 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF