CN111355916B - Method, device, equipment and storage medium for establishing video networking communication connection - Google Patents

Method, device, equipment and storage medium for establishing video networking communication connection Download PDF

Info

Publication number
CN111355916B
CN111355916B CN202010097586.3A CN202010097586A CN111355916B CN 111355916 B CN111355916 B CN 111355916B CN 202010097586 A CN202010097586 A CN 202010097586A CN 111355916 B CN111355916 B CN 111355916B
Authority
CN
China
Prior art keywords
virtual terminal
video network
task
target virtual
communication connection
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
CN202010097586.3A
Other languages
Chinese (zh)
Other versions
CN111355916A (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 CN202010097586.3A priority Critical patent/CN111355916B/en
Publication of CN111355916A publication Critical patent/CN111355916A/en
Application granted granted Critical
Publication of CN111355916B publication Critical patent/CN111355916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Abstract

The application provides a method, a device, electronic equipment and a storage medium for establishing communication connection of a video network, wherein the method comprises the following steps: determining a target virtual terminal to be established with long connection of the video network, wherein the source virtual terminal and the target virtual terminal are both registered under the same video network server; generating a communication connection request for a target virtual terminal; sending a communication connection request to a target virtual terminal; receiving a response returned by the target virtual terminal; when the response indicates that the target virtual terminal agrees to establish the communication connection, determining that the connection is established successfully; determining a new virtual terminal for establishing long connection of the video network during the connection state; and generating a communication connection request aiming at the new virtual terminal so as to establish the long video network connection with the new virtual terminal. By the method, any one virtual terminal can be communicated and interacted with a plurality of other virtual terminals at the same time, scenes with high concurrent requests can be effectively responded, and the response speed of the system is improved.

Description

Method, device, equipment and storage medium for establishing communication connection of video network
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for establishing a video networking communication connection, an electronic device, and a storage medium.
Background
In the existing video networking environment, a connection needs to be established every time two video networking systems (i.e. terminal devices or servers communicating through a video networking protocol) communicate with each other, and each connection establishment usually takes several milliseconds or even several seconds.
At present, a videophone protocol exists in the video network, which can solve the problem of frequently establishing communication connection. However, when using the videophone protocol, two video networking systems communicating with each other keep connected for a long time, and the two parties monopolize their respective virtual terminal numbers, and the other video networking systems cannot establish communication connection with the two video networking systems, so in some high concurrent request scenes, the videophone protocol is adopted, which causes waste of virtual terminal number resources, and further affects the speed of the system to respond to the concurrent request.
Disclosure of Invention
The embodiment of the application provides a method and a device for establishing communication connection of a video network, electronic equipment and a storage medium, and aims to solve the problem that communication connection is frequently established in the video network, fully utilize virtual terminal number resources under a high-concurrency request scene and further improve the response speed of a video network system.
A first aspect of an embodiment of the present application provides a method for establishing a video networking communication connection, where the method is applied to a source virtual terminal, and the method includes:
determining a target virtual terminal to be established with long connection of the video network, wherein the source virtual terminal and the target virtual terminal are both registered under the same video network server;
generating a communication connection request for the target virtual terminal;
sending the communication connection request to the target virtual terminal;
receiving a response returned by the target virtual terminal;
when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, determining that the long video network connection with the target virtual terminal is established successfully;
determining a new virtual terminal of the long connection of the video network to be established in the period of the long connection of the video network in a connection state, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal;
and generating a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
A second aspect of the embodiments of the present application provides a method for establishing a communication connection of a video network, where the method includes:
a source virtual terminal generates a communication connection request aiming at a target virtual terminal, and sends the communication connection request to the target virtual terminal through a video network server, wherein the source virtual terminal and the target virtual terminal are both registered under the video network server;
after receiving the communication connection request, the target virtual terminal generates a response aiming at the communication connection request and sends the response to the source virtual terminal through the video networking server;
when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, the source virtual terminal determines that the long connection of the video network with the target virtual terminal is successfully established, and sends a message that the communication connection is successful to the video network server;
after receiving the message, the video network server periodically sends heartbeat packets to the target virtual terminal and the source virtual terminal so as to maintain long video network connection between the target virtual terminal and the source virtual terminal;
when the video network server does not receive the response of the target virtual terminal and/or the source virtual terminal for confirming the reception returned by the heartbeat packet, the video network server respectively sends messages of video network long connection disconnection to the target virtual terminal and the source virtual terminal;
during the period that the long connection of the video network is in a connection state, the source virtual terminal determines a new virtual terminal of the long connection of the video network to be established, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal;
and the source virtual terminal generates a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
A third aspect of the embodiments of the present application provides an apparatus for establishing a video networking communication connection, where the apparatus is applied to a source virtual terminal, and the apparatus includes:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target virtual terminal of the long connection of the video network to be established, and the source virtual terminal and the target virtual terminal are both registered under the same video network server;
a first generating module, configured to generate a communication connection request for the target virtual terminal;
a first sending module, configured to send the communication connection request to the target virtual terminal;
the first receiving module is used for receiving a response returned by the target virtual terminal;
a second determining module, configured to determine that the long connection establishment of the video network with the target virtual terminal is successful when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal;
a third determining module, configured to determine, during a period that the long connection of the video network is in a connection state, a new virtual terminal to be established for the long connection of the video network, where the new virtual terminal is any one of virtual terminals registered in the video network server except the target virtual terminal;
and the second generation module is used for generating a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
A third aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect of the present application when executed.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to the first aspect of the present application.
The application provides a method for establishing communication connection of a video network, and by the method, a source virtual terminal firstly determines a target virtual terminal to be established with long connection of the video network, and the source virtual terminal and the target virtual terminal are both registered under the same video network server; then generating a communication connection request aiming at the target virtual terminal; then sending the communication connection request to a target virtual terminal; after receiving a response returned by the target virtual terminal, judging whether the response indicates agreement on establishment of communication connection, and if the response indicates agreement on establishment of communication connection, determining that the long connection of the video network with the target virtual terminal is established successfully; then, in the period that the long connection of the video network is in the connection state, the source virtual terminal can also establish the long connection of the video network again with any other one or more virtual terminals under the same video network server, and finally a mesh passage based on the video network server is formed. In the embodiment, by establishing the long connection mode of the video network, not only can the complicated step of frequently establishing channel connection between two frequently-interacted virtual terminals be avoided, but also any virtual terminal can simultaneously carry out communication interaction with a plurality of other virtual terminals based on the mesh passage of the video network server, so that the number resources of all virtual terminals are fully utilized, massive services can be rapidly processed under high concurrent requests, and the response speed of the system is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings may be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an implementation environment shown in an embodiment of the present application;
FIG. 2 is a flow diagram illustrating a method for establishing a video networking communication connection according to one embodiment of the present application;
FIG. 3 is a flow diagram illustrating a method of processing task requests according to one embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a method of establishing a video networking communication connection according to one embodiment of the application;
FIG. 5 is a block diagram illustrating an apparatus for establishing a video networking communication connection according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an electronic device shown in an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a networking of a video network according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a hardware architecture of a node server according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a hardware structure of an access switch according to an embodiment of the present application;
fig. 10 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. In fig. 1, a plurality of virtual terminals are connected to the video network server, and when the virtual terminals communicate with each other, the virtual terminals need to be connected in a communication manner through the video network server. The virtual terminal may also be understood as a video network system, in which a terminal device or a server may serve as the video network system, and for the convenience of statement of various embodiments of the present application, the server here is different from the video network server shown in fig. 1.
In the related art, in order to avoid the complicated step of frequently establishing a channel connection between two virtual terminals, a long connection between the two virtual terminals may be established by using a videophone protocol, for example, when the virtual terminal 1 needs to communicate with the virtual terminal 2, the two parties may establish the long connection by using the videophone protocol and through a networking server. However, when the two parties are in the connected state, the other virtual terminals under the video network server cannot establish communication connection with any one of the virtual terminal 1 or the virtual terminal 2 again, that is: only by waiting for the connection between the virtual terminal 1 and the virtual terminal 2 to be released, a communication connection can be established with the virtual terminal 1 or the virtual terminal 2, which causes the virtual terminal number resource to be occupied for a long time. Therefore, in a scene with high concurrent requests, when the virtual terminal 1 needs to perform service interaction with a plurality of other virtual terminals, the existing videophone protocol cannot fully utilize the number resources of the virtual terminals, and needs to be improved in terms of improving the response speed of a video networking system.
In order to overcome the problems, the application provides a technical concept for establishing the analog long connection between the virtual terminals, which can avoid the complex steps of frequently establishing channel connection between the two virtual terminals, fully utilize the number resources of the virtual terminals and improve the response speed of the video networking system.
Based on the technical concept, the application provides a method for establishing a video networking communication connection, which is applied to the virtual terminal in fig. 1. Fig. 2 is a flow chart illustrating a method for establishing a video networking communication connection according to an embodiment of the present application. Referring to fig. 2, the method for establishing a video networking communication connection of the present application may include the steps of:
step S11: and determining a target virtual terminal to be established with long connection of the video network, wherein the source virtual terminal and the target virtual terminal are both registered under the same video network server.
In this embodiment, two virtual terminals registered under the same video network server can establish a long video network connection. The source virtual terminal can be any virtual terminal under the video network server. The execution subject of the method for establishing the video networking communication connection in the embodiment of the application is the source virtual terminal.
In step S11, referring to fig. 1, when the virtual terminal 1 needs to establish a long video network connection with the virtual terminal 2, the source virtual terminal is the virtual terminal 1, and the target virtual terminal is the virtual terminal 2.
Step S12: and generating a communication connection request aiming at the target virtual terminal.
After the source virtual terminal determines the target virtual terminal, a communication connection request for requesting to establish a long connection of the video network with the target virtual terminal may be generated for the target virtual terminal.
Step S13: and sending the communication connection request to the target virtual terminal.
After the source virtual terminal generates the communication connection request, the communication connection request can be sent to the target virtual terminal through the video networking server.
Step S14: and receiving a response returned by the target virtual terminal.
In this embodiment, after receiving a communication connection request sent by a source virtual terminal, a target virtual terminal may agree to establish a communication connection or refuse to establish a communication connection, and when agreeing to establish a communication connection, a response indicating that it agrees to establish a communication connection with the source virtual terminal is generated and returned to the source virtual terminal through a video network server; and when the communication connection is refused to be established, generating a response which represents that the communication connection with the source virtual terminal is refused to be established, and returning the response to the source virtual terminal through the video network server.
Step S15: and when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, determining that the long connection of the video network with the target virtual terminal is established successfully.
In this embodiment, if the received response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, the source virtual terminal may determine that the long video network connection with the target virtual terminal is successfully established, and then may perform data transmission with the target virtual terminal.
Step S16: and determining a new virtual terminal to be established with the long connection of the video network in the connection state, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal.
Step S17: generating a communication connection request for the new virtual terminal to establish a long video network connection with the new virtual terminal.
In this embodiment, any one virtual terminal may establish long connection with a plurality of other virtual terminals under the peer-to-peer network server at the same time. Therefore, all the virtual terminals can be connected through the video network to form a mesh structure. Illustratively, the virtual terminal 1 may establish a long connection of the video network with one or more virtual terminals of the virtual terminals 2-n at the same time, thereby implementing service interaction with multiple virtual terminals at the same time in a high-concurrency request scenario.
For example, referring to fig. 1, a virtual terminal 1 may establish a long video network connection with each of virtual terminals 2-n, a virtual terminal 2 may establish a long video network connection with each of virtual terminals 3-n, a virtual terminal 3 may establish a long video network connection with each of virtual terminals 4-n, and so on, until all virtual terminals under a video network server may establish a long video network connection channel between each two virtual terminals, a mesh channel based on a video network server is formed, so that any one virtual terminal may perform bidirectional communication with multiple other virtual terminals based on the mesh channel, and mass services may be processed quickly under high concurrent requests.
In this embodiment, by the provided method for establishing the communication connection of the video network, a source virtual terminal first determines a target virtual terminal to be established with long connection of the video network, and the source virtual terminal and the target virtual terminal are both registered under the same video network server; then generating a communication connection request aiming at the target virtual terminal; then sending the communication connection request to a target virtual terminal; after receiving a response returned by the target virtual terminal, judging whether the response indicates agreement to establish communication connection, and if the response indicates agreement to establish communication connection, determining that the long connection of the video network with the target virtual terminal is established successfully; then, in the period that the long connection of the video network is in the connection state, the source virtual terminal can also establish the long connection of the video network again with any other one or more virtual terminals under the same video network server, and finally a mesh passage based on the video network server is formed. In the embodiment, by establishing the long connection mode of the video network, not only can the complicated step of frequently establishing channel connection between two frequently-interacted virtual terminals be avoided, but also any virtual terminal can simultaneously carry out communication interaction with a plurality of other virtual terminals based on the mesh passage of the video network server, so that the number resources of all virtual terminals are fully utilized, massive services can be rapidly processed under high concurrent requests, and the response speed of the system is effectively improved.
With reference to the foregoing embodiment, in an implementation manner, after the long connection between the source virtual terminal and the target virtual terminal is successfully established, the long connection between the source virtual terminal and the target virtual terminal needs to be maintained through the long connection server. Specifically, after the step S15, the source virtual terminal may further perform the following steps:
sending a message of successful communication connection to the video networking server, wherein the video networking server is used for maintaining the long video networking connection between the source virtual terminal and the target virtual terminal according to a preset connection maintenance strategy after receiving the message;
and when a heartbeat packet sent by the video network server is received, returning a response for confirming the reception of the heartbeat packet so as to inform the video network server to maintain the long video network connection, wherein the heartbeat packet is periodically sent to each video network virtual terminal for maintaining the long video network connection established by each video network virtual terminal after the video network server receives the message.
In this embodiment, it may be set in all the virtual terminals, and as long as the type of the received communication connection request is that the long connection of the video network is established and the connection is successfully established, the connection is always maintained by default without actively closing, and specifically, the operation of the program related to the long connection of the video network may not be stopped, so as to maintain the long connection.
After determining that the long video network connection between the source virtual terminal and the target virtual terminal is successfully established, the source virtual terminal sends a message that the communication connection is successful to a video network server, and the video network server correspondingly records the source virtual terminal and the target virtual terminal to indicate that the long video network connection exists between the source virtual terminal and the target virtual terminal. And meanwhile, after receiving the message, the video network server also periodically sends heartbeat packets to the source virtual terminal and the target virtual terminal, once any one of the source virtual terminal and the target virtual terminal does not return a response for confirming the reception of the heartbeat packets, the video network server determines that the long connection of the video network of the two parties is disconnected, and respectively sends the message of disconnection to the two parties.
Actually, the video network server stores a virtual terminal information table, the table records the mapping between the Mac address of each virtual terminal and the virtual terminal number, the video network server sends heartbeat packets to all the existing virtual terminals in the table in a broadcasting mode at regular time, and the virtual terminal receiving the heartbeat packets returns a response confirming the received heartbeat packets to the video network server.
When the video network server does not receive the response of confirming that the heartbeat packet is received, which is returned by the virtual terminal, after the heartbeat packet is sent by the video network server at a certain time, the video network server determines other virtual terminals which are previously in long video network connection with the virtual terminal, and respectively sends disconnection messages to the virtual terminals, so that the virtual terminals can re-request to establish long video network connection after receiving the disconnection messages.
In this embodiment, through the video network server, the maintenance of the long connection of the video network between any two virtual terminals can be realized, through the long connection of the video network, the tedious steps of frequently establishing channel connection between two frequently interactive virtual terminals can be avoided, the time of establishing channel connection is saved, and the response speed of the system is improved.
With reference to the foregoing embodiment, in an implementation manner, a target virtual terminal number corresponding to the target virtual terminal and a source virtual terminal number corresponding to the source virtual terminal are unique in virtual terminal numbers corresponding to virtual terminals of a video network registered in the video network server;
step S12 may include:
acquiring a target virtual terminal number corresponding to the target virtual terminal;
generating a communication connection request based on the target virtual terminal number, wherein the communication connection request carries a source virtual terminal number of the communication connection request;
correspondingly, the message that the communication connection is successful is sent to the video networking server, and the message comprises:
generating a message of successful communication connection based on the target virtual terminal number of the target virtual terminal and the source virtual terminal number of the target virtual terminal;
and sending the message that the communication connection is successful to the video networking server.
In this embodiment, each virtual terminal has a virtual terminal number, and the virtual terminal number can be used to uniquely identify the virtual terminal, that is: the virtual terminal numbers of all the video network virtual terminals registered under the same video network server are different.
In the video network, the service interaction between terminals or servers is carried out through virtual terminal numbers. The virtual terminal numbers are pre-allocated by a system in charge of virtual terminal number allocation before service processing, and correspond to Mac addresses one by one, and one Mac address corresponds to one virtual terminal number.
In this embodiment, when a source virtual terminal generates a communication connection request for a target virtual terminal, it needs to obtain a target virtual terminal number corresponding to the target virtual terminal, and generates the communication connection request based on the target virtual terminal number and its own source virtual terminal number, and when receiving the communication connection request, the video network server may forward the communication connection request to the corresponding target virtual terminal according to the target virtual terminal number, and after receiving a response returned by the target virtual terminal, may forward the response to the corresponding source virtual terminal according to the source virtual terminal number. Of course, the communication connection request may also carry information such as the respective MAC addresses of the source virtual terminal and the target virtual terminal, which is not specifically limited in the present application.
After the source virtual terminal determines that the long connection of the video network with the target virtual terminal is successfully established, a message of successful communication connection is generated based on the source virtual terminal number of the source virtual terminal and the target virtual terminal number of the target virtual terminal, and the message is sent to the video network server, so that the video network server correspondingly stores the source virtual terminal number and the target virtual terminal number after receiving the message, and a long connection channel of the video network exists between the source virtual terminal and the target virtual terminal.
In this embodiment, since the virtual terminals can establish a plurality of long connection channels of the video network, compared with the related art in which the long connection channels of the video network are established between two virtual terminals and occupy the virtual terminal number resource for a long time, the phenomenon that the virtual terminal number resource is occupied for a long time does not exist, the virtual terminal number resource can be fully utilized, and meanwhile, service interaction is performed with the virtual terminals, so that a high-concurrency request scene can be effectively responded, and the response speed of a request is improved.
With reference to the foregoing embodiment, in an implementation manner, after it is determined that the long video network connection with the target virtual terminal is established successfully, the source virtual terminal and the target virtual terminal may further perform data transmission through the established long video network connection channel, as shown in fig. 3.
FIG. 3 is a flow diagram illustrating a method for processing task requests according to an embodiment of the present application. Referring to fig. 3, the method for establishing a communication connection of a video network of the present application may further include the steps of:
step S21: and acquiring a task request to be processed.
In this embodiment, any one virtual terminal includes a plurality of sub-devices, and different types of task requests to be processed can be generated by different sub-devices, for example, the sub-device 1 is used to generate a video type task request, and the sub-device 2 is used to generate an audio type task request. Each sub-device has a sub-device number, and the virtual terminal distinguishes a plurality of different sub-devices according to the sub-device numbers.
Step S22: and adding task numbers to the to-be-processed task requests, wherein the task numbers corresponding to the to-be-processed task requests are different.
In this embodiment, one virtual terminal may generate many pending task requests within the same time period, in order to distinguish different pending task requests and prevent a network disorder phenomenon when obtaining a response, so that a task number may be added to the pending task request when generating the pending task request.
For example, the virtual terminal may add a task number to each to-be-processed task request that is sequentially generated according to the numbers 1-9999, and when the numbers reach 9999, add the task numbers to each to-be-processed task request again according to the order 1-9999.
Step S23: and sending the task request to be processed to the video network server, wherein the video network server is used for forwarding the task request to be processed to a corresponding virtual terminal, and the virtual terminal is used for processing the task request to be processed.
In this embodiment, after each virtual terminal generates and numbers a to-be-processed task request, the numbered to-be-processed task request may be stored in a sending queue, a sending thread reads each to-be-processed task request in the sending queue and sends the to-be-processed task request to the video network server, the video network server obtains a target virtual terminal number therein after receiving the to-be-processed task request, sends the to-be-processed task request to a target virtual terminal according to the target virtual terminal number, obtains task response data after the target virtual terminal processes the to-be-processed task request, generates a task response according to the task response data, and sends the task response to the video network server.
Step S24: and receiving a task response sent by the video network server.
Step S25: and acquiring the task number in the task response.
In this embodiment, after obtaining the task response, the virtual terminal obtains the task number carried by the virtual terminal, and after processing the task request to be processed, the target virtual terminal also carries the task number originally carried by the target virtual terminal in the task response.
Step S26: and when the task number in the task response is the same as the task number in the task request to be processed, determining that the task response is a response corresponding to the task request to be processed.
And if the task number is the same as the task number in the sent task request to be processed, the task response is the task response corresponding to the task request to be processed.
Illustratively, after the virtual terminal 1 establishes long connection with the virtual terminal 2 and the virtual terminal 3 respectively, the sub-device 1 of the virtual terminal 1 generates a task request 1 for requesting video resources, the sub-device 2 generates a task request 2 for requesting audio resources, the virtual terminal 1 adds a task number 100 to the task request 1 and adds a task number 101 to the task request 2, then the task request 1 and the task request 2 are stored in a sending queue, the sending thread reads the task request 1 and the task request 2 from the sending queue and sends the task request 1 and the task request 2 to the video network server, the video network server sends the task request 1 to the virtual terminal 2 according to a target virtual terminal number carried in the task request 1, supposing the virtual terminal number of the virtual terminal 3 according to the target virtual terminal number carried in the task request 2, sending the task request 2 to the virtual terminal 3; after the virtual terminal 2 processes the task request 1, a task response 1 is generated, a task number 100 initially carried by the virtual terminal is added, then the task response 1 is sent to the video network server, and the video network server sends the task response 1 to the virtual terminal according to the source virtual terminal number carried in the task response 1, namely: the virtual terminal number of the virtual terminal 1 sends the task response 1 to the virtual terminal 1; after the virtual terminal 3 processes the task request 2, a task response 2 is generated, meanwhile, a task number 101 carried by the virtual terminal is added, then the task response 2 is sent to the video network server, and the video network server sends the task response 2 to the virtual terminal according to the source virtual terminal number carried in the task response 2, namely: the virtual terminal number of the virtual terminal 1 sends the task response 2 to the virtual terminal 1; after receiving the task response 1, the virtual terminal 1 obtains the task number 100 carried therein, and since the task number 100 is the same as the task number 100 of the task request 1, it can be determined that the task number is a response corresponding to the task request 1, and similarly, after receiving the task response 2, the virtual terminal 1 obtains the task number 101 carried therein, and since the task number 101 is the same as the task number 101 of the task request 2, it can be determined that the task number is a response corresponding to the task request 2.
In this embodiment, when a plurality of task requests are sent to the outside, the source virtual terminal numbers each task request, so that when a task response is received, the task request to which the task response belongs can be quickly determined, network disorder can be effectively prevented (i.e., the request and the response are not matched), meanwhile, based on the setting of the task number, when a large number of task requests face, the task requests can be quickly processed, and the capability of dealing with a high-concurrency request scene is improved.
With reference to the foregoing embodiment, in an implementation manner, the sending the communication connection request to the target virtual terminal includes:
sending the communication connection request to the video networking server so that the video networking server sends the communication connection request to the target virtual terminal;
receiving a response returned by the target virtual terminal, wherein the response comprises:
and receiving a response returned by the video network server, wherein the response is sent to the video network server by the target virtual terminal.
In this embodiment, data interaction between any virtual terminals is forwarded by the video network server.
The application also provides a method for establishing the communication connection of the video network, which comprises the following steps:
a source virtual terminal generates a communication connection request aiming at a target virtual terminal, and sends the communication connection request to the target virtual terminal through a video network server, wherein the source virtual terminal and the target virtual terminal are both registered under the video network server;
after receiving the communication connection request, the target virtual terminal generates a response aiming at the communication connection request and sends the response to the source virtual terminal through the video networking server;
when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, the source virtual terminal determines that the long connection of the video network with the target virtual terminal is successfully established and sends a message of successful communication connection to the video network server;
after receiving the message, the video network server periodically sends heartbeat packets to the target virtual terminal and the source virtual terminal so as to maintain long video network connection between the target virtual terminal and the source virtual terminal;
when the video network server does not receive the response of the target virtual terminal and/or the source virtual terminal for confirming the reception returned by the heartbeat packet, the video network server respectively sends messages of video network long connection disconnection to the target virtual terminal and the source virtual terminal;
during the period that the long connection of the video network is in a connection state, the source virtual terminal determines a new virtual terminal to establish the long connection of the video network, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal;
and the source virtual terminal generates a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
For the detailed description of the above process, reference may be made to the foregoing description, and details are not repeated herein.
With reference to the foregoing embodiment, in an implementation manner, after the source virtual terminal determines that the long connection to the video network between the source virtual terminal and the target virtual terminal has been successfully established, the method further includes:
the source virtual terminal obtains task requests to be processed, adds task numbers to the task requests to be processed, and sends the task requests to be processed after the serial numbers are added to the video network server, wherein the task numbers corresponding to the task requests to be processed are different;
the video network server determines the video network long connection corresponding to the target virtual terminal in the video network long connection established by the source virtual terminal, and sends the task request to be processed to the target virtual terminal through the video network long connection;
the target virtual terminal processes the task request to be processed, generates a task response aiming at the task request to be processed, and sends the task response to the video network server;
the video network server sends the task response to the source virtual terminal;
and the source virtual terminal obtains a task number carried in the task response, and determines that the task response is a response corresponding to the task request to be processed when the task number in the task response is the same as the task number in the task request to be processed.
For the detailed description of the above process, reference may be made to the foregoing description, and details are not repeated herein.
Fig. 4 is a schematic diagram illustrating a method for establishing a video networking communication connection according to an embodiment of the application. The method for establishing the communication connection of the video network of the present application will be described in a specific embodiment with reference to fig. 4.
In fig. 4, the V2V system is: the video network system, such as the terminal device or the server in the video network, can be regarded as the V2V system, and V2V is the video network server (the video network server here is different from the server at the V2V system). When a V2V system a needs to establish long video network connection with a V2V system B, a connection request is sent to V2V, the connection request is forwarded to a V2V system B by V2V, after the V2V system B receives the connection request, if the long video network connection with the V2V system a is established, a response of agreeing to the connection is sent to V2V, the response of agreeing to the connection is forwarded to the V2V system a by V2V, after the V2V system a receives the response, it is confirmed that the connection is established successfully, then, a request 1 (carrying task number is 1) is generated, the request 1 is sent to the V2V system B by V2V, after the V2V system B processes the request 1, a response 1 (carrying task number is 1) is generated, and the response 1 is sent to the V2V system a by V2V. In the process of the above-mentioned interaction between the V2V system a and the V2V system B, the V2V system a may also interact with other V2V systems (for example, the V2V system C, V2V system D, etc.), and the interaction process is not shown in fig. 4.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those of skill 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 embodiments of the invention.
The present application also provides an apparatus 500 for establishing a video networking communication connection, as shown in fig. 5. Fig. 5 is a block diagram illustrating an apparatus for establishing a communication connection with a video network according to an embodiment of the present application. Referring to fig. 5, the apparatus for establishing a communication connection of a video network of the present application may include:
a first determining module 501, configured to determine a target virtual terminal to establish long connection in a video network, where the source virtual terminal and the target virtual terminal are both registered in the same video network server;
a first generating module 502, configured to generate a communication connection request for the target virtual terminal;
a first sending module 503, configured to send the communication connection request to the target virtual terminal;
a first receiving module 504, configured to receive a response returned by the target virtual terminal;
a second determining module 505, configured to determine that the long connection establishment of the video network with the target virtual terminal is successful when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal;
a third determining module 506, configured to determine, during a period that the long connection of the video network is in a connected state, a new virtual terminal to be used for establishing the long connection of the video network, where the new virtual terminal is any one of virtual terminals registered in the video network server, except for the target virtual terminal;
a second generating module 507, configured to generate a communication connection request for the new virtual terminal to establish a long video network connection with the new virtual terminal.
Optionally, the apparatus 500 further comprises:
the second sending module is used for sending a message of successful communication connection to the video network server, and the video network server is used for maintaining the long video network connection between the source virtual terminal and the target virtual terminal according to a preset connection maintenance strategy after receiving the message;
and the return module is used for returning a response for confirming that the heartbeat packet is received when the heartbeat packet sent by the video networking server is received so as to inform the video networking server to maintain the video networking long connection, and the heartbeat packet is periodically sent to each video networking virtual terminal for maintaining the video networking long connection established by each video networking virtual terminal after the video networking server receives the message.
Optionally, the target virtual terminal number corresponding to the target virtual terminal and the source virtual terminal number corresponding to the source virtual terminal are unique in the virtual terminal numbers corresponding to the video networking virtual terminals registered in the video networking server;
the first generating module 502 comprises:
the first obtaining module is used for obtaining a target virtual terminal number corresponding to the target virtual terminal;
the first generation submodule is used for generating a communication connection request based on the target virtual terminal number, wherein the communication connection request carries a source virtual terminal number of the communication connection request;
the second sending module 503 includes:
the message generating module is used for generating a message of successful communication connection based on the target virtual terminal number of the target virtual terminal and the source virtual terminal number of the message generating module;
and the second sending submodule is used for sending the message of successful communication connection to the video network server.
Optionally, the apparatus 500 further comprises:
the second obtaining module is used for obtaining the task request to be processed;
the numbering module is used for adding task numbers to the to-be-processed task requests, and the task numbers corresponding to the to-be-processed task requests are different;
a third sending module, configured to send the task request to be processed to the video networking server, where the video networking server is configured to forward the task request to be processed to a corresponding virtual terminal, and the virtual terminal is configured to process the task request to be processed;
the second receiving module is used for receiving the task response sent by the video network server;
the acquisition module is used for acquiring the task number in the task response;
and the fourth determining module is used for determining that the task response is the response corresponding to the task request to be processed when the task number in the task response is the same as the task number in the task request to be processed.
Optionally, the first sending module 503 includes:
the first sending submodule is used for sending the communication connection request to the video network server so that the video network server sends the communication connection request to the target virtual terminal;
the first receiving module 504 includes:
and the first receiving submodule is used for receiving a response returned by the video network server, wherein the response is sent to the video network server by the target virtual terminal.
Based on the same inventive concept, another embodiment of the present application provides an electronic device 600, as shown in fig. 6. Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 602, a processor 601 and a computer program stored on the memory and executable on the processor, which when executed performs the steps of the method according to any of the embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above-mentioned embodiments of the present application.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The video networking is an important milestone of 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 is face-to-face.
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 enable those skilled in the art to better understand the embodiments of the present invention, the following description is given of the internet of view:
some of the techniques applied by the video network are as follows:
network Technology (Network Technology)
Network innovations in video networking have improved the 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 video networking technology adopts Packet Switching 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, and realizes the seamless connection of a whole network switching type virtual circuit and a 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 network is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the large-scale high-definition video real-time transmission of the whole network which can not be realized by the current Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video network and the unified video platform is different from the traditional server, the streaming media transmission of the video network and the unified video platform is established on the basis of connection orientation, the data processing capability of the video network and the unified video platform is irrelevant to 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, but also connected with a single user, a private network user or the sum of one network. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type matching table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
Fig. 7 is a schematic networking diagram of a video network according to an embodiment of the present application. As shown in fig. 7, the view network is divided into two parts, 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 and can also be directly connected with the node server.
Therefore, the whole video network is a network structure controlled by a hierarchical centralized way, and the network controlled by the node server and the metropolitan area server can be in various structures such as a tree, a star, a ring and the like.
The access network part can form a unified video platform (the part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
fig. 8 is a schematic diagram illustrating a hardware structure of a node server according to an embodiment of the present application. As shown in fig. 8, the network interface module 201, the switching engine module 202, the CPU module 203, and the disk array module 204 are mainly included;
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 according to 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 and forwards if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 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:
fig. 9 is a schematic diagram illustrating a hardware structure of an access switch according to an embodiment of the present application. As shown in fig. 9, the network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, 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 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is close to full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the 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 queued packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downlink network interfaces to the uplink network interfaces at programmable intervals to control the rate of uplink 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 co-rotating gateway
Fig. 10 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to an embodiment of the present application. As shown in fig. 10, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switch 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 DA, MAC SA, length or frame type (2byte) is subtracted by the MAC deletion module 410 and enters the corresponding receiving buffer, otherwise it is discarded;
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 largely 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. Vission networking data 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., more than 2 connections between a node switch and a node server, between a node switch and a node switch, and between a node switch and a node server. However, the 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 the present 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 there are 2 labels for the packet from the device B to the device a. The label is divided into an in label and an out label, and assuming that the label (in label) of the data packet entering the device a is 0x0000, the label (out label) of the data 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 all passively executed, which is different from label allocation of MPLS, which is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined as follows: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the payload of the packet.
Based on the characteristics of the video network, one of the core concepts of the embodiment of the invention is provided, a plurality of video network long connections are mutually established among a plurality of virtual terminals located under the same video network server according to a video network protocol, and by means of establishing the video network long connections, the complicated step of frequently establishing channel connections between two frequently-interacted virtual terminals can be avoided, and based on a mesh path of the video network server, any one virtual terminal can be communicated and interacted with other virtual terminals at the same time, so that the number resources of all the virtual terminals are fully played, massive services can be rapidly processed under high concurrent requests, and the response speed of the system is effectively improved.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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 identical elements in the process, method, article, or terminal equipment comprising the element.
The method, apparatus, electronic device and storage medium for establishing a communication connection of a video network provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is 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, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for establishing a video networking communication connection, the method being applied to a source virtual terminal, the method comprising:
determining a target virtual terminal to be established with long connection of the video network, wherein the source virtual terminal and the target virtual terminal are both registered under the same video network server;
generating a communication connection request for the target virtual terminal;
sending the communication connection request to the target virtual terminal;
receiving a response returned by the target virtual terminal;
when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, determining that the long video network connection with the target virtual terminal is established successfully;
determining a new virtual terminal of the long connection of the video network to be established in the period of the long connection of the video network in a connection state, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal;
generating a communication connection request for the new virtual terminal to establish a long video network connection with the new virtual terminal.
2. The method of claim 1, wherein after determining that the long connection establishment of the video network with the target virtual terminal is successful, the method further comprises:
sending a message of successful communication connection to the video networking server, wherein the video networking server is used for maintaining the long video networking connection between the source virtual terminal and the target virtual terminal according to a preset connection maintenance strategy after receiving the message;
and when a heartbeat packet sent by the video network server is received, returning a response for confirming the reception of the heartbeat packet so as to inform the video network server to maintain the long video network connection, wherein the heartbeat packet is periodically sent to each video network virtual terminal for maintaining the long video network connection established by each video network virtual terminal after the video network server receives the message.
3. The method according to claim 2, wherein the target virtual terminal number corresponding to the target virtual terminal and the source virtual terminal number corresponding to the source virtual terminal are unique in the virtual terminal numbers corresponding to the video network virtual terminals registered in the video network server;
generating a communication connection request for the target virtual terminal, including:
acquiring a target virtual terminal number corresponding to the target virtual terminal;
generating a communication connection request based on the target virtual terminal number, wherein the communication connection request carries a source virtual terminal number of the communication connection request;
sending a message of successful communication connection to the video networking server, comprising:
generating a message of successful communication connection based on the target virtual terminal number of the target virtual terminal and the source virtual terminal number of the target virtual terminal;
and sending the message that the communication connection is successful to the video networking server.
4. The method of claim 1, wherein after determining that the long connection establishment of the video network with the target virtual terminal is successful, the method further comprises:
acquiring a task request to be processed;
adding task numbers to the task requests to be processed, wherein the task numbers corresponding to the task requests to be processed are different;
sending the task request to be processed to the video network server, wherein the video network server is used for forwarding the task request to be processed to a corresponding virtual terminal, and the virtual terminal is used for processing the task request to be processed;
receiving a task response sent by the video network server;
acquiring a task number in the task response;
and when the task number in the task response is the same as the task number in the task request to be processed, determining that the task response is a response corresponding to the task request to be processed.
5. The method of claim 1, wherein sending the communication connection request to the target virtual terminal comprises:
sending the communication connection request to the video networking server so that the video networking server sends the communication connection request to the target virtual terminal;
receiving a response returned by the target virtual terminal, wherein the response comprises:
and receiving a response returned by the video network server, wherein the response is sent to the video network server by the target virtual terminal.
6. A method of establishing a video networking communication connection, comprising:
a source virtual terminal generates a communication connection request aiming at a target virtual terminal, and sends the communication connection request to the target virtual terminal through a video network server, wherein the source virtual terminal and the target virtual terminal are both registered under the video network server;
after receiving the communication connection request, the target virtual terminal generates a response aiming at the communication connection request and sends the response to the source virtual terminal through the video networking server;
when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal, the source virtual terminal determines that the long connection of the video network with the target virtual terminal is successfully established and sends a message of successful communication connection to the video network server;
after receiving the message, the video network server periodically sends a heartbeat packet to the target virtual terminal and the source virtual terminal so as to maintain the long video network connection between the target virtual terminal and the source virtual terminal;
when the video network server does not receive the response of the target virtual terminal and/or the source virtual terminal for confirming the reception returned by the heartbeat packet, the video network server respectively sends messages of video network long connection disconnection to the target virtual terminal and the source virtual terminal;
during the period that the long connection of the video network is in a connection state, the source virtual terminal determines a new virtual terminal of the long connection of the video network to be established, wherein the new virtual terminal is any one of the virtual terminals registered under the video network server except the target virtual terminal;
and the source virtual terminal generates a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
7. The method of claim 6, wherein after the source virtual terminal determines that the long video network connection with the target virtual terminal has been successfully established, the method further comprises:
the source virtual terminal obtains task requests to be processed, adds task numbers to the task requests to be processed, and sends the task requests to be processed after the serial numbers are added to the video network server, wherein the task numbers corresponding to the task requests to be processed are different;
the video network server determines the video network long connection corresponding to the target virtual terminal in the video network long connection established by the source virtual terminal, and sends the task request to be processed to the target virtual terminal through the video network long connection;
the target virtual terminal processes the task request to be processed, generates a task response aiming at the task request to be processed, and sends the task response to the video network server;
the video network server sends the task response to the source virtual terminal;
and the source virtual terminal obtains a task number carried in the task response, and determines that the task response is a response corresponding to the task request to be processed when the task number in the task response is the same as the task number in the task request to be processed.
8. An apparatus for establishing a video networking communication connection, the apparatus being applied to a source virtual terminal, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target virtual terminal of the long connection of the video network to be established, and the source virtual terminal and the target virtual terminal are both registered under the same video network server;
a first generation module, configured to generate a communication connection request for the target virtual terminal;
a first sending module, configured to send the communication connection request to the target virtual terminal;
the first receiving module is used for receiving a response returned by the target virtual terminal;
a second determining module, configured to determine that the long connection establishment of the video network with the target virtual terminal is successful when the response indicates that the target virtual terminal agrees to establish the communication connection with the source virtual terminal;
a third determining module, configured to determine, during a period that the long connection of the video network is in a connection state, a new virtual terminal to be established for the long connection of the video network, where the new virtual terminal is any one of virtual terminals registered in the video network server except the target virtual terminal;
and the second generation module is used for generating a communication connection request aiming at the new virtual terminal so as to establish long video network connection with the new virtual terminal.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the processors to perform the method of establishing a video networking communication connection of any of claims 1-7.
10. A computer-readable storage medium storing a computer program for causing a processor to perform the method of establishing a communication connection over a video network according to any of claims 1 to 7.
CN202010097586.3A 2020-02-17 2020-02-17 Method, device, equipment and storage medium for establishing video networking communication connection Active CN111355916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010097586.3A CN111355916B (en) 2020-02-17 2020-02-17 Method, device, equipment and storage medium for establishing video networking communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010097586.3A CN111355916B (en) 2020-02-17 2020-02-17 Method, device, equipment and storage medium for establishing video networking communication connection

Publications (2)

Publication Number Publication Date
CN111355916A CN111355916A (en) 2020-06-30
CN111355916B true CN111355916B (en) 2022-07-22

Family

ID=71197939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010097586.3A Active CN111355916B (en) 2020-02-17 2020-02-17 Method, device, equipment and storage medium for establishing video networking communication connection

Country Status (1)

Country Link
CN (1) CN111355916B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN106686091A (en) * 2016-12-30 2017-05-17 广州尚融网络科技有限公司 Virtual channel control method and system
CN109451001A (en) * 2018-10-29 2019-03-08 视联动力信息技术股份有限公司 A kind of means of communication and system
CN110661848A (en) * 2019-08-28 2020-01-07 视联动力信息技术股份有限公司 Message pushing method, device, equipment and medium based on video network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377633B (en) * 2010-08-06 2014-10-08 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769603A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Method, system and apparatus for data transmission
CN106686091A (en) * 2016-12-30 2017-05-17 广州尚融网络科技有限公司 Virtual channel control method and system
CN109451001A (en) * 2018-10-29 2019-03-08 视联动力信息技术股份有限公司 A kind of means of communication and system
CN110661848A (en) * 2019-08-28 2020-01-07 视联动力信息技术股份有限公司 Message pushing method, device, equipment and medium based on video network

Also Published As

Publication number Publication date
CN111355916A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN109474715B (en) Resource configuration method and device based on video network
CN110475090B (en) Conference control method and system
CN110545395B (en) Video networking conference switching method and device
CN110381284B (en) Method, device, system, equipment and readable storage medium for switching conference
CN110650171A (en) Video networking service scheduling system and method
CN110113557B (en) Multistage conference implementation method and video networking system
CN110138730B (en) Subscription method and device of protocol conversion equipment and storage medium
CN109347844B (en) Method and device for accessing equipment to Internet
CN108881134B (en) Communication method and system based on video conference
CN110266577B (en) Tunnel establishment method and video networking system
CN110417792B (en) Communication method, system, gateway device and storage medium
CN110519549B (en) Conference terminal list obtaining method and system
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110072154B (en) Video networking-based clustering method and transfer server
CN109889516B (en) Method and device for establishing session channel
CN110808896B (en) Data transmission method and device, electronic equipment and storage medium
CN110120937B (en) Resource acquisition method, system, device and computer readable storage medium
CN110099307B (en) Node connection method, video network and computer readable storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN112511787A (en) Conference implementation method, device, equipment and readable storage medium
CN111355916B (en) Method, device, equipment and storage medium for establishing video networking communication connection
CN109474848B (en) Video processing method and device based on video network, electronic equipment and medium
CN110475160B (en) Method and device for transmitting video data across video network
CN111787261A (en) Audio and video data sending method and device, electronic equipment and storage medium
CN111541858A (en) Audio and video recording method, system 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