OSI and TCP/IP models
TCP/IP model Application
The Application layer corresponds to the Session, Presentation, and Application layers of the OSI model. Protocols associated with the Application layer include FTP, HTTP, Telnet, Smtp, DNS, and SNMP.
OSI model Application (Layer 7)
The Application layer integrates network functionality into the host operating system, and enables network services. The Application layer does not include specific applications that provide services, but rather provides the capability for services to operate on the network. Most Application layer protocols operate at multiple layers down to the Session and even Transport layers. However, they are classified as Application layer protocols because they start at the Application layer (the Application layer is the highest layer where they operate). Services typically associated with the Application layer include: • HTTP • Telnet • FTP • TFTP • SNMP
OSI model Data Link (Layer 2) -Logical LinkControl (LLC) --Media Access Control (MAC)
The Data Link layer defines the rules and procedures for hosts as they access the Physical layer. These rules and procedures specify or define: • How hosts on the network are identified (physical or MAC address). • How and when devices can transmit on the network medium (media access control and logical topology). • How to verify that the data received from the Physical layer is error free (parity and CRC). • How devices control the rate of data transmissions between hosts (flow control). Data at the Data Link layer is referred to as a frame.
TCP/IP model Host-to-host
The Host-to-host layer is comparable to the Transport layer of the OSI model and is responsible for error checking and reliable packet delivery. Here, the data stream is broken into segments that must be assigned sequence numbers so that the segments can be reassembled correctly on the remote side after they are transported. Protocols associated with the Host-to-host layer include Transport Control Protocol (TCP) and User-Datagram Protocol (UDP).
TCP/IP model Internet
The Internet layer is comparable to the Network layer of the OSI model. It is responsible for moving packets through a network. This involves addressing of hosts and making routing decisions to identify how the packet traverses the network. Protocols associated with the Internet layer include Address Resolution Protocol (ARP), Internet Control Message Protocol (ICMP), and Internet Group Management Protocol (IGMP).
TCP/IP model
The Network Access layer corresponds to the functions of the Physical and Data Link layers of the OSI model. It is responsible for describing the physical layout of the network and how messages are formatted on the transmission medium.
OSI model Network (Layer 3)
The Network layer describes how data is routed across networks and on to the destination. Network layer functions include: • Identifying hosts and networks using logical addresses. • Maintaining a list of known networks and neighboring routers. • Determining the next network point to which data should be sent. Routers use a routing protocol to take into account various factors such as the number of hops in the path, link speed, and link reliability to select the optimal path for data. Data at the Network layer is referred to as a packet.
OSI model Physical (Layer 1)
The Physical layer of the OSI model sets standards for sending and receiving electrical signals between devices. Protocols at the Physical layer identify: • How digital data (bits) are converted to electric pulses, radio waves, or pulses of lights. • Specifications for cables and connectors. • The physical topology, including wireless access points. Data at the Physical layer is referred to as bits.
OSI model Presentation (Layer 6)
The Presentation layer formats or "presents" data into a compatible form for receipt by the Application layer or the destination system, such as the presentation of an ASCII-coded file. Specifically, the Presentation layer ensures: • Formatting and translation of data between systems. • Negotiation of data transfer syntax between systems, through converting character sets to the correct format. • Encapsulation of data into message envelopes by encryption and compression. • Restoration of data by decryption and decompression.
OSI model Session (Layer 5)
The Session layer's primary function is managing the sessions in which data is transferred. Functions at this layer include: • Management of multiple sessions (each client connection is called a session). A server can concurrently maintain thousands of sessions. • Assignment of the session ID number to each session to keep data streams separate. • Set up, maintain, and tear down communication sessions.
OSI model Transport (Layer 4)
The Transport layer provides a transition between the upper and lower layers of the OSI model, making the upper and lower layers transparent from each other. Transport layer functions include: • End-to-end flow control. • Port and socket numbers. • Segmentation, sequencing, and combination. • Connection services, either reliable (connection-oriented) or unreliable (connectionless) delivery of data. Data at the Transport layer is referred to as a segment.