CN110740087A - Message transmission method, terminal, gateway device, electronic device and storage medium - Google Patents

Message transmission method, terminal, gateway device, electronic device and storage medium Download PDF

Info

Publication number
CN110740087A
CN110740087A CN201910883641.9A CN201910883641A CN110740087A CN 110740087 A CN110740087 A CN 110740087A CN 201910883641 A CN201910883641 A CN 201910883641A CN 110740087 A CN110740087 A CN 110740087A
Authority
CN
China
Prior art keywords
terminal
tunnel
video
video network
video networking
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.)
Granted
Application number
CN201910883641.9A
Other languages
Chinese (zh)
Other versions
CN110740087B (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 CN201910883641.9A priority Critical patent/CN110740087B/en
Publication of CN110740087A publication Critical patent/CN110740087A/en
Application granted granted Critical
Publication of CN110740087B publication Critical patent/CN110740087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention provides a message transmission method, a terminal, a gateway device, an electronic device and a storage medium, wherein the message transmission method comprises the steps that a th terminal reports own terminal information to the gateway device, a th terminal receives th tunnel information corresponding to a th terminal issued by the gateway device, th tunnel information comprises terminal information of a second terminal, the terminal information comprises a video networking MAC address, a th terminal sends a call request to the second terminal, a video networking tunnel between a th terminal and the second terminal is established according to th tunnel information and second tunnel information corresponding to the second terminal after the call is successful, a nd terminal replaces a target video networking MAC address in the video networking message with the video networking MAC address of the second terminal after the video networking message to be transmitted to the second terminal is acquired, and the replaced video networking message is transmitted to the second terminal by using the video networking tunnel.

Description

Message transmission method, terminal, gateway device, electronic device and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to message transmission methods, terminals, gateway devices, electronic devices, and storage media.
Background
The video networking is an important milestone for network development, is real-time networks, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, high-definition face-to-face.
When the message is transmitted by communication between different terminals under the same video network server, the message transmission is forwarded by the video network server.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide message transmission methods, terminals, gateway devices, electronic devices, and storage media that overcome or at least partially solve the above problems.
In , the embodiment of the present invention discloses message transmission methods, including:
, the terminal reports the terminal information to the gateway device;
the terminal receives th tunnel information corresponding to the terminal issued by the gateway device, wherein the th tunnel information is acquired by the gateway device after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal and issued to the th terminal, the th tunnel information comprises terminal information of the second terminal, and the terminal information comprises a video networking MAC address;
the terminal sends a call request to the second terminal, and after the call is successful, the video networking tunnel between the terminal and the second terminal is established according to the tunnel information and second tunnel information corresponding to the second terminal, wherein the second tunnel information is acquired and issued to the second terminal after the gateway equipment finds the second terminal waiting for the video networking tunnel to be established with the terminal;
and after the terminal acquires the video networking message to be transmitted to the second terminal, replacing the target video networking MAC address in the video networking message with the video networking MAC address of the second terminal, and transmitting the replaced video networking message to the second terminal by using the video networking tunnel.
Optionally, the terminal information further includes a video network number, the th tunnel information further includes a second video network sub-number corresponding to the second terminal and associated with the th terminal, and a th video network sub-number corresponding to the th terminal and associated with the second terminal, and the step of transmitting the replaced video network message to the second terminal by using the video network tunnel includes the step of transmitting the replaced video network message to a port corresponding to the second video network sub-number on the second terminal through a port corresponding to the video network sub-number on the th terminal according to the video network MAC address of the second terminal, the video network number of the second terminal, and the second video network sub-number by the th terminal.
Optionally, the video networking message is a video networking message encapsulated with an internet message based on a video networking protocol, and the destination video networking MAC address is a video networking MAC address of the video networking server.
In a second aspect, an embodiment of the present invention discloses message transmission methods, where the method includes:
the gateway equipment receives own terminal information reported by the th terminal;
after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal, the gateway device obtains th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal, issues the th tunnel information to the th terminal, and issues the second tunnel information to the second terminal;
wherein the th tunnel information and the second tunnel information are used as a basis for establishing a video networking tunnel between the th terminal and the second terminal.
Optionally, the step of obtaining th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal includes allocating a corresponding th view network sub-number associated with the second terminal to the th terminal, allocating a corresponding second view network sub-number associated with the th terminal to the second terminal, and allocating a call role to the th terminal and the second terminal, obtaining terminal information of the second terminal, a second view network sub-number associated with the th terminal corresponding to the second terminal, a th view network sub-number associated with the second terminal corresponding to the th terminal, and a call role of the th terminal corresponding to the second terminal, as th tunnel information corresponding to the th terminal and the second terminal, obtaining terminal information of the th terminal, a th view network sub-number associated with the second terminal corresponding to the th terminal, a second view network sub-number corresponding to the second terminal, and the second tunnel information corresponding to the second terminal, as the second tunnel information of the th view network sub-number associated with the second terminal and the second terminal corresponding to the second terminal.
Optionally, the step of allocating a corresponding video network sub-number associated with the second terminal to the th terminal, allocating a corresponding second video network sub-number associated with the 0 th terminal to the second terminal, and allocating a call role to the th terminal and the second terminal includes selecting video network sub-numbers which are not allocated to the th terminal from a plurality of preset video network sub-numbers as video network sub-numbers associated with the second terminal and corresponding to the th terminal, selecting video network sub-numbers which are not allocated to the second terminal from the plurality of preset video network sub-numbers as a second video network sub-number associated with the th terminal and corresponding to the second terminal, allocating a call role as a calling role to the th terminal, and allocating a call role as a called role to the second terminal.
In a third aspect, an embodiment of the present invention discloses terminals, where the terminal is a th terminal, and the th terminal includes:
the reporting module is used for reporting the terminal information of the reporting module to the gateway equipment;
an receiving module, configured to receive th tunnel information corresponding to the th terminal sent by the gateway device, where the th tunnel information is obtained by the gateway device after finding a second terminal that waits for establishment of a video networking tunnel with the th terminal, and is sent to the th terminal, where the th tunnel information includes terminal information of the second terminal, and the terminal information includes a video networking MAC address;
the establishing module is used for sending a call request to the second terminal, and after the call is successful, establishing the video networking tunnel between the terminal and the second terminal according to the th tunnel information and second tunnel information corresponding to the second terminal, wherein the second tunnel information is acquired by the gateway equipment after finding the second terminal waiting for establishing the video networking tunnel with the terminal and is sent to the second terminal;
and the transmission module is used for replacing a target video network MAC address in the video network message with the video network MAC address of the second terminal after the video network message to be transmitted to the second terminal is acquired, and transmitting the replaced video network message to the second terminal by using the video network tunnel.
Optionally, the terminal information further includes an internet of view number, the th tunnel information further includes a second internet of view sub-number corresponding to the second terminal and associated with the th terminal, and a th internet of view sub-number corresponding to the th terminal and associated with the second terminal, and the transmission module includes a tunnel transmission sub-module, configured to transmit the replaced internet of view packet to a port corresponding to the second internet of view sub-number on the second terminal through a port corresponding to the th internet of view sub-number on the th terminal according to the internet of view MAC address of the second terminal, the internet of view number of the second terminal, and the second internet of view sub-number.
Optionally, the video networking message is a video networking message encapsulated with an internet message based on a video networking protocol, and the destination video networking MAC address is a video networking MAC address of the video networking server.
In a fourth aspect, an embodiment of the present invention discloses kinds of gateway devices, where the gateway devices include:
the second receiving module is used for receiving the own terminal information reported by the th terminal;
an obtaining module, configured to obtain th tunnel information corresponding to the th terminal and second tunnel information corresponding to a second terminal after finding that the second terminal waiting for establishment of the video networking tunnel with the th terminal exists;
the issuing module is configured to issue the th tunnel information to the th terminal, and issue the second tunnel information to the second terminal;
wherein the th tunnel information and the second tunnel information are used as a basis for establishing a video networking tunnel between the th terminal and the second terminal.
Optionally, the obtaining module includes an allocating sub-module configured to allocate a corresponding video network sub-number associated with the second terminal to the terminal, allocate a corresponding second video network sub-number associated with the 0 terminal to the second terminal, and allocate a call role to the 1 terminal and the second terminal, an 2 obtaining sub-module configured to obtain terminal information of the second terminal, a second video network sub-number associated with the 3 terminal corresponding to the second terminal, a video network sub-number associated with the second terminal corresponding to the 4 terminal, and a call role of the terminal, which serve as second tunnel information corresponding to the second terminal of the terminal, and a second obtaining sub-module configured to obtain terminal information of the terminal, a video network sub-number associated with the second terminal corresponding to the terminal, a second video network sub-number associated with the second terminal corresponding to the second terminal, and a second call role corresponding to the terminal, which serve as second tunnel information corresponding to the second terminal.
Optionally, the allocating sub-module includes a number allocating unit, configured to select video network sub-numbers that have not been allocated to the terminal from a plurality of preset video network sub-numbers as the video network sub-number associated with the second terminal corresponding to the terminal, select video network sub-numbers that have not been allocated to the second terminal from a plurality of preset video network sub-numbers as the second video network sub-number associated with the terminal corresponding to the second terminal, and a role allocating unit, configured to allocate a call role as a calling party to the terminal and allocate a call role as a called party to the second terminal.
In a fifth aspect, an embodiment of the present invention discloses electronic devices, including or more processors, and or more machine-readable media having instructions stored thereon, which when executed by the or more processors, cause the processors to perform any message transmission method as performed by the terminal.
In a sixth aspect, an embodiment of the invention discloses electronic devices including or more processors, and or more machine-readable media having instructions stored thereon, which when executed by the or more processors, cause the processor to perform any of the messaging methods performed by a gateway device as described above.
In a seventh aspect, an embodiment of the present invention discloses computer-readable storage media, where the computer program is stored, and when the computer program is executed by a processor, the computer program implements any message transmission method executed by the terminal.
In an eighth aspect, an embodiment of the present invention discloses computer-readable storage media, on which is stored a computer program, which when executed by a processor, implements any message transmission method as performed by a gateway device.
In the embodiment of the invention, an terminal reports terminal information of the terminal to a gateway device, a terminal receives 1 tunnel information corresponding to a 0 terminal and issued by the gateway device, 2 tunnel information is acquired by the gateway device after finding a second terminal waiting for establishment of a video networking tunnel with a terminal and issued to a terminal, tunnel information includes terminal information of the second terminal, the terminal information includes a video networking MAC address, the terminal sends a call request to the second terminal, after the call is successful, a video networking tunnel between the terminal and the second terminal is established according to tunnel information and second tunnel information corresponding to the second terminal, the second tunnel information is acquired by the gateway device after finding the second terminal waiting for establishment of the video networking tunnel with a terminal and issued to the second terminal, the terminal replaces the destination of the video networking message with the second MAC address of the video networking terminal after acquiring the video networking message to be transmitted to the second terminal, and transmits the video networking message by using the second MAC address.
Therefore, the gateway device is arranged in the embodiment of the present invention, the video networking tunnel between the th terminal and the second terminal can be established through the gateway device, and the video networking message transmitted between the th terminal and the second terminal can be directly transmitted through the video networking tunnel without being forwarded through the video networking server, so that the transmission efficiency of the video networking message can be improved, and the video networking message is not affected by the performance of the video networking server and the bandwidth of the internet access, and the load of the video networking server is reduced.
Drawings
FIG. 1 is a networking schematic of types of video networks of the present invention;
FIG. 2 is a schematic diagram of the hardware architecture of node servers of the present invention;
fig. 3 is a schematic diagram of the hardware architecture of the access switches of the present invention;
fig. 4 is a schematic diagram of the hardware structure of ethernet protocol gateways of the present invention;
fig. 5 is a flowchart illustrating steps of a message transmission method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating steps of message transmission methods according to a second embodiment of the present invention;
fig. 7 is a flowchart illustrating steps of an message transmission method according to a third embodiment of the present invention;
FIG. 8 is a diagram illustrating interactions among devices according to a fourth embodiment of the present invention;
FIG. 9 is a diagram illustrating an interaction flow of devices according to a fourth embodiment of the present invention;
fig. 10 is a block diagram of kinds of terminals according to the fifth embodiment of the present invention.
Fig. 11 is a block diagram of kinds of gateway devices according to a sixth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, a more detailed description is provided below in conjunction with the accompanying drawings and the detailed description.
Example
Referring to fig. 5, a flowchart illustrating steps of the message transmission methods of according to an embodiment of the present invention is shown.
The message transmission method of the embodiment of the invention can comprise the following steps:
in step 501, the th terminal reports its own terminal information to the gateway device.
Therefore, in the embodiment of the invention, gateway equipment and terminals (including a th terminal and a second terminal) all need to perform network Access operation in a video network server, the equipment after network Access has a corresponding Media Access Control (MAC) address and a video network number, wherein the MAC address can be obtained by pre-configuration, and the video network number can be automatically obtained in the process of driving the network Access protocol.
When a terminal wants to establish a tunnel with another terminal, the terminal is called th terminal and the other terminal is called a second terminal for easier differentiation in the embodiment of the present invention, when a th terminal wants to establish a tunnel with a second terminal, the th terminal reports its own terminal information to the gateway device.
Step 502, the th terminal receives th tunnel information corresponding to the th terminal sent by the gateway device.
After receiving the terminal information reported by the th terminal, the gateway device searches whether a second terminal waiting for establishing the video network tunnel with the th terminal exists, and after searching the second terminal waiting for establishing the video network tunnel with the th terminal, the gateway device obtains th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal, and issues th tunnel information to the th terminal and issues the second tunnel information to the second terminal.
Step 503, the th terminal sends a call request to the second terminal, and after the call is successful, a video networking tunnel between the th terminal and the second terminal is established according to the th tunnel information and the second tunnel information corresponding to the second terminal.
The terminal sends a call request to the second terminal after receiving the th tunnel information, and establishes a video network tunnel between the th terminal and the second terminal according to the th tunnel information corresponding to the th terminal and the second tunnel information corresponding to the second terminal after the call is successful.
In step 504, after the th terminal acquires the video networking message to be transmitted to the second terminal, the destination video networking MAC address in the video networking message is replaced by the video networking MAC address of the second terminal, and the video networking tunnel is used to transmit the replaced video networking message to the second terminal.
After the video network tunnel between the th terminal and the second terminal is successfully established, the th terminal and the second terminal can interact video network messages through the video network tunnel.
Therefore, the th terminal can obtain the video network MAC address of the second terminal from the th tunnel information, the th terminal replaces the destination video network MAC address in the video network message to be transmitted to the second terminal with the video network MAC address of the second terminal, and transmits the replaced video network message to the second terminal by using the video network tunnel through addressing the video network MAC address of the second terminal.
The embodiment of the invention is provided with the gateway equipment, the video network tunnel between the th terminal and the second terminal can be established through the gateway equipment, and the video network messages transmitted between the th terminal and the second terminal can be directly transmitted through the video network tunnel without being forwarded by the video network server, so that the transmission efficiency of the video network messages can be improved, the video network messages are not influenced by the performance of the video network server and the bandwidth of a network port, and the load of the video network server is reduced.
Example two
Referring to fig. 6, a flowchart illustrating steps of message transmission methods according to a second embodiment of the present invention is shown.
The message transmission method of the embodiment of the invention can comprise the following steps:
step 601, the gateway device receives the terminal information of itself reported by the th terminal.
In step 602, after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal, the gateway device obtains th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal.
After receiving the terminal information reported by the th terminal, the gateway device may search whether there is a second terminal waiting for establishing a video networking tunnel with the th terminal.
If the tunnel information exists, the tunnel information corresponding to the terminal and the second tunnel information corresponding to the second terminal are obtained, if the tunnel information does not exist, the terminal information reported by the th terminal is stored, and the terminal information of other terminals is continuously waited to be reported.
Step 603, the gateway device issues the th tunnel information to the th terminal, and issues the second tunnel information to the second terminal.
The th terminal receives the th tunnel information sent by the gateway device, and the second terminal receives the second tunnel information sent by the gateway device, according to the th tunnel information and the second tunnel information, a video network tunnel between the th terminal and the second terminal can be established.
After the tunnel of the video network is successfully established, the th terminal and the second terminal can directly transmit the message of the video network through the tunnel of the video network without forwarding the message of the video network through a server of the video network.
EXAMPLE III
Referring to fig. 7, a flowchart illustrating steps of message transmission methods according to a third embodiment of the present invention is shown.
The message transmission method of the embodiment of the invention can comprise the following steps:
in step 701, the gateway device receives terminal information reported by the th terminal.
The terminal information may include a video network MAC address and a video network number, and thus, the terminal information reported by the st terminal may include a video network MAC address of the st terminal and a video network number of the th terminal.
Step 702, after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal, the gateway device obtains th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal, issues the th tunnel information to the th terminal, and issues the second tunnel information to the second terminal.
After receiving the terminal information reported by the th terminal, the gateway device searches whether a second terminal waiting for establishing a video networking tunnel with the th terminal exists.
In alternative embodiments, the gateway device may set a table (e.g., a Hash chain table) for storing terminal information and tunnel information (possibly or more tunnel information) of each terminal, and after receiving the terminal information reported by the th terminal, the gateway device may look up whether terminal information of other terminals already exists in the table, if so, take the other terminal as a second terminal (possibly or more second terminals) waiting for establishing a video networking tunnel with the th terminal, and if not, store the terminal information reported by the th terminal in the table, and continue to wait for the terminal information reported by the other terminals.
After finding out the second terminal waiting for establishing the video networking tunnel with the th terminal, the gateway device obtains the th tunnel information corresponding to the th terminal and the second tunnel information corresponding to the second terminal.
In alternative embodiments, the process of obtaining the th tunnel information corresponding to the th terminal and the second tunnel information corresponding to the second terminal may include steps a1 to A3:
step A1, allocating a corresponding th video network sub-number associated with the second terminal to the th terminal, allocating a corresponding second video network sub-number associated with the th terminal to the second terminal, and allocating a call role to the th terminal and the second terminal.
Selecting video network sub-numbers which are not allocated to the terminal from a plurality of preset video network sub-numbers to serve as video network sub-numbers which correspond to the terminal and are associated with the second terminal when the video network sub-numbers are allocated, selecting video network sub-numbers which are not allocated to the second terminal from the plurality of preset video network sub-numbers to serve as second video network sub-numbers which correspond to the terminal and are associated with the second terminal;
the number of the preset video networking sub-numbers can be set to be any suitable number according to the performance of the terminal, and the embodiment does not limit the number, for example, 200 video networking sub-numbers can be set, the video networking sub-numbers can be 0 to 199, and the like.
When the call role is allocated, allocating the call role as a calling party to the th terminal, allocating the call role as a called party to the current second terminal, and allocating the call role of each second terminal as a called party.
Step a2, obtaining the terminal information of the second terminal, the second video network sub-number corresponding to the second terminal and associated with the terminal, the video network sub-number corresponding to the terminal and associated with the second terminal, and the call role of the terminal, as the tunnel information corresponding to the terminal and corresponding to the second terminal.
Step A3, obtaining the terminal information of the terminal, the th video network sub-number corresponding to the th terminal and associated with the second terminal, the second video network sub-number corresponding to the second terminal and associated with the th terminal, and the call role of the second terminal, as the second tunnel information corresponding to the second terminal.
After acquiring the tunnel information corresponding to the th terminal and the second tunnel information corresponding to the second terminal, the gateway device issues the th tunnel information to the th terminal, and issues the second tunnel information to the second terminal.
In optional embodiments, for each second terminal, the gateway device issues the th tunnel information corresponding to the current second terminal to the th terminal, and issues the second tunnel information corresponding to the current second terminal.
Step 703, the th terminal sends a call request to the second terminal, and after the call is successful, establishes the internet-of-video tunnel between the th terminal and the second terminal according to the th tunnel information and the second tunnel information corresponding to the second terminal.
After the th terminal receives the th tunnel information, the th terminal sends a call request to the second terminal because the th terminal is the calling party.
The process that the terminal sends the call request to the second terminal can comprise that the terminal sends the call request carrying the video networking number of the second terminal to the video networking server after determining that the own call role is the calling, the video networking server can determine the second terminal according to the video networking number of the second terminal and forward the call request to the second terminal, and the terminal succeeds in calling after the second terminal accepts the call.
after the call is successful, because the 0 th tunnel information corresponding to the th terminal includes the video network MAC address of the second terminal, the video network number of the second terminal, the second video network sub-number corresponding to the second terminal, and the th video network sub-number corresponding to the 1 th terminal, and the second tunnel information corresponding to the second terminal includes the video network MAC address of the th terminal, the video network number of the th terminal, the th video network sub-number corresponding to the th terminal, and the second video network sub-number corresponding to the second terminal, and the video network sub-numbers correspond to the ports on the terminals, the video network tunnel between the th terminal and the second terminal can be established according to the th tunnel information corresponding to the th terminal and the second tunnel information corresponding to the second terminal.
Step 704, after the th terminal obtains the video networking message to be transmitted to the second terminal, the destination video networking MAC address in the video networking message is replaced by the video networking MAC address of the second terminal, and the video networking tunnel is used to transmit the replaced video networking message to the second terminal.
After the video network tunnel between the th terminal and the second terminal is successfully established, the th terminal and the second terminal can interact video network messages through the video network tunnel.
The internet message is driven by the system, the video network message is firstly uploaded to a socket to a kernel mode protocol stack, the protocol stack finds a data packet in a corresponding port and sends the data packet out in a routing or bridge forwarding mode, the data is sent to the kernel mode through the socket, and the kernel mode sends the data out through the protocol stack.
Therefore, the terminal may obtain the internet packet from the protocol stack, and then encapsulate the internet packet into the video networking packet in an original manner, but because the video networking packet in the original manner is to be forwarded by the video networking server, a destination video networking MAC address in the video networking packet is the video networking MAC address of the video networking server at this time.
When the replaced video network message is transmitted by using the video network tunnel, the th terminal transmits the replaced video network message to a port corresponding to the second video network sub-number on the second terminal through a port corresponding to the th video network sub-number on the th terminal according to the video network MAC address of the second terminal, the video network number of the second terminal and the second video network sub-number.
The embodiment of the invention is provided with the gateway equipment, the video network tunnel between the th terminal and the second terminal can be established through the gateway equipment, and the video network messages transmitted between the th terminal and the second terminal can be directly transmitted through the video network tunnel without being forwarded by the video network server, so that the transmission efficiency of the video network messages can be improved, the video network messages are not influenced by the performance of the video network server and the bandwidth of a network port, and the load of the video network server is reduced.
Example four
Next, an embodiment of the present invention will be described with reference to fig. 8 and 9. The gateway device in the embodiment of the present invention may be a gateway installed with a video networking bearer internet software (such as VVOE), and the terminal may be a terminal installed with a video networking bearer internet software, and after the software is installed, the internet message bearer by the video networking message may be realized.
Fig. 8 is a schematic diagram of an interaction relationship of devices according to a fourth embodiment of the present invention, as shown in fig. 8, a terminal and a gateway device both interact with a video networking server to access a network in the video networking server, a video networking tunnel may also be established between the terminal and the gateway device, the terminal and the gateway device transparently transmit and interact based on a video networking protocol through the video networking tunnel therebetween, after the terminal and the gateway device interact with each other, the terminal interacts with each other according to obtained tunnel information to establish the video networking tunnel between the terminals, and then the terminals may interact with each other through the video networking tunnel without further message forwarding through the video networking server.
Fig. 9 is a schematic diagram of an interaction flow of kinds of devices according to a fourth embodiment of the present invention, as shown in fig. 9, before device interaction, a gateway device and a terminal each perform driver loading, which mainly involves module-driven loading such as driver module loading, video networking protocol parsing module, terminal video networking data interaction information parsing function module, tunnel establishment, and the like, and the device interaction flow may include:
① network access, after the gateway device driver loads, the network access is carried out by the video network protocol signaling message interaction with the video network server through the configured video network MAC address of the gateway device, and the video network number of the gateway device can be obtained.
② data report, the terminal reports the terminal information to the gateway device based on the service transparent transmission protocol in the video network protocol through the configured gateway device number (known in advance), the reported terminal information mainly includes the video network MAC address of the terminal and the video network number of the terminal.
Data reception: the gateway equipment receives the terminal information reported by the terminal and adds the terminal information into a terminal Hash (Hash) linked list maintained by the gateway equipment. The chain table mainly records the video network MAC address, the video network number and the tunnel information to be established by the terminal calculated subsequently, wherein the tunnel information comprises the video network MAC address of the tunnel opposite terminal, the video network number of the tunnel opposite terminal, the video network sub-number of the self-body and the call role of the self-body.
③ data calculation and transmission, the gateway device receives the information reported by the terminal, checks whether there is other terminal, if there is, calculates the sub-number of the video network of the reported terminal and the sub-number of the video network of the terminal already existing in the local, sets the corresponding tunnel information (the MAC address of the video network of the opposite end of the tunnel, the sub-number of the video network of itself, the conversation role of itself (the newly reported terminal is the calling, and the terminal already in the chain table is the called)) on each terminal, and transmits the set tunnel information to the corresponding terminal based on the service transparent transmission protocol in the video network protocol.
Data acquisition: and the terminal receives the tunnel information issued by the gateway equipment.
④ tunnel establishment, the terminal with calling role as calling initiates video network video telephone to the terminal with called role as called, and establishes video network tunnel with opposite terminal, the terminal with called role waits for video network video telephone to dial in, and establishes video network tunnel.
⑤ data transmission, when there is video network message transmitted through the video network tunnel, the two-layer destination address of the packaged video network message is modified to the video network MAC address of the opposite terminal corresponding to the video network tunnel, so that the video network message can be addressed through the two-layer video network MAC address of the opposite terminal, and the video network message is directly transmitted to the opposite terminal.
According to the embodiment of the invention, after the video network tunnel is automatically established by all the terminals under the control of the gateway equipment through information interaction between the terminals and the gateway equipment, when a video network message needs to be sent through the video network tunnel, the terminal of the video network message is directly and directionally sent and received to the terminal by modifying the destination MAC address of the video network message, so that the message forwarding expense of a video network server is reduced, and the message transmission efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are described as series combinations of actions, but those skilled in the art should understand that the present invention is not limited by the order of the actions described, because some steps may occur in other orders or concurrently according to the embodiments of the present invention.
EXAMPLE five
Referring to fig. 10, a block diagram of terminals according to a fifth embodiment of the present invention is shown, where the terminal is a th terminal, and the th terminal includes:
a reporting module 1001, configured to report terminal information of itself to a gateway device;
an receiving module 1002, configured to receive th tunnel information corresponding to the th terminal and sent by the gateway device, where the th tunnel information is obtained by the gateway device after finding a second terminal that waits for establishment of a video networking tunnel with the th terminal, and is sent to the th terminal, where the th tunnel information includes terminal information of the second terminal, and the terminal information includes a video networking MAC address;
the establishing module 1003 is configured to send a call request to the second terminal, and after the call is successful, establish a video networking tunnel between the th terminal and the second terminal according to the th tunnel information and second tunnel information corresponding to the second terminal, where the second tunnel information is obtained and sent to the second terminal after the gateway device finds the second terminal waiting for establishment of the video networking tunnel with the th terminal;
the transmission module 1004 is configured to, after obtaining the video networking message to be transmitted to the second terminal, replace the destination video networking MAC address in the video networking message with the video networking MAC address of the second terminal, and transmit the replaced video networking message to the second terminal by using the video networking tunnel.
Optionally, the terminal information further includes an internet of view number, the th tunnel information further includes a second internet of view sub-number corresponding to the second terminal and associated with the th terminal, and a th internet of view sub-number corresponding to the th terminal and associated with the second terminal, and the transmission module 1004 includes a tunnel transmission sub-module, configured to transmit the replaced internet of view packet to a port corresponding to the second internet of view sub-number on the second terminal through a port corresponding to the th internet of view sub-number on the th terminal according to the internet of view MAC address of the second terminal, the internet of view number of the second terminal, and the second internet of view sub-number.
Optionally, the video networking message is a video networking message encapsulated with an internet message based on a video networking protocol, and the destination video networking MAC address is a video networking MAC address of the video networking server.
EXAMPLE six
Referring to fig. 11, a block diagram of types of gateway devices according to a sixth embodiment of the present invention is shown, where the gateway device includes:
a second receiving module 1101, configured to receive terminal information of the second receiving module, which is reported by the th terminal;
an obtaining module 1102, configured to obtain th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal after finding that the second terminal waiting for establishment of the video networking tunnel with the th terminal exists;
a sending module 1103, configured to send the th tunnel information to the th terminal, and send the second tunnel information to the second terminal;
wherein the th tunnel information and the second tunnel information are used as a basis for establishing a video networking tunnel between the th terminal and the second terminal.
Optionally, the obtaining module 1102 includes an allocating sub-module, configured to allocate a video networking sub-number associated with the second terminal to the th terminal, allocate a second video networking sub-number associated with the th terminal to the second terminal, and allocate a call role to the th terminal and the second terminal, an obtaining sub-module, configured to obtain terminal information of the second terminal, a second video networking sub-number associated with the rd terminal corresponding to the second terminal, a th video networking sub-number associated with the second terminal corresponding to the th terminal, and a call role of the th terminal, as tunnel information corresponding to the th terminal and the second terminal, and a second obtaining sub-module, configured to obtain terminal information of the th terminal, a th video networking sub-number associated with the second terminal corresponding to the 633 th terminal, a second video networking sub-number associated with the second terminal corresponding to the second terminal, and the second call role corresponding to the 73784 th terminal, and use the second tunnel information.
Optionally, the allocating sub-module includes a number allocating unit, configured to select video network sub-numbers that have not been allocated to the terminal from a plurality of preset video network sub-numbers as the video network sub-number associated with the second terminal corresponding to the terminal, select video network sub-numbers that have not been allocated to the second terminal from a plurality of preset video network sub-numbers as the second video network sub-number associated with the terminal corresponding to the second terminal, and a role allocating unit, configured to allocate a call role as a calling party to the terminal and allocate a call role as a called party to the second terminal.
The embodiment of the invention is provided with the gateway equipment, the video network tunnel between the th terminal and the second terminal can be established through the gateway equipment, and the video network messages transmitted between the th terminal and the second terminal can be directly transmitted through the video network tunnel without being forwarded by the video network server, so that the transmission efficiency of the video network messages can be improved, the video network messages are not influenced by the performance of the video network server and the bandwidth of a network port, and the load of the video network server is reduced.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In an embodiment of the present invention, there is also provided electronic devices including or more processors, and or more machine readable media having instructions, such as an application program, stored thereon, which when executed by the or more processors cause the processors to perform any messaging method as performed by the terminal above.
In an embodiment of the present invention, there is also provided electronic devices including or more processors and or more machine readable media having instructions, such as an application program, stored thereon, which when executed by the or more processors cause the processors to perform any of the messaging methods performed by the gateway device as described above.
In an embodiment of the present invention, there is also provided non-transitory computer readable storage media having stored thereon a computer program, such as a memory including a computer program, which when executed by a processor implements any of the message transmission methods as performed by the terminal.
In an eighth aspect, embodiments of the present invention disclose non-transitory computer readable storage media having stored thereon a computer program, e.g., a memory including a computer program, which when executed by a processor, implements any of the messaging methods as performed by the gateway device above.
For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of video, voice, pictures, characters, communication, data and the like on the network platforms, such as high-definition video conferences, video monitoring, intelligent monitoring analysis, emergency command, digital television broadcasting, delayed television, network teaching, live broadcasting, VOD on demand, television mails, Personal Video Recorder (PVR), intranet (self-made) channels, intelligent video broadcasting control, information distribution and the like, into the system platforms, and realizes high-definition quality video broadcasting through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
The video networking technology has the flexibility, simplicity and low price of Packet Switching, and simultaneously has the quality and safety guarantee of Circuit Switching, and realizes the full-network Switching type virtual Circuit and the seamless connection of data formats.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the Ethernet defect 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 IP data packets, and does not need any format conversion in the whole network range.
Server Technology (Server Technology)
The video networking and system video platform server technology is different from the traditional server, its stream media transmission is based on the connection oriented base, its data processing ability is independent of flow and communication time, the single network layer can contain signaling and data transmission, for voice and video service, the complexity of video networking and system video platform stream media processing is much simpler than data processing, the efficiency is greatly improved over hundred times than the traditional server.
Storage Technology (Storage Technology)
The ultra-high speed memory technology of the system 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 instantly and directly sent to the user terminal, the time for the user to wait is less than 0.2 second, the optimized sector distribution greatly reduces the mechanical movement of the hard disk magnetic head seek, the resource consumption only accounts for 20% of the same grade IP internet, but the concurrent flow which is 3 times larger than 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 which troubles the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, and does not need antivirus programs and firewalls, thereby avoiding the attack of hackers and viruses and providing a structural careless security network for users.
Service Innovation Technology (Service Innovation Technology)
The system video platform integrates services and transmission at , no matter a single user, a private network user or a total of networks, the automatic connection is only times, a user terminal, a set-top box or a PC is directly connected to the system video platform to obtain various multimedia video services in various forms, and the system 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 new service innovation in an infinite quantity.
Networking of the video network is as follows:
the internet of view is kinds of network structures with centralized control, and the network can be a tree type network, a star type network, a ring network and the like, but on the basis of the network, a centralized control node is needed to control the whole network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
It can be seen that the whole network of view is network structures controlled by hierarchical centralization, and the network controlled by node server and metropolitan area server can be various structures such as tree, star, ring, etc.
The access network part can form a system video platform (the part in the dotted circle), a plurality of systems video platforms can form a video network, and each system video platform can be interconnected through a metropolitan area and a video network.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the th byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are at most 256 possibilities, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to 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 the metro network is a graph, and there may be 2, even more than 2 connections between two devices, that is, there may be 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 addresses of the metro networks of the metro network devices are only , and in order to accurately describe the connection relationship between the metro network devices, the parameter label is introduced in the embodiment of the present invention, so that only describes metro network devices.
The Label definition in this specification is similar to the Label definition of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between device a and device B, there are 2 labels for a packet from device a to device B, and there are 2 labels for a packet from device B to device a. the Label is divided into an incoming Label and an outgoing Label, and assuming that the Label (incoming Label) of a packet entering device a is 0x0000, the Label (outgoing Label) of the packet leaving device a may become 0x 0001.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
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.
Furthermore, the present invention may take the form of a computer program product embodied on or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
It is to be understood that each flow and/or block in 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 which can 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 flow diagram 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.
Having thus described the preferred embodiments of the present invention, additional variations and modifications of these embodiments may occur to those skilled in the art from the basic inventive concepts .
Finally, it should also be noted that, in this document, relational terms such as , second, and the like are only used to distinguish entities or operations from another entities or operations, without necessarily requiring or implying any actual relationship or order between such entities or operations, furthermore, the terms "comprise", "include", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises the family of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or terminal.
The message transmission methods, terminals, gateway devices, electronic devices and storage media provided by the present invention are introduced in detail, and specific examples are applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understand the method and the core idea of the present invention, meanwhile, for persons in the art, there are changes in the specific implementation and the application scope according to the idea of the present invention, and in conclusion, the content of the present description should not be understood as a limitation to the present invention.

Claims (12)

1, message transmission method, characterized in that, the method includes:
, the terminal reports the terminal information to the gateway device;
the terminal receives th tunnel information corresponding to the terminal issued by the gateway device, wherein the th tunnel information is acquired by the gateway device after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal and issued to the th terminal, the th tunnel information comprises terminal information of the second terminal, and the terminal information comprises a video networking MAC address;
the terminal sends a call request to the second terminal, and after the call is successful, the video networking tunnel between the terminal and the second terminal is established according to the tunnel information and second tunnel information corresponding to the second terminal, wherein the second tunnel information is acquired and issued to the second terminal after the gateway equipment finds the second terminal waiting for the video networking tunnel to be established with the terminal;
and after the terminal acquires the video networking message to be transmitted to the second terminal, replacing the target video networking MAC address in the video networking message with the video networking MAC address of the second terminal, and transmitting the replaced video networking message to the second terminal by using the video networking tunnel.
2. The method of claim 1, wherein the terminal information further comprises an Internet of view number, the tunnel information further comprises a second Internet of view sub-number corresponding to the second terminal and associated with the terminal, and a Internet of view sub-number corresponding to the terminal and associated with the second terminal, and the transmitting the replaced Internet of view message to the second terminal using the Internet of view tunnel comprises:
and the terminal transmits the replaced video networking message to the port corresponding to the second video networking sub-number on the second terminal through the port corresponding to the video networking sub-number on the terminal according to the video networking MAC address of the second terminal, the video networking number of the second terminal and the second video networking sub-number.
3. The method according to claim 1, wherein the video network packet is a video network packet encapsulated with an internet packet based on a video network protocol, and the destination video network MAC address is a video network MAC address of a video network server.
4, message transmission method, characterized in that, the method includes:
the gateway equipment receives own terminal information reported by the th terminal;
after finding a second terminal waiting for establishment of a video networking tunnel with the th terminal, the gateway device obtains th tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal, issues the th tunnel information to the th terminal, and issues the second tunnel information to the second terminal;
wherein the th tunnel information and the second tunnel information are used as a basis for establishing a video networking tunnel between the th terminal and the second terminal.
5. The method of claim 4, wherein the step of obtaining tunnel information corresponding to the th terminal and second tunnel information corresponding to the second terminal comprises:
allocating a corresponding th video network sub-number associated with the second terminal to the th terminal, allocating a corresponding second video network sub-number associated with the th terminal to the second terminal, and allocating conversation roles to the th terminal and the second terminal;
acquiring terminal information of the second terminal, a second video network sub-number corresponding to the second terminal and associated with the terminal, a video network sub-number corresponding to the terminal and associated with the second terminal, and a call role of the terminal, wherein the terminal information of the second terminal, the second video network sub-number corresponding to the second terminal, and the call role are used as tunnel information corresponding to the th terminal and the second terminal;
and acquiring the terminal information of the th terminal, the th video network sub-number corresponding to the th terminal and associated with the second terminal, the second video network sub-number corresponding to the th terminal and the call role of the second terminal as second tunnel information corresponding to the second terminal.
6. The method as claimed in claim 5, wherein the step of assigning the corresponding nd internet of view sub-number associated with the second terminal to the th terminal, assigning the corresponding second internet of view sub-number associated with the th terminal to the second terminal, and assigning a call role to the th terminal and the second terminal comprises:
selecting video network sub-numbers which are not allocated to the terminal from a plurality of preset video network sub-numbers as video network sub-numbers which correspond to the terminal and are associated with the second terminal, selecting video network sub-numbers which are not allocated to the second terminal from a plurality of preset video network sub-numbers as second video network sub-numbers which correspond to the terminal and are associated with the second terminal;
and allocating the conversation role as a calling party to the th terminal, and allocating the conversation role as a called party to the second terminal.
7, th terminal, characterized in that, the terminal is th terminal, the th terminal includes:
the reporting module is used for reporting the terminal information of the reporting module to the gateway equipment;
an receiving module, configured to receive th tunnel information corresponding to the th terminal sent by the gateway device, where the th tunnel information is obtained by the gateway device after finding a second terminal that waits for establishment of a video networking tunnel with the th terminal, and is sent to the th terminal, where the th tunnel information includes terminal information of the second terminal, and the terminal information includes a video networking MAC address;
the establishing module is used for sending a call request to the second terminal, and after the call is successful, establishing the video networking tunnel between the terminal and the second terminal according to the th tunnel information and second tunnel information corresponding to the second terminal, wherein the second tunnel information is acquired by the gateway equipment after finding the second terminal waiting for establishing the video networking tunnel with the terminal and is sent to the second terminal;
and the transmission module is used for replacing a target video network MAC address in the video network message with the video network MAC address of the second terminal after the video network message to be transmitted to the second terminal is acquired, and transmitting the replaced video network message to the second terminal by using the video network tunnel.
A gateway device of the type , comprising:
the second receiving module is used for receiving the own terminal information reported by the th terminal;
an obtaining module, configured to obtain th tunnel information corresponding to the th terminal and second tunnel information corresponding to a second terminal after finding that the second terminal waiting for establishment of the video networking tunnel with the th terminal exists;
the issuing module is configured to issue the th tunnel information to the th terminal, and issue the second tunnel information to the second terminal;
wherein the th tunnel information and the second tunnel information are used as a basis for establishing a video networking tunnel between the th terminal and the second terminal.
An electronic device of the type , comprising:
or more processors, and
or more machine readable media having instructions stored thereon, which when executed by the or more processors, cause the processors to perform the message transmission method of any of claims 1-3 .
10, electronic device, comprising:
or more processors, and
or more machine readable media having instructions stored thereon, which when executed by the or more processors, cause the processors to perform the message transmission method of any of claims 4-6 and .
A computer-readable storage medium , having stored thereon a computer program which, when executed by a processor, carries out a message transmission method according to any of claims 1 to 3 through .
12, computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the message transmission method according to any of claims 4 to 6 to .
CN201910883641.9A 2019-09-18 2019-09-18 Message transmission method, terminal, gateway device, electronic device and storage medium Active CN110740087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910883641.9A CN110740087B (en) 2019-09-18 2019-09-18 Message transmission method, terminal, gateway device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910883641.9A CN110740087B (en) 2019-09-18 2019-09-18 Message transmission method, terminal, gateway device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110740087A true CN110740087A (en) 2020-01-31
CN110740087B CN110740087B (en) 2021-01-08

Family

ID=69268195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910883641.9A Active CN110740087B (en) 2019-09-18 2019-09-18 Message transmission method, terminal, gateway device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110740087B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405018A (en) * 2020-03-10 2020-07-10 创新奇智(上海)科技有限公司 File transmission method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881916A (en) * 2005-06-17 2006-12-20 腾讯科技(深圳)有限公司 Method and apparatus for realizing communication between communication equipments
CN101248647A (en) * 2005-05-23 2008-08-20 艾利森电话股份有限公司 Method and system for local peer-to-peer communication traffic
CN101964785A (en) * 2010-09-19 2011-02-02 中兴通讯股份有限公司 Method, terminal and system for transmitting file between SIP (Session Initiation Protocol) terminals in NAT (Network Address Translation) network
CN105933198A (en) * 2016-04-21 2016-09-07 浙江宇视科技有限公司 Device for establishing direct connection VPN tunnel
CN109120491A (en) * 2017-06-22 2019-01-01 格局商学教育科技(深圳)有限公司 It is a kind of for establishing the method and system of direct-connected vpn tunneling in net work teaching system
CN109889420A (en) * 2019-01-29 2019-06-14 视联动力信息技术股份有限公司 Method and device for business processing
CN110099025A (en) * 2018-01-29 2019-08-06 北京视联动力国际信息技术有限公司 A kind of call method and device based on view networking
CN110138631A (en) * 2019-03-25 2019-08-16 视联动力信息技术股份有限公司 The method for detecting connectivity and terminal device in a kind of view networking tunnel

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101248647A (en) * 2005-05-23 2008-08-20 艾利森电话股份有限公司 Method and system for local peer-to-peer communication traffic
CN1881916A (en) * 2005-06-17 2006-12-20 腾讯科技(深圳)有限公司 Method and apparatus for realizing communication between communication equipments
CN101964785A (en) * 2010-09-19 2011-02-02 中兴通讯股份有限公司 Method, terminal and system for transmitting file between SIP (Session Initiation Protocol) terminals in NAT (Network Address Translation) network
CN105933198A (en) * 2016-04-21 2016-09-07 浙江宇视科技有限公司 Device for establishing direct connection VPN tunnel
CN109120491A (en) * 2017-06-22 2019-01-01 格局商学教育科技(深圳)有限公司 It is a kind of for establishing the method and system of direct-connected vpn tunneling in net work teaching system
CN110099025A (en) * 2018-01-29 2019-08-06 北京视联动力国际信息技术有限公司 A kind of call method and device based on view networking
CN109889420A (en) * 2019-01-29 2019-06-14 视联动力信息技术股份有限公司 Method and device for business processing
CN110138631A (en) * 2019-03-25 2019-08-16 视联动力信息技术股份有限公司 The method for detecting connectivity and terminal device in a kind of view networking tunnel

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405018A (en) * 2020-03-10 2020-07-10 创新奇智(上海)科技有限公司 File transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110740087B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN109996086B (en) Method and device for inquiring service state of video networking
CN109474715B (en) Resource configuration method and device based on video network
CN110035005B (en) Data processing method and device
CN110022295B (en) Data transmission method and video networking system
CN109818960B (en) Data processing method and device
CN111193767B (en) Request data sending method and device and clustered server system
CN110557319B (en) Message processing method and device based on video network
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110266577B (en) Tunnel establishment method and video networking system
CN110417792B (en) Communication method, system, gateway device and storage medium
CN109889516B (en) Method and device for establishing session channel
CN109862439B (en) Data processing method and device
CN109861929B (en) Data caching processing method and device
CN110740087B (en) Message transmission method, terminal, gateway device, electronic device and storage medium
CN110493311B (en) Service processing method and device
CN110557669B (en) Video data display method and device
CN110233872B (en) Data transmission method based on video network and video network terminal
CN110177244B (en) Method and system for polling conference terminal
CN109788231B (en) Video telephone service processing method and device
CN109495709B (en) Video network management system and method
CN109451030B (en) Method and system for downloading video network file
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
CN112511787A (en) Conference implementation method, device, equipment and readable storage medium
CN111835717A (en) Monitoring code stream obtaining method and device and readable storage medium

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