cs201223 Assignment 2
cs201223 Assignment 2
CS201219
6D
Question:1
explain what is HTTP? persistent and non-persistent http also elobrate the
architecture oh HTTP?
HTTP, or Hypertext send Protocol, is the basic protocol used to transport data
between a client and a server via the internet.
Due to the stateless nature of the protocol, each request made by a client to a
server stands apart from all other servers. HTTP is very effective since the
server does not need to keep track of the client's status.
There are two types of HTTP connections: persistent and non-persistent.
The client creates a brand-new non-persistent connection with the server for
each request.
Question 2
draw and explain web caching cookies and descirbe state of cookies, why
cookies used also explian why web caching used, assumptions and
consequences of web caching
Ans:
Web caching is a technique for keeping duplicates of websites in a local cache
so that users may access them more rapidly. By lowering the quantity of
requests need to be sent to the origin server, this can enhance performance.
Cookies are tiny text files that a web server stores on a user's machine.
They are able to be used to store user data such preferences, login status,
and browsing history. By personalising the user's experience and recollecting
their preferences, cookies may be used to enhance the user experience.
Additionally, they can be used to monitor a user's surfing habits and provide
them with advertisements.
Question 3
Ans
The client computer sends a DNS query to a DNS server in a recursive query.
Afterward, the DNS server does a recursive search of its own database as
well as the databases of other DNS servers until it locates the requested data.
The client computer subsequently receives the required information from the
DNS server.
The DNS has a hierarchical structure. The DNS hierarchy is divided into three
primary levels: