ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

OSI Layers, TCP/IP Protocol

Updated on January 29, 2015

Introduction

Communication between computers in a network involves the collective functioning of various devices and softwares. OSI stands for Open Systems Interconnection and created by the International Standard Organization (ISO). The OSI model is a reference tool for understanding data communications between any two networked Systems. It divides the communications processes into seven layers. OSI model tell what each layer should do but does not specify the exact services and protocols used in each layer. The purpose of classification of layers in OSI model is to define specific protocol, function, independent design and testing of components for a particular class of a problem. The different task which allows the communication to take place in computer network can be implemented independently without much interference from other.

OSI Model

Layer 1- Physical Layer

The physical layer is the first or lowest or bottom layer in the seven layer OSI model. The physical layer defines the Mechanical, Electrical, Procedural and Functional specifications for devices used to interface to the network. This is concerned with transmitting raw bits over a communication channel. The design issues have to do with making sure that one side sends a 1 bit, it is received by the other side as a 1 bit, not as a 0 bit. It deals with duration for each bit and amplitude for 1 bit. The bit stream may be grouped into symbols and converted to a physical signal that is transmitted over a hardware transmission medium.

Devices used in the Physical Layer:

  • Repeaters
  • Network Interface Cards (NIC)
  • Hubs
  • Cables
  • Connectors

Layer 2- Data link Layer

The Data link Layer is the second layer in the OSI seven layer model. The main task of data link layer is to take a raw transmission facility and transform it into a line that appears free of undetected transmission errors to the network layer. Data link layer takes care of the speed mismatch between senders and receivers. Any disparity in the speed of sending a data and receiving it is taken care by data link layer.

Layer 3- Network Layer

The network layer is mainly concerned with controlling the operation of the subnet. A key design issue is determining how packets are routed from source to destination. In packet switching, the message is divided into pieces called packets and these packets are sent over the communication network. This layer allows heterogeneous network to be interconnected. It also decides the optimal path for routing of a packet.

Layer 4- Transport Layer

The basic function of transport layer is to receive the data from the session layer and divide it into pieces in order to pass it to the network layer and ensure that the pieces all arrive correctly at the other end. The message received by this layer is broken into smaller blocks and sequence numbers are given to this. A major function of this layer is to hide the details of communication network and provide a network independent device-to-device communication. It also helps in flow control i.e. to make possible a faster host to communicate with a slower host.

Layer 5- Session Layer

A session layer allows users on different machines to establish sessions for communication between them. Establishing a connection involves authentication of the hosts, who want to communicate as well as authentication of transportation service. A session may be used to allow a user to log into a remote system or to transfer a file between two systems. It provides synchronization during file transfer i.e. when a machine is transferring a file to another, if the connection fails in between before the transfer is complete, the sending machine need not start transferring the file again from the beginning instead it can start from the point where it was aborted, when the connection is established again.

Layer 6- Presentation Layer

The presentation layer serves as an interface between the application and the communication network. This layer is concerned with the syntax and semantics of the information transmitted. When a computer stores an information it may be storing it using ASCII or Unicode. The presentation layer performs the compression of data and forms a sequence of symbols according to the standard format.

Layer 7- Application Layer

This layer is used to provide the facility to use the other layers. It contains several protocols to perform a job. The contents of this layer are determined by the user themselves.

Functions:

  • Accessing Remote Files
  • Accessing Remote Databases
  • Electronic Mails

TCP/IP

TCP/IP is the protocol which defines the rules and algorithm for data communication between different computers. TCP/IP is divided into two set of protocols one is called TCP or Transmission Control Protocol and other is called IP or Internet Protocol. TCP/IP is made up of the following three protocols put together:

  1. Hypertext Transfer Protocol (HTTP)- used for sending and receiving web pages.
  2. File Transfer Protocol (FTP)- used for transferring any kind of file like .DOC or .EXE.
  3. Simple Mail Transfer Protocol (SMTP)- used for transferring mail messages.

Transmission Control Protocol

TCP is used in transport layer. This deals with packets over networks. The packets are small pieces of data used for effective communication over the network. When any data has to be sent over internet, it is first broken down into small portions or pieces called datagrams and these pieces of data are communicated as packets. These packets follow a long path, move from one computer to another computer. This process is called routing. The TCP also ensures the safe delivery at the destination computers.

Internet Protocol

Internet protocol is used in network layer. This mainly deals with addresses of computers. The packets are numbered and addressed before being carried towards their destination. The packets are numbered so that they can be put together properly at the receiving end irrespective of the sequence in which they reach. This numbering and addressing also helps in requesting for the data if data loss or error occurs during transmission. The internet protocol decides the address of computer to be labelled on the packet. This allow various computers to read the address of the destination computer and route the packet to the destination node.

Comparison between OSI and TCP/IP models

TCP/IP Protocol Stack

Layer
Protocols
Physical
Ethernet, Token Ring
Network
IP
Transport
TCP, UDP
Application
Telnet, HTTP, FTP, Gopher

Protocol Stack

A set of protocol used by a model, certain protocol per layer is called as protocol stack.


Protocols and networks in the TCP/IP model

Comments

    0 of 8192 characters used
    Post Comment

    No comments yet.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)