WO2019148716A1 - Data transmission method, server, and storage medium - Google Patents

Data transmission method, server, and storage medium Download PDF

Info

Publication number
WO2019148716A1
WO2019148716A1 PCT/CN2018/089133 CN2018089133W WO2019148716A1 WO 2019148716 A1 WO2019148716 A1 WO 2019148716A1 CN 2018089133 W CN2018089133 W CN 2018089133W WO 2019148716 A1 WO2019148716 A1 WO 2019148716A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
priority
data
transmission
storage node
Prior art date
Application number
PCT/CN2018/089133
Other languages
French (fr)
Chinese (zh)
Inventor
刘浩月
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019148716A1 publication Critical patent/WO2019148716A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0091Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location arrangements specific to receivers, e.g. format detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/805QOS or priority aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/826Involving periods of time
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a server, and a computer readable storage medium.
  • the present application provides a data transmission method, a server, and a computer readable storage medium, the main purpose of which is to share data transmission tasks, improve network transmission efficiency, increase redundant backup, and improve system stability and reliability.
  • the present application provides a data transmission method, including:
  • Monitoring step monitoring the system resources of the server and the current state of the storage node
  • Judgment step determining whether the current state of the system resource and the storage node is normal
  • Selection step when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network.
  • the storage node, the preset routing algorithm includes:
  • Polling algorithm use two sets of network transmission data packets in turn;
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks.
  • N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • the application further provides a server, the server includes: a memory and a processor, wherein the memory stores a data transmission program, and the data transmission program is executed by the processor, and the following steps can be implemented:
  • Monitoring step monitoring the system resources of the server and the current state of the storage node
  • Judgment step determining whether the current state of the system resource and the storage node is normal
  • Selection step when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network.
  • the storage node, the preset routing algorithm includes:
  • Polling algorithm use two sets of network transmission data packets in turn;
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks.
  • N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • the present application further provides a computer readable storage medium including a data transmission program, where the data transmission program is executed by a processor, and the data transmission as described above can be implemented. Any step in the method.
  • the data transmission method, the server and the computer readable storage medium proposed by the present application by constructing two groups of networks, select an optimal routing algorithm from a preset routing algorithm by using a preset selection rule according to the state of the system resource.
  • the transmission of the two groups of networks is allocated to improve the stability and transmission efficiency of the system.
  • FIG. 1 is a schematic diagram of an application environment of a data transmission method according to the present application.
  • FIG. 2 is a schematic diagram of a preferred embodiment of a server of the present application.
  • FIG. 3 is a block diagram showing a preferred embodiment of the data transmission program of FIG. 2;
  • FIG. 4 is a flowchart of a first embodiment of a data transmission method according to the present application.
  • FIG. 5 is a flowchart of a second embodiment of a data transmission method according to the present application.
  • FIG. 1 is a schematic diagram of an application environment of a data transmission method of the present application.
  • the present application provides a distributed storage system, which includes a server 1, a storage node 2, two sets of networks - Network A and Network B, and one or more clients 3.
  • the client 3 issues a request to the server to read and write data to the storage node 2.
  • the server 1 selects a group of networks from the network A and the network B to read and write data from the storage node according to a preset selection rule.
  • the server 1 is also used to monitor the working state and capacity of the storage node 2.
  • the network includes transmission lines such as communication lines and network switches.
  • FIG. 2 is a schematic diagram of a preferred embodiment of the server 1 of the present application.
  • the server 1 may be a server, a smart phone, a tablet computer, a personal computer, a portable computer, and other electronic devices having computing functions.
  • the server 1 includes a memory 11, a processor 12, a network interface 13, and a communication bus 14.
  • the network interface 13 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • Communication bus 14 is used to implement connection communication between these components.
  • the memory 11 includes at least one type of readable storage medium.
  • the at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like.
  • the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1.
  • the memory 11 may also be an external storage unit of the server 1, such as a plug-in hard disk equipped on the server 1, a smart memory card (SMC), and a secure digital ( Secure Digital, SD) cards, flash cards, etc.
  • SMC smart memory card
  • SD Secure Digital
  • the memory 11 can be used not only for storing application software installed on the server 1 and various types of data, such as the data transmission program 10.
  • the processor 12 in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a data transfer program. 10 computer program code, monitoring of the current state of the storage node and system resources, and the like.
  • CPU Central Processing Unit
  • microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a data transfer program.
  • 10 computer program code, monitoring of the current state of the storage node and system resources, and the like.
  • FIG. 2 shows only server 1 with components 11-14 and data transfer program 10, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the server 1 may also include a display, which may be referred to as a display screen or a display unit.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an Organic Light-Emitting Diode (OLED) touch sensor.
  • OLED Organic Light-Emitting Diode
  • the display is used to display information processed in the server 1 and a work interface for displaying visualizations.
  • the server 1 may further include a user interface
  • the user interface may include an input unit such as a keyboard, a voice output device such as an audio, a headset, etc.
  • the user interface may further include a standard wired interface and a wireless interface.
  • the program code of the data transfer program 10 is stored in the memory 11 as a computer storage medium.
  • the processor 12 executes the program code of the data transfer program 10, the following steps are implemented:
  • Monitoring step monitoring the system resources of the server and the current state of the storage node
  • Judgment step determining whether the current state of the system resource and the storage node is normal
  • Selection step when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network.
  • the storage node, the preset routing algorithm includes:
  • Polling algorithm use two sets of network transmission data packets in turn;
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks.
  • N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • FIG. 3 for a block diagram of a preferred embodiment of the data transmission program 10
  • FIG. 4 for a flowchart of the first embodiment of the data transmission method
  • FIG. 5 for an introduction of the flowchart of the second embodiment of the data transmission method.
  • FIG. 3 is a block diagram of a preferred embodiment of the data transfer program 10 of FIG. 2.
  • a module as referred to in this application refers to a series of computer program instructions that are capable of performing a particular function.
  • the data transmission program 10 includes: a monitoring module 110, a determining module 120, a selecting module 130, a calculating module 140, and a notification module 150.
  • the functions or operating steps implemented by the modules 110-150 are similar to the above. , not detailed here, exemplarily, for example:
  • the monitoring module 110 is configured to monitor a system resource of the server and a current state of the storage node.
  • the monitoring module 110 monitors the current state of the storage node and system resources in real time.
  • the current state of the monitoring storage node refers to monitoring whether the storage node is faulty.
  • the system resources include: local disk utilization, memory utilization, CPU utilization, and the like.
  • the determining module 120 is configured to determine whether the current state of the storage node is normal or determine the current state of the system resource and determine whether the difference between the delay time of the current transmission data and the average delay time of the network exceeds a first preset value. The determining module 120 determines whether the storage node is faulty according to the system resource of the monitored server and the current state of the storage node, and whether the system resource is normal. When a storage node fails, a group of networks is automatically designated to perform data repair on the failed storage node, and another group of networks is used to transmit data to other storage nodes.
  • the data repair refers to a method for repairing data in the storage node when the storage node fails to cause data loss, wherein the data repair includes: copy data repair, regeneration code data repair, multi-node collaborative data repair, and the like.
  • the determination module 120 determines the current state of the system resource.
  • the pre-determined determining method includes: determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold.
  • the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined.
  • the normal state of the system resources includes sufficient system resources, and sufficient system resources are only a special case of normal system resources.
  • the first preset threshold of the local disk is 50%
  • the second preset threshold is 80%
  • the first preset threshold of the memory utilization is 40%
  • the second preset threshold is 70%.
  • the first preset threshold of the utilization is 40%
  • the second preset threshold is 60%.
  • the local disk utilization is 82%
  • the memory utilization is 68%
  • the CPU utilization is 30%
  • the system resources are tight.
  • the local disk utilization is 40%
  • the memory utilization is 30%
  • the CPU utilization is 30%
  • the system resources are sufficient.
  • the local disk utilization is 60%
  • the memory utilization is 68%
  • the CPU utilization is 30%, indicating that the system resources are currently in a normal state.
  • the selecting module 130 is configured to select a routing algorithm from the preset routing algorithm when the system resources are normal and the current state of the storage node is normal, and allocate the data packet to the corresponding network transmission according to the selected routing algorithm. Go to the corresponding storage node.
  • the selection module 130 selects a routing algorithm from the preset routing algorithm.
  • the preset routing algorithm includes:
  • Polling algorithm Two sets of network transmission packets are used in turn.
  • the server 1 divides the data packets that need to be transmitted into several parts, the first part of the data packets are transmitted using the network A, the second part of the data packets are transmitted using the network B, and the third part of the data packets are transmitted using the network A, so that the loop is repeated until all the needs are needed.
  • the uploaded data packet is transferred.
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is assigned a first priority, and the remaining network is assigned a second priority, and the first proportion of data packets are allocated to the network transmission of the first priority, and the second proportion of data packets are allocated to The second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio.
  • the number of data packets completed by network A and network B in a unit time is 30 and 20 respectively. If the preset value is set to 8, the first priority is assigned to network A, and the data packets to be uploaded are to be uploaded. 60% is allocated to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks; when the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, the remaining network allocates the second priority, allocates the third proportion of the data packet to the network transmission of the first priority, and allocates the fourth proportion of the data packet to another network transmission, where the One priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • the preset threshold is set to 6
  • the first priority will be assigned to Network A
  • the packets to be uploaded will be used.
  • 60% is assigned to Network A
  • the second priority is assigned to Network B
  • 40% of the packets that need to be uploaded are assigned to Network B.
  • a handover step should be further included: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, when When monitoring the system resources of the server is sufficient, switching to the polling algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resource is in a normal state, switching to the shortest queue algorithm allocates the data packet to the corresponding The network is transferred to the corresponding storage node. For example, when the memory utilization is higher than 70%, it indicates that the current system resources are tight, and the optimal path algorithm is automatically selected to allocate the data packets to the network A and the network B respectively.
  • the calculating module 140 is configured to calculate an average delay time of each group of network data transmissions in real time, and calculate a difference between a delay time of the current transmission data and an average delay time of the network.
  • the delay time refers to a portion where the current transmission time exceeds the transmission time in the normal state. For example, in the normal state, it takes 10 seconds to transmit a data packet from the client 3 to the storage node 2, and if the transmission time is 16 seconds, the delay time is 6 seconds.
  • Statistics and calculations The average of the delay times of all packets transmitted by each group of networks at the current time, which is the average delay time. Assuming an average delay time of 2 seconds, the difference between the current transmission data delay time and the network average delay time is 4 seconds.
  • the notification module 150 is configured to notify the storage node that receives the data that the current data transmission is invalid when the delay time of the current data transmission of the group of networks exceeds the second preset value, and request another group of networks to retransmit the data to the storage node. . Assuming that the second preset value is set to 20 seconds, when the delay time of the network A transmitting certain data to the storage node 2 exceeds 20 seconds, the notification module 150 sends abort information to notify the storage node 2 that the current data transmission is invalid, and requests the network. B retransmits the data to storage node 2.
  • FIG. 4 it is a flowchart of the first embodiment of the data transmission method of the present application.
  • the method for implementing data transmission includes: Step S10 - Step S30:
  • step S10 the monitoring module 110 monitors the current state of the storage node and system resources in real time.
  • the current state of the monitoring storage node refers to monitoring whether the storage node is faulty.
  • the system resources include: local disk utilization, memory utilization, CPU utilization, and the like.
  • the determining module 120 determines the current state of the system resource.
  • the pre-determined determining method includes: determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold. When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
  • the normal state of the system resources includes sufficient system resources, and sufficient system resources are only a special case of normal system resources.
  • the first preset threshold of the local disk is 50%
  • the second preset threshold is 80%
  • the first preset threshold of the memory utilization is 40%
  • the second preset threshold is 70%
  • the first preset threshold of the utilization is 40%
  • the second preset threshold is 60%.
  • the local disk utilization is 82%
  • the memory utilization is 68%
  • the CPU utilization is 30%
  • the system resources are tight.
  • the local disk utilization is 40%
  • the memory utilization is 30%
  • the CPU utilization is 30%
  • the system resources are sufficient.
  • the local disk utilization is 60%
  • the memory utilization is 68%
  • the CPU utilization is 30%
  • step S30 when the system resources are normal and the current state of the storage node is normal, the selection module 130 selects a routing algorithm from the preset routing algorithm, and allocates the data packet to the corresponding network transmission according to the selected routing algorithm. Go to the corresponding storage node.
  • the preset routing algorithm includes:
  • Polling algorithm Two sets of network transmission packets are used in turn.
  • the server 1 divides the data packets that need to be transmitted into several parts, the first part of the data packets are transmitted using the network A, the second part of the data packets are transmitted using the network B, and the third part of the data packets are transmitted using the network A, so that the loop is repeated until all the needs are needed.
  • the uploaded data packet is transferred.
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is assigned a first priority, and the remaining network is assigned a second priority, and the first proportion of data packets are allocated to the network transmission of the first priority, and the second proportion of data packets are allocated to The second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio.
  • the number of data packets completed by network A and network B in a unit time is 30 and 20 respectively. If the preset value is set to 8, the first priority is assigned to network A, and the data packets to be uploaded are to be uploaded. 60% is allocated to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks; when the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, the remaining network allocates the second priority, allocates the third proportion of the data packet to the network transmission of the first priority, and allocates the fourth proportion of the data packet to another network transmission, where the One priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • the preset threshold is set to 6
  • the first priority will be assigned to Network A
  • the packets to be uploaded will be used.
  • 60% is assigned to Network A
  • the second priority is assigned to Network B
  • 40% of the packets that need to be uploaded are assigned to Network B.
  • a handover step should be further included: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, when When monitoring the system resources of the server is sufficient, switching to the polling algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resource is in a normal state, switching to the shortest queue algorithm allocates the data packet to the corresponding The network is transferred to the corresponding storage node. For example, when the memory utilization is higher than 70%, it indicates that the current system resources are tight, and the optimal path algorithm is automatically selected to allocate the data packets to the network A and the network B respectively.
  • the data transmission method according to monitoring the current state of the storage node and the system resource of the server, selects a routing algorithm from the preset routing algorithm by using a preset selection rule, according to the selected routing algorithm, The data packets are allocated to the corresponding network and transmitted to the corresponding storage nodes, thereby improving data transmission efficiency, reducing data loss during transmission, and improving data transmission stability and reliability.
  • FIG. 5 it is a flowchart of the second embodiment of the data transmission method of the present application.
  • the data transmission method includes: Step S10 - Step S80.
  • Step S10, step S40, and step S50 are substantially the same as those in the first embodiment, and are not described herein again.
  • step S20 the determining module 120 determines whether the current state of the storage node is normal.
  • step S30 is performed, and the process ends.
  • step S40 is performed.
  • a storage node fails the data stored in the storage node is often lost or damaged. Therefore, when a storage node is damaged, the failed storage node is automatically repaired.
  • step S30 when the storage node fails, the selection module 130 specifies a set of networks for data repair of the failed storage node, and another set of networks is used for data transmission of other storage nodes. For example, when it is monitored that a storage node fails, the selection module 130 automatically allocates a set of networks to perform data repair on the failed storage node, and another set of networks is used to transmit data to other storage nodes.
  • the data repair refers to a method for repairing data in the storage node when the storage node fails to cause data loss, wherein the data repair includes: copy data repair, regeneration code data repair, multi-node collaborative data repair, and the like.
  • step S60 the calculation module 140 calculates the average delay time of each group of network data transmissions in real time, and calculates the difference between the delay time of the current transmission data and the average delay time of the network.
  • the delay time refers to a difference between a time when a data packet is currently transmitted to the storage node and a transmission time of a data packet in a normal state. For example, in the normal state, it takes 7 seconds to transmit a data packet from the client 3 to the storage node 2, and if the transmission time is 16 seconds, the delay time is 9 seconds.
  • Statistics and calculations The average of the delay times of all packets transmitted by each group of networks at the current time, which is the average delay time. Assuming an average delay time of 4 seconds, the difference between the current transmission data delay time and the network average delay time is 5 seconds.
  • step S70 the determining module 120 determines whether the difference exceeds the first preset value.
  • the priority of the network is lowered, and the data transmission task is re-allocated according to the current priorities of the two groups of networks. .
  • the first preset value is set to 4 seconds and the average delay time is 4 seconds. If the delay time of network A currently transmitting one data packet is 9 seconds, network A is reduced from the first priority to the second priority.
  • Step S80 when the delay time of the current data transmission of the group of networks exceeds the second preset value, indicating that the network congestion or the data packet has been lost, the notification module 150 notifies the storage node that receives the data that the current data transmission is invalid, and requests another A set of networks retransmits the data to the storage node.
  • the second preset value is set to 20 seconds
  • the notification module 150 sends abort information to notify the storage node 2 that the current data transmission is invalid, and requests the network. B retransmits the data to storage node 2.
  • the data transmission method proposed in this embodiment is constructed by constructing two sets of transmission networks for data transmission, and according to the state of the storage node and system resources, selecting different routing algorithms to allocate the data packets to be transmitted to the two groups of networks, increasing redundancy Backup, prevent data loss, improve the effectiveness and reliability of data transmission.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium includes a data transmission program 10, and when the data transmission program 10 is executed by the processor, the following operations are implemented:
  • Monitoring step monitoring the system resources of the server and the current state of the storage node
  • Judgment step determining whether the current state of the system resource and the storage node is normal
  • Selection step when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network.
  • the storage node, the preset routing algorithm includes:
  • Polling algorithm use two sets of network transmission data packets in turn;
  • Optimal Path Algorithm Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time.
  • the network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
  • Shortest Queue Algorithm counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks.
  • N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small.
  • the network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  • the system resources include: local disk utilization, memory utilization, and central processor utilization.
  • the preset determination rule is:
  • the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
  • the method further comprises:
  • a switching step when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resources of the monitored server are sufficient, switching to the The polling algorithm allocates the data packet to the corresponding network.
  • the shortest queue algorithm is selected to allocate the data packet to the corresponding network.
  • the method further comprises:
  • Calculation step calculating the average delay time of each group of network data transmissions in real time, and calculating the difference between the delay time of the current transmission data and the average delay time of the network;
  • the adjusting step is: determining whether the difference exceeds a first preset value, and when the difference exceeds the first preset value, lowering the priority of the network, and reallocating the data transmission task according to the current priority of the two groups of networks.
  • the method further comprises:
  • Notification step when the delay time of the current data transmission of a group of networks exceeds the second preset value, the current data transmission of the storage node that notifies the received data is invalid, and another group of networks is requested to retransmit the data to the storage node.
  • the method further comprises:
  • Designation step When monitoring the failure of a storage node, a set of networks is designated for data repair of the failed storage node, and another set of networks is used for data transfer of other storage nodes.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a data transmission method, a server, and a storage medium. The method comprises: monitoring system resources of the server and current states of storage nodes; determining whether the system resources and the current states of the storage nodes are normal; and if the system resources and the current states of the storage nodes are normal, selecting one routing algorithm from preset routing algorithms, and distributing, according to the selected routing algorithm, data packets to corresponding networks to be transmitted to the corresponding storage nodes. According to the present application, by constructing two groups of network systems, the data transmission efficiency is improved, and the transmission performance of a storage system is improved.

Description

数据传输方法、服务器及存储介质Data transmission method, server and storage medium
优先权申明Priority claim
本申请要求于2018年01月30日提交中国专利局、申请号为201810089659.7,名称为“数据传输方法、服务器及存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合本申请中。The present application claims priority to Chinese Patent Application No. 201810089659.7, entitled "Data Transmission Method, Server and Storage Medium", which is incorporated by reference. The method is combined with this application.
技术领域Technical field
本申请涉及数据传输技术领域,尤其涉及一种数据传输方法、服务器及计算机可读存储介质。The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a server, and a computer readable storage medium.
背景技术Background technique
目前,现有的分布式存储系统中,存储节点之间只有一组网络用于数据传输,存在单点网络故障的风险。单一的传输网络在传输大量数据的情况下,容易造成数据传输延迟或系统阻塞甚至崩溃宕机。同时,当用于数据传输的单一网络出现系统不稳定或故障时,不仅造成数据丢失,还会造成整个分布式存储系统的性能下降甚至瘫痪。At present, in the existing distributed storage system, there is only one set of networks between storage nodes for data transmission, and there is a risk of single point network failure. A single transmission network is prone to data transmission delays or system congestion or even crashes when transmitting large amounts of data. At the same time, when a single network used for data transmission experiences system instability or failure, it not only causes data loss, but also degrades the performance of the entire distributed storage system.
发明内容Summary of the invention
鉴于以上内容,本申请提供一种数据传输方法、服务器及计算机可读存储介质,其主要目的在于分担数据传输任务,提高网络传输效率,增加冗余备份,提高系统稳定性和可靠性。In view of the above, the present application provides a data transmission method, a server, and a computer readable storage medium, the main purpose of which is to share data transmission tasks, improve network transmission efficiency, increase redundant backup, and improve system stability and reliability.
为实现上述目的,本申请提供一种数据传输方法,该方法包括:To achieve the above objective, the present application provides a data transmission method, including:
监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两 组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
此外,本申请还提供一种服务器,该服务器包括:存储器及处理器,所述存储器上存储数据传输程序,所述数据传输程序被所述处理器执行,可实现如下步骤:In addition, the application further provides a server, the server includes: a memory and a processor, wherein the memory stores a data transmission program, and the data transmission program is executed by the processor, and the following steps can be implemented:
监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相 同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中包括数据传输程序,所述数据传输程序被处理器执行时,可实现如上所述数据传输方法中的任意步骤。In addition, in order to achieve the above object, the present application further provides a computer readable storage medium including a data transmission program, where the data transmission program is executed by a processor, and the data transmission as described above can be implemented. Any step in the method.
本申请提出的数据传输方法、服务器及计算机可读存储介质,通过构建两组网络,根据系统资源的状态,利用预设的选择规则从预设的选路算法中选择最优的选路算法,对两组网络的传输进行分配,提高系统的稳定性和传输效率。The data transmission method, the server and the computer readable storage medium proposed by the present application, by constructing two groups of networks, select an optimal routing algorithm from a preset routing algorithm by using a preset selection rule according to the state of the system resource. The transmission of the two groups of networks is allocated to improve the stability and transmission efficiency of the system.
附图说明DRAWINGS
图1为本申请数据传输方法的应用环境示意图;1 is a schematic diagram of an application environment of a data transmission method according to the present application;
图2为本申请服务器较佳实施例的示意图;2 is a schematic diagram of a preferred embodiment of a server of the present application;
图3为图2中数据传输程序较佳实施例的模块示意图;3 is a block diagram showing a preferred embodiment of the data transmission program of FIG. 2;
图4为本申请数据传输方法第一实施例的流程图;4 is a flowchart of a first embodiment of a data transmission method according to the present application;
图5为本申请数据传输方法第二实施例的流程图。FIG. 5 is a flowchart of a second embodiment of a data transmission method according to the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
如图1所示,是本申请数据传输方法的应用环境示意图。FIG. 1 is a schematic diagram of an application environment of a data transmission method of the present application.
在本实施例中,本申请提供一种分布式存储系统,该系统包括服务器1、存储节点2、两组网络——网络A和网络B,以及一个或多个客户端3。客户端3向服务器发出向存储节点2读写数据的请求。服务器1接收到客户端3读写数据的请求后,根据预先设定的选择规则从选择一种选路算法从网络A 和网络B中选择一组网络向存储节点读写数据。In this embodiment, the present application provides a distributed storage system, which includes a server 1, a storage node 2, two sets of networks - Network A and Network B, and one or more clients 3. The client 3 issues a request to the server to read and write data to the storage node 2. After receiving the request of the client 3 to read and write data, the server 1 selects a group of networks from the network A and the network B to read and write data from the storage node according to a preset selection rule.
服务器1,还用于监控存储节点2的工作状态和容量。所述网络包括通信线路和网络交换机等传输设备。The server 1 is also used to monitor the working state and capacity of the storage node 2. The network includes transmission lines such as communication lines and network switches.
如图2所示,是本申请服务器1较佳实施例的示意图。2 is a schematic diagram of a preferred embodiment of the server 1 of the present application.
在本实施例中,服务器1可以是服务器、智能手机、平板电脑、个人电脑、便携计算机以及其它具有运算功能的电子设备。In this embodiment, the server 1 may be a server, a smart phone, a tablet computer, a personal computer, a portable computer, and other electronic devices having computing functions.
该服务器1包括:存储器11、处理器12、网络接口13及通信总线14。其中,网络接口13可选地可以包括标准的有线接口、无线接口(如WI-FI接口)。通信总线14用于实现这些组件之间的连接通信。The server 1 includes a memory 11, a processor 12, a network interface 13, and a communication bus 14. The network interface 13 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). Communication bus 14 is used to implement connection communication between these components.
存储器11至少包括一种类型的可读存储介质。所述至少一种类型的可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器等的非易失性存储介质。在一些实施例中,所述存储器11可以是所述服务器1的内部存储单元,例如该服务器1的硬盘。在另一些实施例中,所述存储器11也可以是所述服务器1的外部存储单元,例如所述服务器1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card type memory, or the like. In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1. In other embodiments, the memory 11 may also be an external storage unit of the server 1, such as a plug-in hard disk equipped on the server 1, a smart memory card (SMC), and a secure digital ( Secure Digital, SD) cards, flash cards, etc.
在本实施例中,所述存储器11不仅可以用于存储安装于所述服务器1的应用软件及各类数据,例如数据传输程序10。In the present embodiment, the memory 11 can be used not only for storing application software installed on the server 1 and various types of data, such as the data transmission program 10.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其它数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行数据传输程序10的计算机程序代码、存储节点及系统资源的当前状态的监控等。The processor 12, in some embodiments, may be a Central Processing Unit (CPU), microprocessor or other data processing chip for running program code or processing data stored in the memory 11, such as executing a data transfer program. 10 computer program code, monitoring of the current state of the storage node and system resources, and the like.
图2仅示出了具有组件11-14以及数据传输程序10的服务器1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 2 shows only server 1 with components 11-14 and data transfer program 10, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
可选地,该服务器1还可以包括显示器,显示器可以称为显示屏或显示单元。在一些实施例中显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及有机发光二极管(Organic Light-Emitting Diode,OLED)触摸器等。显示器用于显示在服务器1中处理的信息以及用于显示可视化的工作界面。Optionally, the server 1 may also include a display, which may be referred to as a display screen or a display unit. In some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an Organic Light-Emitting Diode (OLED) touch sensor. The display is used to display information processed in the server 1 and a work interface for displaying visualizations.
可选地,该服务器1还可以包括用户接口,用户接口可以包括输入单元比如键盘(Keyboard)、语音输出装置比如音响、耳机等,可选地用户接口还可以包括标准的有线接口、无线接口。Optionally, the server 1 may further include a user interface, and the user interface may include an input unit such as a keyboard, a voice output device such as an audio, a headset, etc., optionally, the user interface may further include a standard wired interface and a wireless interface.
在图2所示的服务器实施例中,作为一种计算机存储介质的存储器11中存储数据传输程序10的程序代码,处理器12执行数据传输程序10的程序代码时,实现如下步骤:In the server embodiment shown in FIG. 2, the program code of the data transfer program 10 is stored in the memory 11 as a computer storage medium. When the processor 12 executes the program code of the data transfer program 10, the following steps are implemented:
监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
具体原理请参照下述图3关于数据传输程序10较佳实施例的模块示意图、图4关于数据传输方法第一实施例的流程图及图5关于数据传输方法第二实施例的流程图的介绍。For specific principles, please refer to the following FIG. 3 for a block diagram of a preferred embodiment of the data transmission program 10, FIG. 4 for a flowchart of the first embodiment of the data transmission method, and FIG. 5 for an introduction of the flowchart of the second embodiment of the data transmission method. .
如图3所示,是图2中数据传输程序10较佳实施例的模块示意图。本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段。3 is a block diagram of a preferred embodiment of the data transfer program 10 of FIG. 2. A module as referred to in this application refers to a series of computer program instructions that are capable of performing a particular function.
在本实施例中,数据传输程序10包括:监控模块110、判断模块120、选择模块130、计算模块140、通知模块150,所述模块110-150所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:In this embodiment, the data transmission program 10 includes: a monitoring module 110, a determining module 120, a selecting module 130, a calculating module 140, and a notification module 150. The functions or operating steps implemented by the modules 110-150 are similar to the above. , not detailed here, exemplarily, for example:
监控模块110,用于监控服务器的系统资源及存储节点的当前状态。监控模块110实时监控存储节点及系统资源的当前状态。其中,所述监控存储节点的当前状态是指监控存储节点是否发生故障。所述系统资源包括:本地磁盘的利用率、内存利用率、CPU利用率等。The monitoring module 110 is configured to monitor a system resource of the server and a current state of the storage node. The monitoring module 110 monitors the current state of the storage node and system resources in real time. The current state of the monitoring storage node refers to monitoring whether the storage node is faulty. The system resources include: local disk utilization, memory utilization, CPU utilization, and the like.
判断模块120,用于判断存储节点的当前状态是否正常或判断系统资源的当前状态及判断当前传输数据的延迟时间与该网络平均延迟时间的差值是否超过第一预设值。判断模块120根据当监控到的服务器的系统资源及存储节点的当前状态判断存储节点是否有故障,系统资源是否正常。当某存储节点发生故障时,自动指定一组网络对发生故障的该存储节点进行数据修复,另一组网络则用于向其它存储节点传输数据。所述数据修复是指存储节点发生故障导致数据丢失时,对该存储节点中的数据进行修复的手段,其中数据修复包括:拷贝数据修复、再生码数据修复、多节点协作数据修复等。当存储节点正常时,判断模块120判断系统资源的当前状态。其中,所述预设的判断方法包括:根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常。当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。可以理解的是,所述系统资源的正常状态包括系统资源充足,系统资源充足仅为系统资源正常的一个特例。例如,设置本地磁盘的利用率的第一预设阈值为50%、第二预设阈值为80%,内存利用率的第一预设阈值为40%、第二预设阈值为70%,CPU利用率的第一预设阈值为40%、第二预设阈值为60%,当本地磁盘的利用率为82%、内存利用率为68%、CPU利用率为30%,表明系统资源紧张,当本地磁盘的利用率为 40%、内存利用率为30%、CPU利用率为30%,表明系统资源充足,当本地磁盘的利用率为60%、内存利用率为68%、CPU利用率为30%,表明系统资源当前处于正常状态。当前传输数据的延迟时间与平均延迟时间的差值的具体判断方法请参照下述图5关于数据传输方法第二实施例的流程图的介绍。The determining module 120 is configured to determine whether the current state of the storage node is normal or determine the current state of the system resource and determine whether the difference between the delay time of the current transmission data and the average delay time of the network exceeds a first preset value. The determining module 120 determines whether the storage node is faulty according to the system resource of the monitored server and the current state of the storage node, and whether the system resource is normal. When a storage node fails, a group of networks is automatically designated to perform data repair on the failed storage node, and another group of networks is used to transmit data to other storage nodes. The data repair refers to a method for repairing data in the storage node when the storage node fails to cause data loss, wherein the data repair includes: copy data repair, regeneration code data repair, multi-node collaborative data repair, and the like. When the storage node is normal, the determination module 120 determines the current state of the system resource. The pre-determined determining method includes: determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold. When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state. It can be understood that the normal state of the system resources includes sufficient system resources, and sufficient system resources are only a special case of normal system resources. For example, the first preset threshold of the local disk is 50%, the second preset threshold is 80%, the first preset threshold of the memory utilization is 40%, and the second preset threshold is 70%. The first preset threshold of the utilization is 40%, and the second preset threshold is 60%. When the local disk utilization is 82%, the memory utilization is 68%, and the CPU utilization is 30%, the system resources are tight. When the local disk utilization is 40%, the memory utilization is 30%, and the CPU utilization is 30%, the system resources are sufficient. When the local disk utilization is 60%, the memory utilization is 68%, and the CPU utilization is 30%, indicating that the system resources are currently in a normal state. For the specific determination method of the difference between the delay time of the current transmission data and the average delay time, refer to the following description of the flowchart of the second embodiment of the data transmission method.
选择模块130,用于当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点。本实施例中,当系统资源的当前状态正常时,选择模块130从预设的选路算法中选择一种选路算法。其中,所述预设的选路算法包括:The selecting module 130 is configured to select a routing algorithm from the preset routing algorithm when the system resources are normal and the current state of the storage node is normal, and allocate the data packet to the corresponding network transmission according to the selected routing algorithm. Go to the corresponding storage node. In this embodiment, when the current state of the system resource is normal, the selection module 130 selects a routing algorithm from the preset routing algorithm. The preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包。例如,服务器1将需要传输的数据包分成几部分,第一部分数据包使用网络A传输,第二部分数据包使用网络B传输,第三部分数据包使用网络A传输,如此反复循环直至将所有需要上传的数据包传输完毕。Polling algorithm: Two sets of network transmission packets are used in turn. For example, the server 1 divides the data packets that need to be transmitted into several parts, the first part of the data packets are transmitted using the network A, the second part of the data packets are transmitted using the network B, and the third part of the data packets are transmitted using the network A, so that the loop is repeated until all the needs are needed. The uploaded data packet is transferred.
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输,将第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例。假设,单位时间内网络A、网络B传输完成的数据包数量分别为30个、20个,设置的预设值为8,则将第一优先级分配给网络A,并将需要上传的数据包的60%分配给网络A,将第二优先级分配给网络B,并将需要上传的数据包的40%分配给网络B。 Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is assigned a first priority, and the remaining network is assigned a second priority, and the first proportion of data packets are allocated to the network transmission of the first priority, and the second proportion of data packets are allocated to The second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio. Assume that the number of data packets completed by network A and network B in a unit time is 30 and 20 respectively. If the preset value is set to 8, the first priority is assigned to network A, and the data packets to be uploaded are to be uploaded. 60% is allocated to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络;当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输,将第四比例的数据包分配给另一条网络传输,其中第一优先级高于 第二优先级,第三比例大于第四比例。假设,网络A、网络B未传输完成的数据包数量分别为18个、25个,设置的预设阈值为6,则将将第一优先级分配给网络A,并将需要上传的数据包的60%分配给网络A,将第二优先级分配给网络B,并将需要上传的数据包的40%分配给网络B。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks; when the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, the remaining network allocates the second priority, allocates the third proportion of the data packet to the network transmission of the first priority, and allocates the fourth proportion of the data packet to another network transmission, where the One priority is higher than the second priority, and the third ratio is greater than the fourth ratio. Assume that the number of packets that have not been transmitted by Network A and Network B is 18 and 25 respectively. If the preset threshold is set to 6, the first priority will be assigned to Network A, and the packets to be uploaded will be used. 60% is assigned to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
具体地,在另一个实施例中,还应包括切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络传输到相应的存储节点,当系统资源处于正常状态时,切换至最短队列算法将数据包分配给相应的网络传输到相应的存储节点。例如,当内存利用率高于70%时,表明当前系统资源紧张,自动选择最优路径算法将数据包分别分配给网络A、网络B。Specifically, in another embodiment, a handover step should be further included: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, when When monitoring the system resources of the server is sufficient, switching to the polling algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resource is in a normal state, switching to the shortest queue algorithm allocates the data packet to the corresponding The network is transferred to the corresponding storage node. For example, when the memory utilization is higher than 70%, it indicates that the current system resources are tight, and the optimal path algorithm is automatically selected to allocate the data packets to the network A and the network B respectively.
计算模块140,用于实时计算每组网络数据传输的平均延迟时间,计算当前传输数据的延迟时间与该网络平均延迟时间的差值。所述延迟时间是指当前传输时间超过在正常状态下传输时间的部分。例如,正常状态下,从客户端3传输一个数据包到存储节点2用时10秒,若传输时间为16秒,则延迟时间为6秒。统计及计算每组网络在截止当前时间,传输的所有数据包的延迟时间的平均值,即为平均延迟时间。假设平均延迟时间为2秒,当前传输数据的延迟时间与该网络平均延迟时间的差值为4秒。The calculating module 140 is configured to calculate an average delay time of each group of network data transmissions in real time, and calculate a difference between a delay time of the current transmission data and an average delay time of the network. The delay time refers to a portion where the current transmission time exceeds the transmission time in the normal state. For example, in the normal state, it takes 10 seconds to transmit a data packet from the client 3 to the storage node 2, and if the transmission time is 16 seconds, the delay time is 6 seconds. Statistics and calculations The average of the delay times of all packets transmitted by each group of networks at the current time, which is the average delay time. Assuming an average delay time of 2 seconds, the difference between the current transmission data delay time and the network average delay time is 4 seconds.
通知模块150,用于当一组网络当前传输数据的延迟时间超过第二预设值时,通知接收数据的存储节点当前的数据传输无效,并请求另一组网络重新传输该数据给该存储节点。假设设置的第二预设值为20秒时,当网络A传输某数据到存储节点2的延迟时间超过20秒时,通知模块150发送abort信息通知存储节点2当前的数据传输无效,并请求网络B重新传输该数据给存储节点2。The notification module 150 is configured to notify the storage node that receives the data that the current data transmission is invalid when the delay time of the current data transmission of the group of networks exceeds the second preset value, and request another group of networks to retransmit the data to the storage node. . Assuming that the second preset value is set to 20 seconds, when the delay time of the network A transmitting certain data to the storage node 2 exceeds 20 seconds, the notification module 150 sends abort information to notify the storage node 2 that the current data transmission is invalid, and requests the network. B retransmits the data to storage node 2.
如图4所示,是本申请数据传输方法第一实施例的流程图。As shown in FIG. 4, it is a flowchart of the first embodiment of the data transmission method of the present application.
在本实施例中,处理器12执行存储器11中存储的数据传输程序10的计算机程序时实现数据传输方法包括:步骤S10-步骤S30:In this embodiment, when the processor 12 executes the computer program of the data transmission program 10 stored in the memory 11, the method for implementing data transmission includes: Step S10 - Step S30:
步骤S10,监控模块110实时监控存储节点及系统资源的当前状态。其中,所述监控存储节点的当前状态是指监控存储节点是否发生故障。所述系统资 源包括:本地磁盘的利用率、内存利用率、CPU利用率等。In step S10, the monitoring module 110 monitors the current state of the storage node and system resources in real time. The current state of the monitoring storage node refers to monitoring whether the storage node is faulty. The system resources include: local disk utilization, memory utilization, CPU utilization, and the like.
步骤S20,判断模块120判断系统资源的当前状态。其中,所述预设的判断方法包括:根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常。当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。可以理解的是,所述系统资源的正常状态包括系统资源充足,系统资源充足仅为系统资源正常的一个特例。例如,设置本地磁盘的利用率的第一预设阈值为50%、第二预设阈值为80%,内存利用率的第一预设阈值为40%、第二预设阈值为70%,CPU利用率的第一预设阈值为40%、第二预设阈值为60%,当本地磁盘的利用率为82%、内存利用率为68%、CPU利用率为30%,表明系统资源紧张,当本地磁盘的利用率为40%、内存利用率为30%、CPU利用率为30%,表明系统资源充足,当本地磁盘的利用率为60%、内存利用率为68%、CPU利用率为30%,表明系统资源当前处于正常状态。In step S20, the determining module 120 determines the current state of the system resource. The pre-determined determining method includes: determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold. When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state. It can be understood that the normal state of the system resources includes sufficient system resources, and sufficient system resources are only a special case of normal system resources. For example, the first preset threshold of the local disk is 50%, the second preset threshold is 80%, the first preset threshold of the memory utilization is 40%, and the second preset threshold is 70%. The first preset threshold of the utilization is 40%, and the second preset threshold is 60%. When the local disk utilization is 82%, the memory utilization is 68%, and the CPU utilization is 30%, the system resources are tight. When the local disk utilization is 40%, the memory utilization is 30%, and the CPU utilization is 30%, the system resources are sufficient. When the local disk utilization is 60%, the memory utilization is 68%, and the CPU utilization is 30%, indicating that the system resources are currently in a normal state.
步骤S30,当系统资源正常、存储节点的当前状态正常时,选择模块130从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点。其中,所述预设的选路算法包括:In step S30, when the system resources are normal and the current state of the storage node is normal, the selection module 130 selects a routing algorithm from the preset routing algorithm, and allocates the data packet to the corresponding network transmission according to the selected routing algorithm. Go to the corresponding storage node. The preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包。例如,服务器1将需要传输的数据包分成几部分,第一部分数据包使用网络A传输,第二部分数据包使用网络B传输,第三部分数据包使用网络A传输,如此反复循环直至将所有需要上传的数据包传输完毕。Polling algorithm: Two sets of network transmission packets are used in turn. For example, the server 1 divides the data packets that need to be transmitted into several parts, the first part of the data packets are transmitted using the network A, the second part of the data packets are transmitted using the network B, and the third part of the data packets are transmitted using the network A, so that the loop is repeated until all the needs are needed. The uploaded data packet is transferred.
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输,将第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例。假设,单位时间 内网络A、网络B传输完成的数据包数量分别为30个、20个,设置的预设值为8,则将第一优先级分配给网络A,并将需要上传的数据包的60%分配给网络A,将第二优先级分配给网络B,并将需要上传的数据包的40%分配给网络B。 Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is assigned a first priority, and the remaining network is assigned a second priority, and the first proportion of data packets are allocated to the network transmission of the first priority, and the second proportion of data packets are allocated to The second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio. Assume that the number of data packets completed by network A and network B in a unit time is 30 and 20 respectively. If the preset value is set to 8, the first priority is assigned to network A, and the data packets to be uploaded are to be uploaded. 60% is allocated to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络;当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输,将第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。假设,网络A、网络B未传输完成的数据包数量分别为18个、25个,设置的预设阈值为6,则将将第一优先级分配给网络A,并将需要上传的数据包的60%分配给网络A,将第二优先级分配给网络B,并将需要上传的数据包的40%分配给网络B。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks; when the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, the remaining network allocates the second priority, allocates the third proportion of the data packet to the network transmission of the first priority, and allocates the fourth proportion of the data packet to another network transmission, where the One priority is higher than the second priority, and the third ratio is greater than the fourth ratio. Assume that the number of packets that have not been transmitted by Network A and Network B is 18 and 25 respectively. If the preset threshold is set to 6, the first priority will be assigned to Network A, and the packets to be uploaded will be used. 60% is assigned to Network A, the second priority is assigned to Network B, and 40% of the packets that need to be uploaded are assigned to Network B.
具体地,在另一个实施例中,还应包括切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络传输到相应的存储节点,当系统资源处于正常状态时,切换至最短队列算法将数据包分配给相应的网络传输到相应的存储节点。例如,当内存利用率高于70%时,表明当前系统资源紧张,自动选择最优路径算法将数据包分别分配给网络A、网络B。Specifically, in another embodiment, a handover step should be further included: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, when When monitoring the system resources of the server is sufficient, switching to the polling algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resource is in a normal state, switching to the shortest queue algorithm allocates the data packet to the corresponding The network is transferred to the corresponding storage node. For example, when the memory utilization is higher than 70%, it indicates that the current system resources are tight, and the optimal path algorithm is automatically selected to allocate the data packets to the network A and the network B respectively.
上述实施例提出的数据传输方法,根据监控存储节点及服务器的系统资源的当前状态,利用预设的选择规则从预设的选路算法中选择一种选路算法,根据选择的选路算法,将数据包分配给相应的网络传输给相应的存储节点,提高数据传输效率,减少数据在传输过程中的丢失,提高数据传输的稳定性和可靠性。The data transmission method according to the foregoing embodiment, according to monitoring the current state of the storage node and the system resource of the server, selects a routing algorithm from the preset routing algorithm by using a preset selection rule, according to the selected routing algorithm, The data packets are allocated to the corresponding network and transmitted to the corresponding storage nodes, thereby improving data transmission efficiency, reducing data loss during transmission, and improving data transmission stability and reliability.
如图5所示,是本申请数据传输方法第二实施例的流程图。As shown in FIG. 5, it is a flowchart of the second embodiment of the data transmission method of the present application.
在本实施例中,数据传输方法包括:步骤S10-步骤S80。其中步骤S10、步骤S40、步骤S50与第一实施例中的内容大致相同,这里不再赘述。In this embodiment, the data transmission method includes: Step S10 - Step S80. Step S10, step S40, and step S50 are substantially the same as those in the first embodiment, and are not described herein again.
步骤S20,判断模块120判断存储节点的当前状态是否正常,当存储节点发生故障时,执行步骤S30,流程结束,当存储节点的当前状态正常时,则执行步骤S40。存储节点发生故障时,往往会导致该存储节点存储的数据丢失或损坏,因此,当监控到某存储节点损坏时,自动对发生故障的存储节点进行修复。In step S20, the determining module 120 determines whether the current state of the storage node is normal. When the storage node fails, step S30 is performed, and the process ends. When the current state of the storage node is normal, step S40 is performed. When a storage node fails, the data stored in the storage node is often lost or damaged. Therefore, when a storage node is damaged, the failed storage node is automatically repaired.
步骤S30,当存储节点发生故障时,选择模块130指定一组网络用于发生故障的存储节点的数据修复,另外一组网络用于其它存储节点的数据传输。例如,当监控到某存储节点发生故障时,选择模块130自动分配一组网络对发生故障的该存储节点进行数据修复,另一组网络则用于向其它存储节点传输数据。所述数据修复是指存储节点发生故障导致数据丢失时,对该存储节点中的数据进行修复的手段,其中数据修复包括:拷贝数据修复、再生码数据修复、多节点协作数据修复等。In step S30, when the storage node fails, the selection module 130 specifies a set of networks for data repair of the failed storage node, and another set of networks is used for data transmission of other storage nodes. For example, when it is monitored that a storage node fails, the selection module 130 automatically allocates a set of networks to perform data repair on the failed storage node, and another set of networks is used to transmit data to other storage nodes. The data repair refers to a method for repairing data in the storage node when the storage node fails to cause data loss, wherein the data repair includes: copy data repair, regeneration code data repair, multi-node collaborative data repair, and the like.
步骤S60,计算模块140实时计算每组网络数据传输的平均延迟时间,计算当前传输数据的延迟时间与该网络平均延迟时间的差值。其中,所述延迟时间是指当前传输一个数据包到存储节点所用的时间与正常状态下一个数据包的传输时间的差值。例如,正常状态下,从客户端3传输一个数据包到存储节点2用时7秒,若传输时间为16秒,则延迟时间为9秒。统计及计算每组网络在截止当前时间,传输的所有数据包的延迟时间的平均值,即为平均延迟时间。假设平均延迟时间为4秒,当前传输数据的延迟时间与该网络平均延迟时间的差值为5秒。In step S60, the calculation module 140 calculates the average delay time of each group of network data transmissions in real time, and calculates the difference between the delay time of the current transmission data and the average delay time of the network. The delay time refers to a difference between a time when a data packet is currently transmitted to the storage node and a transmission time of a data packet in a normal state. For example, in the normal state, it takes 7 seconds to transmit a data packet from the client 3 to the storage node 2, and if the transmission time is 16 seconds, the delay time is 9 seconds. Statistics and calculations The average of the delay times of all packets transmitted by each group of networks at the current time, which is the average delay time. Assuming an average delay time of 4 seconds, the difference between the current transmission data delay time and the network average delay time is 5 seconds.
步骤S70,判断模块120判断该差值是否超过第一预设值,当该差值超过第一预设值时,降低该网络的优先级,根据两组网络的当前优先级重新分配数据传输任务。假设,设置第一预设值为4秒,平均延迟时间为4秒,若网络A当前传输一个数据包的延迟时间为9秒,则将网络A从第一优先级降为第二优先级。In step S70, the determining module 120 determines whether the difference exceeds the first preset value. When the difference exceeds the first preset value, the priority of the network is lowered, and the data transmission task is re-allocated according to the current priorities of the two groups of networks. . Assume that the first preset value is set to 4 seconds and the average delay time is 4 seconds. If the delay time of network A currently transmitting one data packet is 9 seconds, network A is reduced from the first priority to the second priority.
步骤S80,当一组网络当前传输数据的延迟时间超过第二预设值时,说明该组网络堵塞或数据包已丢失,通知模块150通知接收数据的存储节点当前的数据传输无效,并请求另一组网络重新传输该数据给该存储节点。假设设置的第二预设值为20秒时,当网络A传输某数据到存储节点2的延迟时间超过20秒时,通知模块150发送abort信息通知存储节点2当前的数据传输无效,并请 求网络B重新传输该数据给存储节点2。Step S80, when the delay time of the current data transmission of the group of networks exceeds the second preset value, indicating that the network congestion or the data packet has been lost, the notification module 150 notifies the storage node that receives the data that the current data transmission is invalid, and requests another A set of networks retransmits the data to the storage node. Assuming that the second preset value is set to 20 seconds, when the delay time of the network A transmitting certain data to the storage node 2 exceeds 20 seconds, the notification module 150 sends abort information to notify the storage node 2 that the current data transmission is invalid, and requests the network. B retransmits the data to storage node 2.
本实施例提出的数据传输方法,通过构建两组传输网络用于数据传输,根据存储节点及系统资源的状态,选择不同的选路算法将需要传输的数据包分配到两组网络中,增加冗余备份,防止数据丢失,提高数据传输的有效性和可靠性。The data transmission method proposed in this embodiment is constructed by constructing two sets of transmission networks for data transmission, and according to the state of the storage node and system resources, selecting different routing algorithms to allocate the data packets to be transmitted to the two groups of networks, increasing redundancy Backup, prevent data loss, improve the effectiveness and reliability of data transmission.
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质中包括数据传输程序10,所述数据传输程序10被处理器执行时实现如下操作:In addition, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium includes a data transmission program 10, and when the data transmission program 10 is executed by the processor, the following operations are implemented:
监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
优选地,所述系统资源包括:本地磁盘的利用率、内存利用率、中央处 理器利用率。Preferably, the system resources include: local disk utilization, memory utilization, and central processor utilization.
优选地,所述预设的判断规则为:Preferably, the preset determination rule is:
根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常;Determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold;
当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
优选地,该方法还包括:Preferably, the method further comprises:
切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络,当监控到服务器的系统资源处于正常状态时,选择最短队列算法将数据包分配给相应的网络。a switching step: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resources of the monitored server are sufficient, switching to the The polling algorithm allocates the data packet to the corresponding network. When the system resource of the monitoring server is in a normal state, the shortest queue algorithm is selected to allocate the data packet to the corresponding network.
优选地,该方法还包括:Preferably, the method further comprises:
计算步骤:实时计算每组网络数据传输的平均延迟时间,计算当前传输数据的延迟时间与该网络平均延迟时间的差值;Calculation step: calculating the average delay time of each group of network data transmissions in real time, and calculating the difference between the delay time of the current transmission data and the average delay time of the network;
调整步骤:判断该差值是否超过第一预设值,当该差值超过第一预设值时,降低该网络的优先级,根据两组网络的当前优先级重新分配数据传输任务。The adjusting step is: determining whether the difference exceeds a first preset value, and when the difference exceeds the first preset value, lowering the priority of the network, and reallocating the data transmission task according to the current priority of the two groups of networks.
优选地,该方法还包括:Preferably, the method further comprises:
通知步骤:当一组网络当前传输数据的迟延时间超过第二预设值时,通知接收数据的存储节点当前的数据传输无效,并请求另一组网络重新传输该数据给该存储节点。Notification step: when the delay time of the current data transmission of a group of networks exceeds the second preset value, the current data transmission of the storage node that notifies the received data is invalid, and another group of networks is requested to retransmit the data to the storage node.
优选地,该方法还包括:Preferably, the method further comprises:
指定步骤:当监控到有存储节点发生故障时,指定一组网络用于发生故障的存储节点的数据修复,另外一组网络用于其它存储节点的数据传输。Designation step: When monitoring the failure of a storage node, a set of networks is designated for data repair of the failed storage node, and another set of networks is used for data transfer of other storage nodes.
本申请之计算机可读存储介质的具体实施方式与上述数据传输方法的具体实施方式大致相同,在此不再赘述。The specific implementation manner of the computer readable storage medium of the present application is substantially the same as the specific implementation manner of the foregoing data transmission method, and details are not described herein again.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

  1. 一种数据传输方法,应用于服务器,服务器通过两组网络与客户端相连接,其特征在于,所述方法包括:A data transmission method is applied to a server, and the server is connected to the client through two groups of networks, wherein the method includes:
    监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
    判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
    选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
    轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
    最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
    最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  2. 根据权利要求1所述的数据传输方法,其特征在于,所述系统资源包括:本地磁盘的利用率、内存利用率、CPU利用率。The data transmission method according to claim 1, wherein the system resources include: local disk utilization, memory utilization, and CPU utilization.
  3. 根据权利要求2所述的数据传输方法,其特征在于,所述判断步骤还包括:The data transmission method according to claim 2, wherein the determining step further comprises:
    根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常;Determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold;
    当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断 系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
  4. 根据权利要求1所述的数据传输方法,其特征在于,该方法还包括:The data transmission method according to claim 1, wherein the method further comprises:
    切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源处于正常状态时,选择最短队列算法将数据包分配给相应的网络传输到相应的存储节点。a switching step: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resources of the monitored server are sufficient, switching to the The polling algorithm allocates the data packet to the corresponding network and transmits it to the corresponding storage node. When the system resource of the monitoring server is in a normal state, the shortest queue algorithm is selected to allocate the data packet to the corresponding network for transmission to the corresponding storage node.
  5. 根据权利要求4所述的数据传输方法,其特征在于,该方法还包括:The data transmission method according to claim 4, wherein the method further comprises:
    计算步骤:实时计算每组网络数据传输的平均延迟时间,计算当前传输数据的延迟时间与该网络平均延迟时间的差值;Calculation step: calculating the average delay time of each group of network data transmissions in real time, and calculating the difference between the delay time of the current transmission data and the average delay time of the network;
    调整步骤:判断该差值是否超过第一预设值,当该差值超过第一预设值时,降低该网络的优先级,根据两组网络的当前优先级重新分配数据传输任务。The adjusting step is: determining whether the difference exceeds a first preset value, and when the difference exceeds the first preset value, lowering the priority of the network, and reallocating the data transmission task according to the current priority of the two groups of networks.
  6. 根据权利要求5所述的数据传输方法,其特征在于,该方法还包括:The data transmission method according to claim 5, wherein the method further comprises:
    通知步骤:当一组网络当前传输数据的迟延时间超过第二预设值时,通知接收数据的存储节点当前的数据传输无效,并请求另一组网络重新传输该数据给该存储节点。Notification step: when the delay time of the current data transmission of a group of networks exceeds the second preset value, the current data transmission of the storage node that notifies the received data is invalid, and another group of networks is requested to retransmit the data to the storage node.
  7. 根据权利要求1所述的数据传输方法,其特征在于,该方法还包括:The data transmission method according to claim 1, wherein the method further comprises:
    指定步骤:当监控到有存储节点发生故障时,指定一组网络用于发生故障的存储节点的数据修复,另外一组网络用于其它存储节点的数据传输。Designation step: When monitoring the failure of a storage node, a set of networks is designated for data repair of the failed storage node, and another set of networks is used for data transfer of other storage nodes.
  8. 一种服务器,其特征在于,所述服务器包括:存储器及处理器,所述存储器上存储有数据传输程序,所述数据传输程序被所述处理器执行,可实现如下步骤:A server, comprising: a memory and a processor, wherein the memory stores a data transmission program, and the data transmission program is executed by the processor, and the following steps can be implemented:
    监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
    判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
    选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
    轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
    最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
    最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  9. 根据权利要求8所述的服务器,其特征在于,所述系统资源包括:本地磁盘的利用率、内存利用率、CPU利用率。The server according to claim 8, wherein the system resources include: local disk utilization, memory utilization, and CPU utilization.
  10. 根据权利要求9所述的服务器,其特征在于,所述判断步骤还包括:The server according to claim 9, wherein the determining step further comprises:
    根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常;Determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold;
    当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
  11. 根据权利要求8所述的服务器,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The server according to claim 8, wherein when said data transmission program is executed by said processor, the following steps are further implemented:
    切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源处于正常状态时,选择最短队列算 法将数据包分配给相应的网络传输到相应的存储节点。a switching step: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resources of the monitored server are sufficient, switching to the The polling algorithm allocates the data packet to the corresponding network and transmits it to the corresponding storage node. When the system resource of the monitoring server is in a normal state, the shortest queue algorithm is selected to allocate the data packet to the corresponding network for transmission to the corresponding storage node.
  12. 根据权利要求11所述的服务器,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The server according to claim 11, wherein when said data transmission program is executed by said processor, the following steps are further implemented:
    计算步骤:实时计算每组网络数据传输的平均延迟时间,计算当前传输数据的延迟时间与该网络平均延迟时间的差值;Calculation step: calculating the average delay time of each group of network data transmissions in real time, and calculating the difference between the delay time of the current transmission data and the average delay time of the network;
    调整步骤:判断该差值是否超过第一预设值,当该差值超过第一预设值时,降低该网络的优先级,根据两组网络的当前优先级重新分配数据传输任务。The adjusting step is: determining whether the difference exceeds a first preset value, and when the difference exceeds the first preset value, lowering the priority of the network, and reallocating the data transmission task according to the current priority of the two groups of networks.
  13. 根据权利要求12所述的服务器,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The server according to claim 12, wherein when said data transmission program is executed by said processor, the following steps are further implemented:
    通知步骤:当一组网络当前传输数据的迟延时间超过第二预设值时,通知接收数据的存储节点当前的数据传输无效,并请求另一组网络重新传输该数据给该存储节点。Notification step: when the delay time of the current data transmission of a group of networks exceeds the second preset value, the current data transmission of the storage node that notifies the received data is invalid, and another group of networks is requested to retransmit the data to the storage node.
  14. 根据权利要求8所述的服务器,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The server according to claim 8, wherein when said data transmission program is executed by said processor, the following steps are further implemented:
    指定步骤:当监控到有存储节点发生故障时,指定一组网络用于发生故障的存储节点的数据修复,另外一组网络用于其它存储节点的数据传输。Designation step: When monitoring the failure of a storage node, a set of networks is designated for data repair of the failed storage node, and another set of networks is used for data transfer of other storage nodes.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中包括数据传输程序,所述统数据传输程序被处理器执行时,可实现如下步骤:A computer readable storage medium, comprising: a data transfer program, wherein when the data transfer program is executed by a processor, the following steps can be implemented:
    监控步骤:监控服务器的系统资源及存储节点的当前状态;Monitoring step: monitoring the system resources of the server and the current state of the storage node;
    判断步骤:判断系统资源、存储节点的当前状态是否正常;Judgment step: determining whether the current state of the system resource and the storage node is normal;
    选择步骤:当系统资源正常、存储节点的当前状态正常时,从预设的选路算法中选择一种选路算法,依据选择的选路算法将将数据包分配给相应的网络传输到相应的存储节点,所述预设的选路算法包括:Selection step: when the system resources are normal and the current state of the storage node is normal, a routing algorithm is selected from the preset routing algorithm, and the data packet is allocated to the corresponding network according to the selected routing algorithm to be transmitted to the corresponding network. The storage node, the preset routing algorithm includes:
    轮询算法:轮流使用两组网络传输数据包;Polling algorithm: use two sets of network transmission data packets in turn;
    最优路径算法:统计预设时间内每组网络传输完成的数据包的数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设值时,给预设时间内传输完成的数据包的数量多的网络分 配第一优先级、余下的网络分配第二优先级,将第一比例的数据包分配给该第一优先级的网络传输、第二比例的数据包分配给第二优先级的网络传输,其中第一优先级高于第二优先级,第一比例大于第二比例; Optimal Path Algorithm: Statistics preset number of network packet transmission is completed each time, denoted as N 1, N 2, calculates the absolute value of N 1 -N 2, when the absolute value is less than N 1 -N 2 When the preset value is used, the two groups of networks are assigned the same priority, and the polling algorithm is used to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset value, the transmission is completed within the preset time. The network with a large number of data packets is allocated the first priority, and the remaining network is assigned the second priority, and the first proportion of the data packet is allocated to the network transmission of the first priority, and the second proportion of the data packet is allocated to the first a second priority network transmission, wherein the first priority is higher than the second priority, and the first ratio is greater than the second ratio;
    最短队列算法:统计每组网络传输未完成的数据包数量,分别记为N 1、N 2,计算N 1-N 2的绝对值,当N 1-N 2的绝对值小于预设阈值时,给两组网络分配相同的优先级、使用轮询算法分配数据包给两组网络,当N 1-N 2的绝对值大于该预设阈值时,给当前传输未完成的数据包的数量少的网络分配第一优先级、余下的网络分配第二优先级,将第三比例的数据包分配给该第一优先级的网络传输、第四比例的数据包分配给另一条网络传输,其中第一优先级高于第二优先级,第三比例大于第四比例。 Shortest Queue Algorithm: counting the number of packets in each group of network transmission has not completed, are referred to as N 1, N 2, calculates the absolute value of N 1 -N 2, when an absolute value of N 1 -N 2 is less than a preset threshold value, Assigning the same priority to the two groups of networks, using the polling algorithm to allocate data packets to the two groups of networks. When the absolute value of N 1 -N 2 is greater than the preset threshold, the number of packets that are not completed for the current transmission is small. The network allocates the first priority, and the remaining network allocates the second priority, and the third proportion of the data packet is allocated to the network transmission of the first priority, and the fourth proportion of the data packet is allocated to another network transmission, where the first The priority is higher than the second priority, and the third ratio is greater than the fourth ratio.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述系统资源包括:本地磁盘的利用率、内存利用率、CPU利用率。The computer readable storage medium according to claim 15, wherein the system resources comprise: local disk utilization, memory utilization, and CPU utilization.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述判断步骤还包括:The computer readable storage medium according to claim 16, wherein the determining step further comprises:
    根据预先设置的本地磁盘的利用率、内存利用率、CPU利用率的第一预设阈值、第二预设阈值,判断系统资源的当前状态是否正常;Determining whether the current state of the system resource is normal according to the preset usage of the local disk, the memory utilization, the first preset threshold of the CPU utilization, and the second preset threshold;
    当监控到其中一个系统资源的利用率高于相应的第二预设阈值时,判断系统资源紧张,当监控到所有系统资源的利用率分别低于相应的第一预设阈值时,判断系统资源充足,当监控到所有系统资源的利用率都低于第二预设阈值时,判断系统资源当前处于正常状态。When it is monitored that the utilization of one of the system resources is higher than the corresponding second preset threshold, the system resources are judged to be tight, and when the utilization rate of all system resources is monitored to be lower than the corresponding first preset threshold, the system resources are determined. Sufficiently, when it is monitored that the utilization of all system resources is lower than the second preset threshold, it is determined that the system resources are currently in a normal state.
  18. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The computer readable storage medium according to claim 15, wherein when said data transfer program is executed by said processor, the following steps are further implemented:
    切换步骤:当监控到服务器的系统资源紧张时,切换至所述最优路径算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源充足时,切换至所述轮询算法将数据包分配给相应的网络传输到相应的存储节点,当监控到服务器的系统资源处于正常状态时,选择最短队列算法将数据包分配给相应的网络传输到相应的存储节点。a switching step: when monitoring system resources of the server is tight, switching to the optimal path algorithm allocates the data packet to the corresponding network and transmits to the corresponding storage node, and when the system resources of the monitored server are sufficient, switching to the The polling algorithm allocates the data packet to the corresponding network and transmits it to the corresponding storage node. When the system resource of the monitoring server is in a normal state, the shortest queue algorithm is selected to allocate the data packet to the corresponding network for transmission to the corresponding storage node.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The computer readable storage medium according to claim 18, wherein when said data transfer program is executed by said processor, the following steps are further implemented:
    计算步骤:实时计算每组网络数据传输的平均延迟时间,计算当前传输 数据的延迟时间与该网络平均延迟时间的差值;Calculation step: calculating the average delay time of each group of network data transmissions in real time, and calculating the difference between the delay time of the current transmission data and the average delay time of the network;
    调整步骤:判断该差值是否超过第一预设值,当该差值超过第一预设值时,降低该网络的优先级,根据两组网络的当前优先级重新分配数据传输任务。The adjusting step is: determining whether the difference exceeds a first preset value, and when the difference exceeds the first preset value, lowering the priority of the network, and reallocating the data transmission task according to the current priority of the two groups of networks.
  20. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述数据传输程序被所述处理器执行时,还实现如下步骤:The computer readable storage medium according to claim 15, wherein when said data transfer program is executed by said processor, the following steps are further implemented:
    指定步骤:当监控到有存储节点发生故障时,指定一组网络用于发生故障的存储节点的数据修复,另外一组网络用于其它存储节点的数据传输。Designation step: When monitoring the failure of a storage node, a set of networks is designated for data repair of the failed storage node, and another set of networks is used for data transfer of other storage nodes.
PCT/CN2018/089133 2018-01-30 2018-05-31 Data transmission method, server, and storage medium WO2019148716A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810089659.7 2018-01-30
CN201810089659.7A CN108306717B (en) 2018-01-30 2018-01-30 Data transmission method, server and storage medium

Publications (1)

Publication Number Publication Date
WO2019148716A1 true WO2019148716A1 (en) 2019-08-08

Family

ID=62867410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089133 WO2019148716A1 (en) 2018-01-30 2018-05-31 Data transmission method, server, and storage medium

Country Status (2)

Country Link
CN (1) CN108306717B (en)
WO (1) WO2019148716A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474811A (en) * 2019-08-21 2019-11-19 杭州安恒信息技术股份有限公司 A kind of adjustment method of network performance, debugging system and relevant apparatus
CN113721265A (en) * 2021-07-05 2021-11-30 广州南方卫星导航仪器有限公司 Method, device, medium and product for scheduling transmission mode of differential data
CN113938428A (en) * 2021-09-06 2022-01-14 锐捷网络股份有限公司 Cross-chip data stream forwarding method and device
CN114640680A (en) * 2020-11-30 2022-06-17 南宁富联富桂精密工业有限公司 Load balancing method and device and computer readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955728A (en) * 2019-11-28 2020-04-03 深圳市恒泰能源科技有限公司 Power consumption data transmission method, server and storage medium
CN111787349B (en) * 2020-05-19 2023-12-12 视联动力信息技术股份有限公司 Data caching method, device, equipment and medium
CN112737941B (en) * 2020-12-21 2022-05-24 北京信而泰科技股份有限公司 Network flow scheduling method, device and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399746A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Packet routing method, system, device and method, system for selecting backup resource
EP2237495A1 (en) * 2009-03-31 2010-10-06 BRITISH TELECOMMUNICATIONS public limited company Path generation in a packet network
CN103841042A (en) * 2014-02-19 2014-06-04 华为技术有限公司 Data transmission method and apparatus under high operating efficiency
CN105847137A (en) * 2016-05-28 2016-08-10 国网安徽省电力公司六安供电公司 Link double-path establishing method for data center interconnection network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025638A (en) * 2010-12-21 2011-04-20 福建星网锐捷网络有限公司 Data transmission method and device based on priority level as well as network equipment
CN103535014B (en) * 2013-04-23 2016-09-28 华为技术有限公司 A kind of network store system, data processing method and client
CN103368968A (en) * 2013-07-22 2013-10-23 厦门市美亚柏科信息股份有限公司 Data transmission method and system
US10459796B2 (en) * 2016-07-20 2019-10-29 International Business Machines Corporation Prioritizing rebuilding based on a longevity estimate of the rebuilt slice
CN107291390B (en) * 2017-06-20 2020-05-15 苏州浪潮智能科技有限公司 Data hierarchical storage method and device
CN107612957A (en) * 2017-07-13 2018-01-19 深圳天珑无线科技有限公司 The method and system of channel transmission downlink data, client, server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399746A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Packet routing method, system, device and method, system for selecting backup resource
EP2237495A1 (en) * 2009-03-31 2010-10-06 BRITISH TELECOMMUNICATIONS public limited company Path generation in a packet network
CN103841042A (en) * 2014-02-19 2014-06-04 华为技术有限公司 Data transmission method and apparatus under high operating efficiency
CN105847137A (en) * 2016-05-28 2016-08-10 国网安徽省电力公司六安供电公司 Link double-path establishing method for data center interconnection network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474811A (en) * 2019-08-21 2019-11-19 杭州安恒信息技术股份有限公司 A kind of adjustment method of network performance, debugging system and relevant apparatus
CN114640680A (en) * 2020-11-30 2022-06-17 南宁富联富桂精密工业有限公司 Load balancing method and device and computer readable storage medium
CN114640680B (en) * 2020-11-30 2024-04-05 南宁富联富桂精密工业有限公司 Load balancing method, device and computer readable storage medium
CN113721265A (en) * 2021-07-05 2021-11-30 广州南方卫星导航仪器有限公司 Method, device, medium and product for scheduling transmission mode of differential data
CN113938428A (en) * 2021-09-06 2022-01-14 锐捷网络股份有限公司 Cross-chip data stream forwarding method and device
CN113938428B (en) * 2021-09-06 2023-06-16 锐捷网络股份有限公司 Cross-chip data stream forwarding method and device

Also Published As

Publication number Publication date
CN108306717A (en) 2018-07-20
CN108306717B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
WO2019148716A1 (en) Data transmission method, server, and storage medium
US10645152B2 (en) Information processing apparatus and memory control method for managing connections with other information processing apparatuses
CN102523234B (en) A kind of application server cluster implementation method and system
CN104753994A (en) Method and device for data synchronization based on cluster server system
JP2007527172A (en) Failover and load balancing
US10740198B2 (en) Parallel partial repair of storage
US10785350B2 (en) Heartbeat in failover cluster
US20180124218A1 (en) Implementing autoswitching network protocols for optimal efficiency
WO2015196686A1 (en) Data storage method and data storage management server
CN112671928A (en) Equipment centralized management architecture, load balancing method, electronic equipment and storage medium
JP2017502414A (en) System and method for supporting asynchronous calls in a distributed data grid
US10216593B2 (en) Distributed processing system for use in application migration
JP5408620B2 (en) Data distribution management system and data distribution management method
TWM432075U (en) Monitoring device and monitoring system applicable to cloud algorithm
US8874984B2 (en) High performance virtual converged enhanced ethernet with persistent state flow control
US10951732B2 (en) Service processing method and device
TWI571077B (en) Integration network device and service integration method thereof
US11032375B2 (en) Automatic scaling for communications event access through a stateful interface
US20170031726A1 (en) Elasticity engine for availability management framework (amf)
CN114221899B (en) Fault processing method and device
CN113596109B (en) Service request operation method, system, device, equipment and storage medium
US11431620B2 (en) Control packet transmission system
CN114064362B (en) Data recovery method, system and computer readable storage medium for distributed storage
JP6112205B2 (en) Information processing system, apparatus, method, and program
JP2008009852A (en) Load distribution control system and method, and server device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18903846

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 12.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18903846

Country of ref document: EP

Kind code of ref document: A1