CN108390797A - A method of active measurement agreement is realized based on chip - Google Patents

A method of active measurement agreement is realized based on chip Download PDF

Info

Publication number
CN108390797A
CN108390797A CN201810161519.6A CN201810161519A CN108390797A CN 108390797 A CN108390797 A CN 108390797A CN 201810161519 A CN201810161519 A CN 201810161519A CN 108390797 A CN108390797 A CN 108390797A
Authority
CN
China
Prior art keywords
chip
test
network
test packet
packet
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.)
Withdrawn
Application number
CN201810161519.6A
Other languages
Chinese (zh)
Inventor
何志川
李磊
周杰
赵茂聪
顾伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201810161519.6A priority Critical patent/CN108390797A/en
Publication of CN108390797A publication Critical patent/CN108390797A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

Present invention is disclosed a kind of methods for realizing active measurement agreement based on chip, including:Chip identifies the control message of active measurement agreement, the test for starting network performance;The test packet that chip sends at least one active measurement agreement in sending direction gives reception direction, is used for the test of network performance;Chip is receiving direction discernment test packet, and is handled the test packet received in OAM engines, calculates network performance parameter in the chips;Or by treated, test packet replies to chip sending direction after handling test packet, and network performance parameter is calculated in sending direction by chip.The present invention provides a kind of scheme based on chip realization active measurement agreement, it can be achieved that test and the statistics of high-precision and high performance network performance parameter.

Description

A method of active measurement agreement is realized based on chip
Technical field
The present invention relates to a kind of implementation methods of active measurement agreement, are realized based on chip more particularly, to one kind and are actively surveyed The method for measuring agreement.
Background technology
As people to the further accurate of performance index requirements and improve, for network performance analysis start gradually to Higher extends.
Active measurement agreement (AMP, Active Measurement Protocol) conduct measurement procotol (IP, Internet Protocol) network performance standard agreement, meet to UDP (User DatagramProtocol, number of users According to datagram protocol) testing requirement of layer network performance.According to protocol requirement, the agreement is by establishing the control message of performance measurement session (AMP-Control) and the transmission of test packet and reception (AMP-Test) two parts composition.Wherein, control message mainly into Row establishment of connection, and create, start test session;Test packet is on the basis of controlling message, for carrying out network performance Test.
Wherein, OWAMP (One-Way Active Measurement Protocol, unidirectional active measurement agreement) is used for Unidirectional performance test, TWAMP (Two-Way Active Measurement Protocol) are used for two-way performance test, The parameter of the two performance test includes delay (network delay), jitter (network delay shake), loss (Network Packet Loss) etc. Parameter.
Software realization is often based on for active measurement agreement to build test model at present, i.e., is known by software approach Other and processing OWAMP/TWAMP control message and test packet, to test the parameters such as delay, jitter, loss.But The efficiency far of software realization OWAMP or TWAMP are realized not as good as chip.
Invention content
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of improve is provided and realizes active measurement agreement efficiency The method for realizing active measurement agreement based on chip.
To achieve the above object, the following technical solutions are proposed by the present invention:It is a kind of that active measurement agreement is realized based on chip Method, including:
S1, chip identify the control message of active measurement agreement, the survey of the network performance for starting active measurement agreement Examination;
S2, the test packet that chip sends at least one active measurement agreement in sending direction give reception direction, are used for net The test of network performance;
S3, chip are receiving test packet described in direction discernment, and the test packet in OAM engines to receiving It is handled, calculates network performance parameter in the chips;Or it will treated test packet after handling test packet Chip sending direction is replied to, network performance parameter is calculated in sending direction by chip.
Preferably, in S1, the control message includes OWAMP control messages and TWAMP control messages, and the chip passes through TCP port identifies OWAMP control messages and TWAMP control messages respectively.
Preferably, in S2, the test packet includes OWAMP test packets and TWAMP test packets, and chip is in sender To what is tested plus the timestamp for being used for network delay performance parameter test in the test packet and for message validity Sequence number.
Preferably, the chip at most supports the transmission of the test packet of 8 active measurement agreements in sending direction simultaneously, By being distinguished including at least udp port and DSCP information in message between the different test packets.
Preferably, in S3, the chip identifies in reception direction at least through the udp port and DSCP information described Test packet.
Preferably, the network performance parameter includes at least appointing in network delay, Network Packet Loss and network delay shake The combination for one or more of anticipating.
Preferably, the calculating process of the Network Packet Loss performance parameter includes:Chip counts the transmission of the test packet The reception number of number and test packet calculates the difference for sending number and receiving number of the test packet, to calculate the net Network packet loss.
Preferably, the calculating process of the network delay performance parameter includes:The time delay accumulated value that chip is counted according to it With the reception number of the test packet, when obtaining the unilateral network time delay average value or bilateral network of test packet in a period of time Yangjing mean value.
Preferably, the calculating process of the network delay jitter performance parameter includes:According to two neighboring network delay Difference determines the network delay jitter value.
Preferably, the chip includes at least asic chip or fpga chip or NP chips.
The beneficial effects of the invention are as follows:A kind of scheme for realizing active measurement agreement based on chip is provided, it can be quick Processing, the rapidity that chip is realized, which with stability is software realization, to be compared, when ns grades of networks may be implemented such as the present invention Prolong the processing of the network performance parameters such as (delay), network delay shake (jitter).
Description of the drawings
Fig. 1 is OWAMP test philosophies schematic diagram of the present invention;
Fig. 2 is TWAMP test philosophies schematic diagram of the present invention;
Fig. 3 is OWAMP network performance parameters calculating logic schematic diagram of the present invention;
Fig. 4 is TWAMP network performance parameters calculating logic schematic diagram of the present invention;
Fig. 5 is the flow diagram of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing of the present invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
A kind of disclosed method for realizing active measurement agreement based on chip, is particularly based on asic chip realization OWAMP and TWAMP agreements quickly handle the control message and test packet of OWAMP and TWAMP, realize high-precision and high property The test of the network performance parameter of energy and statistics, make up the disadvantage that existing Software Realization Technique efficiency is low, model is complicated.
In conjunction with shown in Fig. 1~Fig. 5, a kind of revealed side realizing active measurement agreement based on chip of the embodiment of the present invention Method, including:
S1, chip identify the control message of active measurement agreement, the survey of the network performance for starting active measurement agreement Examination.
Specifically, the control message of active measurement agreement includes OWAMP control messages and TWAMP control messages, this implementation In example, chip identifies that it controls message for OWAMP by controlling 861 information of TCP port carried in message;By controlling message 862 information of TCP port of middle carrying identifies that it controls message, the survey for starting OWAMP, TWAMP network performance for TWAMP Examination.
After chip identification control message, control message is sent to its upper layer software (applications), client is such as controlled, by upper layer software (applications) Control the start and stop that chip sends the test packet for the network performance for testing active measurement agreement.
S2, the test packet that chip sends at least one active measurement agreement in sending direction give reception direction, are used for net The test of network performance.
Specifically, test packet includes OWAMP test packets and TWAMP test packets, that is to say, that chip is in sender OWAMP test packets can be sent to (Tx) or TWAMP test packets are used for applied in network performance test.Which kind of either sends actively The test packet of measurement agreement, chip is in sending direction plus for network delay performance parameter test in the test packet First time stamp and for message validity test sequence number the legitimacy of message can be carried out by the sequence number Test improves the correctness of active measurement agreement device to test result.
In the present embodiment, chip at most supports the transmission of the test packet of 8 active measurement agreements in sending direction simultaneously, By being distinguished including at least udp port and DSCP information in message between different test packets.
S3, chip are receiving test packet described in direction discernment, and the test packet in OAM engines to receiving It is handled, calculates network performance parameter in the chips;Or it will treated test packet after handling test packet Chip sending direction is replied to, network performance parameter is calculated in sending direction by chip.
Specifically, chip can be at least known by udp port in test packet and DSCP information receiving direction (Rx) Test packet is not gone out.
If chip is OWAMP test packets receiving test packet described in direction discernment, pass through passing through in chip U1_g3_oamDestChip, u1_g3_mepIndex, u1_g3_rxOamType, u1_g3_ in DsACL list items The field such as packetOffset (domain) trips are to be used for processing of the OAMEngine (OAM engines) to OWAMP test packets, The function modules such as equal_twamp, header_edit and/or equal_flex are had inside OAMEngine to receiving OWAMP test packets are handled, and calculate network performance parameter in the chips.
In the present embodiment, network performance parameter includes at least appointing in network delay, Network Packet Loss and network delay shake The combination for one or more of anticipating.
Wherein, the process that the network delay of OWAMP test packets is calculated in chip is specially:Chip interior can be to all The time delay of effective OWAMP test packets adds up, and is added to the totalDTs tables of AutoGenPktRxPktStats list items Xiang Zhong, totalDTs list item indicate the One Way Delay that direction is received slave chip sending direction to chip of test packet, and The statistics that OWAPM test packets receive number rxPkts is had in AutoGenPktRxPktStats list items, passes through reading TotalDTs list items and OWAPM test packets receive number rxPkts, and the internetworking of OWAMP test packets may be implemented in such chip The calculating of energy parameter delay.Specifically, the calculating of One Way Delay delay:With in totalDTs2 list items delay data and OWAPM test packets receive number rxPkts and calculate;That is the unidirectional mean time in some period of totalDTs2/rxPkts= Prolong.
Calculated in chip OWAMP test packets network delay shake process be specially:According to above-mentioned according to adjacent The difference of two network delays, it may be determined that network delay jitter value.
The process that the Network Packet Loss of OWAMP test packets is calculated in chip is specially:Chip interior The statistics that OWAMP test packets send number txPkts is had in AutoGenPktTxPktStats list items, The statistics that OWAMP test packets receive number rxPkts is had in AutoGenPktRxPktStats list items, so as to calculate Loss=txPkts-rxPkts.
If chip is TWAMP test packets receiving test packet described in direction discernment, pass through passing through in chip U1_g3_oamDestChip, u1_g3_mepIndex, u1_g3_rxOamType, u1_g3_ in DsACL list items The field such as packetOffset (domain) trips are to be used for processing of the OAMEngine (OAM engines) to TWAMP test packets, The function modules such as equal_twamp, header_edit and/or equal_flex are had inside OAMEngine to receiving TWAMP test packets are handled, and by treated, test packet replies to chip sending direction after handling test packet, By chip network performance parameter is calculated in sending direction.
Wherein, the process that chip calculates the network delay of TWAMP test packets in sending direction is specially:In chip Portion can add up to the two-way time delay of all effective TWAMP test packets, be added to AutoGenPktRxPktStats tables In the totalDTs list items of item, totalDTs list items indicate the anti-again to chip reception direction slave chip sending direction of test packet Be emitted back towards the two-way time delay of chip sending direction, chip interior also can to the One Way Delay of all effective TWAMP test packets into Row is cumulative, is added in the totalDTs2 list items of AutoGenPktRxPktStats list items, and totalDTs2 list items indicate test The One Way Delay that direction is received slave chip sending direction to chip of message;And it is had in AutoGenPktRxPktStats list items TWAPM test packets receive the statistics of number rxPkts, by reading totalDTs1 list items, totalDTs2 list items and rxPkts, The calculating of the network performance parameter delay of TWAMP test packets may be implemented in chip in this way.
Specifically, the calculating of two-way time delay delay:It is two-way average in some period of totalDTs/rxPkts= Time delay, the unidirectional average delay in some period of totalDTs2/rxPkts=, in this way, receiving terminal is to the unidirectional of transmitting terminal Time delay is then:(totalDTs-totalDTs2)/rxPkts.
Calculated in chip TWAMP test packets network delay shake process be specially:According to above-mentioned according to adjacent The difference of the network delay of two TWAMP test packets, it may be determined that the network delay jitter value of TWAMP test packets.
The process that the Network Packet Loss of TWAMP test packets is calculated in chip is specially:Chip interior The statistics that TWAPM test packets send number txPkts is had in AutoGenPktTxPktStats list items, The statistics that TWAMP test packets receive number rxPkts is had in AutoGenPktRxPktStats list items, so as to calculate Loss=txPkts-rxPkts.
Signified chip is not limited to ASIC (Application Specific Integrated in the present invention Circuit, application-specific integrated circuit) chip, may also include FPGA, (Field-Programmable Gate Array, scene can Program gate array) or NP (Network Processor, network processing unit) etc..
The technology contents and technical characteristic of the present invention have revealed that as above, however those skilled in the art still may base Make various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcement It should be not limited to the revealed content of embodiment, and should include various replacements and modification without departing substantially from the present invention, and be this patent Shen Please claim covered.

Claims (10)

1. a kind of method for realizing active measurement agreement based on chip, which is characterized in that including:
S1, chip identify the control message of active measurement agreement, the test of the network performance for starting active measurement agreement;
S2, the test packet that chip sends at least one active measurement agreement in sending direction give reception direction, are used for internetworking The test of energy;
S3, chip is receiving test packet described in direction discernment, and is carried out to the test packet received in OAM engines Processing, calculates network performance parameter in the chips;Or by treated, test packet is replied after handling test packet Chip sending direction is given, network performance parameter is calculated in sending direction by chip.
2. according to the method described in claim 1, it is characterized in that, in S1, the control message include OWAMP control messages and TWAMP controls message, and the chip identifies OWAMP control messages and TWAMP control messages by TCP port respectively.
3. according to the method described in claim 1, it is characterized in that, in S2, the test packet include OWAMP test packets and TWAMP test packets, chip is when sending direction is added in the test packet for network delay performance parameter test Between stab and for message validity test sequence number.
4. according to the method described in claim 1, it is characterized in that, the chip at most supports 8 masters simultaneously in sending direction The transmission of the test packet of dynamic measurement agreement, between the different test packets by message include at least udp port and DSCP information is distinguished.
5. according to the method described in claim 4, it is characterized in that, in S3, the chip is receiving direction at least through described Udp port and DSCP information identify the test packet.
6. according to the method described in claim 3, it is characterized in that, the network performance parameter includes at least network delay, net Any one or more combinations in network packet loss and network delay shake.
7. according to the method described in claim 6, it is characterized in that, the calculating process of the Network Packet Loss performance parameter includes: Chip counts the transmission number of the test packet and the reception number of test packet, calculates the transmission number of the test packet and connects The difference for receiving number, to calculate the Network Packet Loss.
8. according to the method described in claim 6, it is characterized in that, the calculating process of the network delay performance parameter includes: Chip obtains the unidirectional of test packet in a period of time according to the reception number of the time delay accumulated value and the test packet of its statistics Network delay average value or bilateral network time delay average value.
9. according to the method described in claim 8, it is characterized in that, the calculating process packet of the network delay jitter performance parameter It includes:According to the difference of two neighboring network delay, the network delay jitter value is determined.
10. according to the method described in claim 1, it is characterized in that, the chip includes at least asic chip or fpga chip Or NP chips.
CN201810161519.6A 2018-02-27 2018-02-27 A method of active measurement agreement is realized based on chip Withdrawn CN108390797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810161519.6A CN108390797A (en) 2018-02-27 2018-02-27 A method of active measurement agreement is realized based on chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810161519.6A CN108390797A (en) 2018-02-27 2018-02-27 A method of active measurement agreement is realized based on chip

Publications (1)

Publication Number Publication Date
CN108390797A true CN108390797A (en) 2018-08-10

Family

ID=63069883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810161519.6A Withdrawn CN108390797A (en) 2018-02-27 2018-02-27 A method of active measurement agreement is realized based on chip

Country Status (1)

Country Link
CN (1) CN108390797A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838950A (en) * 2019-10-21 2020-02-25 大唐软件技术股份有限公司 Method and device for determining network performance jitter value
CN111611147A (en) * 2020-06-28 2020-09-01 中国人民解放军国防科技大学 Method, system and medium for detecting and analyzing performance of universal interface in processor
CN113992551A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Information reporting method and device
CN114244739A (en) * 2021-12-21 2022-03-25 苏州盛科通信股份有限公司 Method, device and storage medium for improving message statistical accuracy

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729303A (en) * 2008-10-25 2010-06-09 华为技术有限公司 Method and device for measuring network performance parameter
CN105634840A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Method and device for measuring packet loss
US20170005903A1 (en) * 2014-12-31 2017-01-05 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method to efficiently use the ptp timestamp for two-way delay and delay variation measurement in ip networks
US20170180108A1 (en) * 2015-12-18 2017-06-22 Viavi Solutions Inc. Using a two-way active measurement protocol to calculate one-way delay
CN107425995A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 Bidirectional measurement control method, send business device and receive business device
CN107533502A (en) * 2015-04-27 2018-01-02 瑞典爱立信有限公司 Computing basic facility resource monitoring method and entity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729303A (en) * 2008-10-25 2010-06-09 华为技术有限公司 Method and device for measuring network performance parameter
CN105634840A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Method and device for measuring packet loss
US20170005903A1 (en) * 2014-12-31 2017-01-05 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method to efficiently use the ptp timestamp for two-way delay and delay variation measurement in ip networks
CN107533502A (en) * 2015-04-27 2018-01-02 瑞典爱立信有限公司 Computing basic facility resource monitoring method and entity
US20170180108A1 (en) * 2015-12-18 2017-06-22 Viavi Solutions Inc. Using a two-way active measurement protocol to calculate one-way delay
CN107425995A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 Bidirectional measurement control method, send business device and receive business device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838950A (en) * 2019-10-21 2020-02-25 大唐软件技术股份有限公司 Method and device for determining network performance jitter value
CN110838950B (en) * 2019-10-21 2022-01-28 大唐软件技术股份有限公司 Method and device for determining network performance jitter value
CN111611147A (en) * 2020-06-28 2020-09-01 中国人民解放军国防科技大学 Method, system and medium for detecting and analyzing performance of universal interface in processor
CN111611147B (en) * 2020-06-28 2023-05-30 中国人民解放军国防科技大学 Method, system and medium for detecting and analyzing performance of internal universal interface of processor
CN113992551A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Information reporting method and device
CN113992551B (en) * 2021-09-09 2023-07-14 新华三信息安全技术有限公司 Information reporting method and device
CN114244739A (en) * 2021-12-21 2022-03-25 苏州盛科通信股份有限公司 Method, device and storage medium for improving message statistical accuracy

Similar Documents

Publication Publication Date Title
CN108390797A (en) A method of active measurement agreement is realized based on chip
US11611498B2 (en) Round-trip time evaluation system, method, and apparatus
US10541899B2 (en) Data packet sending method and apparatus in IPv6 network
US9531621B2 (en) Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities
Hayes et al. Revisiting TCP congestion control using delay gradients
KR101871303B1 (en) Method for subscribing to streams from multicast clients
US20220174477A1 (en) Method and apparatus for realizing network capability opening, electronic device and storage medium
EP3281380B1 (en) Method and system for the scheduling of packets in a bundling scenario based on tcp tunnels and native tcp information
Rahman et al. Performance evaluation of video streaming application over CoAP in IoT
WO2018112877A1 (en) Path calculating and access request distributing methods, devices and systems
KR20220132005A (en) Method and apparatus for measuring packet loss rate through deep packet inspection in an intermediate node of a communication network
JP2014518047A (en) Data packet loss reduction system and method using adaptive transmission queue length
Ding et al. TCP stretch acknowledgements and timestamps: findings and implications for passive RTT measurement
US11115305B2 (en) Mobile radio network node and method for estimating a capacity of a link in a radio communications network
JP2015023463A (en) Packet analyzing device, packet analyzing method, and packet analyzing program
Lübben et al. On characteristic features of the application level delay distribution of TCP congestion avoidance
Fabini et al. Generic access network emulation for NGN testbeds
WO2014100973A1 (en) Video processing method, device and system
Kalav et al. Congestion control in communication network using RED, SFQ and REM algorithm
Bahnasy et al. Hetflow: A distributed delay-based congestion control for data centers to achieve ultra low queueing delay
Sha et al. A performance evaluation method and it's implementation for web service
Talau et al. Improving TCP performance over a common IoT scenario using the Early Window Tailoring method
Zhou Measuring available bandwidth for smart cyber-physical applications
Nishikawa et al. A method for reducing TCP latency due to consecutive packet losses in mobile networks
KR100528502B1 (en) A Network Quality Measurement Method for Asymmetric Routing Path

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180810

WW01 Invention patent application withdrawn after publication