CN110138730B - Subscription method and device of protocol conversion equipment and storage medium - Google Patents

Subscription method and device of protocol conversion equipment and storage medium Download PDF

Info

Publication number
CN110138730B
CN110138730B CN201910262991.3A CN201910262991A CN110138730B CN 110138730 B CN110138730 B CN 110138730B CN 201910262991 A CN201910262991 A CN 201910262991A CN 110138730 B CN110138730 B CN 110138730B
Authority
CN
China
Prior art keywords
protocol conversion
resource
conversion device
proxy server
change data
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
CN201910262991.3A
Other languages
Chinese (zh)
Other versions
CN110138730A (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 CN201910262991.3A priority Critical patent/CN110138730B/en
Publication of CN110138730A publication Critical patent/CN110138730A/en
Application granted granted Critical
Publication of CN110138730B publication Critical patent/CN110138730B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of video networking, and provides a subscription method, a subscription device and a storage medium of protocol conversion equipment, wherein the method comprises the following steps: receiving a notification message of a protocol conversion device; acquiring resource change data of the protocol conversion equipment according to the notification message; sending the resource change data to a subscriber of the resource pool proxy server; the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for indicating that the resource state information of the protocol conversion device changes. Therefore, the resource pool proxy server can be used for recording the change of the resource state information of the subscribed protocol conversion equipment within the preset time length and then uniformly sending the change to the subscriber, so that the resource state change can be efficiently managed, and the use efficiency of the video network resources can be improved.

Description

Subscription method and device of protocol conversion equipment and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a subscription method and device for a protocol conversion device, and a computer-readable storage medium.
Background
When equipment in the video network is connected with Internet equipment, the corresponding video network protocol and the Internet protocol need to be converted through protocol conversion equipment, then communication between the video network equipment and the Internet equipment is carried out, then the protocol conversion equipment is deployed independently, each protocol conversion equipment is independently distributed with a plurality of virtual terminals, and the protocol conversion equipment is used for distributing virtual numbers to a user end connected with the protocol conversion equipment.
In the prior art, it may happen that a user terminal on one protocol conversion device is busy, and no user terminal on another protocol conversion device needs to communicate by using a virtual number, but due to an independent deployment principle among the protocol conversion devices, deployment of a virtual terminal cannot be performed.
Meanwhile, because the virtual terminal number resources in the video network are limited, the virtual number cannot be infinitely allocated to the user end for use, which is not favorable for communication through the protocol conversion device.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a subscription method of a protocol conversion device, a subscription apparatus of a protocol conversion device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a subscription method for a protocol conversion device, which is applied to a resource pool proxy server, and the method includes:
receiving a notification message of a protocol conversion device;
acquiring resource change data of the protocol conversion equipment according to the notification message;
sending the resource change data to a subscriber of the resource pool proxy server;
the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes.
The invention also provides a subscription device of the protocol conversion equipment, which is applied to the resource pool proxy server, and the device comprises:
the information receiving module is used for receiving a notification message of the protocol conversion equipment;
a data obtaining module, configured to obtain resource change data of the protocol conversion device according to the notification message;
the data sending module is used for sending the resource change data to a subscriber of the resource pool proxy server;
the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes.
The embodiment of the invention also discloses a device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more methods of subscription of a protocol conversion device as described in embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program enables a processor to execute the subscription method of the protocol conversion equipment.
The embodiment of the invention has the following advantages:
the embodiment of the invention can be applied to a resource pool proxy server and receives the notification message of the protocol conversion equipment; acquiring resource change data of the protocol conversion equipment according to the notification message; sending the resource change data to a subscriber of the resource pool proxy server; the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes. Therefore, the resource pool proxy server can be used for recording the change of the resource state information of the subscribed protocol conversion equipment within the preset time length and then uniformly sending the change to the subscriber, so that the resource state change can be efficiently managed, and the use efficiency of the video network resources can be 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 the steps of a subscription method of a protocol translation device according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating specific steps of a subscription method of a protocol conversion device according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating the steps of a subscription method of a protocol translation device according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating the steps of a subscription method of a protocol translation device according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating specific steps of an embodiment of a subscription method of a protocol conversion device according to the present invention;
fig. 10 is a block diagram of a subscription device of a protocol conversion apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like in a system on a network system, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time switching system, can realize the large-scale high-definition video real-time transmission of the whole network which can not 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 video networking and unified video system is different from the traditional server, the streaming media transmission is established on the basis of connection orientation, the data processing capacity 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 streaming media processing of video networking and unified video systems 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 memory technology of the unified video system 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 instantly and directly sent to the user terminal, and the user waiting time 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 system 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 system to obtain various multimedia video services in various forms. The unified video system adopts a menu type matching table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes new infinite business 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 system (the part in the dotted circle), and a plurality of unified video systems can form a video network; each unified video system may be interconnected via metropolitan and wide area video networks.
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 data packet address table, an uplink data 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, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 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 data 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 various data packets are available, and is 32+1024 or 1056 bytes if a single multicast data packet is available, but of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Referring to fig. 5, a flowchart illustrating steps of an embodiment of a subscription method of a protocol conversion device according to the present invention, which may be applied to a resource pool proxy server, may include the following steps:
step 501: a notification message of the protocol conversion device is received.
The protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes.
In the embodiment of the present invention, the resource pool proxy server is a Virtual or physical device in the video Network, which can be used as a proxy of the protocol conversion device, and is similar to a Virtual Private Network (VPN) in the video Network, so that a management mechanism for managing a change situation of resource state information of the protocol conversion device needs to be set for the resource pool proxy server.
In a specific application, a subscription relationship exists between the resource pool proxy server and the protocol conversion server subscribed by the resource pool proxy server, that is, when the subscribed protocol conversion device changes the resource state information, a notification message is automatically sent to the subscribed resource pool proxy server to notify that the resource state information changes on the protocol conversion device, so that the resource pool proxy server updates the resource state information for the change of the resource state information.
Step 502: and acquiring the resource change data of the protocol conversion equipment according to the notification message.
Illustratively, based on the subscription relationship between the resource pool proxy server and the protocol conversion device, after receiving the notification message, the resource pool proxy server divides a part of the area into its memory for recording the change of the resource status information corresponding to the notification message, i.e. storing the resource change data, so as to update the resource status information of the protocol conversion device to the latest information. In a specific application, in order to reduce the repetition rate of processing operations and improve the processing efficiency, when the resource change frequency of the external device connected to the protocol conversion device is high and the change amount is large, the change information of the resource state information within a certain time period may be acquired after the notification message is received, and the following steps may be performed together.
Step 503: and sending the resource change data to a subscriber who subscribes the resource pool proxy server.
In a specific application, after the corresponding resource change data is obtained through the above steps, the resource pool proxy server may send the resource change data to the corresponding subscriber in a message queue manner. That is to say, the resource pool proxy server can be used as a subscriber and also can be used as a subscribed party, wherein when the resource pool proxy server is used as a subscriber, the corresponding subscribed party is a protocol conversion device; when it is used as a subscribed party, the corresponding subscribed party is a user end connected to the original protocol conversion device, for example, one or more mservers. That is, the using end (one or more mservers, etc.) of the originally utilized protocol conversion device is taken as the subscriber of the resource pool proxy server related to the present invention, and the resource pool proxy server acquires the change of the resource state information sent by the corresponding protocol conversion device, that is, the resource change data, so as to realize the unified management of the resource state information by the resource pool proxy server and perform effective resource allocation.
It should be noted that, the number of the protocol conversion devices subscribed by the resource pool proxy server is usually multiple, and then dynamic virtual terminal numbers can be allocated among the using terminals corresponding to the multiple protocol conversion devices, that is, the virtual terminal numbers are adaptively allocated according to the communication requirements of the actual using terminals, so as to overcome the problem that resources cannot be efficiently allocated when the protocol conversion devices are used for allocating the virtual terminal numbers. For example, n virtual terminal numbers are pre-allocated to each protocol conversion device, it may happen that a user terminal on a certain protocol conversion device is busy, the n virtual terminal numbers are not enough to meet a use requirement, while a user terminal on another protocol conversion device is idle, that is, the n virtual terminal numbers are not used, and by utilizing a resource pool proxy server to subscribe one or more protocol conversion devices, reasonable utilization and dynamic allocation of idle resources are realized, so as to improve the efficiency of the video networking system.
In summary, the embodiment of the present invention may be applied to a resource pool proxy server, and receive a notification message of a protocol conversion device; acquiring resource change data of the protocol conversion equipment according to the notification message; sending the resource change data to a subscriber of the resource pool proxy server; the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for indicating that the resource state information of the protocol conversion device changes. Therefore, the resource pool proxy server can be used for recording the change of the resource state information of the subscribed protocol conversion equipment within the preset time length and then uniformly sending the change to the subscriber, so that the resource state change can be efficiently managed, and the use efficiency of the video network resources can be improved.
Referring to fig. 6, which shows a flowchart of specific steps of an embodiment of a subscription method of a protocol conversion device according to the present invention, before step 501, the method may further include the following steps:
step 504: and subscribing the protocol conversion equipment to acquire the notification message sent by the protocol conversion equipment under the condition that the resource state information of the protocol conversion equipment is changed.
In a specific application, the resource pool proxy server adds the protocol conversion device to be managed on the resource pool proxy server in a subscription manner, so that a corresponding notification message can be generated to inform the resource pool proxy server under the condition that the resource state information of the subscribed protocol conversion device is changed.
Referring to fig. 7, which is a flowchart illustrating specific steps of an embodiment of a subscription method for a protocol conversion device according to the present invention, the acquiring resource change data of the protocol conversion device according to a notification message in step 502 may include the following steps:
step 5021: and recording the resource change data according to the notification message so as to temporarily store the resource change data in a memory allocated by the resource pool proxy server for the conference conversion equipment.
The resource change data includes data indicating a change in the resource state information of the protocol conversion device within a preset time period from the reception of the notification message.
For example, the resource pool proxy server may receive the resource change data sent by the protocol conversion device within a preset time length after receiving the notification message sent by the protocol conversion device, where the preset time length is, for example, 20 seconds; that is to say, as long as the resource change data sent by the protocol conversion device is received within 20 seconds, the resource pool proxy server temporarily stores the resource change data in the memory allocated to the protocol conversion device until the preset time length is finished, and then performs the operation of step 5022, and within the preset time length, the resource pool proxy server is in a waiting-to-receive state to perform batch processing on the resource change data, so as to improve the processing efficiency.
Step 5022: and under the condition that the preset time length is exceeded, carrying out serialization processing on the resource change data temporarily stored in the memory.
In a specific application, when the preset time duration is exceeded, it may be understood that the resource state of the protocol conversion device is updated or changed, that is, the resource state information of the protocol conversion device remains stable, and the resource pool proxy server no longer receives the resource change data sent by the corresponding protocol conversion device. That is, after the 20 seconds, if a new change of the resource status information occurs, that is, a new notification message is received, the operation of this step is executed again to obtain the change data of the resource status information in the next preset duration.
It should be noted that the preset duration may be adjusted according to a specific application scenario to adapt to device characteristics or network characteristics in an actual application scenario, and the present invention is not limited specifically. In addition, by the technical scheme provided by the invention, the information of the resource state change within the preset time length is recorded and is sent to the subscriber side, so that the efficient resource management can be carried out.
Step 5023, storing the resource change data after the serialization processing in a preset storage space in the resource pool proxy server.
In a specific application, the resource change data acquired within a preset time duration is stored in a file system (storage space) of the resource pool proxy server after being serialized, so that the resource change data can be sent to a subscriber of the resource pool proxy server.
Optionally, referring to fig. 8, a flowchart illustrating specific steps of an embodiment of a subscription method of a protocol conversion device of the present invention is shown, after step 503, the method may further include the following steps:
step 505: and deleting the resource change data from the resource pool proxy server.
For example, since the protocol conversion device may have a large amount of change, that is, the amount of the generated resource change data is large, and then after the resource change data is sent to the corresponding subscriber through step 503, the resource change data stored on the resource pool proxy server (in the storage space) may be correspondingly deleted, so as to optimize the storage performance of the resource pool proxy server and avoid unnecessary consumption and waste of the storage space.
Optionally, referring to fig. 9, which is a flowchart illustrating specific steps of an embodiment of a subscription method of a protocol conversion device according to the present invention, the sending of the resource change data to the subscriber of the resource pool proxy server in step 503 may include the following steps:
step 5031, adding the resource change data as an event to be sent to an event queue to be sent.
In a specific application, the resource change data is sent to the subscriber(s) of the resource pool proxy server by using a message queue, for example, the resource change data generated within 20 seconds after the notification message is received may be added to an event queue to be sent as an event to be sent, so as to wait for sending.
Step 5032, according to the event queue to be sent, sending the resource change data to the subscriber of the resource pool proxy server.
Illustratively, the event queue to be sent includes one or more events to be sent, wherein the events to be sent are sorted according to the specific time actually added to the event queue to be sent, and after one event to be sent is sent, the next sending operation of the events to be sent is continuously executed until no events to be sent remain in the event queue to be sent. Furthermore, if the protocol conversion device has a plurality of changes of the resource state information, the technical scheme of the invention can arrange the resource change data generated by the plurality of changes of the resource state information in the event queue to be sent according to the time sequence of occurrence (change), thereby sequentially sending and updating the resource change data and avoiding the update error of the resource state information caused by time error.
Referring to fig. 10, there is shown a block diagram of a subscription apparatus of a protocol conversion device, which may be applied to a resource pool proxy server, in accordance with the present invention, where the apparatus 1000 includes:
an information receiving module 1010, configured to receive a notification message of the protocol conversion device.
A data obtaining module 1020, configured to obtain resource change data of the protocol conversion device according to the notification message.
A data sending module 1030, configured to send the resource change data to a subscriber subscribing to the resource pool proxy server.
The protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes.
Optionally, the apparatus 1000 further includes:
and the device subscription module is used for subscribing the protocol conversion device before the step of receiving the notification message of the protocol conversion device so as to acquire the notification message sent by the protocol conversion device under the condition that the resource state information of the protocol conversion device is changed.
Optionally, the data obtaining module 1020 includes:
and the data recording submodule is used for recording resource change data according to the notification message so as to temporarily store the resource change data in a memory allocated by the resource pool proxy server for the protocol conversion equipment, wherein the resource change data comprise data which are within a preset time length from the time when the notification message is received and are used for indicating the change of the resource state information of the protocol conversion equipment.
And the data processing submodule is used for carrying out serialization processing on the resource change data temporarily stored in the memory under the condition that the preset time length is exceeded.
And the data storage submodule is used for storing the resource change data after the serialization processing in a preset storage space in the resource pool proxy server.
Optionally, the apparatus 1000 further includes:
and the data deleting module is used for deleting the resource change data from the resource pool proxy server after the step of sending the resource change data to the subscriber of the resource pool proxy server.
Optionally, the data sending module 1030 includes:
the event adding submodule is used for adding the resource change data serving as an event to be sent to an event queue to be sent;
and the data sending submodule is used for sending the resource change data to a subscriber of the resource pool proxy server according to the event queue to be sent.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an 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 one or more methods of subscription of a protocol conversion device as described in embodiments of the invention.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program to enable a processor to execute the subscription method of a protocol conversion device according to the embodiments of the present invention.
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 provides a method for subscribing a protocol conversion device, a device for subscribing a protocol conversion device, and a computer readable storage medium, which are provided by the present invention, with detailed descriptions, and specific examples are applied herein to explain the principle and the implementation 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 (8)

1. A subscription method of a protocol conversion device is applied to a resource pool proxy server, and comprises the following steps:
receiving a notification message of a protocol conversion device;
acquiring resource change data of the protocol conversion equipment according to the notification message;
sending the resource change data to a subscriber who subscribes the resource pool proxy server;
the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes;
the acquiring resource change data of the protocol conversion device according to the notification message includes:
recording the resource change data according to the notification message, so as to temporarily store the resource change data in a memory allocated by the resource pool proxy server for the protocol conversion device, wherein the resource change data comprises data which is within a preset time length from the time when the notification message is received and is used for indicating the change of the resource state information of the protocol conversion device;
when the preset time length is exceeded, the resource change data temporarily stored in the memory is subjected to serialization processing;
and storing the resource change data after the serialization processing in a preset storage space in the resource pool proxy server.
2. The method of claim 1, wherein prior to the step of receiving a notification message of a protocol conversion device, the method further comprises:
and subscribing the protocol conversion equipment to acquire the notification message sent by the protocol conversion equipment under the condition that the resource state information of the protocol conversion equipment is changed.
3. The method of claim 1, wherein after the step of sending the resource change data to a subscriber of the resource pool proxy server, the method further comprises:
deleting the resource change data from the resource pool proxy server.
4. The method of claim 1, wherein sending the resource change data to a subscriber of the resource pool proxy server comprises:
adding the resource change data serving as an event to be sent to an event queue to be sent;
and sending the resource change data to a subscriber of the resource pool proxy server according to the event queue to be sent.
5. A subscription device of a protocol conversion device, applied to a resource pool proxy server, the device comprising:
the information receiving module is used for receiving a notification message of the protocol conversion equipment;
a data obtaining module, configured to obtain resource change data of the protocol conversion device according to the notification message;
the data sending module is used for sending the resource change data to a subscriber who subscribes the resource pool proxy server;
the protocol conversion device is any protocol conversion device subscribed by the resource pool proxy server, and the notification message is used for representing that the resource state information of the protocol conversion device changes;
the data acquisition module comprises:
a data recording sub-module, configured to record the resource change data according to the notification message, so as to temporarily store the resource change data in a memory allocated by the resource pool proxy server for the protocol conversion device, where the resource change data includes data indicating a change in resource state information of the protocol conversion device within a preset time period from when the notification message is received;
the data processing submodule is used for carrying out serialization processing on the resource change data temporarily stored in the memory under the condition that the preset time length is exceeded;
and the data storage submodule is used for storing the resource change data after the serialization processing in a preset storage space in the resource pool proxy server.
6. The apparatus of claim 5, further comprising:
and the device subscription module is used for subscribing the protocol conversion device before the step of receiving the notification message of the protocol conversion device so as to acquire the notification message sent by the protocol conversion device under the condition that the resource state information of the protocol conversion device changes.
7. A subscription device of a protocol conversion apparatus, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform subscription of the protocol translation device of one or more of claims 1-4.
8. A computer-readable storage medium, characterized in that it stores a computer program that causes a processor to execute subscription of a protocol conversion device according to any one of claims 1 to 4.
CN201910262991.3A 2019-04-02 2019-04-02 Subscription method and device of protocol conversion equipment and storage medium Active CN110138730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910262991.3A CN110138730B (en) 2019-04-02 2019-04-02 Subscription method and device of protocol conversion equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910262991.3A CN110138730B (en) 2019-04-02 2019-04-02 Subscription method and device of protocol conversion equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110138730A CN110138730A (en) 2019-08-16
CN110138730B true CN110138730B (en) 2021-10-08

Family

ID=67569220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910262991.3A Active CN110138730B (en) 2019-04-02 2019-04-02 Subscription method and device of protocol conversion equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110138730B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182024B (en) * 2019-11-20 2022-08-02 视联动力信息技术股份有限公司 Data synchronization method, device and storage medium
CN112350985A (en) * 2020-09-15 2021-02-09 南斗六星系统集成有限公司 Method and system for realizing access of mobile equipment to FreeWITCH
CN112214475B (en) * 2020-11-04 2023-07-07 成都中科大旗软件股份有限公司 Method, system, storage medium and terminal for configuring multiple data sources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595736A (en) * 2012-08-14 2014-02-19 杭州海康威视系统技术有限公司 An access request processing method and apparatus in a video monitoring system
CN105376706A (en) * 2014-08-29 2016-03-02 青岛海尔智能家电科技有限公司 Method and apparatus for subscribing equipment position information
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system
CN108093014A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and device
CN108234816A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 The method and device of resource information real-time synchronization is monitored between a kind of monitoring device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001222487A (en) * 2000-02-09 2001-08-17 Nec Corp Data conversion system and its method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595736A (en) * 2012-08-14 2014-02-19 杭州海康威视系统技术有限公司 An access request processing method and apparatus in a video monitoring system
CN105376706A (en) * 2014-08-29 2016-03-02 青岛海尔智能家电科技有限公司 Method and apparatus for subscribing equipment position information
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system
CN108093014A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and device
CN108234816A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 The method and device of resource information real-time synchronization is monitored between a kind of monitoring device

Also Published As

Publication number Publication date
CN110138730A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN111193788A (en) Audio and video stream load balancing method and device
CN109617956B (en) Data processing method and device
CN109474715B (en) Resource configuration method and device based on video network
CN109120879B (en) Video conference processing method and system
CN110475090B (en) Conference control method and system
CN109379254B (en) Network connection detection method and system based on video conference
CN110191315B (en) Monitoring and checking method and device based on video network
CN110138730B (en) Subscription method and device of protocol conversion equipment and storage medium
CN110602039A (en) Data acquisition method and system
CN111193767B (en) Request data sending method and device and clustered server system
CN110557319B (en) Message processing method and device based on video network
CN110650171A (en) Video networking service scheduling system and method
CN110113557B (en) Multistage conference implementation method and video networking system
CN109151061B (en) Data storage method and device
CN109347930B (en) Task processing method and device
CN110830826A (en) Video transcoding equipment scheduling method and system
CN110519549B (en) Conference terminal list obtaining method and system
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109743360B (en) Information processing method and device
CN110784683B (en) Management method, device and storage medium for monitoring resources
CN110557669B (en) Video data display method and device
CN110740087B (en) Message transmission method, terminal, gateway device, electronic device and storage medium
CN110557594B (en) Video call processing method and device and storage medium
CN110493311B (en) Service processing method and device
CN109788231B (en) Video telephone service processing method and device

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