CN110958461B - Method and device for detecting connection state of video networking server - Google Patents

Method and device for detecting connection state of video networking server Download PDF

Info

Publication number
CN110958461B
CN110958461B CN201911089896.4A CN201911089896A CN110958461B CN 110958461 B CN110958461 B CN 110958461B CN 201911089896 A CN201911089896 A CN 201911089896A CN 110958461 B CN110958461 B CN 110958461B
Authority
CN
China
Prior art keywords
network
video
server
video network
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911089896.4A
Other languages
Chinese (zh)
Other versions
CN110958461A (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 CN201911089896.4A priority Critical patent/CN110958461B/en
Publication of CN110958461A publication Critical patent/CN110958461A/en
Application granted granted Critical
Publication of CN110958461B publication Critical patent/CN110958461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for detecting the connection state of a video networking server. The method for detecting the connection state of the video networking server comprises the following steps: acquiring a plurality of network packets received by a video network server; analyzing the network packets to obtain the field value of a preset field in each network packet; determining the connection state of the video network server and a target video network according to the field value and a video network identifier pre-stored in the video network server, wherein the connection state comprises the following steps: and the target video network is the video network indicated by the video network identifier. After the server is additionally arranged, the embodiment of the invention can also determine the connection state of the additionally arranged server and the video network without deploying the video network service platform according to the additionally arranged server.

Description

Method and device for detecting connection state of video networking server
Technical Field
The invention relates to the field of video networking connection, in particular to a method and a device for detecting the connection state of a video networking server.
Background
The video networking is a network for realizing real-time transmission of full-network high-definition videos, and the video networking pushes a plurality of internet applications to high-definition video and high-definition surface development. The video network adopts real-time and high-definition video exchange technology, services required by users, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command and the like, are integrated on a system platform on a network platform, and the users can realize high-definition video playing through video network terminals such as televisions or computers. Specifically, the visual network generates a virtual object by means of technologies such as graphic images, video recognition, human intelligence, mobile computing and the like, and accurately places the virtual object in a real environment through technologies such as spatial positioning, three-dimensional registration, various sensing, wireless transmission and the like. Meanwhile, through information exchange and communication between the video networking terminal and the cloud computing center, an environment capable of reflecting relevant three-dimensional information such as the current environment, climate and scene is presented to a user, and a real sensory effect is brought to the user.
At present, the number of video networking services is increasing, and the number of servers in the video networking is also increasing. When a server is added to a certain video network, in order to ensure that the added server has successfully accessed the video network but not other video networks, the connection detection of the video network needs to be performed on the server accessed to the video network.
However, the existing connection detection method of the video network can only deploy a video network service platform according to the added server after the server is added, and then use the video network service platform to develop services, thereby determining whether the added server has successfully accessed the video network. Obviously, the existing detection mode has low efficiency.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a method of detecting a connection status of a video network server that overcomes or at least partially solves the above mentioned problems.
In a first aspect, an embodiment of the present invention discloses a method for detecting a connection state of a video networking server, where the method includes:
acquiring a plurality of network packets received by a video network server;
analyzing the network packets to obtain the field value of a preset field in each network packet;
determining the connection state of the video network server and a target video network according to the field value and a video network identifier pre-stored in the video network server, wherein the connection state comprises the following steps: and the target video network is the video network indicated by the video network identifier.
Optionally, the video network server includes a plurality of network cards;
the step of acquiring the plurality of network packets received by the video network server comprises the following steps:
acquiring a network card list of the video network server, wherein the network card list comprises the name of each network card in the plurality of network cards;
controlling the video networking server to be respectively bound with each network card according to the network card list;
and acquiring the network packet received by the video network server through each bound network card.
Optionally, the identifier corresponding to the video network is a Media Access Control (MAC) address corresponding to a video network terminal that is registered in the video network but not accessed to the video network.
Optionally, the field value in the preset field includes: a first field value in a protocol data unit field and a second field value in a two-layer MAC destination address field.
Optionally, the step of determining the connection status of the internet of view server and the target internet of view according to the field value and the internet of view identifier pre-stored in the internet of view server includes:
detecting whether the first two bytes in the first field value of each network packet are the same as a port query instruction code in an internet of view message, and whether the second field value is the same as the internet of view identifier;
if a target network packet exists in the plurality of network packets, determining that the connection state of the video network server and the target video network is successful, wherein the first two bytes in the first field value of the target network packet are the same as a port query instruction code in a video network message, and the second field value is the same as the video network identifier.
Optionally, before the step of parsing the network packet, the method further includes:
calculating to obtain the message length of each network packet;
and deleting the network packets of which the message length is not the preset length in the plurality of network packets.
In a second aspect, an embodiment of the present invention further discloses a device for detecting a connection state of a video networking server, where the device includes:
the acquisition module is used for acquiring a plurality of network packets received by the video network server;
the analysis module is used for analyzing the network packets to obtain the field value of the preset field in each network packet;
a determining module, configured to determine, according to the field value and an internet of view identifier pre-stored in the internet of view server, a connection state between the internet of view server and a target internet of view, where the connection state includes: and the target video network is the video network indicated by the video network identifier.
Optionally, the identifier corresponding to the video network is a MAC address corresponding to a video network terminal that is registered in the video network but is not networked.
In a third aspect, an embodiment of the present invention further discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement any one of the methods in the first aspect.
In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program for executing any one of the methods in the first aspect is stored in the computer-readable storage medium.
The method and the device for detecting the connection state of the video network server can acquire the network packet received by the video network server and obtain the field value of the preset field by analyzing the network packet; and then comparing the field value with the video network identification prestored in the video network server to determine the connection state of the video network server and the video network, so that after the video network server is added, the video network service platform does not need to be deployed according to the added video network server, and the connection state of the added video network server and the video network can also be determined. Therefore, the embodiment of the invention can simply and quickly detect the connection state of the video network server and the video network.
Drawings
Fig. 1 is a schematic diagram of a method for detecting a connection status of a video network server according to an embodiment of the present invention;
FIG. 2 is a diagram of a hardware architecture provided by an embodiment of the present invention;
FIG. 3 is a schematic application diagram of a method for detecting a connection status of a video network server according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a device for detecting a connection status of a video network server according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an acquisition module provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of the determination module provided by the embodiment of the invention;
FIG. 7 is a networking diagram of a video network provided by an embodiment of the invention;
fig. 8 is a schematic hardware structure diagram of a node server according to an embodiment of the present invention;
fig. 9 is a schematic hardware structure diagram of an access switch according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway 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.
When the existing video network is additionally provided with the video network server, the additional video network server and the video network are physically connected through a network cable and the like, but the problem of line connection error or switch strategy may exist, so that the additional video network server is not successfully connected into the existing video network. The invention provides a solution for the situation, and can determine whether the added video network server is successfully connected into the existing video network, namely, the network packet transmitted in the existing video network can be received when the video network server is successfully connected.
Fig. 1 illustrates a method for detecting a connection status of a video network server according to an embodiment of the present invention, including the following steps:
step 101: acquiring a plurality of network packets received by a video network server;
it should be noted that, after the physical connection between the video network server and the video network is realized through the network cable, etc., regardless of the connection error of the cable or the switch policy, the video network server may receive a plurality of network packets transmitted by the devices actually connected to the video network server. For example, the network packet may be a video networking access broadcast message, that is, a data link layer message that includes a video networking MAC and an access instruction code and is sent to the network by a video networking core server of the video networking, and the video networking access broadcast message will be continuously sent after the video networking core server is powered on, so that all servers successfully connected to the video networking will receive the video networking access broadcast message. The video network core server is a hardware device for recording and managing video network service and forwarding video network protocol. The video network MAC is a 6-byte video network MAC address corresponding to each video network terminal number in the video network, and can be registered through a video network management tool. The video network management platform is a management system used for registering and managing video network terminals and servers. The terminal number of the video network is a service unit identification number in the video network and is used for identifying a real or virtual terminal which can initiate the video network service.
The video network server receives the network packet through the network card, wherein the number of the network cards in the video network server can be one or more, preferably, the number of the network cards can be determined according to the service to be operated by the video network server. If the video networking server needs to simultaneously consider the video networking service and the internet service, the video networking server comprises at least one video networking card and at least one internet card, and a plurality of network cards can be added for standby or used for other purposes.
Preferably, the video network server comprises a plurality of network cards;
the step of acquiring the plurality of network packets received by the video network server comprises the following steps:
acquiring a network card list of a video network server, wherein the network card list comprises the name of each network card in a plurality of network cards;
controlling the video network server to be respectively bound with each network card according to the network card list;
and acquiring the network packet received by the video network server through each bound network card.
The function in the video network server can be called to directly obtain the network card list, and then the original socket is used for capturing the network packet received by the network card. The captured network packets can be classified according to the network cards receiving the network packets, so that each network card corresponds to different network packets, and the network packet corresponding to the network card is the network packet received by the network card. The time for each network card to receive the network packet may be 10 seconds, but is not limited thereto.
Step 102: analyzing the network packets to obtain the field value of the preset field in each network packet;
it should be noted that the network packets are all sent by using fixed format messages, so that the network packets can be analyzed according to the fixed format messages, and thus the field value in each field in the network packet can be obtained.
As shown in table 1, the format of the network packet in the video networking is shown, wherein the VMS destination address is the video networking destination address; the VMS source address is an internet of view source address; PDU is protocol data unit; word and BYTE are units of measure, where 1Word equals 2 BYTE.
Table 1:
Figure BDA0002266534040000061
when the core server of the video network transmits the network packet, the field value of a certain field of the network packet is a video network identifier corresponding to the video network to which the core server of the video network belongs, wherein each video network corresponds to a different video network identifier. And the video network identification can be obtained by analyzing the network packet, and the video network connected with the video network server is determined to be the video network to the end according to the video network identification.
Step 103: and determining the connection state of the video network server and the target video network according to the field value and the video network identification pre-stored in the video network server.
It should be noted that the connection state includes: connection success and connection failure. The target video network is the video network indicated by the video network identifier, wherein each video network corresponds to a different video network identifier, and the video network identifier corresponding to a certain video network also indicates the video network. When the additional video network server wants to access the target video network, at least one video network identification can be input in a manual input mode and stored. The at least one video network identification corresponds to the target video network. Since there are a plurality of network packets, the resulting field value is also a plurality. When one field value in the field values is the same as the video network identification, the video network server is successfully connected with the target video network, otherwise, the connection is considered to be failed. In order to improve the fault tolerance, all the network packets can be sequenced according to the time of obtaining the network packets, a plurality of field values with the sequence are correspondingly obtained, when the plurality of continuous field values are the same as the identifiers of the video network, the video network server and the target video network are considered to be successfully connected, otherwise, the connection is considered to be failed.
Preferably, the two MAC destination address fields of the internet-of-things network access broadcast message store MAC addresses corresponding to terminals of the internet-of-things network that are registered but not accessed. Because each terminal of the video network corresponds to one terminal number and each terminal number corresponds to one MAC address, each terminal of the video network can also be considered to correspond to one MAC address.
Because the corresponding MAC addresses in different video networks are different, the MAC address can be used as a video network identifier to distinguish different video networks. Therefore, the identification of the video network is the MAC address corresponding to the video network terminal which is registered in the video network but is not accessed to the network.
In the embodiment of the invention, the network packet received by the video network server can be obtained, and the field value of the preset field is obtained by analyzing the network packet; and then comparing the field value with the video network identification prestored in the video network server to determine the connection state of the video network server and the video network, so that after the video network server is added, the video network service platform does not need to be deployed according to the added video network server, and the connection state of the added video network server and the video network can also be determined. Therefore, the embodiment of the invention can simply and quickly detect the connection state of the video network server and the video network.
In order to avoid the influence caused by the internet packets that may exist in the network packets, on the basis of the above embodiment of the present invention, in the embodiment of the present invention, the field value in the preset field includes: a first field value in a protocol data unit field and a second field value in a two-layer MAC destination address field.
It should be noted that, referring to table 2, the description of the fields of the pdu in the network packet is given. Wherein the field value in the protocol data unit field in the network packet has a length of 32word or 64 bytes, and the first two bytes are 8a01 in hexadecimal. The first two bytes of the corresponding protocol data unit field in a network packet in the internet are not 8a 01. That is, the field values in the fields of the pdu of the network packet of the internet and the network packet of the internet are different, so that whether the obtained network packet is the internet packet or the internet packet can be distinguished by the field values. Meanwhile, the two layers of MAC destination address fields of the video networking packet store MAC addresses corresponding to video networking terminals which are registered in the video networking but not accessed to the network, and the MAC addresses in different video networking are different, so that the field values in the two layers of MAC destination address fields can distinguish different video networking.
Table 2:
Figure BDA0002266534040000071
Figure BDA0002266534040000081
correspondingly, the step of determining the connection state of the video network server and the target video network according to the field value and the video network identification pre-stored in the video network server comprises the following steps:
detecting whether the first two bytes in the first field value of each network packet are the same as the port query instruction code in the video network message and whether the second field value is the same as the video network identifier;
if the target network packet exists in the network packets, the connection state of the server of the video network and the target video network is determined to be successful, wherein the first two bytes in the first field value of the target network packet are the same as the port query instruction code in the video network message, and the second field value is the same as the video network identifier.
The port query instruction code may be hexadecimal 8a01, i.e., 0X8a01, but is not limited thereto. And if the target network packet does not exist in the plurality of network packets, determining that the connection state of the video network server and the video network is connection failure.
In order to increase the detection speed, on the basis of the above embodiments of the present invention, in the embodiment of the present invention, before the step of parsing the network packet, the method further includes:
calculating to obtain the message length of each network packet;
and deleting the network packets of which the message length is not the preset length in the plurality of network packets.
It should be noted that, since the connection status can be determined only according to a specific network packet, for example, the connection status can be determined according to a video networking packet, network packets other than the specific network packet in the received network packets can be deleted. Preferably, a specific network packet is screened according to the message length, for example, when the message length of the internet of things packet is a specific value, a network packet whose message length is not the specific value in the network packet may be deleted.
As shown in fig. 2, the core server of the video network, the video network server 1, the video network server 2, and the video network server 3 all belong to the video network a, and the video network server 4 is an additional video network server that wants to access the video network a, where the video network server 4 includes 4 network cards, that is, the network card 1, the network card 2, the network card 3, and the network card 4. When the method for detecting the connection state of the server in the video network provided by the present invention is used to detect the connection state of the server 4 in the video network a, the operation can be performed according to the application flowchart shown in fig. 3.
The main steps of the application flow chart shown in fig. 3 include:
step 301: inputting a MAC address; the MAC address is a MAC address corresponding to a terminal of the video network that has been registered in the video network a but has not yet entered the network.
Step 302: and acquiring a network card list of the video network server 4, wherein the network card list comprises network card names of all network cards in the video network server 4.
Step 303: binding network cards in sequence according to a network card list, wherein the binding time of each network card is 10 seconds, binding the next network card for more than 10 seconds, and executing the step 304 if no next network card exists; and executing the steps 305-307 once every time the network card is bound.
Step 304: and outputting the result, wherein the network card in the video network server 4 can be output as a video network card, and the video network terminal indicated by the input MAC address can normally access the network.
Step 305: and grabbing the network packet through the currently bound network card.
Step 306: and judging whether the captured network packet has a video networking network packet, if not, returning to the step 303, and if so, executing the step 307.
Step 307: and judging whether the data stored in the two layers of MAC destination address fields in the video network access packet is consistent with the input MAC address or not, recording the result and returning to the step 303.
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.
Fig. 4-6 illustrate an apparatus for detecting a connection status of a video network server according to another embodiment of the present invention, the apparatus including:
an obtaining module 41, configured to obtain a plurality of network packets received by a video network server;
the analysis module 42 is configured to analyze the network packets to obtain field values of preset fields in each network packet;
a determining module 43, configured to determine a connection status between the internet of view server and the target internet of view according to the field value and the internet of view identifier pre-stored in the internet of view server, where the connection status includes: the connection is successful and the connection is failed, and the target video network is the video network indicated by the video network identification.
It should be noted that the view network identifier is a MAC address corresponding to a registered but un-connected view network terminal in the view network.
The video network server comprises a plurality of network cards;
the acquisition module 41 includes:
an obtaining unit 411, configured to obtain a network card list of the video network server, where the network card list includes a name of each network card in the multiple network cards;
a binding unit 412, configured to control the video network server to bind with each network card according to the network card list;
and the capturing unit 413 is configured to obtain a network packet received by the video network server through each bound network card.
The field values in the preset fields include: a first field value in a protocol data unit field and a second field value in a two-layer medium access control, MAC, destination address field.
The determination module 43 includes:
a first detecting unit 431, configured to detect whether the first two bytes in the first field value of each network packet are the same as the port query instruction code in the internet of view packet, and whether the second field value is the same as the internet of view identifier;
a second detecting unit 432, configured to determine that the connection status between the internet of things server and the target internet of things is successful if it is detected that a target network packet exists in the multiple network packets, where first two bytes in a first field value of the target network packet are the same as the port query instruction code in the internet of things packet, and a second field value is the same as the internet of things identifier.
Preferably, the apparatus further comprises:
the calculation module is used for calculating and obtaining the message length of each network packet;
and the deleting module is used for deleting the network packets of which the message length is not the preset length in the plurality of network packets.
In the embodiment of the invention, the network packet received by the video network server can be obtained, and the field value of the preset field is obtained by analyzing the network packet; and then comparing the field value with the video network identification prestored in the video network server to determine the connection state of the video network server and the video network, so that after the video network server is added, the video network service platform does not need to be deployed according to the added video network server, and the connection state of the added video network server and the video network can also be determined. Therefore, the embodiment of the invention can simply and quickly detect the connection state of the video network server and the video network.
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 embodiment of the invention also discloses electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the method of any embodiment.
The embodiment of the invention also discloses a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the method for realizing any embodiment.
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 internet of vision technology employs network Packet Switching to satisfy the demand of Streaming (translated into Streaming, and continuous broadcasting, which is a data transmission technology, converting received data into a stable and continuous stream, and continuously transmitting the stream, so that the sound heard by the user or the image seen by the user is very smooth, and the user can start browsing on the screen before the whole data is transmitted). 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 matching 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. 7, 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 on the metro network part can 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 (circled part), 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. 8, the network interface module 801, the switching engine module 802, the CPU module 803, and the disk array module 804 are mainly included.
The network interface module 801, the CPU module 803, and the disk array module 804 all enter the switching engine module 802; the switching engine module 802 performs an operation of looking up the address table 805 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 806 based on the packet's steering information; if the queue of the packet buffer 806 is nearly full, discard; the switching engine module 802 polls all packet buffer queues and forwards 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 804 mainly implements control over the hard disk, including initialization, reading and writing operations on the hard disk; the CPU module 803 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 805 (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 804.
The access switch:
as shown in fig. 9, the network interface module (downstream network interface module 901 and upstream network interface module 902), the switching engine module 903 and the CPU module 904 are mainly included.
Wherein, a packet (uplink data) coming from the downlink network interface module 901 enters the packet detection module 905; the packet detection module 905 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 903, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 902 enters the switching engine module 903; the data packet coming from the CPU module 904 enters the switching engine module 903; the switching engine module 903 performs an operation of looking up the address table 906 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 903 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 907 in association with the stream-id; if the queue of the packet buffer 907 is close to full, it is discarded; if the packet entering the switching engine module 903 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 907 according to the guiding information of the packet; if the queue of the packet buffer 907 is close to full, it is discarded.
The switching engine 903 polls all packet buffer queues in the embodiment of the present invention in 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) and obtaining the token generated by the 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 904 is mainly responsible for protocol processing with the node server, configuration of the address table 906, and configuration of the code rate control module 908.
Ethernet protocol conversion gateway
As shown in fig. 10, the system mainly includes a network interface module (a downlink network interface module 1001 and an uplink network interface module 1002), a switching engine module 1003, a CPU module 1004, a packet detection module 1005, a rate control module 1008, an address table 1006, a packet buffer 1007, a MAC adding module 1009, and a MAC deleting module 1010.
Wherein, the data packet coming from the downlink network interface module 1001 enters the packet detection module 1005; the packet detection module 1005 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 deleting module 1010 subtracts MAC DA, MAC SA, length or frame type (2byte), and enters a corresponding receiving buffer, otherwise, the MAC deleting module discards the MAC DA, MAC SA, length or frame type;
the downlink network interface module 1001 detects the transmission buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the video networking 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 transmits 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 3 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
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (e.g. various protocol packets, multicast data packets, unicast data packets, etc.), there are at most 256 possibilities, 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 types of different datagrams, and is 64 bytes if the type of the datagram is a variety of protocol packets, or is 1056 bytes if the type of the datagram is a unicast packet, but 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 Multi-Protocol Label switching (MPLS), and assuming that there are two connections between a device a and a device B, there are 2 labels for a packet from the device a to the device B, and 2 labels for a 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 as follows: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the 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 so forth) 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 electronic focusing method and the electronic focusing device of the camera provided by the invention are introduced in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the examples 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 (8)

1. A method for detecting the connection state of a video network server is characterized by comprising the following steps:
acquiring a plurality of network packets received by a video network server;
analyzing the network packets to obtain the field value of a preset field in each network packet; the field values in the preset fields include: a first field value in a protocol data unit field and a second field value in a two-layer Media Access Control (MAC) destination address field;
determining the connection state of the video network server and a target video network according to the field value and a video network identifier pre-stored in the video network server, wherein the connection state comprises the following steps: the connection is successful and the connection is failed, the target video network is the video network indicated by the video network identifier, and the method specifically includes:
detecting whether the first two bytes in the first field value of each network packet are the same as a port query instruction code in an internet of view message, and whether the second field value is the same as the internet of view identifier;
if a target network packet exists in the plurality of network packets, determining that the connection state of the video network server and the target video network is successful, wherein the first two bytes in the first field value of the target network packet are the same as a port query instruction code in a video network message, and the second field value is the same as the video network identifier.
2. The method of claim 1, wherein the video networking server comprises a plurality of network cards;
the step of acquiring the plurality of network packets received by the video network server comprises the following steps:
acquiring a network card list of the video network server, wherein the network card list comprises the name of each network card in the network cards;
controlling the video networking server to be respectively bound with each network card according to the network card list;
and acquiring the network packet received by the video network server through each bound network card.
3. The method of claim 1, wherein the view network identification is a Media Access Control (MAC) address corresponding to a registered but un-accessed view network terminal in the view network.
4. The method of claim 1, wherein prior to the step of parsing the network packet, the method further comprises:
calculating to obtain the message length of each network packet;
and deleting the network packets of which the message length is not the preset length in the plurality of network packets.
5. An apparatus for detecting connection status of a video network server, comprising:
the acquisition module is used for acquiring a plurality of network packets received by the video network server;
the analysis module is used for analyzing the network packets to obtain the field value of the preset field in each network packet; the field values in the preset fields include: a first field value in a protocol data unit field and a second field value in a two-layer Media Access Control (MAC) destination address field; a determining module, configured to determine, according to the field value and an internet of view identifier pre-stored in the internet of view server, a connection state between the internet of view server and a target internet of view, where the connection state includes: the connection is successful and the connection is failed, the target video network is the video network indicated by the video network identifier, and the method specifically includes:
detecting whether the first two bytes in the first field value of each network packet are the same as a port query instruction code in an internet of view message, and whether the second field value is the same as the internet of view identifier;
if a target network packet exists in the plurality of network packets, determining that the connection state of the video network server and the target video network is successful, wherein the first two bytes in the first field value of the target network packet are the same as a port query instruction code in a video network message, and the second field value is the same as the video network identifier.
6. The apparatus of claim 5, wherein the identifier corresponding to the video network is a Media Access Control (MAC) address corresponding to a video network terminal registered but not connected in the video network.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for detecting a connection status of a video network server according to any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium storing a computer program for executing the method for detecting the connection status of the video network server according to any one of claims 1 to 4.
CN201911089896.4A 2019-11-08 2019-11-08 Method and device for detecting connection state of video networking server Active CN110958461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911089896.4A CN110958461B (en) 2019-11-08 2019-11-08 Method and device for detecting connection state of video networking server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911089896.4A CN110958461B (en) 2019-11-08 2019-11-08 Method and device for detecting connection state of video networking server

Publications (2)

Publication Number Publication Date
CN110958461A CN110958461A (en) 2020-04-03
CN110958461B true CN110958461B (en) 2022-05-06

Family

ID=69976663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911089896.4A Active CN110958461B (en) 2019-11-08 2019-11-08 Method and device for detecting connection state of video networking server

Country Status (1)

Country Link
CN (1) CN110958461B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404971B (en) * 2020-06-08 2020-10-23 季华实验室 Industrial robot network interface safety control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device
CN109548018A (en) * 2019-01-11 2019-03-29 腾讯科技(深圳)有限公司 Wireless network access method, device, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003060662A (en) * 2001-08-21 2003-02-28 Sony Corp Communication apparatus, communication method, program and recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device
CN109548018A (en) * 2019-01-11 2019-03-29 腾讯科技(深圳)有限公司 Wireless network access method, device, equipment and system

Also Published As

Publication number Publication date
CN110958461A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN108965224B (en) Video-on-demand method and device
CN109167960B (en) Method and system for processing video stream data
CN109617956B (en) Data processing method and device
CN108574818B (en) Information display method and device and server
CN109309806B (en) Video conference management method and system
CN110190973B (en) Online state detection method and device
CN109587002B (en) State detection method and system for video network monitoring equipment
CN110769310B (en) Video processing method and device based on video network
CN109246135B (en) Method and system for acquiring streaming media data
CN110557606B (en) Monitoring and checking method and device
CN108965220B (en) Method and system for synchronizing conference control right
CN109743555B (en) Information processing method and system based on video network
CN109743284B (en) Video processing method and system based on video network
CN109768957B (en) Method and system for processing monitoring data
CN110830763A (en) Monitoring video inspection method and device
CN110446058B (en) Video acquisition method, system, device and computer readable storage medium
CN109698953B (en) State detection method and system for video network monitoring equipment
CN110958461B (en) Method and device for detecting connection state of video networking server
CN108881148B (en) Data acquisition method and device
CN110113555B (en) Video conference processing method and system based on video networking
CN110677315A (en) Method and system for monitoring state
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN109618125B (en) Monitoring method and device based on video network
CN109688073B (en) Data processing method and system 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
GR01 Patent grant
GR01 Patent grant