WO2017101875A1 - Transmission rate control method and device based on iscsi protocol - Google Patents

Transmission rate control method and device based on iscsi protocol Download PDF

Info

Publication number
WO2017101875A1
WO2017101875A1 PCT/CN2016/110470 CN2016110470W WO2017101875A1 WO 2017101875 A1 WO2017101875 A1 WO 2017101875A1 CN 2016110470 W CN2016110470 W CN 2016110470W WO 2017101875 A1 WO2017101875 A1 WO 2017101875A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
transmission rate
iscsi
current time
tcp
Prior art date
Application number
PCT/CN2016/110470
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 WO2017101875A1 publication Critical patent/WO2017101875A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/16Flow control; Congestion control in connection oriented networks, e.g. frame relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present invention relates to the field of communications, and in particular, to a transmission rate control method and apparatus based on an iSCSI protocol.
  • the iSCSI (Internet Small Computer System Interface, iSCSI) technology can implement the SCSI protocol on an IP network. Users can use the current mature IP network to build a storage area network.
  • iSCSI Internet Small Computer System Interface
  • the initiator is used as a client, the target is used as a server, the initiator and the target are transmitted through an established iSCSI session, and the iSCSI session includes one or more TCPs (Transmission Control). Protocol, Transmission Control Protocol (TCP) connection. Since the iSCSI protocol is carried over the TCP protocol, a TCP connection needs to be established before establishing an iSCSI session. IP-based iSCSI protocol transmission relies on a TCP connection, an iSCSI request sent over a TCP connection, and the corresponding response and acknowledgment response data of the iSCSI request must be returned via the same TCP connection.
  • TCP Transmission Control Protocol
  • the initiator and the target end transmit data through the iSCSI session
  • a certain transmission resource is allocated for the iSCSI.
  • the transmission resource occupied by the iSCSI session does not change, but the amount of data between the initiator and the target end fluctuates.
  • it is not well adapted to the complex and variable transmission environment.
  • the technical problem to be solved by the embodiments of the present invention is to provide a transmission rate control method and apparatus based on the iSCSI protocol.
  • the transfer rate of the iSCSI session can be adaptively adjusted according to the transmission requirements.
  • an embodiment of the present application provides a transmission rate control method based on an iSCSI protocol, including:
  • the execution body of the embodiment of the present invention is included as a sending end, and the sending end may be an originating end or a target end in the iSCSI protocol.
  • the sender presets the transmission rate requirement value.
  • the transmission rate requirement value is the expected value that the iSCSI session needs to reach.
  • the sender periodically obtains the session transmission rate of the iSCSI session at the current time, and determines whether the session transmission rate of the iSCSI session at the current time is Less than the preset transmission rate requirement value; if yes, establish a new TCP connection, allocate transmission resources for the new TCP connection, add a new TCP connection in the iSCSI session, thereby increasing the session transmission rate of the iSCSI session, enabling the iSCSI session
  • the session transfer rate reaches the preset transfer rate demand value. If the session transmission rate at the current time is greater than or equal to the preset transmission rate requirement value, indicating that the transmission requirement is met, the sender stops adding a new TCP connection to the iSCSI session.
  • the sender determines whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time before determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value. If yes, perform the step of determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value.
  • the sender After the sender adds a new TCP connection to the iSCSI session at the current time, if the transmission resource (such as memory, CPU, or bandwidth) of the system is still idle, then the sender acquires the iSCSI session at the next moment, and the iSCSI session The session transfer rate will increase accordingly; if the session transfer rate of the iSCSI session does not increase at the next moment, indicating that the system's transmission resources are saturated and there is no idle, continuing to add a new TCP connection to the iSCSI session will not increase the session transfer rate. .
  • the transmission resource such as memory, CPU, or bandwidth
  • the method for the sender to obtain the session transmission rate of the iSCSI session at the current moment may be:
  • the sender determines which TCP connections are included in the iSCSI session. For each TCP connection included in the iSCSI session, the sender obtains the response message received by the TCP connection at the current time and the response message received at the previous time, according to the two responses.
  • the transmitting side according to the above formula to calculate the TCP transmission rate of the iSCSI session comprises all TCP connection, TCP transport all TCP connections The rate is summed to obtain the session transmission rate S n of the iSCSI session at the current time.
  • the historical session transmission rate is introduced, and the session transmission rate calculated at the current time is smoothed to prevent the session transmission rate from being excessively played.
  • the sender when the sender needs to reduce the session transmission rate of the iSCSI session, firstly, the preset transmission rate requirement value corresponding to the ISCSI session is reduced from R1 to R2, and then the sender periodically acquires the iSCSI session at the current time.
  • the session transmission rate of the moment, determining that the session transmission rate of the iSCSI session can continue to decrease, the method of determining may be: determining whether the session transmission rate of the iSCSI session at the current time is less than the session transmission rate of the R2 or the iSCSI session at the current time and the R2. Whether the difference is less than the TCP transmission rate of any one of the TCP connections included in the iSCSI session. If yes, it indicates that the reduction can continue.
  • T R1 - R2.
  • the method for determining whether the session transmission rate of the iSCSI session needs to be reduced may be: determining whether the session transmission rate of the iSCSI session at the current time is less than the session transmission rate of the R2 or iSCSI session at the current moment. Whether the difference of R2 is smaller than the TCP transmission rate of any one of the TCP connections included in the iSCSI session; if so, the session transmission rate of the iSCSI session does not need to be lowered; if not, the session transmission rate of the iSCSI session needs to be lowered.
  • the sender acquires the load parameter value at the current time; When the load parameter value is greater than the preset value, the preset transmission rate demand value is decreased;
  • the preset transmission rate demand value is increased.
  • an embodiment of the present application provides a transmission rate control apparatus based on an iSCSI protocol, where the apparatus includes: an acquisition module, a first determination module, and an adjustment module.
  • the obtaining module obtains the session transmission rate of the iSCSI session at the current time, and the first determining module determines whether the session transmission rate obtained by the acquiring module is less than a preset transmission rate requirement value; if the judgment result of the first determining module is yes, the adjusting module is in the iSCSI Add a new TCP connection to the session.
  • the apparatus further includes: a second determining module.
  • the second determining module determines whether the session transmission rate of the current time in the iSCSI session is increased compared with the previous time. If the determination result is yes, the first determining module is instructed to start working.
  • the obtaining module determines a plurality of TCP connections included in the iSCSI session; and respectively calculates a TCP transmission rate corresponding to each of the plurality of TCP connections at the current time according to the sequence number and the timestamp of the at least two acknowledgement messages; The TCP transmission rates corresponding to the current time are summed by the plurality of TCP connections to obtain the session transmission rate S n of the iSCSI session at the current time.
  • the apparatus further includes a smoothing module.
  • the device also includes a speed reduction module.
  • the transmission rate requirement value corresponding to the iSCSI session is lowered, from R1 to R2, and R1>R2.
  • the deceleration module determines whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than any TCP included in the iSCSI session.
  • the TCP transmission rate of the connection if so, there is no need to reduce the session transfer rate of the iSCSI session; if not, the session transfer rate of the iSCSI session needs to be reduced.
  • the apparatus further includes: a threshold adjustment module.
  • the threshold adjustment module obtains the load parameter value at the current time; when the load parameter value is greater than the preset value, decreases the preset transmission rate demand value; and when the load parameter value is less than or equal to the preset value, the pre-up is increased. Set the transmission rate demand value.
  • an embodiment of the present application provides a terminal device, including any of the foregoing iSCSI protocol-based transmission rate control devices.
  • the embodiment of the present application provides a transmission rate control apparatus based on an iSCSI protocol, including:
  • processors One or more processors, memories, bus systems, transceivers, and one or more programs, the processors, memories, and transceivers are coupled by a bus system;
  • One or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the device, cause the device to perform any of the first aspect and the fifth possible implementation of the first aspect The method of the item.
  • an embodiment of the present application provides a computer readable storage medium storing one or more programs, where one or more programs include instructions that, when executed by the device, cause the device to perform the first aspect to the first A method of any of the sixth possible implementations of aspects.
  • Real-time access to the session transfer rate of the iSCSI session When the session transfer rate is less than the preset transfer rate requirement, a new TCP connection is added to the iSCSI session to make full use of the idle transmission resources, thereby increasing the transmission rate of the iSCSI session. .
  • FIG. 1 is a schematic structural diagram of a conventional transmission system based on an iSCSI protocol
  • FIG. 2 is a schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention
  • FIG. 3 is another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention
  • FIG. 4 is still another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention
  • FIG. 6 is another schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention.
  • an execution entity is a sender, and a sender may be an initiator or a destination.
  • the method includes:
  • the iSCSI session includes multiple TCP connections, and the initiator is connected.
  • a plurality of TCP connections are included in the iSCSI session to transmit a Protocol Data Unit (PDU) to the target.
  • PDU Protocol Data Unit
  • the current time indicates the time when the sequence number is n.
  • the initiator obtains the session transmission rate of the iSCSI session at intervals.
  • the first acquisition time is time 1
  • the second acquisition time is time 2, and so on.
  • the session transmission rate of the initiating end to obtain the iSCSI session may be a periodic acquisition or an aperiodic acquisition, which is not limited in the present invention.
  • the initiator uses a periodic acquisition rate of the iSCSI session, that is, the time interval between the current time and the next time is a fixed value.
  • the transmission rate requirement value indicates a transmission rate that the iSCSI session expects to reach, and a specific transmission rate requirement value is set in advance according to requirements.
  • the initiator determines the size relationship between the session transmission rate of the current time and the preset transmission rate requirement value of the iSCCI session.
  • the initiator re-establishes a new TCP connection, allocates a transmission resource for the new TCP connection, and adds a new TCP connection to the iSCSI session to improve the transmission rate of the iSCSI session.
  • the originating end does not add a new TCP connection, and exits the transmission rate control procedure of the iSCSI session.
  • the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
  • FIG. 3 is a schematic flowchart of another method for controlling a transmission rate based on the iSCSI protocol according to an embodiment of the present invention.
  • the method includes:
  • the iSCSI session includes multiple TCP connections, at different times, due to The number of TCP connections included in the iSCSI session varies dynamically. Different TCP connections have different ID identities. The initiator can determine the multiple TCP connections included in the iSCSI session at the current time according to the identity of the TCP connection.
  • the initiator calculates a TCP transmission rate corresponding to each of the multiple TCP connections included in the iSCSI session, and the method for calculating the TCP transmission rate of the TCP connection may be: the initiator sends the protocol data unit PDU to be sent, and the initiator passes the TCP.
  • the protocol data unit carries the sequence number.
  • the destination end successfully receives the protocol data unit through the TCP connection, the destination end acquires the sequence number carried in the protocol data unit, and returns to the initiator to carry the sequence number.
  • the response packet of the sequence number is received by the initiator, and the timestamp of the response packet is received, and the sequence number carried in the response packet is obtained.
  • the calculation method of the TCP transmission rate is not limited thereto.
  • the initiator may use the sequence number and time stamp of two or more response packets.
  • the TCP transmission rate of the TCP connection is calculated, and the two response packets received are grouped according to the above formula, and the calculated plurality of sets of TCP transmission rates are weighted and averaged to obtain the TCP transmission speed of the TCP connection at the current time. rate.
  • a plurality of TCP connections are respectively summed at a current TCP transmission rate at the current time to obtain a session transmission rate of the iSCSI session at the current time.
  • the initiator calculates the TCP transmission rate of each TCP connection included in the iSCSI session according to the method of S302, and obtains the TCP transmission rates after summing each TCP transmission rate.
  • the session transmission rate of the iSCSI session calculated by the initiator at the current time has a large fluctuation due to the delay confirmation mechanism of the response packet and the network congestion.
  • the initiation is initiated.
  • the session transmission rate of the iSCSI session history is introduced to smooth the session transmission rate at the current time.
  • the session transmission rate of the iSCSI session at the current moment and the session transmission rate of the previous moment are the session transmission rate after smoothing by S304, or the session transmission rate without smoothing, and the initiator determines that the iSCSI session is currently Whether the session transmission rate of the moment increases compared with the session transmission rate of the previous moment. If the judgment result is yes, indicating that the session transmission rate of the iSCSI session has a possibility of further increase, perform S306; if the judgment result is no, indicate the iSCSI session. The session transmission rate has no possibility of further increase, and S307 is performed.
  • the transmission rate requirement value is an expected value of the session transmission rate of the set iSCSI session, and a specific value may be preset according to requirements.
  • the initiator determines whether the transmission rate of the iSCSI session obtained at S304 is less than the preset transmission rate requirement value. If the determination result is yes, indicating that the session transmission rate of the iSCSI session at the current time does not reach the expected value, the session transmission needs to be further improved. Rate; if the result of the judgment is no, the expected value is reached.
  • the purpose of adding a TCP connection in an iSCSI session is to increase the session transmission rate of the iSCSI session.
  • the session transmission rate of the iSCSI session at the current time does not increase compared with the session transmission rate at the previous moment, indicating that the network bandwidth is saturated, and continues.
  • Adding a TCP connection to an iSCSI session does not increase its session transfer rate.
  • the initiator stops adding a new TCP connection to the iSCSI session at this time. Or, the session transfer rate of the iSCSI session has reached the preset transmission rate requirement.
  • the initiator also stops adding new TCP connections to the iSCSI session.
  • S301-S308 is a step of cyclic execution, and the initiator periodically performs the steps of S301 and S308 until the process is exited.
  • the initiator determines that a new TCP connection needs to be added in the iSCSI session
  • the initiator establishes a new TCP connection, allocates transmission resources for the established new TCP connection, adds the new TCP connection to the iSCSI session, and adds a new TCP connection. Thereafter, the number of TCP connections in the iSCSI session increases, and when the next time is reached, the initiator continues to perform S301-S308 according to the above description.
  • the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
  • FIG. 4 is still another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention.
  • the method includes:
  • the iSCSI session includes multiple TCP connections. At different times, the number of TCP connections included in the iSCSI session changes dynamically due to different transmission requirements. Different TCP connections have different ID identities, and the initiator can be based on The identity of the TCP connection determines the number of TCP connections included in the iSCSI session at the current time.
  • S402. Calculate, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the plurality of TCP connections at the current time.
  • the initiator calculates a TCP transmission rate corresponding to each of the multiple TCP connections included in the iSCSI session, and the method for calculating the TCP transmission rate of the TCP connection may be: the initiator sends the protocol data unit PDU to be sent, and the initiator transmits the TCP.
  • the protocol data unit carries the sequence number.
  • the destination end successfully receives the protocol data unit through the TCP connection, the destination end acquires the sequence number carried in the protocol data unit, and returns to the initiator to carry the sequence number.
  • the response packet of the sequence number is received by the initiator, and the timestamp of the response packet is received, and the sequence number carried in the response packet is obtained.
  • the calculation method of the TCP transmission rate is not limited thereto.
  • the initiator may use the sequence number and time stamp of two or more response packets.
  • the TCP transmission rate of the TCP connection is calculated, and the two response packets received are grouped according to the above formula, and the calculated plurality of sets of TCP transmission rates are weighted and averaged to obtain the TCP transmission speed of the TCP connection at the current time. rate.
  • a plurality of TCP connections are respectively summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate of the iSCSI session at the current time.
  • the initiator calculates the TCP transmission rate of each TCP connection included in the iSCSI session according to the method of S402, and sums the respective TCP transmission rates to obtain the TCP transmission rate of the iSCSI session at the current time.
  • multiple TCP connections included in an iSCSI session may be created when the system load is reduced, which occupies more transmission resources. If a new iSCSI session needs to be created, the new iSCSI session may be allocated. Sufficient transmission resources. In this case, some TCP connections in the original iSCSI session need to be removed, so that the transmission rate requirement of the original iSCSI session is reduced from R1 to R2, and R1>R2.
  • the initiator of the iSCSI session determines whether the transmission rate of the iSCSI session at the current time needs to be lowered. If the determination result is yes, S405 is performed, and if the determination result is no, S407 is performed.
  • the method for determining whether the session transmission rate of the current time needs to be reduced is: determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than the The TCP transmission rate of any one of the TCP connections included in the iSCSI session; if yes, the session transmission rate of the iSCSI session at the current time has met the requirement of the transmission rate requirement value R2, and does not need to adjust the session transmission rate of the iSCSI session; No, the session transmission rate of the iSCSI session at the current time does not meet the requirement of the transmission rate requirement value R2, and the session transmission rate of the iSCSI session needs to be adjusted.
  • the transmission resource includes one or more of a CPU resource, a memory resource, and a bandwidth resource.
  • the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
  • acquiring a load parameter value at a current time acquiring a load parameter value at a current time
  • the load parameter value indicates the parameter value of the load degree of the system, and the magnitude of the load parameter value and the load degree are positively correlated.
  • the initiator needs to reduce the session transmission rate of the iSCSI session, minus Small corresponding to the iSCSI session
  • the transmission rate requirement value is used to reduce the load of the system.
  • the load parameter value is less than or equal to the preset value
  • the initiator needs to increase the transmission rate of the iSCSI session and increase the preset transmission rate requirement value to improve the system transmission resource. Utilization. After changing the transmission rate requirement value of the iSCSI session, the transmission rate of the iSCSI session is adjusted to the adjusted transmission rate requirement value according to the method of the foregoing embodiment.
  • the device 5 is a schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention.
  • the apparatus is used to perform an iSCSI-based protocol shown in FIG. 1 .
  • a transmission rate control method, in which the examples and terms involved may refer to the description of FIG. 2.
  • the device 5 includes an acquisition module 501, a first determination module 502, and an adjustment module 503.
  • the obtaining module 501 is configured to obtain a session transmission rate of the iSCSI session at the current moment.
  • the first determining module 502 is configured to determine whether the session transmission rate obtained by the acquiring module is less than a preset transmission rate requirement value.
  • the adjusting module 503 is configured to add a new TCP connection in the iSCSI session if the determining result of the first determining module is yes.
  • the device 5 further includes: a first determining module.
  • a second determining module configured to determine whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time
  • the first determining module is instructed to start working.
  • the obtaining module 501 is configured to:
  • the plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
  • the device 5 further includes: a smoothing processing module.
  • the device 5 further includes: a speed reduction module.
  • a speed reduction module configured to determine whether the session transmission rate of the iSCSI session continues to decrease at a current time; wherein, the transmission rate requirement value corresponding to the iSCSI session is previously reduced from R1 to R2;
  • T R1 -R2.
  • the speed reduction module is used to:
  • the session transfer rate of the iSCSI session needs to be reduced.
  • the device 5 further includes: a threshold adjustment module.
  • a threshold adjustment module configured to acquire a load parameter value at a current time; and if the load parameter value is greater than a preset value, reduce the preset transmission rate demand value; where the load parameter value is less than or equal to In the case of the preset value, the preset transmission rate demand value is increased.
  • Embodiments 2 and 3 of the present invention are based on the same concept, and the technical effects thereof are also the same.
  • FIG. 6 is another schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention.
  • the apparatus 6 includes a processor 601, a memory 602, and a transceiver 603.
  • the transceiver 603 is configured to transmit and receive data with and from an external device.
  • the number of processors 601 in device 6 may be one or more.
  • processor 601, memory 602, and transceiver 603 can be connected by a bus system or other means.
  • Apparatus 6 can be used to perform the method illustrated in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 2. I will not repeat them here.
  • the program code is stored in the memory 602.
  • the processor 601 is configured to call the program code stored in the memory 602 for performing the following operations:
  • the processor 601 performs the determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value, and is further configured to:
  • the performing, by the processor 601, the session transmission rate of the acquiring the iSCSI session at the current moment includes:
  • the plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
  • the processor 601 performs the acquiring the iSCSI session at the current time of the session transmission rate, and is further configured to:
  • the processor 601 is further configured to:
  • T R1 -R2.
  • the processor 601 performing the determining whether the session transmission rate of the iSCSI session at the current moment continues to decrease includes:
  • the session transfer rate of the iSCSI session needs to be reduced.
  • the processor 601 is further configured to:
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed is a transmission rate control method based on an iSCSI protocol. The method comprises: acquiring a session transmission rate of an iSCSI session at the current moment; determining whether the session transmission rate of the iSCSI session in the current moment is smaller than a pre-set transmission rate requirement value; and if so, adding a new TCP connection in the iSCSI session. Also disclosed is a transmission rate control device based on an iSCSI protocol. By means of the present invention, the transmission rate of an iSCSI session can be adaptively adjusted according to transmission requirements.

Description

一种基于iSCSI协议的传输速率控制方法和装置Transmission rate control method and device based on iSCSI protocol 技术领域Technical field
本发明涉及通信领域,尤其涉及一种基于iSCSI协议的传输速率控制方法和装置。The present invention relates to the field of communications, and in particular, to a transmission rate control method and apparatus based on an iSCSI protocol.
背景技术Background technique
iSCSI(Internet Small Computer System Interface,互联网小型计算机系统接口,简称iSCSI)技术可以实现在IP网络上运行SCSI协议,用户可利用目前成熟的IP网络来构建存储局域网络。The iSCSI (Internet Small Computer System Interface, iSCSI) technology can implement the SCSI protocol on an IP network. Users can use the current mature IP network to build a storage area network.
参见图1,为基于iSCSI协议的系统结构图,发起端initiator作为客户端,目标端target作为服务器,发起端和目标端通过建立的iSCSI会话传输数据,iSCSI会话包括一个或多个TCP(Transmission Control Protocol,传输控制协议,简称TCP)连接。由于iSCSI协议是承载在TCP协议上的,在建立iSCSI会话之前需要建立TCP连接。基于IP的iSCSI协议传输依赖于TCP连接,通过一个TCP连接发送的iSCSI请求,该iSCSI请求对应的响应和确认应答等数据必须经由同一个TCP连接返回。Referring to FIG. 1 , a system structure diagram based on the iSCSI protocol, the initiator is used as a client, the target is used as a server, the initiator and the target are transmitted through an established iSCSI session, and the iSCSI session includes one or more TCPs (Transmission Control). Protocol, Transmission Control Protocol (TCP) connection. Since the iSCSI protocol is carried over the TCP protocol, a TCP connection needs to be established before establishing an iSCSI session. IP-based iSCSI protocol transmission relies on a TCP connection, an iSCSI request sent over a TCP connection, and the corresponding response and acknowledgment response data of the iSCSI request must be returned via the same TCP connection.
发起端和目标端通过该iSCSI会话传输数据时,为iSCSI分配一定的传输资源,在后续传输过程中,iSCSI会话占用的传输资源不再改变,然而发起端和目标端之间的数据量存在波动时,无法很好的适应复杂多变的传输环境。When the initiator and the target end transmit data through the iSCSI session, a certain transmission resource is allocated for the iSCSI. In the subsequent transmission process, the transmission resource occupied by the iSCSI session does not change, but the amount of data between the initiator and the target end fluctuates. When it is not well adapted to the complex and variable transmission environment.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种基于iSCSI协议的传输速率控制方法和装置。可根据传输要求自适应的调节iSCSI会话的传输速率。 The technical problem to be solved by the embodiments of the present invention is to provide a transmission rate control method and apparatus based on the iSCSI protocol. The transfer rate of the iSCSI session can be adaptively adjusted according to the transmission requirements.
第一方面,本申请的实施例提供了一种基于iSCSI协议的传输速率控制方法,包括:In a first aspect, an embodiment of the present application provides a transmission rate control method based on an iSCSI protocol, including:
实现本发明实施例的执行主体包括作为发送端,发送端可以是iSCSI协议中的发起端或目标端。发送端预设设定传输速率需求值,传输速率需求值为iSCSI会话需要达到的期望值,发送端周期性的获取iSCSI会话在当前时刻的会话传输速率,判断iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值;若为是,建立新的TCP连接,为新的TCP连接分配传输资源,在iSCSI会话中增加新的TCP连接,从而增加iSCSI会话的会话传输速率,使iSCSI会话的会话传输速率达到预设的传输速率需求值。发送端如果在当前时刻的会话传输速率大于或等于预设的传输速率需求值,表明满足传输需求,发送端停止向iSCSI会话中增加新的TCP连接。The execution body of the embodiment of the present invention is included as a sending end, and the sending end may be an originating end or a target end in the iSCSI protocol. The sender presets the transmission rate requirement value. The transmission rate requirement value is the expected value that the iSCSI session needs to reach. The sender periodically obtains the session transmission rate of the iSCSI session at the current time, and determines whether the session transmission rate of the iSCSI session at the current time is Less than the preset transmission rate requirement value; if yes, establish a new TCP connection, allocate transmission resources for the new TCP connection, add a new TCP connection in the iSCSI session, thereby increasing the session transmission rate of the iSCSI session, enabling the iSCSI session The session transfer rate reaches the preset transfer rate demand value. If the session transmission rate at the current time is greater than or equal to the preset transmission rate requirement value, indicating that the transmission requirement is met, the sender stops adding a new TCP connection to the iSCSI session.
在一种设计中,发送端在判断iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值之前,发送端判断iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,若为是,执行判断iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值的步骤。发送端在向当前时刻向iSCSI会话中增加新的TCP连接后,如果系统的传输资源(例如内存、CPU或带宽)还有空闲,那么发送端在下一时刻获取该iSCSI会话时,该iSCSI会话的会话传输速率会相应的增加;如果下一时刻iSCSI会话的会话传输速率没有增加,表明系统的传输资源已饱和,没有空闲,继续在该iSCSI会话中增加新的TCP连接也不会提高会话传输速率。In a design, the sender determines whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time before determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value. If yes, perform the step of determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value. After the sender adds a new TCP connection to the iSCSI session at the current time, if the transmission resource (such as memory, CPU, or bandwidth) of the system is still idle, then the sender acquires the iSCSI session at the next moment, and the iSCSI session The session transfer rate will increase accordingly; if the session transfer rate of the iSCSI session does not increase at the next moment, indicating that the system's transmission resources are saturated and there is no idle, continuing to add a new TCP connection to the iSCSI session will not increase the session transfer rate. .
在另一种可能的设计中,发送端获取iSCSI会话在当前时刻的会话传输速率的方法可以是:In another possible design, the method for the sender to obtain the session transmission rate of the iSCSI session at the current moment may be:
首先发送端确定iSCSI会话包括哪些TCP连接;针对该iSCSI会话包括的每个TCP连接,发送端获取TCP连接在当前时刻接收的应答报文和上一时刻接收的应答报文,根据上述两个应答报文的时间戳和序列号计算出该TCP连接的的TCP传输速率,公式具体为:Sn=(ACKn-ACKn-1)/(Tn-Tn-1),ACKn表示当前时刻接收的应答报文的序 列号,ACKn-1表示上一时刻接收的应答报文的序列号,Tn表示当前时刻接收的应答报文的时间戳,Tn-1表示上一时刻接收的应答报文的时间戳,Sn表示该TCP连接在当前时刻的TCP传输速率,按照上述公式发送端计算出iSCSI会话中包括的所有TCP连接的TCP传输速率,将所有的TCP连接的TCP传输速率进行求和得到iSCSI会话在当前时刻的会话传输速率SnFirst, the sender determines which TCP connections are included in the iSCSI session. For each TCP connection included in the iSCSI session, the sender obtains the response message received by the TCP connection at the current time and the response message received at the previous time, according to the two responses. The timestamp and serial number of the message calculate the TCP transmission rate of the TCP connection, and the formula is specifically: S n = (ACK n - ACK n-1 ) / (T n - T n-1 ), and ACK n represents the current The sequence number of the response message received at the moment, ACK n-1 indicates the sequence number of the response message received at the previous time, T n indicates the time stamp of the response message received at the current time, and T n-1 indicates the reception at the previous time. the response packet timestamp, S n represents the current time of the TCP connection is a TCP transmission rate, the transmitting side according to the above formula to calculate the TCP transmission rate of the iSCSI session comprises all TCP connection, TCP transport all TCP connections The rate is summed to obtain the session transmission rate S n of the iSCSI session at the current time.
在另一种设计中,发送端获取iSCSI会话在当前时刻的会话传输速率之后,需要根据公式α×Sn-1+β×Sn对iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为iSCSI会话当前时刻的会话传输速率,Sn-1为iSCSI会话在上一时刻的会话传输速率。引入历史的会话传输速率,对当前时刻计算得到的会话传输速率进行平滑处理,避免会话传输速率播放过大。In another design, after the sender obtains the session transmission rate of the iSCSI session at the current time, it needs to smooth the session transmission rate of the iSCSI session at the current moment according to the formula α×S n-1 +β×S n ; , α and β are constants greater than 0, α + β = 1, S n is the session transmission rate of the current moment of the iSCSI session, and Sn -1 is the session transmission rate of the iSCSI session at the previous moment. The historical session transmission rate is introduced, and the session transmission rate calculated at the current time is smoothed to prevent the session transmission rate from being excessively played.
在另一种设计中,发送端需要降低iSCSI会话的会话传输速率时,首先将该ISCSI会话对应的预设的传输速率需求值由R1降低至R2,然后发送端周期性的获取iSCSI会话在当前时刻的会话传输速率,判断该iSCSI会话的会话传输速率能继续降低,判断的方法可以是:判断iSCSI会话在当前时刻的会话传输速率是否小于R2或iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于iSCSI会话中包括的任意一个TCP连接的TCP传输速率,若为是,表明可以继续降低。如果iSCSI会话的会话传输速率可以继续降低,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从iSCSI会话中移除,并释放移除的TCP连接占用的传输资源;T=R1-R2。In another design, when the sender needs to reduce the session transmission rate of the iSCSI session, firstly, the preset transmission rate requirement value corresponding to the ISCSI session is reduced from R1 to R2, and then the sender periodically acquires the iSCSI session at the current time. The session transmission rate of the moment, determining that the session transmission rate of the iSCSI session can continue to decrease, the method of determining may be: determining whether the session transmission rate of the iSCSI session at the current time is less than the session transmission rate of the R2 or the iSCSI session at the current time and the R2. Whether the difference is less than the TCP transmission rate of any one of the TCP connections included in the iSCSI session. If yes, it indicates that the reduction can continue. If the session transmission rate of the iSCSI session can continue to decrease, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session, and the transmission resource occupied by the removed TCP connection is released; T = R1 - R2.
在另一种可能的设计中,发送端判断iSCSI会话的会话传输速率是否需要降低的方法可以是:判断iSCSI会话在当前时刻的会话传输速率是否小于R2或iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于iSCSI会话中包括的任意一个TCP连接的TCP传输速率;若为是,iSCSI会话的会话传输速率不需要降低;若为否,iSCSI会话的会话传输速率需要降低。In another possible design, the method for determining whether the session transmission rate of the iSCSI session needs to be reduced may be: determining whether the session transmission rate of the iSCSI session at the current time is less than the session transmission rate of the R2 or iSCSI session at the current moment. Whether the difference of R2 is smaller than the TCP transmission rate of any one of the TCP connections included in the iSCSI session; if so, the session transmission rate of the iSCSI session does not need to be lowered; if not, the session transmission rate of the iSCSI session needs to be lowered.
在另一种可能的设计中,发送端获取在当前时刻的负荷参数值; 在负荷参数值大于预设值的情况下,减小预设的传输速率需求值;In another possible design, the sender acquires the load parameter value at the current time; When the load parameter value is greater than the preset value, the preset transmission rate demand value is decreased;
在负荷参数值小于或等于预设值的情况下,增加预设的传输速率需求值。When the load parameter value is less than or equal to the preset value, the preset transmission rate demand value is increased.
第二方面,本申请的实施例提供了一种基于iSCSI协议的传输速率控制装置,该装置包括:获取模块、第一判断模块和调节模块。In a second aspect, an embodiment of the present application provides a transmission rate control apparatus based on an iSCSI protocol, where the apparatus includes: an acquisition module, a first determination module, and an adjustment module.
获取模块获取iSCSI会话在当前时刻的会话传输速率,第一判断模块判断获取模块获取的会话传输速率是否小于预设的传输速率需求值;若第一判断模块的判断结果为是,调节模块在iSCSI会话中增加新的TCP连接。The obtaining module obtains the session transmission rate of the iSCSI session at the current time, and the first determining module determines whether the session transmission rate obtained by the acquiring module is less than a preset transmission rate requirement value; if the judgment result of the first determining module is yes, the adjusting module is in the iSCSI Add a new TCP connection to the session.
在一种可能的设计中,该装置还包括:第二判断模块。In one possible design, the apparatus further includes: a second determining module.
第二判断模块判断iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,若判断结果为是,指示第一判断模块开始工作。The second determining module determines whether the session transmission rate of the current time in the iSCSI session is increased compared with the previous time. If the determination result is yes, the first determining module is instructed to start working.
在另一种可能的设计中,获取模块确定iSCSI会话包括的多个TCP连接;根据至少两个确认报文的序列号和时间戳分别计算多个TCP连接各自在当前时刻对应的TCP传输速率;将多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到iSCSI会话在当前时刻的会话传输速率SnIn another possible design, the obtaining module determines a plurality of TCP connections included in the iSCSI session; and respectively calculates a TCP transmission rate corresponding to each of the plurality of TCP connections at the current time according to the sequence number and the timestamp of the at least two acknowledgement messages; The TCP transmission rates corresponding to the current time are summed by the plurality of TCP connections to obtain the session transmission rate S n of the iSCSI session at the current time.
在另一种可能的设计中,该装置还包括平滑处理模块。In another possible design, the apparatus further includes a smoothing module.
平滑处理模块根据公式α×Sn-1+β×Sn对iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为iSCSI会话当前时刻的会话传输速率,Sn-1为iSCSI会话在上一时刻的会话传输速率。Smoothing processing module according to the formula α × S n-1 + β × S n iSCSI session smoothing session transmission rate at the current time; wherein, α and beta] is greater than 0 constant, α + β = 1, S n is The session transfer rate of the current time of the iSCSI session, and Sn -1 is the session transfer rate of the iSCSI session at the previous moment.
在另一种可能的设计中,该装置还包括降速模块。在需要对iSCSI会话的会话传输速率进行降速处理的情况下,对iSCSI会话对应的传输速率需求值降低,由R1减小至R2,R1>R2。降速模块周期性的判断iSCSI会话在当前时刻的会话传输速率是否继续降低,若为是,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从iSCSI会话中移除,并释放移除的TCP连接占用的传输资源;T=R1-R2。 In another possible design, the device also includes a speed reduction module. In the case where the session transmission rate of the iSCSI session needs to be slowed down, the transmission rate requirement value corresponding to the iSCSI session is lowered, from R1 to R2, and R1>R2. The deceleration module periodically determines whether the session transmission rate of the iSCSI session continues to decrease at the current time. If yes, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session. And release the transmission resource occupied by the removed TCP connection; T=R1-R2.
在另一种可能的设计中,降速模块判断iSCSI会话在当前时刻的会话传输速率是否小于R2或iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于iSCSI会话中包括的任意一个TCP连接的TCP传输速率;若为是,不需要降低iSCSI会话的会话传输速率;若为否,需要降低iSCSI会话的会话传输速率。In another possible design, the deceleration module determines whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than any TCP included in the iSCSI session. The TCP transmission rate of the connection; if so, there is no need to reduce the session transfer rate of the iSCSI session; if not, the session transfer rate of the iSCSI session needs to be reduced.
在另一种可能的设计中,该装置还包括:阈值调节模块。In another possible design, the apparatus further includes: a threshold adjustment module.
阈值调节模块获取在当前时刻的负荷参数值;在负荷参数值大于预设值的情况下,减小预设的传输速率需求值;在负荷参数值小于或等于预设值的情况下,增加预设的传输速率需求值。The threshold adjustment module obtains the load parameter value at the current time; when the load parameter value is greater than the preset value, decreases the preset transmission rate demand value; and when the load parameter value is less than or equal to the preset value, the pre-up is increased. Set the transmission rate demand value.
第三方面,本申请实施例提供了一种终端设备,包括上述所有的基于iSCSI协议的传输速率控制装置中的任意种装置。In a third aspect, an embodiment of the present application provides a terminal device, including any of the foregoing iSCSI protocol-based transmission rate control devices.
第四方面,本申请实施例提供了一种基于iSCSI协议的传输速率控制装置,包括:In a fourth aspect, the embodiment of the present application provides a transmission rate control apparatus based on an iSCSI protocol, including:
一个或多个处理器、存储器、总线系统、收发器以及一个或多个程序,处理器、存储器和收发器通过总线系统相连;One or more processors, memories, bus systems, transceivers, and one or more programs, the processors, memories, and transceivers are coupled by a bus system;
其中一个或多个程序被存储在存储器中,一个或多个程序包括指令,指令当被该装置执行时使该装置执行如第一方面和第一方面的第五种可能的实现方式中任一项的方法。One or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the device, cause the device to perform any of the first aspect and the fifth possible implementation of the first aspect The method of the item.
第五方面,本申请实施例提供了一种存储一个或多个程序的计算机可读存储介质,一个或多个程序包括指令,指令当被该装置执行时使该装置执行第一方面至第一方面的第六种可能的实现方式中的任意一种的方法。In a fifth aspect, an embodiment of the present application provides a computer readable storage medium storing one or more programs, where one or more programs include instructions that, when executed by the device, cause the device to perform the first aspect to the first A method of any of the sixth possible implementations of aspects.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
实时的获取iSCSI会话的会话传输速率,在会话传输速率小于预设的传输速率需求值的情况下,在iSCSI会话中增加新的TCP连接,充分利用空闲的传输资源,从而提高iSCSI会话的传输速率。Real-time access to the session transfer rate of the iSCSI session. When the session transfer rate is less than the preset transfer rate requirement, a new TCP connection is added to the iSCSI session to make full use of the idle transmission resources, thereby increasing the transmission rate of the iSCSI session. .
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是现有的一种基于iSCSI协议的传输系统的架构示意图;1 is a schematic structural diagram of a conventional transmission system based on an iSCSI protocol;
图2是本发明实施例提供的一种基于iSCSI协议的传输速率控制方法的流程示意图;2 is a schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention;
图3是本发明实施例提供的一种基于iSCSI协议的传输速率控制方法的另一流程示意图;3 is another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention;
图4是本发明实施例提供的一种基于iSCSI协议的传输速率控制方法的又一流程示意图;FIG. 4 is still another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present disclosure;
图5是本发明实施例提供的一种基于iSCSI协议的传输速率控制装置的结构示意图;5 is a schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention;
图6是本发明实施例提供的一种基于iSCSI协议的传输速率控制装置的另一结构示意图。FIG. 6 is another schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图2,为本发明实施例提供的一种基于iSCSI协议的传输速率控制方法,在本发明实施例中,执行主体为发送端,发送端可以是发起端或目标端,以下发起端进行说明,所述方法包括:2 is a method for controlling a transmission rate based on the iSCSI protocol according to an embodiment of the present invention. In the embodiment of the present invention, an execution entity is a sender, and a sender may be an initiator or a destination. , the method includes:
S201、获取iSCSI会话在当前时刻的会话传输速率。S201. Obtain a session transmission rate of the iSCSI session at the current moment.
具体的,iSCSI会话中包括多个TCP连接,发起端(initiator)通 过iSCSI会话中包括多个TCP连接向目标端(target)传输协议数据单元(PDU,Protocol Data Unit)。当前时刻表示序号为n的时刻,例如,发起端每隔一段时间获取iSCSI会话的会话传输速率,首个获取时刻为时刻1,第2个获取时刻为时刻2,依次类推,第多个获取时刻为当前时刻,其中,发起端获取iSCSI会话的会话传输速率可以是周期性的获取也可以是非周期性的获取,本发明不作限制。优选的,发起端采用周期性的获取iSCSI会话的传输速率,即当前时刻和下一时刻之间的时间间隔是固定值。Specifically, the iSCSI session includes multiple TCP connections, and the initiator is connected. A plurality of TCP connections are included in the iSCSI session to transmit a Protocol Data Unit (PDU) to the target. The current time indicates the time when the sequence number is n. For example, the initiator obtains the session transmission rate of the iSCSI session at intervals. The first acquisition time is time 1, the second acquisition time is time 2, and so on. For the current time, the session transmission rate of the initiating end to obtain the iSCSI session may be a periodic acquisition or an aperiodic acquisition, which is not limited in the present invention. Preferably, the initiator uses a periodic acquisition rate of the iSCSI session, that is, the time interval between the current time and the next time is a fixed value.
S202、判断iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值。S202. Determine whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value.
具体的,传输速率需求值表示iSCSI会话期望达到的传输速率,根据根据需要预先设置具体的传输速率需求值。发起端判断iSCCI会话在当前时刻的会话传输速率和预设的传输速率需求值的大小关系。Specifically, the transmission rate requirement value indicates a transmission rate that the iSCSI session expects to reach, and a specific transmission rate requirement value is set in advance according to requirements. The initiator determines the size relationship between the session transmission rate of the current time and the preset transmission rate requirement value of the iSCCI session.
S203、在判断结果为是的情况下,在iSCSI会话中增加新的TCP连接。S203. If the determination result is yes, add a new TCP connection in the iSCSI session.
具体的,在S102的判断结果为是的情况下,发起端重建一个新的TCP连接,为新的TCP连接分配传输资源,将新的TCP连接加入到iSCSI会话中,以提高iSCSI会话的传输速率。Specifically, in a case where the determination result in S102 is YES, the initiator re-establishes a new TCP connection, allocates a transmission resource for the new TCP connection, and adds a new TCP connection to the iSCSI session to improve the transmission rate of the iSCSI session. .
其中,在S102的判断结果为否的情况下,发起端不增加新的TCP连接,退出iSCSI会话的传输速率控制流程。If the result of the determination in S102 is NO, the originating end does not add a new TCP connection, and exits the transmission rate control procedure of the iSCSI session.
从上述可以看出,实时的获取iSCSI会话的会话传输速率,在会话传输速率小于预设的传输速率需求值的情况下,在iSCSI会话中增加新的TCP连接,充分利用空闲的传输资源,从而提高iSCSI会话的传输速率。As can be seen from the above, the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
参见图3,为本发明实施例提供的一种基于iSCSI协议的传输速率控制方法的另一流程示意图,在本发明实施例中,所述方法包括:FIG. 3 is a schematic flowchart of another method for controlling a transmission rate based on the iSCSI protocol according to an embodiment of the present invention. In the embodiment of the present invention, the method includes:
S301、确定iSCSI会话在当前时刻包括的多个TCP连接。S301. Determine a plurality of TCP connections included in the current time of the iSCSI session.
具体的,iSCSI会话包括多个TCP连接,在不同的时刻,由于传 输的需求不同,iSCSI会话中包括的TCP连接的数量会动态变化,不同的TCP连接具有不同的ID身份标识,发起端可以根据TCP连接的身份标识确定当前时刻iSCSI会话包括的多个TCP连接。Specifically, the iSCSI session includes multiple TCP connections, at different times, due to The number of TCP connections included in the iSCSI session varies dynamically. Different TCP connections have different ID identities. The initiator can determine the multiple TCP connections included in the iSCSI session at the current time according to the identity of the TCP connection.
S302、根据至少两个确认报文的序列号和时间戳分别计算多个TCP连接各自在当前时刻对应的TCP传输速率。S302. Calculate, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the plurality of TCP connections at the current time.
具体的,发起端计算iSCSI会话包括的多个TCP连接各自对应的TCP传输速率,计算一个TCP连接的TCP传输速率的方法可以是:发起端对待发送的协议数据单元PDU进行编号,发起端通过TCP连接向目的端发送协议数据单元时,协议数据单元中携带序列号,目的端通过该TCP连接成功接收该协议数据单元时,目的端获取协议数据单元中携带的序列号,向发起端返回携带该序列号的应答报文,发起端接收该应答报文,记录接收到该应答报文的时间戳,获取该应答报文中携带的序列号。发起端通过接收至少两个应答报文,获取各个应答报文对应的时间戳和序列号,根据时间戳和序列号计算该TCP连接在当前时刻的TCP传输速率:Sn=(ACKn-ACKn-1)/(Tn-Tn-1),ACKn表示当前时刻接收的应答报文的序列号,ACKn-1表示上一时刻接收的应答报文的序列号,Tn表示当前时刻接收的应答报文的时间戳,Tn-1表示上一时刻接收的应答报文的时间戳,Sn表示该TCP连接在当前时刻的TCP传输速率,上述举例是根据两个连续接收的应答报文的序列号和时间戳计算当前时刻TCP连接的TCP传输速率,但是TCP传输速率的计算方法并不限于此,例如,发起端可以根据两个以上的应答报文的序列号和时间戳计算TCP连接的TCP传输速率,以接收的两个应答报文为一组,按照上述公式进行计算,将计算得到的多组TCP传输速率进行加权平均后得到该TCP连接在当前时刻的TCP传输速率。Specifically, the initiator calculates a TCP transmission rate corresponding to each of the multiple TCP connections included in the iSCSI session, and the method for calculating the TCP transmission rate of the TCP connection may be: the initiator sends the protocol data unit PDU to be sent, and the initiator passes the TCP. When the connection sends the protocol data unit to the destination end, the protocol data unit carries the sequence number. When the destination end successfully receives the protocol data unit through the TCP connection, the destination end acquires the sequence number carried in the protocol data unit, and returns to the initiator to carry the sequence number. The response packet of the sequence number is received by the initiator, and the timestamp of the response packet is received, and the sequence number carried in the response packet is obtained. The initiator receives the at least two response messages, obtains the timestamp and sequence number corresponding to each response message, and calculates the TCP transmission rate of the TCP connection at the current time according to the timestamp and the sequence number: S n =(ACK n -ACK N-1 )/(T n -T n-1 ), ACK n represents the sequence number of the response message received at the current time, ACK n-1 represents the sequence number of the response message received at the previous time, and T n represents the current time stamp the received response packet, T n-1 denotes a timing of receiving the response message timestamp, S n represents the current time of the TCP connection is a TCP transmission rate, the above example is based on two consecutive received The sequence number and the timestamp of the response packet are used to calculate the TCP transmission rate of the TCP connection at the current time. However, the calculation method of the TCP transmission rate is not limited thereto. For example, the initiator may use the sequence number and time stamp of two or more response packets. The TCP transmission rate of the TCP connection is calculated, and the two response packets received are grouped according to the above formula, and the calculated plurality of sets of TCP transmission rates are weighted and averaged to obtain the TCP transmission speed of the TCP connection at the current time. rate.
S303、将多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到iSCSI会话在当前时刻的会话传输速率。S303. A plurality of TCP connections are respectively summed at a current TCP transmission rate at the current time to obtain a session transmission rate of the iSCSI session at the current time.
具体的,发起端根据S302的方法计算得到iSCSI会话中包括的各个TCP连接的TCP传输速率,将各个TCP传输速率进行求和后得 到iSCSI会话在当前时刻的TCP传输速率。Specifically, the initiator calculates the TCP transmission rate of each TCP connection included in the iSCSI session according to the method of S302, and obtains the TCP transmission rates after summing each TCP transmission rate. The TCP transfer rate to the iSCSI session at the current time.
S304、对iSCSI会话在当前时刻的会话传输速率进行平滑处理。S304. Smooth the session transmission rate of the iSCSI session at the current time.
具体的,由于应答报文的延时确认机制、网络拥塞等原因,发起端在当前时刻计算出来的iSCSI会话的会话传输速率存在波动大的问题,为了使计算出来的会话传输速率便于处理,发起端引入iSCSI会话历史的会话传输速率对当前时刻的会话传输速率进行平滑处理。平滑处理的方式可以是:根据公式α×Sn-1+β×Sn对iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为iSCSI会话当前时刻的会话传输速率,Sn-1为所述iSCSI会话在上一时刻的会话传输速率,α和β的值可以根据需要进行调整,本发明不作限制。例如,α=0.9,β=0.1。Specifically, the session transmission rate of the iSCSI session calculated by the initiator at the current time has a large fluctuation due to the delay confirmation mechanism of the response packet and the network congestion. In order to facilitate the calculation of the calculated session transmission rate, the initiation is initiated. The session transmission rate of the iSCSI session history is introduced to smooth the session transmission rate at the current time. The smoothing process may be: smoothing the session transmission rate of the iSCSI session at the current time according to the formula α×S n-1 +β×S n ; wherein α and β are constants greater than 0, α+β=1 S n is the session transmission rate of the current time of the iSCSI session, and S n-1 is the session transmission rate of the iSCSI session at the last moment. The values of α and β can be adjusted as needed, which is not limited in the present invention. For example, α = 0.9 and β = 0.1.
S305、对iSCSI会话在当前时刻的会话传输速率与上一时刻的会话传输相比是否增加。S305. Whether the session transmission rate of the iSCSI session at the current time is increased compared to the session transmission at the previous moment.
具体的,iSCSI会话在当前时刻的会话传输速率和上一时刻的会话传输速率为经过S304平滑处理后的会话传输速率,也可以是不经过平滑处理的会话传输速率,发起端判断iSCSI会话在当前时刻的会话传输速率与上一时刻的会话传输速率相比是否增加,如果判断结果为是,表明iSCSI会话的会话传输速率具有进一步增加的可能性,执行S306;如果判断结果为否,表明iSCSI会话的会话传输速率没有进一步增加的可能性,执行S307。Specifically, the session transmission rate of the iSCSI session at the current moment and the session transmission rate of the previous moment are the session transmission rate after smoothing by S304, or the session transmission rate without smoothing, and the initiator determines that the iSCSI session is currently Whether the session transmission rate of the moment increases compared with the session transmission rate of the previous moment. If the judgment result is yes, indicating that the session transmission rate of the iSCSI session has a possibility of further increase, perform S306; if the judgment result is no, indicate the iSCSI session. The session transmission rate has no possibility of further increase, and S307 is performed.
S306、iSCSI会话在当前时刻的传输速率是否小于预设的传输速率需求值。S306. Whether the transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value.
具体的,传输速率需求值为设置的iSCSI会话的会话传输速率的期望值,可以根据需要预设设置具体的值。发起端判断S304得到的iSCSI会话在当前时刻的传输速率是否小于预设的传输速率需求值,如果判断结果为是,表明iSCSI会话在当前时刻的会话传输速率未达到期望值,需要进一步提高其会话传输速率;如果判断结果为否,达到期望值。Specifically, the transmission rate requirement value is an expected value of the session transmission rate of the set iSCSI session, and a specific value may be preset according to requirements. The initiator determines whether the transmission rate of the iSCSI session obtained at S304 is less than the preset transmission rate requirement value. If the determination result is yes, indicating that the session transmission rate of the iSCSI session at the current time does not reach the expected value, the session transmission needs to be further improved. Rate; if the result of the judgment is no, the expected value is reached.
S307、停止在iSCSI会话中增加TCP连接。 S307. Stop adding a TCP connection in the iSCSI session.
具体的,在iSCSI会话中增加TCP连接的目的在于提高iSCSI会话的会话传输速率,iSCSI会话在当前时刻的会话传输速率和上一时刻的会话传输速率相比没有增加,表明网络带宽已饱和,继续向iSCSI会话中增加TCP连接并不会增加其会话传输速率,发起端此时停止向iSCSI会话中增加新的TCP连接;或者,iSCSI会话的会话传输速率已经达到预设的传输速率需求值,此时发起端也会停止向iSCSI会话中增加新的TCP连接。Specifically, the purpose of adding a TCP connection in an iSCSI session is to increase the session transmission rate of the iSCSI session. The session transmission rate of the iSCSI session at the current time does not increase compared with the session transmission rate at the previous moment, indicating that the network bandwidth is saturated, and continues. Adding a TCP connection to an iSCSI session does not increase its session transfer rate. The initiator stops adding a new TCP connection to the iSCSI session at this time. Or, the session transfer rate of the iSCSI session has reached the preset transmission rate requirement. The initiator also stops adding new TCP connections to the iSCSI session.
S308、在iSCSI会话中增加新的TCP连接。S308. Add a new TCP connection in the iSCSI session.
其中,S301-S308为循环执行的步骤,发起端周期性的执行S301和S308的步骤,直到退出流程。发起端确定需要在iSCSI会话中增加新的TCP连接时,发起端建立新的TCP连接,为建立的新的TCP连接分配传输资源,将新的TCP连接加入到iSCSI会话中,增加新的TCP连接后,iSCSI会话中TCP连接的数量增加,在下一时刻达到时,发起端继续根据上述描述执行S301-S308。S301-S308 is a step of cyclic execution, and the initiator periodically performs the steps of S301 and S308 until the process is exited. When the initiator determines that a new TCP connection needs to be added in the iSCSI session, the initiator establishes a new TCP connection, allocates transmission resources for the established new TCP connection, adds the new TCP connection to the iSCSI session, and adds a new TCP connection. Thereafter, the number of TCP connections in the iSCSI session increases, and when the next time is reached, the initiator continues to perform S301-S308 according to the above description.
从上述可以看出,实时的获取iSCSI会话的会话传输速率,在会话传输速率小于预设的传输速率需求值的情况下,在iSCSI会话中增加新的TCP连接,充分利用空闲的传输资源,从而提高iSCSI会话的传输速率。As can be seen from the above, the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
参见图4,为本发明实施例提供的一种基于iSCSI协议的传输速率控制方法的又一流程示意图,在本发明实施例中,所述方法包括:FIG. 4 is still another schematic flowchart of a method for controlling a transmission rate based on an iSCSI protocol according to an embodiment of the present invention. In the embodiment of the present invention, the method includes:
S401、确定iSCSI会话在当前时刻包括的多个TCP连接。S401. Determine a plurality of TCP connections included in the current time of the iSCSI session.
具体的,iSCSI会话包括多个TCP连接,在不同的时刻,由于传输的需求不同,iSCSI会话中包括的TCP连接的数量会动态变化,不同的TCP连接具有不同的ID身份标识,发起端可以根据TCP连接的身份标识确定当前时刻iSCSI会话包括的多个TCP连接。Specifically, the iSCSI session includes multiple TCP connections. At different times, the number of TCP connections included in the iSCSI session changes dynamically due to different transmission requirements. Different TCP connections have different ID identities, and the initiator can be based on The identity of the TCP connection determines the number of TCP connections included in the iSCSI session at the current time.
S402、根据至少两个确认报文的序列号和时间戳分别计算多个TCP连接各自在当前时刻对应的TCP传输速率。S402. Calculate, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the plurality of TCP connections at the current time.
具体的,发起端计算iSCSI会话包括的多个TCP连接各自对应的TCP传输速率,计算一个TCP连接的TCP传输速率的方法可以是: 发起端对待发送的协议数据单元PDU进行编号,发起端通过TCP连接向目的端发送协议数据单元时,协议数据单元中携带序列号,目的端通过该TCP连接成功接收该协议数据单元时,目的端获取协议数据单元中携带的序列号,向发起端返回携带该序列号的应答报文,发起端接收该应答报文,记录接收到该应答报文的时间戳,获取该应答报文中携带的序列号。发起端通过接收至少两个应答报文,获取各个应答报文对应的时间戳和序列号,根据时间戳和序列号计算该TCP连接在当前时刻的TCP传输速率:Sn=(ACKn-ACKn-1)/(Tn-Tn-1),ACKn表示当前时刻接收的应答报文的序列号,ACKn-1表示上一时刻接收的应答报文的序列号,Tn表示当前时刻接收的应答报文的时间戳,Tn-1表示上一时刻接收的应答报文的时间戳,Sn表示该TCP连接在当前时刻的TCP传输速率,上述举例是根据两个连续接收的应答报文的序列号和时间戳计算当前时刻TCP连接的TCP传输速率,但是TCP传输速率的计算方法并不限于此,例如,发起端可以根据两个以上的应答报文的序列号和时间戳计算TCP连接的TCP传输速率,以接收的两个应答报文为一组,按照上述公式进行计算,将计算得到的多组TCP传输速率进行加权平均后得到该TCP连接在当前时刻的TCP传输速率。Specifically, the initiator calculates a TCP transmission rate corresponding to each of the multiple TCP connections included in the iSCSI session, and the method for calculating the TCP transmission rate of the TCP connection may be: the initiator sends the protocol data unit PDU to be sent, and the initiator transmits the TCP. When the connection sends the protocol data unit to the destination end, the protocol data unit carries the sequence number. When the destination end successfully receives the protocol data unit through the TCP connection, the destination end acquires the sequence number carried in the protocol data unit, and returns to the initiator to carry the sequence number. The response packet of the sequence number is received by the initiator, and the timestamp of the response packet is received, and the sequence number carried in the response packet is obtained. The initiator receives the at least two response messages, obtains the timestamp and sequence number corresponding to each response message, and calculates the TCP transmission rate of the TCP connection at the current time according to the timestamp and the sequence number: S n =(ACK n -ACK N-1 )/(T n -T n-1 ), ACK n represents the sequence number of the response message received at the current time, ACK n-1 represents the sequence number of the response message received at the previous time, and T n represents the current time stamp the received response packet, T n-1 denotes a timing of receiving the response message timestamp, S n represents the current time of the TCP connection is a TCP transmission rate, the above example is based on two consecutive received The sequence number and the timestamp of the response packet are used to calculate the TCP transmission rate of the TCP connection at the current time. However, the calculation method of the TCP transmission rate is not limited thereto. For example, the initiator may use the sequence number and time stamp of two or more response packets. The TCP transmission rate of the TCP connection is calculated, and the two response packets received are grouped according to the above formula, and the calculated plurality of sets of TCP transmission rates are weighted and averaged to obtain the TCP transmission speed of the TCP connection at the current time. rate.
S403、将多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到iSCSI会话在当前时刻的会话传输速率。S403. A plurality of TCP connections are respectively summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate of the iSCSI session at the current time.
具体的,发起端根据S402的方法计算得到iSCSI会话中包括的各个TCP连接的TCP传输速率,将各个TCP传输速率进行求和后得到iSCSI会话在当前时刻的TCP传输速率。Specifically, the initiator calculates the TCP transmission rate of each TCP connection included in the iSCSI session according to the method of S402, and sums the respective TCP transmission rates to obtain the TCP transmission rate of the iSCSI session at the current time.
S404、iSCSI会话在当前时刻的会话传输速率是否继续降低。S404. Whether the session transmission rate of the iSCSI session continues to decrease at the current time.
具体的,iSCSI会话中包括的多个TCP连接可能是在系统的负荷降低时创建的,占用了较多的传输资源,此时如果需要创建新的iSCSI会话,新的iSCSI会话可能会分配不动足够多的传输资源,这种情况下需要将原来的iSCSI会话中的部分TCP连接进行移除,使原来的iSCSI会话的传输速率需求值由R1降低至R2,R1>R2。 Specifically, multiple TCP connections included in an iSCSI session may be created when the system load is reduced, which occupies more transmission resources. If a new iSCSI session needs to be created, the new iSCSI session may be allocated. Sufficient transmission resources. In this case, some TCP connections in the original iSCSI session need to be removed, so that the transmission rate requirement of the original iSCSI session is reduced from R1 to R2, and R1>R2.
iSCSI会话的发起端判断iSCSI会话在当前时刻的传输速率是否需要降低,如果判断结果为是,执行S405,如果判断结果为否,执行S407。发起端判断当前时刻的会话传输速率是否需要降低的方法是:判断iSCSI会话在当前时刻的会话传输速率是否小于R2或所述iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于所述iSCSI会话中包括的任意一个TCP连接的TCP传输速率;若为是,iSCSI会话在当前时刻的会话传输速率已满足传输速率需求值R2的要求不需要调节所述iSCSI会话的会话传输速率;若为否,iSCSI会话在当前时刻的会话传输速率不满足传输速率需求值R2的要求,需要调节iSCSI会话的会话传输速率。The initiator of the iSCSI session determines whether the transmission rate of the iSCSI session at the current time needs to be lowered. If the determination result is yes, S405 is performed, and if the determination result is no, S407 is performed. The method for determining whether the session transmission rate of the current time needs to be reduced is: determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than the The TCP transmission rate of any one of the TCP connections included in the iSCSI session; if yes, the session transmission rate of the iSCSI session at the current time has met the requirement of the transmission rate requirement value R2, and does not need to adjust the session transmission rate of the iSCSI session; No, the session transmission rate of the iSCSI session at the current time does not meet the requirement of the transmission rate requirement value R2, and the session transmission rate of the iSCSI session needs to be adjusted.
S405、在iSCSI会话中选择一个TCP连接进行移除。S405. Select a TCP connection in the iSCSI session to remove.
具体的,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从所述iSCSI会话中移除T=R1-R2。Specifically, the TCP connection that minimizes the absolute value of the difference between the TCP transmission rate and the T at the current time is removed from the iSCSI session by T=R1-R2.
S406、释放移除的TCP连接占用的传输资源。S406. Release the transmission resource occupied by the removed TCP connection.
具体的,传输资源包括CPU资源、内存资源和带宽资源中的一种或多种。Specifically, the transmission resource includes one or more of a CPU resource, a memory resource, and a bandwidth resource.
S407、停止移除iSCSI会话中包括的TCP连接。S407. Stop removing the TCP connection included in the iSCSI session.
从上述可以看出,实时的获取iSCSI会话的会话传输速率,在会话传输速率小于预设的传输速率需求值的情况下,在iSCSI会话中增加新的TCP连接,充分利用空闲的传输资源,从而提高iSCSI会话的传输速率。As can be seen from the above, the session transmission rate of the iSCSI session is obtained in real time, and when the session transmission rate is less than the preset transmission rate requirement value, a new TCP connection is added in the iSCSI session, and the idle transmission resource is fully utilized. Increase the transfer rate of iSCSI sessions.
可选,在本发明的一些实施例中,获取在当前时刻的负荷参数值;Optionally, in some embodiments of the present invention, acquiring a load parameter value at a current time;
在所述负荷参数值大于预设值的情况下,减小所述预设的传输速率需求值;When the load parameter value is greater than a preset value, reducing the preset transmission rate demand value;
在所述负荷参数值小于或等于所述预设值的情况下,增加所述预设的传输速率需求值。And adding, in the case that the load parameter value is less than or equal to the preset value, the preset transmission rate requirement value.
其中,负荷参数值表示系统的负荷程度的参数值,负荷参数值的大小和负荷程度呈正相关性,在负荷参数值大于预设值的情况下,发起端需要降低iSCSI会话的会话传输速率,减小该iSCSI会话对应的 传输速率需求值,以减轻系统的负荷程度,在负荷参数值小于或等于预设值的情况下,发起端需要提高iSCSI会话的传输速率,增加预设的传输速率需求值,以提高系统传输资源的利用率。在更改该iSCSI会话的传输速率需求值后,按照上述实施例的方法使该iSCSI会话的传输速率达到调节后的传输速率需求值。Wherein, the load parameter value indicates the parameter value of the load degree of the system, and the magnitude of the load parameter value and the load degree are positively correlated. When the load parameter value is greater than the preset value, the initiator needs to reduce the session transmission rate of the iSCSI session, minus Small corresponding to the iSCSI session The transmission rate requirement value is used to reduce the load of the system. When the load parameter value is less than or equal to the preset value, the initiator needs to increase the transmission rate of the iSCSI session and increase the preset transmission rate requirement value to improve the system transmission resource. Utilization. After changing the transmission rate requirement value of the iSCSI session, the transmission rate of the iSCSI session is adjusted to the adjusted transmission rate requirement value according to the method of the foregoing embodiment.
参见图5,为本发明实施例提供的一种基于iSCSI协议的传输速率控制装置的结构示意图,以下简称装置,本发明实施例的装置用于执行图1所示的一种基于基于iSCSI协议的传输速率控制方法,其中所涉及的示例和术语可参照图2的描述。装置5包括:获取模块501、第一判断模块502和调节模块503。5 is a schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention. Hereinafter, the apparatus is used to perform an iSCSI-based protocol shown in FIG. 1 . A transmission rate control method, in which the examples and terms involved may refer to the description of FIG. 2. The device 5 includes an acquisition module 501, a first determination module 502, and an adjustment module 503.
获取模块501,用于获取iSCSI会话在当前时刻的会话传输速率。The obtaining module 501 is configured to obtain a session transmission rate of the iSCSI session at the current moment.
第一判断模块502,用于判断所述获取模块获取的会话传输速率是否小于预设的传输速率需求值。The first determining module 502 is configured to determine whether the session transmission rate obtained by the acquiring module is less than a preset transmission rate requirement value.
调节模块503,用于若所述第一判断模块的判断结果为是,在所述iSCSI会话中增加新的TCP连接。The adjusting module 503 is configured to add a new TCP connection in the iSCSI session if the determining result of the first determining module is yes.
本发明实施例和方法实施例一基于同一构思,其带来的技术效果也相同,具体原理可参照图2方法实施例一的描述,此处不再赘述。The embodiment of the present invention and the method embodiment 1 are based on the same concept, and the technical effects thereof are also the same. For the specific principle, reference may be made to the description of the method embodiment 1 in FIG. 2, and details are not described herein again.
可选的,装置5还包括:第一判断模块。Optionally, the device 5 further includes: a first determining module.
第二判断模块,用于判断所述iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,a second determining module, configured to determine whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time,
若所述第二判断模块的判断结果为是,指示所述第一判断模块开始工作。If the determination result of the second determining module is yes, the first determining module is instructed to start working.
可选的,获取模块501用于:Optionally, the obtaining module 501 is configured to:
确定所述iSCSI会话包括的多个TCP连接;Determining a plurality of TCP connections included in the iSCSI session;
根据至少两个确认报文的序列号和时间戳分别计算所述多个TCP连接各自在当前时刻对应的TCP传输速率;Calculating, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the multiple TCP connections at the current time;
将所述多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到所述iSCSI会话在当前时刻的会话传输速率SnThe plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
可选的,装置5还包括:平滑处理模块。 Optionally, the device 5 further includes: a smoothing processing module.
平滑处理模块,用于根据公式α×Sn-1+β×Sn对所述iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为所述iSCSI会话当前时刻的会话传输速率,Sn-1为所述iSCSI会话在上一时刻的会话传输速率。a smoothing processing module, configured to smooth a session transmission rate of the iSCSI session at a current time according to a formula α×S n-1 +β×S n ; wherein α and β are constants greater than 0, α+β= 1, S n is the session transmission rate of the current moment of the iSCSI session, and Sn -1 is the session transmission rate of the iSCSI session at the previous moment.
可选的,装置5还包括:降速模块。Optionally, the device 5 further includes: a speed reduction module.
降速模块,用于判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低;其中,所述iSCSI会话对应的传输速率需求值预先由R1降低至R2;a speed reduction module, configured to determine whether the session transmission rate of the iSCSI session continues to decrease at a current time; wherein, the transmission rate requirement value corresponding to the iSCSI session is previously reduced from R1 to R2;
若为是,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从所述iSCSI会话中移除,并释放所述移除的TCP连接占用的传输资源;T=R1-R2。If yes, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session, and the transmission resource occupied by the removed TCP connection is released; T=R1 -R2.
可选的,降速模块用于:Optionally, the speed reduction module is used to:
判断所述iSCSI会话在当前时刻的会话传输速率是否小于R2或所述iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于所述iSCSI会话中包括的任意一个TCP连接的TCP传输速率;Determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than a TCP transmission rate of any one of the TCP connections included in the iSCSI session;
若为是,不需要降低所述iSCSI会话的会话传输速率;If yes, there is no need to reduce the session transfer rate of the iSCSI session;
若为否,需要降低所述iSCSI会话的会话传输速率。If not, the session transfer rate of the iSCSI session needs to be reduced.
可选的,装置5还包括:阈值调节模块。Optionally, the device 5 further includes: a threshold adjustment module.
阈值调节模块,用于获取在当前时刻的负荷参数值;在所述负荷参数值大于预设值的情况下,减小所述预设的传输速率需求值;在所述负荷参数值小于或等于所述预设值的情况下,增加所述预设的传输速率需求值。a threshold adjustment module, configured to acquire a load parameter value at a current time; and if the load parameter value is greater than a preset value, reduce the preset transmission rate demand value; where the load parameter value is less than or equal to In the case of the preset value, the preset transmission rate demand value is increased.
本发明实施例和方法实施例二和三基于同一构思,其带来的技术效果也相同,具体原理可参照方法图3和图4实施例的描述,此处不再赘述。Embodiments 2 and 3 of the present invention are based on the same concept, and the technical effects thereof are also the same. For the specific principles, reference may be made to the description of the embodiment of FIG. 3 and FIG. 4, and details are not described herein again.
参见图6,为本发明实施例提供的一种基于iSCSI协议的传输速率控制装置的另一结构示意图,以下简称装置,装置6包括处理器601、存储器602和收发器603。收发器603用于与外部设备之间收发数据。装置6中的处理器601的数量可以是一个或多个。本发明的 一些实施例中,处理器601、存储器602和收发器603可通过总线系统或其他方式连接。装置6可以用于执行图2所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图2对应的实施例。此处不再赘述。FIG. 6 is another schematic structural diagram of a transmission rate control apparatus based on an iSCSI protocol according to an embodiment of the present invention. Hereinafter, the apparatus 6 includes a processor 601, a memory 602, and a transceiver 603. The transceiver 603 is configured to transmit and receive data with and from an external device. The number of processors 601 in device 6 may be one or more. The invention In some embodiments, processor 601, memory 602, and transceiver 603 can be connected by a bus system or other means. Apparatus 6 can be used to perform the method illustrated in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 2. I will not repeat them here.
其中,存储器602中存储程序代码。处理器601用于调用存储器602中存储的程序代码,用于执行以下操作:The program code is stored in the memory 602. The processor 601 is configured to call the program code stored in the memory 602 for performing the following operations:
获取iSCSI会话在当前时刻的会话传输速率;Obtain the session transmission rate of the iSCSI session at the current time;
判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值;Determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value;
若为是,在所述iSCSI会话中增加新的TCP连接。If so, add a new TCP connection to the iSCSI session.
在本发明的一些实施例中,处理器601执行所述判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值之前,还用于执行:In some embodiments of the present invention, the processor 601 performs the determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value, and is further configured to:
判断所述iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,Determining whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time,
若为是,执行所述判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值的步骤。If yes, performing the step of determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value.
在本发明的一些实施例中,处理器601执行所述获取iSCSI会话在当前时刻的会话传输速率包括:In some embodiments of the present invention, the performing, by the processor 601, the session transmission rate of the acquiring the iSCSI session at the current moment includes:
确定所述iSCSI会话包括的多个TCP连接;Determining a plurality of TCP connections included in the iSCSI session;
根据至少两个确认报文的序列号和时间戳分别计算所述多个TCP连接各自在当前时刻对应的TCP传输速率;Calculating, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the multiple TCP connections at the current time;
将所述多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到所述iSCSI会话在当前时刻的会话传输速率SnThe plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
在本发明的一些实施例中,处理器601执行所述获取iSCSI会话在当前时刻的会话传输速率之后,还用于执行:In some embodiments of the present invention, the processor 601 performs the acquiring the iSCSI session at the current time of the session transmission rate, and is further configured to:
根据公式α×Sn-1+β×Sn对所述iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为所述iSCSI会话当前时刻的会话传输速率,Sn-1为所述iSCSI会话在 上一时刻的会话传输速率。Smoothing the session transmission rate of the iSCSI session at the current time according to the formula α×S n-1 +β×S n ; wherein α and β are constants greater than 0, α+β=1, and S n is The session transmission rate of the iSCSI session at the current moment, and Sn -1 is the session transmission rate of the iSCSI session at the previous moment.
在本发明的一些实施例中,处理器601还用于执行:In some embodiments of the present invention, the processor 601 is further configured to:
判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低;其中,所述iSCSI会话对应的传输速率需求值预先由R1降低至R2;Determining whether the session transmission rate of the iSCSI session continues to decrease at the current time; wherein the transmission rate requirement value corresponding to the iSCSI session is previously lowered from R1 to R2;
若为是,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从所述iSCSI会话中移除,并释放所述移除的TCP连接占用的传输资源;T=R1-R2。If yes, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session, and the transmission resource occupied by the removed TCP connection is released; T=R1 -R2.
在本发明的一些实施例中,处理器601执行所述判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低包括:In some embodiments of the present invention, the processor 601 performing the determining whether the session transmission rate of the iSCSI session at the current moment continues to decrease includes:
判断所述iSCSI会话在当前时刻的会话传输速率是否小于R2或所述iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于所述iSCSI会话中包括的任意一个TCP连接的TCP传输速率;Determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than a TCP transmission rate of any one of the TCP connections included in the iSCSI session;
若为是,不需要降低所述iSCSI会话的会话传输速率;If yes, there is no need to reduce the session transfer rate of the iSCSI session;
若为否,需要降低所述iSCSI会话的会话传输速率。If not, the session transfer rate of the iSCSI session needs to be reduced.
在本发明的一些实施例中,处理器601还用于执行:In some embodiments of the present invention, the processor 601 is further configured to:
获取在当前时刻的负荷参数值;Obtain the load parameter value at the current time;
在所述负荷参数值大于预设值的情况下,减小所述预设的传输速率需求值;When the load parameter value is greater than a preset value, reducing the preset transmission rate demand value;
在所述负荷参数值小于或等于所述预设值的情况下,增加所述预设的传输速率需求值。And adding, in the case that the load parameter value is less than or equal to the preset value, the preset transmission rate requirement value.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (14)

  1. 一种基于iSCSI协议的传输速率控制方法,其特征在于,包括:A transmission rate control method based on the iSCSI protocol, comprising:
    获取互联网小型计算机系统接口iSCSI会话在当前时刻的会话传输速率;Obtaining the session transmission rate of the iSCSI session of the Internet small computer system interface at the current time;
    判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值;Determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value;
    若为是,在所述iSCSI会话中增加新的传输控制协议TCP连接。If so, a new Transmission Control Protocol TCP connection is added to the iSCSI session.
  2. 如权利要求1所述的方法,其特征在于,所述判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值之前,还包括:The method of claim 1, wherein the determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value further includes:
    判断所述iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,Determining whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time,
    若为是,执行所述判断所述iSCSI会话在当前时刻的会话传输速率是否小于预设的传输速率需求值的步骤。If yes, performing the step of determining whether the session transmission rate of the iSCSI session at the current time is less than a preset transmission rate requirement value.
  3. 如权利要求1或2所述的方法,其特征在于,所述获取互联网小型计算机系统接口iSCSI会话在当前时刻的会话传输速率包括:The method according to claim 1 or 2, wherein the obtaining the session transmission rate of the Internet small computer system interface iSCSI session at the current time comprises:
    确定所述iSCSI会话包括的多个TCP连接;Determining a plurality of TCP connections included in the iSCSI session;
    根据至少两个确认报文的序列号和时间戳分别计算所述多个TCP连接各自在当前时刻对应的TCP传输速率;Calculating, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the multiple TCP connections at the current time;
    将所述多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到所述iSCSI会话在当前时刻的会话传输速率SnThe plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
  4. 如权利要求3所述的方法,其特征在于,所述获取互联网小型计算机系统接口iSCSI会话在当前时刻的会话传输速率之后,还包括: The method of claim 3, wherein the obtaining the Internet small computer system interface iSCSI session after the current session transmission rate further comprises:
    根据公式α×Sn-1+β×Sn对所述iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为所述iSCSI会话当前时刻的会话传输速率,Sn-1为所述iSCSI会话在上一时刻的会话传输速率。Smoothing the session transmission rate of the iSCSI session at the current time according to the formula α×S n-1 +β×S n ; wherein α and β are constants greater than 0, α+β=1, and S n is The session transmission rate of the iSCSI session at the current moment, and Sn -1 is the session transmission rate of the iSCSI session at the previous moment.
  5. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低;其中,所述iSCSI会话对应的传输速率需求值预先由R1降低至R2;Determining whether the session transmission rate of the iSCSI session continues to decrease at the current time; wherein the transmission rate requirement value corresponding to the iSCSI session is previously lowered from R1 to R2;
    若为是,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从所述iSCSI会话中移除,并释放所述移除的TCP连接占用的传输资源;T=R1-R2。If yes, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session, and the transmission resource occupied by the removed TCP connection is released; T=R1 -R2.
  6. 如权利要求5所述的方法,其特征在于,所述判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低包括:The method of claim 5, wherein the determining whether the session transmission rate of the iSCSI session at the current time continues to decrease comprises:
    判断所述iSCSI会话在当前时刻的会话传输速率是否小于R2或所述iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于所述iSCSI会话中包括的任意一个TCP连接的TCP传输速率;Determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than a TCP transmission rate of any one of the TCP connections included in the iSCSI session;
    若为是,不需要降低所述iSCSI会话的会话传输速率;If yes, there is no need to reduce the session transfer rate of the iSCSI session;
    若为否,需要降低所述iSCSI会话的会话传输速率。If not, the session transfer rate of the iSCSI session needs to be reduced.
  7. 如权利要求1-6任意一项所述的方法,其特征在于,还包括:The method of any of claims 1-6, further comprising:
    获取在当前时刻的负荷参数值;Obtain the load parameter value at the current time;
    在所述负荷参数值大于预设值的情况下,减小所述预设的传输速率需求值;When the load parameter value is greater than a preset value, reducing the preset transmission rate demand value;
    在所述负荷参数值小于或等于所述预设值的情况下,增加所述预设的传输速率需求值。And adding, in the case that the load parameter value is less than or equal to the preset value, the preset transmission rate requirement value.
  8. 一种基于iSCSI协议的传输速率控制装置,其特征在于,包括: A transmission rate control device based on the iSCSI protocol, comprising:
    获取模块,用于获取iSCSI会话在当前时刻的会话传输速率;An obtaining module, configured to acquire a session transmission rate of an iSCSI session at a current time;
    第一判断模块,用于判断所述获取模块获取的会话传输速率是否小于预设的传输速率需求值;a first determining module, configured to determine whether a session transmission rate obtained by the acquiring module is less than a preset transmission rate requirement value;
    调节模块,用于若所述第一判断模块的判断结果为是,在所述iSCSI会话中增加新的TCP连接。And an adjustment module, configured to add a new TCP connection in the iSCSI session if the determination result of the first determining module is yes.
  9. 如权利要求8所述的装置,其特征在于,还包括:The device of claim 8 further comprising:
    第二判断模块,用于判断所述iSCSI会话在当前时刻的会话传输速率与上一时刻相比是否增加,a second determining module, configured to determine whether the session transmission rate of the iSCSI session at the current time is increased compared with the previous time,
    若所述第二判断模块的判断结果为是,指示所述第一判断模块开始工作。If the determination result of the second determining module is yes, the first determining module is instructed to start working.
  10. 如权利要求8或9所述的方法,其特征在于,所述获取模块用于:The method according to claim 8 or 9, wherein the obtaining module is configured to:
    确定所述iSCSI会话包括的多个TCP连接;Determining a plurality of TCP connections included in the iSCSI session;
    根据至少两个确认报文的序列号和时间戳分别计算所述多个TCP连接各自在当前时刻对应的TCP传输速率;Calculating, according to a sequence number and a timestamp of the at least two acknowledgement messages, a TCP transmission rate corresponding to each of the multiple TCP connections at the current time;
    将所述多个TCP连接各自在当前时刻对应的TCP传输速率进行求和得到所述iSCSI会话在当前时刻的会话传输速率SnThe plurality of TCP connections are each summed at a current TCP transmission rate corresponding to the current time to obtain a session transmission rate S n of the iSCSI session at the current time.
  11. 如权利要求10所述的方法,其特征在于,还包括:The method of claim 10, further comprising:
    平滑处理模块,用于根据公式α×Sn-1+β×Sn对所述iSCSI会话在当前时刻的会话传输速率进行平滑处理;其中,α和β为大于0的常数,α+β=1,Sn为所述iSCSI会话当前时刻的会话传输速率,Sn-1为所述iSCSI会话在上一时刻的会话传输速率。a smoothing processing module, configured to smooth a session transmission rate of the iSCSI session at a current time according to a formula α×S n-1 +β×S n ; wherein α and β are constants greater than 0, α+β= 1, S n is the session transmission rate of the current moment of the iSCSI session, and Sn -1 is the session transmission rate of the iSCSI session at the previous moment.
  12. 如权利要求8所述的装置,其特征在于,还包括:The device of claim 8 further comprising:
    降速模块,用于判断所述iSCSI会话在当前时刻的会话传输速率是否继续降低;其中,所述iSCSI会话对应的传输速率需求值预先由 R1降低至R2;a speed reduction module, configured to determine whether a session transmission rate of the iSCSI session continues to decrease at a current time; wherein, the transmission rate requirement value corresponding to the iSCSI session is pre- R1 is reduced to R2;
    若为是,将在当前时刻的TCP传输速率与T的差值的绝对值最小的TCP连接从所述iSCSI会话中移除,并释放所述移除的TCP连接占用的传输资源;T=R1-R2。If yes, the TCP connection with the smallest absolute value of the difference between the TCP transmission rate and the T at the current moment is removed from the iSCSI session, and the transmission resource occupied by the removed TCP connection is released; T=R1 -R2.
  13. 如权利要求12所述的装置,其特征在于,所述降速模块用于:The apparatus of claim 12 wherein said speed reduction module is for:
    判断所述iSCSI会话在当前时刻的会话传输速率是否小于R2或所述iSCSI会话在当前时刻的会话传输速率与R2的差值是否小于所述iSCSI会话中包括的任意一个TCP连接的TCP传输速率;Determining whether the session transmission rate of the iSCSI session at the current time is less than R2 or whether the difference between the session transmission rate and the R2 of the iSCSI session at the current time is less than a TCP transmission rate of any one of the TCP connections included in the iSCSI session;
    若为是,不需要降低所述iSCSI会话的会话传输速率;If yes, there is no need to reduce the session transfer rate of the iSCSI session;
    若为否,需要降低所述iSCSI会话的会话传输速率。If not, the session transfer rate of the iSCSI session needs to be reduced.
  14. 如权利要求7-13任意一项所述的装置,其特征在于,还包括:The device of any of claims 7-13, further comprising:
    阈值调节模块,用于获取在当前时刻的负荷参数值;在所述负荷参数值大于预设值的情况下,减小所述预设的传输速率需求值;在所述负荷参数值小于或等于所述预设值的情况下,增加所述预设的传输速率需求值。 a threshold adjustment module, configured to acquire a load parameter value at a current time; and if the load parameter value is greater than a preset value, reduce the preset transmission rate demand value; where the load parameter value is less than or equal to In the case of the preset value, the preset transmission rate demand value is increased.
PCT/CN2016/110470 2015-12-18 2016-12-16 Transmission rate control method and device based on iscsi protocol WO2017101875A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510957174.1 2015-12-18
CN201510957174.1A CN106899510B (en) 2015-12-18 2015-12-18 Transmission rate control method and device based on iSCSI protocol

Publications (1)

Publication Number Publication Date
WO2017101875A1 true WO2017101875A1 (en) 2017-06-22

Family

ID=59055782

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110470 WO2017101875A1 (en) 2015-12-18 2016-12-16 Transmission rate control method and device based on iscsi protocol

Country Status (2)

Country Link
CN (1) CN106899510B (en)
WO (1) WO2017101875A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110391953B (en) * 2018-04-19 2023-03-28 德科仕通信(上海)有限公司 Method for improving TCP KPI calculation accuracy
CN108880938A (en) * 2018-06-19 2018-11-23 成都网丁科技有限公司 A kind of end-to-end TCP session speed-measuring method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152036A1 (en) * 2002-02-14 2003-08-14 International Business Machines Corporation Apparatus and method of splitting a data stream over multiple transport control protocol/internet protocol (TCP/IP) connections
CN101136929A (en) * 2007-10-19 2008-03-05 杭州华三通信技术有限公司 Internet small computer system interface data transmission method and apparatus
CN101448022A (en) * 2008-09-09 2009-06-03 创新科存储技术(深圳)有限公司 Control method of system interface iSCSI receiving end window of internet small computer and device
CN101483671A (en) * 2009-02-12 2009-07-15 杭州华三通信技术有限公司 Method, system and initial terminal apparatus for enhancing iSCSI session transmission rate

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369570B2 (en) * 2003-03-03 2008-05-06 Nec Corporation iSCSI apparatus and communication control method for the same
JP2007537550A (en) * 2004-05-11 2007-12-20 ミスルトウ テクノロジーズ, インコーポレイテッド Storage server architecture using digital semantic processor
CN102281263B (en) * 2010-06-13 2014-10-22 杭州华三通信技术有限公司 Method for establishing Internet small computer system interface (iSCSI) session and iSCSI initiator

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152036A1 (en) * 2002-02-14 2003-08-14 International Business Machines Corporation Apparatus and method of splitting a data stream over multiple transport control protocol/internet protocol (TCP/IP) connections
CN101136929A (en) * 2007-10-19 2008-03-05 杭州华三通信技术有限公司 Internet small computer system interface data transmission method and apparatus
CN101448022A (en) * 2008-09-09 2009-06-03 创新科存储技术(深圳)有限公司 Control method of system interface iSCSI receiving end window of internet small computer and device
CN101483671A (en) * 2009-02-12 2009-07-15 杭州华三通信技术有限公司 Method, system and initial terminal apparatus for enhancing iSCSI session transmission rate

Also Published As

Publication number Publication date
CN106899510A (en) 2017-06-27
CN106899510B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US9979665B2 (en) Reducing buffer usage for TCP proxy session based on delayed acknowledgement
US10154120B2 (en) System and method for data transfer, including protocols for use in data transfer
US9596281B2 (en) Transport accelerator implementing request manager and connection manager functionality
JP6319608B2 (en) Transmission control method, apparatus and system
EP2930899B1 (en) Tcp link configuration method and apparatus
US8984158B2 (en) Data communication system and method
CN102413056B (en) Method and device for controlling network flow as well as breakout gateway equipment
WO2020010670A1 (en) Method and device for acquiring network resource, and scheduling server
WO2011000307A1 (en) Network traffic accelerator
WO2022121469A1 (en) Flow control method, apparatus, and device, and readable storage medium
CN104683259A (en) TCP congestion control method and device
WO2016065676A1 (en) Optimization method and system based on throughput rate and packet loss control cwnd
WO2017101875A1 (en) Transmission rate control method and device based on iscsi protocol
EP3471458A1 (en) Method and apparatus for controlling data transmission speed in wireless communication system
JP2007013449A (en) Shaper control method, data communication system, network interface device and network repeating device
US9130843B2 (en) Method and apparatus for improving HTTP adaptive streaming performance using TCP modifications at content source
WO2016100890A1 (en) Smooth bandwidth-delay product variation inside wireless networks
JP4627290B2 (en) Rate control method, server, and program using TCP
JP2017038297A (en) Communication device, communication method and communication system
KR101641689B1 (en) Server and method for transmitting acceleration data and recording medium thereof
KR102131427B1 (en) Method and apparatus for performing a congestion control in stream control transmission protocol
CN111917525B (en) Data transmission method, device, equipment and readable storage medium
WO2023119512A1 (en) Relay device, communication system, and relay method
JP2006087010A (en) Communication path control apparatus and network system employing the same
Wan et al. Research on tcp optimization strategy of application delivery network

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: 16874932

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874932

Country of ref document: EP

Kind code of ref document: A1