CN108965345B - Method and device for optimizing small signaling network data packet - Google Patents

Method and device for optimizing small signaling network data packet Download PDF

Info

Publication number
CN108965345B
CN108965345B CN201811163138.8A CN201811163138A CN108965345B CN 108965345 B CN108965345 B CN 108965345B CN 201811163138 A CN201811163138 A CN 201811163138A CN 108965345 B CN108965345 B CN 108965345B
Authority
CN
China
Prior art keywords
message
messages
gift
bullet screen
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811163138.8A
Other languages
Chinese (zh)
Other versions
CN108965345A (en
Inventor
周志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinxin Ruitong Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811163138.8A priority Critical patent/CN108965345B/en
Publication of CN108965345A publication Critical patent/CN108965345A/en
Application granted granted Critical
Publication of CN108965345B publication Critical patent/CN108965345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses an optimization method and device of small signaling network data packets, which are used for merging the small signaling with the largest occurrence frequency and number and then sending the small signaling to a client, so that the processing efficiency of network data is improved. The method comprises the following steps: determining a protocol format and protocol content of a network protocol; generating a message queue, wherein the message queue is used for caching messages; generating a message investigation component, wherein the investigation component is used for investigating the messages cached in the message queue; determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and merging the gift messages to obtain merged gift messages; determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component and merging the bullet screen messages to obtain merged bullet screen messages; and combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises the combined gift message or the combined barrage message.

Description

Method and device for optimizing small signaling network data packet
Technical Field
The invention relates to the field of terminals, in particular to a method and a device for optimizing a small signaling network data packet.
Background
With the rapid development of internet technology, live broadcast platforms and other applications enter people's lives, and the live broadcast platforms and other applications can generate a large number of small data packets.
In general, a server or a client program transmits and receives data using a long Transmission Control Protocol (TCP) link. Both the client and the server have transceiving functions, if a piece of network data exists, the network data is sent to the other side through a socket program of the TCP, and meanwhile, the other side receives, analyzes and processes the data. Frequent transmission of large and small network packets for both the server and the client will reduce the processing power of both parties. For example, for some packets there may be only 10 bytes, but the entire data is sent independently. The maximum TCP packet is 65535 bytes, so it can be optimized.
For the live broadcast platform, the characteristics are more remarkable, for example, viewers give a large number of small gifts to the main broadcast, each small gift is given as a network data packet, the server forwards the network data packet to all the viewers, the server needs to send a gift message to each gift to each viewer, and each gift needs to send an independent gift message even if the same gift is frequently sent. Therefore, for more users and large live broadcast rooms which are online at the same time, the server or the client needs to occupy more resources, and the processing efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an optimization method and device of a small signaling network data packet, which are used for merging signaling with the largest occurrence frequency and the largest number and then sending the signaling to a client, so that the processing efficiency of network data is improved.
A first aspect of an embodiment of the present invention provides a method for optimizing a small signaling network packet, including: determining a protocol format and protocol content of a network protocol; generating a message queue, wherein the message queue is used for caching messages; generating a message investigation component, wherein the investigation component is used for investigating the messages cached in the message queue; determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and merging the gift messages to obtain merged gift messages; determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component and merging the bullet screen messages to obtain merged bullet screen messages; and combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises the combined gift message or the combined barrage message.
In one possible embodiment, the determining the protocol format and the protocol content of the network protocol includes: defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number; the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
In a possible embodiment, the determining and combining multiple gift messages having the same protocol format and protocol content according to the message snooping component to obtain a combined gift message includes: determining an object for message investigation; acquiring all gift messages according to the objects; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; a consolidated gift message is obtained that includes a field indicating a number of gift messages.
In a possible embodiment, the determining and combining a plurality of bullet screen messages with the same protocol format and protocol content according to the message snooping component to obtain a combined bullet screen message includes: determining an object for message investigation; acquiring all bullet screen messages according to the object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
In a possible embodiment, the method further comprises: and generating a message analysis class, wherein the message analysis class is used for analyzing the combined message.
In a possible embodiment, the method further comprises: receiving the large network data packet, wherein the large network data packet comprises the combined gift message and/or the combined barrage message; analyzing the combined gift message and/or the combined barrage message according to the message analysis class; determining the type and the number of the gift messages and/or the content and the sender of the bullet screen; a plurality of messages are obtained, the plurality of messages including gift messages and/or barrage messages.
In one possible embodiment, the generating a message snooping component for snooping messages in the message queue includes: generating a data queue of the investigation result, wherein the data queue is used for storing messages; generating an interface function, wherein the interface function is used for detecting the messages in the data queue; and acquiring and storing the number of the detected messages.
A second aspect of the embodiments of the present invention provides an apparatus for optimizing a small signaling network packet, including: the determining unit is used for determining the protocol format and the protocol content of the network protocol; the device comprises a first generating unit, a second generating unit and a sending unit, wherein the first generating unit is used for generating a message queue, and the message queue is used for caching messages; the second generation unit is used for generating a message investigation component, and the investigation component is used for investigating the messages cached in the message queue; the first merging unit is used for determining and merging a plurality of gift messages with the same protocol format and protocol content according to the message investigation component to obtain merged gift messages; the second merging unit is used for determining and merging a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component to obtain merged bullet screen messages; and a third merging unit, configured to merge multiple small signaling network data packets into one large network data packet, where the small signaling network data packet includes the merged gift message or the merged barrage message.
A third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the processor is configured to implement the steps of the method for optimizing small signaling network packets according to any one of the first aspect when executing a computer management program stored in the memory.
A fourth aspect of the present application provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the method of the above-described aspects.
A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above-described aspects.
Drawings
Fig. 1 is a flowchart of an optimization method for small signaling network packets according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an optimization apparatus for small signaling network packets according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a possible electronic device according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of a possible computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an optimization method and device of a small signaling network data packet, which are used for merging signaling with the largest occurrence frequency and the largest number and then sending the signaling to a client, so that the processing efficiency of network data is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Referring to fig. 1, a flowchart of an optimization method for a small signaling network data packet according to an embodiment of the present invention specifically includes:
101. the protocol format and the protocol content of the network protocol are determined.
The execution main body may be a mobile terminal or a server installed with a corresponding client, and the present invention is described by taking the mobile terminal installed with the corresponding client as an example. The client on the mobile terminal determines the protocol format and the protocol content of the network protocol, and particularly, when the client communicates with the server, the protocol format and the protocol content need to be negotiated. Thereby enabling the server to transmit specific protocol content via the protocol format. The client receives the data sent by the server from the protocol, and analyzes the protocol content according to the negotiated protocol format. Since long-chained TCP is streaming, there are cases of packetization and packetization, so it is necessary to first define a header and then define a body. The packet header specifically comprises packet body length, identification and the number of combined packets, wherein the packet body length of 4 bytes fills the length of a following message character string; a 2-byte length identifier for indicating a station bit, and also for subsequent expansion functions; the message string is used to indicate the specific protocol content.
For this embodiment, since the packet merging function may occur in this embodiment, the number of the packet body sub-packets (i.e., the number of the sub-packets) needs to be added to the packet header in this embodiment, so that the receiving party can be informed that the data packet is a sub-packet and needs to be parsed many times. Therefore, the present embodiment adds the number of the merged 2-byte padding messages to the packet header.
102. A message queue is generated, the message queue for buffering messages.
A message queue is generated, the message queue for buffering messages. Whether the client or the server receives a plurality of messages at the same time, or sends a plurality of messages, so the embodiment also needs to process the combination and analysis of the messages. For the gift message, the first received bullet screen message is displayed first, and for the bullet screen message, the first received bullet screen message is displayed first. When a large number of messages are received simultaneously, the messages are prevented from being discarded in order to guarantee the order. Therefore, the present embodiment designs the message queue, and the merging of subsequent messages in the present embodiment also requires the design of the message queue.
The specific process is as follows: for each message is a string containing the content of the message, including the type and other fields of the message. The first step of this embodiment is to define a Message with a structure Message.
Struct Message{
String data;
Stringt type;
Int nLen;
Int64time;。
}
Wherein, data indicates the character string content of the message, type indicates the type of the message, nLen indicates the length of the message, and time indicates the time of the message.
After the structure of the message is defined, a message queue needs to be designed, and since the message is frequently stored in and deleted from the message queue, the second step of this embodiment uses a linked list in a Standard Template Library (STL) as a data structure of the message queue, so that deletion and addition of the message can be efficiently satisfied.
The deletion process of the message is as follows: the embodiment encapsulates a class in C + + language to complete the store-delete-fetch of the message queue.
Class MessageQueue{
Because the queue is used for continuously inserting messages and deleting messages, a list linked list of the STL is used as the queue of the messages, std: list < Message > lst _ buffer;
in order to prevent multithread operation from polluting queue data, a lock is added to a message queue for performing multithread synchronous mutual exclusion. In the third step of this embodiment, a Mutex write _ Mutex is defined, which specifically includes steps 1 and 2:
step 1, defining an interface Post of a task stored in a queue to obtain
Void Post(Message t){
Firstly, defining an automatic lock object, i.e. a scopedLock lock, and then transferring the automatic lock object into the mutex, i.e. the mutex, defined in the embodiment, to obtain the scopedLock lock (write _ mutex);
then, calling an interface push _ back of list to store the message into the tail end of the queue to obtain lst _ buffer.
}
Step 2, compiling the interface Get of the fetch queue to obtain
Message Get(){
Firstly, defining an automatic lock object, i.e. a scopedLock lock, and then transferring the exclusive variable, write _ mutex, defined in the embodiment into the automatic lock object, so as to obtain the scopedLock lock (write _ mutex);
then taking out a Message t at the head of the queue from the queue to obtain Message t ═ lst _ buffer.front ();
calling an interface pop _ front to delete the message at the head of the queue to obtain lst _ buffer.
Then returning the taken-out message to obtain Return t;
}
after the design of the message queue is completed, this embodiment defines 2 message queues, one of which is a message queue of all messages to be sent. One is a message queue of all received messages.
The received message queue is MessageQueue recvQueue;
the send message queue is MessageQueue sendQueue.
103. And generating a message investigation component, wherein the investigation component is used for investigating the messages buffered in the message queue.
In the embodiment, network data packets with small signaling need to be reasonably merged, and the investigation of messages from queues needs to be performed based on the design of message queues, so that the function of message investigation and merging needs to be provided. The investigation of the message is to perform investigation on all messages in the message queue, specifically, to perform investigation on the message queue to be sent to the other side. The concrete implementation is as follows:
firstly, defining a data queue of a detection result, wherein the data queue is stored by using the LIST of the STL, and all detected messages are stored in the lstresult to obtain std, wherein LIST < Message > lstresult;
in this embodiment, an interface is required to be written for Message detection to obtain the Int DetectMessage (string type, std:: list < Message > & lstresult) ready pocket
The interface name is DetectMessage, the return value is the number of the detected messages, the parameter string type is used for transmitting the type to be detected, and the parameter std < Message > & lstresult is used for storing all the detected messages of the type.
Firstly, an iterator is defined to traverse the Message queue, the iterator itr is defined, and std < Message >: itrator itr is obtained;
assigning the value of the iterator to a linked list header of the message storage, and initializing the iterator itr as lst _ buffer.begin ();
a For loop is then written to traverse the message queue, resulting in a For (; itr! lst buffer
Next, a search type is needed to query the message, where the type indicates that what is searched for is a bullet screen message, and the type indicates that "chat" is used to detect all bullet screen messages, to obtain If (type) ready for use)
It will be appreciated that the current message may be fetched from the queue, i.e. the iterator.
The extracted Message is stored in the t object, and the Message t (═ itr) is obtained;
then, the message type of the message is judged to obtain If (t.type) final mapping
If the message type in the message queue is the bullet screen message type to be intercepted in the embodiment. Then, the embodiment stores the result into the result queue and deletes the result from the existing message queue, and the specific process is as follows:
storing the message into the linked list by calling a push _ back method of the list linked list to obtain Lstresult.
Specifically, the message is deleted by calling the method erase of the list linked list to obtain lst _ buffer.erase (it);
}
}
alternatively, the type of gift message is used to indicate that the found gift message is a gift message, and the obtained else if (type of gift message) retaining the mail is obtained
If the message type in the message queue is the gift message type to be snooped by the embodiment. Then, the embodiment stores the result into the result queue and deletes the result from the existing message queue, and the specific process is as follows:
storing the message into the linked list by calling a push _ back method of the list linked list to obtain Lstresult.
Deleting the message by calling the method erase of the list linked list to obtain lst _ buffer.erase (it);
}
if other types of messages need to be detected, then the type of the message is not determined, but the size of the message is determined, and the message is not a gift message or a bullet screen message, so as to obtain an else if (type ═ other) containing
If the message length is less than 500 bytes, the embodiment puts the message into the snoop queue and uses the message for subsequent message merging to obtain If (t.nlen < 500) > pocket
Storing the message into the linked list by calling a push _ back method of the list linked list to obtain Lstresult.
The message is deleted from the original queue by calling the method erase of the list linked list.
lst_buffer.erase(it);
}
}
}
}
104. And determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and combining the gift messages to obtain combined gift messages.
And determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component, and merging the gift messages to obtain a merged gift message.
For example, for gift messages, there are some viewers that will give away continuously to the main gift message, and there are a large number of identical gift messages that are given away, especially when the viewers click and give away a large number of gift messages continuously, each gift message is identical, then the server or the client needs to generate a one-hour data packet for each message, and send it to the opposite side through the network TCP, and the opposite side will receive the message and decrypt and display the message. In this embodiment, through analysis of all messages, it is found that the same gift message can be added with a field for counting the number of the gift messages, so that the same message can be counted, and only one gift message needs to be sent, and the opposite side needs to add codes for calculation when decrypting the message, so that the number of the gift messages is correctly displayed.
It is the key point how to judge that the gift messages are the same, and this embodiment is directed to the same live broadcast room, and the audience presents the main broadcast gift messages, so the distinction of the messages is mainly the presenter and the gift type presented. The same gift given by the same viewer may be combined into one gift message, while the same gift given by other viewers may be added to the name of the presenter, so that a large number of gift messages may be combined to be transmitted using one network message.
The concrete implementation is as follows:
firstly, defining an object for Message investigation, which is used for extracting all gift messages from an interface to obtain std, wherein list < Message > lstresult;
then, invoking an interface DetectMessage to obtain result data, and finally storing all messages in lstresult to obtain Int num, DetectMessage ("lstresult");
then, the gift message needs to be parsed to obtain the presenter and the gift type therein, and the process is as follows:
firstly, creating an instance object of a message parsing class DataDecode to obtain DataDecode pDecode ═ new DataDecode ();
then, analyzing the message of the gift, wherein buf represents a received gift network message to obtain pDecoder- > Parse (buf);
obtaining the message type of the message after parsing, wherein a message field 'giftsend' is used for indicating a donor, and obtaining std:: string (pDecoder- > GetItem ("giftsend"));
then, the gift type of the message is analyzed to obtain Int ngiftId which is pDecoder- > GetItemAsInt (giftid);
next, for traversing the remaining gift messages, whether the senders are the same senders or not is judged, and meanwhile, whether the gift types are the same, the specific process is as follows:
defining an iterator itr, std: list < Message >: itrator itr;
assigning the value of the iterator as a linked list header of the message storage, and initializing the iterator to obtain itr ═ lstresult.
A For loop is then written to traverse the message queue, resulting in For (; itr! lstresult. end (); + itr) final opening
And judging whether the senders of other messages in the queue are the same as those searched by the embodiment and whether the gift ids of the messages are the same, if the senders are the same, merging the messages, and adding a quantity field in the messages.
If((*itr).send==send&&(*itr).ngiftid==ngiftId){
If the same occurs, the counting is self-increased, and a counting count is set to be 1;
adding a num field in the original message and deleting the existing message.
A first gift Message indicating a gift Message, Message t ═ lstresult.
Add a field "count" and add the final calculation, resulting in t.add ("count" —);
the combined gift message is deleted to get lst _ buffer.
}
}
Similarly, for different senders of the same gift, a list of the sender's names may be added to the gift message to indicate that multiple viewers have sent the gift to the anchor.
105. And determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component, and merging to obtain merged bullet screen messages.
And determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component, and merging to obtain a merged bullet screen message. For the bullet screen message, the process similar to the gift message is generally different between the sender and the bullet screen content, since the bullet screen content sometimes also appears that everyone sends consistent bullet screen content, for example, all audiences send "666" or the like, and for some bullet screen enthusiasts, the same bullet screen content is also sent frequently. Specifically, the merging can be performed from 2 aspects, one is performed by the senders with the same bullet screen content, and the other is performed by combining a plurality of bullet screens of the same sender into one bullet screen.
The specific implementation process is as follows:
firstly, defining an object for Message investigation, which is used for extracting all bullet screen messages from an interface, std: list < Message > lstresult;
then, calling an interface DetectMessage to obtain result data, and finally storing all bullet screen messages in lstresult to obtain Int num, DetectMessage (lstresult);
defining a first bullet screen Message of bullet screen messages, Message t ═ lstresult.
Firstly, creating an instance object of a message parsing class DataDecode to obtain DataDecode pDecode ═ new DataDecode ();
then, analyzing the message of the gift, wherein buf represents a received bullet screen network message to obtain pDecoder- > Parse (buf);
obtaining a message sender of the barrage message after parsing, wherein a message field ' danmusend ' indicates the sender to obtain std:: string send:: string (pDecoder- > GetItem (' danmusend "));
next, parsing the barrage content of the message, wherein the text is the barrage content, and obtaining std, string text, std, string (pDecoder- > GetItem ("text"));
in the embodiment, the message senders can be changed into a list in the bullet screen message, and a plurality of senders can be listed; meanwhile, for the bullet screen content, a plurality of bullet screen contents can be listed, and a plurality of bullet screen contents of the same sender are represented.
std, list < Message > for itrator itr; defines the iterator itr;
initialize iterator itr ═ lstresult. The value of the iterator is assigned to the head of the linked list of the message store.
A For loop is then written to traverse the message queue, resulting in For (; itr! lstresult. end (); + itr) final opening
For the bullet screen contents of which the senders are the same, taking out the bullet screen contents and putting the bullet screen contents into a bullet screen list to obtain
If((*itr).send==t.send){
Among them, "@; "to divide 2 bullet screen contents to obtain Text ═ (× itr) · Text +" @; text, "+ t;
t.ext=Text;
for deleting the merged bullet screen message, lst _ buffer.erase (it);
similarly, If the bullet screen contents are the same for different senders, If (() itr. text ═ t.text) is obtained by comparing the bullet screen contents
Extracting information of multiple senders to make a list of senders to obtain
t.send=(*itr).send+“@;”+t.send;
}
106. And combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises a combined gift message or a combined barrage message.
And combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises a combined gift message or a combined barrage message. For TCP long link networks, a network packet may be 65535 bytes, while in the existing live broadcast protocol, a bullet screen and a gift message are both a network packet, and the length of the network packet may be only 100 bytes, and for TCP long link, a plurality of network packets may be combined into a large data packet to be sent to a server or a client. The concrete implementation is as follows:
the packet body comprises a packet header and a packet body, the embodiment of the packet body is a character string, and the packet body comprises the length of a subsequent character string.
Assume message 1String message 1; there is a message 2string message 2;
in this embodiment, the message1 and the message2 are merged to obtain
String message=message1+“@;”+message2;
Meanwhile, for the length information of the packet header, the size of 2 merged packets needs to be modified to obtain
Len=message.len+message2.len。
It can be understood that, when the client or the server receives the merged packet, the merged packet is correspondingly split according to the sub-packets, so as to obtain a plurality of small network data packets. For a combined packet, multiple network messages may be sent as one network data packet.
In the embodiment of the invention, the protocol format and the protocol content of a network protocol are determined; generating a message queue, wherein the message queue is used for caching messages; generating a message investigation component for investigating messages in the message queue; determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component, and merging the gift messages to obtain merged gift messages; determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component, and merging the bullet screen messages to obtain merged bullet screen messages; and combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises the combined gift message or the combined barrage message. The small signaling with the largest frequency and number is merged and then sent to the client, so that the processing efficiency of network data is improved.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the method for optimizing a small signaling network packet provided in the embodiment of the present invention, the determining a protocol format and a protocol content of a network protocol includes: defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number; the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the method for optimizing a small signaling network packet provided in the embodiment of the present invention, the determining, according to the message snooping component, that a plurality of gift messages having the same protocol format and protocol content are merged to obtain a merged gift message includes: determining an object for message investigation; acquiring all gift messages according to the objects; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; a consolidated gift message is obtained that includes a field indicating a number of gift messages.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the method for optimizing a small signaling network packet provided in the embodiment of the present invention, the determining, according to the message investigation component, that a plurality of bullet screen messages having the same protocol format and protocol content are combined to obtain a combined bullet screen message includes: determining an object for message investigation; acquiring all bullet screen messages according to the object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the method for optimizing a small signaling network packet provided in the embodiment of the present invention, the method further includes: and generating a message analysis class, wherein the message analysis class is used for analyzing the combined message.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the method for optimizing a small signaling network packet provided in the embodiment of the present invention, the method further includes: receiving the large network data packet, wherein the large network data packet comprises the combined gift message and/or the combined barrage message; analyzing the combined gift message and/or the combined barrage message according to the message analysis class; determining the type and the number of the gift messages and/or the content and the sender of the bullet screen; a plurality of messages are obtained, the plurality of messages including gift messages and/or barrage messages.
It should be noted that, after the bullet screen message and the gift message of the sender are merged in this embodiment, the receiver needs to process the merged messages, all the messages are independent before merging, and after merging, other fields are needed to split each merged message, so as to parse a plurality of messages, and display and render the messages to the UI layer. The specific process is as follows:
firstly, creating an instance object of a message parsing class DataDecode, wherein the DataDecode is pDecode ═ new DataDecode ();
then, analyzing the message, pDecoder- > Parse (buf);
if the current type is a gift message, a sender list of the gift message, a message type list of the gift message, the number of the gift messages, and specifically, a type id list of the gift message need to be analyzed, and a string giftId is obtained;
analyzing the id list of the sender giving the gift to obtain
string giftsendId=pDecoder->GetItemAsInt(“giftsend”);
Analyzing the amount of the present gift to obtain
int count=pDecoder->GetItemAsInt(“count”);
And if one combined gift message resolves a plurality of gift messages, sending the plurality of gift messages to the UI layer for displaying and rendering.
If the current type is a bullet screen message:
analyzing the sender list of the bullet screen to obtain
std::string send=std::string(pDecoder->GetItem("danmusend"));
Analyzing the bullet screen content list to obtain
std::string text=std::string(pDecoder->GetItem("text"));
And if the plurality of bullet screen messages are analyzed from one combined bullet screen message, sending the plurality of bullet screen messages to the UI layer for displaying and rendering.
Optionally, on the basis of the embodiment corresponding to fig. 1, in an optional embodiment of the optimization method for a small signaling network packet provided in the embodiment of the present invention, the generating a message snooping component, where the snooping component is configured to snoop the messages in the message queue, includes: generating a data queue of the investigation result, wherein the data queue is used for storing messages; generating an interface function, wherein the interface function is used for detecting the messages in the data queue; and acquiring and storing the number of the detected messages.
The embodiments of the present invention are described above from the perspective of an optimization method of a small signaling network packet, and the embodiments of the present invention are described below from the perspective of an optimization apparatus of a small signaling network packet. The optimization device of the small signaling network data packet can be a server or a mobile terminal, and the invention is described by taking the mobile terminal as an example. The server is similar to the mobile terminal and is not described in detail.
Referring to fig. 2, fig. 2 is a schematic diagram of an embodiment of a possible mobile terminal according to the present invention, including:
a determining unit 201, configured to determine a protocol format and a protocol content of a network protocol;
a first generating unit 202, configured to generate a message queue, where the message queue is used to buffer messages;
a second generating unit 203, configured to generate a message snooping component, where the snooping component is configured to snoop the messages cached in the message queue;
a first merging unit 204, configured to determine, according to the message investigation component, a plurality of gift messages having the same protocol format and protocol content, and merge the gift messages to obtain merged gift messages;
a second merging unit 205, configured to determine, according to the message investigation component, a plurality of bullet screen messages with the same protocol format and protocol content, and merge the bullet screen messages to obtain a merged bullet screen message;
a third merging unit 206, configured to merge multiple small signaling network packets into one large network packet, where the small signaling network packet includes the merged gift message or the merged barrage message.
Optionally, in some possible implementations, the determining unit 201 is specifically configured to: defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number; the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
Optionally, in some possible implementations, the first merging unit 204 is specifically configured to: determining an object for message investigation; acquiring all gift messages according to the objects; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; a consolidated gift message is obtained that includes a field indicating a number of gift messages.
Optionally, in some possible implementations, the second merging unit 205 is further specifically configured to: determining an object for message investigation; acquiring all bullet screen messages according to the object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
Optionally, in some possible implementation manners, the mobile terminal further includes:
a third generating unit 207, configured to generate a message parsing class, where the message parsing class is used to parse the combined message.
Optionally, in some possible implementation manners, the mobile terminal further includes:
a receiving unit 208, configured to receive the large network data packet, where the large network data packet includes the merged gift message and/or the merged barrage message; the parsing unit 209 is configured to parse the merged gift message and/or the merged barrage message according to the message parsing class; a determining unit 210, configured to determine a type and a number of gift messages, and/or a bullet screen content and a bullet screen sender; the obtaining unit 211 is configured to obtain a plurality of messages, where the plurality of messages include a gift message and/or a barrage message.
Optionally, in some possible implementation manners, the second generating unit 203 is specifically configured to: generating a data queue of the investigation result, wherein the data queue is used for storing messages; generating an interface function, wherein the interface function is used for detecting the messages in the data queue; and acquiring and storing the number of the detected messages.
Referring to fig. 3, fig. 3 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the invention.
As shown in fig. 3, an embodiment of the present invention provides an electronic device, which includes a memory 310, a processor 320, and a computer program 311 stored in the memory 320 and executable on the processor 320, where the processor 320 executes the computer program 311 to implement the following steps: determining a protocol format and protocol content of a network protocol; generating a message queue, wherein the message queue is used for caching messages; generating a message investigation component, wherein the investigation component is used for investigating the messages cached in the message queue; determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and merging the gift messages to obtain merged gift messages; determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component and merging the bullet screen messages to obtain merged bullet screen messages; and combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises the combined gift message or the combined barrage message.
Optionally, in a possible embodiment, the processor is specifically configured to: defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number; the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
Optionally, in a possible embodiment, the processor is specifically configured to: determining an object for message investigation; acquiring all gift messages according to the objects; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; a consolidated gift message is obtained that includes a field indicating a number of gift messages.
Optionally, in a possible embodiment, the processor is specifically configured to: determining an object for message investigation; acquiring all bullet screen messages according to the object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
Optionally, in a possible embodiment, the processor is specifically configured to: and generating a message analysis class, wherein the message analysis class is used for analyzing the combined message.
Optionally, in a possible embodiment, the processor is specifically configured to: receiving the large network data packet, wherein the large network data packet comprises the combined gift message and/or the combined barrage message; analyzing the combined gift message and/or the combined barrage message according to the message analysis class; determining the type and the number of the gift messages and/or the content and the sender of the bullet screen; a plurality of messages are obtained, the plurality of messages including gift messages and/or barrage messages.
Optionally, in a possible embodiment, the processor is specifically configured to: generating a data queue of the investigation result, wherein the data queue is used for storing messages; generating an interface function, wherein the interface function is used for detecting the messages in the data queue; and acquiring and storing the number of the detected messages.
In a specific implementation, when the processor 320 executes the computer program 311, any of the embodiments corresponding to fig. 1 may be implemented.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium according to the present invention.
As shown in fig. 4, the present embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored, the computer program 411 implementing the following steps when executed by a processor: determining a protocol format and protocol content of a network protocol; generating a message queue, wherein the message queue is used for caching messages; generating a message investigation component, wherein the investigation component is used for investigating the messages cached in the message queue; determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and merging the gift messages to obtain merged gift messages; determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component and merging the bullet screen messages to obtain merged bullet screen messages; and combining a plurality of small signaling network data packets into a large network data packet, wherein the small signaling network data packet comprises the combined gift message or the combined barrage message.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number; the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: determining an object for message investigation; acquiring all gift messages according to the objects; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; a consolidated gift message is obtained that includes a field indicating a number of gift messages.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: determining an object for message investigation; acquiring all bullet screen messages according to the object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: and generating a message analysis class, wherein the message analysis class is used for analyzing the combined message.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: receiving the large network data packet, wherein the large network data packet comprises the combined gift message and/or the combined barrage message; analyzing the combined gift message and/or the combined barrage message according to the message analysis class; determining the type and the number of the gift messages and/or the content and the sender of the bullet screen; a plurality of messages are obtained, the plurality of messages including gift messages and/or barrage messages.
Optionally, in a possible embodiment, the computer program 411 is specifically adapted to implement the following steps when being executed by a processor: generating a data queue of the investigation result, wherein the data queue is used for storing messages; generating an interface function, wherein the interface function is used for detecting the messages in the data queue; and acquiring and storing the number of the detected messages.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (8)

1. A method for optimizing small signaling network data packets is applied to a server or a mobile terminal provided with a corresponding client, and is characterized by comprising the following steps:
determining a protocol format and protocol content of a network protocol;
generating a message queue, wherein the message queue is used for caching messages;
generating a message investigation component, wherein the investigation component is used for investigating the messages cached in the message queue;
determining a plurality of gift messages with the same protocol format and protocol content according to the message investigation component and merging the gift messages to obtain merged gift messages;
determining a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component and merging the bullet screen messages to obtain merged bullet screen messages;
merging a plurality of small signaling network data packets into one large network data packet, wherein the small signaling network data packet comprises the merged gift message or the merged barrage message;
wherein, the determining and merging a plurality of gift messages with the same protocol format and protocol content according to the message investigation component to obtain merged gift messages comprises:
determining a first object for message investigation;
acquiring all gift messages from the message queue according to the first object;
analyzing all the gift messages, and determining the types of gifts and gift givers;
merging gift messages of the same gift type and the gift giver;
obtaining a combined gift message, wherein the combined gift message comprises a field indicating the number of the gift messages;
wherein, the determining and merging a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component to obtain merged bullet screen messages comprises:
determining a second object for message investigation;
acquiring all bullet screen messages from the message queue according to the second object;
analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders;
merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender;
and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
2. The method of claim 1, wherein determining the protocol format and the protocol content of the network protocol comprises:
defining a packet header of a network protocol, wherein the packet header comprises a packet body length, an identifier and a packet combination number, the packet body length is used for indicating the byte length of the packet body, the identifier is used for indicating a station bit symbol, and the packet combination number is used for indicating the packet combination number;
the method comprises the steps of defining a body of a network protocol, wherein the body comprises a message character string which is used for indicating protocol content.
3. The method of claim 1, further comprising:
and generating a message analysis class, wherein the message analysis class is used for analyzing the combined message.
4. The method of claim 3, further comprising:
receiving the large network data packet, wherein the large network data packet comprises the combined gift message and/or the combined barrage message;
analyzing the combined gift message and/or the combined barrage message according to the message analysis class;
determining the type and the number of the gift messages and/or the content and the sender of the bullet screen;
a plurality of messages are obtained, the plurality of messages including gift messages and/or barrage messages.
5. The method of any one of claims 1-4, wherein generating a message snooping component for snooping messages in the message queue comprises:
generating a data queue of the investigation result, wherein the data queue is used for storing messages;
generating an interface function, wherein the interface function is used for detecting the messages in the data queue;
and acquiring and storing the number of the detected messages.
6. An optimization device for small signaling network data packets, which is applied to a server or a mobile terminal installed with a corresponding client, is characterized by comprising:
the determining unit is used for determining the protocol format and the protocol content of the network protocol;
the device comprises a first generating unit, a second generating unit and a sending unit, wherein the first generating unit is used for generating a message queue, and the message queue is used for caching messages;
the second generation unit is used for generating a message investigation component, and the investigation component is used for investigating the messages cached in the message queue;
the first merging unit is used for determining and merging a plurality of gift messages with the same protocol format and protocol content according to the message investigation component to obtain merged gift messages;
the second merging unit is used for determining and merging a plurality of bullet screen messages with the same protocol format and protocol content according to the message investigation component to obtain merged bullet screen messages;
a third merging unit, configured to merge multiple small signaling network packets into one large network packet, where the small signaling network packet includes the merged gift message or the merged barrage message;
the first merging unit is specifically configured to: determining a first object for message investigation; acquiring all gift messages from the message queue according to the first object; analyzing all the gift messages, and determining the types of gifts and gift givers; merging gift messages of the same gift type and the gift giver; obtaining a combined gift message, wherein the combined gift message comprises a field indicating the number of the gift messages;
the second merging unit is specifically configured to: determining a second object for message investigation; acquiring all bullet screen messages from the message queue according to the second object; analyzing all the bullet screen messages, and determining bullet screen contents and bullet screen senders; merging the bullet screen content and/or bullet screen messages identical to the bullet screen sender; and obtaining a combined bullet screen message, wherein the combined bullet screen message comprises a field for indicating the number of the bullet screen messages.
7. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1-5.
8. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 5.
CN201811163138.8A 2018-09-30 2018-09-30 Method and device for optimizing small signaling network data packet Active CN108965345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811163138.8A CN108965345B (en) 2018-09-30 2018-09-30 Method and device for optimizing small signaling network data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811163138.8A CN108965345B (en) 2018-09-30 2018-09-30 Method and device for optimizing small signaling network data packet

Publications (2)

Publication Number Publication Date
CN108965345A CN108965345A (en) 2018-12-07
CN108965345B true CN108965345B (en) 2021-09-07

Family

ID=64472850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811163138.8A Active CN108965345B (en) 2018-09-30 2018-09-30 Method and device for optimizing small signaling network data packet

Country Status (1)

Country Link
CN (1) CN108965345B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156148B (en) * 2017-12-21 2019-04-26 北京达佳互联信息技术有限公司 Comment polymerization methods of exhibiting, system, server and intelligent terminal
CN109857842B (en) * 2018-12-21 2021-06-15 北京奇艺世纪科技有限公司 Method and device for recognizing fault-reporting text
CN111372287B (en) * 2020-03-09 2021-09-28 京信网络系统股份有限公司 Signal processing method, access network equipment and multi-system access network equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193060A (en) * 2006-12-01 2008-06-04 武汉烽火网络有限责任公司 Method for reliable E1 transmission based on forward error correction mechanism in packet network
CN101312428A (en) * 2007-05-25 2008-11-26 中国移动通信集团公司 Voice packet transmitting and receiving method, media gateway and mobile switching center server
CN102377631A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Flow-control-based data transmission method and communication system
CN102916880A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Method and device for sending and receiving data packet in packet switched network
CN103150340A (en) * 2013-02-05 2013-06-12 上海达梦数据库有限公司 Fast loading system and method for multimedia data
CN103945455A (en) * 2014-04-25 2014-07-23 中国联合网络通信集团有限公司 Method and device for sending self-adaptive heartbeat data packets

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2329385A4 (en) * 2008-08-06 2016-09-14 Movik Networks Content caching in the radio access network (ran)
CN105872620A (en) * 2016-03-30 2016-08-17 宁波元鼎电子科技有限公司 Authority and level distinguished display method and authority and level distinguished display system in network broadcasting process
CN105872442A (en) * 2016-03-30 2016-08-17 宁波三博电子科技有限公司 Instant bullet screen gift giving method and instant bullet screen gift giving system based on face recognition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193060A (en) * 2006-12-01 2008-06-04 武汉烽火网络有限责任公司 Method for reliable E1 transmission based on forward error correction mechanism in packet network
CN101312428A (en) * 2007-05-25 2008-11-26 中国移动通信集团公司 Voice packet transmitting and receiving method, media gateway and mobile switching center server
CN102377631A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Flow-control-based data transmission method and communication system
CN102916880A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Method and device for sending and receiving data packet in packet switched network
CN103150340A (en) * 2013-02-05 2013-06-12 上海达梦数据库有限公司 Fast loading system and method for multimedia data
CN103945455A (en) * 2014-04-25 2014-07-23 中国联合网络通信集团有限公司 Method and device for sending self-adaptive heartbeat data packets

Also Published As

Publication number Publication date
CN108965345A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US8375094B2 (en) Creating a message readable by a plurality of heterogeneous recipients
CN108965345B (en) Method and device for optimizing small signaling network data packet
US9122651B1 (en) Computer system to support failover in an event stream processing system
KR101037263B1 (en) Session description message extensions
CN105871690B (en) Method and device for realizing instant messaging
KR101709791B1 (en) Consolidating duplicate messages for a single destination on a computer network
US9129258B2 (en) Systems, methods, and devices for communicating during an ongoing online meeting
US20090144368A1 (en) Clipboard for application sharing
CN102591980A (en) Method and system used for classifying image files in instant messaging
CN106713494B (en) Intelligent auditing method and device
US8880108B2 (en) Short message processing method and apparatus
US20240028565A1 (en) Information sharing method, apparatus, electronic device, and storage medium
CN112953850A (en) Data transmission method and device, computer readable medium and electronic equipment
US20170220218A1 (en) Automatic Generation of Regular Expression Based on Log Line Data
CN110233856B (en) Message processing method and device and computer readable storage medium
US20180343216A1 (en) Context driven modification of attachments in a messaging session
US20200327161A1 (en) Video processing method, device, terminal and storage medium
US9800531B2 (en) Email as a transport mechanism for activity stream posting
CN106888150B (en) Instant message processing method and device
CN112688885B (en) Message processing method and device
CN111063347B (en) Real-time voice recognition method, server and client
CN116820635A (en) Document block sharing method, device, system and storage medium
KR20160132854A (en) Asset collection service through capture of content
US20200045001A1 (en) Selecting attachments for electronic mail messages
US9904724B1 (en) Method and apparatus for message based security audit logging

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240117

Address after: Room 8434, Building 3, No. 3 Xijing Road, Badachu High tech Park, Shijingshan District, Beijing, 100000

Patentee after: Beijing Jinxin Ruitong Technology Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.