| Explanation
:
The computer in the above picture needs to send some data to another
computer. The Application
layer is where the user interface exists, here the user
interacts with the application he or she is using, then this data is passed
to the Presentation layer
and then to the Session layer.
These three layer add some extra information to the original data that
came from the user and then passes it to the Transport
layer. Here the data is broken into smaller pieces (one
piece at a time transmitted) and the TCP header is a added. At this point,
the data at the Transport
layer is called a segment.
Each segment is sequenced so the data stream can be put back together
on the receiving side exactly as transmitted. Each segment is then handed
to the Network layer
for network addressing (logical addressing) and routing through the internet
network. At the Network layer,
we call the data (which includes at this point the transport header and
the upper layer information) a packet.
The Network layer
add its IP header and then sends it off to the Datalink
layer. Here we call the data (which includes the Network
layer header, Transport
layer header and upper layer information) a frame.
The Datalink layer
is responsible for taking packets from the Network
layer and placing them on the network medium (cable). The
Datalink layer
encapsulates each packet in a frame which contains the hardware address
(MAC) of the source and destination computer (host) and the LLC information
which identifies to which protocol in the prevoius layer (Network
layer) the packet should be passed when it arrives to its
destination. Also, at the end, you will notice the FCS
field which is the Frame Check
Sequence. This is used for error checking and is also added
at the end by the Datalink
layer.
If the destination computer is on a remote network, then the frame is
sent to the router or gateway to be routed to the desination. To put this
frame on the network, it must be put into a digital signal. Since a frame
is really a logical group of 1's and 0's, the Physical
layer is responsible for encapsulating these digits into
a digital signal which is read by devices on the same local network.
There are also a few 1's and 0's put at the begining of the frame, only
so the receiving end can synchronize with the digital signal it will be
receiving.
Below is a picture of what happens when the data is received at the destination
computer. |