CN110417792B - Communication method, system, gateway device and storage medium - Google Patents

Communication method, system, gateway device and storage medium Download PDF

Info

Publication number
CN110417792B
CN110417792B CN201910712646.5A CN201910712646A CN110417792B CN 110417792 B CN110417792 B CN 110417792B CN 201910712646 A CN201910712646 A CN 201910712646A CN 110417792 B CN110417792 B CN 110417792B
Authority
CN
China
Prior art keywords
message
internet
video
video networking
port
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
CN201910712646.5A
Other languages
Chinese (zh)
Other versions
CN110417792A (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 CN201910712646.5A priority Critical patent/CN110417792B/en
Publication of CN110417792A publication Critical patent/CN110417792A/en
Application granted granted Critical
Publication of CN110417792B publication Critical patent/CN110417792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

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

Abstract

The invention provides a communication method, a communication system, gateway equipment and a storage medium. The communication method comprises the following steps: if the gateway equipment receives a first video networking message sent by a video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet; if the gateway equipment receives a second internet message from the internet, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal; the video network terminal is in a non-video network environment. The invention carries out protocol conversion between the internet and the video network through the gateway equipment, thereby realizing that the video network terminal in the non-video network environment can also carry out communication through the internet, reducing the limitation of the video network terminal and widening the application range of the video network terminal.

Description

Communication method, system, gateway device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method, a communication system, a gateway device, and a storage medium.
Background
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other. The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
In the video network, the video network terminals need to communicate through the video network. However, the video network belongs to a private network, and generally covers the internet in an area such as a home, and the video network terminal cannot be used for communication in the internet environment, so that the use limitation of the video network terminal is large, and the popularization and use of the video network terminal are influenced.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a communication method, system, gateway device and storage medium that overcome or at least partially solve the above-mentioned problems.
In a first aspect, an embodiment of the present invention discloses a communication method, which is applied to a communication system, where the communication system includes a video networking terminal and a gateway device, and the video networking terminal is in a non-video networking environment; the method comprises the following steps:
if the gateway equipment receives a first video networking message sent by the video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet;
and if the gateway equipment receives a second internet message from the internet, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal.
In a second aspect, the embodiment of the invention discloses a communication method, which is applied to a communication system, wherein the communication system comprises a video networking terminal, a first gateway device, a second gateway device and a video networking server, and the video networking terminal is in a non-video networking environment; the method comprises the following steps:
if the first gateway equipment receives a first video networking message sent by the video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message to the second gateway equipment through the internet;
if the second gateway equipment receives the first internet message, deleting the first socket information in the first internet message to obtain a first video networking message, and sending the first video networking message to the video networking server;
if the second gateway equipment receives a second video networking message sent by the video networking server, adding second socket information to the second video networking message to obtain a second internet message, and sending the second internet message to the first gateway equipment through the internet;
and if the first gateway equipment receives the second internet message, deleting the second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal.
Optionally, the first socket information includes an IP address and a port number of the second gateway device; the second socket information includes an IP address and a port number of the first gateway device.
Optionally, the first gateway device comprises a first video networking port and a first internet port; the method further comprises the following steps: the first gateway device creates a first port monitoring thread and initializes the first port monitoring thread; the first gateway equipment starts the first port monitoring thread, monitors that the first video network port receives video network messages respectively, and the first internet port receives internet messages.
Optionally, the step of initializing the first port listening thread includes: configuring an IP address and a port number of the second gateway device for the first Internet port; and configuring the MAC address and the port number of the video network terminal aiming at the first video network port.
Optionally, the second gateway device comprises a second video networking port and a second internet port; the method further comprises the following steps: the second gateway device creates a second port monitoring thread and initializes the second port monitoring thread; and the second gateway equipment starts the second port monitoring thread, monitors the second video networking port to receive video networking messages respectively, and receives the internet messages through the second internet port.
Optionally, the step of initializing the second port listening thread includes: configuring, for the second video networking port, a video networking MAC address and port number of the video networking server.
In a third aspect, an embodiment of the present invention discloses a gateway device, including:
the first conversion module is used for adding first socket information to a first video network message to obtain the first internet message if the first video network message sent by a video network terminal is received, and sending the first internet message through the internet;
the second conversion module is used for deleting second socket information in a second internet message to obtain a second video network message and sending the second video network message to the video network terminal if the second internet message from the internet is received;
wherein the video network terminal is in a non-video network environment.
In a fourth aspect, an embodiment of the present invention discloses a communication system, where the communication system includes a video networking terminal, a first gateway device, a second gateway device, and a video networking server, and the video networking terminal is in a non-video networking environment;
the first gateway device includes: the first conversion processing module is used for adding first socket information to a first video networking message to obtain a first internet message if the first video networking message sent by the video networking terminal is received, and sending the first internet message to the second gateway equipment through the internet;
the second gateway device includes: the second conversion processing module is used for deleting the first socket information in the first internet message to obtain the first video network message and sending the first video network message to the video network server if the first internet message is received; the third conversion processing module is used for adding second socket information to a second video network message to obtain a second internet message if the second video network message sent by the video network server is received, and sending the second internet message to the first gateway equipment through the internet;
the first gateway device further comprises: and the fourth conversion processing module is used for deleting the second socket information in the second internet message to obtain a second video network message and sending the second video network message to the video network terminal if the second internet message is received.
In a fifth aspect, an embodiment of the present invention discloses a gateway device, including: one or more processors; and one or more machine-readable media having instructions stored thereon; the instructions, when executed by the one or more processors, cause the processors to perform the steps of:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal;
wherein the video network terminal is in a non-video network environment.
In a sixth aspect, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the following steps:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal;
wherein the video network terminal is in a non-video network environment.
In the embodiment of the invention, the communication system comprises the video networking terminal and the gateway equipment, and the video networking terminal is in a non-video networking environment. During communication, if the gateway equipment receives a first video networking message sent by a video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet; and if the gateway equipment receives a second internet message from the internet, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal. Therefore, in the embodiment of the invention, the protocol conversion between the internet and the video network is performed through the gateway device, so that the video network terminal in the non-video network environment can also communicate through the internet, the limitation of the video network terminal is reduced, and the application range of the video network terminal is widened.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flowchart illustrating steps of a communication method according to a first embodiment of the present invention;
fig. 6 is an architecture diagram of a communication system according to a second embodiment of the present invention;
fig. 7 is a flowchart illustrating steps of a communication method according to a second embodiment of the present invention;
fig. 8 is a flowchart of steps of a communication method according to a third embodiment of the present invention;
fig. 9 is a schematic processing diagram of a port snoop thread according to a third embodiment of the present invention;
fig. 10 is a block diagram of a gateway device according to a fourth embodiment of the present invention;
fig. 11 is a block diagram of a communication system according to a fifth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Example one
The communication system of the embodiment of the invention can comprise a video networking terminal and a gateway device, wherein the video networking terminal is in a non-video networking environment. The non-video networking environment may be an Internet environment, such as an IP (Internet Protocol ) network.
The embodiment of the invention mainly solves the technical problem of how to realize the communication of the video networking terminal in the non-video networking environment. By arranging the gateway equipment, the gateway equipment can realize protocol conversion between the video networking protocol and the Internet protocol, thereby realizing the fusion of the video networking and the Internet.
The video network terminal can be various conference set-top boxes, video telephone set-top boxes, operation teaching set-top boxes and the like. The gateway device may be a VPN-Hub (Virtual Private Network-Hub, VHub for short), a CPE (Customer Premise Equipment), or the like.
Referring to fig. 5, a flowchart illustrating steps of a communication method according to a first embodiment of the present invention is shown.
The communication method of the embodiment of the invention can comprise the following steps:
step 501, if receiving a first video networking message sent by the video networking terminal, the gateway device adds first socket information to the first video networking message to obtain a first internet message, and sends the first internet message through the internet.
The gateway equipment is directly connected with the video networking terminal through a network cable, and the video networking terminal can send a first video networking message to the gateway equipment. Because the gateway device accesses the internet, the gateway device converts the first video network message into a first internet message, and then sends the first internet message out through the internet. Therefore, the purpose of sending the video networking message of the video networking terminal through the Internet is achieved.
In an alternative embodiment, the gateway device may communicate in the internet in a socket manner. Thus, the step of the gateway device converting the first video network message into the first internet message may comprise: and adding first socket information to the first video network message to obtain the first internet message. The first socket information may include an IP address and a port number of a target device to which the gateway device is to send the first internet packet, and the first internet packet may be transmitted to the target device as a payload in the first internet packet according to the IP address and the port number of the target device.
Step 502, if the gateway device receives a second internet message from the internet, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal.
If the device in the internet wants to send the second internet message to the video network terminal, the device firstly sends the first internet message to the gateway device connected with the video network terminal based on the internet. If the gateway equipment receives a second internet message from the internet, the gateway equipment converts the second internet message into a second video network message and then sends the second video network message to the video network terminal. Therefore, the purpose of sending the video networking message carried in the Internet message from the Internet to the video networking terminal is achieved.
In an alternative embodiment, the device in the internet may send the second internet message to the gateway device through a socket. Thus, the step of the gateway device converting the second internet message to the second video network message may comprise: and deleting the second socket information in the second Internet message to obtain a second video networking message. The second socket information may include an IP address and a port number of the gateway device, and the device in the internet may transmit the second internet packet carrying the second video packet as a load to the gateway device according to the IP address and the port number of the gateway device.
In the embodiment of the invention, the protocol conversion between the Internet and the video network is carried out through the gateway equipment, so that the video network terminal in a non-video network environment can also communicate through the Internet, the limitation of the video network terminal is reduced, and the application range of the video network terminal is widened.
Example two
In the video network, various video network services are uniformly managed by a video network server. Various devices for carrying out the video network service are registered in the video network server to carry out normal service. After the successful registration, the video network server allocates information such as a video network number, a Media Access Control (MAC) address, and the like to the registered device. The internet of view server itself also has an internet of view MAC address.
In the embodiment of the invention, in order to enable the video network terminal to access the video network server in the internet environment, the first gateway equipment and the second gateway equipment are arranged between the video network terminal and the video network server. Referring to fig. 6, an architecture diagram of a communication system according to a second embodiment of the present invention is shown. As can be seen from fig. 6, the video networking terminal is connected to the first gateway device, the video networking server is connected to the second gateway device, and both the first gateway device and the second gateway device access the internet. The first gateway device may access the internet through a network cable. The second gateway equipment can access the Internet through the switch, and a firewall is arranged between the switch and the second gateway equipment. The first gateway device and the second gateway device communicate via the internet.
The video network terminal, the first gateway equipment and the second gateway equipment can be registered in a video network server, and the video network server distributes information such as a video network number and a video network MAC address for the registered video network terminal, first gateway equipment and second gateway equipment. The first gateway device is used as the gateway device of the client, and the second gateway device is used as the gateway device of the server.
Referring to fig. 7, a flowchart illustrating steps of a communication method according to a second embodiment of the present invention is shown.
The communication method of the embodiment of the invention can comprise the following steps:
step 701, if the first gateway device receives a first video networking message sent by the video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message to the second gateway device through the internet.
The first gateway equipment is directly connected with the video networking terminal through a network cable, and the video networking terminal can send a first video networking message to the first gateway equipment. Since the first gateway device communicates with the second gateway device via the internet, the first gateway device converts the first video network packet into a first internet packet, and then sends the first internet packet to the second gateway device via the internet.
In an alternative embodiment, the first gateway device and the second gateway device may communicate with each other through a socket. Thus, the step of converting the first video network message to a first internet message may comprise: and adding first socket information to the first video network message to obtain the first internet message. The first socket information comprises an IP address and a port number of the second gateway device, and the first video network message can be transmitted to the second gateway device as a load according to the IP address and the port number of the second gateway device.
Step 702, if the second gateway device receives the first internet message, deleting the first socket information in the first internet message to obtain the first video network message, and sending the first video network message to the video network server.
The second gateway device may receive the first internet packet sent by the first gateway device via the internet. The second gateway device communicates with the video network server through the video network, so that the second gateway device also converts the first internet message into the first video network message again, and then sends the first video network message to the video network server through the video network.
In an alternative embodiment, the step of converting the first internet message into the first video internet message may comprise: and deleting the first socket information in the first internet message to obtain the first video internet message.
Steps 701 and 702 enable communication from the video network terminal to the video network server.
Step 703, if the second gateway device receives a second video networking message sent by the video networking server, adding second socket information to the second video networking message to obtain a second internet message, and sending the second internet message to the first gateway device through the internet.
The second gateway device may send the second video networking message to the video networking server. Since the second gateway device communicates with the first gateway device via the internet, the second gateway device converts the second video network packet into a second internet packet, and then sends the second internet packet to the first gateway device via the internet.
In an alternative embodiment, the second gateway device and the first gateway device may communicate with each other through a socket. Thus, the step of converting the second video network message to a second internet message may comprise: and adding second socket information to the second video network message to obtain the second internet message. The second socket information includes the IP address and port number of the first gateway device, and the second video network packet can be transmitted to the first gateway device as a kind of load according to the IP address and port number of the first gateway device.
Step 704, if the first gateway device receives the second internet message, the second gateway device deletes the second socket information in the second internet message to obtain the second video network message, and sends the second video network message to the video network terminal.
The first gateway device may receive, via the internet, a second internet message sent by the second gateway device. The first gateway device also converts the second internet message into a second video network message again, and then sends the second video network message to the video network terminal.
In an alternative embodiment, the step of converting a second internet message into the second video internet message may include: and deleting the second socket information in the second internet message to obtain the second video internet message.
Step 703 and step 704 enable communication from the video network server to the video network terminal.
In the embodiment of the invention, the first gateway equipment and the second gateway equipment are used as a bridge between the video networking terminal and the video networking server, and the first gateway equipment and the second gateway equipment can interact through the Internet, so that data interacted between the video networking terminal and the video networking server can be transmitted through the Internet, and the video networking terminal can be used for accessing the video networking server in the Internet environment, thereby reducing the limitation of the video networking terminal and widening the application range of the video networking terminal.
EXAMPLE III
Referring to fig. 8, a flowchart of steps of a communication method according to a third embodiment of the present invention is shown.
The communication method of the embodiment of the invention can comprise the following steps:
step 801, a first gateway device creates a first port listening thread and initializes the first port listening thread.
The first gateway device includes two network ports, a first video networking port and a first internet port. The first gateway equipment is communicated with the video networking terminal through the first video networking port and is connected with the Internet through the first Internet port.
A first port listening thread may be created in the first gateway device, which may be used to listen to the first video networking port and the first internet port. The first gateway device may create a first port listening thread upon startup.
The first gateway equipment initializes the first port listening thread. The step of initializing may include: configuring an IP address and a port number of the second gateway device for the first Internet port; and configuring the MAC address and the port number of the video network terminal aiming at the first video network port. The first gateway device communicates with the second gateway device through the first internet port based on the internet, and thus configures an IP address and a port number of the second gateway device for the first internet port. The first gateway device communicates with the video network terminal through the first video network port, and therefore the video network MAC address and port number of the video network terminal are configured for the first video network port.
Step 802, the second gateway device creates a second port listening thread and initializes the second port listening thread.
The second gateway device includes two network ports, a second video networking port and a second internet port, respectively. The second gateway device communicates with the video networking server through a second video networking port and is connected to the internet through a second internet port.
A second port listening thread may be created in the second gateway device, which may be used to listen to the second video networking port and the second internet port. The second gateway device may create a second port listening thread upon startup.
And the second gateway equipment initializes the second port monitoring thread. The step of initializing may include: configuring, for the second video networking port, a video networking MAC address and port number of the video networking server. The second gateway device communicates with the first gateway device through a second internet port based on the internet, the first gateway device belongs to the client, and the second gateway device belongs to the server, so that the first gateway device is actively connected with the second gateway device, and the second gateway device does not need to configure the IP address and the port number of the first gateway device in advance. The second gateway device communicates with the video networking server through the second video networking port, thus configuring the video networking server's video networking MAC address and port number for the second video networking port.
The execution sequence of the above steps 801 and 802 is not limited in the embodiment of the present invention.
Step 803, the first gateway device starts the first port monitoring thread, and monitors that the first video network port receives the video network messages, and the first internet port receives the internet messages.
The first gateway device may start the first port listening thread after creating the first port listening thread, may also start the first port listening thread after detecting connection with the video networking terminal, and so on. The first port monitoring thread can monitor whether the first video network port receives the video network message and whether the first internet port receives the internet message respectively.
Step 804, the second gateway device starts the second port monitoring thread, and monitors that the second video networking port receives the video networking message, and the second internet port receives the internet message.
The second gateway device may start the second port listening thread after creating the second port listening thread, may start the second port listening thread after detecting a connection with the video networking server, and so on. The second port listening thread may listen to whether the second video network port receives the video network packet and whether the second internet port receives the internet packet, respectively.
In the embodiment of the present invention, the execution sequence of the step 803 and the step 804 is not limited.
Step 805, if the first gateway device monitors that the first video networking port receives the first video networking message sent by the video networking terminal, the first gateway device adds first socket information to the first video networking message to obtain a first internet message, and sends the first internet message to the second gateway device through the first internet port based on the internet.
When the video network terminal wants to send data to the video network server, the data may be encapsulated into a first video network message based on a video network protocol, and the first video network message is sent to a first video network port of the first gateway device. The first video network message may carry a video network MAC address of the video network server, indicating that the first video network message is a video network message to be sent to the video network server.
After receiving the first video network message, the first video network port of the first gateway device puts the first video network message into a ring queue corresponding to the first port monitoring thread. If the first port monitoring thread monitors that the first video networking port receives the first video networking message sent by the video networking terminal, namely the first video networking message exists in the annular queue, the first video networking message is taken out of the annular queue, and first socket information is added to the first video networking message to obtain the first internet message. The first gateway device sends the first internet message to the second gateway device through the first internet port based on the internet.
Step 806, if the second gateway device monitors that the second internet port receives the first internet message, the second gateway device deletes the first socket information in the first internet message to obtain the first video network message, and sends the first video network message to the video network server through the second video network port.
And after receiving the first internet message, the second internet port of the second gateway equipment is put into the annular queue corresponding to the second port monitoring thread. And if the second port monitoring thread monitors that the second internet port receives the first internet message, namely the first internet message exists in the ring queue, the second port monitoring thread takes out the first internet message from the ring queue, deletes the first socket information in the first internet message, and obtains the first video network message. And the second gateway equipment sends the first video networking message to the video networking server through the second video networking port.
In an optional implementation manner, before the first video network message is sent to the video network server, the first video network message may be further analyzed, whether the first video network message carries a video network MAC address of the video network server is determined, and if the first video network message carries the video network MAC address of the video network server, it is determined that the first video network message is the video network message to be sent to the video network server. Therefore, when the first video networking message is judged to carry the video networking MAC address of the video networking server, the first video networking message is sent to the video networking server. Otherwise, filtering out the first video network message.
In step 807, if the second gateway device monitors that the second video networking port receives the second video networking message sent by the video networking server, the second gateway device adds second socket information to the second video networking message to obtain a second internet message, and sends the second internet message to the first gateway device through the second internet port based on the internet.
When the video network server wants to send data to the video network terminal, the data may be encapsulated into a second video network message based on the video network protocol, and the second video network message is sent to a second video network port of the second gateway device. The second video network message may carry the video network MAC address of the video network terminal, indicating that the second video network message is a video network message to be sent to the video network terminal.
And after receiving the second video network message, the second video network port of the second gateway device is placed into the ring queue corresponding to the second port monitoring thread. And if the second port monitoring thread monitors that the second video networking port receives a second video networking message sent by the video networking server, namely the second video networking message exists in the annular queue, the second video networking message is taken out of the annular queue, and second socket information is added to the second video networking message to obtain the second internet message. And the second gateway equipment transmits the second internet message to the first gateway equipment through the second internet port based on the internet.
Step 808, if the first gateway device monitors that the first internet port receives the second internet message, deleting the second socket information in the second internet message to obtain the second video networking message, and sending the second video networking message to the video networking terminal through the first video networking port.
And after receiving the second internet message, the first internet port of the first gateway equipment is placed into the annular queue corresponding to the first port monitoring thread. And if the first port monitoring thread monitors that the first internet port receives the second internet message, namely the second internet message exists in the annular queue, the first port monitoring thread takes out the second internet message from the annular queue, deletes the second socket information in the second internet message, and obtains the second video networking message. And the first gateway equipment sends the second video networking message to the video networking terminal through the first video networking port.
In an optional implementation manner, before the second video network message is sent to the video network terminal, the second video network message may be further analyzed, whether the second video network message carries the video network MAC address of the video network terminal is determined, and if the second video network message carries the video network MAC address of the video network terminal, it is determined that the second video network message is the video network message to be sent to the video network terminal. Therefore, when the second video network message is judged to carry the video network MAC address of the video network terminal, the second video network message is sent to the video network terminal. Otherwise, filtering out the second video network message.
Step 809, when the first gateway device is restarted, releasing the first port listening thread.
The first gateway device needs to be restarted when a problem occurs or the user reconfigures. The first port listening thread may be released upon restart.
Step 810, when the second gateway device is restarted, releasing the second port listening thread.
The second gateway device needs to be restarted after a problem occurs. The second port listening thread may be released upon restart.
In the embodiment of the present invention, the execution sequence of the step 809 and the step 810 is not limited.
In summary, in the embodiments of the present invention, the processing is mainly performed by the port snoop thread. Fig. 9 is a schematic processing diagram of a port snoop thread according to a third embodiment of the present invention. Fig. 9 illustrates an example in which the gateway device is a Vhub. As shown in fig. 9, the processing procedure includes: creating a Vhub instance (namely creating a Vhub port listening thread), wherein a corresponding statement is VmsVHub _ init; opening a port monitoring thread, wherein a corresponding statement is Connect _ startThread; performing protocol conversion in the port monitoring thread, converting the video networking message into an internet message, and converting the internet message into the video networking message; the snoop handle (i.e., the port snoop thread) is released, and the corresponding statement is Vms _ store. Both the first gateway device and the second gateway device may perform processing by using the flow shown in fig. 9, and the specific process may refer to the above description of fig. 8.
The embodiment of the invention can apply the video network terminal to small-range areas such as families and the like, can also access the video network server without arranging a special line, and widens the sales range of the video network terminal.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
Referring to fig. 10, a block diagram of a gateway device according to a fourth embodiment of the present invention is shown.
The gateway apparatus 100 includes:
the first conversion module 1001 is configured to, if a first video networking message sent by a video networking terminal is received, add first socket information to the first video networking message to obtain a first internet message, and send the first internet message through the internet.
The second conversion module 1002 is configured to delete the second socket information in the second internet message to obtain a second video network message if the second internet message from the internet is received, and send the second video network message to the video network terminal.
Wherein, the video network terminal is in the non-video network environment.
In the embodiment of the invention, the protocol conversion between the Internet and the video network is carried out through the gateway equipment, so that the video network terminal in a non-video network environment can also communicate through the Internet, the limitation of the video network terminal is reduced, and the application range of the video network terminal is widened.
EXAMPLE five
Referring to fig. 11, a block diagram of a communication system according to a fifth embodiment of the present invention is shown. The communication system includes a video networking terminal 1101, a first gateway device 1102, a second gateway device 1103, and a video networking server 1104. The video networking terminal 1101 is in a non-video networking environment.
The first gateway device 1102 includes: a first conversion processing module 11021, configured to, if a first video networking message sent by the video networking terminal is received, add first socket information to the first video networking message to obtain a first internet message, and send the first internet message to the second gateway device through the internet.
The second gateway device 1103 includes: a second conversion processing module 11031, configured to delete the first socket information in the first internet message if the first internet message is received, to obtain the first video network message, and send the first video network message to the video network server; a third conversion processing module 11032, configured to, if a second video networking message sent by the video networking server is received, add second socket information to the second video networking message to obtain a second internet message, and send the second internet message to the first gateway device through the internet.
The first gateway device 1102 further includes: a fourth conversion processing module 11022, configured to delete the second socket information in the second internet message if the second internet message is received, to obtain the second video network message, and send the second video network message to the video network terminal.
In an optional embodiment, the first socket information comprises an IP address and a port number of the second gateway device.
In an optional embodiment, the second socket information comprises an IP address and a port number of the first gateway device.
In an optional implementation, the second gateway device 1103 further includes: the first judgment module is used for analyzing the first video network message and judging whether the first video network message carries a video network MAC address of the video network server or not; the second conversion processing module is specifically configured to send the first video networking message to the video networking server when it is determined that the first video networking message carries the video networking MAC address of the video networking server.
In an optional implementation, the first gateway device 1102 further includes: the second judgment module is used for analyzing the second video network message and judging whether the second video network message carries the video network MAC address of the video network terminal; the fourth conversion processing module is specifically configured to send the second video network message to the video network terminal when it is determined that the second video network message carries the video network MAC address of the video network terminal.
In an alternative embodiment, the first gateway device 1102 includes a first video networking port and a first internet port; the first gateway device 1102 further comprises: the first establishing module is used for establishing a first port monitoring thread and initializing the first port monitoring thread; and the first monitoring module is used for starting the first port monitoring thread, respectively monitoring that the first video networking port receives video networking messages, and the first internet port receives internet messages.
In an alternative embodiment, the first creating module includes: a first configuration unit, configured to configure an IP address and a port number of the second gateway device for the first internet port; and configuring the MAC address and the port number of the video network terminal aiming at the first video network port.
In an optional implementation, the first gateway device 1102 further includes: and the first releasing module is used for releasing the first port monitoring thread when the device is restarted.
In an alternative embodiment, the second gateway device 1103 includes a second video networking port and a second internet port; the second gateway device 1103 further includes: the second establishing module is used for establishing a second port monitoring thread and initializing the second port monitoring thread; and the second monitoring module is used for starting the second port monitoring thread, respectively monitoring that the second video networking port receives video networking messages, and the second internet port receives internet messages.
In an alternative embodiment, the second creating module includes: and the second configuration unit is used for configuring the MAC address and the port number of the video network server aiming at the second video network port.
In an optional implementation, the second gateway device 1103 further includes: and the second releasing module is used for releasing the second port monitoring thread when the system is restarted.
In the embodiment of the invention, the first gateway equipment and the second gateway equipment are used as a bridge between the video networking terminal and the video networking server, and the first gateway equipment and the second gateway equipment can interact through the Internet, so that data interacted between the video networking terminal and the video networking server can be transmitted through the Internet, and the video networking terminal can be used for accessing the video networking server in the Internet environment, thereby reducing the limitation of the video networking terminal and widening the application range of the video networking terminal.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In the embodiment of the invention, the invention also provides gateway equipment. The gateway device may include one or more processors and one or more machine-readable media having instructions, such as an application program, stored thereon. The instructions, when executed by the one or more processors, cause the processors to perform the steps of:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal;
wherein the video network terminal is in a non-video network environment.
In an embodiment of the invention, there is also provided a non-transitory computer readable storage medium, such as a memory including a computer program, storing the computer program, the program when executed by a processor implementing the steps of:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, and sending the first internet message through the internet;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal;
wherein the video network terminal is in a non-video network environment.
For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description of the communication method, system, gateway device and storage medium provided by the present invention, and the specific examples applied herein have been set forth to explain the principles and embodiments of the present invention, and the above descriptions of the embodiments are only used to help understand the method and its core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A communication method is applied to a communication system, the communication system comprises a video networking terminal and a gateway device, the video networking terminal is in a non-video networking environment, and the gateway device is accessed to the Internet; the method comprises the following steps:
if the gateway equipment receives a first video networking message sent by the video networking terminal, adding first socket information to the first video networking message to obtain a first internet message, wherein the first socket information comprises an IP address and a port number of target equipment to which the gateway equipment sends the first internet message, and transmitting the first video networking message to the target equipment as a load in the first internet message according to the IP address and the port number of the target equipment;
and if the gateway equipment receives a second internet message from the internet, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal, wherein the second socket information comprises the IP address and the port number of the gateway equipment.
2. A communication method is applied to a communication system, the communication system comprises an video networking terminal, a first gateway device, a second gateway device and a video networking server, the video networking terminal is in a non-video networking environment, and the first gateway device and the second gateway device communicate through the Internet; the method comprises the following steps:
if the first gateway equipment receives a first video network message sent by the video network terminal, adding first socket information to the first video network message to obtain a first internet message, and transmitting the first video network message to second gateway equipment as a load of the first internet message through the internet according to the IP address and the port number of the second gateway equipment, wherein the first socket information comprises the IP address and the port number of the second gateway equipment;
if the second gateway equipment receives the first internet message, deleting the first socket information in the first internet message to obtain a first video networking message, and sending the first video networking message to the video networking server;
if the second gateway equipment receives a second video networking message sent by the video networking server, adding second socket information to the second video networking message to obtain a second internet message, and sending the second internet message to the first gateway equipment through the internet, wherein the second socket information comprises an IP address and a port number of the first gateway equipment;
and if the first gateway equipment receives the second internet message, deleting the second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal.
3. The method of claim 2, wherein the first gateway device comprises a first video networking port and a first internet port; the method further comprises the following steps:
the first gateway device creates a first port monitoring thread and initializes the first port monitoring thread;
the first gateway equipment starts the first port monitoring thread, monitors that the first video network port receives video network messages respectively, and the first internet port receives internet messages.
4. The method of claim 3, wherein the step of initializing the first port listening thread comprises:
configuring an IP address and a port number of the second gateway device for the first Internet port;
and configuring the MAC address and the port number of the video network terminal aiming at the first video network port.
5. The method of claim 2, wherein the second gateway device comprises a second video networking port and a second internet port; the method further comprises the following steps:
the second gateway device creates a second port monitoring thread and initializes the second port monitoring thread;
and the second gateway equipment starts the second port monitoring thread, monitors the second video networking port to receive video networking messages respectively, and receives the internet messages through the second internet port.
6. The method of claim 5, wherein the step of initializing the second port listening thread comprises:
configuring, for the second video networking port, a video networking MAC address and port number of the video networking server.
7. A gateway device, comprising:
the first conversion module is used for adding first socket information to a first video network message to obtain the first internet message if the first video network message sent by a video network terminal is received, wherein the first socket information comprises an IP address and a port number of a target device to which the gateway device sends the first internet message, and the first video network message is transmitted to the target device as a load in the first internet message according to the IP address and the port number of the target device;
the second conversion module is used for deleting second socket information in a second internet message to obtain a second video networking message if the second internet message from the internet is received, and sending the second video networking message to the video networking terminal, wherein the second socket information comprises an IP address and a port number of the gateway equipment;
the video networking terminal is in a non-video networking environment, and the gateway equipment is accessed to the Internet.
8. A communication system is characterized by comprising an video network terminal, a first gateway device, a second gateway device and a video network server, wherein the video network terminal is in a non-video network environment, and the first gateway device and the second gateway device communicate through the Internet;
the first gateway device includes:
the first conversion processing module is used for adding first socket information to a first video network message to obtain a first internet message if the first video network message sent by the video network terminal is received, and transmitting the first video network message to second gateway equipment as a load of the first internet message according to an IP address and a port number of the second gateway equipment through the internet, wherein the first socket information comprises the IP address and the port number of the second gateway equipment;
the second gateway device includes:
the second conversion processing module is used for deleting the first socket information in the first internet message to obtain the first video network message and sending the first video network message to the video network server if the first internet message is received;
a third conversion processing module, configured to, if a second video networking message sent by the video networking server is received, add second socket information to the second video networking message to obtain a second internet message, and send the second internet message to the first gateway device through the internet, where the second socket information includes an IP address and a port number of the first gateway device;
the first gateway device further comprises:
and the fourth conversion processing module is used for deleting the second socket information in the second internet message to obtain a second video network message and sending the second video network message to the video network terminal if the second internet message is received.
9. A gateway device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon;
the instructions, when executed by the one or more processors, cause the processors to perform the steps of:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, wherein the first socket information comprises an IP address and a port number of a target device to which the gateway device sends the first internet message, and transmitting the first video networking message to the target device as a load in the first internet message according to the IP address and the port number of the target device;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal, wherein the second socket information comprises an IP address and a port number of the gateway equipment;
the video networking terminal is in a non-video networking environment, and the gateway equipment is accessed to the Internet.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
if a first video networking message sent by a video networking terminal is received, adding first socket information to the first video networking message to obtain a first internet message, and transmitting the first video networking message to second gateway equipment as a load of the first internet message through the internet according to the IP address and the port number of the second gateway equipment, wherein the first socket information comprises the IP address and the port number of the second gateway equipment;
if a second internet message from the internet is received, deleting second socket information in the second internet message to obtain a second video networking message, and sending the second video networking message to the video networking terminal, wherein the second socket information comprises an IP address and a port number of first gateway equipment;
wherein the video network terminal is in a non-video network environment.
CN201910712646.5A 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium Active CN110417792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712646.5A CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712646.5A CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Publications (2)

Publication Number Publication Date
CN110417792A CN110417792A (en) 2019-11-05
CN110417792B true CN110417792B (en) 2021-11-09

Family

ID=68365652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712646.5A Active CN110417792B (en) 2019-08-02 2019-08-02 Communication method, system, gateway device and storage medium

Country Status (1)

Country Link
CN (1) CN110417792B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031260B (en) * 2019-12-25 2024-05-28 普世(南京)智能科技有限公司 High-speed image unidirectional transmission system method and system based on annular lock-free queue
CN110995517B (en) * 2019-12-30 2022-10-28 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3876732B2 (en) * 2002-02-27 2007-02-07 株式会社日立製作所 Gateway device, gateway device address management method, and AV device having gateway function
CN101132293B (en) * 2007-08-24 2010-06-02 华为技术有限公司 Individual information processing method, system and device
CN104754406A (en) * 2013-12-31 2015-07-01 罗斯青 Method and device for playing Internet video and audio contents by use of IPTV set-top box
CN109194660B (en) * 2018-09-12 2021-05-28 视联动力信息技术股份有限公司 Network access method and device of mobile terminal
CN109818960B (en) * 2019-01-29 2021-07-09 视联动力信息技术股份有限公司 Data processing method and device
CN110035005B (en) * 2019-02-27 2021-07-09 视联动力信息技术股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN110417792A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN109617956B (en) Data processing method and device
CN109474715B (en) Resource configuration method and device based on video network
CN110035005B (en) Data processing method and device
CN110545395B (en) Video networking conference switching method and device
CN110191315B (en) Monitoring and checking method and device based on video network
CN110557319B (en) Message processing method and device based on video network
CN110266577B (en) Tunnel establishment method and video networking system
CN109347844B (en) Method and device for accessing equipment to Internet
CN109451001B (en) Communication method and system
CN110417792B (en) Communication method, system, gateway device and storage medium
CN110336710B (en) Terminal testing method, system and device and storage medium
CN110493149B (en) Message processing method and device
CN109889516B (en) Method and device for establishing session channel
CN109769012B (en) Web server access method and device
CN108881148B (en) Data acquisition method and device
CN111478940B (en) Data processing method and device
CN110808896B (en) Data transmission method and device, electronic equipment and storage medium
CN110798450B (en) Audio and video data processing method and device and storage medium
CN110493311B (en) Service processing method and device
CN110572367B (en) Method, system, server, device and storage medium for modifying terminal name
CN110098993B (en) Method and device for processing signaling message
CN110248134B (en) Method and device for controlling terminal, electronic equipment and storage medium
CN110445701B (en) Business object processing method and device and storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN109788231B (en) Video telephone service processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant