root/dotorg/trunk/html/beps/bep_0004.html

Revision 11146, 5.6 KB (checked in by dave, 15 months ago)

Fix broken reference.

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
7<title></title>
8<link rel="stylesheet" href="../css/bep.css" type="text/css" />
9</head>
10<body>
11<div class="document">
12
13<div id="upper" class="clear">
14<div id="wrap">
15<div id="header">
16<h1><a href="../index.html">BitTorrent<span>.org</span></a></h1>
17</div>
18<div id="nav">
19<ul>
20<li><a href="../index.html">Home</a></li>
21<li><a href="../introduction.html">For Users</a></li>
22<li><a href="bep_0000.html"><span>For Developers</span></a></li>
23<!-- <li><a href="./blog">Blog</a></li> -->
24<li><a href="http://forum.bittorrent.org"> Forums </li>
25<li><a href="../donate.html">Donate!</a></li>
26</ul>
27</div> <!-- nav -->
28<!-- ### Begin Content ### -->
29<div id="second">
30
31
32
33<table class="rfc2822 docutils field-list" frame="void" rules="none">
34<col class="field-name" />
35<col class="field-body" />
36<tbody valign="top">
37<tr class="field"><th class="field-name">BEP:</th><td class="field-body">4</td>
38</tr>
39<tr class="field"><th class="field-name">Title:</th><td class="field-body">Assigned Numbers</td>
40</tr>
41<tr class="field"><th class="field-name">Version:</th><td class="field-body">11145</td>
42</tr>
43<tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference external" href="http://bittorrent.org/trac/browser/dotorg/trunk/html/beps/bep_0004.rst">2008-09-08 15:31:26 -0700 (Mon, 08 Sep 2008)</a></td>
44</tr>
45<tr class="field"><th class="field-name">Author:</th><td class="field-body">David Harrison &lt;dave&#32;&#97;t&#32;bittorrent.com&gt;</td>
46</tr>
47<tr class="field"><th class="field-name">Status:</th><td class="field-body">Active</td>
48</tr>
49<tr class="field"><th class="field-name">Type:</th><td class="field-body">Process</td>
50</tr>
51<tr class="field"><th class="field-name">Created:</th><td class="field-body">10-Jan-2008</td>
52</tr>
53<tr class="field"><th class="field-name">Post-History:</th><td class="field-body"></td>
54</tr>
55</tbody>
56</table>
57<hr />
58<div class="contents topic" id="contents">
59<p class="topic-title first">Contents</p>
60<ul class="simple">
61<li><a class="reference internal" href="#reserved-bit-allocations" id="id2">Reserved Bit Allocations</a></li>
62<li><a class="reference internal" href="#reserved-message-ids" id="id3">Reserved Message IDs</a></li>
63<li><a class="reference internal" href="#references" id="id4">References</a></li>
64<li><a class="reference internal" href="#copyright" id="id5">Copyright</a></li>
65</ul>
66</div>
67<p>This document describes the known bit allocations and message IDs for
68the BitTorrent protocol.  To request a bit allocation contact
69<a class="reference external" href="mailto:editor&#37;&#52;&#48;bittorrent&#46;org">editor<span>&#64;</span>bittorrent<span>&#46;</span>org</a>.  Contact the same address if you are aware of
70any omissions.</p>
71<div class="section" id="reserved-bit-allocations">
72<h1>Reserved Bit Allocations</h1>
73<pre class="literal-block">
74reserved[0]
750x80  Azureus Messaging Protocol
76
77reserved[2]
780x08  BitTorrent Location-aware Protocol (no known implementations)
79
80reserved[5]
810x10  LTEP (Libtorrent Extension Protocol)
820x02  Extension Negotiation Protocol
830x01  Extension Negotiation Protocol
84
85reserved[7]
860x01  BitTorrent DHT
870x02  XBT Peer Exchange
880x04  suggest, haveall, havenone, reject request, and allow fast extensions
890x08  NAT Traversal
90</pre>
91<p>There are known collisions:</p>
92<pre class="literal-block">
93reserved[0]
940xFF  BitComet Extension Protocol
95
96reserved[1]
970xFF  BitComet Extension Protocol
98
99reserved[7]
1000x01  XBT Metadata Exchange (implemented only in XBT)
101</pre>
102<p>It is recommended that further extensions use the Extension Protocol
103<a class="footnote-reference" href="#bep-10" id="id1">[1]</a>, a.k.a., LibTorrent Extension Protocol (LTEP).  With LTEP,
104extension bit collisions become impossible since no new extension bits
105are allocated.  With LTEP, message ID collisions also become
106impossible because message IDs are allocated on demand at the
107beginning of the connection.  Extension <em>name</em> collisions become
108possible, but the probability is much less likely.</p>
109</div>
110<div class="section" id="reserved-message-ids">
111<h1>Reserved Message IDs</h1>
112<pre class="literal-block">
113Core Protocol:
1140x00   choke
1150x01   unchoke
1160x02   interested
1170x03   not interested
1180x04   have
1190x05   bitfield
1200x06   request
1210x07   piece
1220x08   cancel
123
124DHT Extension:
1250x09   port
126
127Fast Extensions:
1280x0D   suggest
1290x0E   have all
1300x0F   have none
1310x10   reject request
1320x11   allowed fast
133
134Additional IDs used in deployed clients:
1350x14   LTEP Handshake (implemented in libtorrent, uTorrent,...)
136</pre>
137</div>
138<div class="section" id="references">
139<h1>References</h1>
140<table class="docutils footnote" frame="void" id="bep-10" rules="none">
141<colgroup><col class="label" /><col /></colgroup>
142<tbody valign="top">
143<tr><td class="label"><a class="fn-backref" href="#id1">[1]</a></td><td>BEP_0010.  Extension Protocol. Norberg, Strigeus, Hazel.
144<a class="reference external" href="http://www.bittorrent.org/beps/bep_0010.html">http://www.bittorrent.org/beps/bep_0010.html</a></td></tr>
145</tbody>
146</table>
147</div>
148<div class="section" id="copyright">
149<h1>Copyright</h1>
150<p>This document has been placed in the public domain.</p>
151<!-- Local Variables:
152mode: indented-text
153indent-tabs-mode: nil
154sentence-end-double-space: t
155fill-column: 70
156coding: utf-8
157End: -->
158</div>
159
160
161</div>
162        <div id="footer">
163<hr/>
164</div>
165
166</div>
167</body>
168</html>
Note: See TracBrowser for help on using the browser.