CN111464879A - Data communication method and device - Google Patents

Data communication method and device Download PDF

Info

Publication number
CN111464879A
CN111464879A CN202010125839.3A CN202010125839A CN111464879A CN 111464879 A CN111464879 A CN 111464879A CN 202010125839 A CN202010125839 A CN 202010125839A CN 111464879 A CN111464879 A CN 111464879A
Authority
CN
China
Prior art keywords
video networking
data
target
networking data
client
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
CN202010125839.3A
Other languages
Chinese (zh)
Other versions
CN111464879B (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 CN202010125839.3A priority Critical patent/CN111464879B/en
Publication of CN111464879A publication Critical patent/CN111464879A/en
Application granted granted Critical
Publication of CN111464879B publication Critical patent/CN111464879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • 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
    • 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/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6156Network physical structure; Signal processing specially adapted to the upstream path of the transmission network
    • H04N21/6175Network physical structure; Signal processing specially adapted to the upstream path of the transmission network involving transmission via Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Landscapes

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

Abstract

The embodiment of the invention provides a data communication method and a data communication device, which are applied to service equipment, wherein the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video networking terminal; the service device is also connected to the video network. The method comprises the following steps: a first internet protocol message sent by a source client device is received. And analyzing the first internet protocol message to obtain the video networking data. Sending the video networking data to the video networking so that the video networking data are processed by the video networking and the processed video networking data are returned; and sending the processed video networking data to the target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to a target video networking terminal. The embodiment of the invention realizes the communication between the video network terminals connected with different client devices by means of the Internet. The video networking environment does not need to be built at the video networking terminal side, so that a large amount of time and cost are saved.

Description

Data communication method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for data communication.
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 network adopts a two-layer private protocol to transmit data, so that the safety is greatly improved while the real-time transmission of the full-network high-definition video is realized.
In order to realize the communication between the video network terminals, a whole set of video network communication environment needs to be established, and the video network terminals are connected into the video network communication environment. And the terminals of the video network realize communication through the video network.
However, the above implementation not only requires a great deal of time and cost investment; and the process of building the video networking communication environment is complex and needs to be completed by professional people.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a method and apparatus for data communication that overcomes or at least partially solves the above mentioned problems.
In a first aspect, an embodiment of the present invention discloses a data communication method, which is applied to a service device, wherein the service device is connected with a plurality of client devices through an internet, and each client device is connected with at least one video networking terminal; the service equipment is also connected with a video network; the method comprises the following steps:
receiving a first internet protocol message sent by source client equipment; the first internet protocol message carries video networking data; the source client device is one of the plurality of client devices;
analyzing the first internet protocol message to obtain the video networking data;
sending the video networking data to the video networking so that the video networking processes the video networking data and returns the processed video networking data;
sending the processed video networking data to a target client device in a packet forwarding mode so that the target client device sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of the plurality of client devices; the target video network terminal is connected with the target client equipment.
Optionally, the step of sending the processed internet-of-view data to the destination client device by using a packet forwarding manner includes:
analyzing the video networking data to obtain a target media access control address;
searching socket information corresponding to the target media access control address according to pre-stored mapping information; wherein the mapping information includes: a plurality of media access control addresses and socket information corresponding to each media access control address; in the corresponding media access control address and the socket information, the video network terminal indicated by the media access control address is connected with the client equipment indicated by the socket information;
and sending the processed video networking data to the destination client equipment according to the socket information corresponding to the destination media access control address.
Optionally, the step of sending the processed internet-of-view data to the destination client device according to the socket information corresponding to the destination mac address includes:
adding socket information corresponding to the target media access control address to the processed video networking data to obtain a second internet protocol message;
and sending the second internet protocol message to the target client equipment.
Optionally, the step of adding socket information corresponding to the destination mac address to the processed video networking data to obtain a second ip packet includes:
detecting the data type of the processed video networking data;
if the data type is the target type, the processed video networking data is encapsulated by adopting an internet protocol and a user datagram protocol to obtain a second internet protocol message; the target type is a video data type or an audio data type;
if the data type is not the target type, packaging the processed video networking data by adopting an internet protocol and a transmission control protocol to obtain a second internet protocol message;
wherein, the message header of the second internet protocol message contains the socket information corresponding to the target MAC address.
Optionally, before the step of searching for the socket information corresponding to the destination mac address according to the pre-stored mapping information, the method further includes:
receiving an active connection request sent by the client equipment; the active connection request carries socket information of the client equipment and a media access control address of a video network terminal connected with the client equipment;
storing the socket information and the corresponding MAC address as mapping information.
Optionally, the socket information is an internet protocol address and a port number of the client device.
In a second aspect, the embodiment of the present invention further discloses a data communication apparatus, which is applied to a service device, wherein the service device is connected to a plurality of client devices through the internet, and each client device is connected to at least one video networking terminal; the service equipment is also connected with a video network; the device comprises:
the receiving module is used for receiving a first internet protocol message sent by source client equipment; the first internet protocol message carries video networking data; the source client device is one of the plurality of client devices;
the analysis module is used for analyzing the first internet protocol message to obtain the video networking data;
the sending module is used for sending the video networking data to the video networking so that the video networking processes the video networking data and returns the processed video networking data;
the processing module is used for sending the processed video networking data to target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of the plurality of client devices; the target video network terminal is connected with the target client equipment.
Optionally, the processing module includes:
the analysis unit is used for analyzing the video networking data to obtain a target media access control address;
the searching unit is used for searching the socket information corresponding to the target media access control address according to the mapping information stored in advance; wherein the mapping information includes: a plurality of media access control addresses and socket information corresponding to each media access control address; in the corresponding media access control address and the socket information, the video network terminal indicated by the media access control address is connected with the client equipment indicated by the socket information;
and the sending unit is used for sending the processed video networking data to the destination client equipment according to the socket information corresponding to the destination media access control address.
Optionally, the sending unit includes:
the packaging subunit is used for adding socket information corresponding to the target media access control address to the processed video networking data to obtain a second internet protocol message;
a sending subunit, configured to send the second internet protocol packet to the destination client device.
Optionally, the encapsulating subunit is configured to detect a data type of the processed internet of view data; if the data type is the target type, the processed video networking data is encapsulated by adopting an internet protocol and a user datagram protocol to obtain a second internet protocol message; the target type is a video data type or an audio data type; if the data type is not the target type, packaging the processed video networking data by adopting an internet protocol and a transmission control protocol to obtain a second internet protocol message; wherein, the message header of the second internet protocol message contains the socket information corresponding to the target MAC address.
Optionally, the apparatus further comprises:
the connection module is used for receiving an active connection request sent by the client equipment; the active connection request carries socket information of the client equipment and a media access control address of a video network terminal connected with the client equipment;
and the storage module is used for storing the socket information and the corresponding media access control address as mapping information.
Optionally, the socket information is an internet protocol address and a port number of the client device.
In a third aspect, an embodiment of the present invention further discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program for executing the method in the first aspect is stored in the computer-readable storage medium.
In the embodiment of the invention, the data communication method is applied to the service equipment, the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video network terminal; the service equipment is also connected with the video network; the method comprises the following steps: receiving a first internet protocol message sent by source client equipment; the first internet protocol message carries video networking data; the source client device is one of a plurality of client devices. And analyzing the first internet protocol message to obtain the video networking data. The internet protocol message can be received through the internet, and the video networking data in the internet can be obtained, so that the requirement on the client equipment is reduced. And sending the video networking data to the video networking so that the video networking data is processed by the video networking and the processed video networking data is returned. Sending the processed video networking data to target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of a plurality of client devices; the destination video network terminal is a video network terminal connected with the destination client equipment. Communication data are transmitted between the service equipment and the client equipment by interconnection, so that a video networking environment does not need to be built on the client equipment side, and a large amount of time and cost are saved; and the adopted packet forwarding transmission mode has high transmission efficiency.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a method for data communication according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating steps for packet transmission of processed data of the video network according to an embodiment of the present invention;
fig. 3 is an application architecture diagram of a method of data communication provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data communication apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a processing module according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 illustrates a method for data communication according to an embodiment of the present invention, which is applied to a service device, where the service device is connected to a plurality of client devices through the internet, and each client device is connected to at least one video network terminal; the service device is also connected to the video network. The service device and the client device may be electronic devices having the same configuration. The electronic device is configured differently so as to act as a service device or a client device.
The method comprises the following steps:
step 101, receiving a first Internet Protocol (IP) message sent by a source client device.
It should be noted that the first IP packet carries video networking data; the source client device is one of a plurality of client devices. The source client device can receive video networking data sent by the video networking terminal, and then adds an IP message header to the video networking data to form a first IP message. The source client device is pre-configured with the IP address and port number of the serving device. Preferably, all client devices have the function of adding an IP message header to the video networking data, and are configured with the IP address and port number of the service device.
And 102, analyzing the first IP message to obtain video networking data.
It should be noted that, by removing the IP header of the first IP packet, the message body of the first IP packet, i.e. the video network data, can be obtained.
And 103, sending the video networking data to the video networking so that the video networking data is processed by the video networking and the processed video networking data is returned.
It should be noted that, in the process of communication between terminals of the video network, communication data thereof needs to be processed through the video network.
And 104, transmitting the processed video networking data to the destination client equipment in a packet forwarding mode so that the destination client equipment transmits the processed video networking data to the destination video networking terminal.
It should be noted that the destination client device is one of a plurality of client devices; the destination video network terminal is a video network terminal connected with the destination client equipment. The processed video networking data carries the address of the destination video networking terminal. The destination client device can send the processed video networking data to part or all of the destination video networking terminals.
In the embodiment of the invention, the data communication method is applied to the service equipment, the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video network terminal; the service equipment is also connected with the video network; the method comprises the following steps: receiving a first IP message sent by source client equipment; the first IP message carries video networking data; the source client device is one of a plurality of client devices. And analyzing the first internet protocol message to obtain the video networking data. The IP message can be received through the Internet, and the video networking data in the IP message can be obtained, so that the requirement on client equipment is lowered. And sending the video networking data to the video networking so that the video networking data is processed by the video networking and the processed video networking data is returned. Sending the processed video networking data to target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of a plurality of client devices; the destination video network terminal is a video network terminal connected with the destination client equipment. Communication data are transmitted between the service equipment and the client equipment by interconnection, so that a video networking environment does not need to be built on the client equipment side, and a large amount of time and cost are saved; and the adopted packet forwarding transmission mode has high transmission efficiency.
Referring to fig. 2, preferably, the step 104 includes:
step 1041, parsing the video networking data to obtain a Media Access Control (MAC) address;
it should be noted that, as the video network processes the video network data, its MAC address is not changed. Therefore, the data of the video network before the video network processing can be analyzed, and the data of the video network after the video network processing can also be analyzed.
Step 1042, according to the mapping information stored in advance, searching the socket information corresponding to the destination MAC address;
it should be noted that the mapping information includes: multiple MAC addresses and socket information corresponding to each MAC address. The socket information and the MAC address in the mapping information have a fixed corresponding relationship, and the socket information and the MAC address have a one-to-one or one-to-many relationship. And in the corresponding MAC address and socket information, the video network terminal indicated by the MAC address is connected with the client equipment indicated by the socket information. Wherein, the socket information is the IP address and the port number of the client device.
Preferably, to obtain the mapping information conveniently, before the step of searching for the socket information corresponding to the destination MAC address according to the pre-stored mapping information, the method further includes:
receiving an active connection request sent by client equipment; the active connection request carries socket information of the client equipment and an MAC address of a video network terminal connected with the client equipment;
the socket information and the corresponding MAC address are stored as mapping information. The corresponding socket information and MAC address may be stored as one piece of data.
And 1043, sending the processed internet of view data to the destination client device according to the socket information corresponding to the destination MAC address.
It should be noted that the destination client apparatus is the client apparatus indicated by the socket information corresponding to the destination MAC address. Data can be sent by adding a message header, specifically, socket information corresponding to a destination MAC address is added to the processed video networking data to obtain a second IP message; and sending the second IP message to the destination client equipment.
To further improve transmission efficiency, on the basis of the foregoing embodiment of the present invention, in the embodiment of the present invention, the step of adding socket information corresponding to the destination MAC address to the processed video networking data to obtain the second IP packet includes:
detecting the data type of the processed video networking data;
if the data type is the target type, packaging the processed video networking data by adopting an IP protocol and a User datagram protocol (UDP for short) to obtain a second IP message; the target type is a video data type or an audio data type;
if the data type is not the target type, packaging the processed video networking data by adopting an internet Protocol and a transmission control Protocol (TCP for short) to obtain a second IP message;
and the message header of the second IP message comprises socket information corresponding to the destination MAC address.
It should be noted that the data of the video data type or the audio data type occupies a large space, and the transmission efficiency can be improved by performing encapsulation transmission by using an IP protocol and a user datagram protocol. The non-target type is a control command type, and may be, for example, a conference command, a speaker switching command, or the like. The control command occupies a small space, and the transmission safety can be improved by using an IP protocol and a transmission control protocol for encapsulation transmission.
Fig. 3 is a diagram illustrating an application architecture of a method for data communication according to an embodiment of the present invention. Including a plurality of video network terminals (only 4 shown in fig. 3), a plurality of client devices (only 3 shown in fig. 3), the internet, a service device, and a video network; with the view network only showing the view network core switch and the view network server. All the client devices store the IP addresses and port numbers of the service devices. The service device stores a routing table, and the routing table comprises IP addresses and port numbers of all the client devices, MAC addresses of the video network terminals, and corresponding relations between the IP addresses and the port numbers and the MAC addresses.
When the first video network terminal communicates with the second video network terminal, the first video network terminal sends video network data to the first client device. The first client device adds an IP message header to the video network data according to the IP address and the port number of the service device, so that a first IP message is generated. And sending the first IP message to the service equipment through the Internet. And the service equipment removes the IP message header of the first IP message to obtain the video networking data. And sending the video networking data to the video networking, and receiving the video networking data processed by the video networking. The service device can obtain the destination MAC address, namely the MAC address of the second video network terminal by analyzing the video network data. And inquiring the routing table to obtain the IP address and the port number of the client device corresponding to the destination MAC address, namely the IP address and the port number of the second client device. The service equipment encapsulates the processed video networking data by UDP or TCP, adds an IP message header and sends the IP message header to the second client equipment through the Internet. And the second client equipment removes the IP message header to obtain the processed video network data and forwards the processed video network data to the second video network terminal.
In the embodiment of the invention, the video networking terminal sides which are communicated with each other do not need to build a video networking environment, and only need to set the client equipment and the service equipment, so that the communication of the video networking terminal can be realized. A great deal of time and cost are saved; and the adopted packet forwarding transmission mode has high transmission efficiency.
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.
Fig. 4 shows a data communication apparatus provided by another embodiment of the present invention, which is applied to a service device, the service device is connected to a plurality of client devices through the internet, and each client device is connected to at least one video network terminal; the service equipment is also connected with the video network; the device includes:
a receiving module 41, configured to receive a first IP packet sent by a source client device; the first IP message carries video networking data; the source client device is one of a plurality of client devices;
the analysis module 42 is configured to analyze the first IP packet to obtain video networking data;
the sending module 43 is configured to send the video networking data to the video networking, so that the video networking processes the video networking data, and returns the processed video networking data;
the processing module 44 is configured to send the processed video networking data to the destination client device in a packet forwarding manner, so that the destination client device sends the processed video networking data to the destination video networking terminal; wherein the destination client device is one of a plurality of client devices; the destination video network terminal is a video network terminal connected with the destination client equipment.
Optionally, the processing module 44 comprises:
the analyzing unit 441 is configured to analyze the video networking data to obtain a destination MAC address;
a searching unit 442, configured to search, according to mapping information stored in advance, socket information corresponding to the destination MAC address; wherein the mapping information includes: a plurality of MAC addresses and socket information corresponding to each MAC address; in the corresponding MAC address and the socket information, the video network terminal indicated by the MAC address is connected with the client equipment indicated by the socket information;
a sending unit 443, configured to send the processed internet-of-view data to the destination client device according to the socket information corresponding to the destination MAC address.
Optionally, the transmitting unit 443 includes:
the packaging subunit is used for adding socket information corresponding to the destination MAC address to the processed video networking data to obtain a second IP message;
and the sending subunit is used for sending the second IP message to the destination client equipment.
Optionally, the packaging subunit is configured to detect a data type of the processed internet-of-view data; if the data type is the target type, the processed video network data is encapsulated by adopting an IP protocol and a user datagram protocol to obtain a second IP message; the target type is a video data type or an audio data type; if the data type is not the target type, packaging the processed video networking data by adopting an IP protocol and a transmission control protocol to obtain a second IP message; and the message header of the second IP message comprises socket information corresponding to the destination MAC address.
Optionally, the apparatus further comprises:
the connection module is used for receiving an active connection request sent by the client equipment; the active connection request carries socket information of the client equipment and an MAC address of a video network terminal connected with the client equipment;
and the storage module is used for storing the socket information and the corresponding MAC address as mapping information.
Optionally, the socket information is an IP address and port number of the client device.
In the embodiment of the invention, the data communication device is applied to the service equipment, the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video network terminal; the service equipment is also connected with the video network; the device includes: the receiving module is used for receiving a first IP message sent by source client equipment; the first IP message carries video networking data; the source client device is one of a plurality of client devices; the analysis module is used for analyzing the first IP message to obtain video networking data; the sending module is used for sending the video networking data to the video networking so that the video networking data are processed by the video networking and the processed video networking data are returned; the processing module is used for sending the processed video networking data to the target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to the target video networking terminal; wherein the destination client device is one of a plurality of client devices; the destination video network terminal is a video network terminal connected with the destination client equipment. Communication data are transmitted between the service equipment and the client equipment by interconnection, so that a video networking environment does not need to be built on the client equipment side, and a large amount of time and cost are saved; and the adopted packet forwarding transmission mode has high transmission efficiency.
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.
The embodiment of the invention also discloses electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the data communication method of any embodiment is realized.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for executing the data communication method for realizing any embodiment.
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.

Claims (10)

1. The data communication method is applied to service equipment, the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video network terminal; the service equipment is also connected with a video network; the method comprises the following steps:
receiving a first internet protocol message sent by source client equipment; the first internet protocol message carries video networking data; the source client device is one of the plurality of client devices;
analyzing the first internet protocol message to obtain the video networking data;
sending the video networking data to the video networking so that the video networking processes the video networking data and returns the processed video networking data;
sending the processed video networking data to a target client device in a packet forwarding mode so that the target client device sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of the plurality of client devices; the target video network terminal is connected with the target client equipment.
2. The method of claim 1, wherein the step of sending the processed internet-of-view data to a destination client device using packet forwarding comprises:
analyzing the video networking data to obtain a target media access control address;
searching socket information corresponding to the target media access control address according to pre-stored mapping information; wherein the mapping information includes: a plurality of media access control addresses and socket information corresponding to each media access control address; in the corresponding media access control address and the socket information, the video network terminal indicated by the media access control address is connected with the client equipment indicated by the socket information;
and sending the processed video networking data to the destination client equipment according to the socket information corresponding to the destination media access control address.
3. The method of claim 2, wherein the step of sending the processed data to the destination client device according to the socket information corresponding to the destination mac address comprises:
adding socket information corresponding to the target media access control address to the processed video networking data to obtain a second internet protocol message;
and sending the second internet protocol message to the target client equipment.
4. The method according to claim 3, wherein the step of adding socket information corresponding to the destination MAC address to the processed video networking data to obtain a second IP packet comprises:
detecting the data type of the processed video networking data;
if the data type is the target type, the processed video networking data is encapsulated by adopting an internet protocol and a user datagram protocol to obtain a second internet protocol message; the target type is a video data type or an audio data type;
if the data type is not the target type, packaging the processed video networking data by adopting an internet protocol and a transmission control protocol to obtain a second internet protocol message;
wherein, the message header of the second internet protocol message contains the socket information corresponding to the target MAC address.
5. The method according to claim 2, wherein before the step of searching for the socket information corresponding to the destination mac address according to the pre-stored mapping information, the method further comprises:
receiving an active connection request sent by the client equipment; the active connection request carries socket information of the client equipment and a media access control address of a video network terminal connected with the client equipment;
storing the socket information and the corresponding MAC address as mapping information.
6. The method of claim 2, wherein the socket information is an internet protocol address and port number of the client device.
7. The data communication device is applied to service equipment, the service equipment is connected with a plurality of client equipment through the Internet, and each client equipment is connected with at least one video network terminal; the service equipment is also connected with a video network; the device comprises:
the receiving module is used for receiving a first internet protocol message sent by source client equipment; the first internet protocol message carries video networking data; the source client device is one of the plurality of client devices;
the analysis module is used for analyzing the first internet protocol message to obtain the video networking data;
the sending module is used for sending the video networking data to the video networking so that the video networking processes the video networking data and returns the processed video networking data;
the processing module is used for sending the processed video networking data to target client equipment in a packet forwarding mode so that the target client equipment sends the processed video networking data to a target video networking terminal; wherein the destination client device is one of the plurality of client devices; the target video network terminal is connected with the target client equipment.
8. The apparatus of claim 7, wherein the processing module comprises:
the analysis unit is used for analyzing the video networking data to obtain a target media access control address;
the searching unit is used for searching the socket information corresponding to the target media access control address according to the mapping information stored in advance; wherein the mapping information includes: a plurality of media access control addresses and socket information corresponding to each media access control address; in the corresponding media access control address and the socket information, the video network terminal indicated by the media access control address is connected with the client equipment indicated by the socket information;
and the sending unit is used for sending the processed video networking data to the destination client equipment according to the socket information corresponding to the destination media access control address.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of data communication of any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program that executes the method of data communication of any one of claims 1 to 6.
CN202010125839.3A 2020-02-27 2020-02-27 Data communication method and device Active CN111464879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010125839.3A CN111464879B (en) 2020-02-27 2020-02-27 Data communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125839.3A CN111464879B (en) 2020-02-27 2020-02-27 Data communication method and device

Publications (2)

Publication Number Publication Date
CN111464879A true CN111464879A (en) 2020-07-28
CN111464879B CN111464879B (en) 2022-12-23

Family

ID=71679965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125839.3A Active CN111464879B (en) 2020-02-27 2020-02-27 Data communication method and device

Country Status (1)

Country Link
CN (1) CN111464879B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285776A (en) * 2022-01-14 2022-04-05 广州广哈通信股份有限公司 Network line state monitoring method and device and video conference terminal
CN114928597A (en) * 2022-05-20 2022-08-19 中国联合网络通信集团有限公司 Data transmission method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130035079A1 (en) * 2010-02-05 2013-02-07 O'doherty Anthony Michael Method and system for establishing data commuication channels
CN109194660A (en) * 2018-09-12 2019-01-11 视联动力信息技术股份有限公司 The method of network entry and device of mobile terminal
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110336796A (en) * 2019-06-17 2019-10-15 视联动力信息技术股份有限公司 A kind of communication means and communication device
CN110380946A (en) * 2019-06-17 2019-10-25 视联动力信息技术股份有限公司 A kind of communication means and communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130035079A1 (en) * 2010-02-05 2013-02-07 O'doherty Anthony Michael Method and system for establishing data commuication channels
CN109194660A (en) * 2018-09-12 2019-01-11 视联动力信息技术股份有限公司 The method of network entry and device of mobile terminal
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110336796A (en) * 2019-06-17 2019-10-15 视联动力信息技术股份有限公司 A kind of communication means and communication device
CN110380946A (en) * 2019-06-17 2019-10-25 视联动力信息技术股份有限公司 A kind of communication means and communication device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285776A (en) * 2022-01-14 2022-04-05 广州广哈通信股份有限公司 Network line state monitoring method and device and video conference terminal
CN114285776B (en) * 2022-01-14 2023-07-14 广州广哈通信股份有限公司 Network line state monitoring method and device and video conference terminal
CN114928597A (en) * 2022-05-20 2022-08-19 中国联合网络通信集团有限公司 Data transmission method, device and equipment
CN114928597B (en) * 2022-05-20 2023-07-25 中国联合网络通信集团有限公司 Data transmission method, device and equipment

Also Published As

Publication number Publication date
CN111464879B (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN107948076B (en) Method and device for forwarding message
CN109218261B (en) Data processing method and data processing device
CN105791315B (en) A kind of udp protocol acceleration method and system
CN109361606B (en) Message processing system and network equipment
CN110266713A (en) Intranet and extranet communication means, device, system and proxy server and storage medium
CN106878194B (en) Message processing method and device
CN111464879B (en) Data communication method and device
CN108306986B (en) Multi-type media data network address conversion traversing method, terminal and system
CN106559504B (en) Address translation method and device
WO2008044432A1 (en) Information communication device, information communication method and program
CN107124483A (en) Domain name analytic method and server
CN104506450A (en) Media resource feedback method and device
CN113364660A (en) Data packet processing method and device in LVS load balancing
US9413590B2 (en) Method for management of a secured transfer session through an address translation device, corresponding server and computer program
CN102201996B (en) Method and equipment for forwarding message in network address translation (NAT) environment
WO2020206849A1 (en) Method and system for processing dhcp data with vlan tag
CN107483369B (en) Message processing method and virtual switch
CN108881247A (en) Message forwarding method, device, gateway and storage medium
EP3503484A1 (en) Message transmission method, device and network system
CN108574637B (en) Address self-learning method and device and switch
CN113132419B (en) Message forwarding method and device, switch, router and server
CN114205185B (en) Proxy method and device for control message
CN114650197A (en) Communication method, communication device, user plane network element and storage medium
US9455911B1 (en) In-band centralized control with connection-oriented control protocols
CN103139209A (en) Medium code stream obtaining method, unilateral self-address fixing (UNISAF) server and soft-switch communication system

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