p2psp team mailing list archive
-
p2psp team
-
Mailing list archive
-
Message #00319
Re: NAT Traversal Set of rules implementation
Hi Vicente,
On 08/21/2015 11:54 AM, Max Mertens wrote:
>> In the congestion avoiding mechanism implemented in the peers we have
>> used the chunk cadence like a clock. The idea is to send a message
>> only if a previous message has been received. The splitter receives
>> chunks from the source and this could be our clock. It is also true
>> that a new thread in the splitter increases its complexity, but if
>> you put this code (basically, a counter that it is incremented each
>> time a new chunk is received from the source and the sendto(message))
>> in a thread, the main thread could be as clean as it is now.
> Ok, this sounds good. Or to reduce complexity the thread could also
> enqueue the messages to be sent, and then send them one after another
> with a defined time (e.g. 1ms) in between, so there has to be no
> synchronization between receiving chunks and sending packets. I can
> try to implement this today in a simple way.
Now I implemented a simple suggestion in an extra branch [1]. It can be
easily extended by an event that is set each time a chunk is received,
to implement the mechanism described by you.
I just realized that accidentally the 'nts' pull requests is targeted at
the 'nts' branch, and the 'nts_doc' is targeted at 'master'. Should I
reopen them?
Just a note to about publishing the project: From beginning to end of
September I'll be on vacation, so can probably not reply to emails or
only every few days.
Thanks,
Max
[1] https://github.com/jellysheep/p2psp/compare/51aae05...message_queue
Follow ups
References
-
NAT Traversal Set of rules implementation
From: Max Mertens, 2015-06-06
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-07-25
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-07-27
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-02
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-03
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-05
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-06
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-10
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-11
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-12
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-13
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-14
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-16
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-17
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-18
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-19
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-19
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-19
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-20
-
Re: NAT Traversal Set of rules implementation
From: Vicente Gonzalez, 2015-08-20
-
Re: NAT Traversal Set of rules implementation
From: Max Mertens, 2015-08-21