CN111654390B - Data transmission method, device, terminal equipment and storage medium - Google Patents

Data transmission method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111654390B
CN111654390B CN202010296932.0A CN202010296932A CN111654390B CN 111654390 B CN111654390 B CN 111654390B CN 202010296932 A CN202010296932 A CN 202010296932A CN 111654390 B CN111654390 B CN 111654390B
Authority
CN
China
Prior art keywords
video networking
internet
conversion equipment
data message
mode
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
CN202010296932.0A
Other languages
Chinese (zh)
Other versions
CN111654390A (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 CN202010296932.0A priority Critical patent/CN111654390B/en
Publication of CN111654390A publication Critical patent/CN111654390A/en
Application granted granted Critical
Publication of CN111654390B publication Critical patent/CN111654390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

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

Abstract

The embodiment of the invention provides a data transmission method, a device, terminal equipment and a storage medium, comprising the following steps: when the conversion equipment of the service mode and the conversion equipment of the client mode establish heartbeats, the conversion equipment of the service mode is connected with the video networking data message sent by the video networking sending equipment through the first video networking interface; the conversion equipment in the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the data message to the conversion equipment of the client mode through an internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the other backup link can be switched in a seamless manner, and the normal requirement of the service is ensured.

Description

Data transmission method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission device, a terminal device, and a storage medium.
Background
In the process of carrying out data transmission of the service by the video networking equipment, the video networking link is required to be adopted for carrying out data transmission, and if the video networking link is abnormal, for example, the video networking link is disconnected or is not connected, the normal requirement of the service cannot be ensured.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are directed to providing a data transmission method, apparatus, terminal device, and storage medium that overcome or at least partially solve the foregoing problems.
In a first aspect, an embodiment of the present invention provides a data transmission method, applied to a conversion device, where the conversion device includes at least a first internet-of-view interface, a second internet-of-view interface, and an internet interface, and the conversion device includes at least a conversion device in a service mode and a conversion device in a client mode, and the method includes:
under the condition that the service mode conversion equipment and the client mode conversion equipment establish heartbeat connection, the service mode conversion equipment is connected with the video networking data message sent by the video networking sending equipment through a first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment;
The conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through the second video networking interface, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video network data message to the conversion equipment of the client mode through an internet interface, so that the conversion equipment of the client mode sends the video network data message to the video network receiving equipment corresponding to the mac address.
Optionally, the service mode conversion device sends the internet of view data packet to the client mode conversion device through an internet interface, so that the client mode conversion device sends the internet of view data packet to the internet of view receiving device corresponding to the mac address, including:
the conversion equipment of the service mode determines the IP address and the port number of the conversion equipment of the client mode corresponding to the mac address according to a pre-established mac address mapping table;
The switching equipment of the service mode packages the video networking data message into an Internet data message;
the conversion equipment of the service mode sends the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
Optionally, the service mode conversion device sends the internet data packet to the client mode conversion device through the internet interface, including:
the conversion equipment of the service mode sends the Internet data message to an Internet switch through the Internet interface, and the Internet switch sends the Internet data message to the conversion equipment of the client mode.
Optionally, the service mode conversion device sends the internet of view data packet to the client mode conversion device through the second internet of view interface, so that the client mode conversion device sends the internet of view data packet to the internet of view receiving device corresponding to the mac address, including:
And the video networking data message is sent to a video networking switch through the second video networking interface, and the video networking switch sends the video networking data message to the conversion equipment of the client mode corresponding to the mac address, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
Optionally, before the service mode conversion device receives the internet of view data packet sent by the internet of view sending device through the first internet of view interface, the method further includes:
the conversion equipment of the service mode receives a connection request message sent by the conversion equipment of the client mode through the Internet interface; wherein, the connection request message includes configuration information of the conversion equipment of the client mode;
the conversion equipment of the service mode acquires the IP address and the port of the conversion equipment of the client mode in the configuration information and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode;
and the conversion equipment of the service mode determines the correspondence between the IP address and the port of the conversion equipment of the client mode and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode as the mac address mapping table.
Optionally, after the service mode conversion device receives, through the internet interface, a connection request packet sent by the client mode conversion device, the method further includes:
and the conversion equipment of the service mode replies a connection success message to the conversion equipment of the client mode through the Internet interface.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus, applied to a service mode conversion device, where the conversion device includes at least a first internet-of-view interface, a second internet-of-view interface, and an internet interface, and the conversion device includes at least a service mode conversion device and a client mode conversion device, where the apparatus includes:
the receiving module is used for receiving the video networking data message sent by the video networking sending equipment through the first video networking interface under the condition that the service mode conversion equipment and the client mode conversion equipment establish heartbeat connection; the video networking data message comprises a mac address of video networking receiving equipment;
the video networking sending module is used for sending the video networking data message to the conversion equipment of the client mode through the second video networking interface so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
And the internet sending module is used for sending the video network data message to the conversion equipment of the client mode through an internet interface if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, so that the conversion equipment of the client mode sends the video network data message to the video network receiving equipment corresponding to the mac address.
Optionally, the internet sending module is configured to:
according to a pre-established mac address mapping table, determining an IP address and a port number of a conversion device of a client mode corresponding to the mac address;
encapsulating the video networking data message into an Internet data message;
and sending the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
Optionally, the internet sending module is specifically configured to:
and sending the Internet data message to an Internet switch through the Internet interface, and sending the Internet data message to the conversion equipment of the client mode by the Internet switch.
Optionally, the internet of view sending module is configured to:
the internet of view data message is sent to an internet of view switch through the second internet of view interface, and the internet of view switch sends the internet of view data message to the conversion device of the client mode corresponding to the mac address, so that the conversion device of the client mode sends the internet of view data message to the internet of view receiving device corresponding to the mac address, optionally, the apparatus further comprises a building module, and the building module is used for:
receiving a connection request message sent by the conversion equipment of the client mode through the Internet interface; wherein, the connection request message includes configuration information of the conversion equipment of the client mode;
acquiring an IP address and a port of a conversion device of a client mode in the configuration information and a mac address of a video network receiving device connected with the conversion device of the client mode;
and determining the correspondence between the IP address and the port of the conversion equipment of the client mode and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode as the mac address mapping table.
Optionally, the apparatus further comprises a response module for:
and replying a connection success message to the conversion equipment of the client mode through the Internet interface.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having stored therein a computer program which, when executed, implements the data transmission method provided in the first aspect.
The technical scheme provided by the embodiment of the invention is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an Internet interface, the conversion equipment at least comprises conversion equipment in a service mode and conversion equipment in a client mode, and under the condition that the conversion equipment in the service mode and the conversion equipment in the client mode establish heartbeat connection, the conversion equipment in the service mode is connected with a video networking data message sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a data transmission method of the present invention;
FIG. 2 is a flow chart of steps of another embodiment of a data transmission method of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a data transmission system according to the present invention;
fig. 4 is a block diagram of an embodiment of a data transmission device of the present invention;
fig. 5 is a schematic structural view of a terminal device of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, there is shown a flowchart of steps of an embodiment of a data transmission method of the present invention, where the method may be applied to a conversion device, where the conversion device includes at least a first video networking interface, a second video networking interface, and an internet interface, and where the conversion device includes at least a conversion device in a service mode and a conversion device in a client mode, and may specifically include the following steps:
s101, under the condition that heartbeat connection is established between the conversion equipment of the service mode and the conversion equipment of the client mode, the conversion equipment of the service mode is connected with a video networking data message sent by a video networking sending equipment through a first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment;
Specifically, in the internet of view, in the process of data transmission, the internet of view device may use an internet of view communication protocol to perform data transmission, so as to avoid that if a problem occurs in an internet of view link to affect data transmission, in the embodiment of the present invention, a conversion device is added, and the conversion device may perform mutual conversion between an internet of view protocol packet and an internet protocol packet, where the conversion device has three interfaces, including a first internet of view interface (eth 1), a second internet of view interface (eth 2), and an internet interface (eth 0), and configures the conversion device into a service mode and a client mode, and connects the first internet of view interface of the conversion device in the service mode with a first internet of view switch, which may be connected with an internet of view core server or an internet of view terminal, and connects the first internet of view interface of the conversion device in the client mode with the second internet interface of the conversion device in the client mode. And establishes a heartbeat connection between the service mode switching device and the client mode switching device.
The video network sending device comprises a video network core server and a video network terminal, the video network sending device sends video network data messages to the conversion device in a service mode through the first video network switch, the conversion device in the service mode receives the video network data messages through the first video network interface, and the video network data messages comprise mac addresses of video network receiving devices, specifically mac (Media Access Control or Medium Access Control) addresses, which are interpreted as media access control or are called physical addresses and hardware addresses and are used for defining the positions of network devices.
S102, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through the second video networking interface, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
specifically, the conversion device of the service mode sends the video networking data message to the conversion device of the client mode connected with the conversion device of the service mode through the second video networking interface, and the conversion device of the client mode sends the video networking data message to the video networking receiving device corresponding to the mac address.
And S103, if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an internet interface, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
If the preset time is exceeded, the conversion equipment in the service mode does not receive the heartbeat data packet sent by the conversion equipment in the client mode, and the problem of the video networking link is indicated, and data transmission cannot be performed, at this time, the conversion equipment in the service mode converts the video networking data packet into an internet data packet, and sends the internet data packet to the conversion equipment in the client mode through an internet interface, and the conversion equipment in the client mode converts the received internet data packet into the video networking data packet again, and sends the video networking data packet to the video networking receiving equipment corresponding to the mac address through a second video networking interface.
In a specific implementation process, data transmission is bidirectional, so that the video networking sending equipment and the video networking receiving equipment can be interchanged.
The data transmission method provided by the embodiment of the invention is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an internet interface, the conversion equipment at least comprises conversion equipment in a service mode and conversion equipment in a client mode, and under the condition that the conversion equipment in the service mode and the conversion equipment in the client mode establish heartbeat connection, the conversion equipment in the service mode receives video networking data messages sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
The data transmission method provided by the embodiment of the invention is further described in a further embodiment of the invention.
As shown in fig. 2, a step flow diagram of another embodiment of a data transmission method of the present invention is shown, the data transmission method comprising:
s201, the conversion equipment of the service mode receives a connection request message sent by the conversion equipment of the client mode through the Internet interface; wherein, the connection request message includes configuration information of the conversion equipment of the client mode;
s202, the service mode conversion equipment acquires an IP address and a port of the customer mode conversion equipment and a mac address of a video network receiving equipment connected with the customer mode conversion equipment in the configuration information;
MAC, MAC (Media Access Control or Medium Access Control) address, meaning media access control, or physical address, hardware address, is used to define the location of a network device. In the OSI model, the third layer network layer is responsible for IP addresses, and the second layer data link layer is responsible for MAC addresses. Thus a host will have a MAC address and each network location will have an IP address specific to it. The MAC address is determined by the network card and is fixed.
S203, the conversion equipment of the service mode determines the correspondence between the IP address and the port of the conversion equipment of the client mode and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode as the mac address mapping table.
S204, the conversion equipment of the service mode replies a successful connection message to the conversion equipment of the client mode through the Internet interface.
S205, under the condition that the service mode conversion equipment and the client mode conversion equipment establish heartbeat connection, the service mode conversion equipment is connected with a video networking data message sent by a video networking sending equipment through a first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment;
s206, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through the second video networking interface, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
specifically, the conversion device in the service mode sends the video networking data message to a second video networking switch through the second video networking interface, and the second video networking switch sends the video networking data message to the conversion device in the client mode corresponding to the mac address, so that the conversion device in the client mode sends the video networking data message to the video networking receiving device corresponding to the mac address.
Wherein the first and second video networking switches are two different switches.
S207, if the heartbeat packet sent by the conversion device in the client mode is not received within a preset time, the conversion device in the service mode sends the video networking data message to the conversion device in the client mode through an internet interface, so that the conversion device in the client mode sends the video networking data message to the video networking receiving device corresponding to the mac address.
Specifically, step S207 includes:
step 2071: the conversion equipment of the service mode determines the IP address and the port number of the conversion equipment of the client mode corresponding to the mac address according to a pre-established mac address mapping table;
step 2072: the switching equipment of the service mode packages the video networking data message into an Internet data message;
step 2073: the conversion equipment of the service mode sends the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
Specifically, the service mode conversion device sends the internet data message to an internet switch through the internet interface, and the internet switch sends the internet data message to the client mode conversion device.
As shown in fig. 3, there is shown a schematic structural diagram of an embodiment of a data transmission system of the present invention, the data transmission system including: the system comprises a video networking device, a first video networking switch 301 and at least three Minivhub devices, namely conversion devices, wherein the Minivhub devices are provided with three interfaces, namely eth0, eth1 and eth2; server-client (service-client) mode is performed on Miniv hub equipment, specifically:
1. at least three minihub devices (hardware devices with three network ports) are needed, one is configured to be in a server mode (service mode), namely Minivhub (server), and the other three are configured to be in a client mode (client mode), namely Minivhub (client), minivhub (client), 306 and Minivhub (client), 307;
2. an eth0 port of MiniVhub (server) 302 is connected to the internet switch, an eth1 port is connected to the first video networking switch 301, and an eth2 port is connected to the second video networking switch 303 (not the same switch as the eth1 port);
3. An eth0 network port of Minivhub (client), minivhub (client), 306, minivhub (client), 307 is connected to the internet switch 304, an eth1 network port is directly connected to the video networking terminal 308, and an eth2 network port is connected to the second video networking switch 303;
4. minivhub (client) uses the eth0 network port to send the UDP message (such as UDP header + private message body 0x8801+ video networking terminal MAC address) of the connection request to the server, minivhub (server) receives, use the eth0 network port to reply and connect the successful UDP message (such as UDP header + private message body 0x 8811) to Minivhub (client);
5. minivhub (server) and Minivhub (client), minivhub (server) records Minivhub (client) related information (such as client IP, PORT and video networking terminal MAC), creates a mapping table similar to MAC, and server and client send heartbeat packets to each other;
6. when an eth1 network PORT of Minivhub (server) receives a packet of a core server of the video network, searching the IP and PORT of the client according to the MAC mapping table, then packaging the video network packet into a data packet of UDP protocol, and transmitting the data packet to the client by using the eth0 network PORT;
7. MiniVhub (client) after receiving Minivhub (server) message through the eth0 port, parsing the message (removing UDP packet header), obtaining a video networking message, and transmitting the video networking message to the video networking terminal by using the eth1 port;
8. Otherwise, when Minivhub (client) receives the video networking message sent by the video networking terminal, the video networking message is packaged into a UDP protocol message, the UDP protocol message is sent to Minivhub (server) by using eth0, the message is parsed by Minivhub (server), and the video networking message is obtained and sent to the video networking server;
9. if the server or the client does not receive heartbeat packets each other within a specified time (such as 3 s), the problem of the Internet link is indicated, the Internet link is immediately switched to the video networking link, namely, the eth2 network port is used for receiving and transmitting video networking messages;
10. the eth2 network ports of the server and the client of the MiniVhub are directly used for receiving and transmitting the video networking messages, the eth2 of the server or the client immediately uses the eth1 network port to forward the messages after receiving the messages, otherwise, the eth1 immediately uses the eth2 to forward the messages after receiving the video networking data, and the dual-link backup can be realized.
The data transmission method provided by the embodiment of the invention is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an internet interface, the conversion equipment at least comprises conversion equipment in a service mode and conversion equipment in a client mode, and under the condition that the conversion equipment in the service mode and the conversion equipment in the client mode establish heartbeat connection, the conversion equipment in the service mode receives video networking data messages sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
Another embodiment of the present invention provides a data transmission apparatus for executing the data transmission method provided in the foregoing embodiment.
Referring to fig. 4, there is shown a block diagram of an embodiment of a data transmission apparatus of the present invention, applied to a conversion device of a service mode, the conversion device including at least a first view networking interface, a second view networking interface, and an internet interface, the conversion device including at least a conversion device of a service mode and a conversion device of a client mode, the apparatus comprising: a receiving module 401, a video networking transmitting module 402 and an internet transmitting module 403, wherein:
the receiving module 401 is configured to, when the service mode conversion device and the client mode conversion device establish a heartbeat connection, connect, through a first internet of view interface, an internet of view data packet sent by the internet of view sending device; the video networking data message comprises a mac address of video networking receiving equipment;
the internet of view sending module 402 is configured to send the internet of view data packet to the conversion device of the client mode through the second internet of view interface, so that the conversion device of the client mode sends the internet of view data packet to the internet of view receiving device corresponding to the mac address;
The internet sending module 403 is configured to send the internet of view data packet to the conversion device of the client mode through an internet interface if the heartbeat packet sent by the conversion device of the client mode is not received within a preset time, so that the conversion device of the client mode sends the internet of view data packet to the internet of view receiving device corresponding to the mac address.
The data transmission device provided by the embodiment of the invention is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an internet interface, the conversion equipment at least comprises conversion equipment in a service mode and conversion equipment in a client mode, and under the condition that the conversion equipment in the service mode and the conversion equipment in the client mode establish heartbeat connection, the conversion equipment in the service mode receives video networking data messages sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
A further embodiment of the present invention provides a further supplementary explanation of the apparatus provided in the above embodiment.
Optionally, the internet sending module 403 is configured to:
according to a pre-established mac address mapping table, determining an IP address and a port number of a conversion device of a client mode corresponding to the mac address;
encapsulating the video networking data message into an Internet data message;
and sending the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
Optionally, the internet sending module 403 is specifically configured to:
and sending the Internet data message to an Internet switch through the Internet interface, and sending the Internet data message to the conversion equipment of the client mode by the Internet switch.
Optionally, the internet of view sending module 402 is configured to:
the internet of view data message is sent to an internet of view switch through the second internet of view interface, and the internet of view switch sends the internet of view data message to the conversion device of the client mode corresponding to the mac address, so that the conversion device of the client mode sends the internet of view data message to the internet of view receiving device corresponding to the mac address, optionally, the apparatus further comprises a building module, and the building module is used for:
Receiving a connection request message sent by the conversion equipment of the client mode through the Internet interface; wherein, the connection request message includes configuration information of the conversion equipment of the client mode;
acquiring an IP address and a port of a conversion device of a client mode in the configuration information and a mac address of a video network receiving device connected with the conversion device of the client mode;
and determining the correspondence between the IP address and the port of the conversion equipment of the client mode and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode as the mac address mapping table.
Optionally, the apparatus further comprises a response module for:
and replying a connection success message to the conversion equipment of the client mode through the Internet interface.
It should be noted that, in this embodiment, each of the possible embodiments may be implemented separately, or may be implemented in any combination without conflict, which is not limited to the implementation of the present application.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The data transmission device provided by the embodiment of the invention is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an internet interface, the conversion equipment at least comprises conversion equipment in a service mode and conversion equipment in a client mode, and under the condition that the conversion equipment in the service mode and the conversion equipment in the client mode establish heartbeat connection, the conversion equipment in the service mode receives video networking data messages sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
A further embodiment of the present invention provides a terminal device configured to perform the data transmission method provided in the foregoing embodiment.
In the embodiment of the invention, the terminal equipment is specifically a conversion equipment.
Fig. 5 is a schematic structural diagram of a terminal device of the present invention, as shown in fig. 5, the terminal device includes: at least one processor 501 and memory 502;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiment.
The terminal device provided by the embodiment is applied to conversion equipment, the conversion equipment at least comprises a first video networking interface, a second video networking interface and an internet interface, the conversion equipment at least comprises conversion equipment of a service mode and conversion equipment of a client mode, and under the condition that heartbeat connection is established between the conversion equipment of the service mode and the conversion equipment of the client mode, the conversion equipment of the service mode is connected with video networking data messages sent by video networking sending equipment through the first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
A further embodiment of the present application provides a computer readable storage medium having a computer program stored therein, which when executed implements the data transmission method provided in any of the above embodiments.
The computer readable storage medium according to the present embodiment is applied to a conversion device, where the conversion device includes at least a first internet-of-view interface, a second internet-of-view interface, and an internet interface, and the conversion device includes at least a conversion device in a service mode and a conversion device in a client mode, and in a case where the conversion device in the service mode and the conversion device in the client mode establish a heartbeat connection, the conversion device in the service mode receives an internet-of-view data packet sent by an internet-of-view sending device through the first internet-of-view interface; the video networking data message comprises a mac address of video networking receiving equipment; the video networking data message is sent to conversion equipment of a client mode through a second video networking interface, and the conversion equipment of the client mode sends the video networking data message to video networking receiving equipment corresponding to the mac address; if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through an Internet interface, and the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address, so that when one main link is disconnected or not connected, the service can be seamlessly switched to the other backup link, and the normal requirement of the service is ensured.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that 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 invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a data transmission method and a data transmission device according to the present invention, and specific examples are provided herein to illustrate the principles and embodiments of the present invention, the above examples being provided only to assist in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A data transmission method, applied to a conversion device, the conversion device at least including a first internet-of-view interface, a second internet-of-view interface, and an internet interface, the conversion device at least including a conversion device in a service mode and a conversion device in a client mode, the method comprising:
under the condition that the service mode conversion equipment and the client mode conversion equipment establish heartbeat connection, the service mode conversion equipment is connected with the video networking data message sent by the video networking sending equipment through a first video networking interface; the video networking data message comprises a mac address of video networking receiving equipment;
the conversion equipment of the service mode sends the video networking data message to the conversion equipment of the client mode through the second video networking interface, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, the conversion equipment of the service mode sends the video network data message to the conversion equipment of the client mode through an internet interface, so that the conversion equipment of the client mode sends the video network data message to the video network receiving equipment corresponding to the mac address.
2. The method of claim 1, wherein the service mode conversion device sending the internet of view data message to the customer mode conversion device through an internet interface, such that the customer mode conversion device sends the internet of view data message to the internet of view receiving device corresponding to the mac address, comprising:
the conversion equipment of the service mode determines the IP address and the port number of the conversion equipment of the client mode corresponding to the mac address according to a pre-established mac address mapping table;
the switching equipment of the service mode packages the video networking data message into an Internet data message;
the conversion equipment of the service mode sends the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
3. The method according to claim 2, wherein the service mode switching device sends the internet data message to the client mode switching device via the internet interface, comprising:
The conversion equipment of the service mode sends the Internet data message to an Internet switch through the Internet interface, and the Internet switch sends the Internet data message to the conversion equipment of the client mode.
4. The method of claim 1, wherein the service mode conversion device sending the internet of view data message to the customer mode conversion device through the second internet of view interface, such that the customer mode conversion device sends the internet of view data message to the internet of view receiving device corresponding to the mac address, comprising:
and the video networking data message is sent to a video networking switch through the second video networking interface, and the video networking switch sends the video networking data message to the conversion equipment of the client mode corresponding to the mac address, so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
5. The method of claim 2, wherein before the service mode switching device receives the internet of view data message sent by the internet of view sending device through the first internet of view interface, the method further comprises:
The conversion equipment of the service mode receives a connection request message sent by the conversion equipment of the client mode through the Internet interface; wherein, the connection request message includes configuration information of the conversion equipment of the client mode;
the conversion equipment of the service mode acquires the IP address and the port of the conversion equipment of the client mode in the configuration information and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode;
and the conversion equipment of the service mode determines the correspondence between the IP address and the port of the conversion equipment of the client mode and the mac address of the video network receiving equipment connected with the conversion equipment of the client mode as the mac address mapping table.
6. The method according to claim 5, wherein after the service mode switching device receives the connection request message sent by the client mode switching device through the internet interface, the method further comprises:
and the conversion equipment of the service mode replies a connection success message to the conversion equipment of the client mode through the Internet interface.
7. A data transmission apparatus, characterized by a switching device for a service mode, the switching device comprising at least a first internet of view interface, a second internet of view interface and an internet interface, the switching device comprising at least a switching device for a service mode and a switching device for a client mode, the apparatus comprising:
The receiving module is used for receiving the video networking data message sent by the video networking sending equipment through the first video networking interface under the condition that the service mode conversion equipment and the client mode conversion equipment establish heartbeat connection; the video networking data message comprises a mac address of video networking receiving equipment;
the video networking sending module is used for sending the video networking data message to the conversion equipment of the client mode through the second video networking interface so that the conversion equipment of the client mode sends the video networking data message to the video networking receiving equipment corresponding to the mac address;
and the internet sending module is used for sending the video network data message to the conversion equipment of the client mode through an internet interface if the heartbeat packet sent by the conversion equipment of the client mode is not received within the preset time, so that the conversion equipment of the client mode sends the video network data message to the video network receiving equipment corresponding to the mac address.
8. The apparatus of claim 7, wherein the internet transmission module is configured to:
according to a pre-established mac address mapping table, determining an IP address and a port number of a conversion device of a client mode corresponding to the mac address;
Encapsulating the video networking data message into an Internet data message;
and sending the Internet data message to the conversion equipment of the client mode through the Internet interface, so that the conversion equipment of the client mode analyzes the Internet data message into the video networking data message, and sends the video networking data message to the video networking receiving equipment corresponding to the mac address.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the data transmission method of any one of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when executed, implements the data transmission method of any one of claims 1-6.
CN202010296932.0A 2020-04-15 2020-04-15 Data transmission method, device, terminal equipment and storage medium Active CN111654390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010296932.0A CN111654390B (en) 2020-04-15 2020-04-15 Data transmission method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010296932.0A CN111654390B (en) 2020-04-15 2020-04-15 Data transmission method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111654390A CN111654390A (en) 2020-09-11
CN111654390B true CN111654390B (en) 2024-03-29

Family

ID=72342875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010296932.0A Active CN111654390B (en) 2020-04-15 2020-04-15 Data transmission method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111654390B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347844A (en) * 2018-10-29 2019-02-15 视联动力信息技术股份有限公司 A kind of method and device of equipment access internet
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device
CN110380946A (en) * 2019-06-17 2019-10-25 视联动力信息技术股份有限公司 A kind of communication means and communication device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10728174B2 (en) * 2018-03-27 2020-07-28 Nicira, Inc. Incorporating layer 2 service between two interfaces of gateway device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347844A (en) * 2018-10-29 2019-02-15 视联动力信息技术股份有限公司 A kind of method and device of equipment access internet
CN110035005A (en) * 2019-02-27 2019-07-19 视联动力信息技术股份有限公司 Data processing method and device
CN110380946A (en) * 2019-06-17 2019-10-25 视联动力信息技术股份有限公司 A kind of communication means and communication device

Also Published As

Publication number Publication date
CN111654390A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US9571382B2 (en) Method, controller, and system for processing data packet
EP3154227A1 (en) Packet transmission method, node, path management server and storage medium
US20140007100A1 (en) Method and Apparatus for Migrating Virtual Machine Parameters and Virtual Machine Server
US20160285820A1 (en) Method for processing address resolution protocol message, switch, and controller
US11405314B2 (en) Packet processing method and apparatus
EP2680507B1 (en) Packet forwarding method and system, and relay agent device
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
WO2016086890A1 (en) Method and device for detecting connectivity
CN112235175A (en) Access method and access device of network bridge equipment and network bridge equipment
CN103095608A (en) Delegation forwarding method for domain name system (DNS) data package
EP3306901A1 (en) Domain name system address configuration method and apparatus, and computer storage medium
US8250186B2 (en) Method and system of smart detection and recovery
EP2345230B1 (en) Method and apparatus for allocating network resources from one address realm to clients in a different address realm
CN111654390B (en) Data transmission method, device, terminal equipment and storage medium
CN106850871B (en) Method for realizing DHCP server with single physical network card and multiple VLANs
CN110636146B (en) User address allocation method and device
EP1512073B1 (en) Load balancer for multiprocessor platforms
CN112152927B (en) Message forwarding method, system, network card and storage medium
CN114024903A (en) Network switching method and device and gateway equipment
CN114301993B (en) Data transmission method, device, terminal equipment and storage medium
CN110943897A (en) PPPoE data message transmission method, device, equipment and storage medium
US12003417B2 (en) Communication method and apparatus
EP4184822A1 (en) Method and apparatus for keeping user terminal alive
JP3132232B2 (en) Data link layer type automatic setting device
TWI483605B (en) Deployment method and computer system for network 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