Data transmission method, device, terminal equipment and storage medium

By using hash lists to manage memory space in the bridge server, the problem of frequent memory creation and release when the bridge server processes multiple business data packets is solved, improving performance and efficiency.

CN112218104BActive Publication Date: 2024-10-15VISIONVERA INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202010918166.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-03
Publication Date
2024-10-15
Estimated Expiration
2040-09-03

AI Technical Summary

Technical Problem

The bridge server frequently creates and releases memory space when processing multiple business data packets, which increases the operating burden and affects performance.

Method used

By receiving the business data packet sent by the video network server, the hash value is determined based on the source address and destination address, the corresponding memory space identifier is found in the pre-established hash list, and the data packet is stored in the pre-allocated memory space to avoid New memory is created every time.

Benefits of technology

It reduces the operating burden of the bridge server, improves data processing efficiency, and avoids the need to frequently create memory space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112218104B_ABST
    Figure CN112218104B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a data transmission method, apparatus, terminal device and storage medium, including: a bridge server receives at least two business data packets sent by a first-area visual network server; determines a destination hash value corresponding to the first-area visual network server according to a source address of the first-area visual network server and a destination address of the second-area visual network server; searches for a destination memory space identifier corresponding to the destination hash value in a hash list of a pre-established business object according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, and stores the received business data packet in a pre-allocated memory space, so that there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual networking technology, and in particular to a data transmission method, apparatus, terminal equipment and storage medium. Background Art

[0002] Currently, different local area visual networks use bridge servers as bridges for business communications. However, as the demand for visual network services continues to expand, the performance requirements for bridge servers are also getting higher and higher.

[0003] When two different local visual networks, such as network A and network B, communicate data, the bridge server is connected to the network A server and the network B server respectively. When the bridge server receives a business data packet sent by the network A server, it needs to create a corresponding memory space to store the business data packet. After sending the business data packet from the memory space to the network B server, the bridge server will release the memory space to receive new business data packets.

[0004] If multiple service data packets are received, memory space needs to be frequently created and released multiple times, and the creation and release of memory space will increase the operating burden of the bridge server and affect the performance of the bridge server. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device and storage medium that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present invention provides a data transmission method, the method comprising:

[0007] Receiving at least two service data packets sent by the first-region visual network server, wherein the service data packets at least include a source address of the first-region visual network server and a destination address of the second-region visual network server;

[0008] Determine a destination hash value corresponding to the first regional visual network server according to the source address of the first regional visual network server and the destination address of the second regional visual network server;

[0009] According to the destination hash value corresponding to the first regional visual network server, searching for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values;

[0010] storing the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier;

[0011] The at least two service data packets in the destination memory space are sent to a second regional visual network server corresponding to a destination address of the second regional visual network server.

[0012] Optionally, the sending of the at least two service data packets in the destination memory space to a second-region visual network server corresponding to a destination address of the second-region visual network server comprises:

[0013] According to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes at least one of a business type, an encoding format, and bandwidth data;

[0014] Packaging the data content in the service data packet and the destination service object to obtain a destination data packet;

[0015] The destination data packet is sent to a second regional visual network server corresponding to a destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute a service corresponding to the service type.

[0016] Optionally, the method further comprises:

[0017] When the first-region visual network server and the second-region visual network server complete the execution of the service corresponding to the service type, the destination memory space corresponding to the first-region visual network server is released.

[0018] Optionally, before receiving at least two service data packets sent by the first regional visual network server, the method further includes:

[0019] Receiving an application request for a communication number sent by the first regional visual network server, wherein the application request includes a first visual network number of the first regional visual network server;

[0020] According to the first visual network number of the first regional visual network server, searching for the second visual network number of the second regional visual network server corresponding to the first visual network number; wherein the first visual network number and the second visual network number are bound in advance;

[0021] The second visual network number of the second-area visual network server is sent to the first-area visual network server.

[0022] Optionally, determining the destination hash value corresponding to the first regional visual network server according to the source address of the first regional visual network server and the destination address of the second regional visual network server includes:

[0023] The first visual network number and the second visual network number are added to obtain a destination hash value corresponding to the first regional visual network server, wherein the source address of the first regional visual network server is the first visual network number, and the destination address of the second regional visual network server is the second visual network number.

[0024] Optionally, the method further comprises:

[0025] When at least two of the first-region visual network servers send at least two first data packets, at least two threads are started to receive the at least two first data packets, and each thread is used to save the first data packets into a pre-set first memory space corresponding to the first-region visual network server.

[0026] In a second aspect, an embodiment of the present invention provides a data transmission device, the device comprising:

[0027] A receiving module, used for receiving at least two service data packets sent by the first regional visual network server, wherein the service data packets at least include a source address of the first regional visual network server and a destination address of the second regional visual network server;

[0028] A determination module, configured to determine a destination hash value corresponding to the first regional visual network server according to a source address of the first regional visual network server and a destination address of the second regional visual network server;

[0029] A search module, for searching, according to the destination hash value corresponding to the first regional visual network server, a destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values;

[0030] A storage module, used for storing the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier;

[0031] A sending module is used to send the at least two service data packets in the destination memory space to a second regional visual network server corresponding to the destination address of the second regional visual network server.

[0032] Optionally, the sending module is used to:

[0033] According to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes at least one of a business type, an encoding format, and bandwidth data;

[0034] Packaging the data content in the service data packet and the destination service object to obtain a destination data packet;

[0035] The destination data packet is sent to a second regional visual network server corresponding to a destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute a service corresponding to the service type.

[0036] Optionally, the device further comprises a releasing module, wherein the releasing module is used to:

[0037] When the first-region visual network server and the second-region visual network server complete the execution of the service corresponding to the service type, the destination memory space corresponding to the first-region visual network server is released.

[0038] Optionally, the device further comprises an application module, wherein the application module is used to:

[0039] Receiving an application request for a communication number sent by the first regional visual network server, wherein the application request includes a first visual network number of the first regional visual network server;

[0040] According to the first visual network number of the first regional visual network server, searching for the second visual network number of the second regional visual network server corresponding to the first visual network number; wherein the first visual network number and the second visual network number are bound in advance;

[0041] The second visual network number of the second-area visual network server is sent to the first-area visual network server.

[0042] Optionally, the determining module is used to:

[0043] The first visual network number and the second visual network number are added to obtain a destination hash value corresponding to the first regional visual network server, wherein the source address of the first regional visual network server is the first visual network number, and the destination address of the second regional visual network server is the second visual network number.

[0044] Optionally, the device further includes a multi-thread module, and the multi-thread module is used to:

[0045] When at least two of the first-region visual network servers send at least two first data packets, at least two threads are started to receive the at least two first data packets, and each thread is used to save the first data packets into a pre-set first memory space corresponding to the first-region visual network server.

[0046] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;

[0047] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.

[0048] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the data transmission method provided in the first aspect is implemented.

[0049] The embodiments of the present invention include the following advantages:

[0050] The data transmission method, apparatus, terminal device and storage medium provided by the embodiments of the present invention receive at least two business data packets sent by a first-area visual network server through a bridge server; determine the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; search for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and store the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; send at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a flowchart of a data transmission method embodiment of the present invention;

[0052] Figure 2 is a flowchart of another data transmission method embodiment of the present invention;

[0053] Figure 3 is a structural block diagram of an embodiment of a data transmission device of the present invention;

[0054] Figure 4 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION

[0055] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] The visual Internet is an important milestone in the development of the Internet. It is a real-time network that can realize real-time transmission of high-definition video and push many Internet applications towards high-definition video and high-definition face-to-face communication.

[0057] The visual network adopts real-time high-definition video exchange technology. It can integrate the required services such as high-definition video conferencing, video monitoring, intelligent monitoring analysis, emergency command, digital radio and television, delayed TV, online teaching, live broadcast, VOD on demand, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release and dozens of other video, voice, picture, text, communication, data and other services on a single system platform, and realize high-definition quality video playback through TV or computer.

[0058] The glossary is explained as follows:

[0059] Hash: It is a data structure that is directly accessed based on the key value. In other words, it accesses records by mapping the key value to a position in the table to speed up the search.

[0060] Memory object: Memory is one of the important components of a computer. Memory is also called internal storage and main storage. It is used to temporarily store the calculation data in the CPU and the data exchanged with external storage such as hard disk. A group of data (objects) can be stored in the internal storage, that is, the memory object.

[0061] An embodiment of the present invention provides a data transmission method for two visual network servers in different regions to perform data transmission. The execution subject of this embodiment is a data transmission device, which is set on a bridge server.

[0062] Reference Figure 1 , shows a flow chart of a data transmission method embodiment of the present invention, the method may specifically include the following steps:

[0063] S101, receiving at least two service data packets sent by a first-region visual network server, wherein the service data packets at least include a source address of the first-region visual network server and a destination address of a second-region visual network server;

[0064] Specifically, the bridge server plays an indispensable role in the visual networking business scenario, and is responsible for bridging multiple LANs. Currently, there are more than 20 16-bit and 64-bit bridge servers deployed nationwide, and the number of visual networking services performed every day ranges from thousands to tens of thousands. As a bridge for visual networking services, the bridge server must ensure at least 7*24 hours of uninterrupted service. A bridge server is set between two different LANs, and multiple visual networking servers can be included in each LAN.

[0065] A bridging server connects visual network servers in two different local area networks, such as a first area of ​​the visual network and a second area of ​​the visual network. The first area includes multiple first area visual network servers, and the second area includes multiple second area visual network servers. The first area visual network servers and the second area visual network servers are pre-bound in service on the bridging server, and addresses are allocated to the first area visual network servers and the second area visual network servers, such as allocating a source address to the first area visual network servers and allocating a destination address to the second area visual network servers. When at least two service data packets sent by the first area visual network servers are received, the service data packets include the source address of the first area visual network servers and the destination address of the second area visual network servers.

[0066] S102, determining a destination hash value corresponding to the first regional visual network server according to the source address of the first regional visual network server and the destination address of the second regional visual network server;

[0067] Specifically, the source address of the first-area visual network server and the destination address of the second-area visual network server are both visual network numbers. The bridge server calculates the visual network number of the first-area visual network server and the visual network number of the second-area visual network server to obtain the destination hash value corresponding to the first-area visual network server.

[0068] S103, according to the destination hash value corresponding to the first regional visual network server, searching for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values;

[0069] Specifically, a hash list of business objects is pre-established on the bridging server, and the hash list of business objects includes the correspondence between business objects, memory space identifiers and hash values. The business objects include at least one of business type, encoding format and bandwidth data, and memory space is pre-allocated to each visual network server according to the different businesses being performed, and a memory space identifier is set for each memory space. The memory space identifier is obtained by adding the source address of the visual network server in the first area and the destination address of the visual network server in the second area.

[0070] When the bridge server searches for the destination memory space identifier corresponding to the destination hash value in the hash list of the pre-established business objects according to the destination hash value corresponding to the first regional visual network server.

[0071] S104, storing the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier;

[0072] Specifically, the bridge server stores the at least two received service data packets into a pre-allocated memory space corresponding to the destination memory space identifier according to the timestamps of the received service data packets, thereby improving the efficiency of data processing.

[0073] S105. Send the at least two service data packets in the destination memory space to a second-region visual network server corresponding to the destination address of the second-region visual network server.

[0074] Specifically, the bridging server sends at least two business data packets in the destination memory space to the second-area visual network server corresponding to the destination address of the second-area visual network server, and the second-area visual network server then sends the business data packets to the business visual network terminal connected to the second-area visual network server. In this way, the business visual network terminals in the first area and the business visual network terminals in the second area can execute the business.

[0075] Exemplarily, a bridge server is set between network A and network B, and a business video networking terminal C in network A sends a videophone request to a business video networking terminal D in network B. Business video networking terminal C sends a first business data packet to the server of network A. The first business data packet includes the source address of the video networking server of network A, the destination address of the video networking server of network B, and the data content. The bridge server stores the first business data packet in a memory space pre-allocated for the video networking server of network A, repackages the first business data packet, and sends the repackaged business data packet to the video networking server of network B. The video networking server of network B then sends the repackaged business data packet to the business video networking terminal D. In this way, the business video networking terminal C in network A and the business video networking terminal D in network B establish a videophone connection. If the videophone lasts for one hour, several business data packets received subsequently are processed in the above manner. When the service is completed, the bridge server releases the memory space.

[0076] The data transmission method provided by the embodiment of the present invention receives at least two business data packets sent by the first-area visual network server through a bridge server; determines the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; searches for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0077] Another embodiment of the present invention further supplements the data transmission method provided in the above embodiment.

[0078] like Figure 2 As shown, a step flow chart of another data transmission method embodiment of the present invention is shown. In the embodiment of the present invention, if at least two first-area visual network servers in a first area send a first data packet to a bridging server, the bridging server starts at least two threads to receive the at least two first data packets, and each thread is used to save the first data packet to a pre-set first memory space corresponding to the first-area visual network server.

[0079] The specific data transmission method for each thread is shown in the following steps:

[0080] The data transmission method includes:

[0081] S201, receiving an application request for a communication number sent by the first regional visual network server, wherein the application request includes a first visual network number of the first regional visual network server;

[0082] S202, according to the first visual network number of the first regional visual network server, searching for the second visual network number of the second regional visual network server corresponding to the first visual network number; wherein the first visual network number and the second visual network number are bound in advance;

[0083] S203, sending the second visual network number of the second-area visual network server to the first-area visual network server.

[0084] Specifically, on the bridging server, the first visual network number of the first-area visual network server and the second visual network number of the second-area visual network server are bound in advance. When an application request for a communication number is received from the first-area visual network server, the bound pair of visual network numbers are sent to the first-area visual network server to enable the first-area visual network server and the second-area visual network server to perform data transmission. After the data transmission is completed, the visual network number is released and a new visual network number is allocated to the first-area visual network server.

[0085] S204, receiving at least two service data packets sent by the first-region visual network server, wherein the service data packets at least include a source address of the first-region visual network server and a destination address of the second-region visual network server;

[0086] S205. Add the first visual network number and the second visual network number to obtain a destination hash value corresponding to the first regional visual network server, wherein the source address of the first regional visual network server is the first visual network number, and the destination address of the second regional visual network server is the second visual network number.

[0087] S206, according to the destination hash value corresponding to the first regional visual network server, searching for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values;

[0088] Since steps S204 to S206 are Figure 1 Steps S101 and S103 in the illustrated embodiment are identical. Figure 1 Steps S101 to S103 have been described in detail in the specification, so steps S204 to S206 will not be described again here.

[0089] S207, according to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes at least one of a business type, an encoding format, and bandwidth data;

[0090] Specifically, the hash storage number and business relationship, a business can be stored after it is created, and the next time it is used, the business object can be directly retrieved through the hash value. The business object will always be stored in the memory and can be obtained by the business terminal at any time.

[0091] S208, combining the data content in the service data packet and the target service object to obtain a target data packet;

[0092] Specifically, the service type, encoding format and bandwidth data in the destination service object are packaged with the data content to obtain a destination data packet.

[0093] S209, sending the destination data packet to the second regional visual network server corresponding to the destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute the service corresponding to the service type.

[0094] S210. When the first-region visual network server and the second-region visual network server complete the execution of the service corresponding to the service type, the destination memory space corresponding to the first-region visual network server is released.

[0095] In an embodiment of the present invention, the bridge server only creates memory once when it receives the first packet of the data packet sent by the visual network server. There is no need to create memory objects frequently. It is released once when the service ends, which reduces memory access time and improves data processing efficiency.

[0096] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0097] The data transmission method provided by the embodiment of the present invention receives at least two business data packets sent by the first-area visual network server through a bridge server; determines the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; searches for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0098] Another embodiment of the present invention provides a data transmission device, which is used to execute the data transmission method provided in the above embodiment.

[0099] Reference Figure 3 , shows a structural block diagram of an embodiment of a data transmission device of the present invention, which can be applied to visual networking and can specifically include the following modules: a receiving module 301, a determining module 302, a searching module 303, a saving module 304 and a sending module 305, wherein:

[0100] The receiving module 301 is used to receive at least two service data packets sent by the first regional visual network server, wherein the service data packets at least include a source address of the first regional visual network server and a destination address of the second regional visual network server;

[0101] The determination module 302 is used to determine a destination hash value corresponding to the first regional visual network server according to the source address of the first regional visual network server and the destination address of the second regional visual network server;

[0102] The search module 303 is used to search for a destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the destination hash value corresponding to the first regional visual network server, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values;

[0103] The storage module 304 is used to store the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier;

[0104] The sending module 305 is used to send the at least two service data packets in the destination memory space to the second regional visual network server corresponding to the destination address of the second regional visual network server.

[0105] The data transmission device provided by the embodiment of the present invention receives at least two business data packets sent by the first-area visual network server through a bridge server; determines the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; searches for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0106] Another embodiment of the present invention further supplements the data transmission device provided in the above embodiment.

[0107] Optionally, the sending module is used to:

[0108] According to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes at least one of a business type, an encoding format, and bandwidth data;

[0109] Packaging the data content in the service data packet and the destination service object to obtain a destination data packet;

[0110] The destination data packet is sent to a second regional visual network server corresponding to a destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute a service corresponding to the service type.

[0111] Optionally, the device further comprises a releasing module, wherein the releasing module is used to:

[0112] When the first-region visual network server and the second-region visual network server complete the execution of the service corresponding to the service type, the destination memory space corresponding to the first-region visual network server is released.

[0113] Optionally, the device further comprises an application module, wherein the application module is used to:

[0114] Receiving an application request for a communication number sent by the first regional visual network server, wherein the application request includes a first visual network number of the first regional visual network server;

[0115] According to the first visual network number of the first regional visual network server, searching for the second visual network number of the second regional visual network server corresponding to the first visual network number; wherein the first visual network number and the second visual network number are bound in advance;

[0116] The second visual network number of the second-area visual network server is sent to the first-area visual network server.

[0117] Optionally, the determining module is used to:

[0118] The first visual network number and the second visual network number are added to obtain a destination hash value corresponding to the first regional visual network server, wherein the source address of the first regional visual network server is the first visual network number, and the destination address of the second regional visual network server is the second visual network number.

[0119] Optionally, the device further includes a multi-thread module, and the multi-thread module is used to:

[0120] When at least two of the first-region visual network servers send at least two first data packets, at least two threads are started to receive the at least two first data packets, and each thread is used to save the first data packets into a pre-set first memory space corresponding to the first-region visual network server.

[0121] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.

[0122] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0123] The data transmission device provided by the embodiment of the present invention receives at least two business data packets sent by the first-area visual network server through a bridge server; determines the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; searches for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0124] Still another embodiment of the present invention provides a terminal device for executing the data transmission method provided in the above embodiment.

[0125] Figure 4 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 4 As shown, the terminal device includes: at least one processor 401 and a memory 402;

[0126] The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiment.

[0127] The terminal device provided in this embodiment receives at least two business data packets sent by the first-area visual network server through a bridge server; determines the destination hash value corresponding to the first-area visual network server according to the source address of the first-area visual network server and the destination address of the second-area visual network server; searches for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects according to the hash value corresponding to the first-area visual network server, and stores the business data packet in a pre-allocated destination memory space corresponding to the destination memory space identifier; sends at least two business data packets to the second-area visual network server, so that the received business data packet is saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0128] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the data transmission method provided in any of the above embodiments is implemented.

[0129] According to the computer-readable storage medium of the present embodiment, at least two business data packets sent by the first-area visual network server are received through the bridge server; the destination hash value corresponding to the first-area visual network server is determined according to the source address of the first-area visual network server and the destination address of the second-area visual network server; according to the hash value corresponding to the first-area visual network server, the destination memory space identifier corresponding to the destination hash value is searched in the hash list of the pre-established business object, and the business data packet is stored in the pre-allocated destination memory space corresponding to the destination memory space identifier; at least two business data packets are sent to the second-area visual network server, so that the received business data packets are saved in the pre-allocated memory space, and there is no need to re-create the memory each time a data packet is received, thereby avoiding frequent creation of memory space and reducing the operating burden of the bridge server.

[0130] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0131] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0132] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0133] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0135] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0136] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.

[0137] The data transmission method and the data transmission device provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data transmission method, characterized in that: The method comprises: Receiving at least two service data packets sent by the first-region visual network server, wherein the service data packets at least include a source address of the first-region visual network server and a destination address of the second-region visual network server; Determine a destination hash value corresponding to the first regional visual network server according to the source address of the first regional visual network server and the destination address of the second regional visual network server; According to the destination hash value corresponding to the first regional visual network server, searching for the destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values; storing the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier; Sending the at least two service data packets in the destination memory space to a second regional visual network server corresponding to a destination address of the second regional visual network server; The step of sending the at least two service data packets in the destination memory space to a second-region visual network server corresponding to a destination address of the second-region visual network server comprises: According to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes a business type, an encoding format, and bandwidth data; Packaging the data content in the service data packet and the destination service object to obtain a destination data packet; The destination data packet is sent to a second regional visual network server corresponding to a destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute a service corresponding to the service type.

2. The method according to claim 1, characterized in that: The method further comprises: When the first-region visual network server and the second-region visual network server complete the execution of the service corresponding to the service type, the destination memory space corresponding to the first-region visual network server is released.

3. The method according to claim 1, characterized in that Before receiving at least two service data packets sent by the first regional visual network server, the method further includes: Receiving an application request for a communication number sent by the first regional visual network server, wherein the application request includes a first visual network number of the first regional visual network server; According to the first visual network number of the first regional visual network server, searching for the second visual network number of the second regional visual network server corresponding to the first visual network number; wherein the first visual network number and the second visual network number are bound in advance; The second visual network number of the second-area visual network server is sent to the first-area visual network server.

4. The method according to claim 3, characterized in that The determining, according to the source address of the first-region visual network server and the destination address of the second-region visual network server, a destination hash value corresponding to the first-region visual network server comprises: The first visual network number and the second visual network number are added to obtain a destination hash value corresponding to the first regional visual network server, wherein the source address of the first regional visual network server is the first visual network number, and the destination address of the second regional visual network server is the second visual network number.

5. The method according to claim 1, characterized in that The method further comprises: When at least two of the first-region visual network servers send at least two first data packets, at least two threads are started to receive the at least two first data packets, and each thread is used to save the first data packets into a pre-set first memory space corresponding to the first-region visual network server.

6. A data transmission device, characterized in that: The device comprises: A receiving module, used for receiving at least two service data packets sent by the first regional visual network server, wherein the service data packets at least include a source address of the first regional visual network server and a destination address of the second regional visual network server; A determination module, configured to determine a destination hash value corresponding to the first regional visual network server according to a source address of the first regional visual network server and a destination address of the second regional visual network server; A search module, for searching, according to the destination hash value corresponding to the first regional visual network server, a destination memory space identifier corresponding to the destination hash value in a hash list of pre-established business objects, wherein the hash list of pre-established business objects includes a correspondence between business objects, memory space identifiers and hash values; A storage module, used for storing the service data packet into a pre-allocated destination memory space corresponding to the destination memory space identifier; A sending module, used for sending the at least two service data packets in the destination memory space to a second regional visual network server corresponding to a destination address of the second regional visual network server; The sending module is used for: According to the destination hash value corresponding to the first regional visual network server, searching for a destination business object corresponding to the destination hash value in a hash list of pre-established business objects, wherein the destination business object includes a business type, an encoding format, and bandwidth data; Packaging the data content in the service data packet and the destination service object to obtain a destination data packet; The destination data packet is sent to a second regional visual network server corresponding to a destination address of the second regional visual network server, so that the first regional visual network server and the second regional visual network server execute a service corresponding to the service type.

7. A terminal device, characterized in that: include: 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 according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the data transmission method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Tunnel establishment method and articulated naturality web system

    CN110266577A

  • Memory allocation method and device based on partition design

    CN110727517A

  • Method and device for data transmission between different articulated naturality webs, and storage medium

    CN111478884A

  • Data transmitting method

    CN1801769A

  • Cache device, content distribution system, and content distribution method

    JP2014157459A