CN110120894A - A kind for the treatment of method and apparatus of testing throughput - Google Patents

A kind for the treatment of method and apparatus of testing throughput Download PDF

Info

Publication number
CN110120894A
CN110120894A CN201910229618.8A CN201910229618A CN110120894A CN 110120894 A CN110120894 A CN 110120894A CN 201910229618 A CN201910229618 A CN 201910229618A CN 110120894 A CN110120894 A CN 110120894A
Authority
CN
China
Prior art keywords
view
message
connection terminal
throughput
depending
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
CN201910229618.8A
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910229618.8A priority Critical patent/CN110120894A/en
Publication of CN110120894A publication Critical patent/CN110120894A/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
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput

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 embodiment of the present application provides a kind for the treatment of method and apparatus of testing throughput, the method and device are applied in view networking, the view networking includes view networked server, with the multiple first view connection terminals being separately connected depending on networked server and multiple second view connection terminals, the described method includes: described first depending on connection terminal receive view networking tunnel throughput test business trigger action when, generate testing throughput message;Wherein, the testing throughput message includes the communication identifier of the view connection terminal of target second;The testing throughput message is sent to the view networked server depending on connection terminal by described first;It is described to be used to for the testing throughput message being transmitted to the view of target second connection terminal corresponding with the communication identifier depending on networked server;The test mode of the embodiment of the present application can realize point-to-point testing throughput without external testing throughput instrument throughout the country, and not only testing efficiency is higher, but also greatly reduces testing cost.

Description

A kind for the treatment of method and apparatus of testing throughput
Technical field
This application involves view networking technology fields, handle up more particularly to the processing method and one kind of a kind of testing throughput Measure the processing unit of examination.
Background technique
Network throughput test is one of most important means in network operation and trouble shoot, especially in analysis and net Handling up when the performance-relevant problem of network is indispensable means of testing.It is exactly as verifying and the most common technology of test network bandwidth Testing throughput.One typical throughput testing approach be from an equipment of network to another equipment transmitted traffic and It determines a rate and sends packet length, and the equipment of receiving end calculates the test frame received, system-computed connects at the end of test Yield-- i.e. throughput rate.This test is also referred to as end to end network performance test, it is widely used in local area network In network test environment interior, between local area network and by wide area network interconnection.
In prior art, to the network tunnel handling capacity between two point-to-point terminal devices of test, need two Terminal device respectively with a tester or beat stream device connect, using tester or beat flow device between two terminal devices Network tunnel squeeze into flow, find out the handling capacity in tunnel.
Above-mentioned test process is complex, and needing to layout throughout the country in advance has the region installation test of terminal device Instrument also wants professional technique engineer to operate tester, not only increases cost, and increase the training to manpower, be unfavorable for The development of work.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of processing method of the testing throughput to solve the above problems and a kind of corresponding processing unit of testing throughput.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of processing method of testing throughput, the method Applied in view networking, view networking includes regarding networked server, with multiple the be separately connected depending on networked server One view connection terminal and multiple second view connection terminals, which comprises
Described first depending on joining terminal when receiving the trigger action of view networking tunnel throughput test business, and generation is handled up Measure test packet;Wherein, the testing throughput message includes the communication identifier of the view connection terminal of target second;
The testing throughput message is sent to the view networked server depending on connection terminal by described first;The view networking Server is used to for the testing throughput message being transmitted to the view of target second connection terminal corresponding with the communication identifier;
Described first receives the handling capacity loopback message that the view networked server is sent depending on connection terminal;Wherein, described to gulp down The amount of spitting loopback message regards connection terminal loopback when the enabled loop fuction for judging itself is in the open state by the target second;
The first view connection terminal judge handling capacity loopback message whether packet loss, and whether according to packet loss, according in advance If dichotomy testing throughput algorithm, export throughput value.
Optionally, described first depending on joining terminal when receiving the trigger action of view networking tunnel throughput test business, Generate testing throughput message the step of include:
Described first, depending on joining terminal when receiving the first trigger action of view networking tunnel throughput test business, generates First testing throughput message;Wherein, the first long test stream of one specified packet of the first testing throughput message, described the One test stream includes the long identical first sub- test bag of several packets.
Optionally, described first the testing throughput message is sent to the step for regarding networked server depending on connection terminal Suddenly include:
Several described first sub- test bags are sent to the view by default packet sending speed depending on connection terminal by described first to be joined Network server.
Optionally, described first depending on joining terminal when receiving the trigger action of view networking tunnel throughput test business, Generate testing throughput message the step of include:
Described first, depending on joining terminal when receiving the second trigger action of view networking tunnel throughput test business, generates Second testing throughput message;Wherein, the second testing throughput message includes the second long test of multiple and different specified packets Stream, the second test stream include the long identical second sub- test bag of several packets.
Optionally, described first the testing throughput message is sent to the step for regarding networked server depending on connection terminal Suddenly include:
The test stream of m-th second is sent to the view the Internet services by default packet sending speed depending on connection terminal by described first Device, M are positive integer;
Described first depending on joining terminal when measuring the throughput value for the m-th second test stream, according to preset The M+1 second test stream is sent to the view networked server by testing sequence.
Optionally, the testing throughput message has n-th maximum packet sending speed and n-th minimum packet sending speed, N are Positive integer;In test, using the median rate of the n-th maximum packet sending speed and the n-th minimum packet sending speed, The practical packet sending speed of n-th as the testing throughput message;
The first view connection terminal judge handling capacity loopback message whether packet loss, and whether according to packet loss, according in advance If dichotomy testing throughput algorithm, export throughput value the step of include:
It is described first view connection terminal judge the handling capacity loopback message whether packet loss;
If being judged as non-packet loss, comprising the following steps:
Described first judges the n-th maximum packet sending speed and the median of the testing throughput message depending on connection terminal Whether the first difference of rate is greater than default precision;
When the first difference > presets precision, the first view connection terminal is using the median rate as N+1 Secondary minimum packet sending speed, and utilize the mean value speed of the n-th maximum packet sending speed and the N+1 times minimum packet sending speed The testing throughput message is sent to the view networked server by rate again;
When first difference≤default precision, the first view connection terminal is determined with the n-th median rate For the long this time handling capacity of the specified packet, throughput value is exported;
If being judged as packet loss, the described method comprises the following steps:
Described first depending on connection terminal judge the testing throughput message n-th minimum packet sending speed value and the centre Whether the second difference of value rate is greater than default precision;
When the second difference > presets precision, the first view connection terminal is using the median rate as N+1 Secondary maximum packet sending speed, and utilize the mean value speed of described the N+1 times maximum packet sending speed and the n-th minimum packet sending speed The testing throughput message is sent to the view networked server by rate again;
When second difference≤default precision, the first view connection terminal is true by the n-th minimum packet sending speed It is set to the long this time handling capacity of the specified packet, exports throughput value.
Optionally, described first connection terminal is regarded as view connection cat client or regards connection cat server-side, the second view connection terminal For view connection cat client or view connection cat server-side;
When described first, which regards connection terminal, joins cat client as view, described second, which regards connection terminal, joins cat server-side as view;
When described first, which regards connection terminal, joins cat server-side as view, described second, which regards connection terminal, joins cat client as view.
Based on the same inventive concept, the embodiment of the present application also discloses a kind of processing unit of testing throughput, the dress Set and be applied in view networking, view networking includes regarding networked server, with it is described be separately connected depending on networked server it is multiple First view connection terminal and multiple second view connection terminals, described device include:
Testing throughput message generation module, in the trigger action for receiving view networking tunnel throughput test business When, generate testing throughput message;Wherein, the testing throughput message includes the communication identifier of the view connection terminal of target second;
Testing throughput message sending module, for the testing throughput message to be sent to the view the Internet services Device;It is described to be used to the testing throughput message being transmitted to target second corresponding with the communication identifier depending on networked server Depending on joining terminal;
Handling capacity loopback message receiving module, the handling capacity loopback message sent for receiving the view networked server; Wherein, the handling capacity loopback message regards connection terminal by the target second and is in unlatching in the enabled loop fuction for judging itself Loopback when state;
Throughput value computing module, for judging whether the handling capacity loopback message occurs packet loss, and according to packet loss with It is no, according to preset dichotomy testing throughput algorithm, export throughput value.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the method that described device executes one or more described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the method that the processor executes one or more described in the embodiment of the present application.
The embodiment of the present application includes the following advantages:
The characteristic of the embodiment of the present application application view networking joins terminal (in the application to view in all parts of the country is had been distributed among View connection cat client and view connection cat server-side are referred mainly in embodiment) software development is carried out, it can be used as its own and beat flow device Test bag is sent using in depending on networking tunnel, is provided simultaneously with and enables to return function, it can be by received test bag automatic ring It returns, point-to-point testing throughput can be realized without external testing throughput instrument with this throughout the country, not only tested It is more efficient, and greatly reduce testing cost;
The characteristic of the embodiment of the present application application view networking, can once-through operation test the long view networking of one or more specified packets Message, saving manpower can go to complete other things after user initiates testing throughput, more humanized;
The characteristic of the embodiment of the present application application view networking, the measuring and calculating of dichotomy is carried out using median, is not only convenient for counting It calculates, and the method for looking for throughput value is very fast, can save the testing time.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is a kind of networking schematic diagram of the processing system of testing throughput of the embodiment of the present application;
Fig. 6 is a kind of step flow chart of the processing method of testing throughput of the embodiment of the present application;
Fig. 7 is a kind of structural block diagram of the processing unit of testing throughput of the embodiment of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 the embodiment of the present application can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in the embodiment of the present application:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in the embodiment of the present application: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of core idea of the embodiment of the present application is proposed, it then follows regard the association of networking View in all parts of the country (refers mainly to view connection cat client and view connection cat depending on connection terminal to having been distributed among in the embodiment of the present application Server-side) software development is carried out, so that its own is can be used as dozen flow device use and send test bag in depending on networking tunnel, has simultaneously It is standby to enable to return function, can be by received test bag auto-returned, it can without external testing throughput instrument with this Point-to-point testing throughput is realized throughout the country, and not only testing efficiency is higher, but also greatly reduces testing cost.
Embodiment 1:
As shown in figure 5, a kind of networking schematic diagram of the processing system of testing throughput of the embodiment of the present application is shown, it is described System can be applied in view networking, and the view networking includes view networked server 51, distinguish with the view networked server 51 Multiple first view connection terminals 52 of connection and multiple second view connection terminals 53.
View networking at present is mainly networked by the main Core server of 1 view networking, most 254 views from Core server, view Networked terminals and other auxiliary systems form, and general one depending on the view networking area where managing oneself from Core server that networks (regarding intranet zone can be an administrative region, such as province, city, county, area in domain;It can also be service area, i.e., be divided with business Region), a view for regarding networking protocol based on 16 is networked from 16 fang platform regions of Core server at most accessible 2 Depending on networked terminals;64 fang platform regions that the view for regarding networking protocol based on 64 is networked from Core server at most accessible 2 View networked terminals.It must be connected depending on networking from Core server, the main Core server of the view that networks networking, it just can be with other views Networking communicates from Core server, carries out business.Based on the above principles, summarize, will pass through to complete the application purpose The view networked server 51 being referred to as depending on networking main Core server and view networking from Core server in the embodiment of the present application.
Multiple first belong to one depending on connection terminal 53 depending on connection terminal 52 and multiple second mentioned by the embodiment of the present application Depending on networked terminals product, communicated respectively with depending on networked server 51 based on view networking protocol.
In one alternative embodiment of the application, the product for showing the first view connection terminal 52 and the second view connection terminal 53 may Property, i.e., described first regards connection terminal 52 as view connection cat client or view connection cat server-side, and described second regards connection terminal 53 as view connection Cat client or view connection cat server-side;
When described first, which regards connection terminal 52, joins cat client as view, described second regards connection terminal 53 as view connection cat service End;
When described first, which regards connection terminal 52, joins cat server-side as view, described second, which regards connection terminal 53, joins cat client as view End.
It is to meet view on-line customer and access non-view networking (internet, IPTV private network, other fields depending on connection cat client Business private network etc.) application demand, extension view networked platforms application research and development a product (can be considered a set-top box), be regard Networking carries the access device of the existing network application based on IP system.Regard connection cat server-side (can be considered a set-top box) be as The application demand for meeting the non-view networking (internet, IPTV private network, other field business private networks etc.) of view on-line customer's access, expands A product of exhibition view networked platforms application research and development, is that the convergence for carrying the existing network application based on IP system depending on networking is set It is standby.
The test of the handling capacity to be done of the embodiment of the present application is for the first view connection terminal 52 and the second view connection terminal 53 By the test in one that forwards data to be established depending on networked server 51 point-to-point view networking tunnel, view connection is mainly tested The network throughput in net tunnel.
When the first view connection terminal 52 and the second view connection terminal 53 are respectively to regard connection cat client, view connection cat server-side, or Respectively view connection cat server-side, view connection cat client when, the embodiment of the present application be mainly used for one view of test connection cat server-side with View between one view connection cat client networks tunnel in the case where no frame loss, the maximum that tunnel can be received and be forwarded Message transmission rate.
The processing system of above-mentioned testing throughput eliminates tester or beats stream device, can be real without external tool Now invention mesh.Next, being directed to present invention point, how join terminal 53 itself using the first view connection terminal 52 and the second view The test for realizing handling capacity, will elaborate in example 2.
Embodiment 2:
As shown in fig. 6, a kind of step flow chart of the processing method of testing throughput of the embodiment of the present application is shown, it is described Method can be applied in view networking, and the method applies first described in Fig. 5 to regard in connection terminal 52, and the method specifically may be used With the following steps are included:
Step S601: described first is receiving the trigger action for regarding networking tunnel throughput test business depending on connection terminal 52 When, generate testing throughput message;Wherein, the testing throughput message includes the communication mark of the view connection terminal 53 of target second Know;
First is collocated with a user oriented system depending on connection terminal 52, and the system is mountable in the PC based on windows On, system shows as a Background control webpage, for interacting with user, checks and operates for user, but actual number It is realized by first depending on connection terminal 52 according to processing.Such as first regard connection terminal 52 for view connection cat client when, the system be view join cat The webpage version management backstage of client, the management backstage have multiple display interfaces, such as system property interface, user's access tube Interface etc. is managed, for example user can check/modify the essential attribute of view connection cat client in webpage version management backstage.
The embodiment of the present application carries out business function exploitation mainly for the first view connection terminal 52, and the system after exploitation has special The testing throughput interface of door.Based on the above principles, the trigger action depending on networking tunnel throughput test business can refer to handling up Measure the operation that test interface carries out.Above-mentioned trigger action may include setting to give out a contract for a project to wrap length, quantity of giving out a contract for a project, granularity, packet sending speed Maximum value and minimum value etc., then click the button for initiating testing throughput.The testing algorithm of handling capacity using dichotomy come It realizes.
It according to the difference of business, is grown depending on the specific different packets of networking message, such as 64,128,256,512,1024,1518 etc. The message of single byte length.So the application, when carrying out testing throughput, described first is receiving view depending on connection terminal 52 When the trigger action of tunnel throughput of networking test business, generating testing throughput message may include following two method:
First alternative embodiment, described first is receiving the of view networking tunnel throughput test business depending on connection terminal 52 When one trigger action, the first testing throughput message is generated;Wherein, one specified packet of the first testing throughput message is grown First test stream, the first test stream include the long identical first sub- test bag of several packets.
Embodiments described above illustrate a trigger action is carried out, first only surveys a kind of specified packet length depending on connection terminal 52 Examination, the first testing throughput message generated only include a kind of data flow that specified packet is long.Such as in testing throughput interface A length of 64 byte of packet of test is set, and quantity of always giving out a contract for a project is 1000, and the first test stream thus generated includes 1000 first Sub- test bag, the long packet of each first sub- test bag is 64 bytes (specified packet is long).
The specific aim of such mode is stronger, and a kind of packet length is only tested in disposable operation, and being suitable for a certain specific transactions (should Business generate a kind of specified packet of most data Bao Douwei it is long) carry out before tested, with ensure data transmission stabilization Property and validity.
Second alternative embodiment, described first is receiving the of view networking tunnel throughput test business depending on connection terminal 52 When two trigger actions, the second testing throughput message is generated;Wherein, the second testing throughput message includes multiple and different spies The second long test stream of fixed packet, the second test stream include the long identical second sub- test bag of several packets.
Embodiments described above illustrate a trigger action is carried out, first successively carries out a variety of specified packets length depending on connection terminal 52 Test, the second testing throughput message generated also include the second long test stream of multiple and different specified packets.Such as handling capacity This is set in test interface and operates the packet a length of 64 successively tested, 128,256,512 bytes, every kind of specified packet is grown total Quantity of giving out a contract for a project all is 1000, and the second testing throughput message thus generated includes the second survey of 64,128,256,512 bytes Examination stream, each second test stream includes 1000 the second sub- test bags.
Mode is tested more convenient at this time, and a variety of packet length are tested in disposable operation, save manpower, and user initiates measurement of handling up After examination, it can go to complete other things, it is more humanized.
The testing throughput message is sent to the view networked server depending on connection terminal 52 by step S602: described first 51;It is described to be used to for the testing throughput message to be transmitted to target corresponding with the communication identifier the depending on networked server 51 Two view connection terminals 53;
Next, different according to the trigger action of step S601, first view joins terminal 52 for the testing throughput It depending on the step of networked server 51 also includes following two situation that message, which is sent to described:
The first, for the first alternative embodiment, since the first testing throughput message packet of transmission only includes a kind of spy Fixed packet length, sending the first testing throughput message packet has minimum packet sending speed and maximum packet sending speed, sending step are as follows:
Step 1: described first is sent to several described first sub- test bags by default packet sending speed depending on connection terminal 52 The view networked server 51.
When above-mentioned steps one implement, when the first view connection terminal 52 is sent, by default packet sending speed (preset handling capacity Test rate) several first sub- test bags are sent to the view networked server 51 one by one.Specifically default packet sending speed by First is calculated depending on connection terminal 52 according to preset dichotomy testing throughput algorithm, for example initial maximum packet sending speed is 1000M, initial minimum packet sending speed are 100M, and granularity 10M, first regards connection terminal 52 when sending first time, presses (100M + 1000M)/2=550M transmitted traffic, several described first sub- test bags are successively sent to the view networked server 51.
Second, for the second alternative embodiment, since the second testing throughput message packet of transmission includes a variety of specific Packet length, the second testing throughput message packet of transmission also have minimum packet sending speed and maximum packet sending speed, sending step are as follows:
Step 2: the test stream of m-th second is sent to the view by default packet sending speed depending on connection terminal 52 by described first Networked server 51, M are positive integer;
Step 3: described first depending on joining terminal 52 when measuring the throughput value for the m-th second test stream, root According to preset testing sequence, the M+1 second test stream is sent to the view networked server 51.
The test stream of m-th second is sent to institute by default packet sending speed (preset testing throughput rate) in step 2 State the specific sending method of view networked server 51 referring to step 1, not described here any more.As soon as right due to being time trigger action A variety of specified packets length is successively tested, then according to testing throughput interface setting testing sequence (such as to 64,128, Sequencing when the second long sub- test bag of 256,512 byte packets is tested), successively handle up every kind of specified packet length Measure examination.For example testing sequence is followed successively by 64,128,256,512 bytes, then to the second test stream (M for wrapping a length of 64 byte After 1) testing, i.e., when obtaining wrapping the throughput value of a length of 64 byte, then automatic the second survey for issuing a length of 128 byte of packet Examination stream (M 2) is tested;It is surveyed when obtaining wrapping the throughput value of a length of 128 byte, then to wrap a length of 256 byte second Examination stream is tested ...
It is described receive the testing throughput message depending on networked server 51 after, according to the logical of the recipient in test bag Beacon is known, and determines the MAC Address of the view connection terminal 53 of target second;
It is described testing throughput message is transmitted to target second corresponding with the MAC Address depending on networked server 51 to regard Join terminal 53.
Step S603: described first receives the handling capacity loopback report that the view networked server 51 is sent depending on connection terminal 52 Text;Wherein, the handling capacity loopback message regards connection terminal 53 in the enabled loop fuction for judging itself by the target second It is returned when open state;
In the prior art, it in test, after target second receives testing throughput message depending on connection terminal 53, can will also gulp down The amount of spitting test packet is transmitted to external tester or testing throughput machine, is then operated, will be gulped down by professional test personnel The amount of spitting test packet returns.But the embodiment of the present application is opened using target second depending on joining the CPU or FPGA of terminal 53 itself Hair, so that the view connection terminal 53 of target second is provided with enabled function of returning and (specifically joins in terminal 53 or target in the view of target second An enabled loop back switch is shown as in the second Background control webpage depending on joining terminal 53), target second is regarded connection terminal by user 53 it is enabled return function open after, target second view join terminal 53 after receiving any data packet, all can be to data packet Rejection is achieved that without external testing throughput instrument with this and is measured to handling up by its backtracking to sender The backtracking of message is tried, and the return operation of testing throughput message can be executed automatically, testing efficiency is higher.
After first receives the handling capacity loopback message that the view connection terminal 53 of target second returns depending on connection terminal 52, next, Execute following steps:
Step S604: described first depending on connection terminal 52 judge the handling capacity loopback message whether packet loss, and according to packet loss Whether, according to preset dichotomy testing throughput algorithm, export throughput value.
In specific implementation, the first maximum packet sending speed and most that all can first set testing throughput message depending on connection terminal 52 Then testing throughput message is sent according to preset dichotomy testing throughput algorithm, is then looked for by small packet sending speed The throughput value long to test bag.
In one preferred embodiment of the application, dichotomy testing throughput algorithm is shown with maximum packet sending speed and minimum The median of packet sending speed determines the mode of throughput value.The measuring and calculating that dichotomy is carried out using median is not only convenient for counting It calculates, and the method for looking for throughput value is very fast, can save the testing time.
Specifically, the testing throughput message has n-th maximum packet sending speed and n-th minimum packet sending speed, N are Positive integer;In test, using the median rate of the n-th maximum packet sending speed and the n-th minimum packet sending speed, The practical packet sending speed of n-th as the testing throughput message;
Step S604 may include following sub-step:
Sub-step (1): described first depending on connection terminal 52 judge the handling capacity loopback message whether packet loss;
Judge whether that the specific method of packet loss may is that in this step
First view joins terminal 52 for the sub- test bag and this transmission in this received handling capacity loopback message The quantity of sub- test bag in testing throughput message is compared, if the quantity of the sub- test bag in handling capacity loopback message Less than the quantity of the sub- test bag in testing throughput message, then it is judged as packet loss, vice versa.
If being judged as non-packet loss, comprising the following steps:
Sub-step (2): described first judges the n-th maximum packet sending speed of the testing throughput message depending on connection terminal 52 Whether it is greater than default precision with the first difference of the median rate;
Sub-step (3): when the first difference > presets precision, the first view connection terminal 52 is with the median speed Rate is given out a contract for a project speed as the N+1 times minimum packet sending speed, and using the n-th maximum packet sending speed and the N+1 times minimum The testing throughput message is sent to the view networked server 51 by the mean value rate of rate again;
Sub-step (4): when first difference≤default precision, the first view connection terminal 52 is in the n-th Between value rate be determined as the long this time handling capacity of the specified packet, export throughput value;
If being judged as packet loss, the described method comprises the following steps:
Sub-step (5): described first judges the n-th minimum packet sending speed of the testing throughput message depending on connection terminal 52 Whether the second difference of value and the median rate is greater than default precision;
Sub-step (6): when the second difference > presets precision, the first view connection terminal 52 is with the median speed Rate is given out a contract for a project speed as the N+1 times maximum packet sending speed, and using described the N+1 time maximum packet sending speed and the n-th minimum The testing throughput message is sent to the view networked server 51 by the mean value rate of rate again;
Sub-step (7): when second difference≤default precision, the first view connection terminal 52 by the n-th most Small packet sending speed is determined as the long this time handling capacity of the specified packet, exports throughput value.
For sub-step (2)~(7), it is described in detail below using a specific example:
Set initial maximum packet sending speed is 1000M, and initial minimum packet sending speed is 0M, and presetting precision is granularity 100M。
(1) when the 3rd non-packet loss, default precision is judged as 1000-875=125 > 100, reduces test scope at this time, Described testing throughput message the 4th is sent to the view networked server 51.
The 4th minimum packet sending speed at this time is 875M, and the 4th maximum packet sending speed is still 1000M, the 4th median Rate is 937M, the practical packet sending speed using 937M as the 4th.
If sending non-packet loss with 937M, but default precision is judged as 1000-937 < 100, illustrates the practical packet sending speed of the 4th (being at this time 4 median rates) is exactly the long most accurate handling capacity of the specified packet, exports throughput value, is 937M;
If sending packet loss with 937M, default precision is judged as 937-875 < 100, illustrates using 937M as speed of actually giving out a contract for a project Rate has had exceeded the throughput value in view networking tunnel, and the difference obtained has been less than granularity (default precision), this gives out a contract for a project Rate cannot divided, this value of 937M is unavailable, be at this time 875M with the 4th minimum packet sending speed be that the specified packet is long Most accurate handling capacity exports throughput value, is 875M.
(2) when the 3rd packet loss, default precision is judged as 875-750=125 > 100, reduces test scope at this time, by institute It states testing throughput message the 4th and is sent to the view networked server 51.
The 4th minimum packet sending speed at this time is identical as the 3rd time, is still 750M, and the 4th maximum packet sending speed becomes 875M, the 4th median rate are 812M, the practical packet sending speed using 812M as the 4th.
If sending non-packet loss with 812M, but default precision is judged as 875-812 < 100, illustrates the practical packet sending speed of the 4th (being at this time 4 median rates) is exactly the long most accurate handling capacity of the specified packet, exports throughput value, is 812M;
If sending packet loss with 812M, but default precision is judged as 812-750 < 100, illustrate using 812M as actually giving out a contract for a project The difference that rate is obtained has been less than granularity, cannot divide, and be at this time 750M with the 4th minimum packet sending speed is the spy The long most accurate handling capacity of fixed packet, exports throughput value, is 750M.
To sum up, the embodiment of the present application can be realized in the above manner to the convenient test of view networking tunnel throughput, can save About a large amount of testing costs.
In the following, being directed to the technical effect of the application, further illustrated using a specific example.
--- --- the Xinjiang in Beijing, needs to test the handling capacity of this link.
Original scheme:
A tester is put in Beijing, to put a tester in Xinjiang, then two places engineer requires will use Tester, aptitude test handling capacity need to prepare 100 testers, and this if having 1,000,000 test point in the whole nation A little all engineers require using tester, and some engineer's minority name races, training cost is very high, and engineer requires root Handling capacity is gone for according to dichotomy testing algorithm, it is time-consuming larger, and a tester minimum 100,000.
Scheme provided by the embodiments of the present application:
View in Xinjiang joins cat server-side, it is only necessary to log in web and open its loop fuction, Beijing engineer is in view connection cat visitor Family end is arranged the latter key of parameter and initiates test, waits for a period of time, can obtain throughput test results, reduces a large amount of survey It tries cost and operation is more convenient.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.
Embodiment 3:
As shown in fig. 7, based on the same inventive concept, the method for corresponding the embodiment of the present application 2 shows the embodiment of the present application A kind of structural block diagram of the processing unit of testing throughput;Described device applies first described in Fig. 5 to regard in connection terminal 52, institute Stating first can specifically include depending on connection terminal 52 with lower module:
Testing throughput message generation module 701, in the triggering for receiving view networking tunnel throughput test business When operation, testing throughput message is generated;Wherein, the testing throughput message includes the communication of the view connection terminal 53 of target second Mark;
Testing throughput message sending module 702, for the testing throughput message to be sent to the view networking clothes Business device 51;It is described to be used to the testing throughput message being transmitted to mesh corresponding with the communication identifier depending on networked server 51 Mark the second view connection terminal 53;
Handling capacity loopback message receiving module 703, the handling capacity loopback sent for receiving the view networked server 51 Message;Wherein, the handling capacity loopback message regards connection terminal 53 in the enabled loop fuction for judging itself by the target second Loopback when in the open state;
Throughput value computing module 704, for judge the handling capacity loopback message whether packet loss, and according to packet loss with It is no, according to preset dichotomy testing throughput algorithm, export throughput value.
Based on the same inventive concept, the method for corresponding the embodiment of the present application 2, the testing throughput message generation module 701 can specifically include following submodule:
First testing throughput message generates submodule, for receiving the of view networking tunnel throughput test business When one trigger action, the first testing throughput message is generated;Wherein, one specified packet of the first testing throughput message is grown First test stream, the first test stream include the long identical first sub- test bag of several packets.
Based on the same inventive concept, the method for corresponding the embodiment of the present application 2, testing throughput message sending module 702 have Body may include following submodule:
First testing throughput message sending submodule, for by several described first sub- test bags by default speed of giving out a contract for a project Rate is sent to the view networked server 51.
Based on the same inventive concept, the method for corresponding the embodiment of the present application 2, the testing throughput message generation module 701 can also include specifically following submodule:
Second testing throughput message generates submodule, for receiving the of view networking tunnel throughput test business When two trigger actions, the second testing throughput message is generated;Wherein, the second testing throughput message includes multiple and different spies The second long test stream of fixed packet, the second test stream include the long identical second sub- test bag of several packets.
Based on the same inventive concept, the method for corresponding the embodiment of the present application 2, testing throughput message sending module 702 have Body can also include following submodule:
Second the first sending submodule of testing throughput message, for the test stream of m-th second to be pressed default packet sending speed It is sent to the view networked server 51, M is positive integer;
Second the second sending submodule of testing throughput message, for receiving for the m-th second test stream Throughput value when, according to preset testing sequence, the M+1 second test stream is sent to the view networked server 51。
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the method that described device executes one or more described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the method that the processor executes one or more described in the embodiment of the present application.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The processing dress of processing method to a kind of testing throughput provided herein and a kind of testing throughput above It sets, is described in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general skill of this field Art personnel, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as the limitation to the application.

Claims (10)

1. a kind of processing method of testing throughput, which is characterized in that the method is applied in view networking, the view networking packet View networked server is included, it is whole with the multiple first view connection terminals and multiple second view connection being separately connected depending on networked server End, which comprises
Described first, depending on joining terminal when receiving the trigger action of view networking tunnel throughput test business, generates measurement of handling up Try message;Wherein, the testing throughput message includes the communication identifier of the view connection terminal of target second;
The testing throughput message is sent to the view networked server depending on connection terminal by described first;The view the Internet services Device is used to for the testing throughput message being transmitted to the view of target second connection terminal corresponding with the communication identifier;
Described first receives the handling capacity loopback message that the view networked server is sent depending on connection terminal;Wherein, the handling capacity Loopback message regards connection terminal loopback when the enabled loop fuction for judging itself is in the open state by the target second;
The first view connection terminal judge the handling capacity loopback message whether packet loss, and whether according to packet loss, according to preset Dichotomy testing throughput algorithm exports throughput value.
2. the method according to claim 1, wherein described first depending on connection terminal receive view network tunnel gulp down Spit measure examination business trigger action when, generate testing throughput message the step of include:
Described first, depending on joining terminal when receiving the first trigger action of view networking tunnel throughput test business, generates first Testing throughput message;Wherein, the first long test stream of one specified packet of the first testing throughput message, described first surveys Examination stream includes the long identical first sub- test bag of several packets.
3. according to the method described in claim 2, it is characterized in that, first view joins terminal for the testing throughput message It is sent to and described includes: depending on the step of networked server
Several described first sub- test bags are sent to the view networking clothes by default packet sending speed depending on connection terminal by described first Business device.
4. the method according to claim 1, wherein described first depending on connection terminal receive view network tunnel gulp down Spit measure examination business trigger action when, generate testing throughput message the step of include:
Described first, depending on joining terminal when receiving the second trigger action of view networking tunnel throughput test business, generates second Testing throughput message;Wherein, the second testing throughput message includes the second long test stream of multiple and different specified packets, institute Stating the second test stream includes the long identical second sub- test bag of several packets.
5. according to the method described in claim 4, it is characterized in that, first view joins terminal for the testing throughput message It is sent to and described includes: depending on the step of networked server
The test stream of m-th second is sent to the view networked server by default packet sending speed depending on connection terminal by described first, and M is Positive integer;
Described first depending on joining terminal when measuring the throughput value for the m-th second test stream, according to preset test Sequentially, the M+1 second test stream is sent to the view networked server.
6. method according to claim 2 or 4, which is characterized in that the testing throughput message is sent out with n-th maximum Packet rate and n-th minimum packet sending speed, N are positive integer;Test when, using the n-th maximum packet sending speed with it is described The median rate of n-th minimum packet sending speed, the practical packet sending speed of n-th as the testing throughput message;
The first view connection terminal judge the handling capacity loopback message whether packet loss, and whether according to packet loss, according to preset Dichotomy testing throughput algorithm, export throughput value the step of include:
It is described first view connection terminal judge the handling capacity loopback message whether packet loss;
If being judged as non-packet loss, comprising the following steps:
Described first judges the n-th maximum packet sending speed and the median rate of the testing throughput message depending on connection terminal The first difference whether be greater than default precision;
When the first difference > preset precision when, it is described first view connection terminal using the median rate as the N+1 times most Small packet sending speed, and using the mean value rate of the n-th maximum packet sending speed and the N+1 times minimum packet sending speed, it will The testing throughput message is sent to the view networked server again;
When first difference≤default precision, described first is determined as institute depending on connection terminal with the n-th median rate The long this time handling capacity of specified packet is stated, throughput value is exported;
If being judged as packet loss, the described method comprises the following steps:
Described first judges the n-th minimum packet sending speed value and median speed of the testing throughput message depending on connection terminal Whether the second difference of rate is greater than default precision;
When the second difference > preset precision when, it is described first view connection terminal using the median rate as the N+1 times most Big packet sending speed, and using the mean value rate of described the N+1 times maximum packet sending speed and the n-th minimum packet sending speed, it will The testing throughput message is sent to the view networked server again;
When second difference≤default precision, described first is determined as the n-th minimum packet sending speed depending on connection terminal The long this time handling capacity of the specified packet, exports throughput value.
7. the method according to claim 1, wherein described first regards connection terminal as view connection cat client or view connection Cat server-side, described second regards connection terminal as view connection cat client or view connection cat server-side;
When described first, which regards connection terminal, joins cat client as view, described second, which regards connection terminal, joins cat server-side as view;
When described first, which regards connection terminal, joins cat server-side as view, described second, which regards connection terminal, joins cat client as view.
8. a kind of processing unit of testing throughput, which is characterized in that described device is applied in view networking, the view networking packet View networked server is included, it is whole with the multiple first view connection terminals and multiple second view connection being separately connected depending on networked server End, described device include:
Testing throughput message generation module, for receive view networking tunnel throughput test business trigger action when, Generate testing throughput message;Wherein, the testing throughput message includes the communication identifier of the view connection terminal of target second;
Testing throughput message sending module, for the testing throughput message to be sent to the view networked server;Institute It states and is used to for the testing throughput message being transmitted to the view of target second connection corresponding with the communication identifier depending on networked server Terminal;
Handling capacity loopback message receiving module, the handling capacity loopback message sent for receiving the view networked server;Wherein, The handling capacity loopback message is in the open state in the enabled loop fuction for judging itself by the target second view connection terminal When loopback;
Throughput value computing module, for judging whether the handling capacity loopback message occurs packet loss, and whether according to packet loss, according to According to preset dichotomy testing throughput algorithm, throughput value is exported.
9. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made The methods for obtaining the one or more that described device is executed as described in claim 1-7.
10. one or more machine readable medias, which is characterized in that instruction is stored thereon with, when by one or more processors When execution, so that the processor executes one or more methods as described in claim 1-7.
CN201910229618.8A 2019-03-25 2019-03-25 A kind for the treatment of method and apparatus of testing throughput Withdrawn CN110120894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229618.8A CN110120894A (en) 2019-03-25 2019-03-25 A kind for the treatment of method and apparatus of testing throughput

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229618.8A CN110120894A (en) 2019-03-25 2019-03-25 A kind for the treatment of method and apparatus of testing throughput

Publications (1)

Publication Number Publication Date
CN110120894A true CN110120894A (en) 2019-08-13

Family

ID=67520623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229618.8A Withdrawn CN110120894A (en) 2019-03-25 2019-03-25 A kind for the treatment of method and apparatus of testing throughput

Country Status (1)

Country Link
CN (1) CN110120894A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493555A (en) * 2019-08-22 2019-11-22 视联动力信息技术股份有限公司 Request processing method, user terminal, Core server, equipment and storage medium
CN113542066A (en) * 2021-07-13 2021-10-22 杭州安恒信息技术股份有限公司 Equipment performance testing method and device and related equipment
CN114844806A (en) * 2022-04-15 2022-08-02 中国信息通信研究院 Throughput measuring method and device of network equipment, testing system and storage medium
CN115361320A (en) * 2022-08-15 2022-11-18 武汉思普崚技术有限公司 Test method and test system for automatically testing throughput performance of bypass equipment
CN115514681A (en) * 2022-09-16 2022-12-23 北京天融信网络安全技术有限公司 Method, device, system, equipment and medium for testing equipment stability

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493555A (en) * 2019-08-22 2019-11-22 视联动力信息技术股份有限公司 Request processing method, user terminal, Core server, equipment and storage medium
CN113542066A (en) * 2021-07-13 2021-10-22 杭州安恒信息技术股份有限公司 Equipment performance testing method and device and related equipment
CN113542066B (en) * 2021-07-13 2022-06-07 杭州安恒信息技术股份有限公司 Equipment performance testing method and device and related equipment
CN114844806A (en) * 2022-04-15 2022-08-02 中国信息通信研究院 Throughput measuring method and device of network equipment, testing system and storage medium
CN114844806B (en) * 2022-04-15 2023-08-25 中国信息通信研究院 Throughput measuring method and device for network equipment, testing system and storage medium
CN115361320A (en) * 2022-08-15 2022-11-18 武汉思普崚技术有限公司 Test method and test system for automatically testing throughput performance of bypass equipment
CN115361320B (en) * 2022-08-15 2023-11-17 武汉思普崚技术有限公司 Test method and test system for automatically testing throughput performance of bypass equipment
CN115514681A (en) * 2022-09-16 2022-12-23 北京天融信网络安全技术有限公司 Method, device, system, equipment and medium for testing equipment stability

Similar Documents

Publication Publication Date Title
CN110120894A (en) A kind for the treatment of method and apparatus of testing throughput
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN108965224A (en) A kind of method and apparatus of video on demand
CN109525460A (en) A kind of method and apparatus of view networking number resource monitoring
CN108965040A (en) A kind of business monitoring method and device of view networking
CN109617956A (en) A kind of data processing method and device
CN109151058A (en) A kind of data transmission method and device
CN109818776A (en) Micro services module exception localization method and device
CN110381030A (en) A kind of processing method and processing device of synchronization request
CN110381119A (en) A kind of acquisition methods of log information, system and device and storage medium
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN107888401A (en) A kind of method and system of the monitoring regarding networked terminals cpu busy percentage in real time
CN109587002A (en) A kind of condition detection method and system regarding networking monitoring equipment
CN108881895A (en) A kind of malfunction elimination method and apparatus based on view networking
CN109587432A (en) A kind of conference speech terminal switching method and system
CN109525463A (en) A kind of method and apparatus of 64 view networking protocol communication functions of detection
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN108696398B (en) Communication loopback fault detection method and device in a kind of communication network
CN110493149A (en) A kind of method and apparatus of Message processing
CN110336710A (en) A kind of test method of terminal, system and device and storage medium
CN110430168A (en) A kind of method and apparatus of data compression
CN110266577A (en) A kind of tunnel establishing method and view networked system
CN109698953A (en) A kind of condition detection method and system regarding networking monitoring equipment
CN109889775A (en) A kind of method and apparatus of data timeout treatment
CN109525635A (en) A kind of acquisition methods and system of memory usage

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

Application publication date: 20190813