chapter2 Flashcards
network application
network application are those application which connect diff devices on the globe
an network applicatin must work on diff end explain
also explaion why we can not write code for network core
1) write a prog which can run on diff end system i.e host and server
2)note : we do not need to write code to run this application on network core i.e routers etc because they function on lower layer rather then application layer
are the netwrok arch diff from the application arch
yes very diff
two important type of application arch is
client-server archt and peer to peer archt(p2p)
what is client server arch and what is ment by data center in this arch
in this arch we have a host called as server and a client here the host give service to client requests the host have unique adddress called ip address when the clint want to contact the host so he will be using the ip adddress the host is always running and the client can not cumminacate with other client like twp web pages or two web brwoser can not interfare each other
well data center can be defind as a set of large number of servers which cumminate with very large number of hosts ,
we need data center beacsue a one single server can not handle large number of requests from the clinet
google has 19 data center
peer to peer arch , benefit , drawback
here the arch do not need server here the directly cumminate with other host called peer these peer are in the desktop mobile etc controlled by user
example is file sharing applications
benfit are scaleblity and cost effective as we do not need server so no bedwith
drawbask are challenges of security, performance, and reliability due to their highly
decentralized structure.
proccess cumminacting def , proccess inside the same end system, process cummin outside of end sys, and how they cumminate outside of endsystem
an application running on end system is called process
the proccees running in the end system can be refer as programme also and they cumminate by interprocess cumminate
a process outside the end system can cumminate by exchanging the messages across computer network
process is just a way of exchanging messages
Client and Server Processes def and detail
in the netwrok application we have two types of arch i.e client server here the clinet broweser send messsage to serevr by browser proccess so called clinet process and the server respond to the request by server process called server process
in p2p the clinet server is those that dowlload the data and serevr process is that uplaod the file or data
note in p2p the same divice can be both client and server process
define socket and how does it help in proceesing the messges
the process send or recove the messages from a network through software interface called socket this socket can be represented as the door of house and the house is a process so if process want to send a message it must use door and from door by cumminaciting path this message will reach to other door i.e socket and the finally house called process
s shown in this figure, a socket
is the interface between the application layer and the transport layer within a host
remeber it
a socket is also known as Application Programming Interface (API) why ?
because the socket is interface between the application layer and the network layer
addressing process what is it and why we need
in seding emai we need the destination address called the addressing process , we can also send packet from one host to other but we must know about the destination host address
what is ip addresss, and what is port number why we need port number
ip is defind as the unique 32 bit address of a host
port number is which help us in remembering sending the porcess and also in recinvign the process
a web server is identifd by 80 port number
services of transport layer protocol that gives to application are 4 name them
relaible data transfer, throuput , timing and security
one service of transport layer is reliable data transfer what is it?
reliable data transfer mean when there is no loos of data from one end to other end system