All of the technical specifications for the Internet are contained in white papers called "Request for Comments". For example, the RFC document describing the UDP protocol is RFC768.TXT and can be downloaded from http://www.rfc-editor.org.
See Also
Transmission Control Protocol (TCP)
Simple Mail Transfer Protocol (SMTP)
An ECHO client and server using TCP