DATA COMMUNICATION and NETWORKING Software Department – Fourth Class
Total Page:16
File Type:pdf, Size:1020Kb
DATA COMMUNICATION AND NETWORKING Software Department – Fourth Class Network Models II Dr. Raaid Alubady - Lecture 3 Introduction The OSI model describes an idealized network communications protocol family. Transmission Control Protocol and the Internet Protocol (TCP/IP) does not correspond to this model directly, as it combines several OSI layers into a single layer. The Internet protocol suite is the conceptual model and set of communications protocols used on the Internet and similar computer networks. It is commonly known as TCP/IP because the original protocols in the suite are the TTCP and IP. TCP/IP Protocol The TCP/IP protocol suite was developed prior to the OSI model. Therefore, the layers in the TCP/IP protocol suite do not exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet, transport, and application. However, when TCP/IP is compared to OSI, we can say that the host-to-network layer is equivalent to the combination of the physical and data link layers. The internet layer is equivalent to the network layer, and the application layer is roughly doing the job of the session, presentation, and application layers the transport layer in TCPIIP taking care of part of the duties of the session layer. So in this topic (based on the reference book), they assume that the TCPIIP protocol suite is made of five layers: physical, data link, network, transport, and application. The first four layers provide physical standards, network interfaces, internetworking, and transport functions that correspond to the first four layers of the OSI model. The three topmost layers in the OSI model, however, are represented in TCPIIP by a single layer called the application layer (see Figure 1). Figure 1. TCP/IP and OSI model TCP/IP network model is a hierarchical protocol made up of interactive modules, each of which provides a specific functionality; however, the modules are not necessarily interdependent. Whereas the OSI network model specifies which functions belong to each of its layers, the layers of the TCP/IP protocol suite contain relatively independent protocols that can be mixed and matched depending on the needs of the system. The term hierarchical means that each upper-level protocol is supported by one or more lower-level protocols in this network model. At the transport layer, TCP/IP network model defines three protocols: Transmission Control Protocol (TCP), User Datagram Protocol (UDP), and Stream Control Transmission Protocol (SCTP). At the network layer, the main protocol defined by TCP/IP is the Internetworking Protocol (IP); there are also some other protocols that support data movement in this layer. TCP/IP Protocol Encapsulation and Decapsulation When data moves from upper layer to lower level of TCP/IP protocol stack (outgoing transmission) each layer includes a bundle of relevant information called a header along with the actual data. The data package containing the header and the data from the upper layer then becomes the data that is repackaged at the next lower level with lower layer's header. Header is the supplemental data placed at the beginning of a block of data when it is transmitted. This supplemental data is used at the receiving side to extract the data from the encapsulated data packet. This packing of data at each layer is known as data encapsulation (see Figure 2). The reverse process of encapsulation (or decapsulation) occurs when data is received on the destination computer. As the data moves up from the lower layer to the upper layer of TCP/IP protocol stack (incoming transmission), each layer unpacks the corresponding header and uses the information contained in the header to deliver the packet to the exact network application waiting for the data. Figure 2. Encapsulation and Decapsulation of TCP/IP Protocol The format of the data packet generated at different layers is different, and known by different names. The data packet created at the Application layer is known as a "MESSAGE". The Application layer message is again encapsulated at the Transport Layer. If the protocol used at the Transport Layer is TCP, the data packet is known as a "TCP SEGMENT". If the protocol used at the Transport layer is UDP, the data packet is known as a "UDP DATAGRAM". The data packet created at the Internet layer by Internet Protocol, which again encapsulates the Transport layer segment/datagram, is known as a "IP DATAGRAM". The data packet at the Network Access layer, which encapsulates and may subdivide the IP Datagram, is known as a "FRAME" (generally Ethernet Frame). The Frame is converted into a bit stream at the lowest sublayer of the Network Access layer and then placed on medium. Above concept can be explained in another way, using a picture of boxes as shown below. How the Receiving Host Handles the Packet i. When the packet arrives on the receiving host, the packet travels through the TCP/IP protocol stack in the reverse order from which it was sent. Moreover, each protocol on the receiving host strips off header information that is attached to the packet by its peer on the sending host. The following process occurs: ii. The physical network layer receives the packet in its frame form. The physical network layer computes the Cyclic Redundancy Check (CRC) of the packet, then sends the frame to the data link layer. iii. The data-link layer verifies that the CRC for the frame is correct and strips off the frame header and the CRC. Finally, the data-link protocol sends the frame to the Internet layer. iv. The Internet layer reads information in the header to identify the transmission. Then, the Internet layer determines if the packet is a fragment. If the transmission is fragmented, IP reassembles the fragments into the original datagram. IP then strips off the IP header and passes the datagram on to transport layer protocols. v. The transport layer (TCP and UDP) reads the header to determine which application layer protocol must receive the data. Then, TCP or UDP strips off its related header. TCP, SCTP, or UDP sends the message or stream to the receiving application. vi. The application layer receives the message. The application layer then performs the operation that the sending host requested. Layers in the TCP/IP Protocol 1. Physical Layer: At the physical layer, TCP/IP does not define any specific protocol. It supports all the standard and proprietary protocols. A network in a TCP/IP internetwork can be a local-area network or a wide-area network. 2. Data Link Layer: The Data link layer consists of methods and protocols that operate only on a link, which is the network component that interconnects nodes or hosts in the network. Protocols in the layer include SLIP, CSLIP and Ethernet. SLIP - Serial Line Internet Protocol places data packets into data frames in preparation for transport across network hardware media. This protocol is used for sending data across serial lines. There is no error correction, addressing or packet identification. There is no authentication or negotiation capabilities with SLIP. CSLIP - Compressed Serial Line Internet Protocol is essentially data compression of the SLIP protocol. It uses Van Jacobson compression to drastically reduce the overhead of packet overhead. Ethernet - Ethernet is not really called a protocol. There are also many types of Ethernet. The most common Ethernet which is used to control the handling of data at the lowest layer of the network is 802.3 Ethernet. 802.3 Ethernet provides a means of encapsulating data frames to be sent between computers. It specifies how network data collisions are handled along with hardware addressing of network cards. 3. Network Layer: At the network layer (or, more accurately, the internetwork layer), TCP/IP supports the Internetworking Protocol (IP). IP, in turn, uses four supporting protocols: ARP, RARP, ICMP, and IGMP. IP - Internetworking Protocol is the transmission mechanism used by the TCP/IP protocols. It is an unreliable and connectionless protocol—a best-effort delivery service. The term best effort means that IP provides no error checking or tracking. IP assumes the unreliability of the underlying layers and does its best to get a transmission through to its destination, but with no guarantees. IP transports data in packets called datagrams, each of which is transported separately. Datagrams can travel along different routes and can arrive out of sequence or be duplicated. IP does not keep track of the routes and has no facility for reordering datagrams once they arrive at their destination. ARP – The Address Resolution Protocol is used to associate a logical address with a physical address. On a typical physical network, such as a LAN, each device on a link is identified by a physical or station address, usually imprinted on the Network Interface Card (NIC). ARP is used to find the physical address of the node when its Internet address is known. ICMP - The Internet Control Message Protocol is a mechanism used by hosts and I gateways to send notification of datagram problems back to the sender. ICMP sends the query and error reporting messages. 4. Transport Layer: Traditionally the transport layer was represented in TCP/IP by two protocols: TCP and UDP. TCP and UDP are transport level protocols responsible for delivery of a message from a process (running program) to another process. A new transport layer protocol, SCTP, has been devised to meet the needs of some applications. TCP - The Transmission Control Protocol provides full transport-layer services to applications. TCP is a reliable stream transport protocol. The term stream, in this context, means connection-oriented: A connection must be established between both ends of a transmission before either can transmit data.