Relationship between PV and bandwidth

Source: Internet
Author: User

When the website architecture is just good and needs to be officially launched, we need to pay attention to whether the server performance meets the requirements of the website and how much bandwidth the website needs, these two aspects are the most important. Aside from the server performance, the servers with various configurations are full of sky, and compared with the bandwidth price, the server can be said to be a relatively small expense. Therefore, we need to estimate the website bandwidth at this time;

Our website has started to run. due to various factors, the website's access traffic has rapidly increased, and the current bandwidth cannot meet the normal operation needs of our website. How can we choose a reasonable bandwidth at this time, it will also become the top priority.

We need to understand some basic concepts when we start to reasonably calculate the bandwidth we need.

The website traffic (Traffic) is the website traffic. It is used to describe the number of users accessing a website and the number of webpages browsed by users, common statistical indicators include the number of independent users of the website, the total number of users (including repeated visitors), the number of web pages browsed, the number of pages browsed by each user, and the average residence time of users on the website.

One is the IP address, and the other is the PV, which is usually calculated based on the daily IP address and PV.

Number of independent IP addresses: Internet protocol. The same IP address is calculated only once between and.
Total page views (PVs): page views, page views, or clicks. Each refresh is calculated.

The relationship and difference between the two: high PV does not necessarily mean a large number of visitors; PV is proportional to the number of visitors, but PV does not directly determine the number of real visitors on the page. For example, if you enter a website by yourself, you can create a very high PV by constantly refreshing the page.

IP address is a concept that reflects virtual address objects in the network. An independent user is a concept that reflects the actual user. Each independent user is more accurate to a visitor than each IP address. Using Independent users as statistics, you can more accurately understand how many visitors actually come to the corresponding page per unit time.

One independent IP Address can generate multiple PVS, so the number of PVS is greater than or equal to the number of IP addresses.

PV (page view) value: indicates the number of pages requested by all visitors who browsed the website within a certain period of time. (For example, if the website has 500 visitors a day and each visitor browses 8 pages on average, the daily PV is 500 × 8 = 4000)
Hits value: the number of requests to each page element. (Any image or flash file on a page is a page element)
Daily browser Bytes: the total number of bytes of all page elements requested by visitors within a day.

When calculating the bandwidth size, you need to pay attention to two indicators: peak traffic and average page size. Here is an example:

Suppose that the peak traffic of the website is 5 times the average traffic (of course, this is just a hypothesis. We need to decide the actual implementation based on our own situation );
Assume that the average page size for each access is kb;
Assume that the website's expected target is a daily PV.

Our calculation starts: 50 W pv. If the average distribution is within one day, it is equivalent to about 50 W per second/(24*60*60) = 6 visits, based on our previous assumption that the average page size is kb, the total size of these 6 visits is KB (note that this is a byte), and the unit of bytes is byte, the bandwidth unit is bit, 1 byte = 8 bit, so 1200 K byte is about 9600 K bit, that is, 9 Mbps (1 m = 1024 K ). In the actual website operation process, our website must maintain normal access during peak traffic. Here we will use our previous assumptions that the peak traffic is 5 times the average traffic, according to this calculation, the actual required bandwidth is about 9 Mbps * 5 = 45 Mbps.

The formula is as follows: website exclusive bandwidth = total PV value per day (total PV value per day) Total time per day (converted to s) * Average page size (unit: KB) * 8

The premise of this computing result is our previous three assumptions. In actual operation, because of the cache, the download of the website, the large number of images, and the different accesses to the website during the day and night, this result may not be ideal. Therefore, this algorithm can only be considered a rough algorithm.

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.