CN111510341A - Network testing method and device for video network - Google Patents

Network testing method and device for video network Download PDF

Info

Publication number
CN111510341A
CN111510341A CN202010177438.2A CN202010177438A CN111510341A CN 111510341 A CN111510341 A CN 111510341A CN 202010177438 A CN202010177438 A CN 202010177438A CN 111510341 A CN111510341 A CN 111510341A
Authority
CN
China
Prior art keywords
test
network
video
data packet
terminal
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
Application number
CN202010177438.2A
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 CN202010177438.2A priority Critical patent/CN111510341A/en
Publication of CN111510341A publication Critical patent/CN111510341A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The embodiment of the invention provides a network testing method and a device of a video network, wherein a testing platform and at least two testing terminals are deployed in the video network and are applied to the testing terminals, and the method comprises the following steps: receiving a test instruction based on a video networking protocol sent by the test platform; switching to a test mode according to the test instruction based on the video networking protocol; and generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and carrying out statistical analysis on the test data packet to obtain a network state parameter. In the test mode, the speed of network test is accelerated, so that the running conditions of the network environment and the equipment are detected before business is carried out, and research personnel are helped to find or troubleshoot network problems through network state parameters displayed by the test platform.

Description

Network testing method and device for video network
Technical Field
The invention relates to the technical field of video networking, in particular to a network testing method of the video networking and a network testing device of the video networking.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
At present, before a terminal device based on a video network performs a service, a test system for the whole network condition is not available, and the state of the current network cannot be known. When the service is abnormal, the cause of the network abnormality cannot be eliminated quickly, and it takes a long time to eliminate the cause of the network abnormality.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a network testing method of an internet of view, and a corresponding network testing apparatus of an internet of view, which overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a network testing method for a video network, where a test platform and at least two test terminals are deployed in the video network, and the method is applied to the test terminals, and the method includes:
receiving a test instruction based on a video networking protocol sent by the test platform;
switching to a test mode according to the test instruction based on the video networking protocol;
and generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and carrying out statistical analysis on the test data packet to obtain a network state parameter.
Optionally, the test mode is a mode for starting a communication service between the at least two test terminals.
Optionally, the communication service comprises one or more of the following services:
live broadcast service, conference service, and video telephone service.
Optionally, the generating a test data packet in the test mode includes:
and generating a test data packet by adopting a pseudo-random algorithm in the test mode.
Optionally, the information is transferred between the test platform and the test terminal by using a video networking transparent transfer protocol.
Optionally, the network status parameter includes at least one of:
a packet sequence number parameter, a packet interval parameter, a packet misalignment parameter, and a packet timeout parameter.
Optionally, the test terminal is an entity terminal and/or a virtual terminal.
The embodiment of the invention also discloses a network testing device of the video network, wherein the video network is provided with a testing platform and at least two testing terminals, the method is applied to the testing terminals, and the device comprises:
the instruction receiving module is used for receiving a test instruction based on a video networking protocol sent by the test platform;
the mode switching module is used for switching to a test mode according to the test instruction based on the video networking protocol;
and the data packet sending module is used for generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and carrying out statistical analysis on the test data packet to obtain a network state parameter.
Optionally, the test mode is a mode for starting a communication service between the at least two test terminals.
Optionally, the communication service comprises one or more of the following services:
live broadcast service, conference service, and video telephone service.
Optionally, the data packet sending module includes:
and the data packet generation submodule is used for generating a test data packet by adopting a pseudo-random algorithm in the test mode.
Optionally, the information is transferred between the test platform and the test terminal by using a video networking transparent transfer protocol.
Optionally, the network status parameter includes at least one of:
a packet sequence number parameter, a packet interval parameter, a packet misalignment parameter, and a packet timeout parameter.
Optionally, the test terminal is an entity terminal and/or a virtual terminal.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform one or more of the method steps as described in embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for enabling a processor to execute the steps of the method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a test terminal receives a test instruction based on a video networking protocol sent by a test platform; switching to a test mode according to a test instruction based on the video networking protocol; and generating a test data packet in a test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and performing statistical analysis on the test data packet to obtain a network state parameter. In the test mode, the communication service can be carried out only by the test platform and the test terminal without actually starting the communication service, and the interference of other network use is eliminated, so that the problem that the whole communication service environment needs to be started to carry out the test when the network test is carried out is avoided, the speed of the network test is increased, the running conditions of the network environment and equipment are detected before the service is carried out, and research and development personnel are helped to find or troubleshoot the network problem through the network state parameters displayed by the test platform.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for testing a network of a video network according to an embodiment of the present invention;
FIG. 2 is a block diagram of a network test according to an embodiment of the present invention;
fig. 3 is a block diagram of a network testing apparatus of an embodiment of the video network according to the present invention.
FIG. 4 is a networking schematic of a video network of the present invention;
FIG. 5 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 6 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart of steps of an embodiment of a network testing method for a video network according to an embodiment of the present invention is shown, where a testing platform and at least two testing terminals are deployed in the video network, and the method is applied to the testing terminals, and specifically may include the following steps:
step 101, receiving a test instruction based on a video networking protocol sent by the test platform;
the test terminal may be a terminal in a video network, capable of communicating based on a video network protocol. The test terminal may be an entity terminal or a virtual terminal, which is not limited in the embodiments of the present invention.
It should be noted that the entity terminal may be a terminal in a video network, and may receive, generate, and send audio and video data, such as a set-top box. The virtual terminal can be an application program, and the virtual terminal can simulate the entity terminal to receive, generate and send audio and video data by running the application program on the server.
The test platform may be a visualization platform for network testing of the video network. The test platform may include a graphical user interface, and a user may determine the test terminals by operating on the graphical user interface, for example, selecting one physical terminal and one virtual terminal as the test terminals, or selecting one physical terminal and one physical terminal as the test terminals, or selecting one virtual terminal and one virtual terminal as the test terminals. After determining the test terminal, the test platform may send a test instruction based on the networking protocol to the test terminal.
In the embodiment of the invention, the test terminal can receive the test instruction based on the video networking protocol sent by the test platform so as to carry out network test according to the test instruction. The test instruction may be an instruction for instructing the test terminal to perform a network test. In a specific implementation, the test platform may provide a graphical user interface, and a user may select a test terminal by setting on the graphical user interface, and trigger a determination control on the graphical user interface to generate a test instruction, and send the test instruction to the selected test terminal.
Step 102, switching to a test mode according to the test instruction based on the video networking protocol;
in the embodiment of the invention, the test terminal can be switched into the test mode according to the test instruction based on the video networking protocol so as to perform network test in the test mode. The test mode may be a preset state, and in the test mode, an environment for developing a communication service may be simulated, and then a network test may be performed.
Step 103, generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and performing statistical analysis on the test data packet to obtain a network state parameter.
In the embodiment of the invention, the test terminal can generate the test data packet in the test mode and send the test data packet to the target test terminal. The test data packet may be composed of information such as a message sequence number, a header type, a packet type, a source address, a destination address, and the like.
The test terminal can also receive a test data packet returned by the target test terminal in a test mode, and perform statistical analysis on the test data packet to obtain a network state test so as to test the quality of the uplink network.
After receiving the test data packet, the target test terminal can perform statistical analysis on the test data packet to obtain a network state parameter so as to test the downlink and uplink network quality.
Specifically, the test terminal and the target test terminal may perform operations such as packet number statistics, packet interval statistics, packet data statistics on the received test data packet to obtain statistical data, so as to determine a network state parameter according to the statistical data.
Wherein, the network state parameter may be a parameter for characterizing a condition of the network, and the network state parameter may include at least one of the following: a packet sequence number parameter, a packet interval parameter, a packet misalignment parameter, and a packet timeout parameter.
In the test mode, the communication service can be carried out only by the test platform and the at least two test terminals without actually starting the communication service, and the interference of other networks is eliminated, so that the situation that the test can be carried out only by starting the whole communication service environment when the network test is carried out is avoided, and the network test speed is accelerated.
In a preferred embodiment of the present invention, the test mode is a mode for enabling a communication service between the at least two test terminals.
Wherein the communication traffic may include one or more of the following: live broadcast service, conference service, and video telephone service. When the communication service is a live broadcast service, the test terminal can release the live broadcast service, and the target test terminal can watch the live broadcast service; when the communication service is a conference service, the test terminal and the target test terminal can be pulled into the same conference room to transmit audio and video data between the test terminal and the target test terminal; when the communication service is a video telephone service, a communication link between the test terminal and the target test terminal can be established to transmit audio and video data between the test terminal and the target test terminal.
In a preferred embodiment of the present invention, after the step 101, the following steps may be further included:
and analyzing the test instruction based on the video networking protocol.
In the embodiment of the invention, the test terminal can analyze the test instruction based on the video networking protocol so as to carry out network test according to the analyzed test instruction.
In a preferred embodiment of the present invention, the step 103 may comprise the following sub-steps:
and generating a test data packet by adopting a pseudo-random algorithm in the test mode.
Specifically, the quality requirements of the network environment are different in different communication service scenarios, for example, in a video service scenario, a better network environment is required to transmit video data, and in a voice service scenario, the requirements on the network environment are relatively lower. Therefore, basic data packets corresponding to various communication services can be generated in advance, then, when network testing is needed, the needed basic data packets are determined by adopting a pseudo-random algorithm in a testing mode, and then, testing data packets are generated by adopting the basic data packets. When there is only one basic data packet, the basic data packet may be directly used to generate a test data packet, and when there are a plurality of basic data packets, the basic data packets may be combined first, and then the combined basic data packet is used to generate the test data packet.
In a preferred embodiment of the present invention, the testing platform and the testing terminal use a video networking transparent transmission protocol for information transmission.
The video networking transparent transmission protocol is one of video networking protocols and is used for transmitting commands.
In the embodiment of the invention, the information transmission is carried out between the test platform and the test terminal by adopting a video networking transparent transmission protocol.
In a preferred embodiment of the present invention, the test terminal may be a physical terminal and/or a virtual terminal.
In a network test, the test terminals generally include two terminals, one for sending test packets and one for receiving test packets, and in an embodiment of the present invention, the test terminals may be physical terminals and/or virtual terminals, for example, one physical terminal and one virtual terminal, or both of them are physical terminals, or both of them are virtual terminals.
In a preferred embodiment of the present invention, the test platform is configured to obtain the network status parameter based on a video networking transparent transmission protocol.
Specifically, the test platform can send a query instruction based on the video networking transparent transmission protocol to at least two test terminals, and after receiving the query instruction based on the video networking transparent transmission protocol, the test terminals can analyze the query instruction based on the video networking transparent transmission protocol and then report the network state parameters to the test platform according to the analyzed query instruction.
Fig. 2 shows a block diagram of a network test structure according to an embodiment of the present invention, where a video network includes a test platform, an entity terminal and a virtual terminal, there are 3 network test modes, and the 1 st mode is: the sending party and the receiving party of the test data packet are both entity terminals, and the 2 nd mode is as follows: the entity terminal is a sending party of the test data packet, the virtual terminal is a receiving party of the test data packet, and the 3 rd mode is as follows: the test data packet sender and receiver are both virtual terminals. After receiving the test data packet, the receiving party can perform packet sequence number statistics, packet interval statistics and packet data statistics to obtain network state data. The test platform can inquire the statistical network state data through the video networking transparent transmission protocol, and the entity terminal or the virtual terminal can report the network state data to the test platform through the video networking transparent transmission protocol.
In the embodiment of the invention, in the test mode, the communication service can be carried out only by the test platform and at least two test terminals without actually starting the communication service, and the interference of other networks is eliminated, so that the test can be carried out only by starting the whole communication service environment when the network test is carried out, the network test speed is accelerated, the running conditions of the network environment and equipment are detected before the service is carried out, and research and development personnel are helped to find or troubleshoot the network problem through the network state parameters displayed by the test platform.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of a network testing apparatus of a video network according to an embodiment of the present invention is shown, where a testing platform and at least two testing terminals are deployed in the video network and applied to the testing terminals, and the apparatus may specifically include the following modules:
the instruction receiving module S101 is used for receiving a test instruction based on a video networking protocol sent by the test platform;
the mode switching module S102 is used for switching to a test mode according to the test instruction based on the video networking protocol;
and the data packet sending module S103 is used for generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and performing statistical analysis on the test data packet to obtain a network state parameter.
In a preferred embodiment of the present invention, the test mode is a mode for enabling a communication service between the at least two test terminals.
In a preferred embodiment of the invention, the communication traffic comprises one or more of the following traffic:
live broadcast service, conference service, and video telephone service.
Optionally, the data packet sending module S103 includes:
and the data packet generation submodule is used for generating a test data packet by adopting a pseudo-random algorithm in the test mode.
In a preferred embodiment of the present invention, the testing platform and the testing terminal use a video networking transparent transmission protocol for information transmission.
In a preferred embodiment of the present invention, the network status parameter includes at least one of:
a packet sequence number parameter, a packet interval parameter, a packet misalignment parameter, and a packet timeout parameter.
In a preferred embodiment of the present invention, the test terminal is a physical terminal and/or a virtual terminal.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform one or more of the method steps as described in embodiments of the invention.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program for causing a processor to execute the steps of the method according to the embodiments of the present invention.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 4, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 5, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 6, the network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 7, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the label is similar to that of a label of MP L S (Multi-Protocol L abel Switch), and assuming that there are two connections between device a and device B, there are 2 labels for a packet from device a to device B, and there are 2 labels for a packet from device B to device a. the label is divided into an incoming label and an outgoing label, and assuming that the label (incoming label) of a packet entering device a is 0x0000, the label (outgoing label) of the packet leaving device a may become 0x 0001.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The network testing method and the network testing device of the video network provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A network test method of a video network is characterized in that a test platform and at least two test terminals are deployed in the video network, the method is applied to the test terminals, and the method comprises the following steps:
receiving a test instruction based on a video networking protocol sent by the test platform;
switching to a test mode according to the test instruction based on the video networking protocol;
and generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and carrying out statistical analysis on the test data packet to obtain a network state parameter.
2. The method of claim 1, wherein the test mode is a mode in which communication traffic is enabled between the at least two test terminals.
3. The method of claim 2, wherein the communication traffic comprises one or more of:
live broadcast service, conference service, and video telephone service.
4. The method of claim 1, wherein generating the test packet in the test mode comprises:
and generating a test data packet by adopting a pseudo-random algorithm in the test mode.
5. The method of claim 1, wherein the testing platform and the testing terminal communicate information using a video networking transparent protocol.
6. The method of claim 1, wherein the network status parameter comprises at least one of:
a packet sequence number parameter, a packet interval parameter, a packet misalignment parameter, and a packet timeout parameter.
7. The method according to claim 1, characterized in that the test terminal is a physical terminal and/or a virtual terminal.
8. A network testing device of a video network is characterized in that a testing platform and at least two testing terminals are deployed in the video network, the method is applied to the testing terminals, and the device comprises:
the instruction receiving module is used for receiving a test instruction based on a video networking protocol sent by the test platform;
the mode switching module is used for switching to a test mode according to the test instruction based on the video networking protocol;
and the data packet sending module is used for generating a test data packet in the test mode, sending the test data packet to a target test terminal, receiving the test data packet returned by the target test terminal, and carrying out statistical analysis on the test data packet to obtain a network state parameter.
9. An electronic device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the steps of the method of one or more of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program for causing a processor to perform the steps of the method according to any one of claims 1 to 7.
CN202010177438.2A 2020-03-13 2020-03-13 Network testing method and device for video network Pending CN111510341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010177438.2A CN111510341A (en) 2020-03-13 2020-03-13 Network testing method and device for video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010177438.2A CN111510341A (en) 2020-03-13 2020-03-13 Network testing method and device for video network

Publications (1)

Publication Number Publication Date
CN111510341A true CN111510341A (en) 2020-08-07

Family

ID=71877769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010177438.2A Pending CN111510341A (en) 2020-03-13 2020-03-13 Network testing method and device for video network

Country Status (1)

Country Link
CN (1) CN111510341A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595834A (en) * 2021-08-09 2021-11-02 海南视联通信技术有限公司 Method and device for detecting data processing capacity of video networking equipment
CN113766323A (en) * 2021-09-28 2021-12-07 深圳小湃科技有限公司 Set top box network detection method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083118A (en) * 2009-11-26 2011-06-01 中兴通讯股份有限公司 Large-telephone-traffic test device, system and method
CN102316498A (en) * 2010-07-09 2012-01-11 中兴通讯股份有限公司 Automatic test method and system for wireless network
CN104135476A (en) * 2014-07-18 2014-11-05 清华大学 Method, device and system of converting communication protocol
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet
WO2016206229A1 (en) * 2015-06-25 2016-12-29 中兴通讯股份有限公司 System and method for telephone traffic test
CN107770786A (en) * 2016-08-15 2018-03-06 中国移动通信有限公司研究院 A kind of method of testing of network performance, equipment and system
CN110072101A (en) * 2018-01-24 2019-07-30 北京视联动力国际信息技术有限公司 A kind of test method and device of Network status
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device
CN110365967A (en) * 2019-06-27 2019-10-22 视联动力信息技术股份有限公司 A kind of test method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083118A (en) * 2009-11-26 2011-06-01 中兴通讯股份有限公司 Large-telephone-traffic test device, system and method
CN102316498A (en) * 2010-07-09 2012-01-11 中兴通讯股份有限公司 Automatic test method and system for wireless network
CN105024868A (en) * 2014-04-17 2015-11-04 北京视联动力国际信息技术有限公司 Network quality detection method and network quality detection system for video Internet
CN104135476A (en) * 2014-07-18 2014-11-05 清华大学 Method, device and system of converting communication protocol
WO2016206229A1 (en) * 2015-06-25 2016-12-29 中兴通讯股份有限公司 System and method for telephone traffic test
CN107770786A (en) * 2016-08-15 2018-03-06 中国移动通信有限公司研究院 A kind of method of testing of network performance, equipment and system
CN110072101A (en) * 2018-01-24 2019-07-30 北京视联动力国际信息技术有限公司 A kind of test method and device of Network status
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device
CN110365967A (en) * 2019-06-27 2019-10-22 视联动力信息技术股份有限公司 A kind of test method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595834A (en) * 2021-08-09 2021-11-02 海南视联通信技术有限公司 Method and device for detecting data processing capacity of video networking equipment
CN113766323A (en) * 2021-09-28 2021-12-07 深圳小湃科技有限公司 Set top box network detection method, device, equipment and storage medium
CN113766323B (en) * 2021-09-28 2023-11-07 深圳小湃科技有限公司 Set top box network detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109617956B (en) Data processing method and device
CN109547163B (en) Method and device for controlling data transmission rate
CN110022295B (en) Data transmission method and video networking system
CN109587002B (en) State detection method and system for video network monitoring equipment
CN109561072B (en) Link detection method and system
CN110049273B (en) Video networking-based conference recording method and transfer server
CN109714568B (en) Video monitoring data synchronization method and device
CN111478884A (en) Method, device and storage medium for data transmission among different video networks
CN109743284B (en) Video processing method and system based on video network
CN111510341A (en) Network testing method and device for video network
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109889516B (en) Method and device for establishing session channel
CN110072154B (en) Video networking-based clustering method and transfer server
CN109769012B (en) Web server access method and device
CN109698953B (en) State detection method and system for video network monitoring equipment
CN110677315A (en) Method and system for monitoring state
CN110493311B (en) Service processing method and device
CN111211982B (en) Data forwarding method and device, electronic equipment and storage medium
CN110445701B (en) Business object processing method and device and storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110536148B (en) Live broadcasting method and equipment based on video networking
CN109495709B (en) Video network management system and method
CN110233872B (en) Data transmission method based on video network and video network terminal
CN110177244B (en) Method and system for polling conference terminal
CN109714641B (en) Data processing method and device based on video network

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: 20200807

RJ01 Rejection of invention patent application after publication