Question

HTP provides two connections methods: persistent and non-persistent. While there are clear advantages of persistent-HTTP, it...

HTP provides two connections methods: persistent and non-persistent. While there are clear advantages of persistent-HTTP, it is rather unclear whether non-persistent can be of any use. Conduct a small research to find out why these two modes of connections are provided. In specific, you should find out some of the advantages and disadvantages of each of them, hence justifying their concurrent existence.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

HTTP Overview:

HTTP stands for Hyper Text Transfer Protocol, the protocol used to deliver all resources on the World Wide Web. HTTP defines how the messages are formatted and transmitted.

When a client requests some information (say, clicks on a hyperlink), the browser sends a request message to the HTTP server for the requested objects. The server receives the requests and sends the response message with the objects. However, the HTTP server maintains no information about the clients, and if the client asks for the same object again, the server resends the object. Therefore, HTTP is called a stateless protocol.

HTTP can use both non persistent connections and persistent connections. A non persistent connection is the one that is closed after the server sends the requested object to the client. In other words, the connection is used exactly for one request and one response.

With persistent connections, the server leaves the TCP connection open after sending responses and hence the subsequent requests and responses between the same client and server can be sent. The server closes the connection only when it is not used for a certain configurable amount of time. With persistent connections, the performance is improved by 20%.

Non persistent connections are the default mode for HTTP/1.0 and persistent connections are the default mode for HTTP/1.1.

HTTP Non-Persistent & Persistent Connection:

The Hypertext Transfer Protocol (HTTP) is an application-level protocol that uses TCP as an underlying transport and typically runs on port 80. HTTP is a stateless protocol i.e. server maintains no information about past client requests.

HTTP Connections

  1. Non-Persistent
  2. Persistent

Before starting with persistent and non-persistent HTTP connection lets know what is a RTT.

RTT-> Time for a small packet to travel from client to server and back.

RTT= 2*propagation time

1. For an connection Persistent or Non-persistent it is sure that to initiate TCP connection one RTT is used.
2. One RTT is used for HTTP request and first few bytes to HTTP response to return.

So in order to know total file transmission time->

 total = 2RTT+transmit time

Difference between Persistent & Non-Persistent connection.

Persistent HTTP Nonpersistent HTTP issues: Persistent HTTP requires 2 RTTs per object server leaves connection open after sen

Non-Persistent Connection

  1. Without parallel connection
  2. With parallel connection

Without parallel connection Non-Persistent
Each objection takes two RTT (assuming no window limit) one for TCP connection and other for HTTP image/text file.

With parallel connection Non-Persistent

Non-persistent & Parallel connections initiate TCP connection RTT request Base file or reference page RTT File/base page rece

Persistent connection

  1. Non-Pipelined
  2. Pipelined

In Non-pipeline connection we first establish connection which takes two RTT then we send all the objects images/text files which takes 1 RTT each (TCP for each object is not required).

In Pipelined connection 2RTT for connection establishment and then 1RTT(assuming no window limit) for all the objects i.e. images/text.

Advantages of persistent connections :
1) Lower CPU and memory usage because there are less number of connections.
2) Allows HTTP pipelining of requests and responses.
3) Reduced network congestion (fewer TCP connections).
4) Reduced latency in subsequent requests (no handshaking).
5) Errors can be reported without the penalty of closing the TCP connection.

Disadvantages of persistent connections :
Resources may be be kept occupied even when not needed and may not be available to others.

Most of the modern browsers like Chrome, Firefox and Internet Explorer use persistent connections.

Add a comment
Know the answer?
Add Answer to:
HTP provides two connections methods: persistent and non-persistent. While there are clear advantages of persistent-HTTP, it...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Many teenagers participate in risk behaviors that threaten their current and future health. Substance use, violence,...

    Many teenagers participate in risk behaviors that threaten their current and future health. Substance use, violence, and unprotected sexual intercourse are responsible for much of the mortality and morbidity experienced in adolescence and early adulthood.1 While older adults are vulnerable to illnesses such as heart disease, cancer, and diabetes, adolescents are threatened by homicide, suicide, car accidents, and AIDS — ailments that are behavioral and, therefore, preventable.2 There is growing recognition that teens who engage in risk behaviors often participate...

  • Summarize the following information in easily way and in simple words as your understanding without missing the keywords. ( the Question will be 25 on this information in final ) MARKETING RESEARCH FO...

    Summarize the following information in easily way and in simple words as your understanding without missing the keywords. ( the Question will be 25 on this information in final ) MARKETING RESEARCH FOR THE NEW VENTURE Information for developing the marketing plan may necessitate conducting some marketing research. Marketing research involves the gathering of data to determine such information as who will buy the product or service, what is the size of the potential market, what price should be charged,...

  • Ocean Sound College is a culinary sushi college located on the West Coast, and is a...

    Ocean Sound College is a culinary sushi college located on the West Coast, and is a subsidiary of the Sushi Heights Corporation. You are the systems analyst assigned from the college IT department to conduct the systems analysis phase of the development of a new listing system for the school’s housing office. Background Based on your earlier recommendations, the housing office decided to continue the systems development process for a new listing system. Now, at the end of the systems...

  • First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below...

    First, read the article on "The Delphi Method for Graduate Research." ------ Article is posted below Include each of the following in your answer (if applicable – explain in a paragraph) Research problem: what do you want to solve using Delphi? Sample: who will participate and why? (answer in 5 -10 sentences) Round one questionnaire: include 5 hypothetical questions you would like to ask Discuss: what are possible outcomes of the findings from your study? Hint: this is the conclusion....

  • Case 7 Cases From AHRQ WebM&M:                               Informed or Misled? Posted: 09/26/2007; AHRQ

    Case 7 Cases From AHRQ WebM&M:                               Informed or Misled? Posted: 09/26/2007; AHRQ CME © 2007 Case and Commentary The Case A 50-year-old man arrived at the hospital for an elective total knee replacement. Based on preoperative discussions, the patient expected to receive spinal anesthesia. The patient reportedly signed an anesthesia permit required by this hospital that stated that any change in the anesthesia plan must occur in writing. For unclear reasons, the patient ultimately received general anesthesia and suffered...

  • ABC International: Solving the Rural Barrier

         Compensation sessionABC International:   Solving the Rural BarrierSource: Thunderbird School of Global Management, A unit of the Arizona State University Knowledge Enterprise. 2015. This case was prepared by Erin Bell under the guidance and supervision of Dr. Amanda Bullough, and revised and updated by Drew Helm for the purpose of classroom discussion only, and not to indicate either effective or ineffective managementSiham sat with her family and childhood friend, Leila, in their rural village of Qabatiya, Palestine. Leila had recently returned from...

  • Here is the data analysis project, please I need an excellent project, it is due 4 hours! Statist...

    here is the data analysis project, please I need an excellent project, it is due 4 hours! Statistics course. GENERAL DESCRIPTION For the data analysis project, you address some questions that interest you with the statistical methodology we learn in MAT 235.   You choose the question; you decide how to collect data; you do the analyses. The questions can address almost any topic (although I have veto power), including topics in economics, psychology, sociology, natural science, medicine, public policy, sports,...

  • Case 3: Recruiting CASE THREE: RECRUITING Case Objectives Recruiting is the first stage in which ...

    Case 3: Recruiting CASE THREE: RECRUITING Case Objectives Recruiting is the first stage in which organizational plans for staffing come into contact with the labor market for employees. Before making any new recruiting effort, an organization needs to carefully consider the methods available and balance out the costs of each method with the organization’s needs. The recruiting case provides an opportunity to see how staffing managers develop plans for recruiting efforts. You will develop a recruiting strategy and a recruiting...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT