When data comes over by the cable in our PC, there are seven-layer works during this process:
(1) Physical Layer
(2) Data Link Layer
(3) Network Layer
(4) Transport Layer
(5) Session Layer
(6) Presentation Layer
(7) Application Layer
Every layer has different work in sending out the data to the destination.
Physical layer: It converts binary bits into electrical bits, and again electrical bits turn into the binary bits.
Datalink layer: It receives to data from network layer & turns it in frames
Network layer: It collects data from transform layer&converting them into the packet.
Transport layer: It creates a segment for data transmission.
Session layer: It creates a session for the data transmission it establishes the connection manage it after transfer terminates the connection.
Presentation layer: it encrypts and decrypts data.
Application layer: it converts data into the binary bits.