BER
("Basic Encoding Rules",
associated with ASN.1,
X.409,
and ISO8825)
XDR
(the eXternal Data Representation)
is described in
RFC 1014
and
RFC 1832
(Even though RFC's never change,
they seem to move around a lot;
if those links don't work try
RFC1014
and
RFC1832)