P2PSP / simulator

A complete stand-alone simulator for the P2PSP protocol
GNU General Public License v3.0
18 stars 15 forks source link

Implementation of a splitters synchronizer #49

Open vicente-gonzalez-ruiz opened 5 years ago

vicente-gonzalez-ruiz commented 5 years ago

Issue #48 introduces a new entity which is able to synchronize two or more streams.

This issue proposes an alternative (and probably much more efficient) way of obtaining the same result. In this case (as it is explained in the MCS layer) if the splitters conform the chunks exactly with the same content, two or more peers (or a peer with the ability of retrieve chunks from more than a team). For achieving this, the load-balancer should provide instructions to the splitters to be synchronized.

Some useful code can be found here: https://github.com/P2PSP/console/blob/master/src/synchronizer.cc