]> git.mxchange.org Git - hub-docs.git/blob - mindmaps/Peer-State Rating.mm
4405501b11cc50b4fed1a26a23001d5b0a23deaa
[hub-docs.git] / mindmaps / Peer-State Rating.mm
1 <map version="freeplane 1.3.0">
2 <!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
3 <node TEXT="Peer-State Rating" ID="Freemind_Link_637047933" CREATED="1323839984102" MODIFIED="1324134090704">
4 <font NAME="Dialog" SIZE="20" BOLD="true"/>
5 <hook NAME="MapStyle">
6     <properties fit_to_viewport="false;" show_note_icons="true"/>
7
8 <map_styles>
9 <stylenode LOCALIZED_TEXT="styles.root_node">
10 <stylenode LOCALIZED_TEXT="styles.predefined" POSITION="right">
11 <stylenode LOCALIZED_TEXT="default" MAX_WIDTH="600" COLOR="#000000" STYLE="as_parent">
12 <font NAME="SansSerif" SIZE="10" BOLD="false" ITALIC="false"/>
13 </stylenode>
14 <stylenode LOCALIZED_TEXT="defaultstyle.details"/>
15 <stylenode LOCALIZED_TEXT="defaultstyle.note"/>
16 <stylenode LOCALIZED_TEXT="defaultstyle.floating">
17 <edge STYLE="hide_edge"/>
18 <cloud COLOR="#f0f0f0" SHAPE="ROUND_RECT"/>
19 </stylenode>
20 </stylenode>
21 <stylenode LOCALIZED_TEXT="styles.user-defined" POSITION="right">
22 <stylenode LOCALIZED_TEXT="styles.topic" COLOR="#18898b" STYLE="fork">
23 <font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
24 </stylenode>
25 <stylenode LOCALIZED_TEXT="styles.subtopic" COLOR="#cc3300" STYLE="fork">
26 <font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
27 </stylenode>
28 <stylenode LOCALIZED_TEXT="styles.subsubtopic" COLOR="#669900">
29 <font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
30 </stylenode>
31 <stylenode LOCALIZED_TEXT="styles.important">
32 <icon BUILTIN="yes"/>
33 </stylenode>
34 </stylenode>
35 <stylenode LOCALIZED_TEXT="styles.AutomaticLayout" POSITION="right">
36 <stylenode LOCALIZED_TEXT="AutomaticLayout.level.root" COLOR="#000000">
37 <font SIZE="18"/>
38 </stylenode>
39 <stylenode LOCALIZED_TEXT="AutomaticLayout.level,1" COLOR="#0033ff">
40 <font SIZE="16"/>
41 </stylenode>
42 <stylenode LOCALIZED_TEXT="AutomaticLayout.level,2" COLOR="#00b439">
43 <font SIZE="14"/>
44 </stylenode>
45 <stylenode LOCALIZED_TEXT="AutomaticLayout.level,3" COLOR="#990000">
46 <font SIZE="12"/>
47 </stylenode>
48 <stylenode LOCALIZED_TEXT="AutomaticLayout.level,4" COLOR="#111111">
49 <font SIZE="10"/>
50 </stylenode>
51 </stylenode>
52 </stylenode>
53 </map_styles>
54 </hook>
55 <node TEXT="Basic conceptional ideas" POSITION="right" ID="Freemind_Link_390755501" CREATED="1324092368594" MODIFIED="1324092407949">
56 <font NAME="Dialog" SIZE="16" BOLD="true"/>
57 <node TEXT="Is given by peers to each other: ..." ID="_" CREATED="1324092294940" MODIFIED="1324123913288">
58 <font NAME="Dialog" SIZE="12"/>
59 </node>
60 <node TEXT="... for peer-ping" ID="Freemind_Link_1895657184" CREATED="1324092480671" MODIFIED="1324123715987">
61 <font NAME="Dialog" SIZE="12" BOLD="true"/>
62 <node TEXT="A peer-ping is not a simple ICMP ping" ID="Freemind_Link_967295702" CREATED="1324092508064" MODIFIED="1324123516473">
63 <font NAME="Dialog" SIZE="12"/>
64 </node>
65 <node TEXT="It is a special message that has to be replied by the other peer" ID="Freemind_Link_1866965980" CREATED="1324092529247" MODIFIED="1324123516472">
66 <font NAME="Dialog" SIZE="12"/>
67 </node>
68 <node TEXT="A time out is checked on sender side" ID="Freemind_Link_1366418753" CREATED="1324092546805" MODIFIED="1324123516470">
69 <font NAME="Dialog" SIZE="12"/>
70 </node>
71 <node TEXT="There must be some kind of protection against ping-flooding" ID="Freemind_Link_984208749" CREATED="1324092565875" MODIFIED="1324123516469">
72 <font NAME="Dialog" SIZE="12"/>
73 </node>
74 </node>
75 <node TEXT="...for reported upload/download compared to measured" ID="Freemind_Link_569273294" CREATED="1324092639056" MODIFIED="1324123715986">
76 <font NAME="Dialog" SIZE="12" BOLD="true"/>
77 <node TEXT="See bandwidth measuring" ID="Freemind_Link_948865152" CREATED="1324092687580" MODIFIED="1324123516467">
78 <font NAME="Dialog" SIZE="12" ITALIC="true"/>
79 </node>
80 <node TEXT="Should limit spam nodes (wrong bandwidth reported)" ID="Freemind_Link_1355356073" CREATED="1324092896632" MODIFIED="1324123516466">
81 <font NAME="Dialog" SIZE="12"/>
82 </node>
83 </node>
84 <node TEXT=".. for following the &quot;protocol directives&quot;" ID="Freemind_Link_1058841046" CREATED="1324092980215" MODIFIED="1324123715985">
85 <font NAME="Dialog" SIZE="12" BOLD="true"/>
86 <node TEXT="Up-to-date nodes should always show a good behavior to others" ID="Freemind_Link_1309213686" CREATED="1324093002045" MODIFIED="1324123516463">
87 <font NAME="Dialog" SIZE="12"/>
88 </node>
89 <node TEXT="Spam nodes may try to break/exploit the protocol for their own purposes" ID="Freemind_Link_230465910" CREATED="1324093023634" MODIFIED="1324123516462">
90 <font NAME="Dialog" SIZE="12"/>
91 </node>
92 </node>
93 <node TEXT="...for sending validated(/signed?) content" ID="Freemind_Link_1789401828" CREATED="1324123340209" MODIFIED="1324123715984">
94 <font NAME="Dialog" SIZE="12" BOLD="true"/>
95 <node TEXT="This can be checked by hashes" ID="Freemind_Link_746501474" CREATED="1324123358404" MODIFIED="1324123516459">
96 <font NAME="Dialog" SIZE="12"/>
97 <node TEXT="Should TTHs be used?" ID="Freemind_Link_449062465" CREATED="1324123386248" MODIFIED="1324123516457">
98 <icon BUILTIN="help"/>
99 <font NAME="Dialog" SIZE="12"/>
100 <node TEXT="TTH=Tiger Tree Hashes" ID="Freemind_Link_1202975110" CREATED="1324124018428" MODIFIED="1324124025943"/>
101 <node TEXT="Or own implementation" ID="Freemind_Link_705063871" CREATED="1324124026587" MODIFIED="1324124034313"/>
102 </node>
103 </node>
104 <node TEXT="... or digital &quot;signatures&quot;" ID="Freemind_Link_273976105" CREATED="1324123368683" MODIFIED="1324124011021">
105 <icon BUILTIN="idea"/>
106 <font NAME="Dialog" SIZE="12"/>
107 </node>
108 </node>
109 <node TEXT="Always small positive rating for good/passed &quot;checks&quot;" ID="Freemind_Link_1767611320" CREATED="1324123932345" MODIFIED="1324134107102">
110 <icon BUILTIN="idea"/>
111 </node>
112 <node TEXT="Always larger negative rating for bad/failed &quot;checks&quot;" ID="Freemind_Link_458709057" CREATED="1324123969655" MODIFIED="1324134115144">
113 <icon BUILTIN="idea"/>
114 </node>
115 </node>
116 <node TEXT="Software design" POSITION="left" ID="Freemind_Link_975621733" CREATED="1324123504304" MODIFIED="1324123538507">
117 <font NAME="Dialog" SIZE="16" BOLD="true"/>
118 <node TEXT="Rating for: ..." ID="Freemind_Link_929744992" CREATED="1324123691404" MODIFIED="1324134128018">
119 <font NAME="Dialog" SIZE="12"/>
120 </node>
121 <node TEXT="... peer-ping" ID="Freemind_Link_1271441491" CREATED="1324123740209" MODIFIED="1324123786704">
122 <font NAME="Dialog" SIZE="12" BOLD="true"/>
123 <node TEXT="Is an XML message to be sent in not regular times to other nodes" ID="Freemind_Link_716383596" CREATED="1324554579587" MODIFIED="1324554608690">
124 <node TEXT="Should contain a serial number" ID="Freemind_Link_1689439887" CREATED="1324555252604" MODIFIED="1324555330736">
125 <node TEXT="To distinguish from already sent pings" ID="Freemind_Link_1672713608" CREATED="1324555331720" MODIFIED="1324555336039"/>
126 <node TEXT="The serial number is maybe not known to other peers" ID="Freemind_Link_560209724" CREATED="1324555339866" MODIFIED="1324555358226"/>
127 </node>
128 <node TEXT="Some kind of &quot;signature&quot;" ID="Freemind_Link_914780939" CREATED="1324555367580" MODIFIED="1324555377025">
129 <node TEXT="To combat abusive/harmful peers" ID="Freemind_Link_205178352" CREATED="1324555378532" MODIFIED="1324555391258"/>
130 </node>
131 </node>
132 <node TEXT="Is not the actual ping time (ICMP ping), it is more a &quot;virtual ping&quot;" ID="Freemind_Link_729695919" CREATED="1324554843103" MODIFIED="1324554865536">
133 <node TEXT="Users with a slow Internet connection may be affected" ID="Freemind_Link_91726916" CREATED="1324555206882" MODIFIED="1324555221320"/>
134 </node>
135 <node TEXT="Is also used to determine ..." ID="Freemind_Link_533413433" CREATED="1324554877224" MODIFIED="1324554896638">
136 <node TEXT="... if a node is still alive" ID="Freemind_Link_1554488715" CREATED="1324554898287" MODIFIED="1324554905943">
137 <node TEXT="An IP address hint (dyndns hostname) may help here" ID="Freemind_Link_734412318" CREATED="1324554977780" MODIFIED="1324554993790">
138 <node TEXT="This relies on an external DNS server" ID="Freemind_Link_1299120895" CREATED="1324555041199" MODIFIED="1324555042077"/>
139 <node TEXT="If that server is down, the node must still be found" ID="Freemind_Link_742674552" CREATED="1324555042582" MODIFIED="1324555061524"/>
140 </node>
141 <node TEXT="...or some kind of &quot;PEX&quot; (Peer EXchange) may help here?" ID="Freemind_Link_387549555" CREATED="1324555080154" MODIFIED="1324555101714">
142 <node TEXT="May cause other abusive peers to send spoofed PEX data" ID="Freemind_Link_1980920494" CREATED="1324555132899" MODIFIED="1324555150224"/>
143 <node TEXT="This requires addintional handling (e.g. negative karma for spoofed PEX data)" ID="Freemind_Link_1323121006" CREATED="1324555150938" MODIFIED="1324555179828"/>
144 </node>
145 </node>
146 <node TEXT="... if the node is not busy" ID="Freemind_Link_1367005180" CREATED="1324554906714" MODIFIED="1324554913822">
147 <node TEXT="Slow ping responses could mean this" ID="Freemind_Link_1555296108" CREATED="1324554928067" MODIFIED="1324554933963"/>
148 <node TEXT="Then the node needs to be marked as &quot;busy&quot;" ID="Freemind_Link_1118367153" CREATED="1324554934537" MODIFIED="1324554948384"/>
149 <node TEXT="Sending more packages to this node would make it more busy (DDoS)" ID="Freemind_Link_608994984" CREATED="1324554949279" MODIFIED="1324554969062"/>
150 </node>
151 </node>
152 <node TEXT="If excessive pings are sent they need to be dealed" ID="Freemind_Link_1235076667" CREATED="1324554609419" MODIFIED="1324554791349">
153 <node TEXT="By giving negative karma" ID="Freemind_Link_1988177267" CREATED="1324554792892" MODIFIED="1324554810739"/>
154 <node TEXT="Blocking the harmful node" ID="Freemind_Link_1917809635" CREATED="1324554811216" MODIFIED="1324554824798"/>
155 </node>
156 </node>
157 <node TEXT="... comparison of reported/measured transfer rates" ID="Freemind_Link_1866854566" CREATED="1324123750516" MODIFIED="1324123786702">
158 <font NAME="Dialog" SIZE="12" BOLD="true"/>
159 </node>
160 <node TEXT="... no bad behavior (communication protocol)" ID="Freemind_Link_419579265" CREATED="1324123798416" MODIFIED="1324123848503">
161 <font NAME="SansSerif" SIZE="12" BOLD="true"/>
162 </node>
163 <node TEXT="... validated &quot;content&quot;" ID="Freemind_Link_450728748" CREATED="1324123851626" MODIFIED="1324123868060">
164 <font NAME="SansSerif" SIZE="12" BOLD="true"/>
165 </node>
166 </node>
167 </node>
168 </map>