Project

General

Profile

Protocol core-core Version 3 » History » Revision 13

Revision 12 (Greg Burri, 07/07/2009 08:42 PM) → Revision 13/73 (Greg Burri, 07/07/2009 08:54 PM)

h1. Protocols 

 This page describes the protocols used by Aybabtu for network communication between cores and between core and GUI. 

 h2. Core <-> Core 

 see source:protos/network_protocol.proto. 

 h3. Parameters 

 Most parameters will be stored as constants in their component. 

 |_.Name|_.Value |_.Unit|_.Explanation/Comments| 
 | _ChunkSize_ ChunkSize | 33554432 | [Byte] Byte | (32MB) | 
 | _LanSpeed_ LanSpeed | 52428800 | [Byte/s] Byte/s | (50MB/s) | 
 | _TimeRecheckChunkFactorv TimeRecheckChunkFactor | 4 | - | If the time to download a chunk exceeds _TimeRecheckChunkFactor_ * ChunkSize / LanSpeed then the peers are rescanned rescaned to choose a better one (better download rate). one. For example : 4 * 32 / 50 = 2.6 second | 
 | _SwitchToAnotherPeerFactor_ | 1.5 | - | During the recheck of the peers to choose a better one the other download rate must be above the current * _SwitchToAnotherPeerFactor_ | 
 | DownloadRateValidTime | 1500 / _LanSpeed_ = 300 s | [s] | (5 min). The download rate of a peer is valid this time after its last update | 

 h2. Core <-> GUI