CN109586988B - Webpage opening delay testing method, network equipment and intelligent gateway - Google Patents

Webpage opening delay testing method, network equipment and intelligent gateway Download PDF

Info

Publication number
CN109586988B
CN109586988B CN201710899944.0A CN201710899944A CN109586988B CN 109586988 B CN109586988 B CN 109586988B CN 201710899944 A CN201710899944 A CN 201710899944A CN 109586988 B CN109586988 B CN 109586988B
Authority
CN
China
Prior art keywords
sub
elements
webpage
intelligent gateway
time delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710899944.0A
Other languages
Chinese (zh)
Other versions
CN109586988A (en
Inventor
沈琦
李颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710899944.0A priority Critical patent/CN109586988B/en
Publication of CN109586988A publication Critical patent/CN109586988A/en
Application granted granted Critical
Publication of CN109586988B publication Critical patent/CN109586988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a webpage opening time delay testing method, network equipment and an intelligent gateway, wherein the webpage opening time delay testing method comprises the following steps: respectively sending dial testing tasks to at least two intelligent gateway groups, wherein each dial testing task carries link information of partial sub-elements of a webpage to be tested; receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task; and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group. According to the scheme, dial testing tasks are respectively sent to at least two intelligent gateway groups, opening time delay of each intelligent gateway group according to sub-elements fed back by the dial testing tasks is received, and opening time delay of the webpage to be tested is obtained according to the opening time delay of the sub-elements fed back by each intelligent gateway group; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.

Description

Webpage opening delay testing method, network equipment and intelligent gateway
Technical Field
The invention relates to the technical field of communication, in particular to a method for testing webpage opening time delay, network equipment and an intelligent gateway.
Background
At present, the webpage opening time delay is an important index for measuring the user internet experience, and in order to test the webpage opening time delay, the prior art provides a scheme as shown in fig. 1: the server initiates an access request to a terminal (a user terminal or an intelligent gateway on the upper layer of the user terminal) aiming at the detection page; the method comprises the steps that a terminal receives page elements of a detection page sent by a server, wherein the page elements at least comprise any one of character elements, picture elements and script elements, and the opening delay of the detection page when the page elements are received is recorded; and the terminal calculates the opening time delay of the detection page according to the quality parameters of the detection page and feeds the opening time delay back to the server.
However, the above existing web page opening delay test scheme has the problems of complicated flow and network limitation, and specifically includes the following steps:
problem 1: if the webpage opening time delay is acquired through the user terminal, the webpage opening time delay cannot be acquired on the premise of not influencing user experience. Under the existing method, if the real webpage opening time delay of a user needs to be acquired, an app needs to be pre-installed on a user terminal to receive a webpage access request sent by a cloud server, the webpage opening time delay is calculated after the request is received, and a result is returned; on the other hand, the calculation of the time delay consumes the performance of the mobile phone of the user, influences the use of other services by the user and seriously influences the user experience.
Problem 2: if the webpage opening time delay is acquired through the intelligent gateway on the upper layer of the user terminal, the method has high requirements on the performance of a CPU (Central processing Unit), the existing intelligent gateway belongs to network equipment, and the CPU and a memory cannot meet the requirements of a large number of webpage elements, particularly resources consumed by analysis and calculation of the image and video link time delay.
Disclosure of Invention
The invention aims to provide a webpage opening time delay testing method, network equipment and an intelligent gateway, and solves the problems that in the prior art, a webpage opening time delay testing scheme is complicated in flow and limited by a network.
In order to solve the above technical problem, an embodiment of the present invention provides a method for testing a webpage opening delay, including:
respectively sending dial testing tasks to at least two intelligent gateway groups, wherein each dial testing task respectively carries link information of partial sub-elements of a webpage to be tested;
receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group.
Optionally, the step of sending the dial testing task to at least two intelligent gateway groups respectively includes:
acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts;
dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups;
distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups;
setting up dial testing tasks for different intelligent gateway groups according to the distribution result, and correspondingly issuing the tasks;
wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements.
Optionally, the step of obtaining the link information of the sub-elements constituting the web page to be tested includes:
and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
Optionally, the step of dividing the plurality of intelligent gateways into N groups includes:
and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
Optionally, the step of allocating the link information of each part of sub-elements of the web page to be tested to an intelligent gateway group includes:
and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
Optionally, the step of obtaining the opening delay of the webpage to be tested according to the opening delay of the sub-element fed back by each intelligent gateway group includes:
when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group;
and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
The embodiment of the invention also provides a method for testing the webpage opening time delay, which comprises the following steps:
receiving a dial testing task sent by network equipment, wherein the dial testing task comprises link information of partial sub-elements of a webpage to be tested;
performing time delay test according to the link information of the partial sub-elements;
and feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment.
Optionally, the step of performing the time delay test according to the link information of the partial sub-elements includes:
and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
Optionally, when the number of the link information is multiple, the step of performing the time delay test according to the link information of the partial sub-elements includes:
if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or
And if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain the opening time delay of one sub-element.
An embodiment of the present invention further provides a network device, including: a processor and a transceiver;
the processor is used for respectively sending dial testing tasks to at least two intelligent gateway groups through the transceiver, and each dial testing task respectively carries link information of partial sub-elements of a webpage to be tested;
receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group.
Optionally, the processor is specifically configured to:
acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts;
dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups;
distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups;
setting up dial testing tasks for different intelligent gateway groups according to distribution results, and correspondingly issuing the tasks through the transceiver;
wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements.
Optionally, the processor is specifically configured to:
and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
Optionally, the processor is specifically configured to:
and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
Optionally, the processor is specifically configured to:
and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
Optionally, the processor is specifically configured to:
when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group;
and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
An embodiment of the present invention further provides an intelligent gateway, including: a processor and a transceiver;
the processor is used for receiving a dial testing task sent by the network equipment through the transceiver, wherein the dial testing task comprises link information of partial sub-elements of a webpage to be tested;
performing time delay test according to the link information of the partial sub-elements;
and feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment through the transceiver.
Optionally, the processor is specifically configured to:
and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
Optionally, when the number of the link information is multiple, the processor is specifically configured to:
if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or
And if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain the opening time delay of one sub-element.
The embodiment of the invention also provides network equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the method for testing the webpage opening time delay at the network equipment side is realized.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method for testing the webpage opening delay at the network equipment side are realized.
The embodiment of the invention also provides an intelligent gateway, which comprises a memory, a processor and a computer program which is stored on the memory and can be operated on the processor; and when the processor executes the program, the method for testing the webpage opening time delay at the intelligent gateway side is realized.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps in the method for testing the webpage opening time delay at the intelligent gateway side are realized.
The technical scheme of the invention has the following beneficial effects:
in the scheme, the webpage opening time delay testing method comprises the steps of respectively sending dial testing tasks to at least two intelligent gateway groups, receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing tasks, and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.
Drawings
FIG. 1 is a schematic diagram illustrating a process of acquiring a webpage opening delay in the prior art;
fig. 2 is a first flowchart of a method for testing a web page opening delay according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for testing a webpage opening delay according to an embodiment of the present invention;
FIG. 4 is a diagram of a plurality of intelligent gateway packets according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a specific application flow of the method for testing the webpage opening delay according to the embodiment of the present invention;
FIG. 6 is a diagram illustrating a network device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an intelligent gateway according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides a webpage opening delay testing method aiming at the problems that a webpage opening delay testing scheme in the prior art is complicated in flow and limited by a network, and the webpage opening delay testing method can be applied to network equipment (the network equipment can be a cloud platform or a cloud server), and as shown in fig. 2, the webpage opening delay testing method comprises the following steps:
step 21: respectively sending dial testing tasks to at least two intelligent gateway groups, wherein each dial testing task respectively carries link information of partial sub-elements of a webpage to be tested;
step 22: receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
step 23: and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group.
In this embodiment, the dial testing tasks sent to the intelligent gateway groups may be link information of different partial sub-elements carried in different dial testing tasks, that is, link information of partial sub-elements carried in dial testing tasks sent to different intelligent gateway groups is different;
such as: the intelligent gateway group comprises a first intelligent gateway group and a second intelligent gateway group, the link information of the sub-elements of the webpage to be tested comprises the link information of the first part of sub-elements and the link information of the second part of sub-elements, and if the link information of the first part of sub-elements is carried in the dial testing task sent to the first intelligent gateway group, the link information of the second part of sub-elements is carried in the dial testing task sent to the second intelligent gateway group;
the link information carried in the dial testing task can also be exchanged: the dial testing task sent to the first intelligent gateway group carries the link information of the second part of sub-elements, and the dial testing task sent to the second intelligent gateway group carries the link information of the first part of sub-elements, which is not limited to this; it is only illustrated that different intelligent gateway groups are directed to the link information of different partial sub-elements.
In this embodiment, the opening delay (approximate value) of the web page to be detected may be obtained according to the opening delays of part of the sub-elements of the web page to be detected, or the opening delay of the web page to be detected may be obtained according to the opening delays of all the sub-elements of the web page to be detected, which is not limited herein.
The webpage opening time delay testing method provided by the embodiment of the invention receives the opening time delay of each intelligent gateway group according to the sub-element fed back by the dial testing task by respectively sending the dial testing task to at least two intelligent gateway groups, and obtains the opening time delay of the webpage to be tested according to the opening time delay of the sub-element fed back by each intelligent gateway group; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.
Specifically, the step of sending the dial testing task to at least two intelligent gateway groups respectively includes: acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts; dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups; distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups; setting up dial testing tasks for different intelligent gateway groups according to the distribution result, and correspondingly issuing the tasks; wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements.
More specifically, the step of obtaining the link information of the sub-elements constituting the web page to be tested includes: and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
In this embodiment, the step of dividing the plurality of intelligent gateways into N groups includes: and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
The identification information of the intelligent gateway can be determined according to a product serial number (SN number) of the intelligent gateway, such as a geographical location, a manufacturer, and the like of the intelligent gateway. The dividing parameter can be provincial and city information, manufacturer information and the like.
The step of allocating the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group comprises the following steps: and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
For example, if the distribution parameter is manufacturer information, matching distribution is performed according to the manufacturer information in the content information of the partial sub-elements and the manufacturer information in the identity information of the intelligent gateway.
Considering that the opening mode of the to-be-tested webpage has two types of sub-element parallel opening and serial opening, in this embodiment, the step of obtaining the opening delay of the to-be-tested webpage according to the sub-element opening delay fed back by each intelligent gateway group includes:
when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group; and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
It should be noted that, when the opening mode of the to-be-tested webpage is serial opening of the sub-elements, if the link information of the same partial sub-elements is carried in the multiple dial testing tasks, the opening delay of the sub-elements with a larger value (the opening delay of the sub-elements with the smallest value may be retained), or the opening delay of the sub-elements with a smaller value (the opening delay of the sub-elements with the largest value may be retained), or an average value of the opening delays of the multiple groups of sub-elements fed back according to the link information of the same partial sub-elements is adopted.
Therefore, the scheme provided by the embodiment of the invention well solves the problems that the webpage opening time delay test scheme in the prior art is complicated in process and limited by a network.
An embodiment of the present invention further provides a method for testing a webpage opening delay, which is applicable to an intelligent gateway, and as shown in fig. 3, the method for testing the webpage opening delay includes:
step 31: receiving a dial testing task sent by network equipment, wherein the dial testing task comprises link information of partial sub-elements of a webpage to be tested;
step 32: performing time delay test according to the link information of the partial sub-elements;
step 33: and feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment.
According to the webpage opening time delay testing method provided by the embodiment of the invention, time delay testing is carried out according to the link information of partial sub-elements of the webpage to be tested in the dial testing task by receiving the dial testing task sent by the network equipment; feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.
Preferably, the step of performing the time delay test according to the link information of the partial sub-elements includes: and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
Specifically, when the number of the link information is multiple, the step of performing the delay test according to the link information of the partial sub-elements includes: if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain a sub-element opening time delay.
Therefore, the scheme provided by the embodiment of the invention well solves the problems that the webpage opening time delay test scheme in the prior art is complicated in process and limited by a network.
The method for testing web page opening time delay provided by the embodiment of the invention is further described below by combining the network device and the two sides of the intelligent gateway, the link information of a part of sub-elements takes the link information of a single sub-element as an example, the opening mode of the web page to be tested takes the serial opening of the sub-elements as an example, and the number of the intelligent gateway groups is the same as the number of the sub-elements as an example.
Considering that with the appearance of the intelligent gateway and the continuous improvement of user experience appeal, the end-to-end service quality needs to be monitored by a dial testing method urgently, the intelligent gateway dial testing webpage opening time delay is blank, and if the blank of the link is filled, the end-to-end network quality monitoring of a home network and a user can be realized; the embodiment of the invention provides a method for testing webpage opening time delay, which aims to eliminate a user threshold on the premise of not influencing user experience, and adopts a method of group and domain division dial test of an intelligent gateway in a user-imperceptible mode to calculate the webpage opening time delay, so that the user experience is greatly improved, and the service development of the intelligent gateway is promoted.
The scheme provided by the embodiment of the invention mainly decomposes the webpage elements, the intelligent gateway divides the groups and domains to dial and measure the sub-element link delay, the consumption of the intelligent gateway CPU resources is reduced, the resource consumption task is transferred to the cloud server/cloud platform, and finally the method for comprehensively obtaining the sub-element opening delay calculates the webpage opening delay, does not influence the user experience, and provides a data basis for improving the user internet experience, and the flow is as follows:
a. the cloud server/cloud platform decomposes webpage elements and acquires all sub-element links in a crawler mode;
the cloud server/cloud platform performs web page element decomposition through a crawler, and as shown in fig. 4, decomposes the web page http into sub-elements http1 and 2 … … n:
http=http 1+http 2+……+http n;
all elements in a webpage (which webpage is determined to be tested by an operator according to the requirement, the requirement can be determined according to the complaint rate and the like), including a primary link, a secondary link, a picture, a character, a video link and the like are acquired by a crawler (third-party application) mode and are decomposed into a plurality of sub-links.
b. The cloud server/cloud platform divides the intelligent gateways into groups and domains, and configures sub-element links to be dial and tested;
the cloud server/cloud platform divides the intelligent gateways into groups and domains according to the division parameters and the identification SN numbers (information of geographical regions, manufacturers and the like corresponding to the SN numbers) of the intelligent gateways:
G-G1 + G2+ … … + Gn; g represents all intelligent gateways which can be called by the cloud server/cloud platform, G1 and G2 … … Gn represent intelligent gateway groups after grouping and domain division;
as shown in fig. 4, the cloud server/cloud platform may allocate G1 to measure http1, G2 to measure http2, and so on, Gn measures the opening delay of http n;
each sub-element may be assigned to a group of gateways, with different sub-elements corresponding to different groups of gateways; the distribution can be specifically carried out according to preset parameter information and division parameters corresponding to the SN numbers of the sub-elements and the intelligent gateways, and the division parameters can be determined by operators, such as geographical regions, manufacturers and the like.
c. A soft probe plug-in the intelligent gateway executes a dial testing task and returns the opening time delay of the subelement;
as shown in fig. 4, G1 returns the opening delay t1 for the dial http1, G2 returns the opening delay t2 for the dial http2, and so on, Gn returns the opening delay tn for the dial http n.
d. And the cloud server/cloud platform calculates the total opening time delay of the webpage according to the opening time delay of each sub-element reported by the intelligent gateway soft probe.
The cloud server/cloud platform calculates the total webpage opening time delay t:
t ═ s1+ s2+ … … + sn; feeding back the opening time delay of the corresponding number of sub-elements by a group of gateways, and selecting the maximum value or the average value as the opening time delay of the sub-elements acquired by the gateways of the corresponding group; s1 is the maximum or average of the set of t1 returned by G1, s2 is the maximum or average of the set of t2 returned by G2, and so on, sn is the maximum or average of the set of tn returned by Gn.
More specifically, the method for testing the web page opening delay provided by the embodiment of the present invention is shown in fig. 5, and includes:
step 51: configuring child element links needing to be dialed and tested by the cloud server/cloud platform;
all child element links of the webpage are obtained through the crawler, and the cloud server/cloud platform configures the child element links needing to be dialed and tested.
Step 52: configuring an intelligent gateway which needs to execute single child element link by a cloud server/cloud platform;
the gateways are grouped into domains through a cloud server/cloud platform, and intelligent gateway groups (intelligent gateway groups) needing to execute single sub-element linkage are configured.
Step 53: the cloud server/cloud platform sends a dial testing task;
and the cloud server/cloud platform sends a dial testing task (carrying configured single sub-element link information) to the target intelligent gateway group.
Step 54: the intelligent gateway executes a dial testing task;
the intelligent gateway soft probe executes the dial test task and tests the opening delay of the sub-element (the specific test mode can refer to the existing test scheme for detecting the opening delay of the webpage, and is not described herein again).
And the intelligent gateways belonging to the same group execute dial testing tasks aiming at the same sub-elements.
Step 55: the intelligent gateway returns the opening time delay of the sub-element;
and the intelligent gateway soft probe returns a test execution result to the cloud server/cloud platform.
Step 56: and the cloud server/cloud platform adds the opening time delays of the sub-elements to obtain the total opening time delay of the webpage.
In this description, the "cloud server/cloud platform" is referred to as "cloud server or cloud platform".
Therefore, the scheme provided by the embodiment of the invention has no user perception, and does not influence the user internet experience; the blank of monitoring the user internet surfing experience by an intelligent gateway layer is filled, and the end-to-end monitoring of the home network quality can be realized; the consumption of the intelligent gateway CPU is reduced through a group and domain division dial test mode, the calculation gravity center is transferred to a cloud end platform/server, namely, the calculation consumption resource nodes are transferred to a cloud end server/cloud platform from the user terminal and the intelligent gateway, so that the time delay test flow is simple and convenient, and the network limitation is avoided.
An embodiment of the present invention further provides a network device, as shown in fig. 6, including: a processor 61 and a transceiver 62;
the processor 61 is configured to send dial test tasks to at least two intelligent gateway groups through the transceiver 62, where each dial test task carries link information of a part of sub-elements of a webpage to be tested;
receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group.
The network equipment provided by the embodiment of the invention respectively sends dial testing tasks to at least two intelligent gateway groups, receives the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing tasks, and obtains the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.
Specifically, the processor is specifically configured to: acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts; dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups; distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups; setting up dial testing tasks for different intelligent gateway groups according to distribution results, and correspondingly issuing the tasks through the transceiver; wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements.
More specifically, the processor is specifically configured to: and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
In this embodiment, the processor is specifically configured to: and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
Wherein the processor is specifically configured to: and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
Considering that the opening mode of the web page to be tested has two types, namely sub-element parallel opening and serial opening, in this embodiment, the processor is specifically configured to: when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group; and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
The implementation embodiments of the method for testing the webpage opening delay on the network device side are all suitable for the embodiment of the network device, and the same technical effect can be achieved.
Therefore, the scheme provided by the embodiment of the invention well solves the problems that the webpage opening time delay test scheme in the prior art is complicated in process and limited by a network.
An embodiment of the present invention further provides an intelligent gateway, as shown in fig. 7, including: a processor 71 and a transceiver 72;
the processor 71 is configured to receive, through the transceiver 72, a dial test task sent by a network device, where the dial test task includes link information of a part of sub-elements of a webpage to be tested;
performing time delay test according to the link information of the partial sub-elements;
the sub-element opening delay obtained by the delay test is fed back to the network device through the transceiver 72.
The intelligent gateway provided by the embodiment of the invention receives a dial testing task sent by network equipment, and performs time delay testing according to the link information of partial sub-elements of a webpage to be tested in the dial testing task; feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment; the method can reduce the consumption of the CPU resource of the intelligent gateway, transfer the resource consumption task to the network equipment, does not influence the user experience, promotes the development of the intelligent gateway service, has simple and convenient flow and is not limited by the network.
Preferably, the processor is specifically configured to: and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
Specifically, when the number of the link information is multiple, the processor is specifically configured to: if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain a sub-element opening time delay.
The implementation embodiments of the method for testing the webpage opening delay at the intelligent gateway side are all suitable for the embodiment of the intelligent gateway, and the same technical effect can be achieved.
Therefore, the scheme provided by the embodiment of the invention well solves the problems that the webpage opening time delay test scheme in the prior art is complicated in process and limited by a network.
The embodiment of the invention also provides network equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; and when the processor executes the program, the method for testing the webpage opening time delay at the network equipment side is realized.
The implementation embodiments of the method for testing the webpage opening delay on the network device side are all suitable for the embodiment of the network device, and the same technical effect can be achieved.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method for testing the webpage opening delay at the network equipment side are realized.
The implementation embodiments of the method for testing the webpage opening delay on the network device side are all suitable for the embodiment of the computer-readable storage medium, and the same technical effect can be achieved.
The embodiment of the invention also provides an intelligent gateway, which comprises a memory, a processor and a computer program which is stored on the memory and can be operated on the processor; and when the processor executes the program, the method for testing the webpage opening time delay at the intelligent gateway side is realized.
The implementation embodiments of the method for testing the webpage opening delay at the intelligent gateway side are all suitable for the embodiment of the intelligent gateway, and the same technical effect can be achieved.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps in the method for testing the webpage opening time delay at the intelligent gateway side are realized.
The implementation embodiments of the method for testing the webpage opening delay at the intelligent gateway side are all suitable for the embodiment of the computer-readable storage medium, and the same technical effect can be achieved.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (20)

1. A webpage opening time delay testing method is applied to network equipment and comprises the following steps:
respectively sending dial testing tasks to at least two intelligent gateway groups, wherein each dial testing task respectively carries link information of partial sub-elements of a webpage to be tested, and the dial testing tasks comprise: acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts; dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups; distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups; setting up dial testing tasks for different intelligent gateway groups according to the distribution result, and correspondingly issuing the tasks; wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements;
receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
and obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group.
2. The method for testing webpage opening delay according to claim 1, wherein the step of obtaining the link information of the sub-elements constituting the webpage to be tested comprises:
and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
3. The method for testing web page opening delay according to claim 1, wherein the step of dividing the plurality of intelligent gateways into N groups comprises:
and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
4. The method for testing web page opening delay according to claim 1 or claim 3, wherein the step of assigning the link information of each part of sub-elements of the web page to be tested to an intelligent gateway group comprises:
and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
5. The method for testing webpage opening delay according to claim 1, wherein the step of obtaining the opening delay of the webpage to be tested according to the subelement opening delay fed back by each intelligent gateway group comprises:
when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group;
and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
6. A webpage opening delay testing method is characterized by being applied to an intelligent gateway group, and comprises the following steps:
receiving a dial testing task sent by network equipment, wherein the dial testing task comprises link information of partial sub-elements of a webpage to be tested, and the link information of the sub-elements forming the webpage to be tested is acquired by the network equipment and is divided into M parts; dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups; distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups; setting up dial testing tasks for different intelligent gateway groups according to the distribution result, and correspondingly issuing the tasks; wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements;
performing time delay test according to the link information of the partial sub-elements;
and feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment.
7. The method for testing webpage opening delay according to claim 6, wherein the step of performing the delay test according to the link information of the partial sub-elements comprises:
and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
8. The method for testing webpage opening delay according to claim 6, wherein when the number of the link information is multiple, the step of performing the delay test according to the link information of the partial sub-elements includes:
if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or
And if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain the opening time delay of one sub-element.
9. A network device, comprising: a processor and a transceiver;
the processor is used for respectively sending dial testing tasks to at least two intelligent gateway groups through the transceiver, and each dial testing task respectively carries link information of partial sub-elements of a webpage to be tested;
receiving the opening time delay of each intelligent gateway group according to the sub-elements fed back by the dial testing task;
obtaining the opening time delay of the webpage to be tested according to the opening time delay of the sub-elements fed back by each intelligent gateway group;
the processor is specifically configured to:
acquiring link information of sub-elements forming a webpage to be detected, and dividing the link information into M parts;
dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups;
distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups;
setting up dial testing tasks for different intelligent gateway groups according to distribution results, and correspondingly issuing the tasks through the transceiver;
wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements.
10. The network device of claim 9, wherein the processor is specifically configured to:
and performing element decomposition on the webpage to be detected in a crawler mode, and acquiring link information of each sub-element.
11. The network device of claim 9, wherein the processor is specifically configured to:
and dividing the plurality of intelligent gateways into N groups according to the dividing parameters and the identity identification information of the intelligent gateways.
12. The network device of claim 9 or claim 11, wherein the processor is specifically configured to:
and distributing the link information of each part of the sub-elements to a corresponding intelligent gateway group according to the distribution parameters, the content information of each part of the sub-elements and the identity identification information of the intelligent gateway.
13. The network device of claim 9, wherein the processor is specifically configured to:
when the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, acquiring the maximum value of the opening time delays of the sub-elements fed back by all the intelligent gateways, and taking the acquired maximum value as the opening time delay of the webpage to be tested; or
When the opening mode of the webpage to be tested is sub-element serial opening, acquiring the average value of the opening time delay of the sub-elements fed back by each intelligent gateway group;
and summing the obtained average values to obtain the opening time delay of the webpage to be detected.
14. An intelligent gateway, comprising: a processor and a transceiver;
the processor is used for receiving a dial testing task sent by the network equipment through the transceiver, wherein the dial testing task comprises link information of partial sub-elements of a webpage to be tested, and the link information of the sub-elements forming the webpage to be tested is acquired by the network equipment and is divided into M parts; dividing a plurality of intelligent gateways into N groups to form N intelligent gateway groups; distributing the link information of each part of sub-elements of the webpage to be tested to an intelligent gateway group, wherein the link information of different parts of sub-elements corresponds to different intelligent gateway groups; setting up dial testing tasks for different intelligent gateway groups according to the distribution result, and correspondingly issuing the tasks; wherein N is more than or equal to M and more than or equal to 2, and M is less than or equal to the number of the sub-elements;
performing time delay test according to the link information of the partial sub-elements;
and feeding back the opening time delay of the sub-elements obtained by the time delay test to the network equipment through the transceiver.
15. The intelligent gateway of claim 14, wherein the processor is specifically configured to:
and according to the link information of the partial sub-elements, performing time delay test by using an intelligent gateway soft probe.
16. The intelligent gateway of claim 14, wherein when the number of the link information is plural, the processor is specifically configured to:
if the opening mode of the webpage to be tested is that the sub-elements are opened in parallel, respectively performing time delay test on each link information to obtain a plurality of corresponding sub-element opening time delays; or
And if the opening mode of the webpage to be tested is sub-element serial opening, performing serial time delay test on the link information of the partial sub-elements to obtain the opening time delay of one sub-element.
17. A network device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; the program is characterized in that the processor implements the method for testing web page opening delay according to any one of claims 1 to 5 when executing the program.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing web page opening latency of any one of claims 1 to 5.
19. An intelligent gateway comprising a memory, a processor and a computer program stored on the memory and executable on the processor; the program is characterized in that the processor implements the method for testing web page opening delay according to any one of claims 6 to 8 when executing the program.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing web page opening latency of any one of claims 6 to 8.
CN201710899944.0A 2017-09-28 2017-09-28 Webpage opening delay testing method, network equipment and intelligent gateway Active CN109586988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710899944.0A CN109586988B (en) 2017-09-28 2017-09-28 Webpage opening delay testing method, network equipment and intelligent gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710899944.0A CN109586988B (en) 2017-09-28 2017-09-28 Webpage opening delay testing method, network equipment and intelligent gateway

Publications (2)

Publication Number Publication Date
CN109586988A CN109586988A (en) 2019-04-05
CN109586988B true CN109586988B (en) 2020-10-02

Family

ID=65914598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710899944.0A Active CN109586988B (en) 2017-09-28 2017-09-28 Webpage opening delay testing method, network equipment and intelligent gateway

Country Status (1)

Country Link
CN (1) CN109586988B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266557B (en) * 2019-05-24 2021-06-29 中国联合网络通信集团有限公司 Method, device, system and storage medium for monitoring broadband service quality
CN110224896B (en) * 2019-06-24 2021-11-26 深圳桔子数字技术有限公司 Network performance data acquisition method and device and storage medium
CN114465919B (en) * 2022-04-12 2022-07-12 北京天维信通科技有限公司 Network service testing method, system, electronic equipment and storage medium
CN117216428B (en) * 2023-11-07 2024-04-16 荣耀终端有限公司 Webpage resource request method, terminal equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067214B (en) * 2011-10-19 2016-08-03 阿里巴巴集团控股有限公司 For testing the method for web site performance, client, server and system
KR101367120B1 (en) * 2012-03-09 2014-02-27 네이버비즈니스플랫폼 주식회사 System and method for measuring webpage loading time using web browser and proxy
CN103840977B (en) * 2014-03-04 2017-10-20 中国联合网络通信集团有限公司 A kind of Internet service service quality guarantee method and client
CN104361051A (en) * 2014-10-29 2015-02-18 中国联合网络通信集团有限公司 Detection method and device for webpage service quality

Also Published As

Publication number Publication date
CN109586988A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109586988B (en) Webpage opening delay testing method, network equipment and intelligent gateway
CN105764024B (en) A kind of test method and device of wireless device handling capacity
Botta et al. Do you trust your software-based traffic generator?
US20150249582A1 (en) Cognitive Data Delivery Optimizing System
Laner et al. Traffic models for machine-to-machine (M2M) communications: Types and applications
JP2005506605A (en) Calculating response time at the server site for any application
CN106487605B (en) Packet loss rate detection method and device
CN105610993B (en) A kind of domain name analytic method, apparatus and system
CN105812255A (en) Source return line selection method and device
CN104065538B (en) Measurement control method, control server and the system of network performance
CN109392002A (en) A kind of method and apparatus of report network performance parameter
US9577900B1 (en) Application centric network experience monitoring
CN108401263A (en) A kind of appraisal procedure and device of voice quality
CN110336713A (en) A kind of method and terminal device detecting honeycomb Internet of Things end-to-end time delay and rate
CN105099936B (en) A kind of network resource configuration method, equipment and network system
WO2019154211A1 (en) Precoding determining method and device, electronic device, and storage medium
CN108702302A (en) Calculate service performance index
CN111428197B (en) Data processing method, device and equipment
Gregori et al. Smartphone-based crowdsourcing for estimating the bottleneck capacity in wireless networks
CN105637904A (en) Traffic coordination for communication sessions involving wireless terminals and server devices
CN108134709A (en) A kind of test method and device applied to protenchyma networking transport
Caiazza et al. Measurement-driven design and runtime optimization in edge computing: Methodology and tools
CN105992280A (en) Method and device for data processing
CN110324837A (en) A kind of network management and device
US11372744B1 (en) System for identifying issues during testing of applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant