<s>
The	O
Blocks	B-Protocol
Extensible	I-Protocol
Exchange	I-Protocol
Protocol	I-Protocol
(	O
BEEP	B-Protocol
)	O
is	O
a	O
framework	O
for	O
creating	O
network	O
application	O
protocols	O
.	O
</s>
<s>
BEEP	B-Protocol
includes	O
building	O
blocks	O
like	O
framing	O
,	O
pipelining	B-General_Concept
,	O
multiplexing	O
,	O
reporting	O
and	O
authentication	O
for	O
connection	O
and	O
message-oriented	O
peer-to-peer	O
(	O
P2P	O
)	O
protocols	O
with	O
support	O
of	O
asynchronous	O
full-duplex	O
communication	O
.	O
</s>
<s>
Message	O
syntax	O
and	O
semantics	O
is	O
defined	O
with	O
BEEP	B-Protocol
profiles	O
associated	O
to	O
one	O
or	O
more	O
BEEP	B-Protocol
channels	O
,	O
where	O
each	O
channel	O
is	O
a	O
full-duplex	O
pipe	B-General_Concept
.	O
</s>
<s>
BEEP	B-Protocol
is	O
defined	O
in	O
independently	O
from	O
the	O
underlying	O
transport	O
mechanism	O
.	O
</s>
<s>
The	O
mapping	O
of	O
BEEP	B-Protocol
onto	O
a	O
particular	O
transport	O
service	O
is	O
defined	O
in	O
a	O
separate	O
series	O
of	O
documents	O
.	O
</s>
<s>
Profiles	O
,	O
channels	O
and	O
a	O
framing	O
mechanism	O
are	O
used	O
in	O
BEEP	B-Protocol
to	O
exchange	O
different	O
kinds	O
of	O
messages	O
.	O
</s>
<s>
Channels	O
are	O
full-duplex	O
pipes	B-General_Concept
connected	O
to	O
a	O
particular	O
profile	O
.	O
</s>
<s>
BEEP	B-Protocol
also	O
includes	O
TLS	B-Protocol
for	O
encryption	O
and	O
SASL	O
for	O
authentication	O
.	O
</s>
<s>
In	O
1998	O
Marshall	O
T	O
.	O
Rose	O
,	O
who	O
also	O
worked	O
on	O
the	O
POP3	B-Protocol
,	O
SMTP	B-Protocol
,	O
and	O
SNMP	B-Protocol
protocols	O
,	O
designed	O
the	O
BXXP	B-Protocol
protocol	O
and	O
subsequently	O
handed	O
it	O
over	O
to	O
the	O
Internet	O
Engineering	O
Task	O
Force	O
(	O
IETF	O
)	O
workgroup	O
in	O
summer	O
2000	O
.	O
</s>
<s>
In	O
2001	O
the	O
IETF	O
published	O
BEEP	B-Protocol
(	O
)	O
and	O
BEEP	B-Protocol
on	O
TCP	B-Protocol
(	O
)	O
with	O
some	O
enhancements	O
to	O
BXXP	B-Protocol
.	O
</s>
<s>
To	O
start	O
a	O
BEEP	B-Protocol
session	O
,	O
an	O
initiating	O
peer	O
connects	O
to	O
the	O
listening	O
peer	O
.	O
</s>
<s>
Profiles	O
define	O
the	O
syntax	O
and	O
semantics	O
of	O
messages	O
and	O
the	O
protocol	O
functionality	O
based	O
on	O
BEEP	B-Protocol
.	O
</s>
<s>
A	O
single	O
BEEP	B-Protocol
session	O
can	O
provide	O
access	O
to	O
multiple	O
profiles	O
.	O
</s>
<s>
This	O
profile	O
identifier	O
has	O
the	O
format	O
of	O
a	O
Uniform	B-Protocol
Resource	I-Protocol
Identifier	I-Protocol
(	O
URI	B-Protocol
)	O
or	O
Uniform	B-Protocol
Resource	I-Protocol
Name	I-Protocol
(	O
URN	B-Protocol
)	O
.	O
</s>
<s>
In	O
the	O
past	O
,	O
the	O
URI	B-Protocol
format	O
of	O
the	O
profile	O
identifier	O
lead	O
to	O
confusion	O
,	O
because	O
it	O
is	O
similar	O
to	O
a	O
web	O
address	O
.	O
</s>
<s>
To	O
avoid	O
misunderstandings	O
,	O
newer	O
profiles	O
should	O
use	O
the	O
URN	B-Protocol
format	O
.	O
</s>
<s>
BEEP	B-Protocol
messages	O
are	O
structured	O
according	O
to	O
the	O
MIME	B-Protocol
standard	O
.	O
</s>
<s>
There	O
are	O
sometimes	O
misunderstandings	O
about	O
BEEP	B-Protocol
using	O
XML	B-Protocol
in	O
messages	O
,	O
but	O
only	O
a	O
small	O
subset	O
of	O
XML	B-Protocol
is	O
used	O
by	O
channel	O
0	O
and	O
it	O
is	O
transparent	O
to	O
the	O
profile	O
designer	O
(	O
BEEP	B-Protocol
user	O
)	O
.	O
</s>
<s>
This	O
can	O
be	O
any	O
textual	O
format	O
like	O
JSON	B-General_Concept
or	O
XML	B-Protocol
as	O
well	O
as	O
binary	O
data	O
.	O
</s>
<s>
XML	B-Protocol
is	O
used	O
in	O
the	O
channel	O
management	O
and	O
the	O
TLS	B-Protocol
standard	O
profile	O
defined	O
with	O
BEEP	B-Protocol
.	O
</s>
<s>
BEEP	B-Protocol
defines	O
5	O
message	O
types	O
to	O
allow	O
most	O
of	O
the	O
application	O
protocol	O
patterns	O
needed	O
:	O
</s>
<s>
BEEP	B-Protocol
supports	O
sequence	O
frames	O
(	O
SEQ	O
)	O
to	O
implement	O
flow	O
control	O
at	O
the	O
channel	O
level	O
.	O
</s>
<s>
The	O
Transmission	B-Protocol
Control	I-Protocol
Protocol	I-Protocol
(	O
TCP	B-Protocol
)	O
defines	O
a	O
sequence	O
mechanism	O
on	O
the	O
transport	O
layer	O
level	O
and	O
supports	O
flow	O
control	O
related	O
to	O
the	O
connection	O
.	O
</s>
<s>
BEEP	B-Protocol
needs	O
flow	O
control	O
on	O
the	O
channel	O
level	O
to	O
make	O
sure	O
no	O
channel	O
or	O
big	O
message	O
monopolizes	O
the	O
connection	O
.	O
</s>
