CN1645825A - Terminal to terminal running performance monitoring method based on sampling measurement - Google Patents
Terminal to terminal running performance monitoring method based on sampling measurement Download PDFInfo
- Publication number
- CN1645825A CN1645825A CNA2005100376650A CN200510037665A CN1645825A CN 1645825 A CN1645825 A CN 1645825A CN A2005100376650 A CNA2005100376650 A CN A2005100376650A CN 200510037665 A CN200510037665 A CN 200510037665A CN 1645825 A CN1645825 A CN 1645825A
- Authority
- CN
- China
- Prior art keywords
- point
- mask
- cooperative
- message
- bits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method includes following steps: through setting monitor point on network, the way of measuring single item delay and packet losing rate of network is used to monitor the traffic state; a same cipher key set in each monitoring point; through cipher key and message, a hash value is generated; randomly extracting a certain rate of message, setting two buffer pools at the monitoring point, the former 40 bytes in the head of message and the 8 byte timestamp of the message are stored in the current buffer pool; and another buffer pool is used to retransmit data; through data operation, the single item delay and packet losing rate can be obtained, and based on it the network running state can be obtained.
Description
Technical field
The present invention relates to a kind of method that is used to detect network performance, relate in particular to a kind of terminal to terminal running performance monitoring method based on sampling measurement.
Background technology
The theoretical research and the technological development of Internet management are not a new problem, but mainly concentrate on network management in the past.Yet, since middle nineteen nineties in last century, development along with Internet, large-scale company, government bodies, R﹠D institution, the private enterprise and ordinary consumer utilize the basic means of carrying out business activity based on the service conduct of Internet gradually, Service Management and user management become the emphasis of Internet management, the research emphasis of Internet Service Management also forwards acceptable service quality (quality of service, management QoS) to from the validity management.The current network management is used for network management and system management mostly, and these management mainly come supervising the network from the viewpoint of network and system, is not suitable for the management of present end to the end service.The network manager for management end to end service, need service level managment and Reporting Tools, the demand that no longer can satisfy the network manager based on fault detect and the fix tool of SNMP based on the Internet Service Management.
The current service system is provided by a plurality of service providers, so, in order to provide end to the user, just require each service provider can both guarantee the availability and the performance of its appropriate section to holding service quality to guarantee.The user is indifferent to each part that service is provided, and only is concerned about QoS.Expectation to QoS makes the user consult the QoS rank with their service provider, and this realizes by SLA (service level agreements).SLA be between service provider and the user for specifying the QoS rank of expectation, the service expectation behavior of signing and the contract of qos parameter.Main following three aspects of the research of sla management at present: SLA parameter-definition, the present public standard that does not also have the SLA parameter; SLA measures, and how main research accurately measures the QoS that the service provider offers the user, and the SLA measurement is the basis of sla management; The SLA/QoS management, monitoring in real time, analysis and report offer user's QoS.
Opposite end to the key of holding performance to monitor is unified monitoring content, makes the performance state of network not only vertically comparable, and has horizontal comparativity, could form the correct evaluation to the network behaviour in service.But, it seems that by present case the research of this respect does not also form unified standard.The IPPM working group of IETF has defined the parameter suggestion of a series of description network performances, as one-way delay, and one-way packet loss, round-trip delay etc., the clear and definite parameter of measuring object, unit, definition and method.And set up Current SurveyorNetwork Map at http://www.advanced.org/csg-ippm/ in view of the above, the target test packet is measured one-way delay and packet loss between 38 host nodes of the U.S. when having by transmission.The network condition report that the definition that this seemingly unique basis has been shaped is monitored network performance.With reference to the achievement of external job family, set up unified complex, the SLA parameter-definition is the primary prerequisite of network performance monitoring.
Because there is the multifrequency nature, user of very big heterogeneity, huge delivery flow rate, the flow demand to various different application in Internet, so network behavior research is quite challenging and quite complicated.Because the real network behavior can not be described and analyze to the prior theory model effectively, uses these models to be difficult to draw correct conclusion usually.Therefore be widely used based on the network management of measuring, there are CAIDA, MERIT, ITA, OC3 and IETF in main research institution.With after the data that are connected are gathered, state that need awareness network operation from past data to know the problem that may occur in advance, is rationally arranged offered load to the network equipment.Simultaneously, under abundant understanding equipment and the operating position that is connected, guidance is made in the network planning in future.How the work of both at home and abroad the state parameter sequence of network being analyzed does not at present also launch.The network service that at present has a lot of mechanisms that himself is provided is abroad carried out Measurement and analysis to a certain degree and is cooperated mutually, in the hope of obtaining full appreciation to network state, as CAIDA (Cooperative Association for Internet Data Analysis) to the measurement of network data flow and the work of analysis aspect.But research at present is to carry out according to the requirement of some application-specific mostly, and target is more random, does not also form than rounded system, and some theoretical models and the practice that have occurred also have a certain distance.By historical data the time-delay of network, the holding load of responding with in advance that throughput is carried out short-term are dynamically adjusted with some simple algorithm as University of California; The Boston University carries out the selection of dynamic state server by the test data to the available bandwidth of channel, but it just selects according to the present situation, and does not do more long-range analysis.Generally speaking, existing research is directly to carry out the instant optimization of some offered loads according to measured value, not to Long-term analysis, the integrated use of data.Therefore we can say that the state parameter of network is is systematically analyzed and researched also is in the starting stage at present.
Present measurement project mainly is that the invasion formula is measured, non-invasion formula is measured and polling mib.Invasion is measured many direct measuring method, but the invasion flow can influence network traffics; Non-invasion does not influence network traffics during measuring, but easy drop-out in the high speed network environment, and be difficult to the monitoring side to holding network performance; The polling mib method of measurement is simple, but some data necessary is difficult to obtain, and is difficult to use in the extensive high speed network environment.
At present main measurement project has: the skitter project survey of CAIDA from 22 source points to IP path, the whole world and RTT, to obtain and to follow the tracks of global Internet topology.The CoralReef project is that CAIDA uses passive flux monitor Collection and analysis data, and CoralReef can be used in the high speed backbone network environment of OC3, OC12 and OC48 now.The purpose of the NIMI project of NSF and DARPA is to set up network measure general-purpose platform architecture, and the NIMI prototype is followed IPPM and estimated standard, measures delay, packet loss and unidirectional route.The IEPM project is the end-to-end Internet performances of tissue use PingER instrument active monitoring such as SLAC/DOC.Abilene is the senior backbone network that the U.S. connects LAN Gbps exchange point, supports university to carry out the research work that high-level network is used, and the network monitoring behavior mainly is that broadcasting ping initiatively measures and based on the measurement of SNMP.Mantra is the instrument that CAIDA is used for monitoring at router level various multicast behaviors.The measurement of NLANR and operating analysis group (MOAT) are safeguarded a network analysis architecture (NAI), be used to study the Internet service model and estimate, the PMA project of MOAT is obtained the IP header information and is obtained SNMP ROM data from a plurality of measurement points from log file, the AMP project is obtained initiatively measurement data from more than 100 campus networks.Network weather service (NWS) is a distributed system, cycle monitoring and dynamic prediction NPACI network performance.
Traditional sla management instrument can not be collected performance parameter, promptly allows to collect performance parameter, the relation between the also difficult collaborative parameters, and whether the service of determining reaches the quality level of SLA agreement defined.The network management solution that the service provider is present can not realize end to holding performance management, and therefore, SLA impels the service provider to turn to the sla management instrument from traditional solution based on SNMP.The instrument that has some grades of service to follow the tracks of and report in the market, these instruments also need certain hour just from traditional network and system management divert service management but management system really can reach the SLA of ISP management.These instruments comprise: the Cisco Works2000 SMS instrument of Cisco company, the Pulsar xSP of Response Networks, the Info Vista system of Info Vista company, the VitalSuite of INS, the Network HealthReporter of ConCord Communications and the Firehunter of Agilent Technologies etc.The product that wherein has only can the monitor network service, and what have can the monitor terminal application program of user, but these instruments substantially all are to adopt the polling mib database and use simple ping instrument, and can only measure the SLA of low-speed small network.
The method of traditional measurement one-way latency and packet loss is the active method of measurement, be that active mode arrives measurement point B from measurement point A transmitted traffic, according to the unidirectional packet loss between information calculations measurement point A, the B of test packet and these two performance measurement indexs of one-way latency.But initiatively method of measurement has the shortcoming of two aspects: (1) active test stream amount is disturbed the ruuning situation of network normal discharge; (2) from measurement point A to the router the measurement point B with gateway to adopting different processing modes to different flow, may cause losing or queueing delay of test traffic, make measurement result can not reflect the performance condition of real network end-to-end like this.
Summary of the invention
The invention provides the fail safe and the sampling control precision of a kind of efficiency of measurement that can improve measurement point, measuring system and can reduce between the distributed measurement point cooperative information based on the terminal to terminal running performance monitoring method of sampling measurement.
The present invention adopts following technical scheme:
A kind of terminal to terminal running performance monitoring method based on sampling measurement:
The 1st step: on network, arrange at least 2 monitoring points, measuring appliance and server are set on each monitoring point, dispose the monitoring range of each monitoring point in each monitoring point, whole system can be measured the performance of n (n-1) paths at most, for a measurement point, for the measuring route of putting cooperative point from local measurement with from the measuring route that cooperative is put local measurement point two memory spaces are set all, a memory space is used to store intermediate object program packet_storage, another memory space is used to store the final measurement performance_storage in this path, at each monitoring point GP configuring S clock system, tell the light of 10% light intensity to measuring appliance by optical splitter from measuring optical fiber in each monitoring point
The 2nd step: identical key value key of configuration on each measurement point, two Buffer Pools are set: storage Buffer Pool basket1 and intransit buffering pond basket2 on measuring appliance, and the time granularity time_scale (is 5 minutes as the time_scale granularity is set) of performance processing
The 3rd step: configuration sampling proportion ratio separately on each measurement point, sampling proportion ratio span is between 0 to 1, and a sampling mask lengths sets mask_length is set, and the ensemble space size is 16, initial value is empty, with sampling proportion ratio successively with 1/2
1, 1/2
2, 1/2
3, 1/2
4, 1/2
5, 1/2
6, 1/2
7, 1/2
8, 1/2
9, 1/2
10, 1/2
11, 1/2
12, 1/2
13, 1/2
14, 1/2
15, 1/2
16This 16 number compares, if ratio is greater than a certain number, then with first less than the denominator index recording of the number of sampling proportion ratio in sampling mask lengths sets mask_length, the result of gained continues and number after this compares, with in the number after this first less than the denominator index recording of gained result's number in sampling mask lengths sets mask_length, then the number of gained is deducted the number in the set, so repeatedly, till this 16 number is relatively finished
The 4th step: from sampling mask lengths sets mask_length, read element successively, define a Bit String, the length of this Bit String is the current value that reads element, with in the mask_length set less than being set to 0 on the current all elements value position of reading element value, be set to 1 on all the other positions, this Bit String as a mask, is recorded among the mask set mask
The 5th step: measuring appliance is received each message execution following steps:
5.1 in a single day measuring appliance receives that a message makes a call to a current time stamp of measuring appliance for this message immediately;
5.2 from heading, extract source IP, the place IP of 32 bits of 32 bits, the source port of 16 bits, the place port of 16 bits, the message identification IPID of 16 bits,
5.3 back 16 bits of source IP are carried out 3 left loop computations, and 16 bits carry out XOR behind result that will generate and the place IP, generate one 16 Bit String hash1; Preceding 16 bits of source IP are carried out 4 left loop computations, and the result that will generate and preceding 16 bits of place IP carry out XOR, generate one 16 Bit String hash2; 16 bits of source port are carried out 5 left loop computations, and 16 bits of result that will generate and place port carry out XOR, generate one 16 Bit String hash3; With above-mentioned 3 16 Bit String hash1, hash2 and hash3 and message identification IPID carry out XOR, generate the cryptographic Hash hash of 16 Bit Strings,
5.4 the cryptographic Hash hash and the key key that generate are carried out the final cryptographic Hash hash of XOR generation;
5.5 from mask set mask, read element successively, first bit extracts the Bit String of mask-length since the final hash value hash of 16 bits, and this Bit String and the current mask that reads compared, extraction has the message of the Bit String identical with mask, and 8 byte times of preceding 40 bytes of this heading and this message are stabbed be stored in the current Buffer Pool
The 6th step: continued to carry out the 5th step and handle newly arrived message, if current Buffer Pool is full, current Buffer Pool is set to the intransit buffering pond, another Buffer Pool in the measuring appliance is set to current Buffer Pool simultaneously, and the data in the intransit buffering pond are transmitted to background server in the mode of UDP message
The 7th step: background server is accepted the UDP message from measuring appliance, and reads heading details and time stab information from the UDP message;
The 8th step: according to the sourcesink IP address of heading, and the address space of each measurement point that disposes in server administration, heading information and time stab information thereof are stored among the intermediate storage result space packet_storage in path under this message,
The 9th step: continue to handle the next message that arrives according to the 7th step, if Measuring Time enters a new time granularity interval, then heading information and the time stab information of putting in the last time granularity interval the intermediate storage result space packet_storage in local measurement point path from cooperative in the cooperative point thereof is sent in the local measurement point server, sampling proportion with cooperative point is sent to the local measurement point simultaneously
The 10th step: compare the sampling proportion of local measurement point and the sampling proportion of cooperative point, use little sampling proportion to continue to use 5.2 methods that went on foot for 5.5 steps to carry out secondary sample to the data in the last time grain size intervals of intermediate storage result space with big sampling proportion
The 11st step: cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point in the intermediate storage result space number number1 of element deduct local measurement and put in the time grain size intervals number number2 of element in the intermediate storage result space, and with the two result divided by the number number1 of element in the intermediate storage result space in the last time grain size intervals of cooperative point, its result is exactly the unidirectional packet loss from the cooperative point to local measurement point path, and the result is stored among the final measurement memory space performance_storage in this path
The 12nd step: relatively cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point the element in the intermediate storage result space and local measurement and is put the element in the intermediate storage result space in the time grain size intervals, select the source IP of element in two set, place IP, source port, the place port, the heading data that message identification IPID is identical, and the element timestamp that uses cooperative point deducts the element time stamp data of local measurement point, and the result is stored in the set of time difference
The 13rd step: from the time difference set, read the number of set element, the value of least member and the value of middle big or small element, value with least member is minimum one-way latency, value with the big or small element in centre is the intermediate value one-way latency, and with above-mentioned three values store into from the cooperative point to local measurement point path final measurement memory space performance_storage
The 14th step: the result of the number of minimum one-way latency, intermediate value one-way latency, unidirectional packet loss and measurement on will going up in the time grain size intervals from the cooperative point to local measurement point path is during being sent to the final measurement memory space performancec_storage from the cooperative point to local measurement point path of cooperative point server.
Compared with prior art, the present invention has following advantage:
(1) mainly is XOR, shift operation based on many masks of sign methods of sampling, is convenient to realize, use this method very little the performance impact of measuring appliance with hardware;
(2) ident value has been introduced key in handling, and on randomness that does not influence ident value and concertedness basis, has increased the fail safe of method of measurement;
(3) masks of measuring make sampling probability freely to adjust more, have the multiple choices sampling probability, realize that the sampling control precision arrives 1/65536;
(4) because the mask computational methods determine the sampling sample of big sampling probability to comprise little sampling probability sample, therefore a plurality of measurement points do not need to adopt identical sampling probability, do not need to carry out sampling mask yet and consult, can guarantee that different measurement points measures identical message.
Description of drawings
Fig. 1 is a network end-to-end performance passive measurement system assumption diagram;
Fig. 2 is measuring system network environment figure.
Embodiment
Embodiment 1
A kind of terminal to terminal running performance monitoring method based on sampling measurement:
The 1st step: on network, arrange at least 2 monitoring points, measuring appliance and server are set on each monitoring point, dispose the monitoring range of each monitoring point in each monitoring point, whole system can be measured the performance of n (n-1) paths at most, for a measurement point, for the measuring route of putting cooperative point from local measurement with from the measuring route that cooperative is put local measurement point two memory spaces are set all, a memory space is used to store intermediate object program packet_storage, another memory space is used to store the final measurement performance_storage in this path, at each monitoring point GP configuring S clock system, tell the light of 10% light intensity to measuring appliance by optical splitter from measuring optical fiber in each monitoring point
The 2nd step: identical key value key of configuration on each measurement point, two Buffer Pools are set: storage Buffer Pool basket1 and intransit buffering pond basket2 on measuring appliance, and the time granularity time_scale (is 5 minutes as the time_scale granularity is set) of performance processing
The 3rd step: configuration sampling proportion ratio separately on each measurement point, sampling proportion ratio span is between 0 to 1, and a sampling mask lengths sets mask_length is set, and the ensemble space size is 16, initial value is empty, with sampling proportion ratio successively with 1/2
1, 1/2
2, 1/2
3, 1/2
4, 1/2
5, 1/2
6, 1/2
7, 1/2
8, 1/2
9, 1/2
10, 1/2
11, 1/2
12, 1/2
13, 1/2
14, 1/2
15, 1/2
16This 16 number compares, if ratio is greater than a certain number, then with first less than the denominator index recording of the number of sampling proportion ratio in sampling mask lengths sets mask_length, the result of gained continues and number after this compares, with in the number after this first less than the denominator index recording of gained result's number in sampling mask lengths sets mask_length, then the number of gained is deducted the number in the set, so repeatedly, till this 16 number is relatively finished
The 4th step: from sampling mask lengths sets mask_length, read element successively, define a Bit String, the length of this Bit String is the current value that reads element, with in the mask_length set less than being set to 0 on the current all elements value position of reading element value, be set to 1 on all the other positions, this Bit String as a mask, is recorded among the mask set mask
The 5th step: measuring appliance is received each message execution following steps:
5.1 in a single day measuring appliance receives that a message makes a call to a current time stamp of measuring appliance for this message immediately;
5.2 from heading, extract source IP, the place IP of 32 bits of 32 bits, the source port of 16 bits, the place port of 16 bits, the message identification IPID of 16 bits,
5.3 back 16 bits of source IP are carried out 3 left loop computations, and 16 bits carry out XOR behind result that will generate and the place IP, generate one 16 Bit String hash1; Preceding 16 bits of source IP are carried out 4 left loop computations, and the result that will generate and preceding 16 bits of place IP carry out XOR, generate one 16 Bit String hash2; 16 bits of source port are carried out 5 left loop computations, and 16 bits of result that will generate and place port carry out XOR, generate one 16 Bit String hash3; With above-mentioned 3 16 Bit String hash1, hash2 and hash3 and message identification IPID carry out XOR, generate the cryptographic Hash hash of 16 Bit Strings,
5.4 the cryptographic Hash hash and the key key that generate are carried out the final cryptographic Hash hash of XOR generation;
5.5 from mask set mask, read element successively, first bit extracts the Bit String of mask-length since the final hash value hash of 16 bits, and this Bit String and the current mask that reads compared, extraction has the message of the Bit String identical with mask, and 8 byte times of preceding 40 bytes of this heading and this message are stabbed be stored in the current Buffer Pool
The 6th step: continued to carry out the 5th step and handle newly arrived message, if current Buffer Pool is full, current Buffer Pool is set to the intransit buffering pond, another Buffer Pool in the measuring appliance is set to current Buffer Pool simultaneously, and the data in the intransit buffering pond are transmitted to background server in the mode of UDP message
The 7th step: background server is accepted the UDP message from measuring appliance, and reads heading details and time stab information from the UDP message;
The 8th step: according to the sourcesink IP address of heading, and the address space of each measurement point that disposes in server administration, heading information and time stab information thereof are stored among the intermediate storage result space packet_storage in path under this message,
The 9th step: continue to handle the next message that arrives according to the 7th step, if Measuring Time enters a new time granularity interval, then heading information and the time stab information of putting in the last time granularity interval the intermediate storage result space packet_storage in local measurement point path from cooperative in the cooperative point thereof is sent in the local measurement point server, sampling proportion with cooperative point is sent to the local measurement point simultaneously
The 10th step: compare the sampling proportion of local measurement point and the sampling proportion of cooperative point, use little sampling proportion to continue to use 5.2 methods that went on foot for 5.5 steps to carry out secondary sample to the data in the last time grain size intervals of intermediate storage result space with big sampling proportion
The 11st step: cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point in the intermediate storage result space number number1 of element deduct local measurement and put in the time grain size intervals number number2 of element in the intermediate storage result space, and with the two result divided by the number number1 of element in the intermediate storage result space in the last time grain size intervals of cooperative point, its result is exactly the unidirectional packet loss from the cooperative point to local measurement point path, and the result is stored among the final measurement memory space performance_storage in this path
The 12nd step: relatively cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point the element in the intermediate storage result space and local measurement and is put the element in the intermediate storage result space in the time grain size intervals, select the source IP of element in two set, place IP, source port, the place port, the heading data that message identification IPID is identical, and the element timestamp that uses cooperative point deducts the element time stamp data of local measurement point, and the result is stored in the set of time difference
The 13rd step: from the time difference set, read the number of set element, the value of least member and the value of middle big or small element, value with least member is minimum one-way latency, value with the big or small element in centre is the intermediate value one-way latency, and with above-mentioned three values store into from the cooperative point to local measurement point path final measurement memory space performance_storage
The 14th step: the result of the number of minimum one-way latency, intermediate value one-way latency, unidirectional packet loss and measurement on will going up in the time grain size intervals from the cooperative point to local measurement point path is during being sent to the final measurement memory space performance_storage from the cooperative point to local measurement point path of cooperative point server.
Embodiment 2
The 1st step: on network, arrange at least 2 monitoring points, measuring appliance and server are set on each monitoring point, dispose the monitoring range of each monitoring point in each monitoring point, whole system can be measured the performance of n (n-1) paths at most, for a measurement point, for the measuring route of putting cooperative point from local measurement with from the measuring route that cooperative is put local measurement point two memory spaces are set all, a memory space is used to store intermediate object program packet_storage, another memory space is used to store the final measurement performance_storage in this path, at each monitoring point GP configuring S clock system, tell the light of 10% light intensity to measuring appliance by optical splitter from measuring optical fiber in each monitoring point, for example: two measurement points are set: measurement point A and measurement point B, path from measurement point A to measurement point B of measurement point A monitoring (A-〉B) and measurement point B are to two paths of measurement point A (B-〉A), same measurement point B also monitor path from measurement point A to measurement point B (A-〉B) and measurement point B to the path of measurement point A (B-〉A) two paths, two memory spaces are set on each path
The 2nd step: identical key value key of configuration on each measurement point, two Buffer Pools are set: storage Buffer Pool basket1 and intransit buffering pond basket2 on measuring appliance, and the time granularity time_scale (is 5 minutes as the time_scale granularity is set) of performance processing
The 3rd step: configuration sampling proportion ratio separately on each measurement point, sampling proportion ratio span is between 0 to 1, and a sampling mask lengths sets mask_length is set, and the ensemble space size is 16, initial value is empty, with sampling proportion ratio successively with 1/2
1, 1/2
2, 1/2
3, 1/2
4, 1/2
5, 1/2
6, 1/2
7, 1/2
8, 1/2
9, 1/2
10, 1/2
11, 1/2
12, 1/2
13, 1/2
14, 1/2
15, 1/2
16This 16 number compares, if ratio is greater than a certain number, then with first less than the denominator index recording of the number of sampling proportion ratio in sampling mask lengths sets mask_length, the result of gained continues and number after this compares, with in the number after this first less than the denominator index recording of gained result's number in sampling mask lengths sets mask_length, then the number of gained is deducted the number in the set, so repeatedly, till this 16 number is relatively finished
Algorithm:
If it is mask_length[that sampling mask length is deposited array]=" ";
Sampling mask number n umber=0;
Sampling ratio is ratio;
for?i?from?1?to?16
{
if?ratio>=1/2i?then
ratio=ratio-1/2i
mask_length[number]=i
number?++:
end?if
}
return?number,mask_length[]
For example:
Resolve into following formula with 0.356 and 0.41:
0.356=1/2
2+1/2
4+1/2
5+1/2
7+1/2
8+1/2
11+1/2
15+0.00001245
0.41=1/2
2+1/2
3+1/2
5+1/2
9+1/2
10+1/2
11+1/2
12+1/2
14+1/2
16+0.000011
The 4th step: from sampling mask lengths sets mask_length, read element successively, define a Bit String, the length of this Bit String is the current value that reads element, with in the mask_length set less than being set to 0 on the current all elements value position of reading element value, be set to 1 on all the other positions, with mask of this Bit String composition, be recorded among the mask set mask
For example:
0.356 coupling mask table
The mask position | Sampling ratio (mark) | Sampling ratio (decimal) | Sampling mask |
??2 | ??1/2 2 | ??0.25 | ????11 |
??4 | ??1/2 4 | ??0.125 | ????1101 |
??5 | ??1/2 5 | ??0.0625 | ????10101 |
??7 | ??1/2 7 | ??0.0078125 | ????1100101 |
??8 | ??1/2 8 | ??0.00390625 | ????10100101 |
??11 | ??1/2 11 | ??0.00048828125 | ????11100100101 |
??15 | ??1/2 15 | ??0.000030517578125 | ????111101100100101 |
0.41 coupling mask table
The mask position | Sampling ratio (mark) | Sampling ratio (decimal) | Sampling mask |
??2 | ??1/2 2 | ??0.25 | ????11 |
??3 | ??1/2 3 | ??0.125 | ????101 |
??5 | ??1/2 5 | ??0.03125 | ????11001 |
??9 | ??1/2 9 | ??0.001953125 | ????111101001 |
??10 | ??1/2 10 | ??0.0009765625 | ????1011101001 |
??11 | ??1/2 11 | ??0.00048828125 | ????10011101001 |
??12 | ??1/2 12 | ??0.000244140625 | ????100011101001 |
??14 | ??1/2 14 | ??0.00006103515625 | ????11000011101001 |
??16 | ??1/2 16 | ??0.0000152587890625 | ????1101000011101001 |
Can know that from 0.356 sampling mask table and 0.41 sampling mask table second mask 101 in the 0.41 sampling mask table comprises second to the 6th content of 0.356 sampling mask table.
The 5th step: measuring appliance is received each message execution following steps:
5.1 in a single day measuring appliance receives that a message makes a call to a current time stamp of measuring appliance for this message immediately;
5.2 from heading, extract source IP, the place IP of 32 bits of 32 bits, the source port of 16 bits, the place port of 16 bits, the message identification IPID of 16 bits,
5.3 back 16 bits of source IP are carried out 3 left loop computations, and 16 bits carry out XOR behind result that will generate and the place IP, generate one 16 Bit String hash1; Preceding 16 bits of source IP are carried out 4 left loop computations, and the result that will generate and preceding 16 bits of place IP carry out XOR, generate one 16 Bit String hash2; 16 bits of source port are carried out 5 left loop computations, and 16 bits of result that will generate and place port carry out XOR, generate one 16 Bit String hash3; With above-mentioned 3 16 Bit String hash1, hash2 and hash3 and message identification IPID carry out XOR, generate the cryptographic Hash hash of 16 Bit Strings,
Algorithm:
If bsip preceding 16 bits that are source IP, asip are that 16 bits behind the IP of source, bdip are that preceding 16 bits of place IP, adip are that 16 bits behind the IP of place, sport are that source port, dport are that place port, IPID are message identification;
If hash1, hash are 16 bit unsigned ints;
hash=IPID;
hash1=asip<<3|asip>>(16-3);
hash1=hash1^adip;
hash^=hash1;
hash1=bsip<<4|bsip>>(16-4);
hash1=hash1^bdip;
hash^=hash1;
hash1=sport<<5|sport>>(16-5);
hash1=hash1^dport;
hash^=hash1;
5.4 the cryptographic Hash hash and the key key that generate are carried out the final cryptographic Hash hash of XOR generation;
Algorithm:
hash=hash^key
5.5 from mask set mask, read element successively, first bit extracts the Bit String of mask-length since the final hash value hash of 16 bits, and this Bit String and the current mask that reads compared, extraction has the message of the Bit String identical with mask, and 8 byte times of preceding 40 bytes of this heading and this message are stabbed be stored in the current Buffer Pool
Algorithm:
Each sampling mask lengths sets is mask_length[i], (i=1, number), wherein number represents the number of mask;
Cur_mask=0; First sub-mask of // appointment; For (i==1; I<=16; I++) // ident value has 16 bits, so maximum the needs circulates 16 times; If (hash[i]==0) //hash[i] value (0 or 1) of i bit of expression ident value; If (i>mask_length[cur_mask]) this message of sampling; Else if (i<mask_length[cur_mask]) this message of unsample; Else if (i==mask_length[cur_mask]) if (cur_mask==number) // pointed to last mask<!--SIPO<DP n=" 11 "〉--〉<dp n=" d11 "/this message of unsample else cur_mask++; // search next sampling mask }
The 6th step: continued to carry out the 5th step and handle newly arrived message, if current Buffer Pool is full, current Buffer Pool is set to the intransit buffering pond, another Buffer Pool in the measuring appliance is set to current Buffer Pool simultaneously, and the data in the intransit buffering pond are transmitted to background server in the mode of UDP message
The 7th step: background server is accepted the UDP message from measuring appliance, and reads heading details and time stab information from the UDP message;
The 8th step: according to the sourcesink IP address of heading, and the address space of each measurement point that disposes in server administration, heading information and time stab information thereof are stored among the intermediate storage result space packet_storage in path under this message,
The 9th step: continue to handle the next message that arrives according to the 7th step, if Measuring Time enters a new time granularity interval, then heading information and the time stab information of putting in the last time granularity interval the intermediate storage result space packet_storage in local measurement point path from cooperative in the cooperative point thereof is sent in the local measurement point server, sampling proportion with cooperative point is sent to the local measurement point simultaneously
The 10th step: compare the sampling proportion of local measurement point and the sampling proportion of cooperative point, use little sampling proportion to continue to use 5.2 methods that went on foot for 5.5 steps to carry out secondary sample to the data in the last time grain size intervals of intermediate storage result space with big sampling proportion
The 11st step: cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point in the intermediate storage result space number number1 of element deduct local measurement and put in the time grain size intervals number number2 of element in the intermediate storage result space, and with the two result divided by the number number1 of element in the intermediate storage result space in the last time grain size intervals of cooperative point, its result is exactly the unidirectional packet loss from the cooperative point to local measurement point path, and the result is stored among the final measurement memory space performance_storage in this path
The 12nd step: relatively cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point the element in the intermediate storage result space and local measurement and is put the element in the intermediate storage result space in the time grain size intervals, select the source IP of element in two set, place IP, source port, the place port, the heading data that message identification IPID is identical, and the element timestamp that uses cooperative point deducts the element time stamp data of local measurement point, and the result is stored in the set of time difference
The 13rd step: the value (intermediate value one-way latency) that from the time difference set, reads the number of set element, the value of least member (minimum one-way latency) and middle big or small element, and with these three values store into from the cooperative point to local measurement point path final measurement memory space performance_storage
The 14th step: the result of the number of minimum one-way latency, intermediate value one-way latency, unidirectional packet loss and measurement on will going up in the time grain size intervals from the cooperative point to local measurement point path is during being sent to the final measurement memory space perfomance_storage from the cooperative point to local measurement point path of cooperative point server.
Claims (1)
1, a kind of terminal to terminal running performance monitoring method based on sampling measurement is characterized in that:
The 1st step: on network, arrange at least 2 monitoring points, measuring appliance and server are set on each monitoring point, dispose the monitoring range of each monitoring point in each monitoring point, whole system can be measured the performance of n (n-1) paths at most, for a measurement point, for the measuring route of putting cooperative point from local measurement with from the measuring route that cooperative is put local measurement point two memory spaces are set all, a memory space is used to store intermediate object program packet_storage, another memory space is used to store the final measurement performance_storage in this path, at each monitoring point GP configuring S clock system, tell the light of 10% light intensity to measuring appliance by optical splitter from measuring optical fiber in each monitoring point
The 2nd step: identical key value key of configuration on each measurement point, two Buffer Pools are set: storage Buffer Pool basket1 and intransit buffering pond basket2 on measuring appliance, and the time granularity time_scale (is 5 minutes as the time_scale granularity is set) of performance processing
The 3rd step: configuration sampling proportion ratio separately on each measurement point, sampling proportion ratio span is between 0 to 1, and a sampling mask lengths sets mask_length is set, and the ensemble space size is 16, initial value is empty, with sampling proportion ratio successively with 1/2
1, 1/2
2, 1/2
3, 1/2
4, 1/2
5, 1/2
6, 1/2
7, 1/2
8, 1/2
9, 1/2
10, 1/2
11, 1/2
12, 1/2
13, 1/2
14, 1/2
15, 1/2
16This 16 number compares, if ratio is greater than a certain number, then with first less than the denominator index recording of the number of sampling proportion ratio in sampling mask lengths sets mask_length, the result of gained continues and number after this compares, with in the number after this first less than the denominator index recording of gained result's number in sampling mask lengths sets mask_length, then the number of gained is deducted the number in the set, so repeatedly, till this 16 number is relatively finished
The 4th step: from sampling mask lengths sets mask_length, read element successively, define a Bit String, the length of this Bit String is the current value that reads element, with in the mask_length set less than being set to 0 on the current all elements value position of reading element value, be set to 1 on all the other positions, this Bit String as a mask, is recorded among the mask set mask
The 5th step: measuring appliance is received each message execution following steps:
5.1 in a single day measuring appliance receives that a message makes a call to a current time stamp of measuring appliance for this message immediately;
5.2 from heading, extract source IP, the place IP of 32 bits of 32 bits, the source port of 16 bits, the place port of 16 bits, the message identification IPID of 16 bits,
5.3 back 16 bits of source IP are carried out 3 left loop computations, and 16 bits carry out XOR behind result that will generate and the place IP, generate one 16 Bit String hash1; Preceding 16 bits of source IP are carried out 4 left loop computations, and the result that will generate and preceding 16 bits of place IP carry out XOR, generate one 16 Bit String hash2; 16 bits of source port are carried out 5 left loop computations, and 16 bits of result that will generate and place port carry out XOR, generate one 16 Bit String hash3; With above-mentioned 3 16 Bit String hash1, hash2 and hash3 and message identification IPID carry out XOR, generate the cryptographic Hash hash of 16 Bit Strings,
5.4 the cryptographic Hash hash and the key key that generate are carried out the final cryptographic Hash hash of XOR generation;
5.5 from mask set mask, read element successively, first bit extracts the Bit String of mask-length since the final hash value hash of 16 bits, and this Bit String and the current mask that reads compared, extraction has the message of the Bit String identical with mask, and 8 byte times of preceding 40 bytes of this heading and this message are stabbed be stored in the current Buffer Pool
The 6th step: continued to carry out the 5th step and handle newly arrived message, if current Buffer Pool is full, current Buffer Pool is set to the intransit buffering pond, another Buffer Pool in the measuring appliance is set to current Buffer Pool simultaneously, and the data in the intransit buffering pond are transmitted to background server in the mode of UDP message
The 7th step: background server is accepted the UDP message from measuring appliance, and reads heading details and time stab information from the UDP message;
The 8th step: according to the sourcesink IP address of heading, and the address space of each measurement point that disposes in server administration, heading information and time stab information thereof are stored among the intermediate storage result space packet_storage in path under this message,
The 9th step: continue to handle the next message that arrives according to the 7th step, if Measuring Time enters a new time granularity interval, then heading information and the time stab information of putting in the last time granularity interval the intermediate storage result space packet_storage in local measurement point path from cooperative in the cooperative point thereof is sent in the local measurement point server, sampling proportion with cooperative point is sent to the local measurement point simultaneously
The 10th step: compare the sampling proportion of local measurement point and the sampling proportion of cooperative point, use little sampling proportion to continue to use 5.2 methods that went on foot for 5.5 steps to carry out secondary sample to the data in the last time grain size intervals of intermediate storage result space with big sampling proportion
The 11st step: cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point in the intermediate storage result space number number1 of element deduct local measurement and put in the time grain size intervals number number2 of element in the intermediate storage result space, and with the two result divided by the number number1 of element in the intermediate storage result space in the last time grain size intervals of cooperative point, its result is exactly the unidirectional packet loss from the cooperative point to local measurement point path, and the result is stored among the final measurement memory space performance_storage in this path
The 12nd step: relatively cooperative is put in the local measurement point path in the last time grain size intervals of cooperative point the element in the intermediate storage result space and local measurement and is put the element in the intermediate storage result space in the time grain size intervals, select the source IP of element in two set, place IP, source port, the place port, the heading data that message identification IPID is identical, and the element timestamp that uses cooperative point deducts the element time stamp data of local measurement point, and the result is stored in the set of time difference
The 13rd step: from the time difference set, read the number of set element, the value of least member and the value of middle big or small element, value with least member is minimum one-way latency, value with the big or small element in centre is the intermediate value one-way latency, and with above-mentioned three values store into from the cooperative point to local measurement point path final measurement memory space performance_storage
The 14th step: the result of the number of minimum one-way latency, intermediate value one-way latency, unidirectional packet loss and measurement on will going up in the time grain size intervals from the cooperative point to local measurement point path is during being sent to the final measurement memory space performance_storage from the cooperative point to local measurement point path of cooperative point server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100376650A CN100361461C (en) | 2005-01-11 | 2005-01-11 | Terminal to terminal running performance monitoring method based on sampling measurement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100376650A CN100361461C (en) | 2005-01-11 | 2005-01-11 | Terminal to terminal running performance monitoring method based on sampling measurement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1645825A true CN1645825A (en) | 2005-07-27 |
CN100361461C CN100361461C (en) | 2008-01-09 |
Family
ID=34876167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100376650A Expired - Fee Related CN100361461C (en) | 2005-01-11 | 2005-01-11 | Terminal to terminal running performance monitoring method based on sampling measurement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100361461C (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212358B (en) * | 2006-12-28 | 2010-05-19 | 中国移动通信集团公司 | Network performance measuring method |
CN101212360B (en) * | 2006-12-28 | 2010-12-29 | 中国移动通信集团公司 | Network performance measuring method |
CN101938459A (en) * | 2010-06-22 | 2011-01-05 | 北京豪讯美通科技有限公司 | CRNET (China Railcom Net) sSafe cooperative defense system for whole course communication network |
CN101212361B (en) * | 2006-12-28 | 2011-06-15 | 中国移动通信集团公司 | Network performance measuring method |
CN101237356B (en) * | 2007-01-29 | 2012-05-23 | 国际商业机器公司 | System and method for monitoring |
CN102812664A (en) * | 2010-03-24 | 2012-12-05 | 诺基亚公司 | Method and apparatus for establishing an electrical connection and establishing a fiber optic connection |
CN106844661A (en) * | 2016-09-29 | 2017-06-13 | 成都市食品药品检验研究院 | The wisdom methods of sampling |
CN107465771A (en) * | 2017-09-20 | 2017-12-12 | 广东工业大学 | A kind of network address section division methods and system |
CN107589991A (en) * | 2017-10-31 | 2018-01-16 | 麦格创科技(深圳)有限公司 | The webpage distribution method and system of distributed system |
CN110943877A (en) * | 2018-09-21 | 2020-03-31 | 华为技术有限公司 | Network state measuring method, equipment and system |
CN114143086A (en) * | 2021-11-30 | 2022-03-04 | 北京天融信网络安全技术有限公司 | Web application identification method and device, electronic equipment and storage medium |
US11784895B2 (en) | 2018-12-04 | 2023-10-10 | Telecom Italia S.P.A. | Performance measurement in a packet-switched communication network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6421349B1 (en) * | 1997-07-11 | 2002-07-16 | Telecommunications Research Laboratories | Distributed preconfiguration of spare capacity in closed paths for network restoration |
US6738355B1 (en) * | 2000-11-01 | 2004-05-18 | Agilent Technologies, Inc. | Synchronization method for multi-probe communications network monitoring |
-
2005
- 2005-01-11 CN CNB2005100376650A patent/CN100361461C/en not_active Expired - Fee Related
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212358B (en) * | 2006-12-28 | 2010-05-19 | 中国移动通信集团公司 | Network performance measuring method |
CN101212360B (en) * | 2006-12-28 | 2010-12-29 | 中国移动通信集团公司 | Network performance measuring method |
CN101212361B (en) * | 2006-12-28 | 2011-06-15 | 中国移动通信集团公司 | Network performance measuring method |
CN101237356B (en) * | 2007-01-29 | 2012-05-23 | 国际商业机器公司 | System and method for monitoring |
CN102812664A (en) * | 2010-03-24 | 2012-12-05 | 诺基亚公司 | Method and apparatus for establishing an electrical connection and establishing a fiber optic connection |
CN102812664B (en) * | 2010-03-24 | 2015-11-25 | 诺基亚公司 | For setting up the method and apparatus being electrically connected and setting up Fiber connection |
CN101938459A (en) * | 2010-06-22 | 2011-01-05 | 北京豪讯美通科技有限公司 | CRNET (China Railcom Net) sSafe cooperative defense system for whole course communication network |
CN106845840A (en) * | 2016-09-29 | 2017-06-13 | 成都市食品药品检验研究院 | Performance appraisal based on gps data application, real-time early warning system |
CN106844661A (en) * | 2016-09-29 | 2017-06-13 | 成都市食品药品检验研究院 | The wisdom methods of sampling |
CN107465771A (en) * | 2017-09-20 | 2017-12-12 | 广东工业大学 | A kind of network address section division methods and system |
CN107465771B (en) * | 2017-09-20 | 2020-05-19 | 广东工业大学 | Network address segment dividing method and system |
CN107589991A (en) * | 2017-10-31 | 2018-01-16 | 麦格创科技(深圳)有限公司 | The webpage distribution method and system of distributed system |
CN110943877A (en) * | 2018-09-21 | 2020-03-31 | 华为技术有限公司 | Network state measuring method, equipment and system |
US11784895B2 (en) | 2018-12-04 | 2023-10-10 | Telecom Italia S.P.A. | Performance measurement in a packet-switched communication network |
CN114143086A (en) * | 2021-11-30 | 2022-03-04 | 北京天融信网络安全技术有限公司 | Web application identification method and device, electronic equipment and storage medium |
CN114143086B (en) * | 2021-11-30 | 2023-09-26 | 北京天融信网络安全技术有限公司 | Web application identification method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100361461C (en) | 2008-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8751642B2 (en) | Method and system for management of sampled traffic data | |
Glatz et al. | Classifying internet one-way traffic | |
US9026674B1 (en) | System and method for accurately displaying communications traffic information | |
JP4267633B2 (en) | Network system and traffic information aggregating apparatus | |
CN1645825A (en) | Terminal to terminal running performance monitoring method based on sampling measurement | |
US20150256555A1 (en) | Method and system for network connection chain traceback using network flow data | |
US20120182891A1 (en) | Packet analysis system and method using hadoop based parallel computation | |
CN112583657A (en) | Distributed routing level network topology detection method based on embedded equipment | |
CN111953552B (en) | Data flow classification method and message forwarding equipment | |
CN101068214A (en) | Route convergent method and equipment | |
CN113746654A (en) | IPv6 address management and flow analysis method and device | |
US9992081B2 (en) | Scalable generation of inter-autonomous system traffic relations | |
CN1859154A (en) | Performance managing method between household gateway and broad band remote access server | |
Plonka et al. | Assessing performance of Internet services on IPv6 | |
Brownlee | Flow-based measurement: IPFIX development and deployment | |
Al-Duwairi et al. | Topology based packet marking | |
Song et al. | Which Doors Are Open: Reinforcement Learning-based Internet-wide Port Scanning | |
CN102124698B (en) | System and method for exporting structured data in a network management environment | |
US9979613B2 (en) | Analyzing network traffic in a computer network | |
US20230327983A1 (en) | Performance measurement in a segment routing network | |
Shen et al. | Observations of IPv6 traffic | |
CN105610655A (en) | Router flow monitoring and analyzing method | |
Cheng et al. | Evaluation and design of non-cryptographic hash functions for network data stream algorithms | |
Castiglione et al. | Device tracking in private networks via napt log analysis | |
CN1913497A (en) | Method of monitoring a tandem connection in a mpls telecommunication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080109 Termination date: 20110111 |