CN114338499A - Data transmission method, device thereof and electronic equipment - Google Patents

Data transmission method, device thereof and electronic equipment Download PDF

Info

Publication number
CN114338499A
CN114338499A CN202111649753.1A CN202111649753A CN114338499A CN 114338499 A CN114338499 A CN 114338499A CN 202111649753 A CN202111649753 A CN 202111649753A CN 114338499 A CN114338499 A CN 114338499A
Authority
CN
China
Prior art keywords
message processing
priority
message
routing
routing chain
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.)
Pending
Application number
CN202111649753.1A
Other languages
Chinese (zh)
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111649753.1A priority Critical patent/CN114338499A/en
Publication of CN114338499A publication Critical patent/CN114338499A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a data transmission method, a device thereof and electronic equipment. Wherein, the method comprises the following steps: acquiring a message to be sent; traversing the message processing examples in the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority; and sending the message to be sent by adopting the target message processing example. The invention solves the technical problem that the actual running state can not be fed back due to the deterioration of the actual running capability of the message processing example.

Description

Data transmission method, device thereof and electronic equipment
Technical Field
The invention relates to the technical field of RCS communication, in particular to a data transmission method, a data transmission device and electronic equipment.
Background
The downlink message sent from the MaaP platform by the message access module of the 5G message center is generally distributed to the instances in the message processing cluster in a balanced manner according to the hash method of the message ID or the called number content, and the actual operation capability of the message processing instances may be deteriorated due to different actual operating physical environments or increased burden of physical resources occupied by other software in the shared physical machine. At this time, the message processing instance cannot feed back the actual running state to the message access module, and the message access module cannot distribute the downlink message of the MaaP platform according to the actual load condition of the running environment of the message processing instance.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a device and electronic equipment thereof, which at least solve the technical problem that the actual operation state cannot be fed back due to the fact that the actual operation capacity of a message processing instance is poor.
According to an aspect of an embodiment of the present invention, there is provided a data transmission method, including: acquiring a message to be sent; traversing the message processing examples in the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority; and sending the message to be sent by adopting the target message processing example.
Optionally, before traversing the message processing instances among the plurality of routing lists according to the priority order, the method further includes: acquiring time delay information of each message processing instance in a message processing instance set, wherein the time delay information is based on the load state of a physical machine where current message processing is located and the network transmission capacity; and determining the priority of each message processing example according to the time delay information, and distributing each message processing example to a plurality of routing chain tables according to the priority of each message processing example.
Optionally, determining the priority of each message processing instance according to the delay information includes: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index is used for quantifying the degree of message forwarding delay; determining the value range of the time delay index; and determining the priority level corresponding to the value range, and taking the priority level corresponding to the value range as the priority of each message processing example.
Optionally, determining a delay indicator of each message processing instance in the message processing instance set according to the delay information includes: determining the average value of the time delay of all messages in unit time of each message processing instance and a preset maximum allowable time delay value; and determining a delay index according to the delay average value and the maximum allowable delay value.
Optionally, traversing the message processing instances in the plurality of routing lists according to the priority order includes: and traversing the plurality of routing chain tables in sequence from high to low according to the priority of the chain tables, and determining a target message processing example in a polling mode in the target routing chain table under the condition of determining the target routing chain table in the plurality of routing chain tables.
Optionally, the method further comprises: and after selecting the target message processing example in the target routing chain table, moving the target message processing example to the tail end of the target routing chain table.
Optionally, the method further comprises: determining the load state of a physical machine where a target message processing instance is located; and adjusting the corresponding priority of the target message processing example according to the load state, and distributing the target message processing example to a corresponding routing chain table according to the adjusted priority.
Optionally, traversing the message processing instances in the plurality of routing lists in the order of priority until the target message processing instance is retrieved, including: and under the condition that the retrieval times of the current routing chain table in the routing chain tables are larger than a preset threshold value and the number of the messages to be sent is multiple, distributing the messages to be sent to message processing examples in the routing chain table of the next priority corresponding to the priority of the current routing chain table according to a preset proportion.
According to another aspect of the embodiments of the present invention, there is also provided a data transmission apparatus, including: the acquisition module is used for acquiring a message to be sent; the retrieval module is used for traversing the message processing examples among the plurality of routing chain tables according to the priority order until a target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority; and the sending module is used for sending the message to be sent by adopting the target message processing example.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the data transmission method as described above.
According to another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data transmission method as described above.
In the embodiment of the invention, the message to be sent is obtained, the message processing examples among the plurality of routing chain tables are traversed according to the priority sequence until the target message processing example is retrieved, wherein the priorities of the plurality of routing chain tables are different, and the message processing examples in each routing chain table have the same priority, and then the target message processing example is adopted to send the message to be sent, so that the purpose of distributing the message according to the actual load condition of the running environment of the message processing example can be achieved, the technical effect of determining the priority degree of the route selected to the message processing example according to the service processing state of the message processing example is achieved, and the technical problem that the actual running state cannot be fed back due to the fact that the actual running capacity of the message processing example is poor is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram illustrating a hardware configuration of a computer terminal of a data transmission method according to an exemplary embodiment;
FIG. 2 is a block flow diagram illustrating a method of data transmission in accordance with an exemplary embodiment;
fig. 3 is a schematic diagram of a system networking according to embodiment 1 of the present invention;
FIG. 4 is a diagram of a routing chain table according to embodiment 1 of the present invention;
fig. 5 is a schematic flow chart of a route search according to embodiment 1 of the present invention;
fig. 6 is a schematic diagram of A2P message delivery delay according to embodiment 1 of the present invention;
FIG. 7 is a diagram illustrating migration from high priority to low priority according to an example of embodiment 1 of the present invention;
FIG. 8 is a diagram illustrating migration from a low priority to a high priority according to an example of embodiment 1 of the present invention;
fig. 9 is an apparatus block diagram of another data transmission method according to embodiment 2 of the present invention;
fig. 10 is an apparatus block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those 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 1
The data transmission method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or electronic device) for implementing a data transmission method. As shown in fig. 1, the computer terminal 10 (or electronic device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or electronic device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the data transmission method in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104, that is, implementing the data transmission method of the application program. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or electronic device).
It should be noted here that in some alternative embodiments, the computer device (or electronic device) shown in fig. 1 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.
Under the operating environment, the application provides a data transmission method as shown in fig. 2. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S202, obtaining a message to be sent;
step S204, traversing the message processing examples among the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority;
and step S206, sending the message to be sent by adopting the target message processing example.
By adopting the method of the embodiment, the purpose of distributing the message according to the actual load condition of the running environment of the message processing instance can be achieved, so that the technical effect of determining the priority degree of the route selected to the message processing instance according to the service processing state of the message processing instance is achieved, and the technical problem that the actual running state cannot be fed back due to the fact that the actual running capacity of the message processing instance is poor is solved.
And a plurality of message processing instances on the same priority routing chain table can be distributed with messages in a balanced manner, and message processing instances with different priorities can be distributed with messages in proportion.
The above message processing example may be an example of the operation of a message processing module of a 5GMC (5G message center). The message processing module is a core processing module in the 5GMC platform and completes the functions of message storage and forwarding, message retransmission, message withdrawal, message domain selection, message scheduling and cross-domain routing.
Specifically, when the message access module interacts with the message processing modules, each message processing module example feeds back a current message transmission delay average reference value to the message access module, wherein the current message transmission delay average reference value represents the physical machine load state and the network transmission capacity of a current message processing node; and the message processing example node with low message forwarding delay degree is placed in the route chain table with high priority, and the message processing example node with high message forwarding delay degree is placed in the route chain table with low priority.
In step S202 of the data transmission method, a message to be transmitted is acquired. Illustratively, as shown in fig. 3, an A2P message delivered by a MaaP platform is distributed to multiple instances of a message processing module through message access, and the message processing instance selects a terminal access instance registered on a destination mobile phone terminal. The A2P message passes through the message processing instance, the network between the message processing and the terminal access, the terminal access instance, the network between the terminal access and the handset terminal, and then to the handset terminal.
In step S204 of the data transmission method, the multiple routing chain tables may be sequentially traversed according to the order of the priority of the chain tables from high to low, and in the case of determining a target routing chain table in the multiple routing chain tables, a polling manner is adopted in the target routing chain table to determine a target message processing instance.
Illustratively, when the message access module distributes an A2P message issued by the MaaP platform, each routing linked list is traversed according to the order of priority from high to low, and multiple instances in the linked lists with the same priority are selected in a polling manner until a message processing instance is obtained, and the A2P message is sent.
Specifically, as shown in fig. 4, the data storage structure configured with the route link table in the message access module stores the route priority relationship of the message processing instance. There are multiple routing chain lists, each representing a routing priority, with instance nodes of the same priority placed on the same chain list. When selecting route, the route chain table with high priority is arranged in the front to search the example in the chain table, if the route example chain table with high priority does not search the node, the next example chain table with low priority is jumped to until the search is finished.
As shown in the searching flowchart of fig. 5, the left flowchart is to select the routing chain table according to the principle that the priority level is from high to low, select the selected routing chain table, and perform the process shown in the right flowchart to further search the instance node.
In order to ensure that the low-priority routing linked list can be searched by a small-probability specified proportion, when the message routing is searched, after the searching times of a certain priority routing linked list exceed a specified configuration number, a searching counter of the routing linked list is cleared, and the message routing is searched from the next low-priority linked list. If the last routing chain table is searched, the next low-priority chain table does not exist, and the message routing is searched again from the routing chain table with the highest priority.
In a possible implementation manner, the data transmission method of this embodiment further includes: and after selecting the target message processing example in the target routing chain table, moving the target message processing example to the tail end of the target routing chain table. If some example node is searched on the example linked list with the selected priority, the node is transferred to the end of the linked list with the same priority, and the load sharing is realized.
In a possible implementation manner, before traversing the message processing instances among the plurality of routing lists according to the priority order, the method of this embodiment further includes: acquiring time delay information of each message processing instance in a message processing instance set, wherein the time delay information is based on the load state of a physical machine where current message processing is located and the network transmission capacity; and determining the priority of each message processing example according to the time delay information, and distributing each message processing example to a plurality of routing chain tables according to the priority of each message processing example. The network transfer capability may include transmission speed and transmission quality.
Illustratively, as shown in FIG. 6, the time delay between the time elapsed in forwarding a message and the time elapsed between the issuance of a message to receipt of a message receipt is evaluated using the example.
Wherein, the definition:
message delivery latency: TDt ═ a (TDi1+ TDi2) + B ═ TDr
TDi 1: time consumed by forwarding the A2P message within an instance: the time difference from the point at which the message processing instance receives the A2P message to the time after the message is sent to the network.
TDi 2: represents the time consumed by the forwarding of the A2P response piece message within an instance: the time difference between the point in time when the message processing instance receives the A2P response piece message and the time after the response piece is sent to the network.
TDr: represents the time required for receipt after the message was sent: the message processing instance sends out the A2P unicast message and receives the acknowledgement time difference of the A2P unicast message.
Coefficient A: and the weight calculation proportion of the TDi is represented, and the range is 0.00-1.00.
Coefficient B: the weight calculation proportion of TDr is represented, and the range is 0.00-1.00.
In one possible embodiment, determining the priority of each message processing instance according to the delay information includes: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index is used for quantifying the degree of message forwarding delay; determining the value range of the time delay index; and determining the priority level corresponding to the value range, and taking the priority level corresponding to the value range as the priority of each message processing example.
In the foregoing embodiment, determining the delay indicator of each message processing instance in the message processing instance set according to the delay information may include: determining the average value of the time delay of all messages in unit time of each message processing instance and a preset maximum allowable time delay value; and determining a delay index according to the delay average value and the maximum allowable delay value.
Illustratively, determining the message forwarding delay level of the message processing instance includes: the message processing instance calculates the TDt value of each A2P and the first receipt process, calculates the average value AvgTDt of tdts of all messages in a unit time period, and then notifies the message access of the AvgTDt value. And if the message access is configured with the possible maximum range MaxTDt of the TDt, calculating the percentage of time delay (AvgTDt/MaxTDt) × 100 as the message forwarding time delay degree of the message processing example, wherein the minimum value is 1 and the maximum value is 100.
Then, dividing equal segments in numbers of 1-100 according to the quantity of the route priority configuration, searching the corresponding position of the digital segment where the message forwarding delay range value is located, and obtaining the corresponding route priority, wherein the smaller the value, the higher the priority. For example, if there are 2 route priority levels, the digital segments from level 1 to level 2 are divided into 1-50, 51-100, and if the calculated message forwarding delay degree value is 20, the priority level is 1, and if the calculated message forwarding delay degree value is 70, the priority level is 2.
In a possible implementation manner, the data transmission method of this embodiment further includes: determining the load state of a physical machine where a target message processing instance is located; and adjusting the corresponding priority of the target message processing example according to the load state, and distributing the target message processing example to a corresponding routing chain table according to the adjusted priority.
Illustratively, a corresponding routing linked list is found according to the routing priority calculated by the message processing example, if the routing linked list already contains the message processing example, transition processing is not needed, and if the routing linked list does not contain the message processing example, the message processing example node is moved from the old linked list into the new routing linked list.
The low-priority chain table is embedded from the high-priority chain table, and as shown in fig. 7, a 2-priority routing chain table is configured. Assume that the message forwarding delay level of current message processing example 2 is 46, and is placed on link list 1. The message access module receives an A2P message from the MaaP platform, the routing preferentially searches for instance nodes in a linked list 1, the linked list 1 comprises the nodes of the message processing instance 2, and the traffic of the A2P is distributed to the message processing instance 2. When the physical device of the example 2 runs other software to increase the burden, the message forwarding capability of the physical device is weakened, the AvgTDt of the physical device is fed back to the message access module, the calculated message forwarding delay degree is 56, and the priority range of the linked list 2 corresponds to the calculated message forwarding delay degree, the node of the example 2 is moved to the back of the linked list 2, and a small amount of downlink messages are distributed to the example 2.
Migrating the high-priority chain table from the low-priority chain table, as shown in fig. 8, a 2-priority route chain table is configured. Assume that the message forwarding delay level of current message processing example 2 is 52, and is placed on link list 2. The message access module receives an A2P message from the MaaP platform, the message routing traffic is preferentially distributed to nodes of other message processing instances corresponding to the linked list 1, and a small amount of traffic is distributed to the message processing instance 2 of the linked list 2. When the operation burden of the physical device of the message processing example 2 is reduced, the AvgTDt of the message processing example 2 is fed back to the message access module, the message forwarding delay degree is 47 after calculation, and the priority range of the linked list 1 corresponds to the message forwarding delay degree, the node of the example 2 is moved to the back of the linked list 1. Example 2 can be made to have more downstream message traffic available.
In step S204 of the data transmission method, when the number of times of retrieving the current routing chain table in the multiple routing chain tables is greater than the preset threshold and the number of messages to be sent is multiple, the multiple messages to be sent may be distributed to the message processing instances in the routing chain table of the next priority corresponding to the current routing chain table according to the preset proportion. In order to ensure that the message processing examples on the low-priority routing linked list can acquire a small amount of message flow, searching the high-priority routing linked list for a specified number of times and then searching the low-priority routing linked list according to the allocated proportion.
Example 2
According to an embodiment of the present application, there is further provided an apparatus for implementing the data transmission method, and fig. 9 is a block diagram of a structure of the data transmission apparatus according to the embodiment of the present application, and as shown in fig. 9, the data transmission apparatus includes: the data transmission apparatus includes an acquisition module 32, a retrieval module 34, and a sending module 36, which will be described below.
An obtaining module 32, configured to obtain a message to be sent;
a retrieval module 34, configured to traverse the message processing instances among the multiple routing chain lists according to the priority order until a target message processing instance is retrieved, where the priority of the multiple routing chain lists is different, and the message processing instances in each routing chain list have the same priority;
and a sending module 36, configured to send a message to be sent by using the target message processing instance.
It should be noted here that the acquiring module 32, the retrieving module 34 and the sending module 36 correspond to steps S202 to S206 in embodiment 1, and the three modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1.
Example 3
Embodiments of the present application may provide an electronic device, which may be any one of computer terminal devices in a computer terminal group.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Alternatively, fig. 10 is a block diagram illustrating a structure of an electronic device according to an example embodiment. As shown in fig. 10, the electronic device may include: one or more processors 41 (only one shown), a memory 42 for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the data transmission method of any of the above.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the data transmission method and apparatus in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the data transmission method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring a message to be sent; traversing the message processing examples in the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority; and sending the message to be sent by adopting the target message processing example.
Optionally, the processor may further execute the program code of the following steps: before traversing the message processing examples among the plurality of routing chain tables according to the priority order, acquiring the time delay information of each message processing example in the message processing example set, wherein the time delay information is based on the load state of a physical machine where the current message processing is located and the network transmission capacity; and determining the priority of each message processing example according to the time delay information, and distributing each message processing example to a plurality of routing chain tables according to the priority of each message processing example.
Optionally, the processor may further execute the program code of the following steps: determining the priority of each message processing instance according to the time delay information, comprising: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index is used for quantifying the degree of message forwarding delay; determining the value range of the time delay index; and determining the priority level corresponding to the value range, and taking the priority level corresponding to the value range as the priority of each message processing example.
Optionally, the processor may further execute the program code of the following steps: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index comprises: determining the average value of the time delay of all messages in unit time of each message processing instance and a preset maximum allowable time delay value; and determining a delay index according to the delay average value and the maximum allowable delay value.
Optionally, the processor may further execute the program code of the following steps: traversing message processing instances in a plurality of routing chain tables according to a priority order, comprising: and traversing the plurality of routing chain tables in sequence from high to low according to the priority of the chain tables, and determining a target message processing example in a polling mode in the target routing chain table under the condition of determining the target routing chain table in the plurality of routing chain tables.
Optionally, the processor may further execute the program code of the following steps: and after selecting the target message processing example in the target routing chain table, moving the target message processing example to the tail end of the target routing chain table.
Optionally, the processor may further execute the program code of the following steps: determining the load state of a physical machine where a target message processing instance is located; and adjusting the corresponding priority of the target message processing example according to the load state, and distributing the target message processing example to a corresponding routing chain table according to the adjusted priority.
Optionally, the processor may further execute the program code of the following steps: traversing the message processing instances in the plurality of routing chain tables according to the priority order until a target message processing instance is retrieved, comprising: and under the condition that the retrieval times of the current routing chain table in the routing chain tables are larger than a preset threshold value and the number of the messages to be sent is multiple, distributing the messages to be sent to message processing examples in the routing chain table of the next priority corresponding to the priority of the current routing chain table according to a preset proportion.
Those of ordinary skill in the art will appreciate that the configuration shown in FIG. 10 is merely illustrative. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, it may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 4
In an exemplary embodiment, there is also provided a computer-readable storage medium including instructions that, when executed by a processor of a terminal, enable the terminal to perform the data transmission method of any one of the above. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Optionally, in this embodiment, the computer-readable storage medium may be configured to store the program code executed by the data transmission method provided in embodiment 1.
Optionally, in this embodiment, the computer-readable storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: acquiring a message to be sent; traversing the message processing examples in the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority; and sending the message to be sent by adopting the target message processing example.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: before traversing the message processing examples among the plurality of routing chain tables according to the priority order, acquiring the time delay information of each message processing example in the message processing example set, wherein the time delay information is based on the load state of a physical machine where the current message processing is located and the network transmission capacity; and determining the priority of each message processing example according to the time delay information, and distributing each message processing example to a plurality of routing chain tables according to the priority of each message processing example.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: determining the priority of each message processing instance according to the time delay information, comprising: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index is used for quantifying the degree of message forwarding delay; determining the value range of the time delay index; and determining the priority level corresponding to the value range, and taking the priority level corresponding to the value range as the priority of each message processing example.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index comprises: determining the average value of the time delay of all messages in unit time of each message processing instance and a preset maximum allowable time delay value; and determining a delay index according to the delay average value and the maximum allowable delay value.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: traversing message processing instances in a plurality of routing chain tables according to a priority order, comprising: and traversing the plurality of routing chain tables in sequence from high to low according to the priority of the chain tables, and determining a target message processing example in a polling mode in the target routing chain table under the condition of determining the target routing chain table in the plurality of routing chain tables.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: and after selecting the target message processing example in the target routing chain table, moving the target message processing example to the tail end of the target routing chain table.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: determining the load state of a physical machine where a target message processing instance is located; and adjusting the corresponding priority of the target message processing example according to the load state, and distributing the target message processing example to a corresponding routing chain table according to the adjusted priority.
Optionally, in this embodiment, the computer readable storage medium is configured to store program code for performing the following steps: traversing the message processing instances in the plurality of routing chain tables according to the priority order until a target message processing instance is retrieved, comprising: and under the condition that the retrieval times of the current routing chain table in the routing chain tables are larger than a preset threshold value and the number of the messages to be sent is multiple, distributing the messages to be sent to message processing examples in the routing chain table of the next priority corresponding to the priority of the current routing chain table according to a preset proportion.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method of data transmission, comprising:
acquiring a message to be sent;
traversing the message processing examples in the plurality of routing chain tables according to the priority order until the target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority;
and sending the message to be sent by adopting the target message processing example.
2. The method of claim 1, wherein prior to traversing the message processing instances between the plurality of routing lists in a priority order, the method further comprises:
acquiring time delay information of each message processing instance in a message processing instance set, wherein the time delay information is based on the load state of a physical machine where current message processing is located and the network transmission capacity;
and determining the priority of each message processing example according to the time delay information, and distributing each message processing example to the plurality of routing chain tables according to the priority of each message processing example.
3. The method of claim 2, wherein determining the priority of each message processing instance based on the latency information comprises:
determining a delay index of each message processing instance in the message processing instance set according to the delay information, wherein the delay index is used for quantifying the degree of message forwarding delay;
determining the value range of the time delay index;
and determining the priority level corresponding to the value range, and taking the priority level corresponding to the value range as the priority of each message processing instance.
4. The method of claim 3, wherein determining a delay metric for each message processing instance in the set of message processing instances based on the delay information comprises:
determining the time delay average value of all messages in unit time of each message processing instance and a preset maximum allowable time delay value;
and determining the time delay index according to the time delay average value and the maximum allowable time delay value.
5. The method of claim 1, wherein traversing the message processing instances in the plurality of routing lists in a priority order comprises:
and sequentially traversing the plurality of routing chain tables according to the sequence of the chain table priorities from high to low, and determining the target message processing example in the target routing chain table in a polling mode under the condition of determining the target routing chain table in the plurality of routing chain tables.
6. The method of claim 5, further comprising:
and after the target message processing example is selected in the target routing chain table, moving the target message processing example to the tail end of the target routing chain table.
7. The method of claim 1, further comprising:
determining the load state of a physical machine where the target message processing instance is located; and adjusting the priority corresponding to the target message processing example according to the load state, and distributing the target message processing example to a corresponding routing chain table according to the adjusted priority.
8. The method of claim 1, wherein traversing the message processing instances in the plurality of routing lists in a priority order until the target message processing instance is retrieved comprises:
and under the condition that the retrieval times of the current routing chain table in the routing chain tables are larger than a preset threshold value and the quantity of the messages to be sent is multiple, distributing the messages to be sent to message processing examples in the routing chain table of the next priority corresponding to the priority of the current routing chain table according to a preset proportion.
9. A data transmission apparatus, comprising:
the acquisition module is used for acquiring a message to be sent;
the retrieval module is used for traversing the message processing examples among the plurality of routing chain tables according to the priority order until a target message processing example is retrieved, wherein the priority of the plurality of routing chain tables is different, and the message processing examples in each routing chain table have the same priority;
and the sending module is used for sending the message to be sent by adopting the target message processing example.
10. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data transmission method of any one of claims 1 to 8.
11. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data transmission method of any of claims 1 to 8.
CN202111649753.1A 2021-12-29 2021-12-29 Data transmission method, device thereof and electronic equipment Pending CN114338499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111649753.1A CN114338499A (en) 2021-12-29 2021-12-29 Data transmission method, device thereof and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111649753.1A CN114338499A (en) 2021-12-29 2021-12-29 Data transmission method, device thereof and electronic equipment

Publications (1)

Publication Number Publication Date
CN114338499A true CN114338499A (en) 2022-04-12

Family

ID=81018258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111649753.1A Pending CN114338499A (en) 2021-12-29 2021-12-29 Data transmission method, device thereof and electronic equipment

Country Status (1)

Country Link
CN (1) CN114338499A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872769A (en) * 1995-07-19 1999-02-16 Fujitsu Network Communications, Inc. Linked list structures for multiple levels of control in an ATM switch
EP3029898A2 (en) * 2013-07-31 2016-06-08 ZTE Corporation Virtual output queue authorization management method and device, and computer storage medium
CN106776401A (en) * 2016-11-23 2017-05-31 东软集团股份有限公司 Method for message transmission and device
CN108989284A (en) * 2018-06-07 2018-12-11 深圳震有科技股份有限公司 A kind of service trigger method, storage medium and application server
CN110740162A (en) * 2019-08-30 2020-01-31 上海连尚网络科技有限公司 Communication link establishing method, device, electronic equipment and medium
CN111124355A (en) * 2019-12-12 2020-05-08 东软集团股份有限公司 Information processing method and device, readable storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872769A (en) * 1995-07-19 1999-02-16 Fujitsu Network Communications, Inc. Linked list structures for multiple levels of control in an ATM switch
EP3029898A2 (en) * 2013-07-31 2016-06-08 ZTE Corporation Virtual output queue authorization management method and device, and computer storage medium
CN106776401A (en) * 2016-11-23 2017-05-31 东软集团股份有限公司 Method for message transmission and device
CN108989284A (en) * 2018-06-07 2018-12-11 深圳震有科技股份有限公司 A kind of service trigger method, storage medium and application server
CN110740162A (en) * 2019-08-30 2020-01-31 上海连尚网络科技有限公司 Communication link establishing method, device, electronic equipment and medium
CN111124355A (en) * 2019-12-12 2020-05-08 东软集团股份有限公司 Information processing method and device, readable storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
柳少锋;董剑;吴智博;: "一种基于优先级队列的集群动态反馈调度算法", 智能计算机与应用, no. 04, pages 2 *

Similar Documents

Publication Publication Date Title
JP6608545B2 (en) Service traffic distribution method and apparatus
CN112512100B (en) Slice priority-based AMF (advanced metering framework) redirection method and newly-added management network element
CN109076357A (en) Application method, relevant device and system are migrated in mobile limbic system
KR20190091558A (en) Method, apparatus, and communication system for transmitting a service flow based on flexible ethernet
CN101715228A (en) Wireless communication system, management server, wireless terminal, and network selection method
CN111431803A (en) Routing method and device
CN109617810B (en) Data transmission method and device
EP3917084A1 (en) Network as service service cross-domain orchestration method, orchestration device, and control device
CN111884875A (en) Offline device determination method and device
EP2689571B1 (en) Replicating data
CN110851275B (en) Load transfer method and device of routing node
CN108696427B (en) Data transmission method and device
US9692685B2 (en) Heterogeneous network system, network apparatus, and rendezvous path selection method thereof
CN114338499A (en) Data transmission method, device thereof and electronic equipment
CN116318554A (en) Network transmission method and device
TWI584666B (en) Push-based information delivery device, push-based information delivery method and program
EP3672171A1 (en) Message transmission method and device
AU2013373349B2 (en) Communication management system and program
CN102868771A (en) Converged address book based contact synchronizing method, device and system
US11575601B2 (en) Network device and packet processing method using same
CN108737223B (en) Health consultation method, device, platform and storage medium based on load balancing
CN112653626A (en) High-delay link determining method, route publishing method and device
CN110996359B (en) Network control method, terminal and storage medium
CN108337634A (en) HAPS call Cut-in control methods, device, High Altitude Platform and computer storage media
CN117081983B (en) Data transmission method and device

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