Photo by Mohammad Aziz Hasan Raaz on Unsplash
Network Application Layer
Introduction to application layer
EXAMPLES OF NETWORK APPLICATION
Their are many apps which use networking concepts like web browser,email,skype,etc.
Fun thing is that to make these app you need to write code only for the application layer not for core network layers.
TYPES OF PARADIGMS
CLIENT-SERVER PARADIGM
server is always present on host and it always has permanent ip address
on other hand client is not on host and it has dynamic ip address
for eg HTTP & IMAP & FTP
PEER TO PEER ARCHITECTURE
They dont need servers they directly contact with each other like P2P file sharing apps
WHAT ARE SOCKETS ?
Sockets are like doors for end point systems, in any communication there are 2 sockets one is for sender & other is for reciever.
TCP vs UDP
Each type of apps have different requirements like some may accept loss of data some not , some may accept delay and some not ,etc.
According to requirement they use TCP or UDP.
But what is basic difference between TCP & UDP
TCP is far better than UDP because it provides many good features than UDP
In earlier days TCP was not secured so Transport Security Layer is applied to TCP to make it secure