CN106878108A - Network flow playback method of testing and device - Google Patents
Network flow playback method of testing and device Download PDFInfo
- Publication number
- CN106878108A CN106878108A CN201710119772.0A CN201710119772A CN106878108A CN 106878108 A CN106878108 A CN 106878108A CN 201710119772 A CN201710119772 A CN 201710119772A CN 106878108 A CN106878108 A CN 106878108A
- Authority
- CN
- China
- Prior art keywords
- playback
- network
- network flow
- network traffics
- penetration
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of network flow playback method of testing, comprise the following steps:The network traffics of targeted website are obtained, the network traffics for obtaining are classified according to default classifying rules;Sorted network traffics are encrypted and identified, and user profile extraction is carried out to the network traffics after mark, to obtain playback network traffics;Playback is carried out into network flow playback test with network traffics respectively at preset network flow playback point of penetration and contrast points.The invention also discloses a kind of network flow playback test device.The technical scheme that the present invention is provided solves the slower technical problem of existing network flow playback data redundancy, playback speed.
Description
Technical field
The present invention relates to system testing technical field, more particularly to a kind of network flow playback method of testing and device.
Background technology
Research and development in computer network/safety product, in the implementation of security solution, when carrying out networking or dilatation
During safety means type selecting, it is necessary to the performance of network/safety means is carried out comprehensively, the test of system, and network flow playback is
A kind of vital method of testing.Existing network flow playback solution is that the tcpreplay based on pcap bags is played back,
It can make to the message of crawl and arbitrarily change, and specify the playback speed of message etc..But, the number of tcpreplay playback
According to excessively similarity is higher between redundancy, and data, playback speed is slower.
The content of the invention
It is a primary object of the present invention to provide a kind of network flow playback method of testing and device, it is intended to solve existing
The slower technical problem of network flow playback data redundancy, playback speed.
To achieve the above object, a kind of network flow playback method of testing that the present invention is provided is comprised the following steps:
The network traffics of targeted website are obtained, the network traffics for obtaining are classified according to default classifying rules;
Sorted network traffics are encrypted and identified, and user profile is carried out to the network traffics after mark and carried
Take, to obtain playback network traffics;
Playback is carried out into network traffics respectively at preset network flow playback point of penetration and contrast points with network traffics to return
Put test.
Preferably, it is described that sorted network traffics are encrypted and identified, and the network traffics after mark are carried out
User profile is extracted, and is included the step of to obtain playback network traffics:
Generation unique identifier is encrypted to sorted each class network traffics, and rower is entered to each identification code
Know;
User profile extraction is carried out to the identification code map network flow after mark based on default dynamic parameter;
Identification code map network flow after the mark is carried out by playback scenario classification according to user profile, to obtain not
Playback network traffics under generic playback scenario.
Preferably, it is described to carry out playback respectively at preset network flow playback point of penetration and contrast points with network traffics
The step of network flow playback is tested includes:
Classification based on application server builds the point of penetration and contrast points of network flow playback;
Playback is respectively placed in into the point of penetration with network traffics based on the playback scenario carries out network flow with contrast points
Amount playback test.
Preferably, it is described to carry out playback respectively at preset network flow playback point of penetration and contrast points with network traffics
Also include after the step of network flow playback is tested:
The network flow playback test data of the point of penetration and contrast points is obtained respectively and is compared, to obtain incision
What the application server of application server and the contrast points of point was provided service whether consistent test result.
Preferably, the classifying rules is the classification of user terminal operating system or the classification of user account.
Additionally, to achieve the above object, the present invention also provides a kind of network flow playback test device, including:
Sort module, is used to obtain the network traffics of targeted website, according to default classifying rules to obtain network flow
Amount is classified;
Extraction module, is used to sorted network traffics are encrypted and identified, and enter the network traffics after mark
Row user profile is extracted, to obtain playback network traffics;
Playback module, is used to respectively at preset network flow playback point of penetration click through playback network traffics with contrast
Row network flow playback is tested.
Preferably, the extraction module includes:
Mark unit, is used to be encrypted generation unique identifier to sorted each class network traffics, and to each
Identification code is identified;
Extraction unit, is used to carry out user's letter to the identification code map network flow after mark based on default dynamic parameter
Breath is extracted;
Acquiring unit, the identification code map network flow after the mark is carried out into playback scenario according to user profile
Classification, to obtain the playback network traffics under different classes of playback scenario.
Preferably, the playback module includes:
Construction unit, is used to point of penetration and contrast points that the classification based on application server builds network flow playback;
Playback unit, is used to playback network traffics are respectively placed in into the point of penetration with contrast based on the playback scenario
Point carries out network flow playback test.
Preferably, the network flow playback test device also includes:
Comparison module, is used to obtain respectively the network flow playback test data of the point of penetration and contrast points and is compared
Compared with, with obtain point of penetration application server and contrast points application server provide service whether consistent test result.
Preferably, the classifying rules is the classification of user terminal operating system or the classification of user account.
In the technical scheme that the present invention is provided, classify by the network traffics for obtaining, and to sorted network
Flow is encrypted and identifies, and then is avoided that too many similarity playback of data higher occur, also just improves network traffics
Playback speed;And user profile extraction is carried out to the network traffics after mark, to obtain playback network traffics, also just improve
The diversity and randomness of network flow playback test, improve the coverage of test, it is ensured that network flow playback tests number
According to accuracy and authenticity.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that inventive network flow plays back method of testing first embodiment;
Fig. 2 is the application architecture figure that inventive network flow plays back method of testing first embodiment;
Fig. 3 is that sorted network traffics are encrypted during inventive network flow plays back method of testing second embodiment
And the refinement schematic flow sheet of identification of steps;
Fig. 4 is the refinement of network flow playback testing procedure in inventive network flow playback method of testing 3rd embodiment
Schematic flow sheet;
Fig. 5 is the schematic flow sheet that inventive network flow plays back method of testing fourth embodiment;
Fig. 6 is the high-level schematic functional block diagram that inventive network flow plays back test device first embodiment;
Fig. 7 is the refinement high-level schematic functional block diagram of extraction module in finger identification remote control second embodiment of the present invention;
Fig. 8 is the refinement high-level schematic functional block diagram of playback module in finger identification remote control 3rd embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram that inventive network flow plays back test device fourth embodiment.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of network flow playback method of testing, referring to Figures 1 and 2, in one embodiment, the network flow
Amount playback method of testing includes:
Step S10, obtains the network traffics of targeted website, and the network traffics for obtaining are carried out according to default classifying rules
Classification;
It should be noted that the network traffics for obtaining targeted website can be the all-network flow to access target website
Obtained;Can also be obtain certain period of time in targeted website network traffics, for example obtain 10 points to 11 points of the morning it
Between access target website network traffics;Can also be the network flow for obtaining access target website in specific user's special time period
Amount, for example, obtain the network traffics that party A-subscriber goes over access target website in month.
Further, the classifying rules is the classification of user terminal operating system or the classification of user account.In this implementation
In a kind of embodiment of example, when the network traffics for obtaining targeted website, the classification based on user terminal operating system is to acquisition
Network traffics are classified.It should be noted that the operating system is divided into Android system and ios systems, that is to say, that
According to user terminal access website operating system difference, by the network traffics of acquisition be divided into Android system network traffics and
Ios grid flows.
In the another embodiment of the present embodiment, the classification according to user account is divided the network traffics for obtaining
Class.It is to be appreciated that the access user of website has multiple, each access user is provided with user account, and user is by corresponding
User account accesses website.When the network traffics for obtaining targeted website, then the network traffics that party A-subscriber accesses website can be divided
It is a class, the network traffics that party B-subscriber accesses website are divided into a class, and the network traffics that C user accesses website are divided into a class, etc.
Deng.
It should be noted that when the classification according to user account is classified to the network traffics for obtaining, the user
Account is divided into logging status and non-logging status, when user account is logging status, then to the network traffics that obtain according to stepping on
The classification of user account is classified under record state;When user account is non-logging status, then to the network traffics root of acquisition
Classification according to the equipment Serial Number of user terminal is classified.It is to be appreciated that user terminal can be mobile terminal, such as mobile phone, flat
Plate computer or computer, and each mobile terminal device is in the equipment sequence that Shi Douyou is specific, be different from other equipment of dispatching from the factory
Number, such as the handset serial of each mobile phone is just different.Thus when user account is non-logging status, according to equipment Serial Number
Also the network traffics for obtaining can be classified.
Sorted network traffics are encrypted and identified by step S20, and carry out user to the network traffics after mark
Information extraction, to obtain playback network traffics;
In the present embodiment, generation unique identifier is encrypted to sorted network traffics by md5 encryption method, kept away
Exempt to store too many similarity request URL higher (Uniform Resource Locator, URL), and to every
One identification code is identified, and is made a distinction with to network traffics different classes of after classification.It should be noted that URL is interconnection
The address of online standard resource, each file has a unique URL on internet, and the information that it is included points out the position of file
Put and how browser should process it, and then the position and place of the network traffics after encryption also can be just obtained according to identification code
Reason mode.
Further, user profile extraction is carried out to the network traffics after mark according to the mark, is used with obtaining playback
Network traffics.It should be noted that the user profile can be the behavior that user accesses website, such as web page browsing, commodity
Place an order, commodity pay etc..
Step S30, net is carried out by playback with network traffics respectively at preset network flow playback point of penetration and contrast points
The playback test of network flow.
In a kind of embodiment of the present embodiment, the preset network flow playback point of penetration is to come into operation
New edition application server, the preset network flow playback contrast points are currently used application server.It is appreciated that
Ground, when the application server of a new edition that will come into operation, it is necessary to the service performance of application server is tested, then
Playback is carried out into network flow playback test, root with network traffics respectively at preset network flow playback point of penetration and contrast points
Judge point of penetration according to test result, namely whether the service performance of the new edition application server that will be used reaches requirement.
Referring in particular to Fig. 2, the network application scene of the present embodiment will be specifically described.It is to be appreciated that when new
Before version application server comes into operation, after the preposition WEB server of website obtains network traffics, by the load balancing body of website
Network traffics are respectively sent to new edition application server (point of penetration) and old edition server (contrast points) by system, with to network traffics
Carry out playback test.And then the test data of point of penetration and contrast points called by bottom and is compared, to judge that new edition should
Whether suitably come into operation with server.
In the technical scheme that the present embodiment is provided, classify by the network traffics for obtaining, and to sorted net
Network flow is encrypted and identifies, and then is avoided that too many similarity playback of data higher occur, also just improves network flow
The playback speed of amount;And user profile extraction is carried out to the network traffics after mark, to obtain playback network traffics, also just carry
The diversity and randomness of network flow playback test high, improve the coverage of test, it is ensured that network flow playback is tested
The accuracy and authenticity of data.
Further, Fig. 3 is refer to, based on above-described embodiment, in the present embodiment, the step S20 includes:
Sorted each class network traffics are encrypted generation unique identifier by step S21, and to each identification code
It is identified;
Step S22, carries out user profile and carries based on default dynamic parameter to the identification code map network flow after mark
Take;
Step S23, playback scenario classification is carried out according to user profile by the identification code map network flow after the mark,
To obtain the playback network traffics under different classes of playback scenario.
Specifically, after being classified to the network traffics for obtaining according to default classifying rules, to sorted each
Class network traffics carry out md5 encryption to generate unique identifier, and then cause to be distinguished between each class network traffics, and right
Each identification code is identified, to be preferably identified to sorted network traffics.
Further, user profile is carried out to the identification code map network flow after mark based on default dynamic parameter to carry
Take;For example, can be carried out to the identification code map network flow after mark for dynamic parameters such as request Header, user Token
User profile is extracted, and mapping relations are set up with the user profile according to default playback scenario.For example, working as the user profile
For user terminal web page browsing behavior when, then the corresponding playback scenario be web page browsing playback;When the user profile is
Under the commodity of user terminal during single act, then the corresponding playback scenario places an order playback for commodity;When the user profile is use
During the commodity payment behavior at family end, then the corresponding playback scenario is that commodity pay playback, etc..And then obtain different classes of
Playback network traffics under playback scenario.
In the technical scheme that the present embodiment is provided, by the way that sorted network traffics are carried out with user profile extraction, and root
The identification code map network flow after the mark is carried out into playback scenario classification according to user profile, to obtain different classes of playback
Playback network traffics under scene so that the network flow playback more has specific aim and diversity, also improves net
The playback rate of network flow.
Further, Fig. 4 is refer to, based on embodiment three, in the present embodiment, the step S30 includes:
Step S31, the classification based on application server builds the point of penetration and contrast points of network flow playback;
Playback network traffics are respectively placed in the point of penetration and are clicked through with contrast by step S32 based on the playback scenario
Row network flow playback is tested.
It is to be appreciated that application server is a kind of simple and manageable to system resource for web application is provided
Access mechanism, and application server is also required to constantly update ensure that web site performance is normal and web portal security.When there is new edition
, it is necessary to test the service performance of the application server of new edition when application server needs new, it is ensured that new edition application takes
The performance of business device is normal.
Specifically, the point of penetration and contrast points of network flow playback, in the present embodiment, the class of the application server are built
Ji Wei new edition application server and old edition application server, that is to say, that the point of penetration is new edition application server, described
Contrast points are old edition application server.Further, playback network traffics are respectively placed in based on the playback scenario described
Point of penetration carries out network flow playback test with contrast points, the service performance of point of penetration is judged according to test data, really
The service performance of application server is protected, and then ensures the performance and safety of targeted website.
Further, Fig. 5 is refer to, based on above-described embodiment, in the present embodiment, the network flow playback method of testing
Including:
Step S10, obtains the network traffics of targeted website, and the network traffics for obtaining are carried out according to default classifying rules
Classification;
Sorted network traffics are encrypted and identified by step S20, and carry out user to the network traffics after mark
Information extraction, to obtain playback network traffics;
Step S30, net is carried out by playback with network traffics respectively at preset network flow playback point of penetration and contrast points
The playback test of network flow;
Step S40, obtains the network flow playback test data of the point of penetration and contrast points and is compared respectively, with
Obtain that the application server of application server and the contrast points of point of penetration provides service whether consistent test result.
Specifically, when playback is carried out into net respectively at preset network flow playback point of penetration and contrast points with network traffics
The playback test of network flow, then can respectively obtain the test data of the point of penetration and contrast points, the test of the point of penetration that will be obtained
Data are compared with the test data of contrast points, judge whether the two is consistent, if the test data of point of penetration and contrast points
Test data is consistent, then obtain the test of the service-conformance of the application server of point of penetration and the application server offer of contrast points
As a result;If the test data of point of penetration is inconsistent with the test data of contrast points, illustrate the application server of point of penetration with it is right
It is more inconsistent than the service that the application server put is provided, in addition it is also necessary to which that the application server to point of penetration carries out performance adjustment.
In the technical scheme that the present embodiment is provided, enter with the network flow playback test data of contrast points by point of penetration
Row compares, and then the service that the application server of point of penetration is provided is judged, to ensure the application server of point of penetration
Service performance, it is ensured that the network performance and safety of targeted website.
The present invention also provides a kind of network flow playback test device, and reference picture 6 is in one embodiment, of the invention to provide
Network flow playback test device include:
Sort module 10, is used to obtain the network traffics of targeted website, according to default classifying rules to obtain network
Flow is classified;
It should be noted that the network traffics for obtaining targeted website can be the all-network flow to access target website
Obtained;Can also be obtain certain period of time in targeted website network traffics, for example obtain 10 points to 11 points of the morning it
Between access target website network traffics;Can also be the network flow for obtaining access target website in specific user's special time period
Amount, for example, obtain the network traffics that party A-subscriber goes over access target website in month.
Further, the classifying rules is the classification of user terminal operating system or the classification of user account.In this implementation
In a kind of embodiment of example, when the network traffics for obtaining targeted website, the classification based on user terminal operating system is to acquisition
Network traffics are classified.It should be noted that the operating system is divided into Android system and ios systems, that is to say, that
According to user terminal access website operating system difference, by the network traffics of acquisition be divided into Android system network traffics and
Ios grid flows.
In the another embodiment of the present embodiment, the classification according to user account is divided the network traffics for obtaining
Class.It is to be appreciated that the access user of website has multiple, each access user is provided with user account, and user is by corresponding
User account accesses website.When the network traffics for obtaining targeted website, then the network traffics that party A-subscriber accesses website can be divided
It is a class, the network traffics that party B-subscriber accesses website are divided into a class, and the network traffics that C user accesses website are divided into a class, etc.
Deng.
It should be noted that when the classification according to user account is classified to the network traffics for obtaining, the user
Account is divided into logging status and non-logging status, when user account is logging status, then to the network traffics that obtain according to stepping on
The classification of user account is classified under record state;When user account is non-logging status, then to the network traffics root of acquisition
Classification according to the equipment Serial Number of user terminal is classified.It is to be appreciated that user terminal can be mobile terminal, such as mobile phone, flat
Plate computer or computer, and each mobile terminal device is in the equipment sequence that Shi Douyou is specific, be different from other equipment of dispatching from the factory
Number, such as the handset serial of each mobile phone is just different.Thus when user account is non-logging status, according to equipment Serial Number
Also the network traffics for obtaining can be classified.
Extraction module 20, is used to sorted network traffics are encrypted and identified, and to the network traffics after mark
User profile extraction is carried out, to obtain playback network traffics;
In the present embodiment, generation unique identifier is encrypted to sorted network traffics by md5 encryption method, kept away
Exempt to store too many similarity request URL higher (Uniform Resource Locator, URL), and to every
One identification code is identified, and is made a distinction with to network traffics different classes of after classification.It should be noted that URL is interconnection
The address of online standard resource, each file has a unique URL on internet, and the information that it is included points out the position of file
Put and how browser should process it, and then the position and place of the network traffics after encryption also can be just obtained according to identification code
Reason mode.
Further, user profile extraction is carried out to the network traffics after mark according to the mark, is used with obtaining playback
Network traffics.It should be noted that the user profile can be the behavior that user accesses website, such as web page browsing, commodity
Place an order, commodity pay etc..
Playback module 30, is used to playback network traffics respectively at preset network flow playback point of penetration and contrast points
Carry out network flow playback test.
In a kind of embodiment of the present embodiment, the preset network flow playback point of penetration is to come into operation
New edition application server, the preset network flow playback contrast points are currently used application server.It is appreciated that
Ground, when the application server of a new edition that will come into operation, it is necessary to the service performance of application server is tested, then
Playback is carried out into network flow playback test, root with network traffics respectively at preset network flow playback point of penetration and contrast points
Judge point of penetration according to test result, namely whether the service performance of the new edition application server that will be used reaches requirement.
In the technical scheme that the present embodiment is provided, sort module 10 is classified by the network traffics for obtaining, and is extracted
Module 20 is encrypted and identifies to sorted network traffics, and then is avoided that too many similarity playback number higher occur
According to also just improve the playback speed of network traffics;And user profile extraction is carried out to the network traffics after mark, to obtain back
Put and use network traffics, also just improve the diversity and randomness of network flow playback test, improve the coverage of test, really
Protect the accuracy and authenticity of network flow playback test data.
Further, Fig. 7 is refer to, based on above-described embodiment, in the present embodiment, the extraction module 20 includes:
Mark unit 21, is used to be encrypted generation unique identifier to sorted each class network traffics, and to every
One identification code is identified;
Extraction unit 22, is used to carry out user to the identification code map network flow after mark based on default dynamic parameter
Information extraction;
Acquiring unit 23, the identification code map network flow after the mark is carried out into playback field according to user profile
Scape is classified, to obtain the playback network traffics under different classes of playback scenario.
Specifically, after being classified to the network traffics for obtaining according to default classifying rules, to sorted each
Class network traffics carry out md5 encryption to generate unique identifier, and then cause to be distinguished between each class network traffics, and right
Each identification code is identified, to be preferably identified to sorted network traffics.
Further, user profile is carried out to the identification code map network flow after mark based on default dynamic parameter to carry
Take;For example, can be carried out to the identification code map network flow after mark for dynamic parameters such as request Header, user Token
User profile is extracted, and mapping relations are set up with the user profile according to default playback scenario.For example, working as the user profile
For user terminal web page browsing behavior when, then the corresponding playback scenario be web page browsing playback;When the user profile is
Under the commodity of user terminal during single act, then the corresponding playback scenario places an order playback for commodity;When the user profile is use
During the commodity payment behavior at family end, then the corresponding playback scenario is that commodity pay playback, etc..And then obtain different classes of
Playback network traffics under playback scenario.
In the technical scheme that the present embodiment is provided, by the way that sorted network traffics are carried out with user profile extraction, and root
The identification code map network flow after the mark is carried out into playback scenario classification according to user profile, to obtain different classes of playback
Playback network traffics under scene so that the network flow playback more has specific aim and diversity, also improves net
The playback rate of network flow.
Further, Fig. 8 is refer to, two based on embodiment, in the present embodiment, the playback module 30 includes:
Construction unit 31, is used to point of penetration and contrast points that the classification based on application server builds network flow playback;
Playback unit 32, be used to based on the playback scenario by playback network traffics be respectively placed in the point of penetration with it is right
Network flow playback test is carried out than point.
It is to be appreciated that application server is a kind of simple and manageable to system resource for web application is provided
Access mechanism, and application server is also required to constantly update ensure that web site performance is normal and web portal security.When there is new edition
, it is necessary to test the service performance of the application server of new edition when application server needs new, it is ensured that new edition application takes
The performance of business device is normal.
Specifically, construction unit 31 builds the point of penetration and contrast points of network flow playback, in the present embodiment, the application
The classification of server is new edition application server and old edition application server, that is to say, that the point of penetration takes for new edition application
Business device, the contrast points are old edition application server.Further, playback unit 32 is based on the playback scenario by playback net
Network flow is respectively placed in the point of penetration and contrast points and carries out network flow playback test, according to test data to the clothes of point of penetration
Business performance is judged, it is ensured that the service performance of application server, and then ensures the performance and safety of targeted website.
Further, Fig. 9 is refer to, based on above-described embodiment, in the present embodiment, the network flow playback test device
Including:
Sort module 10, is used to obtain the network traffics of targeted website, according to default classifying rules to obtain network
Flow is classified;
Extraction module 20, is used to sorted network traffics are encrypted and identified, and to the network traffics after mark
User profile extraction is carried out, to obtain playback network traffics;
Playback module 30, is used to playback network traffics respectively at preset network flow playback point of penetration and contrast points
Carry out network flow playback test;
Comparison module 40, is used to obtain respectively the network flow playback test data of the point of penetration and contrast points and carries out
Compare, with obtain point of penetration application server and contrast points application server provide service whether consistent test knot
Really.
Specifically, when playback is carried out into net respectively at preset network flow playback point of penetration and contrast points with network traffics
The playback test of network flow, then comparison module 40 can respectively obtain the test data of the point of penetration and contrast points, by cutting for obtaining
The test data of access point is compared with the test data of contrast points, judges whether the two is consistent, if the test data of point of penetration
Test data with contrast points is consistent, then obtain the service of the application server of point of penetration and the application server offer of contrast points
Consistent test result;If the test data of point of penetration is inconsistent with the test data of contrast points, the application of point of penetration is illustrated
Server is inconsistent with the service that the application server of contrast points is provided, in addition it is also necessary to which the application server to point of penetration carries out performance
Debugging.
In the technical scheme that the present embodiment is provided, enter with the network flow playback test data of contrast points by point of penetration
Row compares, and then the service that the application server of point of penetration is provided is judged, to ensure the application server of point of penetration
Service performance, it is ensured that the network performance and safety of targeted website.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of network flow playback method of testing, it is characterised in that comprise the following steps:
The network traffics of targeted website are obtained, the network traffics for obtaining are classified according to default classifying rules;
Sorted network traffics are encrypted and identified, and user profile extraction is carried out to the network traffics after mark, with
Obtain playback network traffics;
Playback is carried out into network flow playback survey with network traffics respectively at preset network flow playback point of penetration and contrast points
Examination.
2. network flow playback method of testing as claimed in claim 1, it is characterised in that described to sorted network traffics
It is encrypted and identifies, and user profile extraction is carried out to the network traffics after mark, obtains the step of playback network traffics
Suddenly include:
Generation unique identifier is encrypted to sorted each class network traffics, and each identification code is identified;
User profile extraction is carried out to the identification code map network flow after mark based on default dynamic parameter;
Identification code map network flow after the mark is carried out by playback scenario classification according to user profile, to obtain inhomogeneity
Playback network traffics under other playback scenario.
3. network flow playback method of testing as claimed in claim 2, it is characterised in that described by playback network traffics point
Do not carry out the step of network flow playback is tested in preset network flow playback point of penetration and contrast points and include:
Classification based on application server builds the point of penetration and contrast points of network flow playback;
Playback is respectively placed in into the point of penetration with network traffics based on the playback scenario carries out network traffics time with contrast points
Put test.
4. the network flow playback method of testing as any one of claim 1-3, it is characterised in that described to use playback
Network traffics are after preset network flow playback point of penetration and contrast points carry out the step of network flow playback is tested
Also include:
The network flow playback test data of the point of penetration and contrast points is obtained respectively and is compared, to obtain point of penetration
The service that the application server of application server and contrast points is provided whether consistent test result.
5. network flow playback method of testing as claimed in claim 4, it is characterised in that the classifying rules is user terminal behaviour
Make the classification of system or the classification of user account.
6. a kind of network flow playback test device, it is characterised in that including:
Sort module, is used to obtain the network traffics of targeted website, and the network traffics for obtaining are entered according to default classifying rules
Row classification;
Extraction module, is used to sorted network traffics are encrypted and identified, and use the network traffics after mark
Family information extraction, to obtain playback network traffics;
Playback module, is used to for playback to carry out net respectively at preset network flow playback point of penetration and contrast points with network traffics
The playback test of network flow.
7. network flow playback test device as claimed in claim 6, it is characterised in that the extraction module includes:
Mark unit, is used to be encrypted generation unique identifier to sorted each class network traffics, and to each identification
Code is identified;
Extraction unit, is used to carry out user profile to the identification code map network flow after mark based on default dynamic parameter to carry
Take;
Acquiring unit, the identification code map network flow after the mark is carried out into playback scenario point according to user profile
Class, to obtain the playback network traffics under different classes of playback scenario.
8. network flow playback test device as claimed in claim 7, it is characterised in that the playback module includes:
Construction unit, is used to point of penetration and contrast points that the classification based on application server builds network flow playback;
Playback unit, is used to playback network traffics are respectively placed in into the point of penetration with contrast click-through based on the playback scenario
Row network flow playback is tested.
9. the network flow playback test device as any one of claim 6-8, it is characterised in that the network traffics
Playback test device also includes:
Comparison module, is used to obtain respectively the network flow playback test data of the point of penetration and contrast points and is compared,
With obtain point of penetration application server and contrast points application server provide service whether consistent test result.
10. network flow playback test device as claimed in claim 9, it is characterised in that the classifying rules is user terminal
The classification of operating system or the classification of user account.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710119772.0A CN106878108B (en) | 2017-03-01 | 2017-03-01 | Network flow playback test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710119772.0A CN106878108B (en) | 2017-03-01 | 2017-03-01 | Network flow playback test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106878108A true CN106878108A (en) | 2017-06-20 |
CN106878108B CN106878108B (en) | 2019-12-20 |
Family
ID=59168506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710119772.0A Active CN106878108B (en) | 2017-03-01 | 2017-03-01 | Network flow playback test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878108B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110474820A (en) * | 2019-07-17 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Traffic playback method, device, electronic equipment |
CN111010316A (en) * | 2019-12-17 | 2020-04-14 | 广州唯品会信息科技有限公司 | Flow playback method, device and system |
CN111045952A (en) * | 2019-12-16 | 2020-04-21 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
CN111274117A (en) * | 2018-12-04 | 2020-06-12 | 阿里巴巴集团控股有限公司 | Recommended service experiment and management method, device and system thereof |
CN111382058A (en) * | 2018-12-29 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Service testing method and device, server and storage medium |
CN112787880A (en) * | 2019-11-08 | 2021-05-11 | 阿里巴巴集团控股有限公司 | Playback data acquisition and flow playback method, device and storage medium |
CN113328911A (en) * | 2021-05-28 | 2021-08-31 | 中国工商银行股份有限公司 | Traffic link monitoring method and device during service operation |
CN117579507A (en) * | 2024-01-17 | 2024-02-20 | 云筑信息科技(成都)有限公司 | Method for automatically extracting recording flow |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040243894A1 (en) * | 2003-03-19 | 2004-12-02 | Smith Dale T. | Method and systems for providing data replay, reprocess and retrigger functions in an analyzer |
CN102299828A (en) * | 2011-08-30 | 2011-12-28 | 中国科学院计算技术研究所 | Test traffic synthesis method and device for test on performance of network security equipment |
CN103546326A (en) * | 2013-11-04 | 2014-01-29 | 北京中搜网络技术股份有限公司 | Website traffic statistic method |
-
2017
- 2017-03-01 CN CN201710119772.0A patent/CN106878108B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040243894A1 (en) * | 2003-03-19 | 2004-12-02 | Smith Dale T. | Method and systems for providing data replay, reprocess and retrigger functions in an analyzer |
CN102299828A (en) * | 2011-08-30 | 2011-12-28 | 中国科学院计算技术研究所 | Test traffic synthesis method and device for test on performance of network security equipment |
CN103546326A (en) * | 2013-11-04 | 2014-01-29 | 北京中搜网络技术股份有限公司 | Website traffic statistic method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111274117A (en) * | 2018-12-04 | 2020-06-12 | 阿里巴巴集团控股有限公司 | Recommended service experiment and management method, device and system thereof |
CN111274117B (en) * | 2018-12-04 | 2023-04-18 | 阿里巴巴集团控股有限公司 | Recommended service experiment and management method, device and system thereof |
CN111382058A (en) * | 2018-12-29 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Service testing method and device, server and storage medium |
CN111382058B (en) * | 2018-12-29 | 2024-02-02 | 北京字节跳动网络技术有限公司 | Service testing method and device, server and storage medium |
CN110474820A (en) * | 2019-07-17 | 2019-11-19 | 阿里巴巴集团控股有限公司 | Traffic playback method, device, electronic equipment |
CN110474820B (en) * | 2019-07-17 | 2023-10-10 | 创新先进技术有限公司 | Flow playback method and device and electronic equipment |
CN112787880A (en) * | 2019-11-08 | 2021-05-11 | 阿里巴巴集团控股有限公司 | Playback data acquisition and flow playback method, device and storage medium |
CN111045952A (en) * | 2019-12-16 | 2020-04-21 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
CN111045952B (en) * | 2019-12-16 | 2023-03-28 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
CN111010316A (en) * | 2019-12-17 | 2020-04-14 | 广州唯品会信息科技有限公司 | Flow playback method, device and system |
CN113328911A (en) * | 2021-05-28 | 2021-08-31 | 中国工商银行股份有限公司 | Traffic link monitoring method and device during service operation |
CN117579507A (en) * | 2024-01-17 | 2024-02-20 | 云筑信息科技(成都)有限公司 | Method for automatically extracting recording flow |
Also Published As
Publication number | Publication date |
---|---|
CN106878108B (en) | 2019-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106878108A (en) | Network flow playback method of testing and device | |
Barse et al. | Synthesizing test data for fraud detection systems | |
CN103888490B (en) | A kind of man-machine knowledge method for distinguishing of full automatic WEB client side | |
CN104144419B (en) | Identity authentication method, device and system | |
CN108446221A (en) | System detection method, device, computer equipment and storage medium | |
Zarrad et al. | Evaluating network test scenarios for network simulators systems | |
CN107133174A (en) | Test case code automatically generating device and method | |
US20130066814A1 (en) | System and Method for Automated Classification of Web pages and Domains | |
US20150302466A1 (en) | Data determination method and device for a thermodynamic chart | |
CN103024090B (en) | Method and system for identifying user terminal | |
CN104579830B (en) | service monitoring method and device | |
CN107483563A (en) | The data query method and apparatus and client and server of anti-reptile | |
CN102710770A (en) | Identification method for network access equipment and implementation system for identification method | |
CN108256322B (en) | Security testing method and device, computer equipment and storage medium | |
US10146667B2 (en) | Generalized snapshots based on multiple partial snapshots | |
CN109241733A (en) | Crawler Activity recognition method and device based on web access log | |
CN109547426A (en) | Service response method and server | |
CN109582844A (en) | A kind of method, apparatus and system identifying crawler | |
CN106569951A (en) | Web test method independent of page | |
CN108073597A (en) | The page clicks on behavior methods of exhibiting, device and system | |
CN106412975A (en) | Content charging vulnerability test methods, and apparatuses | |
CN113918526A (en) | Log processing method and device, computer equipment and storage medium | |
CN106559498A (en) | Air control data collection platform and its collection method | |
CN108073499A (en) | The test method and device of application program | |
CN107622406A (en) | Identify the method and system of virtual unit |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171204 Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Fangcun Avenue, one of the 314 self compiled Applicant after: Guangzhou Pinwei Software Co., Ltd. Address before: Liwan District Fangcun Huahai street Guangzhou city Guangdong province 510000 No. 20 self 1-5 building (only for office use) Applicant before: Guangzhou VIPSHOP Information and Technology Co., Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |