SlideShare a Scribd company logo
1 of 9
Download to read offline
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]



                             OSI Reference Model

                               Mukesh N. Tekwani
                           mukeshtekwani@hotmail.com
                                    Mumbai


OSI Reference Model is a standard approach to network design. It is developed by
the International Standards Organization (ISO). The word “Open” signifies that the
model deals with connecting open systems – that is, systems that are open for
communication with other systems.

The OSI model has 7 layers. The following principles were applied to arrive at the
seven layers:
1. The complex task of network architecture is divided into a set of functions.
2. A layer should be created where a different level of abstraction is needed.
3. Each layer should perform a well defined function.
4. The layer boundaries should be chosen to minimize the information flow across
   the interfaces.
5. The number of layers should be large enough that distinct functions need not be
   thrown together in the same layer out of necessity, and small enough that the
   architecture does not become unwieldy. Functions which are similar are grouped
   together within layers.
6. The internal design of a layer is independent of the function it provides.
7. Each layer knows only about its immediately adjacent layers. A layer utilizes the
   services of the layer below and provides services to the layer above.
8. Each layer can be regarded as a black box


Network Model:
       What is a model? – A model is a hypothetical description of a complex entity
       or process. The process of data communication along a network is very
       complex involving hardware and software.
       Network model - A method of describing and analyzing data communications
       networks by breaking the entire set of communications process into a number
       of layers.


Network Architecture:
       A set of layers and protocols is called a network architecture
       It refers to the physical and logical design of a network


Protocol:
It is a formal description of message formats and the rules that two computers must
follow in order to exchange messages. This set of rules describes how data is
transmitted over a network. OSI is not a protocol. Protocols are needed for the
following reasons:


                   OSI & TCP/IP Reference Models – Page 1 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

             In what format will the messages be transmitted?
             At what speed should messages be transmitted?
             What to do if errors take place?
             What to do if parts of a message are lost?


Layered Approach To Networking:
      Divide the complex task into a number of simpler sub-tasks. A layer performs
      that simple sub-task.
      Each layer builds upon the layer below it, adding new functionality.
      The entities comprising the corresponding layers on different machines are
      called peers.
      It is the peers that communicate by using the protocols.
      Actually, data is not transferred from layer n on one machine to layer n on
      another machine.
      Each layer passes data and control information to the layer immediately below
      it, until the lowest layer is reached.
      Actual data communication takes place through the lowest layer – the physical
      layer.


Design Issues for Layers:
      Addressing - some mechanism is needed for specifying the source and
      destination systems.
      Error control – error detection and correction
      Order of messages must be preserved.
      Flow control – fast sender and slow receiver – prevent the receiver from being
      flooded with data
      Disassembling, transmitting, and reassembling large messages – individual
      parts of messages must be numbered serially so that reassembly is possible,
      and lost / damaged messages can be retransmitted.
      Multiplexing / de-multiplexing – Multiplexing is a technique that allows
      several signals to be transmitted over a single communications channel.
      Multiplexing permits efficient utilization of channel resources. De-
      multiplexing is carried out at the receiving end to separate the signals.
      Routing - it is the act of moving information across an internetwork from a
      source to a destination


Concept of Services and Protocols:
      A service is a set of operations that a layer provides to the layer above it.
      Service defines what operations the layer is prepared to perform.
      A service relates to the interface between two layers – the lower layer is
      service provider and the upper layer is service user.
      A protocol is a set of rules governing the format and meaning of the packets.
      Protocols relate to packets sent between peer entities on different machines.
      Entities use protocols.
      Protocols can be changed provided the services visible to the user do not
      change. Thus services and protocols are completely decoupled.


                 OSI & TCP/IP Reference Models – Page 2 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

       Analogy with programming languages:
          •     A service is like an object in an object-oriented language
          •     What operations can be performed on this object is defined
          •     How these operations are to be performed is not defined
       Protocol relates to the implementation of the service – how it is done


Layers of the OSI Model:

                                    Application
                                   Presentation
                                       Session
                                     Transport
                                      Network
                                     Data Link
                                      Physical

Useful mnemonics to remember the order of these layers:
All People Seem To Need Data Processing
Please Do Not Tell Secret Passwords Anytime


Application Layer:
•    This is the top layer of the reference model.
•    Examples: email client, Internet browser, file transfer
•    How can two applications communicate in a meaningful way? - The particular
     needs of an application specify the communication characteristics at the
     application layer.
•    Contains protocols that allow the users to access the network (FTP, HTTP,
     SMTP, etc
•    Does not include application programs such as email, browsers, word processing
     applications, etc
•    Protocols contain utilities and network-based services that support email via
     SMTP, Internet access via HTTP, file transfer via FTP, etc


Presentation Layer:
•    Examples: compression, encryption
•    What does the data look like? - The Presentation layer provides services that
     affect how data passed between applications will look, such as character set
     conversion, or encryption/decryption.
•    Translation
         o Different computers use different encoding systems (bit order
             translation)
         o Convert data into a common format before transmitting.


                   OSI & TCP/IP Reference Models – Page 3 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

         o Syntax represents info such as character codes, data types, and file
             formats (how many bits to represent data – 8 or 7 bits
•    Compression – reduce number of bits to be transmitted
•    Encryption – transform data into an unintelligible format at the sending end for
     data security
•    Decryption – at the receiving end.


Session Layer
•    Main functions of this layer are:
        o Dialog control – allows two systems to enter into a dialog, keep a track
            of whose turn it is to transmit
        o Synchronization – adds check points (synchronization points) into
            stream of data.
•    How can more than one resource talk to only one of me? – The session layer
     answers the need for individual hosts to support more than one active
     connection at a time.


Transport Layer
•    Main functions of this layer are:
         o Responsible for source-to-destination delivery of the entire message
         o Segmentation and reassembly – divide message into smaller segments,
             number them and transmit. Reassemble these messages at the receiving
             end.
         o Error control – make sure that the entire message arrives without errors –
             else retransmit.
•    What if data arrives garbled or out of order or too fast? – The Transport Layer
     provides end-to-end communication integrity. If a packet is missing or garbled,
     or arrives out-of-order, or too soon, the protocol at this layer will attempt to
     correct.


Network Layer
Main functions of this layer are:
        o Responsible for delivery of packets across multiple networks
        o Routing – Provide mechanisms to transmit data over independent
            networks that are linked together.
        o Network layer is responsible only for delivery of individual packets and
            it does not recognize any relationship between those packets


Data Link Layer
•    Responsible for delivery of data between two systems on the same network
•    Main functions of this layer are:
        o Framing – divides the stream of bits received into manageable data units
            called frames.
        o Physical Addressing – Add a header to the frame to define the physical
            address of the source and the destination machines.


                  OSI & TCP/IP Reference Models – Page 4 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

         o Flow control – Impose a flow control – control rate at which data is
           transmitted so as not to flood the receiver
         o Error Control – Adds mechanisms to detect and retransmit damaged or
           lost frames; also prevents duplication of frames. This is achieved by
           adding a trailer to the end of a frame.


Physical layer
•     Functions of Physical Layer:
         o Bit representation – encode bits into electrical or optical signals
         o Transmission rate – The number of bits sent each second
         o Physical characteristics of transmission media
         o Synchronizing the sender and receiver clocks
         o Transmission mode – simplex, half-duplex, full duplex
         o Physical Topology – how devices are connected – ring, star, mesh, bus
             topology
•     Transmit raw bit-stream over physical cable.
•     Define physical aspects of media, network cards, etc.


Connection-oriented and Connectionless Services:
Layers can offer two types of services t5o the layers above them: connection-oriented
and connectionless.

    Connection-oriented service is modelled after the telephone system. To talk to
    someone, pick up a phone, dial the number, talk and disconnect. Similarly, in a
    network, the service user will
       1. Establish a connection
       2. Use the connection
       3. Release the connection
       4. The sender, receiver and the network may conduct a negotiation about data
          transfer speed, maximum message size, etc.

When a connection is established, the sender and receiver may conduct a negotiation
about parameters to be used such as maximum message size, data transfer speed, etc.

Connection-oriented service is used when reliability is important. Only a single path is
established for the call, and all the data follows that path.

    Connectionless service is modelled after the post office system. Each message
    (letter) carries the full address of the destination system. Each message is routed
    through the network system independent of the other messages. If two messages
    are sent to the same destination, normally the first one to be sent should arrive
    first. But it is possible that the second message arrives first. Since each message
    (packet) is routed independently, the network cannot guarantee that all the
    messages will arrive at the destination in the transmitting order. Different parts of
    a message may travel along different routes.




                    OSI & TCP/IP Reference Models – Page 5 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]


                               TCP / IP Protocol
What is TCP / IP?
TCP – Transmission Control Protocol
IP – Internetwork Protocol
TCP/IP refers to a collection of protocols
The name TCP/IP is misleading because TCP and IP are only two of the many
protocols in this collection of protocols.

TCP is a reliable connection-oriented protocol with the following features:
1. Allows error-free transmission.
2. Incoming byte stream is fragmented into a number of shorter messages and these
   are passed on to the next layer.
3. At the receiving end the TCP reassembles the messages into an output stream
4. TCP also handles flow control – to control data transfer rate so that a slow
   receiver is not flooded with data from a fast sender.
5. A connection must be established between the sender and the receiver before
   transmission begins.
6. TCP creates a virtual circuit between sender and receiver for the duration of the
   transmission.
7. TCP begins each transmission by alerting the receiver that segments are on their
   way (connection establishment).
8. Each transmission is ended with connection termination.


Layers of TCP/IP Model:

                                     Application
                                      Transport
                                       Internet
                                      Data Link
                                       Physical


The TCP / IP suite does not define any specific protocols at the data link and physical
layers.

The Application layer: This is equivalent to the combined OSI Session, Presentation,
and Application layers. All the functions handled by these 3 layers in the OSI model
is handled by the Application layer. This layer contains the higher level protocols:
a. FTP – File Transfer Protocol – basic file transfer between hosts (computers)
b. SMTP – Simple Mail Transfer Protocol (for email)
c. HTTP – Hyper Text Transfer Protocol (for web browsing)

A data unit created at the application layer is called a message.


                    OSI & TCP/IP Reference Models – Page 6 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]



Encapsulation of Data: TCP/IP protocol suite encapsulates data units at various
layers of the model
a. At the Application layer, the data unit created is called a message.
b. The Transport layer adds a header to form either a segment with TCP or a user
    datagram with UDP.
c. Each segment created by TCP includes:
         i. A sequencing number for re-ordering after receipt.
        ii. An acknowledgement ID number
       iii. Source address and destination address
       iv. Checksum – for error detection
        v. Data
       vi. And other fields
d. The Network (or Internet) layer adds another header to form a datagram. A
    datagram is a self-contained message unit which contains sufficient information to
    allow it to be routed from the source to the destination. The protocol used at the
    data link layer encapsulates the datagram into a frame and this is transmitted
    across the transmission medium.

Transport Layer:
   •   This layer is represented by two protocols – TCP (Transmission Control
       Protocol ) and UDP (User Datagram Protocol).
   •   UDP is simpler but is used when reliability and security are less important
       than size and speed – such as speech and video where a loss of few data is
       not significant, but speed is important.


Network Layer or Internetwork Layer
Internetwork Protocol (IP) is an unreliable and connectionless datagram protocol.
It offers a best–effort delivery service. There is no error checking. IP does its best to
get a transmission through to its destination but with no guarantees. Noise can cause
bit errors during transmission, and datagrams maybe discarded due to timeout errors.

IP transports data in packets called datagrams:
•     Each datagram is transported separately.
•     Datagrams can be of variable lengths (upto 64 KB).
•     Datagrams may travel along different routes and may arrive out of sequence.
•     IP does not keep track of the routes.
•     IP does not have the facility to reorder datagrams once they arrive.
•     A datagram contains a header and data.
•     The header contains a number of fields including source and destination address.


Comparison of OSI and TCP/IP Models:
o The OSI model makes a clear distinction between services, interfaces and
  protocols
o Each layer performs some service for the layer above it




                    OSI & TCP/IP Reference Models – Page 7 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

o A layer’s interface tells the processes above it how to access it. It specifies what
  the parameters are and what results to expect (somewhat like a function
  declaration)
o The protocols used in a layer are used to get the job done.
o The OSI model has 7 layers while the TCP/ IP model has 5 layers
o Both have network, transport, and application layers, but the other layers are
  different
o OSI model supports both connectionless and connection-oriented communication
o TCP/IP supports only connectionless communication


How TCP/IP works?
User application programs communicate with the top layer in the protocol stack. This
layer passes information to the next subsequent lower layer of the stack, and so on till
the information is passed to the lowest layer, the physical layer, which transfers the
information to the destination network.

At the destination, the lower layer passes the received information to its higher levels,
which in turn passes the data to the destination application. Each protocol layer
performs various functions which are independent of the other layers. Each layer
communicates with equivalent layers on another computer; this is called peer
interaction


File Transfer using TCP / IP:
An application program, transferring files using TCP/IP, performs the following:

At the sending end:

   •   the application layer passes the data to the transport layer of the source
       computer
   •   the transport layer
               - divides the data into TCP segments
               - adds a header with a sequence number to each TCP segment
               - passes the TCP segments to the IP layer
   •   the IP layer
               - creates a packet with a data portion containing the TCP segment
               - adds a packet header containing the source and destination IP
                 addresses
                - determines the physical address of the destination computer
               - passes the packet and destination physical address to the datalink
                  layer
   •   the datalink layer transmits the IP packet in the data portion of a frame

At the receiving end:

   •   the destination computers datalink layer
              - discards the datalink header and passes the IP packet to the IP layer




                    OSI & TCP/IP Reference Models – Page 8 of 9
Prof. Mukesh N Tekwani [Mobile: 9869 488 356]

     •   the destination’s IP layer
                - checks the IP packet header and checksum
                - if okay, discards IP header & passes the TCP segment to the TCP
                   layer
     •   the destination’s TCP layer
                - computes a checksum for the TCP segment data and header
                - if okay, sends acknowledge to the source computer
                - discards the TCP header and passes the data to the application




                                      Questions

1.   What is a peer-to-peer process? Explain with examples.
2.   State the layers of the OSI mode and state the functions of each layer.
3.   What is the difference between connectionless communication and connection-
     oriented communication?
4.   What are the reasons for using layered protocols?
5.   What does “negotiation” mean when discussing network protocols?
6.   If the unit exchanged at the data link layer is called frame and the unit exchanged
     at the network layer is called a packet, do frames encapsulate packets or do
     packets encapsulate frames? Explain your answer.
7.   List two ways in which OSI and TCP/IP reference models are same and two ways
     in which they are different.
8.   How do the layers of the TCP/IP model correlate to the layers of the OSI model?



                                 ======= X =======




                    OSI & TCP/IP Reference Models – Page 9 of 9

More Related Content

What's hot

Data Communications and Computer Networks
Data Communications and Computer Networks Data Communications and Computer Networks
Data Communications and Computer Networks Jubayer Alam Shoikat
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editioneepawan1809
 
Guided Transmission Media
Guided  Transmission MediaGuided  Transmission Media
Guided Transmission MediaRajapriya82
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission mediaManish8976
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaMukesh Chinta
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devicesRajesh Sadhukha
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting PresentationTouhidul Fahim
 
DATA COMMUNICATION PPT
DATA COMMUNICATION PPTDATA COMMUNICATION PPT
DATA COMMUNICATION PPTMajane Padua
 
Computer Networks Lecture Notes 01
Computer Networks Lecture Notes 01Computer Networks Lecture Notes 01
Computer Networks Lecture Notes 01Sreedhar Chowdam
 
Computer networks7
Computer networks7Computer networks7
Computer networks7Ali Raza
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network LayerManoj Kumar
 
IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11Keshav Maheshwari
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols BE Smârt
 

What's hot (20)

WLAN
WLANWLAN
WLAN
 
Data Communications and Computer Networks
Data Communications and Computer Networks Data Communications and Computer Networks
Data Communications and Computer Networks
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
 
FDDI
FDDIFDDI
FDDI
 
Guided Transmission Media
Guided  Transmission MediaGuided  Transmission Media
Guided Transmission Media
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission media
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission Media
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
OSI MODEL - A PROJECT
OSI MODEL - A PROJECTOSI MODEL - A PROJECT
OSI MODEL - A PROJECT
 
Computer networking devices
Computer networking devicesComputer networking devices
Computer networking devices
 
TCP IP Model | Computer Science
TCP IP Model | Computer ScienceTCP IP Model | Computer Science
TCP IP Model | Computer Science
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Osi model
Osi modelOsi model
Osi model
 
DATA COMMUNICATION PPT
DATA COMMUNICATION PPTDATA COMMUNICATION PPT
DATA COMMUNICATION PPT
 
Computer Networks Lecture Notes 01
Computer Networks Lecture Notes 01Computer Networks Lecture Notes 01
Computer Networks Lecture Notes 01
 
Computer networks7
Computer networks7Computer networks7
Computer networks7
 
OSI models
OSI modelsOSI models
OSI models
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11IEEE standards 802.3.&802.11
IEEE standards 802.3.&802.11
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols
 

Viewers also liked

Viewers also liked (8)

OSI Model of Networking
OSI Model of NetworkingOSI Model of Networking
OSI Model of Networking
 
Chap 1 introduction
Chap 1 introductionChap 1 introduction
Chap 1 introduction
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing files
 
OSI Model - Every Detail Explained
OSI Model - Every Detail ExplainedOSI Model - Every Detail Explained
OSI Model - Every Detail Explained
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 
7 layer OSI
7 layer OSI7 layer OSI
7 layer OSI
 
OSI Model
OSI ModelOSI Model
OSI Model
 

Similar to OSI Model (20)

Chap 2 network models
Chap 2 network modelsChap 2 network models
Chap 2 network models
 
unit-1fon (1).pptx
unit-1fon (1).pptxunit-1fon (1).pptx
unit-1fon (1).pptx
 
PC 106 PPT-06
PC 106 PPT-06PC 106 PPT-06
PC 106 PPT-06
 
Osi model
Osi modelOsi model
Osi model
 
OsI reference model
OsI reference modelOsI reference model
OsI reference model
 
BAPANKAR15800121011 SOFT.pptx
BAPANKAR15800121011 SOFT.pptxBAPANKAR15800121011 SOFT.pptx
BAPANKAR15800121011 SOFT.pptx
 
Computer network layers
Computer network layersComputer network layers
Computer network layers
 
OSI and TCP/IP reference models in networking
OSI and TCP/IP reference models in networkingOSI and TCP/IP reference models in networking
OSI and TCP/IP reference models in networking
 
OSI &TCP/IP Model
OSI &TCP/IP ModelOSI &TCP/IP Model
OSI &TCP/IP Model
 
osi reference model ppt
osi reference model pptosi reference model ppt
osi reference model ppt
 
savli_._Jagrati._Yash_ppt.ppt
savli_._Jagrati._Yash_ppt.pptsavli_._Jagrati._Yash_ppt.ppt
savli_._Jagrati._Yash_ppt.ppt
 
Network fundamentals
Network fundamentalsNetwork fundamentals
Network fundamentals
 
Ccna notes
Ccna notesCcna notes
Ccna notes
 
Osi layer and network protocol
Osi layer and network protocolOsi layer and network protocol
Osi layer and network protocol
 
OSI MODEL
OSI MODELOSI MODEL
OSI MODEL
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 
Lecture2
Lecture2Lecture2
Lecture2
 
Internetworking
InternetworkingInternetworking
Internetworking
 

More from Mukesh Tekwani

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelMukesh Tekwani
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfMukesh Tekwani
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - PhysicsMukesh Tekwani
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion Mukesh Tekwani
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Mukesh Tekwani
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion Mukesh Tekwani
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversionMukesh Tekwani
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Mukesh Tekwani
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prismMukesh Tekwani
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surfaceMukesh Tekwani
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomMukesh Tekwani
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesMukesh Tekwani
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEMukesh Tekwani
 

More from Mukesh Tekwani (20)

Computer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube ChannelComputer Science Made Easy - Youtube Channel
Computer Science Made Easy - Youtube Channel
 
The Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdfThe Elphinstonian 1988-College Building Centenary Number (2).pdf
The Elphinstonian 1988-College Building Centenary Number (2).pdf
 
Circular motion
Circular motionCircular motion
Circular motion
 
Gravitation
GravitationGravitation
Gravitation
 
ISCE-Class 12-Question Bank - Electrostatics - Physics
ISCE-Class 12-Question Bank - Electrostatics  -  PhysicsISCE-Class 12-Question Bank - Electrostatics  -  Physics
ISCE-Class 12-Question Bank - Electrostatics - Physics
 
Hexadecimal to binary conversion
Hexadecimal to binary conversion Hexadecimal to binary conversion
Hexadecimal to binary conversion
 
Hexadecimal to decimal conversion
Hexadecimal to decimal conversion Hexadecimal to decimal conversion
Hexadecimal to decimal conversion
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Gray code to binary conversion
Gray code to binary conversion Gray code to binary conversion
Gray code to binary conversion
 
What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
Decimal to Binary conversion
Decimal to Binary conversionDecimal to Binary conversion
Decimal to Binary conversion
 
Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21Video Lectures for IGCSE Physics 2020-21
Video Lectures for IGCSE Physics 2020-21
 
Refraction and dispersion of light through a prism
Refraction and dispersion of light through a prismRefraction and dispersion of light through a prism
Refraction and dispersion of light through a prism
 
Refraction of light at a plane surface
Refraction of light at a plane surfaceRefraction of light at a plane surface
Refraction of light at a plane surface
 
Spherical mirrors
Spherical mirrorsSpherical mirrors
Spherical mirrors
 
Atom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atomAtom, origin of spectra Bohr's theory of hydrogen atom
Atom, origin of spectra Bohr's theory of hydrogen atom
 
Refraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lensesRefraction of light at spherical surfaces of lenses
Refraction of light at spherical surfaces of lenses
 
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGEISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
ISCE (XII) - PHYSICS BOARD EXAM FEB 2020 - WEIGHTAGE
 
Cyber Laws
Cyber LawsCyber Laws
Cyber Laws
 
XML
XMLXML
XML
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

OSI Model

  • 1. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] OSI Reference Model Mukesh N. Tekwani mukeshtekwani@hotmail.com Mumbai OSI Reference Model is a standard approach to network design. It is developed by the International Standards Organization (ISO). The word “Open” signifies that the model deals with connecting open systems – that is, systems that are open for communication with other systems. The OSI model has 7 layers. The following principles were applied to arrive at the seven layers: 1. The complex task of network architecture is divided into a set of functions. 2. A layer should be created where a different level of abstraction is needed. 3. Each layer should perform a well defined function. 4. The layer boundaries should be chosen to minimize the information flow across the interfaces. 5. The number of layers should be large enough that distinct functions need not be thrown together in the same layer out of necessity, and small enough that the architecture does not become unwieldy. Functions which are similar are grouped together within layers. 6. The internal design of a layer is independent of the function it provides. 7. Each layer knows only about its immediately adjacent layers. A layer utilizes the services of the layer below and provides services to the layer above. 8. Each layer can be regarded as a black box Network Model: What is a model? – A model is a hypothetical description of a complex entity or process. The process of data communication along a network is very complex involving hardware and software. Network model - A method of describing and analyzing data communications networks by breaking the entire set of communications process into a number of layers. Network Architecture: A set of layers and protocols is called a network architecture It refers to the physical and logical design of a network Protocol: It is a formal description of message formats and the rules that two computers must follow in order to exchange messages. This set of rules describes how data is transmitted over a network. OSI is not a protocol. Protocols are needed for the following reasons: OSI & TCP/IP Reference Models – Page 1 of 9
  • 2. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] In what format will the messages be transmitted? At what speed should messages be transmitted? What to do if errors take place? What to do if parts of a message are lost? Layered Approach To Networking: Divide the complex task into a number of simpler sub-tasks. A layer performs that simple sub-task. Each layer builds upon the layer below it, adding new functionality. The entities comprising the corresponding layers on different machines are called peers. It is the peers that communicate by using the protocols. Actually, data is not transferred from layer n on one machine to layer n on another machine. Each layer passes data and control information to the layer immediately below it, until the lowest layer is reached. Actual data communication takes place through the lowest layer – the physical layer. Design Issues for Layers: Addressing - some mechanism is needed for specifying the source and destination systems. Error control – error detection and correction Order of messages must be preserved. Flow control – fast sender and slow receiver – prevent the receiver from being flooded with data Disassembling, transmitting, and reassembling large messages – individual parts of messages must be numbered serially so that reassembly is possible, and lost / damaged messages can be retransmitted. Multiplexing / de-multiplexing – Multiplexing is a technique that allows several signals to be transmitted over a single communications channel. Multiplexing permits efficient utilization of channel resources. De- multiplexing is carried out at the receiving end to separate the signals. Routing - it is the act of moving information across an internetwork from a source to a destination Concept of Services and Protocols: A service is a set of operations that a layer provides to the layer above it. Service defines what operations the layer is prepared to perform. A service relates to the interface between two layers – the lower layer is service provider and the upper layer is service user. A protocol is a set of rules governing the format and meaning of the packets. Protocols relate to packets sent between peer entities on different machines. Entities use protocols. Protocols can be changed provided the services visible to the user do not change. Thus services and protocols are completely decoupled. OSI & TCP/IP Reference Models – Page 2 of 9
  • 3. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] Analogy with programming languages: • A service is like an object in an object-oriented language • What operations can be performed on this object is defined • How these operations are to be performed is not defined Protocol relates to the implementation of the service – how it is done Layers of the OSI Model: Application Presentation Session Transport Network Data Link Physical Useful mnemonics to remember the order of these layers: All People Seem To Need Data Processing Please Do Not Tell Secret Passwords Anytime Application Layer: • This is the top layer of the reference model. • Examples: email client, Internet browser, file transfer • How can two applications communicate in a meaningful way? - The particular needs of an application specify the communication characteristics at the application layer. • Contains protocols that allow the users to access the network (FTP, HTTP, SMTP, etc • Does not include application programs such as email, browsers, word processing applications, etc • Protocols contain utilities and network-based services that support email via SMTP, Internet access via HTTP, file transfer via FTP, etc Presentation Layer: • Examples: compression, encryption • What does the data look like? - The Presentation layer provides services that affect how data passed between applications will look, such as character set conversion, or encryption/decryption. • Translation o Different computers use different encoding systems (bit order translation) o Convert data into a common format before transmitting. OSI & TCP/IP Reference Models – Page 3 of 9
  • 4. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] o Syntax represents info such as character codes, data types, and file formats (how many bits to represent data – 8 or 7 bits • Compression – reduce number of bits to be transmitted • Encryption – transform data into an unintelligible format at the sending end for data security • Decryption – at the receiving end. Session Layer • Main functions of this layer are: o Dialog control – allows two systems to enter into a dialog, keep a track of whose turn it is to transmit o Synchronization – adds check points (synchronization points) into stream of data. • How can more than one resource talk to only one of me? – The session layer answers the need for individual hosts to support more than one active connection at a time. Transport Layer • Main functions of this layer are: o Responsible for source-to-destination delivery of the entire message o Segmentation and reassembly – divide message into smaller segments, number them and transmit. Reassemble these messages at the receiving end. o Error control – make sure that the entire message arrives without errors – else retransmit. • What if data arrives garbled or out of order or too fast? – The Transport Layer provides end-to-end communication integrity. If a packet is missing or garbled, or arrives out-of-order, or too soon, the protocol at this layer will attempt to correct. Network Layer Main functions of this layer are: o Responsible for delivery of packets across multiple networks o Routing – Provide mechanisms to transmit data over independent networks that are linked together. o Network layer is responsible only for delivery of individual packets and it does not recognize any relationship between those packets Data Link Layer • Responsible for delivery of data between two systems on the same network • Main functions of this layer are: o Framing – divides the stream of bits received into manageable data units called frames. o Physical Addressing – Add a header to the frame to define the physical address of the source and the destination machines. OSI & TCP/IP Reference Models – Page 4 of 9
  • 5. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] o Flow control – Impose a flow control – control rate at which data is transmitted so as not to flood the receiver o Error Control – Adds mechanisms to detect and retransmit damaged or lost frames; also prevents duplication of frames. This is achieved by adding a trailer to the end of a frame. Physical layer • Functions of Physical Layer: o Bit representation – encode bits into electrical or optical signals o Transmission rate – The number of bits sent each second o Physical characteristics of transmission media o Synchronizing the sender and receiver clocks o Transmission mode – simplex, half-duplex, full duplex o Physical Topology – how devices are connected – ring, star, mesh, bus topology • Transmit raw bit-stream over physical cable. • Define physical aspects of media, network cards, etc. Connection-oriented and Connectionless Services: Layers can offer two types of services t5o the layers above them: connection-oriented and connectionless. Connection-oriented service is modelled after the telephone system. To talk to someone, pick up a phone, dial the number, talk and disconnect. Similarly, in a network, the service user will 1. Establish a connection 2. Use the connection 3. Release the connection 4. The sender, receiver and the network may conduct a negotiation about data transfer speed, maximum message size, etc. When a connection is established, the sender and receiver may conduct a negotiation about parameters to be used such as maximum message size, data transfer speed, etc. Connection-oriented service is used when reliability is important. Only a single path is established for the call, and all the data follows that path. Connectionless service is modelled after the post office system. Each message (letter) carries the full address of the destination system. Each message is routed through the network system independent of the other messages. If two messages are sent to the same destination, normally the first one to be sent should arrive first. But it is possible that the second message arrives first. Since each message (packet) is routed independently, the network cannot guarantee that all the messages will arrive at the destination in the transmitting order. Different parts of a message may travel along different routes. OSI & TCP/IP Reference Models – Page 5 of 9
  • 6. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] TCP / IP Protocol What is TCP / IP? TCP – Transmission Control Protocol IP – Internetwork Protocol TCP/IP refers to a collection of protocols The name TCP/IP is misleading because TCP and IP are only two of the many protocols in this collection of protocols. TCP is a reliable connection-oriented protocol with the following features: 1. Allows error-free transmission. 2. Incoming byte stream is fragmented into a number of shorter messages and these are passed on to the next layer. 3. At the receiving end the TCP reassembles the messages into an output stream 4. TCP also handles flow control – to control data transfer rate so that a slow receiver is not flooded with data from a fast sender. 5. A connection must be established between the sender and the receiver before transmission begins. 6. TCP creates a virtual circuit between sender and receiver for the duration of the transmission. 7. TCP begins each transmission by alerting the receiver that segments are on their way (connection establishment). 8. Each transmission is ended with connection termination. Layers of TCP/IP Model: Application Transport Internet Data Link Physical The TCP / IP suite does not define any specific protocols at the data link and physical layers. The Application layer: This is equivalent to the combined OSI Session, Presentation, and Application layers. All the functions handled by these 3 layers in the OSI model is handled by the Application layer. This layer contains the higher level protocols: a. FTP – File Transfer Protocol – basic file transfer between hosts (computers) b. SMTP – Simple Mail Transfer Protocol (for email) c. HTTP – Hyper Text Transfer Protocol (for web browsing) A data unit created at the application layer is called a message. OSI & TCP/IP Reference Models – Page 6 of 9
  • 7. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] Encapsulation of Data: TCP/IP protocol suite encapsulates data units at various layers of the model a. At the Application layer, the data unit created is called a message. b. The Transport layer adds a header to form either a segment with TCP or a user datagram with UDP. c. Each segment created by TCP includes: i. A sequencing number for re-ordering after receipt. ii. An acknowledgement ID number iii. Source address and destination address iv. Checksum – for error detection v. Data vi. And other fields d. The Network (or Internet) layer adds another header to form a datagram. A datagram is a self-contained message unit which contains sufficient information to allow it to be routed from the source to the destination. The protocol used at the data link layer encapsulates the datagram into a frame and this is transmitted across the transmission medium. Transport Layer: • This layer is represented by two protocols – TCP (Transmission Control Protocol ) and UDP (User Datagram Protocol). • UDP is simpler but is used when reliability and security are less important than size and speed – such as speech and video where a loss of few data is not significant, but speed is important. Network Layer or Internetwork Layer Internetwork Protocol (IP) is an unreliable and connectionless datagram protocol. It offers a best–effort delivery service. There is no error checking. IP does its best to get a transmission through to its destination but with no guarantees. Noise can cause bit errors during transmission, and datagrams maybe discarded due to timeout errors. IP transports data in packets called datagrams: • Each datagram is transported separately. • Datagrams can be of variable lengths (upto 64 KB). • Datagrams may travel along different routes and may arrive out of sequence. • IP does not keep track of the routes. • IP does not have the facility to reorder datagrams once they arrive. • A datagram contains a header and data. • The header contains a number of fields including source and destination address. Comparison of OSI and TCP/IP Models: o The OSI model makes a clear distinction between services, interfaces and protocols o Each layer performs some service for the layer above it OSI & TCP/IP Reference Models – Page 7 of 9
  • 8. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] o A layer’s interface tells the processes above it how to access it. It specifies what the parameters are and what results to expect (somewhat like a function declaration) o The protocols used in a layer are used to get the job done. o The OSI model has 7 layers while the TCP/ IP model has 5 layers o Both have network, transport, and application layers, but the other layers are different o OSI model supports both connectionless and connection-oriented communication o TCP/IP supports only connectionless communication How TCP/IP works? User application programs communicate with the top layer in the protocol stack. This layer passes information to the next subsequent lower layer of the stack, and so on till the information is passed to the lowest layer, the physical layer, which transfers the information to the destination network. At the destination, the lower layer passes the received information to its higher levels, which in turn passes the data to the destination application. Each protocol layer performs various functions which are independent of the other layers. Each layer communicates with equivalent layers on another computer; this is called peer interaction File Transfer using TCP / IP: An application program, transferring files using TCP/IP, performs the following: At the sending end: • the application layer passes the data to the transport layer of the source computer • the transport layer - divides the data into TCP segments - adds a header with a sequence number to each TCP segment - passes the TCP segments to the IP layer • the IP layer - creates a packet with a data portion containing the TCP segment - adds a packet header containing the source and destination IP addresses - determines the physical address of the destination computer - passes the packet and destination physical address to the datalink layer • the datalink layer transmits the IP packet in the data portion of a frame At the receiving end: • the destination computers datalink layer - discards the datalink header and passes the IP packet to the IP layer OSI & TCP/IP Reference Models – Page 8 of 9
  • 9. Prof. Mukesh N Tekwani [Mobile: 9869 488 356] • the destination’s IP layer - checks the IP packet header and checksum - if okay, discards IP header & passes the TCP segment to the TCP layer • the destination’s TCP layer - computes a checksum for the TCP segment data and header - if okay, sends acknowledge to the source computer - discards the TCP header and passes the data to the application Questions 1. What is a peer-to-peer process? Explain with examples. 2. State the layers of the OSI mode and state the functions of each layer. 3. What is the difference between connectionless communication and connection- oriented communication? 4. What are the reasons for using layered protocols? 5. What does “negotiation” mean when discussing network protocols? 6. If the unit exchanged at the data link layer is called frame and the unit exchanged at the network layer is called a packet, do frames encapsulate packets or do packets encapsulate frames? Explain your answer. 7. List two ways in which OSI and TCP/IP reference models are same and two ways in which they are different. 8. How do the layers of the TCP/IP model correlate to the layers of the OSI model? ======= X ======= OSI & TCP/IP Reference Models – Page 9 of 9