CN107666414A - A kind of network performance optimizing method, system and computer-readable recording medium - Google Patents

A kind of network performance optimizing method, system and computer-readable recording medium Download PDF

Info

Publication number
CN107666414A
CN107666414A CN201710606532.3A CN201710606532A CN107666414A CN 107666414 A CN107666414 A CN 107666414A CN 201710606532 A CN201710606532 A CN 201710606532A CN 107666414 A CN107666414 A CN 107666414A
Authority
CN
China
Prior art keywords
network connection
request
default
network
time
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.)
Pending
Application number
CN201710606532.3A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710606532.3A priority Critical patent/CN107666414A/en
Priority to PCT/CN2017/102860 priority patent/WO2019019329A1/en
Publication of CN107666414A publication Critical patent/CN107666414A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of network performance optimizing method, system and computer-readable recording medium.Methods described includes:Corresponding class file is obtained according to current network connection;The network connection parameter of the network connection is obtained according to the class file;Judge whether the network connection parameter meets default upload condition;If the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server;By the server according to the network connection parameter and default optimisation strategy, the network connection is optimized.Implement the embodiment of the present invention, the collection to the network parameter of network connection can be completed fast accurate and the performance of the network connection is optimized.

Description

A kind of network performance optimizing method, system and computer-readable recording medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of network performance optimizing method, system and computer can Read storage medium.
Background technology
With the popularization of mobile Internet, more and more mobile terminals are established communication by wireless network and server and connected Connect.In the prior art, server is only responsible for receiving the network request from mobile terminal and according to this in connection procedure is communicated Network request makes corresponding response, and can not determine terminal whether successful data reception.Therefore we are needed to mobile whole Hold server between communication connection carry out network performance detection, with obtain network parameter carry out network performance analysis or Optimization.
The content of the invention
, can be fast the embodiments of the invention provide a kind of network performance optimizing method, system and computer-readable recording medium Speed accurately completes the collection to the network parameter of network connection and the performance of the network connection is optimized.
In a first aspect, the embodiments of the invention provide a kind of network performance optimizing method, methods described includes:
Corresponding class file is obtained according to current network connection;
The network connection parameter of the network connection is obtained according to the class file;
Judge whether the network connection parameter meets default upload condition;
If the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server;
By the server according to the network connection parameter and default optimisation strategy, the network connection is carried out Optimization.
Second aspect, the embodiments of the invention provide a kind of optimization of network performance system, the system include terminal and Service end, the terminal include:
First acquisition unit, for obtaining corresponding class file according to current network connection;
Second acquisition unit, for obtaining the network connection parameter of the network connection according to the class file;
First judging unit, for judging whether the network connection parameter meets default upload condition;
Uploading unit, if meeting default upload condition for the network connection parameter, by the network connection parameter It is uploaded to service end;
The service end is used for according to the network connection parameter and default optimisation strategy, and the network connection is entered Row optimization.
The third aspect, the embodiments of the invention provide another optimization of network performance system, the system include terminal with And server, the terminal include:First memory and first processor;The first memory is stored with executable program Data;The server includes second memory and second processor;The second memory is also stored with executable program Data;The first processor is used to run the routine data stored in the first memory, and the second processor is used for The routine data stored in the second memory is run, to realize method that above-mentioned first aspect is provided jointly.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage Media storage has more than one routine data, and one procedure above data can be by more than one computing device, with reality The method that existing above-mentioned first aspect is provided.
The embodiments of the invention provide a kind of network performance optimizing method, system and computer-readable recording medium, pass through The class file according to corresponding to connecting current network obtains the network connection parameter of the network connection, if acquired network connection ginseng Number meets default upload condition, and the network connection parameter is uploaded onto the server, and by server according to the network connection Parameter and default optimisation strategy, are optimized to the network connection.Implement the embodiment of the present invention, can complete fast accurate Collection to the network parameter of network connection simultaneously optimizes to the performance of the network connection.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of network performance optimizing method provided in an embodiment of the present invention;
Fig. 2 is a kind of sub-process schematic diagram of network performance optimizing method provided in an embodiment of the present invention;
Fig. 3 is a kind of sub-process schematic diagram of network performance optimizing method provided in an embodiment of the present invention;
Fig. 4 is a kind of sub-process schematic diagram of network performance optimizing method provided in an embodiment of the present invention;
Fig. 5 is a kind of sub-process schematic diagram of network performance optimizing method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic block diagram of optimization of network performance system provided in an embodiment of the present invention;
Fig. 7 is the schematic frame of second acquisition unit in a kind of optimization of network performance system provided in an embodiment of the present invention Figure;
Fig. 8 is the schematic block diagram of another optimization of network performance system provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that refer in description of the invention to the term "and/or" used in appended claims related Join any combinations of one or more of the item listed and be possible to combine, and including these combinations.
In specific implementation, the terminal described in the embodiment of the present invention includes but is not limited to that application program can be performed such as Other portable terminals of mobile phone, laptop computer or tablet PC etc.It is to be further understood that in some realities Apply in example, the terminal is not mobile terminals, in addition to can perform the desktop computer of application program, TV etc.. Terminal can install and execute various application programs.
Referring to Fig. 1, it is a kind of schematic flow sheet of network performance optimizing method provided in an embodiment of the present invention.The party Method comprises the following steps S101-S104.
S101, corresponding class file is obtained according to current network connection.
In specific implementation, network connection is built between terminal and server.Wherein, the foundation of network connection can be logical Cable network completion is crossed, for example, IP (Internet Protocol, iso-ip Internetworking protocol ISO-IP) network;Can also pass through wireless network Network is completed, for example, WiFi (Wireless Fidelity, Wireless Fidelity) network, can also be mobile communication network, such as the Two generation mobile communication networks (SecondGeneration, 2G), third generation mobile network (Third Generation, 3G), forth generation mobile communication network (Fourth Generation, 4G) etc..
Assuming that the network is built between terminal and server, terminal to server sends network request, can pass through tune Network connection is carried out with server with system network interface or third party's network interface, such as the interface such as OKhttp, can be at end Call and the class file of network connection is completed to collect during network interface in end.For example, in iOS system, object-c languages can be passed through The characteristic during operation of speech, get the class file of system administration network.The class file can be one section of code or record There is the file of correlative code.
S102, according to the network connection parameter of such file acquisition network connection.
In specific implementation, the network connection parameter includes but is not limited to network address, request takes, request number of times, data Transmission quantity, HTTP conditional codes.Wherein, network address is the unique corresponding unification of each Webpage in network connection URLs (URL).Request is taken to establish the time that the network connection is consumed.Request number of times is corresponding to network address The number of network request.Volume of transmitted data is the data volume interacted in network connection between terminal and server.HTTP conditional codes It is 3 digit numerical codes for representing web page server http response state, such as 404 can be used for representing that required parameter has By mistake.
The acquisition of network connection parameter can be completed by various forms.For example, (hung using hook in iOS system Hook technology) go to obtain network of relation Connecting quantity by way of code injection.
S103, judges whether the network connection parameter meets default upload condition.
Specifically, upload condition can make according to time, the data package size of network connection parameter or terminal applies Set with scene.For example, the condition of upload can be set to be to upload whether interval time is more than 30 minutes, or network connection Whether the data package size of parameter is more than 1Mb, or whether the usage scenario of terminal applies is using opening.If upload More than 30 minutes, either the data package size of network connection parameter was more than 1Mb to time interval or the usage scenario of terminal applies is Using opening, then judge that the network connection parameter meets default upload condition.
S104, if the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server.
Specifically, it is assumed that whether the upload condition is more than 1M for the data package size of network connection parameter.If the network connects The data package size for connecing parameter is more than 1Mb, then judges that the network connection parameter meets default upload condition, and then by the network Connecting quantity uploads onto the server.
S105, the server are carried out excellent according to the network connection parameter and default optimisation strategy to the network connection Change.
In specific implementation, by will be uploaded onto the server in the network connection parameter obtained acquired in terminal, with to the net Network Connecting quantity is analyzed, and the network connection is optimized according to default optimisation strategy, alleviates the processing of terminal Load pressure, improve processing speed.For example, the network connection parameter is HTTP conditional codes.Assuming that acquired HTTP states Code is 404, then the notice of web page contents loss corresponding to the network address is sent to keeper.
The network connection that above-described embodiment obtains the network connection by class file corresponding to being connected according to current network is joined Number, if acquired network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server, and leads to Server is crossed according to the network connection parameter and default optimisation strategy, the network connection is optimized.Implement the present invention Embodiment, can complete collection to the network parameter of network connection fast accurate and the performance to the network connection carry out it is excellent Change.
Further, referring to Fig. 2, it is a kind of sub-process of network performance optimizing method provided in an embodiment of the present invention Schematic diagram.In this embodiment, the network connection parameter is time-consuming for request, described to obtain the network according to the class file The network connection parameter of connection specifically includes following steps S201-S204.
S201, obtain the request function in the class file and record request time when obtaining the request function.
Specifically, the class file includes being used for the request function and receptance function for establishing network connection.When in such text When the request function is got in part, record obtains the request time during request function.
S202, obtain the receptance function in the class file and record response time when obtaining the receptance function.
Specifically, when getting the receptance function in the class file, when recording response when obtaining the receptance function Between.
S203, judge whether the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function.
In specific implementation, request function and receptance function in each class file correspond to identical unique mark Code.The network connection quantity that the terminal same time establishes is not unique, and corresponding in the same network connection that it is established It is identical to ask function exclusive identification code corresponding with receptance function.If ask the exclusive identification code and receptance function of function Exclusive identification code is identical, then judges that the request function belongs to same network connection with the receptance function.
S204, if the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function, according to the request Time is calculated the request with the response time and taken.
In specific implementation, if the exclusive identification code of request function is identical with the exclusive identification code of receptance function, judging should Request function belongs to same network connection with the receptance function.Request time and response time are subjected to mathematic interpolation, gained Request of the absolute value result gone out then for network connection corresponding to the request function or receptance function takes.
Above-described embodiment is by asking function and receptance function to carry out the time corresponding to class file corresponding to network connection Record, and judge whether the recorded time belongs to same network and connect according to the exclusive identification code of request function and receptance function Connect, the request that the network connection can be calculated with the response time according to request time takes.Implement the present embodiment, can be precisely fast The request for obtaining network connection fastly takes.
Further, referring to Fig. 3, it is a kind of sub-process of network performance optimizing method provided in an embodiment of the present invention Schematic diagram.In the case where the network connection parameter is time-consuming for request, by the server according to the network connection parameter And default optimisation strategy, the network connection is optimized and comprises the following steps S301-S304.
S301, judge that the request is time-consuming and whether be more than default time-consuming threshold value.Wherein, the default time-consuming threshold value can be 50ms or other numerical value.
S302, if the request is time-consuming to be more than default time-consuming threshold value, network address corresponding to the network connection is counted Number.Wherein, if the request is taken as 60ms, judge that the request is time-consuming and be more than default time-consuming threshold value.And then the request is consumed When corresponding network address recorded in the form of number.
S303, judges whether the counting is more than default count threshold.Wherein, the count threshold can be 10 times.
S304, if the counting is more than default count threshold, the network address is carried out according to default optimisation strategy excellent Change.
In specific implementation, if the number that consolidated network address is recorded is more than default count threshold, for example, consolidated network The number that address is recorded is 30 times, then exports the network address and there may be abnormity prompt, and then according to default optimization plan Slightly the network address is optimized.It is corresponding that the default optimisation strategy including but not limited to caches the network address in end side Resource, avoid repetitive requests identical content every time, such as more pictures are downloaded it is contemplated that using caching.
Above-described embodiment is sentenced by being counted according to the time-consuming network address more than default time-consuming threshold value of request Whether the counting for the network address of breaking is more than default count threshold, if so, it is abnormal then to judge that the network address is present, and to this Network address optimizes processing.By analyzing the network connection parameter collected, and then draw corresponding point Result is analysed, and optimization processing is performed to the analysis result, improves the optimization efficiency of network connection.
Further, referring to Fig. 4, it is a kind of sub-process of network performance optimizing method provided in an embodiment of the present invention Schematic diagram.Based on above-described embodiment, whether this judges that the request is time-consuming and is more than before default time-consuming threshold value, in addition to following step Rapid S401-S404.
S401, it is time-consuming to obtain request corresponding at least two network address differed.Such as acquire 4 and differ Network address corresponding to request it is time-consuming be respectively 30ms, 70ms, 25ms and 75ms.The number of the network address gathered can Think two or more.
S402, calculate the average request that request is time-consuming corresponding at least two network address differed and take.According to Above-mentioned acquired obtained request takes, and corresponding average request is calculated and takes as 50ms.
S403, the average request is taken and is arranged to the default time-consuming threshold value.
Above-described embodiment calculates by the way that request corresponding to the network address that is differed at least two is time-consuming, average to draw Request is time-consuming, and the average request is taken and is arranged to default time-consuming threshold value in previous embodiment.The default consumption can be improved When threshold value reliability, be advantageous to improve to the accuracy of network performance analysis.
Further, referring to Fig. 5, it is a kind of sub-process of network performance optimizing method provided in an embodiment of the present invention Schematic diagram.In this embodiment, network connection parameter includes request number of times and volume of transmitted data, by the server according to institute Network connection parameter and default optimisation strategy are stated, the network connection is optimized and specifically includes following steps S501- S502。
S501, judges whether the request number of times is less than default frequency threshold value, and judges whether the volume of transmitted data is big In default transmission quantity threshold value.
S502, if the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default transmission quantity threshold Value, is optimized according to default optimisation strategy to the data transfer mode of the network connection.
In specific implementation, it is assumed that the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default Transmission quantity threshold value, then it is abnormal to judge that volume of transmitted data corresponding to the network address occurs, that is, the number of the network request of single occurs It is excessive according to transmission quantity, poor user experience is easily caused if the file type of the network request is web page files, then needs root The data transfer mode of the network connection is optimized according to default optimisation strategy.Specifically, the default optimisation strategy can Think:Whether the file type for judging the network request is web page files type, if the file type of the network request is webpage File type, the web page files are subjected to paging processing.Handled, can be sent according to the page turning situation of user multiple by the paging Request, rather than once go to ask multipage data, volume of transmitted data is constant, but the effect that user sees is often to turn over one page, As long as seldom time can shows picture, be advantageous to lift Consumer's Experience.
Above-described embodiment is relative to draw by analyzing the request number of times in network connection and volume of transmitted data The optimization answered.Be advantageous to lift user experience.
Referring to Fig. 6, a kind of corresponding above-mentioned network performance optimizing method, the embodiment of the present invention also propose a kind of network performance Optimization system 100, including terminal 110 and service end 120.The terminal 110 includes first acquisition unit 111, second and obtains list First 112, first judging unit 113 and uploading unit 114.
Wherein, first acquisition unit 111 is used to obtain corresponding class file according to current network connection.
In specific implementation, network connection can be built between terminal 110 and service end 120, can also build on end End and terminal or server and server, the main body that the embodiment of the present invention is not established to network connection are defined.Wherein, The foundation of network connection can be completed by cable network, for example, IP (Internet Protocol, iso-ip Internetworking protocol ISO-IP) Network;Can also be completed by wireless network, for example, WiFi (Wireless Fidelity, Wireless Fidelity) network, may be used also To be mobile communication network, such as second generation mobile communication network (Second Generation, 2G), third generation mobile Network (Third Generation, 3G), forth generation mobile communication network (Fourth Generation, 4G) etc..
Assuming that the network is built between terminal 110 and service end 120, terminal 110 sends network to service end 120 please Ask, can be carried out by calling system network interface or third party's network interface, such as the interface such as OKhttp with service end 120 Network connection, the class file of network connection can be completed to collect when terminal 110 calls network interface.For example, in iOS system In, the class file of system administration network by characteristic during the operation of object-c language, can be got.The class file can be one Section code or the file for recording correlative code.
Second acquisition unit 112 is used for the network connection parameter according to the network connection of such file acquisition.
In specific implementation, the network connection parameter includes but is not limited to network address, request takes, request number of times, data Transmission quantity, HTTP conditional codes.Wherein, network address is the unique corresponding unification of each Webpage in network connection URLs (URL).Request is taken to establish the time that the network connection is consumed.Request number of times is corresponding to network address The number of network request.Volume of transmitted data is the data volume interacted in network connection between terminal 110 and service end 120.HTTP Conditional code is to represent 3 digit numerical codes of web service end 120HTTP responsive states, such as 404 can be used for representing to ask Ask parameter wrong.
The acquisition of network connection parameter can be completed by various forms.For example, (hung using hook in iOS system Hook technology) go to obtain associated nets Connecting quantity by way of code injection.
First judging unit 113 is used to judge whether the network connection parameter meets default upload condition.
Specifically, upload what condition can be applied according to time, the data package size of network connection parameter or terminal 110 Usage scenario is set.For example, the condition of upload can be set to be to upload whether interval time is more than 30 minutes, or network connects Whether the data package size for connecing parameter is more than 1Mb, or whether the usage scenario that terminal 110 is applied is using opening. If the data package size that uplink time interval is more than 30 minutes either network connection parameters is more than what 1Mb or terminal 110 were applied Usage scenario is using opening, then judges that the network connection parameter meets default upload condition.
If uploading unit 114 meets default upload condition for the network connection parameter, by the network connection parameter Reach service end 120.
Specifically, it is assumed that whether the upload condition is more than 1M for the data package size of network connection parameter.If the network connects The data package size for connecing parameter is more than 1Mb, then judges that the network connection parameter meets default upload condition, and then by the network Connecting quantity is uploaded to service end 120.
The service end 120 is used to, according to the network connection parameter and default optimisation strategy, carry out the network connection Optimization.
In specific implementation, by the way that service end 120 will be uploaded in the network connection parameter obtained acquired in terminal 110, with The network connection parameter is analyzed, and the network connection optimized according to default optimisation strategy, alleviates terminal 110 processing load pressure, improves processing speed.For example, the network connection parameter is HTTP conditional codes.It is assuming that acquired HTTP conditional codes are 404, then the notice of web page contents loss corresponding to the network address is sent to keeper.
The network connection that above-described embodiment obtains the network connection by class file corresponding to being connected according to current network is joined Number, if acquired network connection parameter meets default upload condition, service end 120 is uploaded to by the network connection parameter, And the network connection is optimized according to the network connection parameter and default optimisation strategy by service end 120.Implement The embodiment of the present invention, the collection to the network parameter of network connection can be completed fast accurate and the performance of the network connection is entered Row optimization.
Further, referring to Fig. 7, the network connection parameter to include request time-consuming, the second acquisition unit 112 includes the Three acquiring units 1121, the 4th acquiring unit 1122, the second judging unit 1123 and the first computing unit 1124.
Wherein, the 3rd acquiring unit 1121 is used to obtain the request function in the class file and record to obtain the request function When request time.
Specifically, the class file includes being used for the request function and receptance function for establishing network connection.When in such text When the request function is got in part, record obtains the request time during request function.
4th acquiring unit 1122 is used to obtain the receptance function in the class file and recorded when obtaining the receptance function Response time.
Specifically, when getting the receptance function in the class file, when recording response when obtaining the receptance function Between.
Second judging unit 1123 is used to judge the exclusive identification code of the request function and the unique mark of the receptance function Whether code is identical.
In specific implementation, request function and receptance function in each class file correspond to identical unique mark Code.The network connection quantity that the 110 same time of terminal establishes is not unique, and corresponding in the same network connection that it is established Request function exclusive identification code corresponding with receptance function be identical.If ask the exclusive identification code and receptance function of function Exclusive identification code it is identical, then judge that the request function and the receptance function belong to same network connection.
If the first computing unit 1124 is used for the exclusive identification code of the request function and the exclusive identification code of the receptance function It is identical, the request is calculated with the response time according to the request time and taken.
In specific implementation, if the exclusive identification code of request function is identical with the exclusive identification code of receptance function, judging should Request function belongs to same network connection with the receptance function.Request time and response time are subjected to mathematic interpolation, gained Request of the absolute value result gone out then for network connection corresponding to the request function or receptance function takes.
Above-described embodiment is by asking function and receptance function to carry out the time corresponding to class file corresponding to network connection Record, and judge whether the recorded time belongs to same network and connect according to the exclusive identification code of request function and receptance function Connect, the request that the network connection can be calculated with the response time according to request time takes.Implement the present embodiment, can be precisely fast The request for obtaining network connection fastly takes.
Further, please continue to refer to Fig. 6, the service end 120 includes the 3rd judging unit 121, counting unit 122, the Four judging units 123 and address optimization unit 124.Wherein,
3rd judging unit 121 is used to judge that the request takes whether be more than default time-consuming threshold value.Wherein, this is default Time-consuming threshold value can be 50ms or other numerical value.
If counting unit 122 is used for, the request is time-consuming to be more than default time-consuming threshold value, to network corresponding to the network connection Address is counted.Wherein, if the request is taken as 60ms, judge that the request is time-consuming and be more than default time-consuming threshold value.And then The time-consuming corresponding network address of the request is recorded in the form of number.
4th judging unit 123 is used to judge whether the counting is more than default count threshold.Wherein, the count threshold can Think 10 times.
If address optimization unit 124 is more than default count threshold for the counting, according to default optimisation strategy to this Network address optimizes.
In specific implementation, if the number that consolidated network address is recorded is more than default count threshold, for example, consolidated network The number that address is recorded is 30 times, then exports the network address and there may be abnormity prompt, and then according to default optimization plan Slightly the network address is optimized.The default optimisation strategy includes but is not limited to cache the network address in the side of terminal 110 Corresponding resource, repetitive requests identical content every time, such as more pictures is avoided to download it is contemplated that using caching.
Above-described embodiment is sentenced by being counted according to the time-consuming network address more than default time-consuming threshold value of request Whether the counting for the network address of breaking is more than default count threshold, if so, it is abnormal then to judge that the network address is present, and to this Network address optimizes processing.By analyzing the network connection parameter collected, and then draw corresponding point Result is analysed, and optimization processing is performed to the analysis result, improves the optimization efficiency of network connection.
Further, based on above-described embodiment, the service end 120 also include the second computing unit, the 3rd computing unit with And setting unit.
Second computing unit, which is used to obtain corresponding at least two network address differed, asks to take.Such as obtained It is respectively 30ms, 70ms, 25ms and 75ms to be asked corresponding to the network address differed to 4 time-consuming.The network gathered The number of address can be two or more.
For calculating, request corresponding at least two network address differed is time-consuming averagely to ask 3rd computing unit Ask time-consuming.Taken according to above-mentioned acquired obtained request, corresponding average request is calculated and takes as 50ms.
Setting unit, which is used to take the average request, is arranged to the default time-consuming threshold value.
Above-described embodiment calculates by the way that request corresponding to the network address that is differed at least two is time-consuming, average to draw Request is time-consuming, and the average request is taken and is arranged to default time-consuming threshold value in previous embodiment.The default consumption can be improved When threshold value reliability, be advantageous to improve to the accuracy of network performance analysis.
Further, network connection parameter includes request number of times and volume of transmitted data, and the service end 120 can also include 3rd judging unit 121 and data-optimized unit.
3rd judging unit 121 is used to judge whether the request number of times is less than default frequency threshold value, and judges the number Whether it is more than default transmission quantity threshold value according to transmission quantity.
If data-optimized unit is less than default frequency threshold value for the request number of times, and the volume of transmitted data is more than default Transmission quantity threshold value, the data transfer mode of the network connection is optimized according to default optimisation strategy.
In specific implementation, it is assumed that the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default Transmission quantity threshold value, then it is abnormal to judge that volume of transmitted data corresponding to the network address occurs, that is, the number of the network request of single occurs It is excessive according to transmission quantity, poor user experience is easily caused if the file type of the network request is web page files, then needs root The data transfer mode of the network connection is optimized according to default optimisation strategy.Specifically, the default optimisation strategy can Think:Whether the file type for judging the network request is web page files type, if the file type of the network request is webpage File type, the web page files are subjected to paging processing.Handled, can be sent according to the page turning situation of user multiple by the paging Request, rather than once go to ask multipage data, volume of transmitted data is constant, but the effect that user sees is often to turn over one page, As long as seldom time can shows picture, be advantageous to lift Consumer's Experience.
Above-described embodiment is relative to draw by analyzing the request number of times in network connection and volume of transmitted data The optimization answered.Be advantageous to lift user experience.
Referring to Fig. 8, the system 200 includes terminal 210 and server 220, the terminal 210 includes:It is one or more First input unit 211;One or more first output devices 212;First memory 213 and first processor 214, above-mentioned One input unit 211, the first output device 212, first memory 213 and first processor 214 are connected by the first bus 215 Connect, the first memory 213 is stored with executable routine data.
The server 220 includes one or more secondary input devices 221;One or more second output devices 222;The Two memories 223 and second processor 224.Above-mentioned secondary input device 221, the second output device 222, second memory 223 Connected with second processor 224 by the second bus 225, the second memory 223 is also stored with executable routine data.Its In:
First input unit 211 or secondary input device 221 are used to provide user's transmission network request, provide user again The secondary request for sending the request example for creating network request.In specific implementation, the first input unit 211 of the embodiment of the present invention or Person's secondary input device 221 may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input unit etc..
First output device 212 or the second output device 222 are used for the state after display performs network request success, are somebody's turn to do The reason for network request of request example performs not successfully etc..In specific implementation, the first output device 212 of the embodiment of the present invention Or second output device 222 may include display, display screen, touch-screen, voice output etc..
First memory 213 or second memory 223 are used to store the routine data with various functions.It is of the invention real Applying the data that first memory 213 or second memory 223 store in example includes network request, request example, request example Priority, preset time, predetermined number, preset times, postpone the stand-by period, postpone queue, waiting list while perform net Number etc. of network request, and other routine datas that can call and run.In specific implementation, the first of the embodiment of the present invention deposits Reservoir 213 or second memory 223 can be system storages, such as, volatile (such as RAM) is non-volatile (all Such as ROM, flash memory etc.), or both combination.In specific implementation, the first memory 213 of the embodiment of the present invention or second deposit Reservoir 223 can also be the external memory storage outside system, such as, disk, CD, tape etc..
First processor 214 is used to calling and running the routine data stored in first memory 213, to perform following behaviour Make:
Corresponding class file is obtained according to current network connection;
The network connection parameter of the network connection is obtained according to the class file;
Judge whether the network connection parameter meets default upload condition;
If the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server 220。
Second processor 224 is used to calling and running the routine data stored in second memory 223, to perform following behaviour Make:
According to the network connection parameter and default optimisation strategy, the network connection is optimized
Further, the network connection parameter includes asking to take, and first processor 214 also performs following operation:
Obtain the request function in the class file and record request time when obtaining the request function;
Obtain the receptance function in the class file and record response time when obtaining the receptance function;
Judge whether the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function;
If the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function, according to the request Time is calculated the request with the response time and taken.
Further, by the server 220 according to the network connection parameter and default optimisation strategy, to described When network connection optimizes, second processor 224 also performs following operation:
Judge that the request is time-consuming and whether be more than default time-consuming threshold value;
If the request is time-consuming to be more than default time-consuming threshold value, network address corresponding to the network connection is counted Number;
Judge whether the counting is more than default count threshold;
If the counting is more than default count threshold, the network address is carried out according to default optimisation strategy excellent Change.
Further, it is described to judge that the request is time-consuming and whether be more than before default time-consuming threshold value, second processor 224 Also perform following operation:
It is time-consuming to obtain request corresponding at least two network address differed;
The average request that request is time-consuming corresponding to described at least two network address differed is calculated to take;
The average request is taken and is arranged to the default time-consuming threshold value.
Further, the network connection parameter includes request number of times and volume of transmitted data, and second processor 224 is also held The following operation of row:
Judge whether the request number of times is less than default frequency threshold value, and judge whether the volume of transmitted data is more than Default transmission quantity threshold value;
If the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default transmission quantity threshold Value, is optimized according to default optimisation strategy to the data transfer mode of the network connection.
The embodiment of the present invention provides a kind of optimization of network performance system, and the system 200 passes through in server 220 Two processors 224 call and run the routine data stored in second memory 223, and the clothes that previous embodiment is provided can be achieved The function at business end.
The present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium storage have one with On routine data, it is one more than routine data can be by more than one computing device, to realize following steps:
Corresponding class file is obtained according to current network connection;
The network connection parameter of the network connection is obtained according to the class file;
Judge whether the network connection parameter meets default upload condition;
If the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server;
By the server according to the network connection parameter and default optimisation strategy, the network connection is carried out Optimization.
Further, the network connection parameter includes asking to take, described to obtain the network according to the class file The network connection parameter of connection, the step also include:
Obtain the request function in the class file and record request time when obtaining the request function;
Obtain the receptance function in the class file and record response time when obtaining the receptance function;
Judge whether the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function;
If the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function, according to the request Time is calculated the request with the response time and taken.
Further, by the server according to the network connection parameter and default optimisation strategy, to the net Network connection optimizes, and the step also includes:
Judge that the request is time-consuming and whether be more than default time-consuming threshold value;
If the request is time-consuming to be more than default time-consuming threshold value, network address corresponding to the network connection is counted Number;
Judge whether the counting is more than default count threshold;
If the counting is more than default count threshold, the network address is carried out according to default optimisation strategy excellent Change.
Further, described to judge that the request is time-consuming whether more than before default time-consuming threshold value, the step is also wrapped Include:
It is time-consuming to obtain request corresponding at least two network address differed;
The average request that request is time-consuming corresponding to described at least two network address differed is calculated to take;
The average request is taken and is arranged to the default time-consuming threshold value.
Further, the network connection parameter includes request number of times and volume of transmitted data, by the server according to The network connection parameter and default optimisation strategy, are optimized to the network connection, and the step also includes:
Judge whether the request number of times is less than default frequency threshold value, and judge whether the volume of transmitted data is more than Default transmission quantity threshold value;
If the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default transmission quantity threshold Value, is optimized according to default optimisation strategy to the data transfer mode of the network connection.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description The specific work process at end, service end and unit, may be referred to the corresponding process in preceding method embodiment, no longer superfluous herein State.Those of ordinary skill in the art it is to be appreciated that with reference to the embodiments described herein describe each example unit and Algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and soft The interchangeability of part, the composition and step of each example are generally described according to function in the above description.These work( Application-specific and design constraint depending on technical scheme can be performed with hardware or software mode actually.Professional technique Personnel can realize described function using distinct methods to each specific application, but it is this realize it is not considered that It is beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed terminal, service end and method, can To realize by another way.For example, terminal described above, service end embodiment are only schematical, for example, institute The division of unit is stated, only a kind of division of logic function, can there is other dividing mode, such as multiple lists when actually realizing Member or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, institute Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, terminal or unit INDIRECT COUPLING or communication connection or electricity, mechanical or other forms connections.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer-readable recording medium.Based on such understanding, technical scheme substantially or Person says the part to be contributed to prior art, or the technical scheme all or part can in the form of software product body Reveal and, the computer software product is stored in a storage medium, including some instructions are causing a computer to set Standby (can be personal computer, server, or network equipment etc.) performs the whole of each embodiment methods described of the present invention Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of network performance optimizing method, it is characterised in that methods described includes:
Corresponding class file is obtained according to current network connection;
The network connection parameter of the network connection is obtained according to the class file;
Judge whether the network connection parameter meets default upload condition;
If the network connection parameter meets default upload condition, the network connection parameter is uploaded onto the server;
By the server according to the network connection parameter and default optimisation strategy, the network connection is carried out excellent Change.
2. the method as described in claim 1, it is characterised in that the network connection parameter includes request and taken, the basis The class file obtains the network connection parameter of the network connection, including:
Obtain the request function in the class file and record request time when obtaining the request function;
Obtain the receptance function in the class file and record response time when obtaining the receptance function;
Judge whether the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function;
If the exclusive identification code of the request function is identical with the exclusive identification code of the receptance function, according to the request time It is time-consuming that the request is calculated with the response time.
3. method as claimed in claim 2, it is characterised in that by the server according to the network connection parameter and in advance If optimisation strategy, the network connection is optimized, including:
Judge that the request is time-consuming and whether be more than default time-consuming threshold value;
If the request is time-consuming to be more than default time-consuming threshold value, network address corresponding to the network connection is counted;
Judge whether the counting is more than default count threshold;
If the counting is more than default count threshold, the network address is optimized according to default optimisation strategy.
4. method as claimed in claim 3, it is characterised in that described to judge whether the request is time-consuming time-consuming more than default Before threshold value, in addition to:
It is time-consuming to obtain request corresponding at least two network address differed;
The average request that request is time-consuming corresponding to described at least two network address differed is calculated to take;
The average request is taken and is arranged to the default time-consuming threshold value.
5. the method as described in claim 1, it is characterised in that the network connection parameter includes request number of times and data pass Throughput rate, by the server according to the network connection parameter and default optimisation strategy, the network connection is carried out excellent Change, including:
Judge whether the request number of times is less than default frequency threshold value, and judge whether the volume of transmitted data is more than and preset Transmission quantity threshold value;
If the request number of times is less than default frequency threshold value, and the volume of transmitted data is more than default transmission quantity threshold value, root The data transfer mode of the network connection is optimized according to default optimisation strategy.
6. a kind of optimization of network performance system, including terminal and service end, it is characterised in that the terminal includes:
First acquisition unit, for obtaining corresponding class file according to current network connection;
Second acquisition unit, for obtaining the network connection parameter of the network connection according to the class file;
First judging unit, for judging whether the network connection parameter meets default upload condition;
Uploading unit, if meeting default upload condition for the network connection parameter, the network connection parameter is uploaded To service end;
The service end is used for according to the network connection parameter and default optimisation strategy, the network connection is carried out excellent Change.
7. system as claimed in claim 6, it is characterised in that the network connection parameter includes request and taken, and described second Acquiring unit includes:
3rd acquiring unit, for obtaining the request function in the class file and recording request when obtaining the request function Time;
4th acquiring unit, for obtaining the receptance function in the class file and recording response when obtaining the receptance function Time;
Second judging unit, for judge it is described request function exclusive identification code and the exclusive identification code of the receptance function be It is no identical;
First computing unit, if exclusive identification code and the unique mark code-phase of the receptance function for the request function Together, the request is calculated according to the request time and the response time to take.
8. system as claimed in claim 7, it is characterised in that the service end includes:
3rd judging unit, whether it is more than default time-consuming threshold value for judging that the request is time-consuming;
Counting unit, it is more than default time-consuming threshold value if being taken for the request, to network corresponding to the network connection Location is counted;
4th judging unit, for judging whether the counting is more than default count threshold;
Address optimizes unit, if being more than default count threshold for the counting, according to default optimisation strategy to the net Network address optimizes.
9. a kind of optimization of network performance system, including terminal and server, it is characterised in that the terminal includes:First deposits Reservoir and first processor;The first memory is stored with executable routine data;The server includes the second storage Device and second processor;The second memory is also stored with executable routine data;The first processor is used to run The routine data stored in the first memory, the second processor are used to run the journey stored in the second memory Ordinal number evidence, to realize the method as described in any one of claim 1 to 5 jointly.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has more than one Routine data, one procedure above data can be by more than one computing devices, to realize such as claim 1 to 5 times Method described in one.
CN201710606532.3A 2017-07-24 2017-07-24 A kind of network performance optimizing method, system and computer-readable recording medium Pending CN107666414A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710606532.3A CN107666414A (en) 2017-07-24 2017-07-24 A kind of network performance optimizing method, system and computer-readable recording medium
PCT/CN2017/102860 WO2019019329A1 (en) 2017-07-24 2017-09-22 Method and system for optimizing network performance and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710606532.3A CN107666414A (en) 2017-07-24 2017-07-24 A kind of network performance optimizing method, system and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107666414A true CN107666414A (en) 2018-02-06

Family

ID=61122366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710606532.3A Pending CN107666414A (en) 2017-07-24 2017-07-24 A kind of network performance optimizing method, system and computer-readable recording medium

Country Status (2)

Country Link
CN (1) CN107666414A (en)
WO (1) WO2019019329A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815425A (en) * 2018-12-14 2019-05-28 平安科技(深圳)有限公司 Caching data processing method, device, computer equipment and storage medium
CN110167008A (en) * 2019-06-13 2019-08-23 平安科技(深圳)有限公司 A kind of signal monitoring method, device and storage medium
CN111447107A (en) * 2020-03-20 2020-07-24 Oppo广东移动通信有限公司 Network state determination method and device, storage medium and electronic equipment
CN113872871A (en) * 2021-09-24 2021-12-31 上海哔哩哔哩科技有限公司 Network acceleration method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040100684A1 (en) * 2001-06-07 2004-05-27 Jones Kevan Peter Line amplification system for wavelength switched optical networks
CN1592274A (en) * 2003-09-04 2005-03-09 株式会社Ntt都科摩 Communication system and communication control method
CN105050163A (en) * 2015-08-24 2015-11-11 小米科技有限责任公司 Method and device for network connection
WO2016046606A1 (en) * 2014-09-26 2016-03-31 Nokia Technologies Oy Methods and apparatus for minimization of drive testing
CN105577480A (en) * 2016-02-01 2016-05-11 新浪网技术(中国)有限公司 Monitoring method and device of network connection performances

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815314A (en) * 2009-02-20 2010-08-25 华为技术有限公司 Method, device and system for finding out radio network problems
CN106922038A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 The management method and device of data transfer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040100684A1 (en) * 2001-06-07 2004-05-27 Jones Kevan Peter Line amplification system for wavelength switched optical networks
CN1592274A (en) * 2003-09-04 2005-03-09 株式会社Ntt都科摩 Communication system and communication control method
WO2016046606A1 (en) * 2014-09-26 2016-03-31 Nokia Technologies Oy Methods and apparatus for minimization of drive testing
CN105050163A (en) * 2015-08-24 2015-11-11 小米科技有限责任公司 Method and device for network connection
CN105577480A (en) * 2016-02-01 2016-05-11 新浪网技术(中国)有限公司 Monitoring method and device of network connection performances

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815425A (en) * 2018-12-14 2019-05-28 平安科技(深圳)有限公司 Caching data processing method, device, computer equipment and storage medium
CN110167008A (en) * 2019-06-13 2019-08-23 平安科技(深圳)有限公司 A kind of signal monitoring method, device and storage medium
CN111447107A (en) * 2020-03-20 2020-07-24 Oppo广东移动通信有限公司 Network state determination method and device, storage medium and electronic equipment
CN113872871A (en) * 2021-09-24 2021-12-31 上海哔哩哔哩科技有限公司 Network acceleration method and system

Also Published As

Publication number Publication date
WO2019019329A1 (en) 2019-01-31

Similar Documents

Publication Publication Date Title
CN107666414A (en) A kind of network performance optimizing method, system and computer-readable recording medium
CN104753911B (en) A kind of information processing method based on social application, relevant apparatus and system
CN106547578A (en) The loading method and device of terminal applies APP
CN105607986A (en) Acquisition method and device of user behavior log data
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
CN110224896B (en) Network performance data acquisition method and device and storage medium
CN109948077A (en) User behavior data acquisition method, device, equipment and computer storage medium
CN102904959A (en) Network accelerating method and gateway
CN107370806A (en) HTTP conditional codes monitoring method, device, storage medium and electronic equipment
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN107911547A (en) Interactive system, the method for interface layout
US20170180219A1 (en) System and method of analyzing user skill and optimizing problem determination steps with helpdesk representatives
CN110808877A (en) Statistical analysis method and device based on interface response duration and computer equipment
CN108696523A (en) A kind of response method and equipment of session services
CN109584105A (en) A kind of method and system of service response
CN105553770B (en) Data acquisition control method and device
CN107295067A (en) Across the method and apparatus of screen identification user
CN107391168A (en) Animation loading method and device and request processing method and device
CN110737645B (en) Data migration method and system among different systems and related equipment
CN103986746A (en) Method and device enabling user to establish communication with third party
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN109788251A (en) Method for processing video frequency, device and storage medium
CN104796929B (en) Network debugging method and device
CN109194706A (en) Internet resources dial testing method and terminal
CN112559124A (en) Model management system and target operation instruction processing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180206

RJ01 Rejection of invention patent application after publication