Information flow: The flow of information is from the top layer (usually application layer) down to the physical layer at the information source node; and from the physical layer up to the application later at the destination node as illustrated in the figure below. The information exchange process occurs between peer OSI layers. Each layer in the source system adds control information to data and each layer in the destination system analyzes and removes the control information from that data.
from figure 2
System A has data from a software application to send to System B.
the data is passed to the application layer.
The application layer in System A then adds any control information required by the peer layer in system B/ application layer in System B by prepending a header to the data.
The resulting information unit (a header and the data) is passed to the presentation layer, which prepends its own header containing control information intended for the presentation layer in System B.
The information unit grows in size as each layer prepends its own header (and in some cases a trailer) that contains control information to be used by its peer layer in System B.
At the physical layer, the entire information unit is placed onto the network medium.
The physical layer in System B receives the information unit and passes it to the data-link layer. The data link layer in System B then reads the control information contained in the header prepended by the data link layer in System A. The header is then removed, and the remainder of the information unit is passed to the network layer.
Each layer performs the same actions:
- The layer reads the header from its peer layer
- strips it off
- passes the remaining information unit to the next highest layer.
After the application layer performs these actions, the data is passed to the recipient software application in System B, in exactly the form in which it was transmitted by the application in System A.
OSI Model | TCP/IP model |
---|---|
It is developed by ISO (International Standard Organization) | It is developed by ARPANET (Advanced Research Project Agency Network). |
OSI model provides a clear distinction between interfaces, services, and protocols. | TCP/IP doesn’t have any clear distinguishing points between services, interfaces, and protocols. |
OSI refers to Open Systems Interconnection. | TCP refers to Transmission Control Protocol. |
OSI uses the network layer to define routing standards and protocols. | TCP/IP uses only the Internet layer. |
OSI follows a vertical approach. | TCP/IP follows a horizontal approach. |
OSI layers have seven layers. | TCP/IP has four layers. |
OSI model, the transport layer is only connection-oriented. | A layer of the TCP/IP model is both connection-oriented and connectionless. |
In the OSI model, the data link layer and physical are separate layers. | In TCP, physical and data link are both combined as a single host-to-network layer. |
Session and presentation layers are not a part of the TCP model. | There is no session and presentation layer in TCP model. |
The minimum size of the OSI header is 5 bytes. | Minimum header size is 20 bytes. |
ADDRESSING
Four levels of addresses | employing the TCP/IP protocols |
---|---|
physical | Underlying physical networks in the physical +data link layer. |
logical | Ip and other protocols under network layer |
port | SCTP, TCP, UDP protocols under transport layer |
specific | Processes under application layer |
A part of an internet with \two routers connecting three LANs. Each device (computer or router) has a pair of addresses (logical and physical) for each connection. In this case, each computer is connected to only one link and therefore has only one pair of addresses. Each router, however, is connected to three networks (only two are shown in the figure). So each router has three pairs of addresses, one for each connection.
The computer with logical address A and physical address 10 needs to send a packet to the computer with logical address P and physical address 95.
The sender encapsulates its data in a packet at the network layer and adds two logical addresses (A and P). The network layer, however, needs to find the physical address of the next hop before the packet can be delivered.
The network layer consults its routing table and finds the logical address of the next hop (router 1) to be F.
Another protocol, Address Resolution Protocol (ARP) finds the physical address of router 1 (20) that corresponds to its logical address(F). Now the network layer passes this address to the data link layer, which in turn, encapsulates the packet with physical destination address 20 and physical source address 10.
Router 1 decapsulates the packet from the frame to read the logical destination address P. Since the logical destination address(P) does not match the router’s logical address(F), the router knows that the packet needs to be forwarded.
The router consults its routing table and ARP to find the physical destination address of the next hop (router 2), creates a new frame, encapsulates the packet, and sends it to router 2.
Note the physical addresses in the frame. The source physical address changes from 10 to 99. The destination physical address changes from 20 (router 1 physical address) to 33 (router 2 physical address).
The logical source and destination addresses must remain the same; otherwise the packet will be lost. At router 2 we have a similar scenario. The physical addresses are changed, and a new frame is sent to the destination computer.
When the frame reaches the destination, the packet is decapsulated. The destination logical address P matches the logical address of the computer.
The data are decapsulated from the packet and delivered to the upper layer. Note that although physical addresses will change from hop to hop, logical addresses remain the same from the source to destination.
To show that data from process a needs to be delivered to process j, and not k, the transport layer encapsulates data from the application layer in a packet and adds two port addresses (a and j), source and destination. The packet from the transport layer is then encapsulated in another packet at the network layer with logical source and destination addresses (A and P). Finally, this packet is encapsulated in a frame with the physical source and destination addresses of the next hop. We have not shown the physical addresses because they change from hop to hop inside the cloud designated as the Internet. Note that although physical addresses change from hop to hop, logical and port addresses remain the same from the source to destination.
A port address is a 16-bit address represented by one decimal number as shown.753—A port address is a 16-bit address represented by one decimal number as shown.
Service primitives : Lcrsd