CN106603333A - Network performance measuring method, apparatus and system - Google Patents

Network performance measuring method, apparatus and system Download PDF

Info

Publication number
CN106603333A
CN106603333A CN201611153680.6A CN201611153680A CN106603333A CN 106603333 A CN106603333 A CN 106603333A CN 201611153680 A CN201611153680 A CN 201611153680A CN 106603333 A CN106603333 A CN 106603333A
Authority
CN
China
Prior art keywords
equipment
message
udp port
test
port number
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
Application number
CN201611153680.6A
Other languages
Chinese (zh)
Other versions
CN106603333B (en
Inventor
周佳雯
龚红艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201611153680.6A priority Critical patent/CN106603333B/en
Publication of CN106603333A publication Critical patent/CN106603333A/en
Application granted granted Critical
Publication of CN106603333B publication Critical patent/CN106603333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter

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 discloses a network performance measuring method, apparatus and system. The method is used for measuring the network performance parameters of the communication link between a first device and a second device. The first device is configured to be a control client and a session initiating side to implement the TWAMP, and the second device is configured to a server and a session response side to implement the TWAMP. The network performance measuring method is applied to the first device and includes creating the TWAMP type SLA work after a work creation command is received; starting to schedule the TWAMP type SLA work after the starting work scheduling command is received; by scheduling the TWAMP type SLA work to realize the following operation: negotiating with the second device the UDP port number used in the interactive testing of messages; interactively testing the messages with the UDP port determined by the negotiation and the second device; and measuring the network performance parameters according to the interactive testing messages.

Description

A kind of network for formance measuring method, apparatus and system
Technical field
The present invention relates to communication technical field, more particularly to a kind of network for formance measuring method, apparatus and system.
Background technology
As people are to the further accurate of performance index requirements and improve, for network performance analysis start progressively to Higher extends.Two-way active measurement agreement (TWAMP, Two-Way Active Measurement Protocol) is used as survey The standard agreement of amount procotol (IP, Internet Protocol) network performance, meets to UDP (User Datagram Protocol, UDP) layer network performance testing requirement.According to protocol requirement, the agreement is surveyed by performance is set up The transmission of amount session (TWAMP-Control) and test packet and reception (TWAMP-Test) two parts composition.Wherein, The TWAMP-Control stages are substantially carried out establishment of connection, and create, start test session;TWAMP-Test stage heres On the basis of, by transmitting and receiving test packet, carry out network performance result statistics.At present, agreement is mostly followed on market will Ask, a point above-mentioned two stage is realized to the agreement.
However, for TWAMP agreements itself, it is complex in realization.On the one hand, come from the angle of handling process See, before test starts, needs first pass through the interaction of control message and set up session connection, so that it is guaranteed that follow-up test message can be just Often transmitting-receiving.If not simple network is topological, can cause by controlling the message repeatedly interactive session company for consulting to set up non-straight attached device Connecing becomes more difficult, while also more taking.On the other hand, from from the perspective of the logical model being related to, following four are needed Individual logic entity:(1) transmitting node (Session-Sender), as session setup end, is applied to the TWAMP-Test stages, bears The transmission of duty measured message;(2) reflecting node (Session-Reflector), as session end is responded, and is applied to TWAMP- In the Test stages, it is responsible for the measured message to receiving and responds, return measurement message;(3) service end (Server), is applied to In the TWAMP-Control stages, it is responsible for processing one or more TWAMP-Test sessions, in session endpoint the shape of each session is configured State;(4) client (Control-Client) is controlled, is applied to the TWAMP-Control stages, be responsible for initialization TWAMP-Test Conversation request, and open, stop test session.
The content of the invention
The following is the general introduction of the theme to describing in detail herein.This general introduction is not to limit the protection model of claim Enclose.
The embodiment of the present invention provides a kind of network for formance measuring method, apparatus and system, by lightweight TWAMP agreement realities Existing UDP layer network performance measurement so that SLA (Service Level Agreements, service-level agreement) supports UDP layer net Network performance measurement.
The embodiment of the present invention provides a kind of network for formance measuring method, lead between the first equipment and the second equipment for measuring The network performance parameter of letter link, wherein, first device configuration is the control client and session setup for being implemented with TWAMP End, second device configuration is to be implemented with service end and the session response end of TWAMP;
The network for formance measuring method, is applied to first equipment, including:
After establishment job command is received, the SLA operations of TWAMP types are created;
After initiating task traffic order is received, start the SLA operations for dispatching the TWAMP types;
By the SLA operations for dispatching the TWAMP types, following operation is realized:
The UDP port number used in interactive testing message with second equipment negotiation;
Using the udp port and the second equipment interactive testing message consulting to determine;
According to the interactive test packet, the network performance parameter is measured.
Wherein, before the SLA operations of the establishment TWAMP types, the network for formance measuring method can also include:
After receives link test command, the company of first equipment and the second communication between devices link is detected The general character.
Wherein, the UDP port number used in interactive testing message with second equipment negotiation, can wrap Include:
The UDP port number for consulting to be used in interactive testing message by probe messages and second equipment, wherein, The probe messages are that Serial No. is set in advance and this message of unique mark is the fixed value of UDP port number negotiation packet Test packet.
Wherein, the UDP ends for consulting to be used in interactive testing message by probe messages and second equipment Slogan, can include:
Probe messages are sent to second equipment, wherein, the probe messages carry first equipment available one Individual UDP port number;
The detection response message that second equipment is returned for the probe messages is received, wherein, the probe response Message carries a UDP port number;
It is determined that in interactive testing message, the UDP port number that first equipment is carried using the probe messages is described The UDP port number that second equipment is carried using the detection response message;
Or, judge the UDP port number that the UDP port number that the detection response message is carried is carried with the probe messages It is whether consistent;If consistent, it is determined that in interactive testing message, first equipment and second equipment use the spy Observe and predict the UDP port number of text carrying;If inconsistent, first equipment judges the UDP ends that the detection response message is carried Whether slogan can use, if available, it is determined that in interactive testing message, first equipment and second equipment use institute State the UDP port number of detection response message carrying;If first equipment confirms the udp port that the detection response message is carried It is number unavailable, then re-execute to second equipment send probe messages the step of, wherein, the detection report for resending Text carries available another UDP port number of first equipment.
Wherein, it is described with the second equipment interactive testing message, can include:
Periodically repeat the following operation of execution:
Test packet is sent to second equipment;
Receive the test response message that second equipment is returned for the test packet;
Wherein, the test packet that first equipment sends carries very first time stamp and sequence of message No. the first;It is described Very first time stamp mark first equipment sends the moment of the test packet, sequence of message No. the first mark described the The serial number of the test packet that one equipment sends;
The test response message that first equipment is received carries sequence of message No. the second, very first time stamp, the second time Stamp and the 3rd timestamp;Second timestamp identifies the moment that second equipment receives the test packet, described 3rd timestamp identifies the moment that second equipment sends test response message, sequence of message No. the second mark described the The serial number of the test response message that two equipment send.
Wherein, the network performance parameter can include at least one of:It is time delay, jitter value, two-way packet loss, unidirectional Packet loss.
Wherein, it is described according to the interactive test packet, measure the network performance parameter, can include it is following at least One of:
The moment for calculating the first equipment transmission test packet is received for the test packet with first equipment Difference between the moment of the test response message of return, as the first difference;Second equipment is calculated for the test Message returns the difference that the moment of test response message and second equipment were received between the moment of the test packet, as Second difference;According to the difference between first difference and second difference, time delay is determined;
According to the difference of two neighboring time delay, jitter value is determined;
Calculate between the number of the number of the test packet that first equipment sends and the test response message of reception Difference, as the 3rd difference;Between the number of the test packet sent according to the 3rd difference and first equipment hundred Divide ratio, determine two-way packet loss;
Calculate the test response message that the number and the second equipment of the test packet that first equipment sends send Difference between number, as the 4th difference;The number of the test packet sent with first equipment according to the 4th difference Between percentage ratio, it is determined that front to packet loss;
Calculate the test response that the number and first equipment of the test response message that second equipment sends are received Difference between the number of message, as the 5th difference;Rung according to the test that the 5th difference and second equipment send The percentage ratio between the number of message is answered, it is determined that backward packet loss.
Wherein, the network for formance measuring method can also include:After reception stops operation traffic order, stop adjusting Spend the SLA operations of the TWAMP types.
The embodiment of the present invention also provides a kind of network performance measurement device, for measuring between the first equipment and the second equipment The network performance parameter of communication link, wherein, first device configuration is to be implemented with control client and the session of TWAMP Origin or beginning, second device configuration is to be implemented with service end and the session response end of TWAMP;
The network performance measurement device, is applied to first equipment, including:Order receiver module, creation module, tune Degree module, port negotiation module, test packet interactive module and measurement module;
The creation module, after receiving establishment job command in the Order receiver module, creates TWAMP types SLA operations;
The scheduler module, after receiving initiating task traffic order in the Order receiver module, starts scheduling The SLA operations of the TWAMP types;
The port negotiation module, for during the SLA operations that the TWAMP types are dispatched in the scheduler module, with institute State the UDP port number that the second equipment is consulted to be used in interactive testing message;
The test packet interactive module, for using the udp port and the second equipment interactive testing for consulting to determine Message;
The measurement module, for according to the interactive test packet, measuring the network performance parameter.
Wherein, the network performance measurement device can also include:Link test module, for receiving mould in the order After block receives link test command, the connectedness of first equipment and the second communication between devices link is detected.
Wherein, the port negotiation module, can be used for consulting interacting survey by probe messages and second equipment The UDP port number that used during examination message, wherein, the probe messages are that Serial No. is set in advance and unique mark this newspaper Text is the test packet of the fixed value of UDP port number negotiation packet.
Wherein, the port negotiation module, can include:
First transmitting element, for sending probe messages to second equipment, wherein, the probe messages carry described The available UDP port number of first equipment;
First receiving unit, for receiving the detection response message that second equipment is returned for the probe messages, Wherein, the detection response message carries a UDP port number;
Processing unit, for determining in interactive testing message, what first equipment was carried using the probe messages UDP port number, the UDP port number that second equipment is carried using the detection response message;Or, judge that the detection rings Whether the UDP port number for answering message to carry is consistent with the UDP port number that the probe messages are carried;If consistent, it is determined that handing over Mutually during test packet, the UDP port number that first equipment and second equipment are carried using the probe messages;If no Unanimously, then judge whether the UDP port number that the detection response message is carried can use, if available, it is determined that in interactive testing report The UDP port number that Wen Shi, first equipment and second equipment are carried using the detection response message;If confirming institute The UDP port number for stating detection response message carrying is unavailable, it indicates that first transmitting element is again to second equipment Probe messages are sent, wherein, the probe messages for resending carry available another udp port of first equipment Number.
Wherein, the scheduler module, can be also used for the Order receiver module receive stop operation traffic order it Afterwards, the SLA operations of the scheduling TWAMP types are stopped.
The embodiment of the present invention also provides a kind of network performance measurement system, for measuring between the first equipment and the second equipment The network performance parameter of communication link;The network performance measurement system includes:First equipment and the second equipment, wherein, institute It is to be implemented with control client and the session setup end of TWAMP to state the first device configuration, and second device configuration is to be implemented with End is responded in the service end of TWAMP and session;
First equipment, for after establishment job command is received, creating the SLA operations of TWAMP types;Receiving After initiating task traffic order, start the SLA operations for dispatching the TWAMP types;By dispatching the TWAMP types SLA operations, realize following operation:The UDP port number used in interactive testing message with second equipment negotiation;Use Consult the udp port and the second equipment interactive testing message of determination;And according to the interactive test packet, measure institute State network performance parameter.
Wherein, first equipment, can be used for sending probe messages to second equipment, wherein, the detection report Text for Serial No. is set in advance and this message of unique mark for the fixed value of UDP port number negotiation packet test packet, The probe messages carry the available UDP port number of first equipment;
Second equipment can include receiver module and sending module;
The receiver module can be used for receiving the probe messages;
The sending module can be used for after the receiver module receives the probe messages, return probe response report Text, wherein, the detection response message carries the available UDP port number of second equipment;Or, the sending module Can be used for after the receiver module receives the probe messages, confirming the UDP port number that the probe messages are carried When available, the detection response message for carrying the UDP port number is returned, confirming the UDP port number that the probe messages are carried When unavailable, the detection response message for carrying the available UDP port number of second equipment is returned.
Wherein, first equipment can be used for sending test packet to second equipment;The institute of second equipment State receiver module to can be used for receiving the test packet;The sending module, can be used for receiving institute in the receiver module After stating test packet, test response message is returned;
Wherein, the test packet that first equipment sends carries very first time stamp and sequence of message No. the first;It is described The test response message that second equipment sends carries very first time stamp, the second timestamp, the 3rd timestamp and the second message sequence Row number;
Wherein, the very first time stamp mark first equipment sends the moment of the test packet, when described second Between stamp mark second equipment receive moment of the test packet, the 3rd timestamp identifies second equipment and sends The moment of the test response message;The sequence of message No. first identifies the sequence of the test packet that first equipment sends Number;The sequence of message No. second identifies the serial number of the test response message that second equipment sends.
The embodiment of the present invention simplifies the realization of two-way active measurement agreement (TWAMP), using TWAMP as SLA one kind Special operation type, using SLA create operation, open and the scheduling that stops operation by the way of, simplify TWAMP test sessions wound The control message interaction process for build, start, stopping;And, realize to performance parameters such as network delay, shake, packet loss Test;Also so that the measurement range of SLA further expands UDP layer to.
And, in the present embodiment, issued by order and non-protocol requirement connectivity of link testing mechanism simplifies company Connect the process of foundation.
Other features and advantage will be illustrated in the following description, also, the partly change from description Obtain it is clear that or being understood by implementing the application.The purpose of the application and other advantages can be by description, rights Specifically noted structure is realizing and obtain in claim and accompanying drawing.
Description of the drawings
Accompanying drawing is used for providing further understanding technical scheme, and constitutes a part for description, with this The embodiment of application is used to explain the technical scheme of the application together, does not constitute the restriction to technical scheme.
Fig. 1 is the network performance measurement flow chart realized based on TWAMP standard agreements;
Fig. 2 is the connection establishment process schematic of TWAMP standard agreements;
Establishments and startup schematic diagram of the Fig. 3 for the test session of TWAMP standard agreements;
Fig. 4 is the flow chart of network for formance measuring method provided in an embodiment of the present invention;
Fig. 5 is the form schematic diagram of the probe messages of the embodiment of the present invention;
Fig. 6 is the form schematic diagram of the detection response message of the embodiment of the present invention;
Fig. 7 is the form schematic diagram of the test packet for calculating network performance parameter of the embodiment of the present invention;
Fig. 8 is the schematic diagram of network performance measurement device provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram of network performance measurement system provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present application is described in detail below in conjunction with accompanying drawing, it will be appreciated that embodiments described below is only For instruction and explanation of the application, it is not used to limit the application.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing, " Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.
If it should be noted that not conflicting, each feature in the embodiment of the present application and embodiment can be tied mutually Close, within the protection domain of the application.In addition, though logical order is shown in flow charts, but in some situations Under, can be with the step shown or described by performing different from order herein.
A kind of concept of lightweight TWAMP is simply proposed in TWAMP agreements, that is, controls client and session setup end reality Apply in a physical equipment (such as, client), and service end and session respond end and are implemented in performing the another of bidirectional measurement In individual physical equipment (such as, server).
Fig. 1 to Fig. 3 is first combined below, and the network performance measurement flow process to being realized based on TWAMP standard agreements is illustrated.
As shown in figure 1, the network performance measurement flow process realized based on TWAMP standard agreements is comprised the following steps:
Step 101:Service end (Server) passes through some particular protocol reports with control client (Control-Client) Text interaction, sets up connection;
In this step, connection establishment process as shown in Fig. 2 first, create by control client (Control-Client) request Build TCP (Transmission Control Protocol, transmission control protocol) connections;Then, service end (Server) is received To after request, the service of transmission is greeted (Server-Greeting) message and is responded;Control client is received after the message, is returned Vertical response (Set-Up-Response) message is rebuilded, is confirmed;Finally, service end return service starts (Server Start) message, so far, connection establishment is completed.
Step 102:Server and Control-Client is created, is started test by some particular protocol message interactions Session;
The process in this step, creating, starting test session is as shown in Figure 3:
First, test session is created;Wherein, control client transmission queued session (Request-TW-Session) to disappear Test session is set up in breath, request, and service end receives session (Accept-Session) message, the request is rung by reply Should;Mainly by the message interaction of the process, sending and receiving bag UDP (the User Datagram used in test process are completed Protocol, UDP) port numbers negotiation.
Secondly, test session is started;After by setting up the negotiation of test session, control client sends and starts session (Start-Session) message, opens test session, and service end is received after the message, starts to confirm (Start- by replying Ack) message is confirmed.
Step 103:End (Session-Reflector) is responded with session and passed through in session setup end (Session-Sender) Test packet is interacted, and carries out test session.
Wherein, test session startup after, carry out test packet it is interactive when, by session setup end transmission test packet, Session response end receives and replied after test packet.
Step 104:Stop test session.
Wherein, client is controlled, by sending out message test session is stopped.
The application proposes a kind of realization by lightweight TWAMP agreements, for carrying out UDP layer network performance measurement. On the one hand, the realization of lightweight TWAMP agreements is simplified from handling process angle, on the other hand, using TWAMP as SLA one kind Special operation type, SLA is original two, on the basis of three-layer network performance statisticses, in the way of easier easy realization UDP is realized Layer network performance test, so as to realize the measurement to network performance parameter, such as:It is time delay, jitter value, two-way packet loss, unidirectional Packet loss.
Embodiment of the method
The present embodiment provides a kind of network for formance measuring method, in can be applicable to any communication network, is particularly suited for passing System Ethernet, can improve its carrier class operating capability.The network for formance measuring method that the present embodiment is provided can be by communication network In any two communication equipments coordinate and perform, to realize network performance measurement to two communication between devices links.Wherein A communication equipment (hereinafter referred to as the first equipment) can be implemented with TWAMP control client and session setup end (send out Penetrate node) physical unit, another communication equipment (hereinafter referred to as the second equipment) can be implemented with TWAMP service end and The physical unit of end (reflecting node) is responded in session.
As shown in figure 4, the network for formance measuring method that the present embodiment is provided, is applied to the first equipment, comprise the following steps:
Step 401:After establishment job command is received, the SLA operations of TWAMP types are created;
Step 402:After initiating task traffic order is received, start the SLA operations for dispatching TWAMP types;
By the SLA operations for dispatching TWAMP types, following operation is realized:
Step 403:The UDP port number used in interactive testing message with the negotiation of the second equipment;
Step 404:Using the udp port and the second equipment interactive testing message consulting to determine;
Step 405:According to interactive test packet, Measurement Network performance parameter.
In the present embodiment, can be by sending specified first equipment and the second equipment under order.Such as, in network Wantonly two equipment, can be by an equipment transmitting order to lower levels wherein, it is intended that (correspondence is aforementioned used as transmitting node for this equipment The first equipment), for realizing the control client of TWAMP and the function at session setup end;Likewise it is possible to set at another Standby transmitting order to lower levels, it is intended that this equipment as reflecting node (aforesaid second equipment of correspondence), for realizing the service end of TWAMP With the function that end is responded in session.
In some implementations, before step 401, the network for formance measuring method of the present embodiment can also include:
Step 400:After receives link test command, the company of the first equipment and the second communication between devices link is detected The general character.
In step 400, link availability can be guaranteed by the implementation of non-TWAMP protocol requirements.Such as, pass through Simple operationss that such as ping operations had realized and can be used for that connectivity of link checks are performed completing connectivity of link inspection, To exclude link failure, it is ensured that the connectedness of test link.In some implementations, the first equipment is main as test originating end Dynamic to initiate ping operations, in the case of link is available between the first equipment and the second equipment, the second equipment is operated as ping Responder, the ping operations initiated the first equipment are replied, if the first equipment receives the reply of the second equipment, can be confirmed Link connection, can carry out follow-up test between first equipment and the second equipment, otherwise, need further investigation link failure former Cause, until fixing a breakdown.
In step 400, by order issue, non-TWAMP protocol requirements connectivity of link testing mechanism, simplify connection The interaction of message is controlled during foundation, so as to the connection establishment process in simplified TWAMP standard agreements.
In the present embodiment, step 401 to create the process of test session, wherein, using TWAMP as a kind of brand-new SLA Homework type, by the SLA operations for creating TWAMP types, completes the foundation of TWAMP operations.Step 402 is startup test session Process, by open TWAMP type SLA operations scheduling, realize the startup of TWAMP test sessions.Step 403 is to step 405 is the operation of TWAMP test session implementation procedures.The present embodiment utilizes existing SLA realization mechanisms, is created by SLA and is made Industry, open job scheduling order and issue, in the first equipment (test originating end) the corresponding control to TWAMP tests is completed.
Wherein, step 403 can include:
The UDP port number for consulting to be used in interactive testing message by probe messages and the second equipment, wherein, detection Message be that Serial No. is set in advance and this message of unique mark for UDP port number negotiation packet fixed value (such as, 0) Test packet.
In the present embodiment, the test packet that the existing TWAMP-Test stages use is modified, using serial number For 0 test packet, UDP port number negotiation is carried out with the second equipment, wherein, test packet carries available UDP port number;And Do not realize that UDP port number consults (as shown in Figure 3) using the control message in TWAMP-Control stages.Thus, simplifying The control message interaction process of test session is created in TWAMP standard agreements.
Wherein, step 403 can include:
Probe messages are sent to the second equipment, wherein, probe messages carry the available UDP port number of the first equipment;
The detection response message that the second equipment is returned for probe messages is received, wherein, detection response message carries one UDP port number;
It is determined that in interactive testing message, the UDP port number that the first equipment is carried using probe messages, the second equipment is used The UDP port number that detection response message is carried;
Or, judge UDP port number that UDP port number and probe messages that detection response message is carried carry whether Cause;If consistent, it is determined that in interactive testing message, the UDP ends that the first equipment and the second equipment are carried using probe messages Slogan;If inconsistent, the first equipment judges whether the UDP port number that detection response message is carried can use, if available, it is determined that In interactive testing message, the UDP port number that the first equipment and the second equipment are carried using detection response message;If first sets The standby UDP port number for confirming that detection response message is carried is unavailable, then re-execute the step that probe messages are sent to the second equipment Suddenly, wherein, the probe messages that resend carry available another UDP port number of the first equipment.
In the present embodiment, using the mechanism that probe messages are first sent after unlatching SLA tests, when test is opened, carry out TWAMP probe messages are interacted, and are consulted test packet and are sent, receive used UDP port number.
In some implementations, the first equipment and the second equipment can be consulted to use different udp ports.In this realization side In formula, (such as, the first equipment carry itself available UDP port number in probe messages (sequence of message number is 0 test packet) PORT1), the second equipment is received after the probe messages, records the available UDP port number of the first equipment (PORT1).Then, Two equipment carry itself available UDP port number (such as, PORT2) in the detection response message replied, and the first equipment is received To after the detection response message, the available UDP port number (PORT2) of the second equipment of record.So far, UDP port number is consulted successfully, Test packet interaction is carried out subsequently through the PORT1 of the first equipment and the PORT2 of the second equipment.
In some implementations, in order to meet the demand of special scenes, the first equipment and the second equipment is needed to consult to use phase Same udp port.In this implementation, in probe messages, (sequence of message number is 0 to the first equipment (Session-Sender) Test packet) in carry and expect the UDP port number that uses, such as PORT1;Second equipment (Session-Reflector) is received After the probe messages, whether the PORT1 for confirming local terminal can use, if available, directly in the UDP of the detection response message replied Port fields fill PORT1, otherwise search the available another UDP port number of local terminal, such as PORT2 is filled in the detection of reply The UDP Port fields of response message.First equipment is received after the detection response message of reply, parses UDP Port fields, if should The UDP port number that field is carried is identical with PORT1, then explanation PORT1 can use for two ends, consults successfully, subsequently through the The PORT1 of the PORT1 of one equipment and the second equipment carries out test packet interaction;If it is different, then illustrating the PORT1 of the second equipment not Can use, and the second equipment proposes to use another UDP port number (such as, PORT2), then and the first equipment needs to determine whether Whether the PORT2 of local terminal can use, if available, consult successfully, subsequently through the PORT2 and the PORT2 of the second equipment of the first equipment Carry out test packet interaction.Otherwise, the first equipment continue to the second equipment send second probe messages, wherein carry with Another available UDP port number of PORT1 different local terminals, and repeat the above steps, to determine that two ends all can use and identical UDP Port numbers.It should be noted that the first equipment at most sends three probe messages after every time scheduling is opened, if three negotiations are lost Lose, then failure is opened in test, and carries out miscue in the first equipment, is illustrated currently without available udp port.
Wherein, the form of the probe messages that the first equipment (Session-Sender) sends is as shown in figure 5, the second equipment (Session-Reflector) form of the detection response message replied is as shown in Figure 6.Wherein, the first equipment (Session- Sender) transmit Sequence Number (Sequence Number) be fixed as 0 TWAMP test packets as probe messages, and increase Udp port (Port) field, for carrying UDP port number.Second equipment (Session-Reflector) receives TWAMP tests After message, it is 0 to parse Sequence Number fields in TWAMP test packets, represents the TWAMP test packets for detection Message.On the premise of the second equipment (Session-Reflector) remaining handling process keeps constant, the udp port is judged Number whether can use, and according to judged result, fill the UDP Port fields of the detection response message replied.
Wherein, step 404 can include:Operate below periodically repeated execution:
Test packet is sent to the second equipment;
Receive the test response message that the second equipment is returned for test packet;
Wherein, the test packet that the first equipment sends carries very first time stamp and sequence of message No. the first;The very first time Stamp the first equipment of mark sends the moment of test packet, and sequence of message No. the first identifies the sequence of the test packet that the first equipment sends Row number;
Test response message that first equipment is received carry sequence of message No. the second, very first time stamp, the second timestamp with And the 3rd timestamp;Second timestamp identifies the moment that the second equipment receives test packet, and the 3rd timestamp mark second sets Preparation send the moment of test response message, sequence of message No. the second to identify the sequence of the test response message that the second equipment sends Number.
Wherein, the first equipment send test packet form can with as shown in figure 5, the second equipment receive test packet it Afterwards, parsed, and packaging and testing response message.The test response message that second equipment packages are completed and finally sent can be as Shown in Fig. 6.Wherein, the second equipment can be by the test packet overall package for receiving to test response message.As shown in fig. 6, second Equipment can be in test response message " the reflection end reception timestamp " timestamp of field record second, in " the reflection end transmission time Stamp " the timestamp of field record the 3rd, " originating end transmission timestamp " correspondence very first time stamp.First equipment receives test response report Wen Hou, can insert the 4th timestamp, as shown in Figure 7 in " originating end reception timestamp " field.
In other words, in the first equipment and the second equipment interactive testing message, the first equipment can pass through timestamp by local terminal The time information for sending message and receiving message recorded in corresponding message, and the sequence-number field minute book for passing through message The message number that end sends;Second equipment can also pass through timestamp and local terminal is sent into message and the time information record of message is received To in corresponding message, and the message number that local terminal sends is recorded by the sequence-number field of message.And, the first equipment is also The message number for oneself having sent and the message number for receiving can be recorded in local terminal;Second equipment also can record oneself in local terminal The message number for having sent.
Wherein, after the first equipment and the second equipment are by probe messages interaction, it may be determined that when test packet is interacted, the The udp port that the udp port and the second equipment that one equipment is used is used.First equipment is by the udp port of local terminal to second The udp port that the negotiation of equipment determines sends test packet, wherein, test packet can carry the UDP ends that the first equipment is used Slogan;Second equipment recognizes test packet carrys out auto-negotiation determination the after the udp port of local terminal receives test packet During the udp port of one equipment, confirmation receives test packet, and encapsulates the test response message for this test packet.With regard to Second equipment is referred to the transmission of the first equipment and surveys using the sending method that the udp port for consulting to determine sends test response message The process of examination message, therefore repeat no more in this.
Wherein, the network performance parameter of step 405 measurement can include at least one of:Time delay, jitter value, two-way lose Bag rate, unidirectional packet loss.
Wherein, step 405 can include at least one of:
The test that the moment for calculating the first equipment transmission test packet is received for test packet return with the first equipment rings Difference between the moment for answering message, as the first difference;Calculate the second equipment and return test response message for test packet Moment and the second equipment receive test packet moment between difference, as the second difference;According to the first difference and second Difference between difference, determines time delay;
According to the difference of two neighboring time delay, jitter value is determined;
The difference between the number of the number of the test packet of the first equipment transmission and the test response message of reception is calculated, As the 3rd difference;Percentage ratio between the number of the test packet sent according to the 3rd difference and the first equipment, determines two-way Packet loss;
Calculate the first equipment transmission test packet number and the second equipment send test response message number it Between difference, as the 4th difference;Percentage ratio between the number of the test packet sent according to the 4th difference and the first equipment, It is determined that front to packet loss;
Calculate the second equipment transmission test response message number and the first equipment receive test response message Difference between number, as the 5th difference;Between the number of the test response message sent according to the 5th difference and the second equipment Percentage ratio, it is determined that backward packet loss.
Wherein, it is the same with regard to the addition manner of very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp It is described, therefore repeat no more in this.Wherein, the very first time stab for identify the first equipment the moment T1 that gives out a contract for a project, the second timestamp use In the packet receiving moment T2 of second equipment that identifies, the 3rd timestamp is used for the moment T3 that gives out a contract for a project of the second equipment of mark, the 4th timestamp For identifying the packet receiving moment T4 of the first equipment.Therefore, the first equipment can calculate a time delay according to following formula:(T4-T1)- (T3-T2)。
Wherein, the first equipment often receives one of the second equipment and returns bag, just can calculate a time delay, from calculating second Individual time delay starts, and just can calculate the difference of two neighboring time delay, and this difference is jitter value.
Wherein, in test packet interaction, the first equipment can record number TxCount of the test packet of transmission with And number RxCount of the test response message for receiving, it is possible to two-way packet loss is calculated according to following formula:
Wherein, the first equipment often sends a test packet, and the sequence of message number that test packet is carried Jia 1;Second equipment A test response message is often sent, the sequence of message number for testing response message carrying Jia 1;Wherein, sequence of message number is by message In serial number (Sequence Number) field carry.
Wherein, the number of the test packet that the first equipment sends is designated as TxCount, the test response report of the second device replied The serial number carried in text is designated as SequenceNum, then to packet loss before being calculated according to following formula:
Wherein, the number of the test response message that the first equipment is received is designated as RxCount, and the test of the second device replied rings Answer the serial number carried in message to be designated as SequenceNum, then backward packet loss can be calculated according to following formula:
In some implementations, the network for formance measuring method of the present embodiment can also include:
Step 406:After reception stops operation traffic order, stop the SLA operations of scheduling TWAMP types.By First equipment (test originating end) is issued and ceased and desisted order, and can stop test session.
The present embodiment simplifies the process for setting up performance measurement session (TWAMP-Control), chain in terms of handling process The connectedness on road is ensured by non-protocol requirement means.By the connectivity of link detection methods of non-protocol requirement, overall simplification Before test is opened, a series of processes of control message interactions.Merely with SLA related frameworks, building for TWAMP test sessions is carried out Vertical, unlatching, stopping, without the need for doing any improvement to SLA, while and the establishment described in TWAMP agreements, startup can be simplified, stopped The protocol massages interaction of test session.And, by two logic entities, a logic entity is used as control for the present embodiment Client and transmitting node, another logic entity is intactly realized by lightweight as service end and reflecting node Test function of the TWAMP agreements to UDP layer network performance, reduces to a great extent the complexity of TWAMP protocol realizations.Separately Outward, the measurement range of SLA is also caused further to expand UDP layer to.
Device embodiment
Based on a kind of network for formance measuring method identical inventive concept provided in an embodiment of the present invention, the present invention implement Example additionally provides a kind of network performance measurement device, for measuring the internetworking of the first equipment and the second communication between devices link Energy parameter, wherein, the first device configuration is to be implemented with control client and the session setup end of TWAMP, and the second device configuration is The service end and session for being implemented with TWAMP responds end.
As shown in figure 8, the network performance measurement device that the present embodiment is provided, is applied to the first equipment, including:Order is received Module 801, creation module 802, scheduler module 803, port negotiation module 804, test packet interactive module 805 and measurement mould Block 806;
Wherein, creation module 802, after receiving establishment job command in Order receiver module 801, create TWAMP The SLA operations of type;
Scheduler module 803, after receiving initiating task traffic order in Order receiver module 801, starts scheduling The SLA operations of TWAMP types;
Port negotiation module 804, for during the SLA operations that TWAMP types are dispatched in scheduler module 803, with the second equipment The UDP port number that negotiation is used in interactive testing message;
Test packet interactive module 805, for using the udp port and the second equipment interactive testing message for consulting to determine;
Measurement module 806, for according to interactive test packet, Measurement Network performance parameter.
Wherein, the network performance parameter of the measurement of measurement module 806 can include at least one of:It is time delay, jitter value, double To packet loss, unidirectional packet loss.
Wherein, the network performance measurement device of the present embodiment can also include:Link test module 800, in order After the receives link test command of receiver module 801, the connectedness of the first equipment and the second communication between devices link is detected.
Wherein, port negotiation module 804, can be used for consulting in interactive testing message by probe messages and the second equipment When the UDP port number that used, wherein, the probe messages are that Serial No. is set in advance and unique mark this message is The test packet of the fixed value of UDP port number negotiation packet.
Wherein, port negotiation module 804 can include:
First transmitting element 8041, for sending probe messages to the second equipment, wherein, probe messages carry the first equipment An available UDP port number;
First receiving unit 8043, for receiving the detection response message that the second equipment is returned for probe messages, wherein, Detection response message carries a UDP port number;
Processing unit 8042, for determining in interactive testing message, the UDP ends that the first equipment is carried using probe messages Slogan, the UDP port number that the second equipment is carried using detection response message;Or, judge the UDP ends that detection response message is carried Whether slogan is consistent with the UDP port number that probe messages are carried;If consistent, it is determined that in interactive testing message, the first equipment The UDP port number carried using probe messages with the second equipment;If inconsistent, the UDP that detection response message is carried is judged Whether port numbers can use, if available, it is determined that in interactive testing message, the first equipment and the second equipment use probe response The UDP port number that message is carried;If confirming, the UDP port number that detection response message is carried is unavailable, it indicates that first sends single Unit sends probe messages to the second equipment again, wherein, the probe messages that resend carry the first equipment it is available another UDP port number.
Wherein, test packet interactive module 805 can include:
Second transmitting element 8051, for sending test packet to the second equipment;
Second receiving unit 8052, for receiving the test response message that the second equipment is returned for test packet;
Wherein, the test packet that the second transmitting element 8051 sends carries very first time stamp and sequence of message No. the first; The very first time the first equipment of stamp mark sends the moment of test packet, and sequence of message No. the first identifies the test that the first equipment sends The serial number of message;
Test response message that second receiving unit 8052 is received carry sequence of message No. the second, very first time stamp, second Timestamp and the 3rd timestamp;Second timestamp identifies the moment that the second equipment receives test packet, the 3rd timestamp mark Know the moment that the second equipment sends test response message, sequence of message No. the second identifies the test response message that the second equipment sends Serial number.
Wherein, measurement module 806 can include at least one of:
First measuring unit 8061, the moment that test packet is sent for calculating the first equipment is received for the first equipment Difference between the moment of the test response message that test packet is returned, as the first difference;The second equipment is calculated for test Message returns the difference between the moment that the moment of test response message and the second equipment receive test packet, poor as second Value;According to the difference between the first difference and the second difference, time delay is determined;
Second measuring unit 8062, for according to the difference of two neighboring time delay, determining jitter value;
3rd measuring unit 8063, for the number for calculating the test packet that the first equipment sends and the test response for receiving Difference between the number of message, as the 3rd difference;The number of the test packet sent according to the 3rd difference and the first equipment Between percentage ratio, determine two-way packet loss;
4th measuring unit 8064, what the number and the second equipment for calculating the test packet that the first equipment sends sent Difference between the number of test response message, as the 4th difference;According to the test report that the 4th difference and the first equipment send Percentage ratio between the number of text, it is determined that front to packet loss;
5th measuring unit 8065, the number and the first equipment for calculating the test response message that the second equipment sends is received Difference between the number of the test response message for arriving, as the 5th difference;According to the survey that the 5th difference and the second equipment send Percentage ratio between the number of examination response message, it is determined that backward packet loss.
Wherein, scheduler module 803, can be also used for after Order receiver module 801 receives the traffic order that stops operation, Stop the SLA operations of scheduling TWAMP types.
Aforesaid embodiment of the method is referred to regard to the details of operation of the network performance measurement device of the present embodiment, therefore in This is repeated no more.
System embodiment
Based on a kind of network for formance measuring method identical inventive concept provided in an embodiment of the present invention, the present invention implement Example additionally provides a kind of network performance measurement system, for measuring the internetworking of the first equipment and the second communication between devices link Can parameter.
As shown in figure 9, the network performance measurement system that the present embodiment is provided, including:First equipment 901 and the second equipment 902;Wherein, the first equipment 901 is configured to be implemented with the control client of TWAMP and session setup end, and the second equipment 902 is configured Service end and session to be implemented with TWAMP responds end;
First equipment 901, for after establishment job command is received, creating the SLA operations of TWAMP types;Receiving After initiating task traffic order, start the SLA operations for dispatching TWAMP types;It is real by the SLA operations for dispatching TWAMP types Now following operation:The UDP port number used in interactive testing message with the negotiation of the second equipment;Using the UDP for consulting to determine Port and the second equipment interactive testing message;And according to interactive test packet, Measurement Network performance parameter.
Wherein, the network performance parameter of measurement can include at least one of:Time delay, jitter value, two-way packet loss, list To packet loss.
The description of aforesaid network performance measurement device is referred to regard to the structure of the first equipment 901, therefore in this no longer Repeat.
Wherein, the second equipment 902 can include receiver module 9021 and sending module 9022.
Wherein, the first equipment 901 is used to send probe messages to the second equipment 902, wherein, probe messages are Serial No. This message of set in advance and unique mark for UDP port number negotiation packet fixed value (such as, test packet 0), detection Message carries the available UDP port number of the first equipment 901;
The receiver module 9021 of the second equipment 902 is used to receive probe messages;
Sending module 9022 is used for after receiver module 9021 receives probe messages, returns detection response message, wherein, Detection response message carries the available udp port of the second equipment 902;Or, sending module 9022 is used in receiver module 9021 receive after probe messages, when the UDP port number for confirming that probe messages are carried is available, returns and carry the udp port Number detection response message, confirm probe messages carry UDP port number it is unavailable when, return carry the second equipment 902 can The detection response message of one UDP port number.
Wherein, the first equipment 901 can be used for sending test packet to the second equipment 902;The reception mould of the second equipment 902 Block 9021 is used to receive test packet;Sending module 9022 is used for after receiver module 9021 receives test packet, returns and surveys Examination response message;
Wherein, the test packet that the first equipment 901 sends carries very first time stamp and sequence of message No. the first;Second sets The standby 902 test response messages for sending carry very first time stamp, the second timestamp, the 3rd timestamp and the second sequence of message Number;
Wherein, very first time stamp mark the first equipment 901 sends the moment of test packet, and the second timestamp mark second sets Standby 902 moment for receiving test packet, the 3rd timestamp mark the second equipment 902 sends the moment of test response message;First The serial number of the test packet that sequence of message number mark the first equipment 901 sends;Sequence of message No. second identifies the second equipment 902 The serial number of the test response message of transmission.
In addition, being referred to aforesaid method reality with regard to other details of operations of the network performance measurement system of the present embodiment Apply described in example and device embodiment, therefore repeat no more in this.
Additionally, the embodiment of the present invention also provides a kind of computer-readable recording medium, be stored with computer executable instructions, The computer executable instructions are when executed by realizing above-mentioned network for formance measuring method.
It will appreciated by the skilled person that the whole or some steps, system, dress in method disclosed hereinabove Functional module/unit in putting may be implemented as software, firmware, hardware and its appropriate combination.In hardware embodiment, Division between the functional module/unit for referring in the above description not necessarily corresponds to the division of physical location;For example, one Physical assemblies can have multiple functions, or One function or step can be performed by some physical assemblies cooperations.Some groups Part or all component may be implemented as by processor, the software that such as digital signal processor or microprocessor are performed, or quilt Hardware is embodied as, or is implemented as integrated circuit, such as special IC.Such software can be distributed in computer-readable On medium, computer-readable medium can include that computer-readable storage medium (or non-transitory medium) and communication media are (or temporary transient Property medium).Such as known to a person of ordinary skill in the art, term computer storage medium is included in for storage information (such as Computer-readable instruction, data structure, program module or other data) any method or technique in the volatibility and non-implemented Volatibility, removable and nonremovable medium.Computer-readable storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or can be used for any other medium that store desired information and can be accessed by a computer.This Outward, known to a person of ordinary skill in the art to be, communication media generally comprises computer-readable instruction, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.
The ultimate principle and principal character of the application and the advantage of the application has been shown and described above.The application is not by upper State the restriction of embodiment, the principle for simply illustrating the application described in above-described embodiment and description, without departing from the application On the premise of spirit and scope, the application also has various changes and modifications, and these changes and improvements both fall within claimed In the range of the application.

Claims (16)

1. a kind of network for formance measuring method, it is characterised in that for measuring the first equipment and the second communication between devices link Network performance parameter, wherein, first device configuration is the control client for being implemented with two-way active measurement agreement TWAMP With session setup end, second device configuration is to be implemented with service end and the session response end of TWAMP;
The network for formance measuring method, is applied to first equipment, including:
After establishment job command is received, the service-level agreement SLA operations of TWAMP types are created;
After initiating task traffic order is received, start the SLA operations for dispatching the TWAMP types;
By the SLA operations for dispatching the TWAMP types, following operation is realized:
The UDP UDP port number used in interactive testing message with second equipment negotiation;
Using the udp port and the second equipment interactive testing message consulting to determine;
According to the interactive test packet, the network performance parameter is measured.
2. network for formance measuring method according to claim 1, it is characterised in that the SLA of the establishment TWAMP types makees Before industry, the network for formance measuring method also includes:
After receives link test command, the connection of first equipment and the second communication between devices link is detected Property.
3. network for formance measuring method according to claim 1, it is characterised in that described to consult to exist with second equipment The UDP port number used during interactive testing message, including:
The UDP port number for consulting to be used in interactive testing message by probe messages and second equipment, wherein, it is described Probe messages be that Serial No. is set in advance and this message of unique mark for the fixed value of UDP port number negotiation packet test Message.
4. network for formance measuring method according to claim 3, it is characterised in that described by probe messages and described Two equipment consult the UDP port number used in interactive testing message, including:
Probe messages are sent to second equipment, wherein, the probe messages carry the available UDP of first equipment Port numbers;
The detection response message that second equipment is returned for the probe messages is received, wherein, the detection response message Carry a UDP port number;
It is determined that in interactive testing message, the UDP port number that first equipment is carried using the probe messages, described second The UDP port number that equipment is carried using the detection response message;
Or, judge UDP port number that the UDP port number that the detection response message is carried carries with the probe messages is whether Unanimously;If consistent, it is determined that in interactive testing message, first equipment and second equipment are using the detection report The UDP port number that text is carried;If inconsistent, first equipment judges the UDP port number that the detection response message is carried Whether can use, if available, it is determined that in interactive testing message, first equipment and second equipment use the spy Survey the UDP port number that response message is carried;If first equipment confirms the UDP port number of the detection response message carrying not Can use, then the step of re-executing to second equipment transmission probe messages, wherein, the probe messages for resending are taken With available another UDP port number of first equipment.
5. network for formance measuring method according to claim 1, it is characterised in that described to interact survey with second equipment Examination message, including:
Periodically repeat the following operation of execution:
Test packet is sent to second equipment;
Receive the test response message that second equipment is returned for the test packet;
Wherein, the test packet that first equipment sends carries very first time stamp and sequence of message No. the first;Described first Timestamp identifies the moment that first equipment sends the test packet, and sequence of message No. the first mark described first sets The serial number of the test packet that preparation is sent;
Test response message that first equipment is received carry sequence of message No. the second, very first time stamp, the second timestamp with And the 3rd timestamp;Second timestamp identifies the moment that second equipment receives the test packet, and the described 3rd Timestamp identifies the moment that second equipment sends test response message, and sequence of message No. the second mark described second sets The serial number of the test response message that preparation is sent.
6. network for formance measuring method according to claim 1, it is characterised in that the network performance parameter includes following At least one:Time delay, jitter value, two-way packet loss, unidirectional packet loss.
7. network for formance measuring method according to claim 6, it is characterised in that described according to the interactive test report Text, measures the network performance parameter, including at least one of:
The moment and first equipment for calculating the first equipment transmission test packet is received for the test packet and returns Test response message moment between difference, as the first difference;Second equipment is calculated for the test packet The difference that the moment and second equipment for returning test response message was received between the moment of the test packet, as second Difference;According to the difference between first difference and second difference, time delay is determined;
According to the difference of two neighboring time delay, jitter value is determined;
The difference between the number of the number of the test packet that first equipment sends and the test response message of reception is calculated, As the 3rd difference;Percentage ratio between the number of the test packet sent according to the 3rd difference and first equipment, Determine two-way packet loss;
Calculate the test response message that the number and the second equipment of the test packet that first equipment sends send number it Between difference, as the 4th difference;Between the number of the test packet sent according to the 4th difference and first equipment Percentage ratio, it is determined that front to packet loss;
Calculate the test response message that the number and first equipment of the test response message that second equipment sends are received Number between difference, as the 5th difference;According to the test response report that the 5th difference and second equipment send Percentage ratio between the number of text, it is determined that backward packet loss.
8. network for formance measuring method according to claim 1, it is characterised in that the network for formance measuring method is also wrapped Include:
After reception stops operation traffic order, stop the SLA operations of the scheduling TWAMP types.
9. a kind of network performance measurement device, it is characterised in that for measuring the first equipment and the second communication between devices link Network performance parameter, wherein, first device configuration is the control client for being implemented with two-way active measurement agreement TWAMP With session setup end, second device configuration is to be implemented with service end and the session response end of TWAMP;
The network performance measurement device, is applied to first equipment, including:Order receiver module, creation module, scheduling mould Block, port negotiation module, test packet interactive module and measurement module;
The creation module, after receiving establishment job command in the Order receiver module, creates the clothes of TWAMP types Business level protocol SLA operation;
The scheduler module, after receiving initiating task traffic order in the Order receiver module, starts scheduling described The SLA operations of TWAMP types;
The port negotiation module, for during the SLA operations that the TWAMP types are dispatched in the scheduler module, with described the Two equipment consult the UDP UDP port number used in interactive testing message;
The test packet interactive module, for using the udp port and the second equipment interactive testing message for consulting to determine;
The measurement module, for according to the interactive test packet, measuring the network performance parameter.
10. network performance measurement device according to claim 9, it is characterised in that the network performance measurement device is also Including:Link test module, for after the Order receiver module receives link test command, detecting first equipment With the connectedness of the second communication between devices link.
11. network performance measurement devices according to claim 9, it is characterised in that the port negotiation module, for leading to The UDP port number that probe messages are used with second equipment negotiation in interactive testing message is crossed, wherein, the detection report Text for Serial No. is set in advance and this message of unique mark for the fixed value of UDP port number negotiation packet test packet.
12. network performance measurement devices according to claim 11, it is characterised in that the port negotiation module, including:
First transmitting element, for sending probe messages to second equipment, wherein, the probe messages carry described first The available UDP port number of equipment;
First receiving unit, for receiving the detection response message that second equipment is returned for the probe messages, wherein, The detection response message carries a UDP port number;
Processing unit, for determining in interactive testing message, the UDP ends that first equipment is carried using the probe messages Slogan, the UDP port number that second equipment is carried using the detection response message;
Or, judge UDP port number that the UDP port number that the detection response message is carried carries with the probe messages is whether Unanimously;If consistent, it is determined that in interactive testing message, first equipment and second equipment are using the detection report The UDP port number that text is carried;If inconsistent, judge whether the UDP port number that the detection response message is carried can use, if can With, it is determined that in interactive testing message, first equipment and second equipment are taken using the detection response message The UDP port number of band;If confirming, the UDP port number that the detection response message is carried is unavailable, it indicates that described first sends Unit sends probe messages to second equipment again, wherein, the probe messages for resending carry described first and set Standby available another UDP port number.
13. network performance measurement devices according to claim 9, it is characterised in that the scheduler module, are additionally operable in institute State Order receiver module and receive the SLA operations for stopping the scheduling TWAMP types after the traffic order that stops operation.
14. a kind of network performance measurement systems, it is characterised in that for measuring the first equipment and the second communication between devices link Network performance parameter;The network performance measurement system includes:First equipment and the second equipment, wherein, described first sets It is standby to be configured to be implemented with control client and the session setup end of two-way active measurement agreement TWAMP, second device configuration Service end and session to be implemented with TWAMP responds end;
First equipment, for after establishment job command is received, the service-level agreement SLA for creating TWAMP types to make Industry;After initiating task traffic order is received, start the SLA operations for dispatching the TWAMP types;It is described by scheduling The SLA operations of TWAMP types, realize following operation:The use used in interactive testing message with second equipment negotiation User data datagram protocol UDP port number;Using the udp port and the second equipment interactive testing message consulting to determine;And root According to the interactive test packet, the network performance parameter is measured.
15. network performance measurement systems according to claim 14, it is characterised in that first equipment, for institute State the second equipment and send probe messages, wherein, the probe messages are that Serial No. is set in advance and unique mark this message For the test packet of the fixed value of UDP port number negotiation packet, it is available one that the probe messages carry first equipment UDP port number;
Second equipment, including receiver module and sending module,
The receiver module, for receiving the probe messages;
The sending module, after receiving the probe messages in the receiver module, returns detection response message, its In, the detection response message carries the available UDP port number of second equipment;
Or, the sending module after receiving the probe messages in the receiver module, is confirming the detection report When the literary UDP port number for carrying can use, the detection response message for carrying the UDP port number is returned, reported in the confirmation detection When the UDP port number of text carrying is unavailable, the probe response report for carrying the available UDP port number of second equipment is returned Text.
16. network performance measurement systems according to claim 15, it is characterised in that first equipment is used for described Second equipment sends test packet;The receiver module of second equipment is used to receive the test packet;The transmission Module, after receiving the test packet in the receiver module, returns test response message;
Wherein, the test packet that first equipment sends carries very first time stamp and sequence of message No. the first;Described second The test response message that equipment sends carries very first time stamp, the second timestamp, the 3rd timestamp and sequence of message No. the second;
Wherein, the very first time stamp mark first equipment sends the moment of the test packet, second timestamp The moment that second equipment receives the test packet is identified, the 3rd timestamp identifies second equipment and sends described The moment of test response message;
The sequence of message No. first identifies the serial number of the test packet that first equipment sends;Second sequence of message The serial number of the test response message that number mark second equipment sends.
CN201611153680.6A 2016-12-14 2016-12-14 A kind of network for formance measuring method, apparatus and system Active CN106603333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611153680.6A CN106603333B (en) 2016-12-14 2016-12-14 A kind of network for formance measuring method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611153680.6A CN106603333B (en) 2016-12-14 2016-12-14 A kind of network for formance measuring method, apparatus and system

Publications (2)

Publication Number Publication Date
CN106603333A true CN106603333A (en) 2017-04-26
CN106603333B CN106603333B (en) 2019-08-06

Family

ID=58802492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611153680.6A Active CN106603333B (en) 2016-12-14 2016-12-14 A kind of network for formance measuring method, apparatus and system

Country Status (1)

Country Link
CN (1) CN106603333B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547302A (en) * 2017-06-22 2018-01-05 新华三技术有限公司 Network quality appraisal procedure and device
CN109669824A (en) * 2018-11-20 2019-04-23 中科曙光信息产业成都有限公司 The interconnection detection and Time delay measurement method of more FPGA topologys
CN110191475A (en) * 2018-02-23 2019-08-30 大唐移动通信设备有限公司 A kind of data processing method and device of base station
CN111382040A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Network performance testing method and device
CN111385648A (en) * 2018-12-28 2020-07-07 成都鼎桥通信技术有限公司 Method and system for regulating and controlling video frame rate
CN111566577A (en) * 2018-11-29 2020-08-21 深圳市大疆创新科技有限公司 Unmanned aerial vehicle instruction processing method, terminal equipment and unmanned aerial vehicle center board
CN112511381A (en) * 2020-11-20 2021-03-16 鹏城实验室 Link quality event detection method, intelligent terminal and storage medium
CN114726748A (en) * 2019-05-31 2022-07-08 瞻博网络公司 Enhanced two-way active measurement protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013064982A1 (en) * 2011-11-04 2013-05-10 Telefonaktiebolaget L M Ericsson (Publ) Service assurance using network measurement triggers
CN103595553A (en) * 2012-07-24 2014-02-19 埃克斯帝网络有限公司 Automatic setup of reflector instances
WO2014142723A1 (en) * 2013-03-15 2014-09-18 Telefonaktiebolaget Lm Ericsson (Publ) Hypervisor and physical machine and respective methods therein for performance measurement

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013064982A1 (en) * 2011-11-04 2013-05-10 Telefonaktiebolaget L M Ericsson (Publ) Service assurance using network measurement triggers
CN103595553A (en) * 2012-07-24 2014-02-19 埃克斯帝网络有限公司 Automatic setup of reflector instances
WO2014142723A1 (en) * 2013-03-15 2014-09-18 Telefonaktiebolaget Lm Ericsson (Publ) Hypervisor and physical machine and respective methods therein for performance measurement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NORTEL NETWORKS: "A Two-Way Active Measurement Protocol (TWAMP)", 《NETWORK WORKING GROUP REQUEST FOR COMMENTS 5357》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547302A (en) * 2017-06-22 2018-01-05 新华三技术有限公司 Network quality appraisal procedure and device
CN107547302B (en) * 2017-06-22 2020-10-09 新华三技术有限公司 Network quality evaluation method and device
CN110191475A (en) * 2018-02-23 2019-08-30 大唐移动通信设备有限公司 A kind of data processing method and device of base station
CN110191475B (en) * 2018-02-23 2021-04-27 大唐移动通信设备有限公司 Data processing method and device for base station
CN109669824A (en) * 2018-11-20 2019-04-23 中科曙光信息产业成都有限公司 The interconnection detection and Time delay measurement method of more FPGA topologys
CN111566577A (en) * 2018-11-29 2020-08-21 深圳市大疆创新科技有限公司 Unmanned aerial vehicle instruction processing method, terminal equipment and unmanned aerial vehicle center board
CN111385648A (en) * 2018-12-28 2020-07-07 成都鼎桥通信技术有限公司 Method and system for regulating and controlling video frame rate
CN111382040A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Network performance testing method and device
CN114726748A (en) * 2019-05-31 2022-07-08 瞻博网络公司 Enhanced two-way active measurement protocol
CN112511381A (en) * 2020-11-20 2021-03-16 鹏城实验室 Link quality event detection method, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN106603333B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN106603333B (en) A kind of network for formance measuring method, apparatus and system
CN106209413B (en) Communication means, the Centralized Controller equipment of network and the network equipment in network
CN105577413B (en) Operations, Administration and Maintenance OAM message processing method and processing device
CN108234235A (en) For the method for data monitoring, the network equipment and computer readable storage medium
CN100463418C (en) Network performance test method, system and network device
CN107579869B (en) Network performance detection method and network equipment
CN110351156A (en) A kind of test method and device
CN104955074B (en) Test device and test method
CN107086966A (en) A kind of load balancing of network, control and network interaction method and device
CN106101008B (en) A kind of transmission method and device of message
CN106656679B (en) Availability bandwidth measurement method
CN105634937B (en) A kind for the treatment of method and apparatus of message
CN104852828B (en) A kind of network delay detection method, apparatus and system
CN105308904B (en) A kind of OAM message processing method, the network equipment and network system
CN105391592B (en) A kind of methods, devices and systems Packet Transport Network business detecting and measured
CN103763156A (en) Network speed measurement method and system
CN108737206A (en) Route selecting method, device and its computer equipment of network channel
CN110381071A (en) A kind of message transmitting method, device and send method, apparatus
CN103109497B (en) For measuring the dynamic-configuration of the interconnect equipment of net neutral energy characteristic
CN107147544A (en) A kind of method and device of test network delay
CN111865633A (en) Communication method, device and system
CN104426715B (en) A kind of distributed testing tool control method
CN104363187B (en) A kind of things-internet gateway resource response method and apparatus
KR20130075252A (en) Apparatus and method for conformance testing of service choreography
CN108199913A (en) A kind of method and apparatus for realizing delay testing

Legal Events

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