CN108574609B - Transmission monitoring method and device - Google Patents

Transmission monitoring method and device Download PDF

Info

Publication number
CN108574609B
CN108574609B CN201711481929.0A CN201711481929A CN108574609B CN 108574609 B CN108574609 B CN 108574609B CN 201711481929 A CN201711481929 A CN 201711481929A CN 108574609 B CN108574609 B CN 108574609B
Authority
CN
China
Prior art keywords
packet
file
data
video
statistical
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.)
Active
Application number
CN201711481929.0A
Other languages
Chinese (zh)
Other versions
CN108574609A (en
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 CN201711481929.0A priority Critical patent/CN108574609B/en
Publication of CN108574609A publication Critical patent/CN108574609A/en
Application granted granted Critical
Publication of CN108574609B publication Critical patent/CN108574609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a transmission monitoring method and a device, wherein the method is applied to a video network terminal of a video network and comprises the following steps: receiving input file parameters and operation parameters; creating a statistical file according to the file parameters; configuring a packet grabbing component according to the operating parameters; and calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file. Through configuration of the statistical file and the packet capturing component, required data are screened out, redundant data in the statistical file are reduced, the data can be visually presented to a user, subsequent sorting operation of the user is reduced, and monitoring efficiency is greatly improved.

Description

Transmission monitoring method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a transmission monitoring method and a transmission monitoring apparatus.
Background
The video networking is a real-time network, can realize the real-time transmission of full network high definition video, pushes numerous internet applications to high definition video, and high definition is face to face.
The devices in the video network need to monitor the data transmitted by the network and analyze the stability, rate and other indexes of transmission.
At present, a packet capturing tool is usually used for capturing a data packet, redundant data in a file output value TXT document in the data packet is more, the data needs to be sorted by a user at a later stage, and the monitoring efficiency is lower.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a transmission monitoring method and a corresponding transmission monitoring apparatus that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a transmission monitoring method applied in a video network terminal of a video network, the method including:
receiving input file parameters and operation parameters;
creating a statistical file according to the file parameters;
configuring a packet grabbing component according to the operating parameters;
and calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file.
Optionally, the file parameters include a directory, a data type;
the creating of the statistical file according to the file parameters comprises:
creating a statistical file in the directory;
and configuring the data type in the statistical file.
Optionally, the method further comprises:
judging whether the statistical file is successfully created or not;
if yes, executing the packet capturing component configured according to the operation parameters;
if not, returning to execute the statistical file created according to the file parameters.
Optionally, the operation parameters include a packet capture object and a data type;
the calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file comprises the following steps:
calling the packet capturing component to capture the video networking data packet from the packet capturing object;
extracting target data of the data type from the data packet;
and writing the target data into an area corresponding to the data type of the statistical file.
Optionally, the data type includes at least one of:
source address of the video network, destination address of the video network, operation instruction, type of video network device, packet type.
Optionally, the method further comprises:
judging whether the statistical file exceeds a preset size threshold value or not;
if yes, stopping writing the video networking data packet into the statistical file;
if not, returning to execute the calling of the packet capturing component to capture the video networking data packet, and writing the video networking data packet into the statistical file.
Optionally, the method further comprises:
and generating a transmission statistical result according to the statistical file.
Optionally, the generating a transmission statistical result according to the statistical file includes:
calculating a ratio between a preset time period and a first number of the video networking data packets in the time period as a transmission rate;
and/or the presence of a gas in the gas,
counting a second number of the video network data packets with the destination addresses of the video network as the designated addresses;
counting a third number of the video network data packets with the source addresses of the video network as the specified addresses;
and calculating the difference value between the second quantity and the third quantity as the transmission matching degree.
According to another aspect of the present invention, there is provided a transmission monitoring apparatus for use in a terminal of an internet of view network, the apparatus including:
the parameter receiving module is used for receiving input file parameters and operation parameters;
the statistical file creating module is used for creating a statistical file according to the file parameters;
the packet capturing component configuration module is used for configuring the packet capturing component according to the operation parameters;
and the packet capturing component calling module is used for calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file.
Optionally, the file parameters include a directory, a data type;
the statistical file creating module comprises:
the directory creating submodule is used for creating a statistical file in the directory;
and the data type configuration submodule is used for configuring the data type in the statistical file.
Optionally, the method further comprises:
the statistical file judging module is used for judging whether the statistical file is successfully created or not; if so, calling the packet capturing component configuration module; if not, returning to call the statistical file creating module.
Optionally, the operation parameters include a packet capture object and a data type;
the packet capturing component calling module comprises:
the packet capturing sub-module is used for calling the packet capturing component to capture the video networking data packet from the packet capturing object;
the target data extraction submodule is used for extracting target data of the data type from the data packet;
and the target data writing submodule is used for writing the target data into an area corresponding to the data type of the statistical file.
Optionally, the data type includes at least one of:
source address of the video network, destination address of the video network, operation instruction, type of video network device, packet type.
Optionally, the method further comprises:
the size threshold judging module is used for judging whether the statistical file exceeds a preset size threshold or not; if yes, calling a writing stopping module, and if not, returning to calling the packet capturing component calling module;
and the writing stopping module is used for stopping writing the video networking data packet into the statistical file.
Optionally, the method further comprises:
and the transmission statistical result generating module is used for generating a transmission statistical result according to the statistical file.
Optionally, the transmission statistical result generating module includes:
the transmission rate calculation submodule is used for calculating the ratio of a preset time period to the first number of the video networking data packets in the time period as a transmission rate;
and/or the presence of a gas in the gas,
the sending number counting submodule is used for counting the second number of the video network data packets of which the destination addresses are the designated addresses;
the receiving quantity counting submodule is used for counting the third quantity of the video network data packets of which the source addresses are the designated addresses;
and the transmission matching degree operator module is used for calculating the difference value between the second quantity and the third quantity to be used as the transmission matching degree.
The embodiment of the invention has the following advantages:
the embodiment of the invention applies the characteristics of the video network, receives the input file parameters and the operation parameters in the video network terminal, on one hand, creates statistical files according to the file parameters, on the other hand, configures the packet capturing component according to the operation parameters, calls the packet capturing component to capture the video network data packets, writes the video network data packets into the statistical files, screens out the required data by configuring the statistical files and the packet capturing component, reduces redundant data in the statistical files, can visually present the data to users, reduces the subsequent sorting operation of the users, and greatly improves the monitoring efficiency.
Drawings
FIG. 1 is a networking diagram of a video network, according to one embodiment of the invention;
FIG. 2 is a diagram illustrating a hardware architecture of a node server according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present invention;
FIG. 5 is a flow chart of the steps of a transmission monitoring method according to one embodiment of the present invention;
FIG. 6 is a diagram of a transport architecture according to one embodiment of the present invention;
FIG. 7 is a flow chart of steps in another transmission monitoring method according to one embodiment of the invention;
fig. 8 is a block diagram of a transmission monitoring apparatus according to an embodiment of 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.
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 over traditional Ethernet (Ethernet) to face the potentially enormous 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. 1, 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: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, 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 servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, 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. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
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 data packet coming from the CPU module 204 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, which in this embodiment of the present invention is divided into 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 208 is configured by the CPU module 204, 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 gateway:
as shown in fig. 4, 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 MAC SA of the ethernet protocol 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 the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
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.
Referring to fig. 5, a flowchart illustrating steps of a transmission monitoring method according to an embodiment of the present invention is shown, which may be applied to a video network terminal of a video network, and specifically may include the following steps:
step 501, receiving input file parameters and operation parameters.
As shown in fig. 6, a video network server 610 and a video network terminal 620 are deployed in a video network 600.
In a specific implementation, the video networking terminal 620 may be a set-top box (set top box, STB), commonly referred to as a set-top box or set-top box, which is a device that connects a tv set to an external signal source, and converts the compressed digital signal into tv content for display on the tv set.
Generally, the video network terminals 620 are all connectable to other devices 630, for example, the devices 630 may be at least one camera and at least one microphone for collecting at least one video data and at least one audio data, and the devices 630 may also be televisions for playing the video data and the audio data.
It should be noted that the functions of the video networking terminal are relatively speaking, in a certain service scenario, a certain video networking terminal may collect video data and audio data, and in other service scenarios, the video networking terminal may output the video data and the audio data for playing.
The video network server and the video network terminal can communicate with each other to transmit video data, audio data and the like.
For example, an internet of view server and an internet of view terminal may encapsulate a data packet of video data by the following 2000 specification of an internet of view protocol for transmission:
Figure BDA0001533962550000121
Figure BDA0001533962550000131
for another example, the video network server and the video network terminal may encapsulate the data packet of the audio data for transmission through the 2001 specification of the following video network protocol:
Figure BDA0001533962550000132
in the embodiment of the present invention, an API (Application Programming Interface) Interface may be provided for the outside, a service may be provided for the outside, and a user may input file parameters and operation parameters by calling the API Interface.
The file parameter may refer to a parameter for creating a statistical file, and the operation parameter may refer to a parameter for capturing a packet.
Step 502, creating a statistical file according to the file parameters.
If a file parameter is received, a responsive file may be created according to the file parameter.
In one embodiment of the present invention, step 502 may include the following sub-steps:
and a substep S11 of creating a statistics file in the directory.
And a substep S12 of configuring said data type in said statistics file.
In the embodiment of the present invention, the file parameters include a directory and a data type, and then a statistical file may be created under the directory.
The statistical file may be a table file, such as excel, and a data type may be configured in the statistical file, that is, data under the data type is specified to be recorded.
In particular implementations, the data type may include at least one of:
a source address of the video network, a destination address of the video network, an operation instruction, a type of video network device, a packet type (e.g., 2000, 2001).
Of course, the file parameters are only examples, and when implementing the embodiment of the present invention, other file parameters may be set according to actual situations, which is not limited in the embodiment of the present invention. In addition, besides the above file parameters, those skilled in the art may also use other file parameters according to actual needs, and the embodiment of the present invention is not limited thereto.
Step 503, configuring the packet capturing component according to the operation parameters.
If the operation parameters are received, the packet capturing component can be configured according to the operation parameters, and the packet capturing component is configured to capture the data packet according to the operation parameters and write the data packet into the statistical file.
By packet-capturing component, it is possible to refer to a component that captures a data packet.
For example, the packet capturing component may be tcpdump (product the traffic on a network), which is a packet capturing tool operating on linux platform and capable of capturing data packets transmitted on the network according to user requirements.
tcpdump may completely intercept the "header" of a packet transmitted in the network to provide analysis. It supports filtering for network layers, protocols, hosts, networks or ports and provides logical statements and, or, not, etc. to remove useless information.
In a specific implementation, the operation parameters include a packet capture object and a data type.
The packet capture object may include a host, a port, and the like, and the host and the port may be set by a user according to a service requirement.
Taking tcpdump as an example, a port (interface) that tcpdump needs to listen to can be specified through an instruction "-i". If not, tcpdump will search the smallest configured port from the system interface list, find the first eligible port, and then end the search.
All packets received and sent by all 210.27.48.1 hosts may be intercepted by:
tcpdump host 210.27.48.1
communications between host 210.27.48.1 and host 210.27.48.2 or 210.27.48.3 may be intercepted by:
tcpdump host 210.27.48.1and\(210.27.48.2or 210.27.48.3\)
telnet packets received or sent by host 210.27.48.1 may be intercepted by the following instructions:
tcpdump tcp port 23and host 210.27.48.1
the native udp 123 port may be monitored 123 as the service port of ntp by:
tcpdump udp port 123
in addition, the data type in the operation parameter and the data type in the file parameter are consistent, and may specifically include at least one of the following:
a source address of the video network, a destination address of the video network, an operation instruction, a type of video network device, a packet type (e.g., 2000, 2001).
Of course, the above operation parameters are only examples, and when implementing the embodiment of the present invention, other operation parameters may be set according to practical situations, which is not limited in the embodiment of the present invention. In addition, besides the above-mentioned operating parameters, those skilled in the art may also adopt other operating parameters according to actual needs, and the embodiment of the present invention is not limited thereto.
And step 504, calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file.
After the packet capturing component is configured successfully, the packet capturing component can be called to capture a video networking data packet of the video networking terminal, which is communicated with a video networking server or other equipment, and the content in the video networking data packet is written into a statistical file.
In one embodiment of the invention, step 504 may include the following sub-steps:
and a substep S21 of calling the packet capturing component to capture the video network data packet from the packet capturing object.
And a substep S22 of extracting target data of the data type from the data packet.
And a substep S23, writing the target data into an area corresponding to the data type of the statistical file.
In the embodiment of the invention, the directory and the data type are specified in the statistical file, and the packet capturing component specifies the packet capturing object (such as a host, a port and the like) and the data type, so that the packet capturing component can capture the video network data packet for the packet capturing object (such as the host, the port and the like).
And extracting target data under the data type from the video network data packets, searching the statistical file under the directory, generating a record for each video network data packet, and storing the target data in the record into an area corresponding to the data type in the statistical file.
The embodiment of the invention applies the characteristics of the video network, receives the input file parameters and the operation parameters in the video network terminal, on one hand, creates statistical files according to the file parameters, on the other hand, configures the packet capturing component according to the operation parameters, calls the packet capturing component to capture the video network data packets, writes the video network data packets into the statistical files, screens out the required data by configuring the statistical files and the packet capturing component, reduces redundant data in the statistical files, can visually present the data to users, reduces the subsequent sorting operation of the users, and greatly improves the monitoring efficiency.
Referring to fig. 7, a flowchart illustrating steps of another transmission monitoring method according to an embodiment of the present invention is shown, which may be applied to a video network terminal of a video network, and specifically may include the following steps:
step 701, receiving input file parameters and operation parameters.
Step 702, creating a statistical file according to the file parameters.
Step 703, judging whether the statistical file is successfully created; if yes, go to step 704, otherwise go to step 702.
In the embodiment of the present invention, after a process/thread is started to create a statistical file, whether the statistical file is successfully created or not can be detected.
If the creation of the statistics file is successful, a command set (operating parameters) of the packet capture component can be initiated to capture packets.
If the creation of the statistical file fails, the statistical file may be re-created, and if the number of times of the failure in creating the statistical file exceeds a preset threshold (e.g., 3 times), the monitoring may be ended.
Step 704, configuring the packet capturing component according to the operation parameters.
Step 705, calling the packet capturing component to capture the video networking data packet, and writing the video networking data packet into the statistical file.
Step 706, judging whether the statistical file exceeds a preset size threshold; if yes, go to step 707, otherwise go to step 705.
And step 707, stopping writing the video networking data packet into the statistical file.
In the embodiment of the invention, a size threshold value can be preset, and whether the size of the statistical file exceeds the size threshold value or not can be judged in the process that the packet capturing component writes the video networking data packet into the statistical file.
If the size threshold is exceeded, the packet capture component can be stopped from running, thereby stopping the writing of data capturing the video network data packets to the statistics file.
If the size threshold is not exceeded, the packet capture component can remain running, continuing to capture the video network packets and write their data to the statistics file.
Step 708, generating a transmission statistical result according to the statistical file.
If a certain amount of data of the video networking data packet is stored in the statistical file, the data of the video networking data packet can be summarized according to a preset standard, and a transmission statistical result is generated.
It should be noted that the transmission statistical result may be a final statistical result, or may be an intermediate statistical result used for generating other statistical results, which is not limited in the embodiment of the present invention.
In one embodiment of the present invention, step 708 may include the following sub-steps:
substep S31, calculating a ratio between a preset time period and the first number of the video network packets in the time period as the transmission rate.
In the embodiment of the present invention, the first number of the video networking data packets in a certain time period may be counted to obtain the transmission rate, which may be a final statistical result as a transmission statistical result.
In another embodiment of the present invention, step 708 may include the following sub-steps:
and a substep S32 of counting a second number of video network packets having a destination address of the video network as the designated address.
And a substep S33 of counting a third number of packets of the video network having the source address of the video network as the designated address.
And a substep S34 of calculating a difference between the second number and the third number as a transmission matching degree.
In the embodiment of the invention, the video network address of a certain video network device (such as a video network server) can be set as a designated address.
On one hand, the second quantity of the video network data packets with the destination addresses of the video network as the designated addresses is counted, and the quantity of the data packets sent to the video network equipment is obtained.
On the other hand, counting the third quantity of the video network data packets with the source addresses of the video network as the specified addresses, and obtaining the quantity of the data packets receiving the video network equipment.
In video networking, communication is paired, i.e., one party sends instructions (video networking packets) and the other party returns responses (video networking packets), so the number of video networking packets sent and the number of video networking packets received should be equal.
However, the network in the video network may have jitter and the like, which may cause the transmission of the video network data packets to fail, so that the transmission matching degree may be obtained by calculating the difference between the second quantity and the third data, and the network state of the video network is reflected to a certain extent.
The statistical result is used as an intermediate statistical result, and the user can be assisted in analyzing other statistical results such as network faults, stability and the like.
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. 8, a block diagram of a transmission monitoring apparatus according to an embodiment of the present invention is shown, and is applied to a video network terminal of a video network, and specifically includes the following modules:
a parameter receiving module 801, configured to receive input file parameters and operation parameters;
a statistical file creating module 802, configured to create a statistical file according to the file parameter;
a packet capturing component configuring module 803, configured to configure a packet capturing component according to the operating parameter;
and the packet capturing component calling module 804 is used for calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file.
In one embodiment of the invention, the file parameters include directory, data type;
the statistical file creating module 802 includes:
the directory creating submodule is used for creating a statistical file in the directory;
and the data type configuration submodule is used for configuring the data type in the statistical file.
In one embodiment of the present invention, further comprising:
the statistical file judging module is used for judging whether the statistical file is successfully created or not; if so, calling the packet capturing component configuration module; if not, returning to call the statistical file creating module.
In one embodiment of the invention, the operation parameters comprise a packet capture object, a data type;
the packet capturing component calling module 804 includes:
the packet capturing sub-module is used for calling the packet capturing component to capture the video networking data packet from the packet capturing object;
the target data extraction submodule is used for extracting target data of the data type from the data packet;
and the target data writing submodule is used for writing the target data into an area corresponding to the data type of the statistical file.
In one embodiment of the invention, the data type includes at least one of:
source address of the video network, destination address of the video network, operation instruction, type of video network device, packet type.
In one embodiment of the present invention, further comprising:
the size threshold judging module is used for judging whether the statistical file exceeds a preset size threshold or not; if yes, calling a writing stopping module, and if not, returning to calling the packet capturing component calling module;
and the writing stopping module is used for stopping writing the video networking data packet into the statistical file.
In one embodiment of the present invention, further comprising:
and the transmission statistical result generating module is used for generating a transmission statistical result according to the statistical file.
In an embodiment of the present invention, the transmission statistic result generating module includes:
the transmission rate calculation submodule is used for calculating the ratio of a preset time period to the first number of the video networking data packets in the time period as a transmission rate;
and/or the presence of a gas in the gas,
the sending number counting submodule is used for counting the second number of the video network data packets of which the destination addresses are the designated addresses;
the receiving quantity counting submodule is used for counting the third quantity of the video network data packets of which the source addresses are the designated addresses;
and the transmission matching degree operator module is used for calculating the difference value between the second quantity and the third quantity to be used as the transmission matching degree.
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.
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 transmission monitoring method and the transmission monitoring device 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 (7)

1. A transmission monitoring method is applied to a video network terminal of a video network, and comprises the following steps:
receiving input file parameters and operation parameters; wherein the file parameters comprise a directory and a data type; the operation parameters comprise a packet capture object and a data type;
creating a statistical file according to the file parameters;
configuring a packet grabbing component according to the operating parameters;
calling the packet capturing component to capture a video networking data packet and writing the video networking data packet into the statistical file;
wherein, the creating a statistical file according to the file parameters comprises:
creating a statistical file in the directory;
configuring the data type in the statistical file;
the calling of the packet capturing component captures a video networking data packet and writes the video networking data packet into the statistical file, and the calling of the packet capturing component comprises the following steps:
calling the packet capturing component to capture the video networking data packet from the packet capturing object;
extracting target data of the data type from the data packet;
and writing the target data into an area corresponding to the data type of the statistical file.
2. The method of claim 1, further comprising:
judging whether the statistical file is successfully created or not;
if yes, executing the packet capturing component configured according to the operation parameters;
if not, returning to execute the statistical file created according to the file parameters.
3. The method of claim 1, wherein the data type comprises at least one of:
source address of the video network, destination address of the video network, operation instruction, type of video network device, packet type.
4. The method of claim 1, further comprising:
judging whether the statistical file exceeds a preset size threshold value or not;
if yes, stopping writing the video networking data packet into the statistical file;
if not, returning to execute the calling of the packet capturing component to capture the video networking data packet, and writing the video networking data packet into the statistical file.
5. The method of claim 1 or 3, further comprising:
and generating a transmission statistical result according to the statistical file.
6. The method of claim 5, wherein generating transmission statistics from the statistics file comprises:
calculating a ratio between a preset time period and a first number of the video networking data packets in the time period as a transmission rate;
and/or the presence of a gas in the gas,
counting a second number of the video network data packets with the destination addresses of the video network as the designated addresses;
counting a third number of the video network data packets with the source addresses of the video network as the specified addresses;
and calculating the difference value between the second quantity and the third quantity as the transmission matching degree.
7. A transmission monitoring apparatus, for use in a video network terminal of a video network, the apparatus comprising:
the parameter receiving module is used for receiving input file parameters and operation parameters; wherein the file parameters comprise a directory and a data type; the operation parameters comprise a packet capture object and a data type;
the statistical file creating module is used for creating a statistical file according to the file parameters;
the packet capturing component configuration module is used for configuring the packet capturing component according to the operation parameters;
the packet capturing component calling module is used for calling the packet capturing component to capture the video networking data packet and writing the video networking data packet into the statistical file;
wherein the statistical file creating module comprises:
the directory creating submodule is used for creating a statistical file in the directory;
the data type configuration submodule is used for configuring the data type in the statistical file;
wherein, the packet capturing component calling module comprises:
the packet capturing sub-module is used for calling the packet capturing component to capture the video networking data packet from the packet capturing object;
the target data extraction submodule is used for extracting target data of the data type from the data packet;
and the target data writing submodule is used for writing the target data into an area corresponding to the data type of the statistical file.
CN201711481929.0A 2017-12-29 2017-12-29 Transmission monitoring method and device Active CN108574609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711481929.0A CN108574609B (en) 2017-12-29 2017-12-29 Transmission monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711481929.0A CN108574609B (en) 2017-12-29 2017-12-29 Transmission monitoring method and device

Publications (2)

Publication Number Publication Date
CN108574609A CN108574609A (en) 2018-09-25
CN108574609B true CN108574609B (en) 2021-05-14

Family

ID=63575802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711481929.0A Active CN108574609B (en) 2017-12-29 2017-12-29 Transmission monitoring method and device

Country Status (1)

Country Link
CN (1) CN108574609B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035297B (en) * 2019-03-08 2021-05-14 视联动力信息技术股份有限公司 Video processing method and device
CN113868096B (en) * 2021-10-15 2024-05-17 中国建设银行股份有限公司 Asynchronous data transmission monitoring method and device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984682A (en) * 2012-10-29 2013-03-20 苏州坤里达信息科技有限公司 Data access method of signaling collection device in mobile communication system
CN104363140B (en) * 2014-11-21 2018-04-17 国家电网公司 A kind of test method and device
US9632849B2 (en) * 2015-09-15 2017-04-25 Salesforce.Com, Inc. System having in-memory buffer service, temporary events file storage system and events file uploader service
CN106570037A (en) * 2015-10-12 2017-04-19 中兴通讯股份有限公司 Data processing method and device
CN105468995A (en) * 2015-12-15 2016-04-06 吉林大学 Data mining based invasion detection system with Oracle as core
CN106250471A (en) * 2016-07-29 2016-12-21 东北大学 A kind of data for train ATP automatically extract and store system and method
CN106685984A (en) * 2017-01-16 2017-05-17 东北大学 Network threat analysis system and method based on data pocket capture technology
CN107391708B (en) * 2017-07-28 2020-09-22 苏州浪潮智能科技有限公司 Method and device for storing performance statistics file in storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TCPdump抓包命令详解;s_k_yliu;《https://blog.csdn.net/s_k_yliu/article/details/6665673》;20110806;第1-3页 *

Also Published As

Publication number Publication date
CN108574609A (en) 2018-09-25

Similar Documents

Publication Publication Date Title
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN108965040B (en) Service monitoring method and device for video network
CN111193788A (en) Audio and video stream load balancing method and device
CN108989078B (en) Method and device for detecting node equipment fault in video network
CN109547163B (en) Method and device for controlling data transmission rate
CN109788235B (en) Video networking-based conference recording information processing method and system
CN110475131B (en) Terminal connection method, server and terminal
CN110149305B (en) Video network-based multi-party audio and video playing method and transfer server
CN110035297B (en) Video processing method and device
CN109743284B (en) Video processing method and system based on video network
CN108574609B (en) Transmission monitoring method and device
CN110769297A (en) Audio and video data processing method and system
CN111478880B (en) Data processing method and device
CN110446058B (en) Video acquisition method, system, device and computer readable storage medium
CN110072154B (en) Video networking-based clustering method and transfer server
CN109889516B (en) Method and device for establishing session channel
CN109586851B (en) Data transmission method and device based on video network
CN109698953B (en) State detection method and system for video network monitoring equipment
CN111510341A (en) Network testing method and device for video network
CN110049069B (en) Data acquisition method and device
CN108964965B (en) Video conference reservation method and system
CN110719259A (en) Data processing method and video networking system
CN111478940B (en) Data processing method and device
CN110113565B (en) Data processing method and intelligent analysis equipment based on video network
CN110233872B (en) Data transmission method based on video network and video network terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant