A method and system for transmitting data packets

By introducing a switching server into the video network, the transmission and processing of business data packets between the product server and terminal devices are realized, solving the problem that the product server and client are not in the same area and the network is not connected in the video network, thus improving the flexibility of business execution.

CN115208940BActive Publication Date: 2025-11-07VISIONVERA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210661245.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-13
Publication Date
2025-11-07
Estimated Expiration
2042-06-13

AI Technical Summary

Technical Problem

In the video network, when the product server and product client are not in the same area and the network is not connected, business operations cannot be performed, resulting in restrictions on product business execution.

Method used

A switching server is introduced, and the terminal device encapsulates the business data packet into a transparent uplink command packet. The main control device parses and processes the packet, encapsulates the result into a transparent downlink command packet, and the terminal device parses the packet and returns it to the product server, thus realizing the transmission and processing of the business data packet.

Benefits of technology

This reduces the network connection requirements between the business instruction sender and the main control device, and improves the flexibility and adaptability of product business execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115208940B_ABST
    Figure CN115208940B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of data packet transmission method and system, wherein the method comprises: receiving service data packet from product server using terminal equipment, and encapsulating service data packet as transparent uplink instruction package;Using main control device, the transparent uplink instruction package is transmitted to relay server;Using main control device, service data packet obtained by the transparent uplink instruction package of relay server analysis is received, and service processing result is obtained according to service data packet;Using main control device, service processing result is transmitted to relay server;Using main control device, the transparent downlink instruction package obtained by the service processing result of relay server encapsulation is received;Using terminal equipment, service processing result is obtained by the transparent downlink instruction package analysis, and service processing result is transmitted to product server.The embodiment of the present application avoids only sending service data packet from main control device, reduces the network connection requirement between service instruction sender and main control device, and improves the flexibility of product service execution.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, and in particular, to a data packet transmission method and a data packet transmission system. BACKGROUND

[0002] Currently, product servers in the video live network are directly connected to the master control device of the core server for communication and service processing. If the product server connected to the master control device and the corresponding product client are not in the same region, and the network between the product server and the product client is not available, the video live network product cannot be used. For example, the core server has a master control device and multiple sub-control devices, wherein the master control device and the network management server are deployed in A region, the sub-control devices are deployed in B region and C region, and the sub-control device deployed in B region has multiple terminal devices deployed in b1 region. If the network between b1 region and A region is not available or the network where the network management server is located does not allow connection with other external networks, the network management server administrator cannot connect to the network management server to perform business operations.

[0003] Therefore, in the current video live network, if product business needs to be performed, the business instruction must be sent from the master control device, and the network connection between the sender of the business instruction and the master control device is required to be very strict, which seriously limits the execution of product business. SUMMARY

[0004] In view of the above problems, the embodiments of the present application are proposed to provide a data packet transmission method and a corresponding data packet transmission system which overcome the above problems or at least partially solve the above problems.

[0005] To solve the above problems, the embodiment of the present application discloses a kind of transmission methods of data packet, applied to core server, the core server includes master control device and terminal equipment, the master control device is connected with relay server, the terminal equipment is connected with product server, the method comprises: using the terminal equipment receives service data packet from the product server, and the service data packet is encapsulated as pass-through uplink instruction package;Using the master control device is transmitted to the relay server from the pass-through uplink instruction package of the terminal equipment;Using the master control device receives the service data packet obtained by the relay server resolving the pass-through uplink instruction package, and according to the service data packet, service processing result is obtained by service processing;Using the master control device transmits the service processing result to the relay server;Using the master control device receives the pass-through downlink instruction package obtained by the relay server encapsulating the service processing result;Using the terminal equipment resolves the pass-through downlink instruction package from the master control device and obtains the service processing result, and the service processing result is transmitted to the product server.

[0006] Optionally, before the service data packet is received from the product server by the terminal equipment, the method further comprises: receiving login request information from the relay server by the master control device;The login request information is authenticated by the master control device to obtain a login response result, and the login response result is returned to the relay server;Wherein, the login request information includes identity information pre-configured by the relay server and registered in the master control device.

[0007] Optionally, before the service data packet is received from the product server by the terminal equipment, the method further comprises: receiving communication connection information from the product server by the terminal equipment, and establishing communication connection between the terminal equipment and the product server according to the communication connection information;Wherein, the communication connection information includes network information of the terminal equipment.

[0008] Optionally, the pass-through uplink instruction package includes pass-through uplink operation code, initiating device identification of the service data packet, receiving user identification of the service data packet and the service data packet;The pass-through downlink instruction package includes pass-through downlink operation code, receiving device identification of the service processing result, generating user identification of the service processing result and the service processing result.

[0009] Optionally, the relay server is configured to analyze the header of the pass-through uplink instruction package to obtain the service type, store the service data packet in the data packet queue corresponding to the user connection of the service type, so that the service data packet is transmitted from the data packet queue to the master control device.

[0010] Optionally, the relay server is configured to search for a user connection corresponding to the service type according to the service type, and store the service data packet into the data packet queue if the user connection exists; and search for account information corresponding to the service type from a configuration file of the relay server if the user connection does not exist, create the user connection according to the account information, and store the service data packet into the data packet queue.

[0011] Optionally, the relay server is configured to parse a transaction identifier from the service processing result, search for a receiving user identifier of the service data packet according to the transaction identifier, and encapsulate the pass-through downlink instruction packet according to the receiving user identifier of the service data packet and the service processing result.

[0012] The embodiment of the application further discloses a data packet transmission system, comprising a core server, a relay server and a product server, wherein the core server comprises a master device and a terminal device, the master device is connected with the relay server, and the terminal device is connected with the product server; the terminal device is configured to receive a service data packet from the product server and encapsulate the service data packet into a pass-through uplink instruction packet; the master device is configured to transmit the pass-through uplink instruction packet from the terminal device to the relay server; the master device is further configured to receive the service data packet obtained by the relay server by parsing the pass-through uplink instruction packet, and perform service processing according to the service data packet to obtain a service processing result; the master device is further configured to transmit the service processing result to the relay server; the master device is further configured to receive a pass-through downlink instruction packet obtained by the relay server by encapsulating the service processing result; and the terminal device is further configured to parse the pass-through downlink instruction packet from the master device to obtain the service processing result, and transmit the service processing result to the product server.

[0013] Optionally, the master device is further configured to receive login request information from the relay server before the terminal device receives the service data packet from the product server, perform login authentication on the login request information to obtain a login response result, and return the login response result to the relay server; wherein the login request information comprises identity information pre-configured by the relay server and registered in the master device.

[0014] Optionally, the terminal device is further configured to receive communication connection information from the product server before the terminal device receives the service data packet from the product server, and establish a communication connection between the terminal device and the product server according to the communication connection information; wherein the communication connection information comprises network information of the terminal device.

[0015] Optionally, the transparent uplink instruction packet comprises a transparent uplink operation code, an initiating device identifier of the service data packet, a receiving user identifier of the service data packet and the service data packet; and the transparent downlink instruction packet comprises a transparent downlink operation code, a receiving device identifier of the service processing result, a generating user identifier of the service processing result and the service processing result.

[0016] Optionally, the relay server is configured to parse a packet header of the transparent uplink instruction packet to obtain a service type, and store the service data packet into a data packet queue connected with a user corresponding to the service type, so that the service data packet is transmitted from the data packet queue to the master device.

[0017] Optionally, the relay server is configured to search for whether a user connection corresponding to the service type exists according to the service type, and if the user connection exists, store the service data packet into the data packet queue; if the user connection does not exist, search for account information corresponding to the service type from a configuration file of the relay server, create the user connection according to the account information, and store the service data packet into the data packet queue.

[0018] Optionally, the relay server is configured to parse a transaction identifier from the service processing result, search for a receiving user identifier of the service data packet according to the transaction identifier, and encapsulate the receiving user identifier of the service data packet and the service processing result to obtain the transparent downlink instruction packet.

[0019] The embodiment of the application further discloses a communication device, comprising: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the device to perform the data packet transmission method.

[0020] The embodiment of the application further discloses a computer readable storage medium, which stores a computer program that causes a processor to execute the data packet transmission method.

[0021] The embodiment of the application has the following advantages:

[0022] The data packet transmission scheme provided by the embodiment of the application relates to a core server, a switching server and a product server, wherein the core server comprises a master control device and a terminal device, the master control device is connected with the switching server, and the terminal device is connected with the product server. The product server can send a service data packet to the terminal device, and then the terminal device encapsulates the service data packet into a transparent uplink instruction packet, and transmits the transparent uplink instruction packet to the master control device. The master control device transmits the transparent uplink instruction packet to the switching server. The switching server parses the service data packet from the transparent uplink instruction packet, and transmits the service data packet to the master terminal, and then the master terminal performs corresponding service processing according to the service data packet to obtain a service processing result, and transmits the service processing result to the switching server. The switching server encapsulates the service processing result into a transparent downlink instruction packet, and transmits the transparent downlink instruction packet to the master control device. After the master control device transmits the transparent downlink instruction packet to the terminal device, the terminal device parses the service processing result from the transparent downlink instruction packet, and transmits the service processing result to the product server. Thus, the whole product service execution process of the product server sending the service data packet to the terminal device of the core server and receiving the service processing result from the terminal device is realized.

[0023] The terminal device in the embodiment of the application supports receiving a service data packet, encapsulating and forwarding a transparent uplink instruction packet according to the service data packet, and parsing a transparent downlink instruction packet to obtain a service processing result and returning the service processing result to a product server. Moreover, the embodiment of the application further adds a switching server, which parses a transparent uplink instruction packet to obtain a service data packet, transmits the service data packet to a master control device, receives a service processing result from the master control device, and encapsulates and forwards a transparent downlink instruction packet to the master control device according to the service processing result. This avoids being able to only send a service data packet from the master control device, reduces the network connection requirement between a service instruction sender and the master control device, and improves the flexibility of product service execution. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 is a connection relationship diagram between a core server, a switching server and a service layer in the embodiment of the application;

[0025] Figure 2 is a step flowchart of a data packet transmission method in the embodiment of the application;

[0026] Figure 3 is a product service execution flowchart based on a vision internet in the embodiment of the application;

[0027] Figure 4 is a structure block diagram of a data packet transmission system in the embodiment of the application. DETAILED DESCRIPTION

[0028] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.

[0029] Embodiments of the present application can involve a core server, a conversion server and a service layer. Referring to Figure 1 , a schematic diagram of the connection relationship between the core server, the conversion server and the service layer in the embodiments of the present application is shown. In Figure 1 , the core server includes a master control device, a plurality of sub-control devices and a plurality of terminal devices. The master control device is the brain of the core server, used for receiving and processing service instructions sent by the service layer and returning service processing results to the service layer. The sub-control devices are cascaded under the master control device, used for forwarding data. The terminal devices are physical devices or virtual devices cascaded under the sub-control devices. The service layer can be divided into a conference management service product side and a network management service product side according to different service types. The conference management service product side includes a conference management server and a conference management client, and the conference management server is connected with the terminal device and the conference management client respectively. The network management service product side includes a network management server and a network management client, and the network management server is connected with the terminal device and the network management client respectively.

[0030] The conference management server and the network management server can be collectively referred to as a product server, and the conference management client and the network management client can be collectively referred to as a product client. After the product server is connected with the terminal device, the product client can transmit service data packets to the terminal device. The terminal device encapsulates the service data packets into a transparent uplink instruction packet. The transparent uplink instruction packet carries a service request sent by the service layer to the conversion server. The transparent uplink instruction packet passes through the sub-control device and the master control device in turn and reaches the conversion server. The conversion server parses the transparent uplink instruction packet to obtain the service data packet, transmits the service data packet to the master control device, and then controls the core server to execute corresponding services to obtain service processing results by the master control device. The conversion server encapsulates the service processing results into a transparent downlink instruction packet, transmits the transparent downlink instruction packet to the terminal device through the master control device and the sub-control device in turn. The terminal device parses the transparent downlink instruction packet to obtain the service processing results, and returns the service processing results to the product client through the product server.

[0031] Referring to Figure 2 , a step flowchart of a data packet transmission method in the embodiments of the present application is shown. The method can be applied to a core server, which includes a master control device and a terminal device. The master control device is connected with a conversion server, and the terminal device is connected with a product server. The method can specifically include the following steps:

[0032] Step 201, receiving a service data packet from the product server by using the terminal device, and encapsulating the service data packet into a transparent uplink instruction packet.

[0033] In the embodiment of the present application, the product server receives the service instruction or product request of the product client. The service instruction or product request can be carried in a service data packet, sent to the product server by the product client, and forwarded to the terminal device by the product server. The terminal device has the capability of encapsulating the service data packet into a transparent uplink instruction packet.

[0034] In step 202, the transparent uplink instruction packet from the terminal device is transmitted to the switching server by the master device.

[0035] In the embodiment of the present application, the terminal device can transmit the transparent uplink instruction packet to the corresponding sub-control device, which forwards the transparent uplink instruction packet to the corresponding master device. The master device forwards the transparent uplink instruction packet to the switching server.

[0036] The switching server is a newly added server in the embodiment of the present application. The switching server is in communication connection with the core server, specifically, the switching server is in communication connection with the master device in the core server.

[0037] In step 203, the service data packet obtained by the switching server by analyzing the transparent uplink instruction packet is received by the master device, and the service processing result is obtained by performing service processing according to the service data packet.

[0038] In the embodiment of the present application, the switching server can analyze the transparent uplink instruction packet to obtain the service data packet. Then, the switching server transmits the analyzed service data packet to the core server, which performs relevant services according to the service data packet to obtain the service processing result.

[0039] In step 204, the service processing result is transmitted to the switching server by the master device.

[0040] In the embodiment of the present application, after the core server performs relevant services according to the service data packet to obtain the service processing result, the master device returns the service processing result to the switching server.

[0041] In step 205, the transparent downlink instruction packet obtained by the switching server by encapsulating the service processing result is received by the master device.

[0042] In the embodiment of the present application, after receiving the service processing result, the switching server can encapsulate the service processing result into a transparent downlink instruction packet, and transmit the transparent downlink instruction packet to the core server. Specifically, the switching server transmits the transparent downlink instruction packet to the master device of the core server.

[0043] In step 206, the service processing result is obtained by the terminal device by analyzing the transparent downlink instruction packet from the master device, and the service processing result is transmitted to the product server.

[0044] In the embodiment of the application, after the master control device receives the transparent downlink instruction package, the transparent downlink instruction package is transmitted to the corresponding sub-control device, and the sub-control device forwards the transparent downlink instruction package to the corresponding terminal device. After the terminal device receives the transparent downlink instruction package, the service processing result is obtained by analyzing the transparent downlink instruction package, and the service processing result is returned to the product server. Finally, the product server sends the service processing result to the product client. Thus, the entire product service execution from the product client issuing a service instruction or product request to the product client receiving the service processing result is completed.

[0045] The transmission scheme of the data package provided by the embodiment of the application involves a core server, a switching server and a product server, wherein the core server includes a master control device and a terminal device, the master control device is connected with the switching server, and the terminal device is connected with the product server. The product server can send a service data package to the terminal device, and then encapsulate the service data package into a transparent uplink instruction package by using the terminal device, and transmit the transparent uplink instruction package to the master control device. The master control device transmits the transparent uplink instruction package to the switching server. The switching server analyzes the service data package from the transparent uplink instruction package, and transmits the service data package to the master terminal, and then the master terminal performs corresponding service processing according to the service data package to obtain a service processing result, and transmits the service processing result to the switching server. The switching server encapsulates the service processing result into a transparent downlink instruction package, and transmits the transparent downlink instruction package to the master control device. After the master control device transmits the transparent downlink instruction package to the terminal device, the terminal device analyzes the service processing result from the transparent downlink instruction package, and transmits the service processing result to the product server. Thus, the execution flow of the entire product service that the product server issues a service data package to the terminal device of the core server and receives the service processing result from the terminal device is realized.

[0046] The terminal device in the embodiment of the application supports receiving a service data package, encapsulating and forwarding a transparent uplink instruction package according to the service data package, analyzing a transparent downlink instruction package to obtain a service processing result, and returning the service processing result to a product server. Moreover, the embodiment of the application further adds a switching server, which analyzes a transparent uplink instruction package to obtain a service data package, transmits the service data package to a master control device, receives a service processing result from the master control device, and encapsulates and forwards a transparent downlink instruction package to the master control device according to the service processing result. This avoids being able to only issue a service data package from the master control device, reduces the network connection requirement between the service instruction sender and the master control device, and improves the flexibility and adaptability of product service execution.

[0047] Referring to Figure 3 , a product service execution flowchart based on the vision internet in the embodiment of the application is shown. In Figure 3In the core server, the master control device, the sub-control device and the terminal device are included. The terminal device is connected with the product server in the video live network product (the business layer), and the product server is connected with the product client. The master control device is connected with the switching server.

[0048] Initially, the switching server needs to establish a communication connection with the master control device. That is, before the terminal device receives the service data packet from the product server in the above embodiment, the master control device receives the login request information from the switching server; the master control device performs login authentication on the login request information to obtain a login response result, and returns the login response result to the switching server; wherein the login request information contains the identity information pre-configured by the switching server and registered in the master control device. In actual application, the switching server can connect to the management interface of the master control device through the socket in the tcp protocol, and initiate a login request to the core server according to the pre-configured username and password. The login request complies with the video live network protocol, and mainly contains the following information: operation code (user login), username, password, heartbeat timeout time, etc. The master control device processes the login request and returns the login result, which mainly contains: operation code (user login response), username, user type, result (0 indicates success, and others indicate failure), etc. If the login is successful, the switching server maintains the heartbeat between the core server to make the login connection not offline.

[0049] It should be noted that the switching server needs to pre-configure multiple different types of usernames and passwords registered in the core server, such as root user, network management user, meeting management user, and transparent user, etc. The various information pre-configured by the switching server can be stored in the local configuration file, and the format of the configuration file mainly includes: core server ip, port, user list (user type, username, password), etc.

[0050] Moreover, before the terminal device receives the service data packet from the product server, the terminal device receives the communication connection information from the product server, and establishes the communication connection between the terminal device and the product server according to the communication connection information. Wherein, the communication connection information contains the network information of the terminal device. In actual application, the product server starts, and establishes the communication connection with the terminal device according to the pre-configured communication connection information (ip, port, etc.). The communication connection information contains the ip and port of the terminal device to be connected.

[0051] After the communication connection between the relay server and the core server is established, and the communication connection between the product server and the terminal device is established, the product client sends a service request (a service data packet) to the product server. The service data packet reaches the terminal device through the communication connection established between the product server and the terminal device, the terminal device acquires the service data packet, encapsulates a transparent uplink instruction packet, and transmits the transparent uplink instruction packet to the corresponding sub-control device, and finally the sub-control device forwards the transparent uplink instruction packet to the master control device. The transparent uplink instruction packet is a command for the Internet-based live streaming product to send a service request to the relay server. The transparent uplink instruction packet mainly includes: an operation code (transparent uplink), an initiating device number, a receiving user identifier, and payload content (the acquired service data packet). The receiving user identifier is an identifier corresponding to the login of the transparent user of the relay server to the core server, which can be stored in a configuration file of the terminal device.

[0052] After the master control device receives the transparent uplink instruction packet, the master control device parses the receiving user identifier and the service data packet. If it is detected that the user corresponding to the receiving user identifier does not establish a connection with the master control device, the service data packet is discarded. If it is detected that the user corresponding to the receiving user identifier establishes a connection with the master control device, the service data packet is forwarded to the relay server.

[0053] The relay server can parse the transparent uplink instruction packet to acquire the initiating device identifier and the service data packet. In addition, the relay server can also acquire the service type according to the Internet-based live streaming protocol by parsing the header of the transparent uplink instruction packet, and store the service data packet in a data packet queue corresponding to the user connection, so as to transmit the service data packet from the data packet queue to the master control device. The service type can include network management service, meeting management service, and the like. In actual application, the relay server can search whether there is a user connection corresponding to the service type according to the service type. If there is a user connection, the service data packet is stored in a data packet queue corresponding to the user connection. If there is no user connection, the relay server searches the account information corresponding to the service type from a configuration file of the relay server, creates a user connection according to the account information, and stores the service data packet in a data packet queue corresponding to the user connection. The above-mentioned user connection can be understood as a user connection established with the core server.

[0054] The service data packet is stored in the data packet queue and waits to be sent to the core server. When the service data packet is sent to the core server, the relay server records the transaction identifier (Internet-based live streaming unique, the transaction identifier in the service data packet and the corresponding service processing result is the same) and the terminal device identifier of the terminal device sending the service data packet.

[0055] If the account information corresponding to the type of service is not configured in the switching server, or the user login fails, the encapsulation service initiation result transparent downlink instruction package is transmitted downward to the terminal device, and the encapsulation service initiation result transparent downlink instruction package mainly includes: operation code (transparent downlink), receiving device number, initiating user identification, and load content (the load content is different for different services, and here is the service initiation result: 0 indicates success, and others indicate failure).

[0056] After the master control device receives the service data package of the switching server, the service data package is parsed and corresponding service processing is performed, and the service processing result is returned to the switching server.

[0057] After the switching server receives the service processing result returned by the core server, the transaction identification in the service processing result is parsed, and the receiving user identification of the service data package is found according to the transaction identification. The switching server encapsulates the transparent downlink instruction package according to the receiving user identification of the service data package and the service processing result, and the transparent downlink instruction package is transmitted to the slave control device by the master control device, and finally transmitted to the terminal device by the slave control device. The transparent downlink instruction package mainly includes: operation code (transparent downlink), receiving device identification, generated user identification of the service processing result, and load content (the load content is different for different services, and here the load content is the service processing result returned by the core server).

[0058] The terminal device receives the transparent downlink instruction package, obtains the load content therein and sends it to the product server, the product server performs corresponding service according to the service processing result, and feeds back the service result to the product client.

[0059] The switching server in the embodiment of the application can parse the transparent uplink instruction package to obtain the service data package, and can also encapsulate the service processing result into the transparent downlink instruction package, and can also encapsulate the service initiation result into the service initiation result transparent downlink instruction package. The switching server establishes a communication connection with the core server through a pre-configured username and password, and keeps the communication connection open. In the case that the video networking product cannot directly connect to the master control device, the switching server can forward the service request of the video networking product to the core server, and return the service processing result of the core server to the video networking product, thereby reducing the network environment requirement of the video networking product.

[0060] The terminal device in the embodiment of the application establishes a communication connection with the video networking product, receives the service request of the video networking product, and forwards the service request to the switching server in the form of a transparent uplink instruction package. Moreover, the terminal device receives the transparent downlink instruction package returned by the switching server, and further parses the service processing result or the service initiation result, and finally returns the service processing result or the service initiation result to the video networking product, thereby avoiding the network condition limitation that the video networking product must be connected to the master control device to initiate a service request, and improving the flexibility of the video networking product to initiate a service request.

[0061] It should be noted that for the method embodiments, the series of acts complement each other to achieve the present application embodiments, and the present application embodiments are not limited to the order of the acts described. Further, those skilled in the art will appreciate that one or more acts can be carried out concurrently, or with partial concurrence, or in different orders, depending on the application. Also, the acts can be carried out in any order that is practicable, and the application embodiments recognized as equivalent as far as the acts remain the same.

[0062] With reference to Figure 4 , a structural block diagram of a data packet transmission system is shown, which can include a core server, a relay server and a product server, the core server includes a master device and a terminal device, the master device is connected with the relay server, and the terminal device is connected with the product server.

[0063] The terminal device is configured to receive a service data packet from the product server, and encapsulate the service data packet into a transparent uplink instruction packet.

[0064] The master device is configured to transmit the transparent uplink instruction packet from the terminal device to the relay server.

[0065] The master device is further configured to receive the service data packet obtained by the relay server analyzing the transparent uplink instruction packet, and perform service processing according to the service data packet to obtain a service processing result.

[0066] The master device is further configured to transmit the service processing result to the relay server.

[0067] The master device is further configured to receive a transparent downlink instruction packet encapsulated by the relay server from the service processing result.

[0068] The terminal device is further configured to analyze the transparent downlink instruction packet from the master device to obtain the service processing result, and transmit the service processing result to the product server.

[0069] In a preferred embodiment of the present application, the master device is further configured to receive login request information from the relay server before the terminal device receives the service data packet from the product server, perform login authentication on the login request information to obtain a login response result, and return the login response result to the relay server.

[0070] The login request information includes identity information pre-configured by the relay server and registered in the master device.

[0071] In a preferred embodiment of the present application, the terminal device is further configured to receive communication connection information from the product server before receiving the service data packet from the product server, and establish a communication connection between the terminal device and the product server according to the communication connection information.

[0072] The communication connection information comprises network information of the terminal device.

[0073] In a preferred embodiment of the present application, the transparent uplink instruction packet comprises a transparent uplink operation code, an initiating device identifier of the service data packet, a receiving user identifier of the service data packet, and the service data packet.

[0074] The transparent downlink instruction packet comprises a transparent downlink operation code, a receiving device identifier of the service processing result, a generating user identifier of the service processing result, and the service processing result.

[0075] In a preferred embodiment of the present application, the relay server is configured to parse a packet header of the transparent uplink instruction packet to obtain a service type, store the service data packet into a packet queue of a user connection corresponding to the service type, and transmit the service data packet from the packet queue to the master device.

[0076] In a preferred embodiment of the present application, the relay server is configured to search for whether a user connection corresponding to the service type exists according to the service type, store the service data packet into the packet queue if the user connection exists, search for account information corresponding to the service type from a configuration file of the relay server if the user connection does not exist, create the user connection according to the account information, and store the service data packet into the packet queue.

[0077] In a preferred embodiment of the present application, the relay server is configured to parse a transaction identifier from the service processing result, search for a receiving user identifier of the service data packet according to the transaction identifier, and encapsulate the transparent downlink instruction packet according to the receiving user identifier of the service data packet and the service processing result.

[0078] For the system embodiment, it is basically similar to the method embodiment, so the description is relatively simple, and the relevant parts are described in the method embodiment.

[0079] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same and similar parts of each embodiment can be referred to each other.

[0080] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, apparatus, or computer program product. Accordingly, embodiments of the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, and the like) embodying computer program code thereon for use by or in connection with an instruction execution system. For the purposes of this description, a computer-usable or computer readable storage medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

[0081] Embodiments of the present application are described herein with reference to the drawings, which are as follows: Figure 1 one or more processes and / or blocks Figure 1 means for performing the functions specified in the one or more processes and / or blocks.

[0082] These computer program instructions can 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 instructions which implement the Figure 1 one or more processes and / or blocks Figure 1 one or more processes and / or blocks. These computer program instructions can also be loaded into 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 Figure 1 one or more processes and / or blocks Figure 1 one or more processes and / or blocks. Although preferred embodiments of the present application have been described, those skilled in the art will be able to make additional modifications and variations to the described embodiments without departing from the inventive concepts described herein. Accordingly, the appended claims are intended to be construed broadly and to encompass all such modifications and variations.

[0083] Finally, it is to be understood that the phraseology or terminology such as "first" and "second" etc. used herein is merely intended to differentiate one entity or operation from another entity or operation, without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprising", "including", or any other closure, are intended to cover the non-exclusive inclusion such that a process, method, article, or apparatus that comprises a list of elements does not include those elements alone but can include other elements not expressly listed or even include elements inherent in such process, method, article, or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0084] The above describes in detail the data packet transmission method and data packet transmission system provided by the present application. The principles and implementation modes of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation modes and application ranges can be changed according to the idea of the present application. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method of transmitting a data packet, characterized by, The application is applied to a core server, the core server comprises a master device and a terminal device, the master device is connected with a switching server, and the terminal device is connected with a product server, and the method comprises the following steps: receiving a service data packet from the product server by using the terminal device, and encapsulating the service data packet into a transparent uplink instruction packet; transmitting the transparent uplink instruction packet from the terminal device to the switching server by using the master device; receiving the service data packet obtained by the switching server by analyzing the transparent uplink instruction packet by using the master device, and performing service processing according to the service data packet to obtain a service processing result; transmitting the service processing result to the switching server by using the master device; receiving a transparent downlink instruction packet obtained by the switching server by encapsulating the service processing result by using the master device; analyzing the transparent downlink instruction packet from the master device to obtain the service processing result by using the terminal device, and transmitting the service processing result to the product server.

2. The method of claim 1, wherein, Before the step of receiving the service data packet from the product server by using the terminal device, the method further comprises the following steps: receiving login request information from the switching server by using the master device; performing login authentication on the login request information to obtain a login response result by using the master device, and returning the login response result to the switching server; wherein the login request information comprises identity information pre-configured by the switching server and registered in the master device.

3. The method of claim 1, wherein, Before the step of receiving the service data packet from the product server by using the terminal device, the method further comprises the following steps: receiving communication connection information from the product server by using the terminal device, and establishing a communication connection between the terminal device and the product server according to the communication connection information; wherein the communication connection information comprises network information of the terminal device.

4. The method of claim 1, wherein, The transparent uplink instruction packet comprises a transparent uplink operation code, an initiating device identifier of the service data packet, a receiving user identifier of the service data packet, and the service data packet. The transparent downlink instruction packet comprises a transparent downlink operation code, a receiving device identifier of the service processing result, a generating user identifier of the service processing result, and the service processing result.

5. The method of claim 1, wherein, The switching server is used for analyzing a packet header of the transparent uplink instruction packet to obtain a service type, storing the service data packet into a data packet queue of a user connection corresponding to the service type, so that the service data packet is transmitted from the data packet queue to the master device.

6. The method of claim 5, wherein, The switching server is used for searching whether there is a user connection corresponding to the service type according to the service type, and if the user connection exists, storing the service data packet into the data packet queue; if the user connection does not exist, searching account information corresponding to the service type from a configuration file of the switching server, creating the user connection according to the account information, and storing the service data packet into the data packet queue.

7. The method of claim 4, wherein, The switching server is configured to parse a transaction identifier from the service processing result, to search for a receiving user identifier of the service data packet according to the transaction identifier, and to encapsulate the pass-through downlink instruction packet according to the receiving user identifier of the service data packet and the service processing result.

8. A data packet transmission system characterized by comprising: The system comprises a core server, a switching server and a product server, the core server comprises a master device and a terminal device, the master device is connected with the switching server, and the terminal device is connected with the product server; The terminal device is configured to receive the service data packet from the product server and encapsulate the service data packet into a pass-through uplink instruction packet; The master device is configured to transmit the pass-through uplink instruction packet from the terminal device to the switching server; The master device is further configured to receive the service data packet obtained by the switching server by parsing the pass-through uplink instruction packet, and to perform service processing according to the service data packet to obtain a service processing result; The master device is further configured to transmit the service processing result to the switching server; The master device is further configured to receive a pass-through downlink instruction packet obtained by the switching server by encapsulating the service processing result; The terminal device is further configured to parse the pass-through downlink instruction packet from the master device to obtain the service processing result, and to transmit the service processing result to the product server.

9. A communications device, characterized by comprising: one or more processors; and one or more machine-readable media having stored thereon instructions, which when executed by the one or more processors, cause the apparatus to perform the method of transmitting a data packet according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer program stored therein causes the processor to perform the method of transmitting a data packet according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Unvarnished transmission system and method based on video network

    CN109561073A

  • Service performance test method and device, terminal equipment and storage medium

    CN113765745A