CN106302572B - Multi-channel communication method and system between servers - Google Patents

Multi-channel communication method and system between servers Download PDF

Info

Publication number
CN106302572B
CN106302572B CN201510247984.8A CN201510247984A CN106302572B CN 106302572 B CN106302572 B CN 106302572B CN 201510247984 A CN201510247984 A CN 201510247984A CN 106302572 B CN106302572 B CN 106302572B
Authority
CN
China
Prior art keywords
message
communication channel
communication
channel
feedback
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
CN201510247984.8A
Other languages
Chinese (zh)
Other versions
CN106302572A (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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group 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 TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201510247984.8A priority Critical patent/CN106302572B/en
Publication of CN106302572A publication Critical patent/CN106302572A/en
Application granted granted Critical
Publication of CN106302572B publication Critical patent/CN106302572B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a multi-channel communication method and a system thereof between servers, wherein the multi-channel communication method comprises the following steps: A. the proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and the message sent by the clients; B. the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; C. the application service server analyzes and processes the received message to obtain a feedback message, selects the feedback message from the feedback message, and feeds the selected feedback message back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback message back to a corresponding client; the method avoids insufficient number of communication channels or idle waste, and can basically balance the load of each channel by distributing the messages and the communication channels, thereby realizing optimal efficiency.

Description

Multi-channel communication method and system between servers
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for multi-channel communications between servers.
Background
In the current network communication, a proxy gateway server receives messages sent by each client or equipment and transmits the messages to an application service server. And then the application service server processes the message and feeds the message back to the proxy gateway server, and finally the proxy gateway server sends the feedback message to the corresponding client or equipment terminal. Typically a plurality of proxy gateway servers communicate with an application service server. When the proxy gateway server communicates with the application service server, a single communication channel is usually established between the two servers to transmit message data, and sometimes multiple communication channels are established according to different service requirements.
However, if there are many messages, one communication channel cannot satisfy the communication speed requirement. Even if there are multiple communication channels, the transmission of several messages through which communication channel is randomly assigned. Because the data size of the message is different, some messages need to be sent immediately, and whether the communication channel is smooth or not is related to the transmitted messages, so that the messages cannot be sent from the most appropriate communication channel. Also, when there are few messages, some communication channels are idle and useless. Therefore, the conventional communication channel establishment and transmission method has problems of communication capacity bottleneck or inefficient use of each communication channel.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The invention aims to provide a multi-channel communication method and a multi-channel communication system between servers, which are used for solving the problems that communication capacity is bottleneck or each communication channel cannot be efficiently utilized in the establishment and transmission modes of the communication channels.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of multi-channel communication between servers, comprising:
A. the proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and the message sent by the clients;
B. the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel;
C. the application service server analyzes and processes the received messages to obtain feedback messages, selects the feedback messages from the feedback messages, and feeds the selected feedback messages back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback messages back to the corresponding client.
In the method for multi-channel communication between servers, the step a specifically includes:
a1, the proxy gateway server logs in the application service server;
a2, pre-establishing a communication channel corresponding to the historical value between the proxy gateway server and the application service server according to the historical value;
and A3, adjusting the number of the communication channels according to the current number of the clients and the sent messages.
The multi-channel communication method between the serversIn said step a3, the number of communication channels is m,
Figure DEST_PATH_IMAGE001
and is and
Figure DEST_PATH_IMAGE002
wherein cn is the number of clients, aml is the average message length, acmc is the average message number per minute of each client, asbm is the average number of bytes sent per minute of each channel, 1.1 is a channel margin coefficient, and M is the maximum value of the number of existing communication channels.
In the method for multi-channel communication between servers, the step B specifically includes:
b1, receiving the message sent by the client and pushing the message into a first received message queue;
b2, extracting a group of messages with the same number as the communication channels in sequence from the first received message queue;
and B3, pairing the extracted message with the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and sending the extracted message to the application service server from the matched communication channel.
In the method for multi-channel communication between servers, in the step B3, the formula is used
Figure DEST_PATH_IMAGE003
Calculating a smoothness index of the communication channels, wherein the CLi is a buffer length of each communication channel, the OCLi is an occupied buffer length of each communication channel, and the Ti is a network delay time of each communication channel.
In the multi-channel communication method between servers, in the step B3, the urgency index of the message is calculated according to a formula Mui = k × MWTi, where MRTi is a timestamp recorded when each message is received, MWTi is a waiting time of the message, MWTi = MRTN-MRTi, MRTN is a current time point, and k is a constant of 0 to 1.
In the multi-channel communication method between servers, in the step B3, when performing pairing, a message with the largest urgency index Mui of the message is matched and associated with a communication channel with the largest smooth flow index CSIi of the communication channel, and a message with the largest urgency index Mui of the message is matched and associated with a communication channel with the largest smooth flow index CSIi of the communication channel, and so on; the message with the least urgency index Mui corresponds to the communication channel match with the least smoothness index CSIi for the communication channel.
In the method for multi-channel communication between servers, step C specifically includes:
c0, pressing the received message into the message receiving queue of the application service server, analyzing the received message, obtaining the feedback message, and pressing the feedback message into the message sending queue;
c1, selecting a group of feedback messages from the message sending queue according to a preset sequence, wherein the number of the group of feedback messages is the same as that of the current communication channels;
c2, feeding back the selected group of feedback messages to the proxy gateway server through the corresponding communication channel.
In the method for multi-channel communication between servers, the step C2 specifically includes:
c201, pairing the selected group of feedback messages with the communication channel according to the urgency index of the messages and the smoothness index of the communication channel;
and C202, sending the selected group of feedback messages to the proxy gateway server through the communication channel matched with the selected group of feedback messages.
A multi-channel communication system comprises a proxy gateway server and an application service server;
the proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and messages sent by the clients; the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; the application service server analyzes and processes the received message to obtain a feedback message, selects the feedback message from the feedback message, and feeds the selected feedback message back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback message back to a corresponding client
Compared with the prior art, the multi-channel communication method and the system thereof between the servers provided by the invention have the advantages that the proxy gateway server logs in the application service server, and more than two communication channels are established according to the number of the current clients and the messages sent by the clients; to avoid the shortage of communication channels or the waste of resources due to idle communication; the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; the application service server analyzes and processes the received messages to obtain feedback messages, selects the feedback messages from the feedback messages, and feeds the selected feedback messages back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback messages back to the corresponding client. The load of each channel is basically balanced through communication channel allocation, and the optimal efficiency is realized.
Drawings
Fig. 1 is a flowchart of a method of multi-channel communication between servers according to the present invention.
Fig. 2 is a block diagram of a multi-channel communication system according to the present invention.
Fig. 3 is a schematic diagram of the proxy gateway server sending a message to an application service server according to the present invention.
Fig. 4 is a schematic diagram of the application service server feeding back a message to the proxy gateway server according to the present invention.
Detailed Description
The invention provides a multi-channel communication method and a system thereof among servers.A proxy gateway server dynamically adjusts the number of communication channels according to the number of clients and messages sent by the clients, pairs the messages and the communication channels according to the urgency index of the messages and the smoothness index of the communication channels and sends the messages and the communication channels to an application service server. And after the application service server processes the message, pairing the feedback message and the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and feeding back the pairing result to the proxy gateway server. Thus, the load of each channel can be basically balanced by distribution, and the optimal efficiency is realized.
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Please refer to fig. 1, which is a flowchart illustrating a multi-channel communication method between servers according to the present invention. The multichannel communication method provided by the invention comprises the following steps:
s100, a proxy gateway server logs in an application service server, and establishes more than two communication channels according to the number of current clients and messages sent by the clients;
s200, the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to an application service server through the allocated communication channel;
s300, the application service server analyzes and processes the received messages to obtain feedback messages, selects the feedback messages, and feeds the selected feedback messages back to the proxy gateway server through the corresponding communication channel, so that the proxy gateway server can feed the received feedback messages back to the corresponding client.
Referring to fig. 2, fig. 3 and fig. 4, in the present embodiment, a proxy gateway server 100 (corresponding to an external network) is connected to a plurality of clients or devices, and receives data messages sent by the clients or devices. The proxy gateway servers 100 are a plurality of ones, and are all connected to an application service server 200 (corresponding to an intranet) in a communication manner. In order to distinguish different proxy gateway servers 100, in step S100, each proxy gateway server 100 logs in to the application service server 200 by using a unique account and a unique password. The account number and the password are used for authentication verification. It should be noted that the application service server may be provided with a service logic thread group ADT1s, a sending thread AST1, a receiving thread ART1, and the like, and the proxy gateway server may be provided with a receiving thread PRT1 and a sending thread PST 1.
After the validity is verified, communication channels (m pieces) corresponding to the historical values are pre-established between the proxy gateway server 100 and the application service server 200 according to the historical values (m is a positive integer). The historical value is the number of the currently established communication channels stored before the last power failure of the proxy gateway server. After the login, the communication channels are established by using the last historical value, and then the number of the communication channels is adjusted according to the number of the current client sides and/or equipment sides and the sent messages. The present embodiment may adjust the number of communication channels in real time (i.e., add or remove communication channels), or may detect the number of current clients and/or device ends once every preset time and adjust the sent message.
In this embodiment, the relationship between the number of current clients (plus the device side when there is a device side) and the number of messages and communication channels sent by the clients is as follows:
the number of communication channels is m,
Figure 895001DEST_PATH_IMAGE001
and is and
Figure 812141DEST_PATH_IMAGE002
wherein cn is the number of clients, aml (bytes) is the average message length, acmc is the average message number per minute of each client, asbm is the average number of bytes sent per minute of each channel, 1.1 is the channel margin coefficient, and M is the maximum value of the number of existing communication channels.
It should be understood that, the implementation may detect the number of the clients and the message sent by the clients in real time or at preset intervals, so as to dynamically adjust the number of the communication channels, thereby avoiding idle waste caused by too many communication channels and less time delay for sending information.
And after the number of the communication channels is calculated according to the formula and connection is established, the proxy gateway server can send messages. Referring to fig. 3, the step S200 specifically includes:
step 201, receiving a message sent by a client and pushing the message into a first received message queue.
For each client and/or device, such as clients a 1-An in fig. 3, messages sent by device terminals B1-Bn (a 1-An are corresponding to messages X1-message Xn, B1-Bn are corresponding to messages Y1-message Yn, n is a positive integer, where n is used to distinguish each client and device, and does not represent the input sequence), the proxy gateway receiving thread PRT1 receives the messages sent by the client and/or device and transmits the messages to the first received message queue PRMQ1 for temporary storage. At this point the messages in the first received message queue PRMQ1 are in a wait-to-send state.
Step 202, a group of messages with the same number of communication channels is sequentially extracted from the first received message queue.
According to the first-in first-out principle, the proxy gateway sending thread PST1 continuously extracts m (i.e. the number of communication channels) messages from the first received message queue PRMQ1 according to the order of message entry. If the number of the messages is less than m, the messages still form a group, and after all the messages are extracted, the extraction is marked to be finished. It should be understood that if 200 clients are assumed to send 200 messages, only 100 communication channels are actually established. In this step, the proxy gateway sending thread PST1 extracts the first 100 messages (i.e., a group of messages) and waits for subsequent assignment to the corresponding communication channels. After the current 100 messages are all sent, the proxy gateway sending thread PST1 extracts the next 100 messages to wait for distribution and sending.
And step 203, pairing the extracted message with the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and sending the extracted message to the application service server from the matched communication channel.
In this embodiment, according to the formula
Figure 591878DEST_PATH_IMAGE003
Calculating a smoothness index CSIi of the communication channels, wherein CLi is the length of a buffer area of each communication channel, OCLi is the occupied length of the buffer area of each communication channel, and Ti is the network delay time of each communication channel.
And recording a time stamp MRTi of each message when each message is received, checking the length PSMLI of each message in the extracted group of messages, and subtracting the time stamp MRTi of the message from the current time MRTN (namely the time for the message to be sent) to obtain the waiting time MWTi of the message, namely MWTi = MRTN-MRTi.
The urgency index Mui of a message is used to indicate the urgency with which the message needs to be sent out. When the message length PSMLi is less than or equal to the average message length aml, the urgency index Mui of the message is proportional to the waiting time MWTi, and Mui = k × MWTi (k is a constant from 0 to 1, which is an empirical value); the messages at this time are general control messages, heartbeat messages and other messages with higher priority. When the message length PSMLi is larger than the average message length aml, the urgency index Mui of the message is gradually decreased to equal to (1/PSMLi) × MWTi, which is typically a lower priority message such as file transfer.
In the embodiment, the message with the largest urgency index Mui of the message is matched and corresponds to the communication channel with the largest smoothness index CSIi of the communication channel, the message with the largest urgency index Mui is matched and corresponds to the communication channel with the largest smoothness index CSIi, and so on; mui the smallest message corresponds to the CSIi smallest communication channel match. And sending the message to the application service server from the communication channel corresponding to the matching. As shown in fig. 3, communication channel 1 may transmit message Yn, communication channel 2 may transmit message X1, communication channel 3 may transmit message X2, and communication channel m may transmit message Y3, all assigned according to actual calculation of Mui and CSIi values. Therefore, the message which is most urgent and has the longest waiting time can be sent from the most smooth communication channel, and the message which is less urgent is sent from the less smooth communication channel, so that the load of each channel is basically balanced, the optimal efficiency is realized, and the load capacity is improved.
It should be understood that, in the step 203, after a group of messages is paired and sent, the urgency index of the next group of messages and the smoothness index of the communication channel are calculated, and the messages are sent in a matching manner with the communication channel. Thus, the matching effect can be prevented from being influenced by miscalculating the two indexes.
The application service server receiving thread ART1 pushes the received message into the application service server receiving message queue ARMQ1, and waits for the service logic thread group ADT1s of the application service server to take out the message for analysis processing to realize the specific service. The processing of the message is the prior art and is not described herein.
It should be understood that the several threads, i.e., the proxy gateway receiving thread PRT1, the proxy gateway sending thread PST1, and the application service server receiving thread ART1, do not analyze and process the message content, and only serve to quickly receive, enqueue or dequeue and deliver the message to different communication channels.
Referring to fig. 4, after being processed by the service logic thread group ADT1s, the feedback messages (including messages AX1 to AXn, and messages AY1 to AYn) that the organization needs to send back to the client are pushed into the send message queue ASMQ1, where the message AX1 is a feedback message of the message X1, the message AXn is a feedback message of the message Xn, and so on.
The application service server sending thread AST1 continuously obtains feedback messages from the sending message queue ASMQ1 and sends the feedback messages to the proxy gateway server 100 through the communication channel 1,2,3.. m. When sending, the urgency index of the message and the smoothness index of the communication channel need to be calculated to allocate the communication channel. The method specifically comprises the following steps:
the application service server sending thread AST1 selects a group of feedback messages from a preset sequence (sequence when pushing the sending message queue ASMQ 1) in the sending message queue ASMQ1, wherein the number of the group of feedback messages is the same as the number of the current communication channels. And matching the selected group of feedback messages with the communication channel according to the urgency index of the messages and the smoothness index of the communication channel, and feeding back the selected group of feedback messages to the proxy gateway server through the corresponding communication channel. The mechanism for sending the feedback message by the application service server is the same as the mechanism for sending the message by the proxy gateway server. The calculation method of the urgency index of the message and the smoothness index of the communication channel and the allocation method of the communication channel are the same as those of the urgency index of the message and the smoothness index of the communication channel in the proxy gateway server and the allocation method of the communication channel, which is described in detail in step 202 and step 203.
The proxy gateway server receive thread PRT2 pushes the received feedback messages into the second receive message queue PRMQ 2. The proxy gateway server sending thread PST2 sends the feedback message in the second received message queue PRMQ2 to a different client or device.
It should be understood that the feedback messages are sent to the proxy gateway server according to groups (how many feedback messages in a group are determined by the number of communication channels), and when being sent to the client or the device side, the feedback messages can also be sent to the corresponding client or the device side immediately according to the groups, so as to reduce the waiting time.
When the proxy gateway server is powered off (such as power failure or shutdown), recording the number of the current communication channels as a historical value and storing the historical value; the communication channel is established with the history value the next time a communication is made with the application service server.
Based on the above-mentioned multi-channel communication method between servers, the present invention also provides a multi-channel communication system (see fig. 2) correspondingly, which includes a proxy gateway server 100 and an application service server 200. The proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and messages sent by the clients; the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; the application service server analyzes and processes the received messages to obtain feedback messages, selects the feedback messages from the feedback messages, and feeds the selected feedback messages back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback messages back to the corresponding client. It should be noted that, for the working principle of the multi-channel communication system of this embodiment, reference may be made to the specific implementation process of the multi-channel communication method of the foregoing embodiment, which is not described herein again.
In summary, when the communication channels are connected between the proxy gateway server and the application service server, the number of the communication channels is dynamically adjusted according to the number of the clients and the messages sent by the clients, so as to avoid the communication channels from being insufficient or idle and wasting resources, and to optimize the utilization rate of the communication channels. Meanwhile, when the message is transmitted, the message and the communication channel are paired according to the urgency index of the message and the smooth index of the communication channel, so that the load of each channel is basically balanced, and the optimal efficiency is realized.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (10)

1. A method for multi-channel communication between servers, comprising:
A. the proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and the message sent by the clients;
B. the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; when the message is sent, the extracted message is matched with the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and the extracted message is sent to the application service server from the matched communication channel;
C. the application service server analyzes and processes the received message to obtain a feedback message, selects the feedback message from the feedback message, and feeds the selected feedback message back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback message back to a corresponding client; when the feedback information is sent, matching the selected group of feedback information with the communication channel according to the urgency index of the information and the smoothness index of the communication channel, and sending the selected group of feedback information to the proxy gateway server through the communication channel matched with the selected group of feedback information;
extracting a group of messages with the same number as the communication channels, wherein when the message length of each message in the group of messages is smaller than or equal to the average message length, the urgency index of the message is in direct proportion to the waiting time; when the message length is greater than the average message length, the urgency index of the message is equal to (1/PSMLi) × MWTi, PSMLi is the message length, MWTi is the wait time;
the urgency index of the message is used for representing the urgency of the message needing to be sent out; each message records its time stamp when it is received, and the waiting time of the message is obtained by subtracting the time stamp of the message from the time the message is ready to be sent.
2. The method for multi-channel communication between servers according to claim 1, wherein the step a specifically comprises:
a1, the proxy gateway server logs in the application service server;
a2, pre-establishing a communication channel corresponding to the historical value between the proxy gateway server and the application service server according to the historical value;
and A3, adjusting the number of the communication channels according to the current number of the clients and the sent messages.
3. The method for multi-channel communication between servers as claimed in claim 2, wherein in said step A3, the number of communication channels is m,
Figure FDA0002552172670000011
and M is less than or equal to M;
wherein cn is the number of clients, aml is the average message length, acmc is the average message number per minute of each client, asbm is the average number of bytes sent per minute of each channel, 1.1 is a channel margin coefficient, and M is the maximum value of the number of existing communication channels.
4. The method for multi-channel communication between servers according to claim 1, wherein the step B specifically comprises:
b1, receiving the message sent by the client and pushing the message into a first received message queue;
b2, extracting a group of messages with the same number as the communication channels in sequence from the first received message queue;
and B3, pairing the extracted message with the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and sending the extracted message to the application service server from the matched communication channel.
5. The method for multi-channel communication between servers as claimed in claim 4, wherein in said step B3, the communication is performed according to formula
Figure FDA0002552172670000021
Calculating a smoothness index of the communication channels, wherein the CLi is a buffer length of each communication channel, the OCLi is an occupied buffer length of each communication channel, and the Ti is a network delay time of each communication channel.
6. The method of claim 5, wherein in the step B3, the urgency index of the message is calculated according to the formula Mui k MWTi, wherein the MWTi is the waiting time of the message, the MWTi is MRTN-MRTi, the MRTi is the timestamp recorded when each message is received, the MRTN is the current time point, and k is a constant between 0 and 1.
7. The method according to claim 6, wherein in said step B3, when pairing, the message with the largest urgency index Mui of the message is matched with the communication channel with the largest smoothness index CSIi of the communication channel, the message with the largest urgency index Mui is matched with the next largest smoothness index CSIi of the communication channel, and so on; the message with the least urgency index Mui corresponds to the communication channel match with the least smoothness index CSIi for the communication channel.
8. The method for multi-channel communication between servers according to claim 1, wherein step C specifically comprises:
c0, pressing the received message into the message receiving queue of the application service server, analyzing the received message, obtaining the feedback message, and pressing the feedback message into the message sending queue;
c1, selecting a group of feedback messages from the message sending queue according to a preset sequence, wherein the number of the group of feedback messages is the same as that of the current communication channels;
c2, feeding back the selected group of feedback messages to the proxy gateway server through the corresponding communication channel.
9. The method for multi-channel communication between servers as claimed in claim 8, wherein said step C2 specifically comprises:
c201, pairing the selected group of feedback messages with the communication channel according to the urgency index of the messages and the smoothness index of the communication channel;
and C202, sending the selected group of feedback messages to the proxy gateway server through the communication channel matched with the selected group of feedback messages.
10. A multi-channel communication system is characterized by comprising a proxy gateway server and an application service server; the proxy gateway server logs in an application service server and establishes more than two communication channels according to the number of current clients and messages sent by the clients; the proxy gateway server extracts the message from the message sent by the client, allocates a corresponding communication channel for the extracted message, and sends the extracted message to the application service server through the allocated communication channel; when the message is sent, the extracted message is matched with the communication channel according to the urgency index of the message and the smoothness index of the communication channel, and the extracted message is sent to the application service server from the matched communication channel; the application service server analyzes and processes the received message to obtain a feedback message, selects the feedback message from the feedback message, and feeds the selected feedback message back to the proxy gateway server through a corresponding communication channel, so that the proxy gateway server can feed the received feedback message back to a corresponding client; when the feedback information is sent, matching the selected group of feedback information with the communication channel according to the urgency index of the information and the smoothness index of the communication channel, and sending the selected group of feedback information to the proxy gateway server through the communication channel matched with the selected group of feedback information;
extracting a group of messages with the same number as the communication channels, wherein when the message length of each message in the group of messages is smaller than or equal to the average message length, the urgency index of the message is in direct proportion to the waiting time; when the message length is greater than the average message length, the urgency index of the message is equal to (1/PSMLi) × MWTi, PSMLi is the message length, MWTi is the wait time;
the urgency index of the message is used for representing the urgency of the message needing to be sent out; each message records its time stamp when it is received, and the waiting time of the message is obtained by subtracting the time stamp of the message from the time the message is ready to be sent.
CN201510247984.8A 2015-05-15 2015-05-15 Multi-channel communication method and system between servers Active CN106302572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510247984.8A CN106302572B (en) 2015-05-15 2015-05-15 Multi-channel communication method and system between servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510247984.8A CN106302572B (en) 2015-05-15 2015-05-15 Multi-channel communication method and system between servers

Publications (2)

Publication Number Publication Date
CN106302572A CN106302572A (en) 2017-01-04
CN106302572B true CN106302572B (en) 2020-09-22

Family

ID=57632039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510247984.8A Active CN106302572B (en) 2015-05-15 2015-05-15 Multi-channel communication method and system between servers

Country Status (1)

Country Link
CN (1) CN106302572B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166343A (en) * 2018-02-13 2019-08-23 贵州白山云科技股份有限公司 A kind of method and its information gateway of information gateway dispatch messages

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217483A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A method to realize cluster server inner load sharing agent
EP2347555A1 (en) * 2008-10-31 2011-07-27 Gemalto SA Method for establishing a link between the applications of an authentication card of a subscriber and an ims network
CN102710748A (en) * 2012-05-02 2012-10-03 华为技术有限公司 Data acquisition method, system and equipment
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness
CN104301287A (en) * 2013-07-16 2015-01-21 中兴通讯股份有限公司 Method, network node, server and system of implementing many-to-many session

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7660321B2 (en) * 2006-03-01 2010-02-09 Alcatel-Lucent Usa Inc. System and method for prioritizing session initiation protocol messages
CN202218410U (en) * 2011-06-22 2012-05-09 上海通号轨道交通工程技术研究中心有限公司 Multi-channel load balancing equipment
CN103023987A (en) * 2012-11-27 2013-04-03 蓝盾信息安全技术股份有限公司 Multiplexing method based on transmission control protocol (TCP) connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217483A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 A method to realize cluster server inner load sharing agent
EP2347555A1 (en) * 2008-10-31 2011-07-27 Gemalto SA Method for establishing a link between the applications of an authentication card of a subscriber and an ims network
CN102710748A (en) * 2012-05-02 2012-10-03 华为技术有限公司 Data acquisition method, system and equipment
CN104301287A (en) * 2013-07-16 2015-01-21 中兴通讯股份有限公司 Method, network node, server and system of implementing many-to-many session
CN103685054A (en) * 2013-12-18 2014-03-26 武汉烽火网络有限责任公司 Multipath load balancing method based on service awareness

Also Published As

Publication number Publication date
CN106302572A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US9537786B2 (en) Method, device, and system for information processing based on distributed buses
CN103986715B (en) A kind of method and device of control of network flow quantity
US10313768B2 (en) Data scheduling and switching method, apparatus, system
JP6392740B2 (en) Method and apparatus for negotiating bandwidth in a peer-to-peer network
US10367873B2 (en) Method of communicating data packets within data communication systems
CN110418376A (en) Data transmission method and device
CN102724132B (en) Method and device for improving transmission control protocol (TCP) connection multiplexing processing efficiency
CN101651629B (en) Method and equipment for dynamic grading scheduling of CPU receiving messages
CN104580158A (en) Distributed platform file and content distribution method and distributed platform file and content distribution system
CN104935622A (en) Method used for message distribution and consumption and apparatus thereof, and system used for message processing
CN102891809B (en) Multi-core network device message presses interface order-preserving method and system
EP3035193A1 (en) Memory module access method and device
EP2182756A3 (en) Service aggregator for allocating resources to a plurality of multiservice communication devices
CN107645540A (en) The load-balancing method of web application systems
CN107579925A (en) Message forwarding method and device
CN105743951A (en) Data sending method and apparatus and data receiving method and apparatus
CN102413054B (en) Method, device and system for controlling data traffic as well as gateway equipment and switchboard equipment
CN106302572B (en) Multi-channel communication method and system between servers
CN108900433A (en) A kind of method, terminal and server for transmitting lora message
EP2477366A1 (en) Data transmission method, apparatus and system
US10154116B1 (en) Efficient synchronization of locally-available content
CN105407059A (en) QoS scheduler and scheduling method for SCSI target device
CN104580209A (en) Device and method for implementing multi-platform message processing
CN101631074B (en) Multilink message sending method, device and network equipment
CN102256182A (en) RTP (Real-time Transport Protocol)-based video stream fragment framing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant