CN109150665A - A kind of bandwidth test method and apparatus - Google Patents
A kind of bandwidth test method and apparatus Download PDFInfo
- Publication number
- CN109150665A CN109150665A CN201811132050.XA CN201811132050A CN109150665A CN 109150665 A CN109150665 A CN 109150665A CN 201811132050 A CN201811132050 A CN 201811132050A CN 109150665 A CN109150665 A CN 109150665A
- Authority
- CN
- China
- Prior art keywords
- test
- test lead
- bandwidth
- lead
- data packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The present embodiments relate to view networking technology fields, provide a kind of bandwidth test method and apparatus, and this method includes being established and being communicated to connect by view networking protocol with the first test lead;It is established and is communicated to connect by view networking protocol at least one second test lead;Receive the number of test data packet and test data packet that the first test lead is sent by data link layer;Test data packet and number are sent at least one second test lead by data link layer;Bandwidth test packet loss is obtained from least one second test lead;Transmission bandwidth tests packet loss to the first test lead, so that the first test lead is according to the determining bandwidth test result between at least one second test lead of bandwidth test packet loss.Test data packet of the embodiment of the present invention is sent by the data link layer of view networking, and safety greatly improves.
Description
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of bandwidth test method and apparatus.
Background technique
Domestic network line is mostly contracted by large-scale operator at present, and enterprise, which needs to lease bandwidth to operator and realizes, leads to
Letter transmission, in order to preferable balancing bandwidth cost, needs accurately to measure line bandwidth, realizes compared with limits benefit
With.
In the prior art, when carrying out bandwidth test, Data Transport Protocol often relies on ICP/IP protocol, data transmission
Often rely on network layer.
Inventor has found that above-mentioned technical proposal has the following disadvantages: TCP/IP during studying above-mentioned technical proposal
The safety coefficient of Protocol network layer is low, and when test is easy to bring safety problem.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
The bandwidth test method and apparatus to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of bandwidth test methods, are applied to view networking, described
Method includes:
It is established and is communicated to connect by view networking protocol with the first test lead;
It is established and is communicated to connect by view networking protocol at least one second test lead;
Receive the number of test data packet and the test data packet that the first test lead is sent by data link layer;
The test data packet and the number are sent at least one described second test lead by data link layer;
Bandwidth test packet loss is obtained from least one described second test lead;
The bandwidth test packet loss is sent to first test lead, so that first test lead is according to the bandwidth
Test the bandwidth test result between packet loss determination and at least one described second test lead.
The present invention also provides a kind of bandwidth test devices, are applied to view networking, and described device includes:
First communication building block is communicated to connect for being established with the first test lead by view networking protocol;
Second communication building block is communicated to connect for being established at least one second test lead by view networking protocol;
First receiving module, the test data packet sent by data link layer for receiving the first test lead and the survey
Try the number of data packet;
First sending module, for sending the test number at least one described second test lead by data link layer
According to packet and the number;
Module is obtained, for obtaining bandwidth test packet loss from least one described second test lead;
Second sending module, for sending the bandwidth test packet loss to first test lead, so that described first
Test lead is according to the bandwidth test result between the bandwidth test packet loss determination and at least one described second test lead.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention is established between the first test lead and at least one second test lead can be using view networking protocol
The channel communicated allows the first test lead to send test data packet and institute by regarding the data link layer of networking protocol
State the number of test data packet;And at least one second test lead can also be received by the data link layer depending on networking protocol
Test data packet and the number, and then the rate and test data packet of test data packet can be sent according to the first test lead
Number, determines the bandwidth and bandwidth test packet loss of present communications, bandwidth test packet loss is sent to the first test lead, then and first
Test lead can be according to the determining bandwidth test result between at least one second test lead of bandwidth test packet loss.The present invention
In embodiment, test data packet is sent by the data link layer of view networking, and safety greatly improves.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of bandwidth test embodiment of the method for the invention;
Fig. 6 is a kind of specific steps flow chart of bandwidth test embodiment of the method for the invention;
Fig. 7 is a kind of bandwidth test system equipment schematic diagram of the invention;
Fig. 8 is a kind of structural block diagram of bandwidth test Installation practice of the invention;
Fig. 9 is a kind of specific block diagram of bandwidth test Installation practice of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further 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 system 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
It is all incorporated into a system etc. services such as tens of kinds of videos, voice, picture, text, communication, data, passes through TV or computer
Realize that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
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 system, 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 system
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 system 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 system 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 system, 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 system, obtain rich
The multimedia video service of rich colorful various forms.Unified video system 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 system (part in virtual coil), multiple unified video systems
System can form view networking;Each unified video system can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention 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 embodiments of the present invention:
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 embodiments of the present invention: 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 the core concepts of the embodiments of the present invention is proposed, in bridge service device
It is provided with the first virtual terminal corresponding with first terminal, and the second virtual terminal corresponding with second terminal, first is virtual whole
End can be by being communicated depending on networking with first terminal, and the second virtual terminal can be by turning server depending on networking and the second association
It is communicated;First virtual terminal can receive the source synchronous request of first terminal, pass through determining pair of source synchronous request
After the second virtual terminal answered, source synchronous can be requested to be transmitted to the second virtual terminal, the second virtual terminal further will
Source synchronous request is sent to second terminal, so that target resource data are transferred to bridge service device, bridge joint clothes by second terminal
After business device receives target resource data by the second virtual terminal, target resource data forwarding is given by the first virtual terminal
First terminal;I.e. by bridge service device, first terminal and second terminal in independent view networking can be made to realize resource
Synchronous, specifically, first terminal can be synchronized to the target resource data in second terminal.
Referring to Fig. 5, a kind of step flow chart of bandwidth test embodiment of the method for the invention is shown, this method can answer
It networks for regarding, this method can specifically include following steps:
Step 501: being established and communicated to connect by view networking protocol with the first test lead.
The embodiment of the present invention can be applied to access depending in the equipment such as router, the machine of giving out a contract for a project of networking, which gives out a contract for a project
The equipment such as machine are used to establish the communication connection based on view networking protocol between the first test lead and the second test lead.
In the embodiment of the present invention, the first test lead can be the client as end of giving out a contract for a project.It, can be by concrete application
Depending on intranet network structure, the communication connection based on view networking protocol with the first test lead is established.
In concrete application, view can be set by establishing wired connection between the first test lead, or in the first test lead
The modes such as networked virtual terminal are established and pass through the communication connection that communicates depending on networking protocol, present invention implementation with the first test lead
Example is not especially limited this.
Step 502: being established and communicated to connect by view networking protocol at least one second test lead.
In the embodiment of the present invention, the second test lead can be the server end as packet receiving end.The quantity of second test lead
There can be one, can also have multiple;When the quantity of the second test lead is 1, the first test lead and one the may be implemented
The single line bandwidth test of two test leads;It, can be primary through the embodiment of the present invention when the quantity of the second test lead is multiple
Property realize the first test lead and multiple second test leads a plurality of line bandwidth test, it is very convenient efficiently.
In concrete application, view can be set by establishing wired connection between the second test lead, or in the second test lead
The modes such as networked virtual terminal are established and pass through the communication connection that communicates depending on networking protocol, present invention implementation with the second test lead
Example is not especially limited this.
Step 503: receiving test data packet and the test data packet that the first test lead is sent by data link layer
Number.
In the embodiment of the present invention, the communication based on view networking protocol with the first test lead and the second test lead is being established
After channel, specific bandwidth can be carried out between the data link layer of the first test lead and the data link layer of the second test lead
Test.
In concrete application, test data packet can be including the compressed package comprising binary data or comprising 16 into
The compressed package etc. of data processed, it will be understood that those skilled in the art can determine test data packet according to actual application scenarios
Particular content, the present invention is not especially limit this.
In concrete application, the number of test data packet can also determine the tool of test data packet according to actual application scenarios
Hold in vivo, the embodiment of the present invention is not especially limited.By the number of test data packet, it is known that the first test lead is sent out in total
How many a test data packets out.
Step 504: the test data packet and institute are sent at least one described second test lead by data link layer
State number.
In the embodiment of the present invention, after the test data packet and test data packet number for receiving the transmission of the first test lead,
Test data packet further can be sent to one or more second test leads by data link layer, in the ideal situation,
The test data that the quantity for the test data packet that second test lead of one or more receives should be issued with the first test lead
Packet number is identical, but since the factors such as bandwidth influence, it will usually certain packet loss phenomenon occurs, so that the one or more the
The quantity for the test data packet that two test leads receive is less than the test data packet number that the first test lead issues, according to this
Or the quantity of test data packet that multiple second test leads receive, the difference of the test data packet number issued with the first test lead
Value, the second test lead can measure bandwidth test packet loss.
Step 505: obtaining bandwidth test packet loss from least one described second test lead.
In concrete application, in the case where bandwidth test packet loss is not more than certain threshold value, the first test lead can be sent out
Bandwidth corresponding to the rate of test data packet is sent, the bandwidth test of the first test lead Yu at least one the second test lead is determined as
As a result;If bandwidth test packet loss is greater than certain threshold value, can not calculate the first test lead and at least one second test lead it
Between bandwidth;Therefore, it is necessary to obtain bandwidth test packet loss from least one second test lead, and it is transmitted to the first test lead.
Step 506: send the bandwidth test packet loss to first test lead so that first test lead according to
Bandwidth test result between the bandwidth test packet loss determination and at least one described second test lead.
In the embodiment of the present invention, if the quantity of the second test lead is multiple, the bandwidth test packet loss that can be will acquire
The mark for carrying corresponding second test lead respectively, the mark that the first test lead is carried according to each bandwidth test packet loss
Know, determines the bandwidth test result between the second test lead corresponding with respectively identifying.
In concrete application, the first test lead can determine to retest according to the size of bandwidth test packet loss, or according to
The referring specifically to of bandwidth test packet loss completes bandwidth test.
The embodiment of the present invention is established between the first test lead and at least one second test lead can be using view networking protocol
The channel communicated allows the first test lead to send test data packet and institute by regarding the data link layer of networking protocol
State the number of test data packet;And at least one second test lead can also be received by the data link layer depending on networking protocol
Test data packet and the number, and then the rate and test data packet of test data packet can be sent according to the first test lead
Number, determines the bandwidth and bandwidth test packet loss of present communications, bandwidth test packet loss is sent to the first test lead, then and first
Test lead can be according to the determining bandwidth test result between at least one second test lead of bandwidth test packet loss.The present invention
In embodiment, test data packet is sent by the data link layer of view networking, and safety greatly improves.
Referring to Fig. 6, a kind of specific steps flow chart of bandwidth test embodiment of the method for the invention is shown, is applied to view
Networking, can specifically include following steps:
Step 601: being established and communicated to connect by view networking protocol with the first test lead.
Step 602: being established and communicated to connect by view networking protocol at least one second test lead.
In concrete application, as shown in fig. 7, the embodiment of the present invention can be applied in the router, through the embodiment of the present invention,
First test lead and at least one second test lead are not tested by the internet that operator sets up, and pass through road
By device as relaying, the view connected network communication between the first test lead and at least one test lead is realized.
Step 603: receiving the connection setup request that the first test lead is sent.
Step 604: sending connection setup request at least one described second test lead.
Step 605: believing if receiving the reply that at least one described second test lead is requested in response to the connection setup
Breath, determines that first test lead communicates normally at least one described second test lead.
In the embodiment of the present invention, can be verified between the first test lead and the second test lead by step 603 and step 605 is
It enough can be with normal communication.
In the embodiment of the present invention, it may include protocol type mark in connection setup request, pass through the association in communication request
Discuss category identities, it is possible to determine that whether can be with normal communication between at least one second test lead and the first test lead.To at least one
After a second test lead sends connection setup request, if receiving what at least one second test lead was requested in response to the connection setup
Return information, it can be said that bright first test lead and at least one second test lead can be with normal communications.
In concrete application, depending on networking agreement can also there are many, if the agreement of the first test lead and the second test lead
It mismatches, then cannot achieve normal communication.Therefore, at least one described second survey is not received within a preset time if can set
Return information request in response to the connection setup of examination end, then change the protocol type that connection setup is requested, and finally makes the
One test lead and at least one second test lead can be with normal communications.Correspondingly, subsequent first test lead sends test data
The protocol type of packet will also be matched with the protocol type of at least one the second test lead.
Step 606: receiving test data packet and the test data packet that the first test lead is sent by data link layer
Number.
Step 607: establishing at least one process for corresponding at least one second test lead.
Step 608: being sent from least one described process by data link layer at least one described second test lead
The test data packet and the number.
The embodiment of the present invention is particularly suitable for the application scenarios of multiple second test leads, i.e., one-to-many progress broadband test
Scene, because establishing multiple processes corresponding to multiple second test leads, specifically, it is corresponding to can be second test lead
One process can then carry out the bandwidth detection of multilink by multi-process, not need successively to detect and each second test lead
Bandwidth, substantially increase bandwidth test efficiency.
Step 609: obtaining bandwidth test packet loss from least one described second test lead.
Step 610: send the bandwidth test packet loss to first test lead so that first test lead according to
Bandwidth test result between the bandwidth test packet loss determination and at least one described second test lead.
Step 611: if the bandwidth test packet loss is unsatisfactory for preset condition, first test lead being notified to retransmit
The test data packet number of test data packet and the retransmission, to re-start bandwidth test.
In the embodiment of the present invention, preset condition is concretely not more than preset threshold.
In the embodiment of the present invention, if one of them at least one second test lead or several bandwidth test packet losses
Rate is greater than preset threshold, then the first test lead can be notified to be greater than the second test lead weight of preset threshold to bandwidth test packet loss
It is new to carry out bandwidth test.
In concrete application, the corresponding bandwidth value of rate of the first test lead last time transmission test data packet can recorde,
When retransmitting test data packet and test data packet number, it is gradually reduced transmission rate, instructs bandwidth test packet loss not
Greater than preset threshold, then actual bandwidth test result can be tested out.It is appreciated that the actual value of preset threshold, Ke Yigen
It is set according to practical application scene, the present invention is not especially limit this.
The embodiment of the present invention is established between the first test lead and at least one second test lead can be using view networking protocol
The channel communicated allows the first test lead to send test data packet and institute by regarding the data link layer of networking protocol
State the number of test data packet;And at least one second test lead can also be received by the data link layer depending on networking protocol
Test data packet and the number, and then the rate and test data packet of test data packet can be sent according to the first test lead
Number, determines the bandwidth and bandwidth test packet loss of present communications, bandwidth test packet loss is sent to the first test lead, then and first
Test lead can be according to the determining bandwidth test result between at least one second test lead of bandwidth test packet loss.The present invention
In embodiment, test data packet is sent by the data link layer of view networking, and safety greatly improves.
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, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, 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 the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 8, a kind of structural block diagram of bandwidth test device of the invention is shown, described device includes:
First communication building block 810 is communicated to connect for being established with the first test lead by view networking protocol;
Second communication building block 820, for at least one second test lead by establishing communication link depending on networking protocol
It connects;
First receiving module 830, the test data packet sent by data link layer for receiving the first test lead and institute
State the number of test data packet;
First sending module 840, for sending the survey at least one described second test lead by data link layer
Try data packet and the number;
Module 850 is obtained, for obtaining bandwidth test packet loss from least one described second test lead;
Second sending module 860, for sending the bandwidth test packet loss to first test lead, so that described
One test lead is according to the bandwidth test result between the bandwidth test packet loss determination and at least one described second test lead.
Preferably, referring to Fig. 9, on the basis of Fig. 8, described device can also include:
Second receiving module 870, for receiving the connection setup request of the first test lead transmission;
Third sending module 880, for sending connection setup request at least one described second test lead;
Determining module 890, if being requested for receiving at least one described second test lead in response to the connection setup
Return information, determine that first test lead communicates normally at least one described second test lead.
Notification module 900 notifies first test lead if being unsatisfactory for preset condition for the bandwidth test packet loss
The test data packet number of test data packet and the retransmission is retransmitted, to re-start bandwidth test.
Process establishes module 910, for establishing at least one process for corresponding at least one second test lead.
First sending module 840, comprising:
First sending submodule 8401, for from least one described process by data link layer to it is described at least one
Second test lead sends the test data packet and the number.
The embodiment of the present invention is established between the first test lead and at least one second test lead can be using view networking protocol
The channel communicated allows the first test lead to send test data packet and institute by regarding the data link layer of networking protocol
State the number of test data packet;And at least one second test lead can also be received by the data link layer depending on networking protocol
Test data packet and the number, and then the rate and test data packet of test data packet can be sent according to the first test lead
Number, determines the bandwidth and bandwidth test packet loss of present communications, bandwidth test packet loss is sent to the first test lead, then and first
Test lead can be according to the determining bandwidth test result between at least one second test lead of bandwidth test packet loss.The present invention
In embodiment, test data packet is sent by the data link layer of view networking, and safety greatly improves.
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 embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention 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 invention 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 invention be referring to according to the method for the embodiment of the present invention, 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 the preferred embodiment of the embodiment of the present invention has 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 fall into all change and modification of range of embodiment of the invention.
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.
Above to a kind of bandwidth test method and apparatus provided by the present invention, it is described in detail, it is used herein
A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand
Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention
There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention
Limitation.
Claims (10)
1. a kind of bandwidth test method, which is characterized in that be applied to view networking, which comprises
It is established and is communicated to connect by view networking protocol with the first test lead;
It is established and is communicated to connect by view networking protocol at least one second test lead;
Receive the number of test data packet and the test data packet that the first test lead is sent by data link layer;
The test data packet and the number are sent at least one described second test lead by data link layer;
Bandwidth test packet loss is obtained from least one described second test lead;
The bandwidth test packet loss is sent to first test lead, so that first test lead is according to the bandwidth test
Bandwidth test result between packet loss determination and at least one described second test lead.
2. the method according to claim 1, wherein the first test lead of the reception is sent by data link layer
Test data packet and the test data packet number the step of before, further includes:
Receive the connection setup request of the first test lead transmission;
Connection setup request is sent at least one described second test lead;
If receiving the return information that at least one described second test lead is requested in response to the connection setup, described the is determined
One test lead communicates normally at least one described second test lead.
3. the method according to claim 1, wherein described obtain bandwidth from least one described second test lead
After the step of testing packet loss, further includes:
If the bandwidth test packet loss is unsatisfactory for preset condition, notify first test lead retransmit test data packet and
The test data packet number of the retransmission, to re-start bandwidth test.
4. method according to any one of claims 1 to 3, which is characterized in that it is described by data link layer to it is described at least
Before the step of one the second test lead sends the test data packet and the number, further includes:
Establish at least one process for corresponding at least one second test lead.
5. according to the method described in claim 4, it is characterized in that, it is described by data link layer to it is described at least one second
Test lead sends the step of test data packet and number, comprising:
The test data is sent at least one described second test lead by data link layer from least one described process
Packet and the number.
6. a kind of bandwidth test device, which is characterized in that be applied to view networking, described device includes:
First communication building block is communicated to connect for being established with the first test lead by view networking protocol;
Second communication building block is communicated to connect for being established at least one second test lead by view networking protocol;
First receiving module, the test data packet and the test number sent for receiving the first test lead by data link layer
According to the number of packet;
First sending module, for sending the test data packet at least one described second test lead by data link layer
With the number;
Module is obtained, for obtaining bandwidth test packet loss from least one described second test lead;
Second sending module, for sending the bandwidth test packet loss to first test lead, so that first test
End is according to the bandwidth test result between the bandwidth test packet loss determination and at least one described second test lead.
7. device according to claim 6, which is characterized in that further include:
Second receiving module, for receiving the connection setup request of the first test lead transmission;
Third sending module, for sending connection setup request at least one described second test lead;
Determining module, if believing for receiving the reply that at least one described second test lead is requested in response to the connection setup
Breath, determines that first test lead communicates normally at least one described second test lead.
8. device according to claim 6, which is characterized in that further include:
Notification module notifies first test lead to send out again if being unsatisfactory for preset condition for the bandwidth test packet loss
The test data packet number of test data packet and the retransmission is sent, to re-start bandwidth test.
9. according to any device of claim 6 to 8, which is characterized in that further include:
Process establishes module, for establishing at least one process for corresponding at least one second test lead.
10. device according to claim 9, which is characterized in that first sending module, comprising:
First sending submodule, for passing through data link layer at least one described second test from least one described process
End sends the test data packet and the number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811132050.XA CN109150665A (en) | 2018-09-27 | 2018-09-27 | A kind of bandwidth test method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811132050.XA CN109150665A (en) | 2018-09-27 | 2018-09-27 | A kind of bandwidth test method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109150665A true CN109150665A (en) | 2019-01-04 |
Family
ID=64812927
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811132050.XA Pending CN109150665A (en) | 2018-09-27 | 2018-09-27 | A kind of bandwidth test method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109150665A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109769100A (en) * | 2019-01-17 | 2019-05-17 | 苏州科达科技股份有限公司 | Video conference test method, device and storage medium |
CN110138631A (en) * | 2019-03-25 | 2019-08-16 | 视联动力信息技术股份有限公司 | The method for detecting connectivity and terminal device in a kind of view networking tunnel |
CN110677314A (en) * | 2019-08-29 | 2020-01-10 | 视联动力信息技术股份有限公司 | Network interface testing method, system, electronic device and storage medium |
CN113595834A (en) * | 2021-08-09 | 2021-11-02 | 海南视联通信技术有限公司 | Method and device for detecting data processing capacity of video networking equipment |
CN114389975A (en) * | 2022-02-08 | 2022-04-22 | 北京字节跳动网络技术有限公司 | Network bandwidth estimation method, device, system, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001835A (en) * | 2012-12-29 | 2013-03-27 | 电信科学技术第一研究所 | Network bandwidth test method and system based on data transmission |
CN103701658A (en) * | 2013-11-18 | 2014-04-02 | 北京视联动力国际信息技术有限公司 | Network condition testing method and device for articulated naturality web |
CN104486780A (en) * | 2014-12-30 | 2015-04-01 | 郑州向心力通信技术股份有限公司 | Wireless local area network environment testing method |
CN103209103B (en) * | 2013-03-25 | 2015-12-23 | 华为技术有限公司 | The method of testing of the network equipment and device |
CN108075934A (en) * | 2016-11-15 | 2018-05-25 | 腾讯科技(深圳)有限公司 | A kind of network quality monitoring method, apparatus and system |
-
2018
- 2018-09-27 CN CN201811132050.XA patent/CN109150665A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001835A (en) * | 2012-12-29 | 2013-03-27 | 电信科学技术第一研究所 | Network bandwidth test method and system based on data transmission |
CN103209103B (en) * | 2013-03-25 | 2015-12-23 | 华为技术有限公司 | The method of testing of the network equipment and device |
CN103701658A (en) * | 2013-11-18 | 2014-04-02 | 北京视联动力国际信息技术有限公司 | Network condition testing method and device for articulated naturality web |
CN104486780A (en) * | 2014-12-30 | 2015-04-01 | 郑州向心力通信技术股份有限公司 | Wireless local area network environment testing method |
CN108075934A (en) * | 2016-11-15 | 2018-05-25 | 腾讯科技(深圳)有限公司 | A kind of network quality monitoring method, apparatus and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109769100A (en) * | 2019-01-17 | 2019-05-17 | 苏州科达科技股份有限公司 | Video conference test method, device and storage medium |
CN110138631A (en) * | 2019-03-25 | 2019-08-16 | 视联动力信息技术股份有限公司 | The method for detecting connectivity and terminal device in a kind of view networking tunnel |
CN110677314A (en) * | 2019-08-29 | 2020-01-10 | 视联动力信息技术股份有限公司 | Network interface testing method, system, electronic device and storage medium |
CN113595834A (en) * | 2021-08-09 | 2021-11-02 | 海南视联通信技术有限公司 | Method and device for detecting data processing capacity of video networking equipment |
CN114389975A (en) * | 2022-02-08 | 2022-04-22 | 北京字节跳动网络技术有限公司 | Network bandwidth estimation method, device, system, electronic equipment and storage medium |
CN114389975B (en) * | 2022-02-08 | 2024-03-08 | 北京字节跳动网络技术有限公司 | Network bandwidth estimation method, device and system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810456B (en) | A kind of monitoring video flow transfers method and system | |
CN108012106B (en) | A kind of method and system regarding networking monitoring source synchronous | |
CN108881799B (en) | A kind of system and method carrying out view networked video meeting | |
CN109150665A (en) | A kind of bandwidth test method and apparatus | |
CN110048954A (en) | A kind of data transmission method and device | |
CN109561072A (en) | A kind of chain circuit detecting method and system | |
CN109889779A (en) | A kind for the treatment of method and apparatus of packet out-ordering | |
CN109246486A (en) | A kind of framing method and device | |
CN109743526A (en) | A kind of communication connection method for building up and system based on view networking | |
CN109587432A (en) | A kind of conference speech terminal switching method and system | |
CN110233982A (en) | A kind of monitoring method and device based on view networking | |
CN110177023A (en) | A kind of communication connection detection method and device based on view networking | |
CN110166727A (en) | A kind of networking of view and internet switching method, apparatus and system | |
CN109743555A (en) | A kind of information processing method and system based on view networking | |
CN109743284A (en) | A kind of method for processing video frequency and system based on view networking | |
CN109347930A (en) | A kind of task processing method and device | |
CN110351573A (en) | Virtual present presentation method, system and device | |
CN110278244A (en) | A kind of method of network entry and view networked terminals based on view networking | |
CN110493149A (en) | A kind of method and apparatus of Message processing | |
CN110266577A (en) | A kind of tunnel establishing method and view networked system | |
CN109586851A (en) | Data transmission method and device based on view networking | |
CN110049069A (en) | A kind of data capture method and device | |
CN108881140A (en) | A kind of document down loading method and device based on view networking | |
CN110113555A (en) | A kind of video conference processing method and system based on view networking | |
CN109714558A (en) | A kind of communication connection detection method and system based on view networking |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |