google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.

Sunday, April 6, 2014

Computer network - OSI and TCP/IP

Comparison between OSI and TCP/IP :-

OSI TCP/IP
1. Open Systems Interconnection 1. Transfer Control Protocol / Internet protocaol
2.Number of layers are seven (7). 2.Number of layers are four (4).
3.Connection oriented and connectionless
in network and only connection oriented in transport.
3.Only connectionless in Internet and both in Transport.
4. Distinction
1.Services
2.Interfaces
3.Protocols
4.Does not distinction between them.
5.Model first developed.
Therefore, Not biased toward one protocol general model.
5.Protocol first developed
Therefore, does not fit any other protocol stack.
6.No thought was given to inter-networking 6.Main goal to handle inter-networking.
7.Model useful,Protocols not popular. 7.Model not widely accepted ,Protocols universally used.
8.S and P layers empty.
D and N layers overfull.
Many function addressing ,flow control and error control reappear.
8.No distinguish nor mention P and D layer even have functionalities.

Computer network - Service

 Service :-
Service
_______________________|___________________
|                                                                                 |
                   Connection Oriented                                                       Connectionless
                   _______|_________                            ___________________|__________
                   |                              |                         |                              |                        |
Reliable connection       Unreliable connection      Unreliable        Acknowledgement      Request-
oriented service                                                    data-gram            data-gram                   reply
      ______|__________
      |                               |
Message stream         Byte stream


Difference between Connection oriented and Connectionless

          Connection-oriented                                                    Connectionless
1. It is similar to telephone system.                     1. This is modeled after the postal system.

2. Packets received are in same order as sent.    2. Messages arrive out of order.

3.Each service can be characterized by quality    3.Not all applications require reliable service
   of service-reliable or unreliable.                           and not all require connection oriented
                                                                              communication.
4.It has services:                                                 4.It has services: -
   i) Reliable message stream.                                  i) Unreliable data-gram
   ii) Reliable byte stream                                         ii)  Acknowledged data-gram
   iii) Unreliable connection.                                     iii) Request -reply

5. It has example:-                                               5.It has example
   i) Sequence of pages                                            i) Electronic junk mail.
   ii) Remote login.                                                   ii) Registered mail.
   iii) Digitized voice                                                 iii) Database query.



Services primitive :-
1) Set of primitives (operations)
2)Available to user process to access service.
3)depend on service.


Service primitive for implementing a simple connection oriented service:
     Primitive                                                           Meaning
1) LISTEN                -      Block waiting for an incoming connection.
2) CONNECT          -      Establish a connection with a waiting peer
3) RECEIVE             -      Block waiting for an incoming message
4) SEND                   -      Send a message to the peer.
5) DISCONNECT    -      Terminate a connection.

अच्छे विचार करे विचार

  पहचान की नुमाईश, जरा कम करें... जहाँ भी "मैं" लिखा है, उसे "हम" करें... हमारी "इच्छाओं" से ज़्यादा "सुन...