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.
The Internet Protocol (IP)
User Datagram Protocol (UDP)
Transmission Control Protocol (TCP)
TCP clients and servers
Simple Mail Transfer Protocol (SMTP)
An ECHO client and server using TCP