CN107819637A - The acquisition methods and device of handling capacity - Google Patents
The acquisition methods and device of handling capacity Download PDFInfo
- Publication number
- CN107819637A CN107819637A CN201610823179.XA CN201610823179A CN107819637A CN 107819637 A CN107819637 A CN 107819637A CN 201610823179 A CN201610823179 A CN 201610823179A CN 107819637 A CN107819637 A CN 107819637A
- Authority
- CN
- China
- Prior art keywords
- message
- equipment
- information
- handling capacity
- response message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000004044 response Effects 0.000 claims abstract description 75
- 230000010076 replication Effects 0.000 claims abstract description 25
- 101150082208 DIABLO gene Proteins 0.000 claims description 11
- 102100033189 Diablo IAP-binding mitochondrial protein Human genes 0.000 claims description 11
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 claims description 11
- 230000003362 replicative effect Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 14
- 230000000694 effects Effects 0.000 abstract description 5
- 238000012545 processing Methods 0.000 description 12
- 238000012360 testing method Methods 0.000 description 10
- 238000000605 extraction Methods 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 231100000640 hair analysis Toxicity 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0888—Throughput
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a kind of acquisition methods of handling capacity and device, wherein this method includes:First device replication the first message to be sent, obtains message set, wherein, the message set includes multiple first messages;First equipment sends message set to the second equipment;First equipment receives response message of second equipment according to the first message feedback;First equipment determines the handling capacity of the first device client side according to the first message and response message, Pass through above-mentioned technical proposal is solved due to FPGA packet sending speeds and bandwidth limitation, so that the throughput performance parameter in RFC2544 standard agreements can not meet the rate requirement of relative interface, and the handling capacity result tested out is not accurate enough, the maximum transmission bandwidth problem of link can not be accurately reflected, reach so that the throughput performance parameter in RFC2544 standard agreements meets the rate requirement of relative interface and accurately reflects the effect for the maximum data traffic for being devices under handling.
Description
Technical field
The present invention relates to the communications field, in particular to the acquisition methods and device of a kind of handling capacity.
Background technology
RFC2544 agreements are the international standards for being used to evaluate and test network interconnection device that RFC tissues propose, wherein, the network
InterWorking Equipment can be fire wall, intruding detection system (Intrusion Detection Systems, referred to as IDS), exchange
Machine etc..RFC2544 standards define the performance parameters such as handling capacity, packet loss, time delay, wherein, handling capacity is generally used for Test Network
The ability that network E-Packets.
In the related art, transmitting terminal generally use field programmable gate array (Field-Programmable Gate
Array, referred to as FPGA) hair test packet, the handling capacity of the method acquisition equipment of reflection end FPGA reflection measurement messages, still
Because FPGA packet sending speeds and bandwidth limit so that RFC2544 throughput performance parameter can not meet the speed of relative interface
It is required that and the handling capacity result that tests out it is not accurate enough, the maximum transmission bandwidth of link can not be accurately reflected.
In view of the above-mentioned problems, effective solution is not yet proposed in correlation technique.
The content of the invention
The embodiments of the invention provide a kind of acquisition methods of handling capacity and device, so that at least solve can not in correlation technique
The problem of meeting the rate requirement of relative interface and the maximum transmission bandwidth of link can not be accurately reflected.
According to one embodiment of present invention, there is provided a kind of acquisition methods of handling capacity, including:First device replication is treated
The first message sent, obtains message set, wherein, the message set includes multiple first messages;Described first sets
It is standby to send the message set to the second equipment;First equipment receives second equipment and fed back according to first message
Response message;First equipment determines the first device client side according to first message and the response message
Handling capacity.
Alternatively, first equipment determines first device client according to first message and the response message
The handling capacity of side, including:First equipment determines first equipment according to the response message and first message
Send and receive packets count information;First equipment determines handling up for the first device client side according to the send and receive packets count information
Amount.
Alternatively, first equipment determines handling up for the first device client side according to the send and receive packets count information
Amount, including:First equipment judges whether first equipment loses during transmitting-receiving according to the send and receive packets count information
Bag;First equipment determines the handling capacity of the first device client side according to the judged result.
Alternatively, first equipment determines handling up for the first device client side according to the send and receive packets count information
Before amount, methods described also includes:First equipment determines that the response message reaches preset time, wherein, it is described default
Time timing since at the time of first equipment stops sending the message set.
Alternatively, the first device replication the first message to be sent, including:First equipment is according to predetermined report
Literary number of copies replicates to first message.
Alternatively, the response message is the message content of the second message that is locally stored of second equipment and described the
The message sent during the message content matching of one message.
Alternatively, the content of first message, the content of second message and the message content of the response message
Including at least one information:The first information when second equipment is in L2 reflective-modes, the first information bag
Include:Purpose media access control (Destination Media Access Control, referred to as DMAC), source media interviews control
Make (Source Media Access Control, referred to as SMAC), source port (Source Port, referred to as Sport) and
Destination interface (Destination Port, referred to as Dport);Or second when second equipment is in L3 reflective-modes
Information, second information include:Purpose Internet protocol (Destination Internet Protocol, referred to as
DIP), source internet protocol (Source Internet Protocol, referred to as SIP), Sport and Dport.
According to another embodiment of the invention, there is provided a kind of acquisition methods of handling capacity, including:Second equipment receives
The message set that first equipment is sent, wherein, the message collection is combined into first device replication the first message to be sent and obtained
The set arrived, the message set include multiple first messages;Second equipment is sent according to the message set
The response message of feedback, wherein, the response message is used for the handling capacity for determining the first device client side.
Alternatively, the first device replication the first message to be sent, including:First equipment is according to predetermined report
Literary number of copies replicates to first message.
Alternatively, the response message is the message content of the second message that is locally stored of second equipment and described the
The message sent during the message content matching of one message.
Alternatively, the content of first message, the content of second message and the message content of the response message
Including at least one information:The first information when second equipment is in L2 reflective-modes, the first information bag
Include:DMAC, SMAC, Sport and Dport;Or the second information when second equipment is in L3 reflective-modes, described second
Information includes:DIP, SIP, Sport and Dport.
According to another embodiment of the invention, there is provided a kind of acquisition device of handling capacity, applied to the first equipment, bag
Include:Replication module, for replicating the first message to be sent, message set is obtained, wherein, the message set includes multiple institutes
State the first message;Sending module, for sending the message set to the second equipment;Receiving module, for receiving described second
The response message that equipment is fed back according to first message;Determining module, for according to first message and the response report
Text determines the handling capacity of the first device client side.
Alternatively, the determining module is additionally operable to determine that described first sets according to the response message and first message
Standby send and receive packets count information, and determine according to the send and receive packets count information handling capacity of the first device client side.
Alternatively, the determining module is additionally operable to judge that first equipment is being received and dispatched according to the send and receive packets count information
During whether packet loss, and determine according to the judged result handling capacity of the first device client side.
Alternatively, the replication module is additionally operable to carry out first message according to predetermined message number of copies
Replicate.
Alternatively, the response message is the message content of the second message that is locally stored of second equipment and described the
The message sent during the message content matching of one message.
Alternatively, the content of first message, the content of second message and the message content of the response message
Including at least one information:The first information when second equipment is in L2 reflective-modes, the first information bag
Include:DMAC, SMAC, Sport and Dport;Or the second information when second equipment is in L3 reflective-modes, described second
Information includes:DIP, SIP, Sport and Dport.
The present invention provides the acquisition device of another handling capacity, applied to the second equipment, including:Receiving module, for connecing
The message set of the first equipment transmission is received, wherein, the message collection is combined into first device replication the first message to be sent
Obtained set, the message set include multiple first messages;Sending module, for sending according to the message collection
The response message of feedback is closed, wherein, the response message is used for the handling capacity for determining the first device client side.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:First device replication the first message to be sent, obtains message set, wherein, the report
Collected works, which close, includes multiple first messages;First equipment sends the message set to the second equipment;Described first
Equipment receives the response message that second equipment is fed back according to first message;First equipment is according to the described first report
Literary and described response message determines the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment according to
The send and receive packets count information of first equipment is determined according to the response message and first message;The first equipment foundation
The send and receive packets count information determines the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The first equipment root
According to the send and receive packets count information judge first equipment during transmitting-receiving whether packet loss;First equipment is according to
Judged result determines the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment is true
The fixed response message reaches preset time, wherein, the preset time stops sending the message collection from first equipment
Start timing at the time of conjunction.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment according to
First message is replicated according to predetermined message number of copies.
According to another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:Second equipment receives the message set that the first equipment is sent, wherein, the message set
The set obtained for first device replication the first message to be sent, the message set include multiple first reports
Text;Second equipment sends the response message according to the message collective feedback, wherein, the response message is used to determine institute
State the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment according to
First message is replicated according to predetermined message number of copies.
By the present invention, merge because the first device replication the first message to be sent obtains message collection by the message set
The second equipment is sent to, so as to improve the service traffics of FPGA transmissions, is realized according to the first message and the second equipment received
The response message of feedback determines the handling capacity of the first device client side, can solve due to FPGA packet sending speeds and bandwidth limitation,
So that the throughput performance parameter in RFC2544 standard agreements can not meet the rate requirement of relative interface, and what is tested out gulps down
The amount of telling result is not accurate enough, can not accurately reflect the maximum transmission bandwidth problem of link, reaches so that in RFC2544 standard agreements
Throughput performance parameter to meet that the rate requirement of relative interface and accurately reflecting is devices under handling maximum
The effect of data traffic.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the network architecture diagram of the embodiment of the present invention;
Fig. 2 is the flow chart (one) of the acquisition methods of handling capacity according to embodiments of the present invention;
Fig. 3 is the flow chart (two) of the acquisition methods of handling capacity according to embodiments of the present invention;
Fig. 4 is the structured flowchart (one) of the acquisition device of handling capacity according to embodiments of the present invention;
Fig. 5 is the structured flowchart of the first equipment according to embodiments of the present invention;
Fig. 6 is the flow chart according to the acquisition methods of the handling capacity of alternative embodiment of the present invention;
Fig. 7 is the structured flowchart (two) of the acquisition device of handling capacity according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
Fig. 1 is the network architecture diagram of the embodiment of the present invention, as shown in figure 1, the network architecture includes:First equipment 12 and
Two equipment 14, wherein, the message set that the first message obtains after duplication is sent to the second equipment 14 by the first equipment 12;The
Two equipment 14 send the response message of the first message feedback to the first equipment 12, wherein, the configuration parameter information of the first equipment 12
Including DMAC, SMAC, time of giving out a contract for a project, test rate etc.;The configuration parameter information of second equipment 14 includes DMAC, SMAC, reflection
Pattern etc..
Alternatively, above-mentioned first equipment 12 can be the transmitting terminal of support RFC2544 standard agreements, above-mentioned second equipment 14
Can be the reflection end for supporting RFC2544 standard agreements, but be not restricted to that this.
A kind of acquisition methods for the handling capacity for running on the above-mentioned network architecture are provided in the present embodiment, and Fig. 2 is basis
The flow chart (one) of the acquisition methods of the handling capacity of the embodiment of the present invention, as shown in Fig. 2 the flow comprises the following steps:
Step S202, the first device replication the first message to be sent, obtains message set, wherein, in the message set
Including multiple first messages;
Step S204, the first equipment send message set to the second equipment;
Step S206, the first equipment receive response message of second equipment according to the first message feedback;
Step S208, the first equipment determine the handling capacity of the first device client side according to the first message and response message.
In above-mentioned steps, message set and the response message of the second equipment transmission that the first equipment is sent are to pass through exchange
What net interacted, but be not restricted to that this.Alternatively, before step S208, the first equipment can be for the sound that receives
Message is answered to be judged, when it is determined that the response message and the message being locally stored obtained according to the extracting rule of the first equipment
Timing (for example, the specific field of response message and the message being locally stored matches), performs step S208.In step S202
In, the first device replication the first message to be sent can be accomplished by the following way:First equipment is according to predetermined report
Literary number of copies replicates to the first message.In the present embodiment, the first equipment can be grown according to the bag of configuration, the letter such as speed
Breath calculates the message number of copies, and alternatively, the first equipment can amplify according to message number of copies and FPGA transmitted traffic
The service traffics of transmission.By using the mode replicated for the first message, the transmitted traffic of the first equipment is exaggerated, is entered
And the throughput performance parameter in RFC2544 standard agreements can be caused to meet the rate requirement of relative interface.
Optionally it is determined that the above-mentioned transmitting-receiving process (i.e. step S202 to step S208) of the handling capacity of the first device client side
Progress can be circulated.
By above-mentioned steps, merge because the first device replication the first message to be sent obtains message collection by the message collection
Conjunction is sent to the second equipment, improves the service traffics of FPGA transmissions, realizes anti-according to the first message and the second equipment received
The response message of feedback determines the handling capacity of the first device client side, can solve, due to FPGA packet sending speeds and bandwidth limitation, to make
The rate requirement of relative interface can not be met by obtaining the throughput performance parameter in RFC2544 standard agreements, and what is tested out handles up
It is not accurate enough to measure result, the maximum transmission bandwidth problem of link can not be accurately reflected, reaches and causes in RFC2544 standard agreements
Throughput performance parameter meets the rate requirement of relative interface and accurately reflects the maximum number for being devices under handling
According to the effect of flow.
In an optional embodiment, above-mentioned steps S208 can be accomplished by the following way:First equipment is according to sound
Message and the first message is answered to determine the send and receive packets count information of the first equipment;First equipment determines the according to send and receive packets count information
The handling capacity of one device client side.In the present embodiment, after the first equipment receives response message, according to the first message and its again
The relation of the message content of message set and response message after system updates the send and receive packets count information of the first equipment, the first equipment
The first equipment visitor of condition is met by predetermined algorithm (such as dichotomy cycle calculations) according to the send and receive packets count information
The handling capacity of family side.The handling capacity obtained by the above method can accurately reflect be devices under handling it is maximum
Data traffic.
In an optional embodiment, realize that the first equipment determines the according to send and receive packets count information in the following way
The step of handling capacity of one device client side:First equipment judges the first equipment during transmitting-receiving according to send and receive packets count information
Whether packet loss;First equipment determines the handling capacity of the first device client side according to the judged result.In the present embodiment, can be with
Configured threshold value, packet loss is calculated according to the send and receive packets count information and carries out the packet loss and above-mentioned configured threshold value
Compare, when the packet loss is more than above-mentioned threshold value, be designated as packet loss, conversely, when the packet loss is less than above-mentioned threshold value, be designated as
Not packet loss, the handling capacity according to the result of the above-mentioned packet loss being calculated by the first device client of dichotomy cycle calculations side,
The handling capacity mode of above-mentioned the first device client of determination side is only a kind of optional embodiment, however it is not limited to this, wherein, lead to
Cross the specific implementation of dichotomy cycle calculations handling capacity and can inquire about in the related art and learn, here is omitted.
In an optional embodiment, the first equipment determines gulping down for the first device client side according to send and receive packets count information
Before the amount of telling, the above method can also carry out following steps:First equipment determines that response message reaches preset time, wherein, in advance
If time timing since at the time of the first equipment stops sending message set.The first equipment can ensured just through the above way
After often receiving response message, that is, after updating send and receive packets count information, calculate first according to the send and receive packets count information after renewal and set
The handling capacity of standby customer side, is avoided under network congestion, root when the first equipment is also without renewal send and receive packets count information
The situation of data exception is then caused according to the handling capacity for the first device client side of send and receive packets count information calculating not updated.
In an optional embodiment, above-mentioned response message is in the message for the second message that the second equipment is locally stored
Hold the message sent when being matched with the message content of the first message.In the present embodiment, message set is received in the second equipment
The message set can be matched with the second message of local afterwards, wherein, second message is the according to user configuration
The message (for example, message set is matched with the specific field in the second message) that two equipment extracting rules obtain, if matching
Success and meet in the discarding rule of second equipment and do not abandon condition, then get response packet by certain processing (or
Referred to as test packet), if it fails to match, illustrate that the message collection is combined into non-test message, then by the non-test message directly from
Second device client side is sent, wherein, said extracted rule and abandon that rule is carried on user configuration and be issued to second and set
In standby field, wherein, the field can be the field being issued in the message of the second equipment.
In an optional embodiment, the content of above-mentioned first message, the content of above-mentioned second message and above-mentioned response
The message content of message includes at least one information:The first information when the second equipment is in L2 reflective-modes, first
Information includes:DMAC, SMAC, Sport and Dport;Or the second information when the second equipment is in L3 reflective-modes, the second letter
Breath includes:DIP, SIP, Sport and Dport.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
A kind of acquisition methods for the handling capacity for running on the above-mentioned network architecture are provided in the present embodiment, and Fig. 3 is basis
The flow chart (two) of the acquisition methods of the handling capacity of the embodiment of the present invention, as shown in figure 3, the flow comprises the following steps:
Step S302, the second equipment receive the message set that the first equipment is sent, wherein, message collection is combined into the first equipment and answered
The set that the first message to be sent obtains is made, above-mentioned message set includes multiple first messages;
Step S304, the second equipment send the response message according to message collective feedback, wherein, the response message is used for true
The handling capacity of fixed first device client side.
By above-mentioned steps, through the message for duplication the first message to be sent and obtaining because the second equipment receives the first equipment
Set, and sending according to the response message of the message collective feedback, so as to improve the service traffics of FPGA transmissions, realize for
The calculating of the handling capacity of first device client side, can solve due to FPGA packet sending speeds and bandwidth limitation so that RFC2544 is marked
Throughput performance parameter in quasi- agreement can not meet the rate requirement of relative interface, and the handling capacity result tested out is not smart enough
Really, the maximum transmission bandwidth problem of link can not be accurately reflected, reaches the throughput performance ginseng caused in RFC2544 standard agreements
Number meets the rate requirement of relative interface and accurately reflects the effect for the maximum data traffic for being devices under handling.
In an optional embodiment, the message set in above-mentioned steps S302 obtains in the following manner:First sets
It is standby that the first message is replicated according to predetermined message number of copies.
In an optional embodiment, response message be the message content of the second message that is locally stored of the second equipment with
The message sent during the message content matching of the first message.
In an optional embodiment, the content of above-mentioned first message, the content of above-mentioned second message and above-mentioned response
The message content of message includes at least one information:The first information when the second equipment is in L2 reflective-modes, first
Information includes:DMAC, SMAC, Sport and Dport;Or the second information when the second equipment is in L3 reflective-modes, the second letter
Breath includes:DIP, SIP, Sport and Dport.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 3
Additionally provide a kind of acquisition device of handling capacity in the present embodiment, the device is used to realizing above-described embodiment and excellent
Embodiment is selected, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined function
Software and/or hardware combination.Although device described by following examples is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 4 is the structured flowchart (one) of the acquisition device of handling capacity according to embodiments of the present invention, as shown in figure 4, the dress
Put including:Replication module 42, for replicating the first message to be sent, message set is obtained, wherein, the message set includes
Multiple first messages;Sending module 44, for sending message set to the second equipment;Receiving module 46, set for receiving second
The standby response message according to the first message feedback;Determining module 48, for determining that first sets according to the first message and response message
The handling capacity of standby customer side.
In an optional embodiment, above-mentioned determining module 48 is additionally operable to determine the according to response message and the first message
The send and receive packets count information of one equipment, and determine according to send and receive packets count information the handling capacity of the first device client side.
In an optional embodiment, above-mentioned determining module 48 is additionally operable to judge that first sets according to send and receive packets count information
It is standby during transmitting-receiving whether packet loss, and determine according to judged result the handling capacity of the first device client side.
In an optional embodiment, above-mentioned replication module 42 is additionally operable to according to predetermined message number of copies pair
First message is replicated.
In an optional embodiment, above-mentioned response message is in the message for the second message that the second equipment is locally stored
Hold the message sent when being matched with the message content of the first message.
In an optional embodiment, the content of above-mentioned first message, the content of above-mentioned second message and above-mentioned response
The message content of message includes at least one information:The first information when the second equipment is in L2 reflective-modes, first
Information includes:DMAC, SMAC, Sport and Dport;Or the second information when the second equipment is in L3 reflective-modes, the second letter
Breath includes:DIP, SIP, Sport and Dport.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 4
Additionally provide a kind of structured flowchart of first equipment in the present embodiment, the equipment be used to realizing above-described embodiment and
Preferred embodiment, repeating no more for explanation was carried out.As used below, term " module " can realize predetermined work(
The combination of the software and/or hardware of energy.Although device described by following examples is preferably realized with software, firmly
Part, or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 5 is the structured flowchart of the first equipment according to embodiments of the present invention, as shown in figure 5, the first equipment includes:Business
Configuration module 52, resource pool module 54, module of giving out a contract for a project 56, message extraction module 58, packet loss module 510, Message processing mould
Block 512, data memory module 514 and service computation module 516, above-mentioned module in addition to resource pool module is located at master control veneer, its
It is respectively positioned on line card veneer, is specially:
Business configuration module 52, for calculating message number of copies and hair according to parameters such as the bag of user configuration length and speed
Inter-packet gap, to the configuration message content of module 56 of giving out a contract for a project;Reflective-mode, the extracting rule information configuration such as IP information or MAC information
To message extraction module 58;Priority and the information configurations such as field whether are abandoned to packet loss module 510;
Resource pool module 54, the resource proposed for receiving business configuration module 52 according to the RFC2544 example IDs of configuration
Apply for and the distribution such as ID scopes included according to key message during application to receive and dispatch id information accordingly;
Module of giving out a contract for a project 56, for detecting the enabled of the first equipment, the information such as message content, hair test packet is to Message processing
Module 512;
Message extraction module 58, for providing reflective-mode, the information such as reflective sigh and crucial matching gives Message processing mould
Block 512;
Packet loss module 510, for providing the information such as priority to message processing module (MPM) 512;
Message processing module (MPM) 512, for sending ID and message number of copies from the extraction of module 56 of giving out a contract for a project, mould is extracted from message
Block 58, which obtains, receives ID and matched rule information, and obtains whether abandon field and priority etc. from packet loss module 510
Information;
Data memory module 514, for caching the send and receive packets count information of message processing module (MPM) 512;
Service computation module 516, for reading send and receive packets count information according to certain rule to data memory module 514,
Then handling capacity reported result is calculated further according to dichotomy.
A kind of acquisition side of the handling capacity of the first device client side based on structure shown in Fig. 5 is provided in the present embodiment
Method, Fig. 6 are according to the flow chart of the acquisition methods of the handling capacity of alternative embodiment of the present invention, as shown in fig. 6, the flow is included such as
Lower step:
Step S602, the test information of user configuration is received, wherein, above-mentioned configuration information includes packet sending speed, when giving out a contract for a project
Between, the information such as bag is long;
Step S604, business configuration module 52 apply for that transmitting-receiving ID believes according to the example ID of user configuration to resource pool module 54
Breath, can be according to the scope of application after resource pool module 52 receives this application information, id information corresponding to distribution;
Step S606, business configuration module 52 are grown according to the bag of configuration, the information such as speed, calculate message number of copies and hair
Inter-packet gap, assemble the message configuration information of handling capacity and be sent to module 56 of giving out a contract for a project;According to configuration information, structure message extraction mould
The information of block 58 and packet loss module 510, the information is configured to message processing module (MPM) 512;
Step S608, after module of giving out a contract for a project 56 receives message configuration information, according to message content and significant field information to report
Literary configuration information is verified, and is verified successfully, in the customer side of the first equipment, FPGA can send test report by a kind of passage
Text;
Step S610, message processing module (MPM) 512 parse the test packet that module 56 passes over of giving out a contract for a project, and obtain message and replicate
Number and transmission id information;
Step S612, message processing module (MPM) 512 are sent according to message number of copies and FPGA transmitted traffics, amplification FPGA
Service traffics, message set is obtained, then by switching network, launch the message set to the second equipment;
Step S614, message processing module (MPM) 512 receives the message set and the second equipment is sent to the sound of the first equipment
After answering message, extract send and receive packets count information and keep in send and receive packets count information in data memory module 514;
Step S616, service computation module 516 can read corresponding send and receive packets from data memory module 514 and count letter
Breath, then calculates packet loss, and according to packet loss and the threshold value relation of configuration, dichotomy cycle calculations meet handling up for condition
Amount.
Alternatively, in step S602, user adds handling capacity configuration information and deletes the configuration of handling capacity configuration information
Order is different.Main purpose is to ensure that transceiving data is consistent.If addition operation, business configuration module 52 first configure report
Literary processing module 512 needs the relevant information of the message extraction module 58 and packet loss module 510 obtained;If delete behaviour
Make, business configuration module 52 can first discharge resource pool information, then notify the deletion message content of module 56 of giving out a contract for a project, finally notice report
Literary extraction module 58 and packet loss module 510 carry out deletion action.
In step S608, message content can include FPGA heads, encapsulation header, forward head, the first-class information of PDU, according to report
Literary content and significant field information verifies to message configuration information, mainly the information such as checking prediction message type;
In step S610, the first equipment and the second equipment can analytic message discard module 58 and message extraction modules
510 and priority can be obtained from packet loss module 58 and whether abandon the information such as field, the first equipment is from message extraction mould
Block 510, which obtains, receives the information such as ID;
Above-mentioned steps are solved due to FPGA packet sending speeds and bandwidth limitation so that handling up in RFC2544 standard agreements
Amount performance parameter can not meet the rate requirement of relative interface, and the handling capacity result tested out is not accurate enough, can not be accurately anti-
The problem of reflecting the maximum transmission bandwidth of link, reach and the throughput performance parameter in RFC2544 standard agreements is met relatively
The rate requirement of interface and the effect for accurately reflecting the maximum data traffic for being devices under handling.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 5
Additionally provide a kind of acquisition device of handling capacity in the present embodiment, the device is used to realizing above-described embodiment and excellent
Embodiment is selected, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined function
Software and/or hardware combination.Although device described by following examples is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 7 is the structured flowchart (two) of the acquisition device of handling capacity according to embodiments of the present invention, as shown in fig. 7, the dress
Put including:Receiving module 72, the message set sent for receiving the first equipment, wherein, message collection is combined into the first device replication
The set that first message to be sent obtains, message set include multiple first messages;Sending module 74, for sending foundation
The response message of message collective feedback, wherein, response message is used for the handling capacity for determining the first device client side.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 6
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:S1, the first device replication the first message to be sent, is obtained
Message set, wherein, the message set includes multiple first messages;S2, the first equipment send message set to the second equipment;
S3, the first equipment receive response message of second equipment according to the first message feedback;S4, the first equipment is according to the first message and sound
Message is answered to determine the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, the first equipment according to
The send and receive packets count information of the first equipment is determined according to response message and the first message;S2, the first equipment count letter according to send and receive packets
Breath determines the handling capacity of the first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, the first equipment root
According to send and receive packets count information judge the first equipment during transmitting-receiving whether packet loss;S2, the first equipment determine according to judged result
The handling capacity of first device client side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment determines
Response message reaches preset time, wherein, preset time timing since at the time of the first equipment stops sending message set.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment foundation
Predetermined message number of copies replicates to the first message.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:S1, the second equipment receive the message collection that the first equipment is sent
Close, wherein, message collection is combined into the set that the first device replication the first message to be sent obtains, and message set includes multiple the
One message;S2, the second equipment send the response message according to message collective feedback, wherein, response message is used to determine that first sets
The handling capacity of standby customer side.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First equipment foundation
Predetermined message number of copies replicates to the first message.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
Disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (18)
- A kind of 1. acquisition methods of handling capacity, it is characterised in that including:First device replication the first message to be sent, obtains message set, wherein, the message set includes multiple described One message;First equipment sends the message set to the second equipment;First equipment receives the response message that second equipment is fed back according to first message;First equipment determines the handling capacity of the first device client side according to first message and the response message.
- 2. according to the method for claim 1, it is characterised in that first equipment is according to first message and the sound Message is answered to determine the handling capacity of the first device client side, including:First equipment determines that the send and receive packets of first equipment count letter according to the response message and first message Breath;First equipment determines the handling capacity of the first device client side according to the send and receive packets count information.
- 3. according to the method for claim 2, it is characterised in that first equipment is true according to the send and receive packets count information The handling capacity of the fixed first device client side, including:First equipment according to the send and receive packets count information judge first equipment during transmitting-receiving whether packet loss;First equipment determines the handling capacity of the first device client side according to the judged result.
- 4. according to the method for claim 2, it is characterised in that first equipment is true according to the send and receive packets count information Before the handling capacity of the fixed first device client side, methods described also includes:First equipment determines the response message Preset time is reached, wherein, the preset time is counted since at the time of first equipment stops sending the message set When.
- 5. according to the method for claim 1, it is characterised in that the first device replication the first message to be sent, including:Institute The first equipment is stated to replicate first message according to predetermined message number of copies.
- 6. method according to claim 1 or 2, it is characterised in that the response message is that second equipment is locally deposited The message that the message content of second message of storage is sent when being matched with the message content of first message.
- 7. according to the method for claim 6, it is characterised in that the content of first message, second message it is interior Hold and the message content of the response message includes at least one of information:The first information when second equipment is in L2 reflective-modes, the first information include:Purpose media interviews control DMAC, source media access control SMAC, source port Sport and destination interface Dport processed;The second information when second equipment is in L3 reflective-modes, second information include:Purpose Internet protocol DIP, source internet protocol SIP, source port Sport and destination interface Dport.
- A kind of 8. acquisition methods of handling capacity, it is characterised in that including:Second equipment receives the message set that the first equipment is sent, wherein, the message collection is combined into first device replication and treated The set that the first message sent obtains, the message set include multiple first messages;Second equipment sends the response message according to the message collective feedback, wherein, the response message is used to determine The handling capacity of the first device client side.
- 9. according to the method for claim 8, it is characterised in that the first device replication the first message to be sent, including:Institute The first equipment is stated to replicate first message according to predetermined message number of copies.
- 10. according to the method for claim 8, it is characterised in that the response message is that second equipment is locally stored The message that sends when being matched with the message content of first message of the message content of the second message.
- 11. according to the method for claim 10, it is characterised in that the content of first message, second message The message content of content and the response message includes at least one information:The first information when second equipment is in L2 reflective-modes, the first information include:Purpose media interviews control DMAC, source media access control SMAC, source port Sport and destination interface Dport processed;OrThe second information when second equipment is in L3 reflective-modes, second information include:Purpose Internet protocol DIP and source internet protocol SIP, source port Sport and destination interface Dport.
- A kind of 12. acquisition device of handling capacity, it is characterised in that applied to the first equipment, including:Replication module, for replicating the first message to be sent, message set is obtained, wherein, the message set includes multiple First message;Sending module, for sending the message set to the second equipment;Receiving module, the response message fed back for receiving second equipment according to first message;Determining module, for determining handling up for the first device client side according to first message and the response message Amount.
- 13. device according to claim 12, it is characterised in that the determining module is additionally operable to according to the response message The send and receive packets count information of first equipment is determined with first message, and is determined according to the send and receive packets count information The handling capacity of the first device client side.
- 14. device according to claim 13, it is characterised in that the determining module is additionally operable to according to the send and receive packets meter Number information judge first equipment during transmitting-receiving whether packet loss, and determine that described first sets according to the judged result The handling capacity of standby customer side.
- 15. device according to claim 12, it is characterised in that the replication module is additionally operable to according to predetermined report Literary number of copies replicates to first message.
- 16. the device according to claim 12 or 13, it is characterised in that the response message is that second equipment is local The message that the message content of second message of storage is sent when being matched with the message content of first message.
- 17. device according to claim 16, it is characterised in that the content of first message, second message The message content of content and the response message includes at least one information:The first information when second equipment is in L2 reflective-modes, the first information include:Purpose media interviews control DMAC, source media access control SMAC, source port Sport and destination interface Dport processed;The second information when second equipment is in L3 reflective-modes, second information include:Purpose Internet protocol DIP, source internet protocol SIP, source port Sport and destination interface Dport.
- A kind of 18. acquisition device of handling capacity, it is characterised in that applied to the second equipment, including:Receiving module, the message set sent for receiving the first equipment, wherein, the message collection is combined into first equipment and answered The set that the first message to be sent obtains is made, the message set includes multiple first messages;Sending module, for sending the response message according to the message collective feedback, wherein, the response message is used to determine The handling capacity of the first device client side.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610823179.XA CN107819637A (en) | 2016-09-13 | 2016-09-13 | The acquisition methods and device of handling capacity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610823179.XA CN107819637A (en) | 2016-09-13 | 2016-09-13 | The acquisition methods and device of handling capacity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107819637A true CN107819637A (en) | 2018-03-20 |
Family
ID=61601465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610823179.XA Pending CN107819637A (en) | 2016-09-13 | 2016-09-13 | The acquisition methods and device of handling capacity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107819637A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115883423A (en) * | 2023-01-18 | 2023-03-31 | 禾多科技(北京)有限公司 | Communication load monitoring method, electronic device, and computer-readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103236956A (en) * | 2013-04-18 | 2013-08-07 | 神州数码网络(北京)有限公司 | Method and switch for testing throughput of communication equipment |
WO2014085970A1 (en) * | 2012-12-04 | 2014-06-12 | 华为技术有限公司 | Method and apparatus for testing throughput, receiving end device and sending end device |
-
2016
- 2016-09-13 CN CN201610823179.XA patent/CN107819637A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014085970A1 (en) * | 2012-12-04 | 2014-06-12 | 华为技术有限公司 | Method and apparatus for testing throughput, receiving end device and sending end device |
CN103236956A (en) * | 2013-04-18 | 2013-08-07 | 神州数码网络(北京)有限公司 | Method and switch for testing throughput of communication equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115883423A (en) * | 2023-01-18 | 2023-03-31 | 禾多科技(北京)有限公司 | Communication load monitoring method, electronic device, and computer-readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10637771B2 (en) | System and method for real-time load balancing of network packets | |
CN100544473C (en) | Be used for determining the method for running wireless network mobile terminal performance | |
CN1937541B (en) | Network performance test method | |
CN107465565B (en) | Link test method and apparatus and system | |
EP1861963B1 (en) | System and methods for identifying network path performance | |
US8797901B2 (en) | Method and its devices of network TCP traffic online identification using features in the head of the data flow | |
EP4362403A2 (en) | A method for deep packet inspection in software defined networks | |
US20020055999A1 (en) | System and method for measuring quality of service | |
US20030225549A1 (en) | Systems and methods for end-to-end quality of service measurements in a distributed network environment | |
US8102879B2 (en) | Application layer metrics monitoring | |
US20130294449A1 (en) | Efficient application recognition in network traffic | |
EP3293919B1 (en) | Data stream monitoring | |
CN107360247B (en) | The method and the network equipment of processing business | |
US20220247650A1 (en) | Network device measurements employing white boxes | |
EP3618356B1 (en) | Packet loss detection apparatuses, and system | |
CN107786676A (en) | Relay communication method, system and the terminal for trunking traffic | |
WO2020135429A1 (en) | Traffic analysis method and apparatus, and traffic detection method and apparatus | |
CN206313803U (en) | A kind of router for realizing network game acceleration | |
US20040148417A1 (en) | Method and system for distinguishing higher layer protocols of the internet traffic | |
CN109412976B (en) | Data transmission method, device, system, server, electronic device and medium | |
CN107819637A (en) | The acquisition methods and device of handling capacity | |
CN108494625A (en) | A kind of analysis system on network performance evaluation | |
CN114024854A (en) | System, node, method and medium for sharing slice mean subjective opinion score data | |
CN106161124B (en) | Message test processing method and device | |
CN104253712B (en) | A kind of method that P2P Network Recognitions are carried out using deep packet inspection technical |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180420 Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No. Applicant after: ZTE Corp. Address before: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68 Applicant before: Nanjing Zhongxing New Software Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
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: 20180320 |
|
RJ01 | Rejection of invention patent application after publication |