5G message transmission method, device, electronic device and storage medium

By adopting Netty framework and Java NIO multiplexing technology in 5G communication, the assembly and retransmission of HTTP/2 framed messages is solved, and the complete message body is quickly assembled, memory space is freed and message integrity is verified, improving the stability of the system and operation and maintenance management efficiency.

CN115086957BActive Publication Date: 2025-09-05CHINA MOBILE GROUP JIANGSU +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110282937.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2025-09-05
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

In the 5G SA core network, the existing technology has problems such as difficulty in assembling HTTP/2 framed messages, difficulty in resending framed messages, difficulty in message management, and difficulty in operation and maintenance management, resulting in excessive memory usage, loss of messages and inconvenient operation and maintenance management.

Method used

Using Netty framework and Java NIO multiplexing technology, the server and client of the high-performance HTTP/2 protocol is designed. By building a message structure, it determines whether the framed message is the last frame, assembles and verifies the message integrity, and actively notifies the client to resend the missing framed message when the framed message fails to send.

Benefits of technology

It realizes the rapid assembly of complete message bodies, timely releases memory space, completes message validity and integrity verification, and improves the efficiency of operation and maintenance management and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086957B_ABST
    Figure CN115086957B_ABST
Patent Text Reader

Abstract

The present invention provides a 5G message transmission method, apparatus, electronic device, and storage medium, including: receiving an HTTP / 2 message, determining whether the current framed message in the HTTP / 2 message is the last framed message based on a structure; if it is determined to be the last framed message, assembling the framed message and verifying the message integrity. By proposing a method for framing and assembling HTTP / 2 messages and retransmitting them for 5G communications, the present invention enables a server to quickly assemble a complete message body after receiving a framed message, immediately freeing up memory space occupied by the message, and completing message validity and integrity verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a 5G message transmission method, device, electronic device, and storage medium. Background Art

[0002] In the 5G SA core network, data services use service-oriented interfaces to support online billing. Online billing provides quota management and usage reporting on demand based on billing information. Data communication between network elements and business support systems uses the HTTP / 2 protocol. Messages are sent in frames, and receiving messages on the server is a continuous process. Framed messages are cached on the server, occupying the server's heap memory. How to effectively combine the received framed messages into a complete message body, resend the failed framed messages and combine them with the successfully sent framed messages to form a complete message body, and immediately release memory brings great difficulties to development.

[0003] like Figure 1 As shown in the figure, in the existing online billing system, network elements send HTTP / 2 message requests in real time. HTTP / 2 messages are divided into header frames and data frames for transmission. After receiving the framed messages, the server needs to reassemble the framed messages and verify the integrity of the messages. This poses the following technical problems:

[0004] 1. Difficulty in assembling messages: The online billing system generates over 2 billion messages per day. After HTTP / 2 frames are sent, the number of framed messages received by the HTTP / 2 server increases exponentially. Quickly assembling framed messages is a major challenge.

[0005] 2. Difficulty in resending framed messages: Framed messages are cached in the server's private memory until the last frame is received, occupying the server's memory. If the memory is not released in time, the server will experience an OOM (Out of Memory) exception, resulting in message loss and subsequent message requests failing. This will cause the online billing system to be unable to provide normal services.

[0006] 3. Difficulty in message management: After the server successfully assembles a message, it must verify its integrity and validity and send data that complies with business specifications to the logic processing unit. Given the massive amount of messages generated daily, how to quickly determine the correctness of the messages and generate statistics on valid and invalid messages is a major challenge.

[0007] 4. Difficulties in operation and maintenance management: For the massive amount of messages received every day, after being processed by the online billing system, how to intuitively and effectively display the real-time processing indicator data of the messages and provide efficient operation and maintenance management and alarm notifications are essential functions. Summary of the Invention

[0008] The present invention provides a 5G message transmission method, device, electronic device and storage medium to address the defects in the prior art.

[0009] In a first aspect, the present invention provides a 5G message transmission method, comprising:

[0010] Receive an HTTP / 2 message and determine, based on the structure, whether the current framed message in the HTTP / 2 message is the last frame message;

[0011] If it is determined to be the last frame message, the framed message is assembled and the integrity of the message is checked.

[0012] In one embodiment, if it is determined that the message is not the last frame, the framed message continues to be received.

[0013] In one embodiment, the receiving of the HTTP / 2 message and determining whether the current framed message in the HTTP / 2 message is the last framed message based on the structure further include:

[0014] The structure for storing the HTTP / 2 message is constructed, wherein the structure includes the message unique identifier StreamId, the uniform resource locator identifier URI, the Header frame, the Data frame and the update time.

[0015] In one embodiment, receiving an HTTP / 2 message and determining whether a current framed message in the HTTP / 2 message is the last framed message based on the structure specifically includes:

[0016] After establishing an HTTP / 2 persistent connection with the client, the client's IP address is verified, and the connection is maintained with the client with a valid IP address. The connection channel manager adds the persistent connections with all clients to the connection pool for management, and allocates independent storage space for each persistent connection. The storage space stores the message entity of the 5G message request;

[0017] Determine the stream message end identifier used by the message entity, and if the value of the stream message end identifier is true, the current frame message is the last frame message;

[0018] If the value of the stream message end flag is false, the current frame message is not the last frame message.

[0019] In one embodiment, if it is determined to be the last frame message, assembling the framed message and checking the integrity of the message specifically includes:

[0020] Search the storage space for all framed messages having the same message unique identifier StreamId by using the message unique identifier StreamId, and assemble all framed messages into a complete message;

[0021] All assembled complete messages are checked. If they are determined to be valid JSON strings, 5G service processing continues.

[0022] Otherwise, if it is judged to be an invalid message, an invalid status identification code is returned.

[0023] In one embodiment, if it is determined that the message is not the last frame, then continuing to receive the framed message specifically includes:

[0024] If it is determined that not all framed messages have been received within the preset delay threshold, the client is notified to send the missing messages; otherwise, the client continues to receive framed messages.

[0025] In one embodiment, it further includes:

[0026] After the framed message is assembled, the 5G online charging system executes the online charging rule processing and deletes the framed message from the cache in real time after the processing is completed;

[0027] The processing results are returned to the client through HTTP / 2 persistent connection.

[0028] In a second aspect, the present invention further provides a 5G message transmission device, including:

[0029] A first judgment module is configured to receive an HTTP / 2 message and determine, based on a structure, whether a current frame message in the HTTP / 2 message is the last frame message;

[0030] The second judgment module is used to assemble the framed message and check the integrity of the message if it is judged to be the last frame message.

[0031] In a third aspect, the present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the above-described 5G message transmission methods are implemented.

[0032] In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of any of the above-mentioned 5G message transmission methods.

[0033] The 5G message transmission method, device, electronic device and storage medium provided by the present invention, through the proposed HTTP / 2 message framing assembly and framing retransmission method applied to 5G communication, enable the server to quickly assemble the framed message into a complete message body after receiving it, immediately release the memory space occupied by the message, and complete the validity and integrity verification of the message. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 It is a schematic diagram of the message structure provided by the prior art;

[0036] Figure 2 This is a flow chart of the 5G message transmission method provided by the present invention;

[0037] Figure 3 This is the HTTP / 2 interaction process between the client and the server provided by the present invention;

[0038] Figure 4 This is the business processing logic flow between the client and the server provided by the present invention;

[0039] Figure 5 This is the assembly process of 5G message framing transmission of the HTTP / 2 communication protocol provided by the present invention;

[0040] Figure 6 This is a schematic diagram of the message structure provided by the present invention:

[0041] Figure 7 This is a structural diagram of the 5G message transmission device provided by the present invention;

[0042] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0043] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0044] In response to the shortcomings of the existing technology, the present invention proposes an assembly method for 5G message framing transmission based on the HTTP / 2 communication protocol, which adopts the Netty framework and Java NIO multiplexing as the communication processing framework, and designs a high-performance HTTP / 2 protocol server and client based on the TCP transmission protocol.

[0045] It should be noted that the Netty framework is an asynchronous, event-driven network application framework that supports the rapid development of maintainable, high-performance, protocol-oriented servers and clients. Java NIO is a Java-based synchronous, non-blocking I / O model and the foundation of I / O multiplexing. It has been increasingly used in large-scale application servers and has become an effective way to solve high-concurrency, large-scale connection, and I / O processing problems.

[0046] Figure 2 It is a flow chart of the 5G message transmission method provided by the present invention, such as Figure 2 Shown, including:

[0047] 101, receiving an HTTP / 2 message, and determining whether the current framed message in the HTTP / 2 message is the last frame message based on the structure;

[0048] 102. If it is determined to be the last frame message, assemble the framed message and check the integrity of the message.

[0049] Specifically, the 5G message transmission method proposed in the present invention is based on the HTTP / 2 interaction process between the client and the server, such as Figure 3 shown.

[0050] First, the client and the server establish an HTTP / 2 persistent connection. The server receives the client's HTTP / 2 request, assembles the framed message of the HTTP / 2 request, and then verifies the integrity of the HTTP / 2 message. Finally, the server filters out invalid information in the business and returns the processing results after the business is completed to the client. The whole process is as follows: Figure 4 shown.

[0051] If the current frame message is the last frame received, execute the following Figure 5 The judgment branch on the right in the assembly process of the 5G message framing transmission of the HTTP / 2 communication protocol shown in the figure assembles the message and verifies the integrity of the message.

[0052] The present invention proposes a method for HTTP / 2 message framing assembly and framed retransmission applied to 5G communications, so that the server can quickly assemble a complete message body after receiving the framed message, immediately release the memory space occupied by the message, and complete the validity and integrity verification of the message.

[0053] Based on the above embodiment, if it is determined that it is not the last frame message, the framed messages continue to be received.

[0054] Specifically, in Figure 5 In the assembly process of the 5G message framing transmission of the HTTP / 2 communication protocol shown, there is another judgment branch on the left. If it is determined that the current frame message is not the last frame received, the action of continuing to receive messages is executed until the complete message is received.

[0055] In the case of HTTP / 2 framed message transmission failure, the present invention notifies the client to resend the missing framed message by the server, and assembles it into a complete message body with the framed message already received by the server. The function of retransmitting the framed message is achieved through the active notification of the server.

[0056] Based on any of the above embodiments, the method further includes before step 101:

[0057] The structure for storing the HTTP / 2 message is constructed, wherein the structure includes the message unique identifier StreamId, the uniform resource locator identifier URI, the Header frame, the Data frame and the update time.

[0058] Specifically, the HTTP / 2 protocol divides messages into Header frames and Data frames. Through the StreamId identifier, a structure named Http5G is defined on the server side to store HTTP / 2 messages. This structure contains the Header frame and Data frame, the message unique identifier StreamId, the uniform resource locator URI, and the update time. The Http5G structure is as follows: Figure 6 shown.

[0059] The present invention improves upon the message structure of the prior art by adding more message identifiers, making it easier to identify framed messages and enabling the server to identify and verify messages when receiving them.

[0060] Based on any of the above embodiments, step 101 in the method specifically includes:

[0061] After establishing an HTTP / 2 persistent connection with the client, the client's IP address is verified, and the connection is maintained with the client with a valid IP address. The connection channel manager adds the persistent connections with all clients to the connection pool for management, and allocates independent storage space for each persistent connection. The storage space stores the message entity of the 5G message request;

[0062] Determine the stream message end identifier used by the message entity, and if the value of the stream message end identifier is true, the current frame message is the last frame message;

[0063] If the value of the stream message end flag is false, the current frame message is not the last frame message.

[0064] Specifically, after constructing the message structure, when the server program is started, the client actively establishes a TCP long connection with the server through a three-way handshake. After the connection is successfully established, the server verifies the client's IP to determine whether the client's IP is in the legal IP list. For illegal IP requests, the server actively disconnects the client. The server's connection channel manager adds all long connections between the client and the client to the connection pool for management, and allocates a storage space (HashMap) for each long connection to store the message entity of the 5G message request received from the client. The server receives the 5G message request sent by the client in real time, and isolates the resources of the long connections of each client through the connection pool.

[0065] Since an HTTP / 2 server can receive requests from multiple clients, a connection channel manager is added to the server to manage these clients. After the client creates a connection with the server, the server verifies whether the client's IP is legal. For illegal IPs, the server actively disconnects the client. For legal IPs, the server adds the created connection to the connection pool for unified management.

[0066] Here, the 5G message request is the client using the HTTP / 2 POST method type, and the message is a JSON type structure. When the server receives the message, it must verify the requested URI and use the URI parser to verify the correctness of the message URI. It continues to process URIs that comply with 5G business specifications, intercepts illegal requests through the message interceptor, and returns a status code of 400 to the client.

[0067] The present invention adds a method for assembling HTTP / 2 message frames in a framework, and realizes the function of assembling message frames by processing messages passing through the framework.

[0068] Based on any of the above embodiments, step 102 in the method specifically includes:

[0069] Search the storage space for all framed messages having the same message unique identifier StreamId by using the message unique identifier StreamId, and assemble all framed messages into a complete message;

[0070] All assembled complete messages are checked. If they are determined to be valid JSON strings, 5G service processing continues.

[0071] Otherwise, if it is judged to be an invalid message, an invalid status identification code is returned.

[0072] Specifically, it should be noted that a complete message body is uniquely identified by a StreamId and is divided into a Header frame and a Data frame. After receiving the message, the server determines the endOfStream message end identifier. If the value of endOfStream of the framed message is false, it means that all frames of the message have not been completely received. Then the server continues to receive and caches the received messages in a HashMap. If the value of endOfStream of the framed message received by the server is true, it means that all frames of a message from the client have been sent. The server identifies the frame by StreamId in the HashMap to find all other framed messages with the same StreamId, and assembles it into a complete message with all framed messages.

[0073] Since 5G messages are formatted in JSON, the server verifies the validity of the message body of each received complete message through the message manager. If it is a valid JSON string, 5G service processing continues; otherwise, the message is deemed invalid and a status code 400 is returned to the client. Each 5G online billing message is filtered to verify its validity and integrity. The message manager is used to determine whether the received message is a 5G service message. 5G online billing messages are divided into three packet types: initial packet (create), update packet (update), and release packet (release). They are identified by the URI in the HTTP / 2 message header. If the message received by the server does not fall into these three packet types, it is deemed invalid and the server responds to the client with a return code of 400, notifying the client that the requested message type is incorrect.

[0074] The present invention uses the JSON format for 5G online billing message packets, and verifies the integrity of the message packets after the server receives all framed message assemblies.

[0075] Based on any of the above embodiments, if it is determined that the message is not the last frame, then continuing to receive the framed message specifically includes:

[0076] If it is determined that not all framed messages have been received within the preset delay threshold, the client is notified to send the missing messages; otherwise, the client continues to receive framed messages.

[0077] Specifically, in the message structure, after receiving the message, the server determines the endOfStream stream message end identifier. If the value of endOfStream of the framed message is false, it means that all frames of the message have not been completely received. Then the server continues to receive and caches the received messages in the HashMap.

[0078] Furthermore, during the message reception process, network jitter, instability, or other reasons may cause incomplete message delivery. If the server discovers that a message has not been fully framed within a certain delay threshold, it must immediately notify the client to resend the remaining framed messages belonging to the message. The server adds a timed scanning thread to check the framed messages cached in the HashMap, verifying the message write time and comparing it with the delay threshold. For messages that exceed the delay threshold, the server notifies the client to resend the remaining framed messages of the message to form a complete message.

[0079] The present invention realizes the function of retransmitting framed messages by informing the client to resend the missing framed messages and assembling them into a complete message body with the framed messages already received by the server when the HTTP / 2 framed message transmission fails.

[0080] Based on any of the above embodiments, the further comprising:

[0081] After the framed message is assembled, the 5G online charging system executes the online charging rule processing and deletes the framed message from the cache in real time after the processing is completed;

[0082] The processing results are returned to the client through HTTP / 2 persistent connection.

[0083] Specifically, after the server-side message is successfully assembled, it is handed over to the service processing unit module of the 5G online billing system to execute rules such as service back-calculation, accumulated usage, and fee deduction. After the message is successfully processed, the server deletes the message from the cache in real time, freeing up memory space, reducing the impact of storage on the server program, and improving processing performance.

[0084] After the 5G online billing system completes service processing, the server returns service messages such as quota information and usage reports to the network element client via a persistent HTTP / 2 connection. The HTTP / 2 protocol requires that the same message request and response must be sent over the same connection channel. When the server returns a message to the client, it must match the message. The server uses the connection channel manager to find the transmission channel for the message in the connection pool and use that channel to return the message to the client.

[0085] The message manager used in the present invention provides a verification function for the validity and integrity of the message. The server determines the business processing unit that needs to be executed subsequently based on the return result of the message manager, and provides the output of multi-dimensional indicators of real-time message processing, which facilitates operation and maintenance personnel to quickly locate and solve problems.

[0086] The 5G message transmission device provided by the present invention is described below. The 5G message transmission device described below and the 5G message transmission method described above can be referenced to each other.

[0087] Figure 7 This is a structural diagram of the 5G message transmission device provided by the present invention. Figure 7 As shown, it includes: a first judgment module 71 and a second judgment module 72; wherein:

[0088] The first judgment module 71 is used to receive an HTTP / 2 message and determine whether the current frame message in the HTTP / 2 message is the last frame message based on the structure; the second judgment module 72 is used to assemble the frame message and verify the integrity of the message if it is determined to be the last frame message.

[0089] The present invention proposes a method for HTTP / 2 message framing assembly and framed retransmission applied to 5G communications, so that the server can quickly assemble a complete message body after receiving the framed message, immediately release the memory space occupied by the message, and complete the validity and integrity verification of the message.

[0090] Figure 8 An example of a physical structure diagram of an electronic device is shown below. Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the 5G message transmission method, which includes: receiving an HTTP / 2 message, determining whether the current frame message in the HTTP / 2 message is the last frame message based on the structure; if it is determined to be the last frame message, assembling the frame message and verifying the integrity of the message.

[0091] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program code.

[0092] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the 5G message transmission method provided by the above methods, which includes: receiving an HTTP / 2 message, and determining based on the structure whether the current frame message in the HTTP / 2 message is the last frame message; if it is determined to be the last frame message, assembling the frame message and verifying the integrity of the message.

[0093] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the above-mentioned 5G message transmission methods, the method including: receiving an HTTP / 2 message, and judging based on the structure whether the current frame message in the HTTP / 2 message is the last frame message; if it is judged to be the last frame message, assembling the frame message and checking the integrity of the message.

[0094] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0095] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. 5G message transmission method, characterized in that: Applied to the server, including: Receive an HTTP / 2 message from the client, and determine whether the current frame message in the HTTP / 2 message is the last frame message based on the structure; If it is determined to be the last frame message, the framed message is assembled and the integrity of the message is checked; The receiving of the HTTP / 2 message from the client and determining whether the current frame message in the HTTP / 2 message is the last frame message based on the structure specifically include: After establishing an HTTP / 2 persistent connection with the client, the client's IP address is verified, and the connection is maintained with the client with a valid IP address. The connection channel manager adds the persistent connections with all clients to the connection pool for management, and allocates independent storage space for each persistent connection. The storage space stores the message entity of the 5G message request; Determine the stream message end identifier used by the message entity, and if the value of the stream message end identifier is true, the current frame message is the last frame message; If the value of the stream message end flag is false, the current frame message is not the last frame message; If it is determined to be the last frame message, assembling the framed message and checking the integrity of the message specifically includes: Search the storage space for all framed messages having the same message unique identifier StreamId by using the message unique identifier StreamId, and assemble all framed messages into a complete message; All assembled complete messages are checked. If they are determined to be valid JSON strings, 5G service processing continues. Otherwise, if it is judged to be an invalid message, an invalid status identification code is returned.

2. The 5G message transmission method according to claim 1, wherein: If it is determined that it is not the last frame message, continue to receive framed messages.

3. The 5G message transmission method according to claim 1 or 2, characterized in that: The receiving of the HTTP / 2 message and determining whether the current frame message in the HTTP / 2 message is the last frame message based on the structure also include: The structure for storing the HTTP / 2 message is constructed, wherein the structure includes the message unique identifier StreamId, the uniform resource locator identifier URI, the Header frame, the Data frame and the update time.

4. The 5G message transmission method according to claim 1, wherein: If it is determined that the message is not the last frame, then continue to receive the framed message, specifically including: If it is determined that not all framed messages have been received within the preset delay threshold, the client is notified to send the missing messages; otherwise, the client continues to receive framed messages.

5. The 5G message transmission method according to claim 1 or 2, characterized in that: Also includes: After the framed message is assembled, the 5G online charging system executes the online charging rule processing and deletes the framed message from the cache in real time after the processing is completed; The processing results are returned to the client through HTTP / 2 persistent connection. The 6.5G message transmission device is characterized in that: include: A first judgment module is configured to receive an HTTP / 2 message and determine, based on a structure, whether a current frame message in the HTTP / 2 message is the last frame message; The second judgment module is used to assemble the framed message and check the integrity of the message if it is judged to be the last frame message; The first judgment module is specifically configured to: After establishing an HTTP / 2 persistent connection with the client, the client's IP address is verified, and the connection is maintained with the client with a valid IP address. The connection channel manager adds the persistent connections with all clients to the connection pool for management, and allocates independent storage space for each persistent connection. The storage space stores the message entity of the 5G message request; Determine the stream message end identifier used by the message entity, and if the value of the stream message end identifier is true, the current frame message is the last frame message; If the value of the stream message end flag is false, the current frame message is not the last frame message; The second judgment module is specifically configured to: Search the storage space for all framed messages having the same message unique identifier StreamId by using the message unique identifier StreamId, and assemble all framed messages into a complete message; All assembled complete messages are checked. If they are determined to be valid JSON strings, 5G service processing continues. Otherwise, if it is judged to be an invalid message, an invalid status identification code is returned.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the 5G message transmission method as described in any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the 5G message transmission method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Internet-of-things data transmission method based on NB-IoT technology

    CN107682318A

  • Big data packet transmission method

    CN112311888A