Most of the network communication protocols used today have a structure based on the OSI model. (PDF file.)
Though it does not exactly match the layers used in the TCP/IP stack used by the Internet Protocols, it is directly used by many other existing and new networking protocols, and it still a good teaching model, as evidanced by its appearance in the majority of networking courses.
On a transmitting stack/machine each layer of the model appears to the higher layers to make direct communication with the corresponding layer on the receiving PC/Network card.
A particular application may choose to merge two or more of the upper layers into a single piece of code, however the lower layers belong first to the OS, and then to the Hardware, and therefore cannot be merged.
Oubound data will pass downwards through the stack (as shown here), across the network, then back up the stack on the receiving machine, and of course vice versa.
ECHO, ENRP, FTP, Gopher, HTTP, NFS, RTSP, SIP, SMTP, SNMP, SSH, Telnet, Whois, XMPP, IMAP
XDR, ASN.1, SMB, AFP, NCP
ASAP, TLS, SSL, ISO 8327 / CCITT X.225, RPC, NetBIOS, ASP
TCP, UDP, RTP, SCTP, SPX, ATP, IL
IP, ICMP, IGMP, IPX, OSPF, RIP, IGRP, EIGRP, ARP, RARP, X.25
Data Link Layer
Ethernet, Token ring, HDLC, Frame relay, ISDN, ATM, 802.11 WiFi, FDDI, PPP
10BASE-T, 100BASE-T, 1000BASE-T, SONET/SDH, G.709, T-carrier/E-carrier, various 802.11 physical layers