CN110087102B - State query method, device and storage medium - Google Patents

State query method, device and storage medium Download PDF

Info

Publication number
CN110087102B
CN110087102B CN201910319048.1A CN201910319048A CN110087102B CN 110087102 B CN110087102 B CN 110087102B CN 201910319048 A CN201910319048 A CN 201910319048A CN 110087102 B CN110087102 B CN 110087102B
Authority
CN
China
Prior art keywords
terminal
protocol
internet
information
state
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
CN201910319048.1A
Other languages
Chinese (zh)
Other versions
CN110087102A (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 CN201910319048.1A priority Critical patent/CN110087102B/en
Publication of CN110087102A publication Critical patent/CN110087102A/en
Application granted granted Critical
Publication of CN110087102B publication Critical patent/CN110087102B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • 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
    • 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/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Landscapes

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

Abstract

The invention provides a state query method, a state query device and a storage medium. The method comprises the following steps: the method comprises the steps that an Internet terminal generates a state query request packet based on an Internet protocol and sends the state query request packet to a protocol conversion server, wherein the state query request packet carries information of a terminal to be queried; the protocol conversion server converts the state query request packet based on the Internet protocol into a state query request packet based on the video networking protocol, and sends the state query request packet to the video networking server; the protocol conversion server receives a state query response packet which is returned by the video networking server and is based on a video networking protocol, wherein the state query response packet carries state information of a video networking terminal corresponding to the information of the terminal to be queried; the protocol conversion server converts the state query response packet based on the video networking protocol into a state query response packet based on the Internet protocol, and returns the state query response packet to the Internet terminal; and the Internet terminal outputs the state information of the video network terminal according to the state inquiry response packet based on the Internet protocol. The invention can improve the user experience.

Description

State query method, device and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for querying a status, and a storage medium.
Background
With the rapid development of network technologies, communication such as video conference, video teaching, video telephone, live video broadcast and the like is widely popularized in the aspects of life, work, learning and the like of users.
When a user wants to perform a video service, such as dialing a video call, watching a live video, establishing a video conference, etc., a situation that a target user is not online may exist, and a current user cannot know whether the target user is online, so that the video service may fail due to the fact that the target user is not online, and user experience may be reduced.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a state query method, apparatus, and storage medium that overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention discloses a status query method, where the method is applied in a video network, where the video network includes a protocol server, a video network server, and a video network terminal, and the internet includes an internet terminal, and the method includes:
the Internet terminal generates a state query request packet based on an Internet protocol and sends the state query request packet based on the Internet protocol to the protocol conversion server; the state query request packet carries information of a terminal to be queried;
the protocol conversion server converts the state query request packet based on the Internet protocol into a state query request packet based on a video networking protocol and sends the state query request packet based on the video networking protocol to the video networking server;
the protocol conversion server receives a state query response packet based on the video networking protocol returned by the video networking server; the state query response packet carries state information of the video network terminal corresponding to the terminal information to be queried;
the protocol conversion server converts the state query response packet based on the video networking protocol into a state query response packet based on an internet protocol and returns the state query response packet based on the internet protocol to the internet terminal;
and the Internet terminal inquires a response packet according to the state based on the Internet protocol and outputs the state information of the video networking terminal.
Optionally, the step of generating, by the internet terminal, an internet protocol-based status query request packet includes: the internet terminal acquires the terminal information to be inquired in the String format through a Java layer, and converts the terminal information to be inquired in the String format into the terminal information to be inquired in the JSON format; the internet terminal calls a first JNI method through the Java layer to transmit the terminal information to be inquired in the JSON format to the local layer; and the Internet terminal obtains the state query request packet based on the Internet protocol through the local layer encapsulation, and adds the information of the terminal to be queried to the state query request packet based on the Internet protocol.
Optionally, the step of outputting, by the internet terminal, the state information of the video network terminal according to the state query response packet based on the internet protocol includes: the Internet terminal receives the Internet protocol-based state query response packet through a local layer and extracts the state information of the video network terminal from the Internet protocol-based state query response packet; the Internet terminal transfers the state information of the video networking terminal to a Java layer by calling a second JNI method through the local layer; and the Internet terminal outputs the state information of the video networking terminal through the Java layer calling state display interface.
Optionally, the method further comprises: the Internet terminal generates a contact data packet based on an Internet protocol and sends the contact data packet based on the Internet protocol to the protocol conversion server; the contact data packet carries contact information corresponding to the Internet terminal; the protocol conversion server converts the contact person data packet based on the Internet protocol into a contact person data packet based on a video networking protocol, and sends the contact person data packet based on the video networking protocol to the video networking server, so that the video networking server stores the contact person information corresponding to the Internet terminal.
Optionally, after the step of the protocol conversion server converting the internet protocol-based status query request packet into a video networking protocol-based status query request packet and sending the video networking protocol-based status query request packet to the video networking server, the method further includes: the video networking server extracts the terminal information to be queried from the state query request packet based on the video networking protocol and queries whether the terminal information to be queried exists in contact person information corresponding to the Internet terminal; and when the video network server inquires the existence, acquiring the state information of the video network terminal corresponding to the terminal information to be inquired, generating a state inquiry response packet based on a video network protocol, and returning to the protocol conversion server.
In a second aspect, an embodiment of the present invention discloses a status query device, which is applied to a video network, wherein the video network comprises a protocol server, a video network server and a video network terminal, and the internet comprises an internet terminal;
the internet terminal includes:
the first generation module is used for generating a state query request packet based on an internet protocol; the state query request packet carries information of a terminal to be queried;
the first sending module is used for sending the state query request packet based on the Internet protocol to the protocol conversion server;
the collaboration server comprises:
the first conversion module is used for converting the state query request packet based on the Internet protocol into a state query request packet based on a video networking protocol and sending the state query request packet based on the video networking protocol to the video networking server;
the receiving module is used for receiving a state inquiry response packet which is returned by the video networking server and is based on a video networking protocol; the state query response packet carries state information of the video network terminal corresponding to the terminal information to be queried;
the second conversion module is used for converting the state inquiry response packet based on the video networking protocol into a state inquiry response packet based on an internet protocol and returning the state inquiry response packet based on the internet protocol to the internet terminal;
the internet terminal further includes:
and the output module is used for outputting the state information of the video networking terminal according to the state query response packet based on the Internet protocol.
Optionally, the first generating module comprises: the format conversion unit is used for acquiring the information of the terminal to be inquired in the String format through a Java layer and converting the information of the terminal to be inquired in the String format into the information of the terminal to be inquired in the JSON format; the first transmission unit is used for transmitting the terminal information to be inquired in the JSON format to a local layer by calling a first JNI method through the Java layer; and the information packaging unit is used for obtaining the state query request packet based on the Internet protocol through the local layer packaging and adding the terminal information to be queried to the state query request packet based on the Internet protocol.
Optionally, the output module includes: the information extraction unit is used for receiving the Internet protocol-based status inquiry response packet through a local layer and extracting the status information of the video networking terminal from the Internet protocol-based status inquiry response packet; the second book transmission unit is used for transmitting the state information of the video networking terminal to the Java layer by calling a second JNI method through the local layer; and the information output unit is used for outputting the state information of the video network terminal through the Java layer calling state display interface.
Optionally, the internet terminal further includes: the second generation module is used for generating a contact person data packet based on an internet protocol; the contact data packet carries contact information corresponding to the Internet terminal; the second sending module is used for sending the contact person data packet based on the Internet protocol to the protocol conversion server; the collaboration server further comprises: and the third conversion module is used for converting the contact data packet based on the Internet protocol into a contact data packet based on a video networking protocol and sending the contact data packet based on the video networking protocol to the video networking server so that the video networking server can store the contact information corresponding to the Internet terminal.
Optionally, the video network server comprises: the query module is used for extracting the terminal information to be queried from the state query request packet based on the video networking protocol and querying whether the terminal information to be queried exists in the contact person information corresponding to the Internet terminal; and the return module is used for acquiring the state information of the video network terminal corresponding to the terminal information to be inquired when the existence is inquired, generating the state inquiry response packet based on the video network protocol and returning the state inquiry response packet to the protocol conversion server.
In a third aspect, an embodiment of the present invention discloses a status query apparatus, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the status query method of any of the above.
In a fourth aspect, an embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for causing a processor to execute the status query method as described in any one of the above.
In the embodiment of the invention, an internet terminal generates a state query request packet based on an internet protocol and sends the state query request packet based on the internet protocol to a protocol conversion server, wherein the state query request packet carries information of a terminal to be queried; the protocol conversion server converts the state query request packet based on the Internet protocol into a state query request packet based on a video networking protocol and sends the state query request packet based on the video networking protocol to a video networking server; the protocol conversion server receives a state query response packet which is returned by the video networking server and is based on a video networking protocol, wherein the state query response packet carries state information of the video networking terminal corresponding to the information of the terminal to be queried; the protocol conversion server converts the state query response packet based on the video networking protocol into a state query response packet based on an internet protocol and returns the state query response packet based on the internet protocol to the internet terminal; and the Internet terminal inquires the response packet according to the state based on the Internet protocol and outputs the state information of the video networking terminal. Therefore, in the embodiment of the invention, the user can acquire the state information of the video network terminal from the video network server, so that whether the video network terminal is online or not can be known, the video service failure caused by the fact that the video network terminal is not online is avoided, and the user experience is improved.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flowchart illustrating steps of a status query method according to a first embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps of a status query method according to a second embodiment of the present invention;
fig. 7 is a block diagram of a state query device according to a third 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 the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 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: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 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 incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 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.
Based on the characteristics of the video network, the status query scheme provided by the embodiment of the invention follows the protocol of the video network, can acquire the status information of the video network terminal, and improves the user experience.
The state query method of the embodiment of the invention can be applied to the video network. The devices involved may include devices in the video network and devices in the internet (IP network). The video network comprises a protocol conversion server, a video network server and a video network terminal, and the internet comprises an internet terminal. When the internet terminal wants to perform a video service with the video network terminal, the state information of the video network terminal can be obtained from the video network server through the coordination server.
The terminal of the video networking is a terminal for performing services based on the video networking protocol, and the terminal of the video networking may be various Set Top Boxes (STBs) and the like based on the video networking protocol. The video network terminal registers to the video network server to perform normal service, and the video network server allocates a terminal number, a Media Access Control (MAC) address, and the like to the video network terminal after successful registration. And the video network terminal logs in the video network server according to the terminal number so as to be connected with the video network server. In the video network, each video network terminal can be distinguished through the terminal number and the MAC address of the video network terminal.
The protocol conversion server can be understood as a gateway which serves as a bridge for the association between the internet and the video networking and is responsible for the conversion between the internet protocol and the video networking protocol. The collaboration server can be registered on the video network server in the form of a terminal. The protocol conversion server can comprise a plurality of virtual terminals, each virtual terminal is respectively registered to the video network server, and the video network server can allocate a terminal number, an MAC address and the like to each virtual terminal after successful registration. And each virtual terminal logs in the video network server according to the terminal number so as to monitor the connection of the access server and the video network server. In the video network, the virtual terminals can be distinguished through the terminal numbers and MAC addresses of the virtual terminals.
The internet terminal may be a PC (personal computer), a mobile phone, a tablet computer, or the like, or a software program installed on the above-mentioned device. The internet terminal performs a service based on an internet protocol.
Example one
Referring to fig. 5, a flowchart illustrating steps of a status query method according to a first embodiment of the present invention is shown.
The state query method of the embodiment of the invention can comprise the following steps:
step 501, an internet terminal generates a state query request packet based on an internet protocol and sends the state query request packet based on the internet protocol to a protocol conversion server; and the state inquiry request packet carries the information of the terminal to be inquired.
Video services such as video conference, video telephone, video live broadcast and the like can be carried out in the video network. When the internet terminal wants to perform a video service with the video network terminal, if the internet terminal dials a video telephone to the video network terminal, the internet terminal watches the live broadcast issued by the video network terminal, and the internet terminal pulls the video network terminal to establish a video conference, etc., the state information of the target video network terminal can be inquired first.
In implementation, a user interface may be provided on the internet terminal, a user may input terminal information to be queried on the user interface, and the terminal information to be queried may include a terminal number, a nickname, and other information of the video network terminal to be queried. After the information of the terminal to be queried is input, a relevant button (such as a 'confirm' button and the like) can be clicked, so that the internet terminal is triggered to generate a state query request.
The system of the internet terminal in the embodiment of the invention can be an Android (Android) system. The Android system may include a Java framework layer (i.e., Java layer) and a Native (Native) framework layer (i.e., Native layer). The Java layer is realized through Java language, and the local layer is realized through C and C + + languages. The interaction between the Java layer and the Native layer may be implemented by a JNI (Java Native Interface) mechanism. The JNI provides several APIs (Application Program interfaces) and enables communication between Java language and other languages (mainly C and C + +).
The internet terminal generating the internet protocol-based status query request packet may include a 1-A3:
a1, the Internet terminal obtains the terminal information to be inquired in String format through Java layer, and converts the terminal information to be inquired in String format into the terminal information to be inquired in JSON format.
After the user inputs the information of the terminal to be inquired, the internet terminal can form the information of the terminal to be inquired into the information of the terminal to be inquired in a String format through a Java layer, and the String format is a character String format.
The terminal information to be queried may include information of a plurality of terminals of the video network, so that the terminal information to be queried in String format can be converted into the terminal information to be queried in JSON format through the Java layer. JSON (JavaScript Object Notification) is a lightweight data exchange format. JSON can convert a set of data into a string. JSON is built in two structures: a collection of "name/value" pairs (A collection of name/value pairs). In different languages, it is understood as an object (object), a record (record), a structure (struct), a dictionary (dictionary), a hash table (hash table), a keyed list (keyed list), or an associative array (associative array). 2. An ordered list of values (ordered list of values). In most languages, it is understood as an array (array). The JSON format in the embodiment of the invention can be a JSON array format.
A2, the Internet terminal calls a first JNI method through the Java layer to transmit the terminal information to be inquired in the JSON format to the local layer.
In the implementation, an internet terminal calls a sendVideoUserStatus function through a Java layer by calling a first JNI method, transmits JSON-format terminal information to the sendVideoUserStatus function, namely sendVideoUserStatus (StringUserCode), wherein the UserCode is JSON-format terminal information (terminal number) to be queried, and transmits the JSON-format terminal information to a local layer through the sendVideoUserStatus (StringUserCode).
A3, the Internet terminal obtains the status query request packet based on the Internet protocol through the local layer encapsulation, and adds the information of the terminal to be queried to the status query request packet based on the Internet protocol.
The Internet terminal and the Protocol conversion server interact with each other based on an Internet Protocol, such as a Transmission Control Protocol (TCP)/Internet Protocol (IP). The internet terminal encapsulates the state query request into an internet protocol-based state query request packet based on the internet protocol, and adds the information of the terminal to be queried to the internet protocol-based state query request packet. For example, the terminal information to be queried is added to the internet packet header of the status query request packet, and is spliced with the IP address, the port number, and the like in the internet packet header. The internet terminal sends the state query request packet based on the internet protocol to the protocol server through the internet.
Step 502, the protocol conversion server converts the status query request packet based on the internet protocol into a status query request packet based on the video networking protocol, and sends the status query request packet based on the video networking protocol to the video networking server.
The protocol conversion server and the video network server interact based on a video network protocol. After receiving a state query request packet based on an internet protocol sent by an internet terminal, the protocol conversion server converts the state query request packet based on the internet protocol into a state query request packet based on a video networking protocol. The conversion process may be specifically performed by an idle virtual terminal therein.
The step of converting the internet protocol-based status query request packet into an internet protocol-based status query request packet by the collaboration server may include: the cooperation server analyzes the state query request packet based on the Internet protocol and extracts the information of the terminal to be queried from the Internet packet header of the state query request packet based on the Internet protocol; and the protocol conversion server adopts the video networking protocol to package to obtain the state query request packet based on the video networking protocol, and adds the terminal information to be queried to the video networking packet header of the state query request packet based on the video networking protocol.
The protocol conversion server analyzes the state query request packet based on the internet protocol to obtain unpacked state query request data, extracts the information of the terminal to be queried from the packet header of the internet, then packages the state query request data by using the video networking protocol, and adds the information of the terminal to be queried in the packet header of the video networking. The head of the video network packet may further include a terminal number, an MAC address, and the like of a coordination server (specifically, a virtual terminal that processes the status query request packet currently), and the terminal information to be queried may be spliced with the terminal number and the MAC address.
Step 503, the protocol conversion server receives a status query response packet based on the video networking protocol returned by the video networking server; and the state inquiry response packet carries the state information of the video network terminal corresponding to the information of the terminal to be inquired.
After the video network terminal is registered in the video network server, the video network terminal sends heartbeat information to the video network server through a heartbeat mechanism (heartbeat means socket short connection, and is checked once a second) in a video network protocol, and the video network server can know whether the video network terminal is on line or not according to the heartbeat information.
After receiving a state query request packet based on a video networking protocol sent by a protocol conversion server, the video networking server extracts the information of the terminal to be queried from the state query request packet based on the video networking protocol, and acquires the state information of the video networking terminal corresponding to the information of the terminal to be queried. For example, if the state of the video networking terminal corresponding to the terminal information to be queried is online, the state information of the video networking terminal is 1, and if the state of the video networking terminal corresponding to the terminal information to be queried is online, the state information of the video networking terminal is 0. And the video network server generates a state query response packet which carries the state information of the video network terminal corresponding to the information of the terminal to be queried and is based on the video network protocol. And the video network server returns a state inquiry response packet based on the video network protocol to the protocol conversion server.
In implementation, the video networking server returns the state query response packet based on the video networking protocol to the protocol conversion server according to a downlink communication link configured for the protocol conversion server (specifically, the virtual terminal currently processing the state query response packet).
In practical applications, the video network is a network with a centralized control function, and includes a master control server and a lower level network device, where the lower level network device includes a terminal, and one of the core concepts of the video network is to configure a table for a downlink communication link of a current service by notifying a switching device by the master control server, and then transmit a data packet based on the configured table.
Namely, the communication method in the video network includes:
and the master control server configures the downlink communication link of the current service.
And transmitting the data packet of the current service sent by the source terminal to the target terminal according to the downlink communication link.
In the embodiment of the present invention, configuring the downlink communication link of the current service includes: and informing the switching equipment related to the downlink communication link of the current service to allocate the table.
Further, transmitting according to the downlink communication link includes: the configured table is consulted, and the switching equipment transmits the received data packet through the corresponding port.
In particular implementations, the services include unicast communication services and multicast communication services. Namely, whether multicast communication or unicast communication, the core concept of the table matching-table can be adopted to realize communication in the video network.
As mentioned above, the video network includes an access network portion, in which the master server is a node server and the lower-level network devices include an access switch and a terminal.
For the unicast communication service in the access network, the step of configuring the downlink communication link of the current service by the master server may include the following steps:
and a substep S11, the main control server obtains the downlink communication link information of the current service according to the service request protocol packet initiated by the source terminal, wherein the downlink communication link information includes the downlink communication port information of the main control server and the access switch participating in the current service.
In the substep S12, the main control server sets a downlink port to which a packet of the current service is directed in a packet address table inside the main control server according to the downlink communication port information of the main control server; and sending a port configuration command to the corresponding access switch according to the downlink communication port information of the access switch.
In sub-step S13, the access switch sets the downstream port to which the packet of the current service is directed in its internal packet address table according to the port configuration command.
For a multicast communication service (e.g., video conference) in the access network, the step of the master server obtaining downlink information of the current service may include the following sub-steps:
in sub-step S21, the main control server obtains a service request protocol packet initiated by the target terminal and applying for the multicast communication service, where the service request protocol packet includes service type information, service content information, and an access network address of the target terminal.
Wherein, the service content information includes a service number.
And a substep S22, the main control server extracts the access network address of the source terminal in a preset content-address mapping table according to the service number.
In the substep of S23, the main control server obtains the multicast address corresponding to the source terminal and distributes the multicast address to the target terminal; and acquiring the communication link information of the current multicast service according to the service type information and the access network addresses of the source terminal and the target terminal.
Step 504, the protocol conversion server converts the status query response packet based on the video networking protocol into a status query response packet based on the internet protocol, and returns the status query response packet based on the internet protocol to the internet terminal.
And after the protocol conversion server receives the state query response packet based on the video networking protocol sent by the video networking server, converting the state query response packet based on the video networking protocol into a state query response packet based on the Internet protocol. The conversion process may be specifically performed by an idle virtual terminal therein.
The step of the protocol conversion server converting the status query response packet based on the internet protocol into the status query response packet based on the internet protocol may include: the protocol conversion server analyzes the state query response packet based on the video networking protocol, and extracts the state information of the video networking terminal corresponding to the information of the terminal to be queried from the video networking packet header of the state query response packet based on the video networking protocol; and the protocol conversion server adopts internet protocol encapsulation to obtain the state query response packet based on the internet protocol, and adds the state information of the video network terminal corresponding to the information of the terminal to be queried to the internet packet header of the state query response packet based on the internet protocol.
And 505, the internet terminal inquires a response packet according to the state based on the internet protocol and outputs the state information of the video network terminal.
After receiving the state query response packet based on the internet protocol returned by the protocol conversion server, the internet terminal outputs the state information of the video network terminal corresponding to the terminal information to be queried according to the state query response packet based on the internet protocol, and displays the state information of the video network terminal corresponding to the terminal information to be queried on a front-end h5 page.
Step 505 may include B1-B3:
and B1, the Internet terminal receives the Internet protocol-based status query response packet through the local layer and extracts the status information of the video network terminal from the Internet protocol-based status query response packet.
The Internet terminal receives the state query response packet based on the Internet protocol through the local layer, analyzes the state query response packet, and extracts the state information of the video network terminal corresponding to the terminal information to be queried from the Internet packet header.
And B2, the Internet terminal transmits the state information of the video networking terminal to the Java layer by calling a second JNI method through the local layer.
In the implementation, the internet terminal calls a getVideoUserStatus () function through a local layer calling a second JNI method, and transmits the state information of the video networking terminal corresponding to the terminal information to be queried to the getVideoUserStatus () function, wherein the state information is the state information of the video networking terminal in parentheses, and the state information of the video networking terminal is in int type and represents a return value. And transmitting the state information of the video networking terminal to the Java layer through a getVideoUserStatus () function.
B3, the Internet terminal calls a status display interface through the Java layer to output the status information of the video network terminal.
In the embodiment of the invention, the user can acquire the state information of the video network terminal from the video network server, so that whether the video network terminal is online or not can be known, the video service failure caused by the fact that the video network terminal is not online is avoided, and the user experience is improved.
Example two
Referring to fig. 6, a flowchart illustrating steps of a status query method according to a second embodiment of the present invention is shown.
The state query method of the embodiment of the invention can comprise the following steps:
601, an internet terminal generates a contact data packet based on an internet protocol and sends the contact data packet based on the internet protocol to the protocol conversion server; and the contact data packet carries contact information corresponding to the Internet terminal.
The user can add the contact person on the internet terminal, the user can input the contact person information corresponding to the internet terminal on the internet terminal, and the contact person information can comprise information such as the terminal number of the video network terminal. The internet terminal generates a contact data packet based on the internet protocol and sends the contact data packet based on the internet protocol to the protocol conversion server.
The step of the internet terminal generating the internet protocol-based contact data packet may include: the method comprises the steps that an internet terminal obtains contact information in a String format through a Java layer and converts the contact information in the String format into contact information in a JSON format; the Internet terminal calls a third JNI method through the Java layer to transmit the contact information in the JSON format to the local layer; and the Internet terminal obtains the contact person data packet based on the Internet protocol through the local layer encapsulation contact person information.
Step 602, the protocol conversion server converts the contact data packet based on the internet protocol into a contact data packet based on the video networking protocol, and sends the contact data packet based on the video networking protocol to the video networking server, so that the video networking server stores the contact information corresponding to the internet terminal.
The step of the protocol conversion server converting the internet protocol based contact data packet into a video internet protocol based contact data packet may comprise: the protocol conversion server analyzes the Internet protocol-based contact data packet and extracts contact information from the Internet protocol-based contact data packet; and the protocol conversion server adopts the video networking protocol to package the contact information to obtain the contact data packet based on the video networking protocol.
The protocol conversion server sends the contact data packet based on the video networking protocol to the video networking server, and the video networking server analyzes the contact data packet based on the video networking protocol to obtain the contact information corresponding to the internet terminal and stores the contact information corresponding to the internet terminal.
Step 603, the internet terminal generates a state query request packet based on the internet protocol and sends the state query request packet based on the internet protocol to the protocol conversion server; and the state inquiry request packet carries the information of the terminal to be inquired.
Step 604, the protocol conversion server converts the status query request packet based on the internet protocol into a status query request packet based on the video networking protocol, and sends the status query request packet based on the video networking protocol to the video networking server.
Step 605, the video network server extracts the information of the terminal to be queried from the status query request packet based on the video network protocol, and queries whether the information of the terminal to be queried exists in the contact information corresponding to the internet terminal.
And 606, when the video network server inquires the existence, acquiring the state information of the video network terminal corresponding to the terminal information to be inquired, generating the state inquiry response packet based on the video network protocol, and returning to the protocol conversion server.
And after receiving the state query request packet based on the video networking protocol, the video networking server analyzes the state query request packet, extracts the terminal information to be queried from the state query request packet based on the video networking protocol, and queries whether the terminal information to be queried exists in the previously stored contact information corresponding to the Internet terminal. If the terminal information exists, the Internet terminal can be allowed to inquire the state of the video networking terminal corresponding to the terminal information to be inquired; if the terminal information does not exist, the Internet terminal can be prohibited from inquiring the state of the video networking terminal corresponding to the terminal information to be inquired.
Therefore, when the contact information corresponding to the internet terminal is inquired by the video network server, the state information of the video network terminal corresponding to the terminal information to be inquired is obtained, the state inquiry response packet based on the video network protocol is generated, and the state inquiry response packet based on the video network protocol is returned to the protocol conversion server.
Step 607, the protocol conversion server receives the status inquiry response packet based on the video network protocol returned by the video network server; and the state inquiry response packet carries the state information of the video network terminal corresponding to the information of the terminal to be inquired.
Step 608, the protocol conversion server converts the status query response packet based on the video networking protocol into a status query response packet based on the internet protocol, and returns the status query response packet based on the internet protocol to the internet terminal.
Step 609, the internet terminal inquires the response packet according to the state based on the internet protocol, and outputs the state information of the video network terminal.
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.
EXAMPLE III
Referring to fig. 7, a block diagram of a state query device according to a third embodiment of the present invention is shown. The state inquiry device of the embodiment of the invention can be applied to the video network, wherein the video network comprises a protocol conversion server, a video network server and a video network terminal, and the internet comprises an internet terminal.
The state query device of the embodiment of the invention can comprise the following modules:
the internet terminal includes:
a first generating module 701, configured to generate an internet protocol-based status query request packet; the state query request packet carries information of a terminal to be queried;
a first sending module 702, configured to send the internet protocol-based status query request packet to the protocol conversion server;
the collaboration server comprises:
a first conversion module 703, configured to convert the internet protocol-based status query request packet into a video internet protocol-based status query request packet, and send the video internet protocol-based status query request packet to the video internet server;
a receiving module 704, configured to receive a status query response packet based on an internet of view protocol returned by the internet of view server; the state query response packet carries state information of the video network terminal corresponding to the terminal information to be queried;
a second conversion module 705, configured to convert the status query response packet based on the video networking protocol into a status query response packet based on an internet protocol, and return the status query response packet based on the internet protocol to the internet terminal;
the internet terminal further includes:
an output module 706, configured to output the state information of the video networking terminal according to the state query response packet based on the internet protocol.
In an alternative embodiment, the first generating module comprises: the format conversion unit is used for acquiring the information of the terminal to be inquired in the String format through a Java layer and converting the information of the terminal to be inquired in the String format into the information of the terminal to be inquired in the JSON format; the first transmission unit is used for transmitting the terminal information to be inquired in the JSON format to a local layer by calling a first JNI method through the Java layer; and the information packaging unit is used for obtaining the state query request packet based on the Internet protocol through the local layer packaging and adding the terminal information to be queried to the state query request packet based on the Internet protocol.
In an alternative embodiment, the output module comprises: the information extraction unit is used for receiving the Internet protocol-based status inquiry response packet through a local layer and extracting the status information of the video networking terminal from the Internet protocol-based status inquiry response packet; the second book transmission unit is used for transmitting the state information of the video networking terminal to the Java layer by calling a second JNI method through the local layer; and the information output unit is used for outputting the state information of the video network terminal through the Java layer calling state display interface.
In an optional implementation, the internet terminal further includes: the second generation module is used for generating a contact person data packet based on an internet protocol; the contact data packet carries contact information corresponding to the Internet terminal; the second sending module is used for sending the contact person data packet based on the Internet protocol to the protocol conversion server; the collaboration server further comprises: and the third conversion module is used for converting the contact data packet based on the Internet protocol into a contact data packet based on a video networking protocol and sending the contact data packet based on the video networking protocol to the video networking server so that the video networking server can store the contact information corresponding to the Internet terminal.
In an alternative embodiment, the visual networking server comprises: the query module is used for extracting the terminal information to be queried from the state query request packet based on the video networking protocol and querying whether the terminal information to be queried exists in the contact person information corresponding to the Internet terminal; and the return module is used for acquiring the state information of the video network terminal corresponding to the terminal information to be inquired when the existence is inquired, generating the state inquiry response packet based on the video network protocol and returning the state inquiry response packet to the protocol conversion server.
In the embodiment of the invention, the user can acquire the state information of the video network terminal from the video network server, so that whether the video network terminal is online or not can be known, the video service failure caused by the fact that the video network terminal is not online is avoided, and the user experience is improved.
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.
In the embodiment of the invention, the invention also provides a state query device. The apparatus may include one or more processors and one or more machine-readable media having instructions, such as an application program, stored thereon. When executed by the one or more processors, cause the apparatus to perform the state query method described above.
In an embodiment of the present invention, there is also provided a non-transitory computer readable storage medium, such as a memory, including instructions executable by a processor of an electronic device to perform the above-described state query method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 above detailed description is provided for a state query method, device and storage medium, and the specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A status query method is applied to a video network, wherein the video network comprises a protocol conversion server, a video network server and a video network terminal, and the internet comprises an internet terminal, and the method comprises the following steps:
the Internet terminal generates a state query request packet based on an Internet protocol and sends the state query request packet based on the Internet protocol to the protocol conversion server; the state query request packet carries information of a terminal to be queried;
the protocol conversion server converts the state query request packet based on the Internet protocol into a state query request packet based on a video networking protocol and sends the state query request packet based on the video networking protocol to the video networking server;
the protocol conversion server receives a state query response packet based on the video networking protocol returned by the video networking server; the state query response packet carries state information of the video network terminal corresponding to the terminal information to be queried;
the protocol conversion server converts the state query response packet based on the video networking protocol into a state query response packet based on an internet protocol and returns the state query response packet based on the internet protocol to the internet terminal;
the Internet terminal inquires a response packet according to the state based on the Internet protocol and outputs the state information of the video networking terminal;
the step of the internet terminal generating the status inquiry request packet based on the internet protocol includes:
the internet terminal acquires the terminal information to be inquired in the String format through a Java layer, and converts the terminal information to be inquired in the String format into the terminal information to be inquired in the JSON format;
the internet terminal calls a first JNI method through the Java layer to transmit the terminal information to be inquired in the JSON format to the local layer;
and the Internet terminal obtains the state query request packet based on the Internet protocol through the local layer encapsulation, and adds the information of the terminal to be queried to the state query request packet based on the Internet protocol.
2. The method according to claim 1, wherein the step of outputting the status information of the video networking terminal by the internet terminal according to the status query response packet based on the internet protocol comprises:
the Internet terminal receives the Internet protocol-based state query response packet through a local layer and extracts the state information of the video network terminal from the Internet protocol-based state query response packet;
the Internet terminal transfers the state information of the video networking terminal to a Java layer by calling a second JNI method through the local layer;
and the Internet terminal outputs the state information of the video networking terminal through the Java layer calling state display interface.
3. The method of claim 1, further comprising:
the Internet terminal generates a contact data packet based on an Internet protocol and sends the contact data packet based on the Internet protocol to the protocol conversion server; the contact data packet carries contact information corresponding to the Internet terminal;
the protocol conversion server converts the contact person data packet based on the Internet protocol into a contact person data packet based on a video networking protocol, and sends the contact person data packet based on the video networking protocol to the video networking server, so that the video networking server stores the contact person information corresponding to the Internet terminal.
4. The method of claim 3, wherein after the step of the protocol conversion server converting the internet protocol based status query request packet into a video internet protocol based status query request packet and sending the video internet protocol based status query request packet to the video internet server, the method further comprises:
the video networking server extracts the terminal information to be queried from the state query request packet based on the video networking protocol and queries whether the terminal information to be queried exists in contact person information corresponding to the Internet terminal;
and when the video network server inquires the existence, acquiring the state information of the video network terminal corresponding to the terminal information to be inquired, generating a state inquiry response packet based on a video network protocol, and returning to the protocol conversion server.
5. A state inquiry device is applied to a video network, wherein the video network comprises a protocol conversion server, a video network server and a video network terminal, and the internet comprises an internet terminal;
the internet terminal includes:
the first generation module is used for generating a state query request packet based on an internet protocol; the state query request packet carries information of a terminal to be queried;
the first sending module is used for sending the state query request packet based on the Internet protocol to the protocol conversion server;
the collaboration server comprises:
the first conversion module is used for converting the state query request packet based on the Internet protocol into a state query request packet based on a video networking protocol and sending the state query request packet based on the video networking protocol to the video networking server;
the receiving module is used for receiving a state inquiry response packet which is returned by the video networking server and is based on a video networking protocol; the state query response packet carries state information of the video network terminal corresponding to the terminal information to be queried;
the second conversion module is used for converting the state inquiry response packet based on the video networking protocol into a state inquiry response packet based on an internet protocol and returning the state inquiry response packet based on the internet protocol to the internet terminal;
the internet terminal further includes:
the output module is used for inquiring the response packet according to the state based on the Internet protocol and outputting the state information of the video networking terminal;
the first generation module comprises:
the format conversion unit is used for acquiring the information of the terminal to be inquired in the String format through a Java layer and converting the information of the terminal to be inquired in the String format into the information of the terminal to be inquired in the JSON format;
the first transmission unit is used for transmitting the terminal information to be inquired in the JSON format to a local layer by calling a first JNI method through the Java layer;
and the information packaging unit is used for obtaining the state query request packet based on the Internet protocol through the local layer packaging and adding the terminal information to be queried to the state query request packet based on the Internet protocol.
6. The apparatus of claim 5, wherein the output module comprises:
the information extraction unit is used for receiving the Internet protocol-based status inquiry response packet through a local layer and extracting the status information of the video networking terminal from the Internet protocol-based status inquiry response packet;
the second book transmission unit is used for transmitting the state information of the video networking terminal to the Java layer by calling a second JNI method through the local layer;
and the information output unit is used for outputting the state information of the video network terminal through the Java layer calling state display interface.
7. The apparatus of claim 5,
the internet terminal further includes:
the second generation module is used for generating a contact person data packet based on an internet protocol; the contact data packet carries contact information corresponding to the Internet terminal;
the second sending module is used for sending the contact person data packet based on the Internet protocol to the protocol conversion server;
the collaboration server further comprises:
and the third conversion module is used for converting the contact data packet based on the Internet protocol into a contact data packet based on a video networking protocol and sending the contact data packet based on the video networking protocol to the video networking server so that the video networking server can store the contact information corresponding to the Internet terminal.
8. The apparatus of claim 7, wherein the video networking server comprises:
the query module is used for extracting the terminal information to be queried from the state query request packet based on the video networking protocol and querying whether the terminal information to be queried exists in the contact person information corresponding to the Internet terminal;
and the return module is used for acquiring the state information of the video network terminal corresponding to the terminal information to be inquired when the existence is inquired, generating the state inquiry response packet based on the video network protocol and returning the state inquiry response packet to the protocol conversion server.
9. A status query device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the status query method of any of claims 1-4.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the status query method according to any one of claims 1 to 4.
CN201910319048.1A 2019-04-19 2019-04-19 State query method, device and storage medium Active CN110087102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910319048.1A CN110087102B (en) 2019-04-19 2019-04-19 State query method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319048.1A CN110087102B (en) 2019-04-19 2019-04-19 State query method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110087102A CN110087102A (en) 2019-08-02
CN110087102B true CN110087102B (en) 2021-10-08

Family

ID=67415813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319048.1A Active CN110087102B (en) 2019-04-19 2019-04-19 State query method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110087102B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336796B (en) * 2019-06-17 2022-06-14 视联动力信息技术股份有限公司 Communication method and communication device
CN110830814A (en) * 2019-11-08 2020-02-21 视联动力信息技术股份有限公司 Method, device, equipment and medium for reporting live broadcast list in video network
CN111147440A (en) * 2019-11-11 2020-05-12 视联动力信息技术股份有限公司 State information processing method and device based on video network
CN111147797B (en) * 2019-12-30 2022-10-18 视联动力信息技术股份有限公司 Terminal state display method and device based on video network
CN111478883A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Terminal detection method and device
CN111865921B (en) * 2020-06-18 2023-11-24 视联动力信息技术股份有限公司 Data communication method, device, terminal equipment and storage medium
CN116708926A (en) * 2023-06-14 2023-09-05 行为科技(北京)有限公司 WEB-based plug-in-free video playing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2953309A1 (en) * 2013-02-04 2015-12-09 ZTE Corporation Method, system, and rcs-e server for determining terminal state
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN108881961A (en) * 2017-11-14 2018-11-23 北京视联动力国际信息技术有限公司 A kind of page starting method and apparatus regarding networked terminals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2953309A1 (en) * 2013-02-04 2015-12-09 ZTE Corporation Method, system, and rcs-e server for determining terminal state
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN108881961A (en) * 2017-11-14 2018-11-23 北京视联动力国际信息技术有限公司 A kind of page starting method and apparatus regarding networked terminals

Also Published As

Publication number Publication date
CN110087102A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110087102B (en) State query method, device and storage medium
CN109120946B (en) Method and device for watching live broadcast
CN109547417B (en) Code stream transmission method and device
CN110149262B (en) Method and device for processing signaling message and storage medium
CN110121059B (en) Monitoring video processing method, device and storage medium
CN109167960B (en) Method and system for processing video stream data
CN109996086B (en) Method and device for inquiring service state of video networking
CN108810444B (en) Video conference processing method, conference scheduling terminal and protocol conversion server
CN110035005B (en) Data processing method and device
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN110113564B (en) Data acquisition method and video networking system
CN109347844B (en) Method and device for accessing equipment to Internet
CN110581846A (en) Monitoring video processing and system
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109889755B (en) Communication connection method and video networking terminal
CN110392227B (en) Data processing method, device and storage medium
CN110417792B (en) Communication method, system, gateway device and storage medium
CN109842630B (en) Video processing method and device
CN110049275B (en) Information processing method and device in video conference and storage medium
CN110072154B (en) Video networking-based clustering method and transfer server
CN110086773B (en) Audio and video data processing method and system
CN110099025B (en) Call method and device based on video networking
CN110808896B (en) Data transmission method and device, electronic equipment and storage medium
CN110557594B (en) Video call processing method and device and storage medium
CN110113563B (en) Data processing method based on video network and video network server

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