TWI760160B - Flow control method and system for reducing server operating pressure and improving response time - Google Patents

Flow control method and system for reducing server operating pressure and improving response time Download PDF

Info

Publication number
TWI760160B
TWI760160B TW110111111A TW110111111A TWI760160B TW I760160 B TWI760160 B TW I760160B TW 110111111 A TW110111111 A TW 110111111A TW 110111111 A TW110111111 A TW 110111111A TW I760160 B TWI760160 B TW I760160B
Authority
TW
Taiwan
Prior art keywords
rate
data
server
module
flow control
Prior art date
Application number
TW110111111A
Other languages
Chinese (zh)
Other versions
TW202239177A (en
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 凌群電腦股份有限公司
Priority to TW110111111A priority Critical patent/TWI760160B/en
Application granted granted Critical
Publication of TWI760160B publication Critical patent/TWI760160B/en
Publication of TW202239177A publication Critical patent/TW202239177A/en

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本發明係一種降低伺服端運作壓力並提升回應時間之流量控制方法及其系統,設於期貨證券產業中一用戶端之通訊中介程序中,供以控制至少一該用戶端與至少一伺服端間之資料傳輸率。該流量控制系統設有一速率計數模組及一速率調節模組,該速率計數模組讀取該伺服端處理資料之回應時間並即時計算獲知該伺服端之回應速率,且該速率調節模組判斷該回應速率,並於該回應速率不符內設之一預設值時輸出一調節訊號予一資料輸出模組,以調節自一資料緩衝模組讀取內存之至少一使用者請求資料之速率而調節傳送該使用者請求資料至該伺服端之速率。The present invention is a flow control method and system for reducing the operating pressure of the server and improving the response time. It is set in a communication intermediary program of a client in the futures and securities industry to control the communication between at least one client and at least one server. the data transfer rate. The flow control system is provided with a rate counting module and a rate adjusting module. The rate counting module reads the response time of the data processed by the server and calculates the response rate of the server in real time, and the rate adjusting module determines When the response rate is different from a preset value, an adjustment signal is output to a data output module to adjust the rate of at least one user requesting data read from the memory from a data buffer module. Adjust the rate at which the user request data is sent to the server.

Description

降低伺服端運作壓力並提升回應時間之流量控制方法及其系統Flow control method and system for reducing server operating pressure and improving response time

本發明係與網路資料流量控制方法及其系統有關,尤其是一種降低伺服端運作壓力並提升回應時間之流量控制方法及其系統。The present invention relates to a network data flow control method and system, in particular to a flow control method and system for reducing operating pressure on a server and improving response time.

為降低產業軟體的開發成本,廣泛應用於能源、電信、金融、銀行、醫療或教育等產業之商業資訊程序係多利用通訊中介程序(Communication Middleware)之技術構建而出。通訊中介程序是一類提供系統軟體和應用軟體之間連接及協助軟體各部件間溝通的程序,供置於用戶端之伺服器上而管理用戶伺服系統之計算資源及網路通信狀態,因此,用戶端之伺服器及伺服端之伺服器雙方並不會知道彼此的資料處理速率及工作壓力指數。一般,在多數時間裡,伺服端必須處理由用戶端一次傳送來的複數個使用者請求資料而作業忙碌,且為解決伺服端無法即時處理該等使用者請求資料而造成資料遺失或錯誤處理的問題,習知係利用擴增伺服端之伺服器內緩衝區容量的技術使用戶端持續傳送來之該等使用者請求資料佇列其中,以緩解作業程序。In order to reduce the development cost of industrial software, business information programs widely used in industries such as energy, telecommunications, finance, banking, medical care or education are constructed using the technology of Communication Middleware. A communication intermediary program is a program that provides connection between system software and application software and assists in the communication between various components of the software. The server on the side and the server on the server side do not know each other's data processing rate and work pressure index. Generally, in most of the time, the server must process multiple user request data sent by the client at one time, and the operation is busy, and in order to solve the problem that the server cannot process the user request data immediately, resulting in data loss or error processing The problem is that the conventional technology utilizes the technology of expanding the buffer capacity in the server side to make the user request data continuously transmitted from the client side queue in it, so as to ease the operation procedure.

只是,未能即時處理之該等使用者請求資料佇列等待於緩衝區係造成伺服資源被佔用及耗費的問題發生,使伺服端呈現工作壓力大而拉長了其資料處理的反應時間,仍不利於整體網路資料處理效率的完善。再者,若伺服端於其高工作壓力期間接收該等使用者請求資料時會反饋一拒收訊號予用戶端並拒絕接收資料,則將出現有用戶端持續不斷地重覆傳送請求而伺服端亦持續不斷地反饋拒收訊號的狀況而更加浪費伺服端資源,並嚴重影響整體工作效率而無法符合期貨證券產業對於資料處理高精確性及高速效性的要求。However, these user requests that cannot be processed in real time are queued and waited in the buffer, which causes the problem of server resources being occupied and consumed. It is not conducive to the improvement of the overall network data processing efficiency. Furthermore, if the server will feed back a rejection signal to the client and refuse to receive the data when it receives the data requested by the user during the period of high working pressure, there will be a client that continuously repeats the transmission request and the server It also continuously feeds back the status of the rejection signal, which further wastes server resources and seriously affects the overall work efficiency.

有感於此,如何於達到期貨證券產業對於處理請求資料的高即時性及高正確性的要求前提下,提供一種不利用緩衝區佇列請求資料而解決佔用及耗費伺服端伺服資源之資料流量控制方法及其系統,藉以改善上述習知技術之缺失,即本發明所欲探究之課題。Feeling this, how to provide a way to solve the data flow that occupies and consumes server server resources without using buffer queues to request data under the premise of meeting the requirements of the futures and securities industry for high real-time and high accuracy in processing request data A control method and a system thereof are provided to improve the above-mentioned deficiencies of the prior art, which is the subject of the present invention.

有鑑於上述問題,本發明之目的旨在提供一種網路資料流量控制方法及其系統,以利用通訊中介程序檢測伺服端之工作反應速率後調節用戶端傳送資料處理請求的速率,而實現緩解伺服端運作壓力並改善資料處理速率之目的。In view of the above problems, the purpose of the present invention is to provide a network data flow control method and system, so as to use a communication intermediary program to detect the working response rate of the server and adjust the rate of the client to transmit data processing requests, so as to realize the mitigation of the server The purpose of reducing the operating pressure of the terminal and improving the data processing rate.

為達上述目的,本發明係揭露一種降低伺服端運作壓力並提升回應時間之流量控制方法,係設於期貨證券產業中一用戶端之通訊中介程序中,供以控制至少一該用戶端與至少一伺服端間之資料傳輸率,且該通訊中介程序設有一資料緩衝模組及一資料輸出模組,該資料輸出模組電訊連接該伺服端,而其流量控制方法係包含下列步驟:讀取該伺服端處理資料之回應時間;即時計算該回應時間而獲知該伺服端之回應速率;及判斷該回應速率並於該回應速率不符一預設值時,調節自該資料緩衝模組讀取內存之至少一使用者請求資料之速率而調節傳送該使用者請求資料至該伺服端之速率。In order to achieve the above object, the present invention discloses a flow control method for reducing the operating pressure of the server and improving the response time. A data transmission rate between servers, and the communication intermediary program is provided with a data buffer module and a data output module, the data output module is telecommunicationly connected to the server, and the flow control method includes the following steps: reading The response time of the data processing by the server; real-time calculation of the response time to obtain the response rate of the server; and judging the response rate and adjusting the read memory from the data buffer module when the response rate does not conform to a preset value The rate at which at least one user request data is adjusted to adjust the rate at which the user request data is sent to the server.

其中,該用戶端係設有一使用者應用程式,其電訊連接該通訊中介程序,且該使用者應用程式傳送至少一該使用者請求資料至該資料緩衝模組。當該用戶端為複數使用型態時,各該用戶端係分別設有一權重值,且該伺服端依據該權重值接收各該用戶端不同數量之該使用者請求資料。當該伺服端為複數使用型態時,該用戶端比對並排序各該伺服端之回應速率,以依據該等回應速率之先後排序傳送該使用者請求資料。Wherein, the client is provided with a user application program, which is connected to the communication intermediary program by telecommunication, and the user application program transmits at least one user request data to the data buffer module. When the clients are in a plural usage type, each of the clients is respectively provided with a weight value, and the server receives the user request data of different quantities of the clients according to the weight value. When the server is in a plural usage type, the client compares and sorts the response rates of the servers, and transmits the user request data according to the sequence of the response rates.

並且,該流量控制方法更包含下列步驟:即時計算該回應時間而獲知一異常訊號;及解析該異常訊號獲知一異常頻率後,依據該異常頻率調節自該資料緩衝模組讀取資料之速率。Moreover, the flow control method further includes the steps of: calculating the response time in real time to obtain an abnormal signal; and after analyzing the abnormal signal to obtain an abnormal frequency, adjusting the data read rate from the data buffer module according to the abnormal frequency.

另外,本發明之次一目的係揭示一種降低伺服端運作壓力並提升反應時間之流量控制系統,係設於期貨證券產業中一用戶端之通訊中介程序中,供以控制至少一該用戶端與至少一伺服端間之資料傳輸率,且該通訊中介程序設有一資料緩衝模組及一資料輸出模組,該資料輸出模組電訊連接該伺服端,其特徵在於:該流量控制系統係設有一速率計數模組及一速率調節模組,該速率計數模組電訊連接該伺服端及該速率調節模組,該速率調節模組電訊連接該資料輸出模組;該速率計數模組讀取該伺服端處理資料之回應時間並即時計算獲知該伺服端之回應速率,且該速率調節模組判斷該回應速率,並於該回應速率不符內設之一預設值時輸出一調節訊號予該資料輸出模組,使該資料輸出模組調節自該資料緩衝模組讀取內存之至少一使用者請求資料之速率而調節傳送該使用者請求資料至該伺服端之速率。In addition, another objective of the present invention is to disclose a flow control system that reduces the operating pressure of the server and improves the response time. The data transmission rate between at least one server, and the communication intermediary program is provided with a data buffer module and a data output module, the data output module is telecommunicationly connected to the server, characterized in that: the flow control system is provided with a A rate counting module and a rate adjusting module, the rate counting module is telecommunicationly connected to the server end and the rate adjusting module, the rate adjusting module is telecommunicationly connected to the data output module; the rate counting module reads the servo The response time of the data is processed by the terminal, and the response rate of the server is calculated and obtained in real time, and the rate adjustment module judges the response rate, and outputs an adjustment signal to the data output when the response rate does not match a preset value. The module enables the data output module to adjust the rate of reading at least one user request data from the data buffer module to adjust the rate of transmitting the user request data to the server.

其中,該用戶端係設有一使用者應用程式,其電訊連接該通訊中介程序,且該使用者應用程式傳送至少一該使用者請求資料至該資料緩衝模組。當該用戶端為複數使用型態時,各該用戶端係分別設有一權重值,且該伺服端依據該權重值自各該用戶端接收不同數量之該使用者請求資料。當該伺服端為複數使用型態時,該用戶端比對並排序各該伺服端之該回應速率,以依據該回應速率之先後排序傳送該使用者請求資料。Wherein, the client is provided with a user application program, which is connected to the communication intermediary program by telecommunication, and the user application program transmits at least one user request data to the data buffer module. When the clients are in the plural usage type, each of the clients is respectively provided with a weight value, and the server receives different amounts of the user request data from the clients according to the weight value. When the server is in a plural usage type, the client compares and sorts the response rates of the servers, so as to transmit the user request data according to the sequence of the response rates.

並且,該流量控制系統係更包含一異常計數模組,其電訊連接該速率計數模組及該速率調節模組,該異常計數模組即時計算該回應時間而獲知一異常訊號後,該速率調節模組解析該異常訊號並獲知一異常頻率,以依據該異常頻率調節該資料輸出模組自該資料緩衝模組讀取資料之速率。In addition, the flow control system further includes an abnormal counting module, which is telecommunicationly connected to the rate counting module and the rate adjusting module. The abnormal counting module calculates the response time in real time and obtains an abnormal signal, and adjusts the rate. The module analyzes the abnormal signal and learns an abnormal frequency, so as to adjust the speed of the data output module reading data from the data buffer module according to the abnormal frequency.

綜上所述,本發明係利用該速率計數模組及該速率調節模組之設置而可動態地控制該資料輸出模組對該資料緩衝模組之資料讀取速率,進而可對應該伺服端之工作速率即時調節資料傳輸速率,以解決該使用者請求資料大量排序於該伺服端之緩衝區內而造成該伺服端之工作資源無端被耗費的問題,據此降低該伺服端之運作壓力而大幅提升整體工作效率。To sum up, the present invention utilizes the settings of the rate counting module and the rate adjusting module to dynamically control the data reading rate of the data output module to the data buffer module, so as to correspond to the server The working rate adjusts the data transmission rate in real time, so as to solve the problem that the user's request data is sorted in the buffer of the server side and cause the work resources of the server side to be wasted for no reason, thereby reducing the operating pressure of the server side. Greatly improve overall work efficiency.

為使本領域具有通常知識者能清楚了解本發明之內容,謹以下列說明搭配圖式,敬請參閱。In order to enable those skilled in the art to clearly understand the content of the present invention, please refer to the following descriptions and drawings.

請參閱第1、2圖,其係分別為本發明一較佳實施例之系統架構圖及方法流程圖。如圖所示,該降低伺服端運作壓力並提升反應時間之流量控制系統111係設於期貨證券產業中一用戶端1之通訊中介程序11中,供以控制至少一該用戶端1與至少一伺服端2間之資料傳輸率,且該通訊中介程序11更設有一資料緩衝模組110及一資料輸出模組113。該流量控制系統111係設有一速率計數模組1110及一速率調節模組1111,該速率計數模組1110電訊連接該伺服端2及該速率調節模組1111,該速率調節模組1111電訊連接該資料輸出模組113,且該流量控制系統111之運作方法可包含下列步驟:Please refer to Figures 1 and 2, which are a system architecture diagram and a method flow chart of a preferred embodiment of the present invention, respectively. As shown in the figure, the flow control system 111 for reducing the operating pressure of the server and improving the response time is set in a communication intermediary program 11 of a client 1 in the futures and securities industry to control at least one client 1 and at least one The data transmission rate between the servers 2, and the communication intermediary program 11 is further provided with a data buffer module 110 and a data output module 113. The flow control system 111 is provided with a rate counting module 1110 and a rate adjusting module 1111, the rate counting module 1110 is telecommunicationly connected to the server 2 and the rate adjusting module 1111, and the rate adjusting module 1111 is telecommunicationly connected to the The data output module 113, and the operation method of the flow control system 111 may include the following steps:

步驟S10,該速率計數模組1110讀取該伺服端2處理資料之回應時間,且於步驟S11中即時計算該回應時間而獲知該伺服端2之回應速率。步驟S12,該速率調節模組1111判斷該回應速率是否符合一預設值?若不符合,步驟S120,輸出一調節訊號予該資料輸出模組113,使該資料輸出模組113於步驟S13中調節自該資料緩衝模組110讀取該使用者請求資料1100之速率,以實現調節傳送該使用者請求資料1100至該伺服端2之速率之目的。In step S10 , the rate counting module 1110 reads the response time of the data processed by the server 2 , and calculates the response time in real time in step S11 to obtain the response rate of the server 2 . In step S12, the rate adjustment module 1111 determines whether the response rate conforms to a preset value? If not, in step S120, an adjustment signal is output to the data output module 113, so that the data output module 113 adjusts the speed of reading the user requested data 1100 from the data buffer module 110 in step S13, so as to The purpose of adjusting the rate of transmitting the user request data 1100 to the server 2 is achieved.

請參閱第3、4圖,其係分別為本發明二較佳實施例之系統架構圖及方法流程圖。如圖所示,降低伺服端運作壓力並提升反應時間之該流量控制系統111係設於期貨證券產業中一用戶端1之通訊中介程序11中,供以控制至少一該用戶端1與至少一伺服端2間之資料傳輸率。該用戶端1設有一使用者應用程式10,其電訊連接該通訊中介程序11,且該通訊中介程序11更設有一資料緩衝模組110、一資料接收模組112及一資料輸出模組113。該流量控制系統111係設有一速率計數模組1110、一速率調節模組1111及一異常計數模組1112,該資料接收模組112電訊連接該伺服端2及該速率計數模組1110,該速率計數模組1110電訊連接該速率調節模組1111及該異常計數模組1112,該速率調節模組1111電訊連接該資料輸出模組113及該異常計數模組1112,且該流量控制系統111之運作方法可包含下列步驟:Please refer to FIGS. 3 and 4 , which are a system architecture diagram and a method flow chart of two preferred embodiments of the present invention, respectively. As shown in the figure, the flow control system 111 for reducing the operating pressure of the server and improving the response time is set in a communication intermediary program 11 of a client 1 in the futures and securities industry, for controlling at least one client 1 and at least one Data transfer rate between server 2. The client 1 is provided with a user application 10 , which is telecommunicationly connected to the communication intermediary program 11 , and the communication intermediary program 11 is further provided with a data buffer module 110 , a data reception module 112 and a data output module 113 . The flow control system 111 is provided with a rate counting module 1110, a rate adjusting module 1111 and an abnormal counting module 1112. The data receiving module 112 is telecommunicationly connected to the server 2 and the rate counting module 1110. The rate The counting module 1110 is telecommunicationly connected to the rate adjustment module 1111 and the abnormal counting module 1112, the rate adjustment module 1111 is telecommunicationly connected to the data output module 113 and the abnormal counting module 1112, and the flow control system 111 operates The method can include the following steps:

步驟S20,該使用者應用程式10傳送至少一使用者請求資料1100至該資料緩衝模組110。步驟S21,該資料輸出模組113自該資料緩衝模組110讀取該使用者請求資料1100後,步驟S210,傳送予該伺服端2,以供該伺服端2進行處理。待該伺服端2處理完成而反饋一處理結果予該資料接收模組112時,步驟S22,該速率計數模組1110讀取該伺服端2處理資料之回應時間,且於步驟S23中即時計算該回應時間而獲知該伺服端2之回應速率。同時,步驟S230,該資料接收模組112傳送該處理結果予該使用者應用程式10。In step S20 , the user application 10 transmits at least one user request data 1100 to the data buffer module 110 . In step S21 , after the data output module 113 reads the user request data 1100 from the data buffer module 110 , in step S210 , the data is sent to the server 2 for processing by the server 2 . When the processing of the server 2 is completed and a processing result is fed back to the data receiving module 112, in step S22, the rate counting module 1110 reads the response time of the data processed by the server 2, and immediately calculates the response time in step S23. The response rate of the server 2 is obtained by the response time. Meanwhile, in step S230 , the data receiving module 112 transmits the processing result to the user application 10 .

步驟S24,該速率調節模組1111判斷該回應速率是否符合一預設值,例如每筆傳送予該伺服端2之資料封包之處理回應時間是否為10~20ms?若不符合,步驟S240,輸出一調節訊號予該資料輸出模組113,使該資料輸出模組113於步驟S25中調節自該資料緩衝模組110讀取該使用者請求資料1100之速率,以調節傳送該使用者請求資料1100至該伺服端2之速率,藉此降低該伺服端2之運作壓力而提升該回應速率。換言之,該流量控制系統111係依據前一筆傳送之資料封包之回應時間作為調節讀取該資料緩衝模組110之速率之基準,故當前一筆資料封包之回應速率不符該預設值時減低該資料輸出模組113讀取該資料緩衝模組110之速率,而於前一筆資料封包之回應速率符合該預設值時即以原始讀取速率或以調高一階級速率之讀取速率讀取該資料緩衝模組110,換言之, 該資料輸出模組113係以浮動速率傳送該使用者請求資料1100至該伺服端2,使可切實解決該使用者請求資料1100列隊儲存於該伺服端2之緩衝區內而造成該伺服端2之運算資源耗費及影響整體工作效率的問題。In step S24, the rate adjustment module 1111 determines whether the response rate conforms to a preset value, such as whether the processing response time of each data packet sent to the server 2 is 10-20ms? If not, in step S240, an adjustment signal is output to the data output module 113, so that the data output module 113 adjusts the speed of reading the user request data 1100 from the data buffer module 110 in step S25, so as to The rate of transmitting the user request data 1100 to the server 2 is adjusted, thereby reducing the operating pressure of the server 2 and increasing the response rate. In other words, the flow control system 111 is based on the response time of the data packet sent in the previous transmission as the benchmark for adjusting the rate of reading the data buffer module 110, so when the response rate of the current data packet does not meet the preset value, the data is reduced. The output module 113 reads the speed of the data buffer module 110, and when the response rate of the previous data packet meets the preset value, reads the data at the original read rate or at the read rate increased by one level. The data buffer module 110, in other words, the data output module 113 transmits the user request data 1100 to the server 2 at a floating rate, so that the buffering of the user request data 1100 queued and stored in the server 2 can be effectively solved In this area, the computing resource consumption of the server 2 and the problem of affecting the overall work efficiency are caused.

並且,步驟S26,該異常計數模組1112即時計算該回應時間而獲知一異常訊號後,解析該異常訊號並獲知一異常頻率,以使該速率調節模組1111依據該異常頻率調節該資料輸出模組113自該資料緩衝模組110讀取資料之速率。如此,即使該伺服端2受其系統運作特性影響而間斷地出現有瞬間工作速率下降的狀況,該速率調節模組1111仍可即時調控讀取速率並影響傳輸速率而確保該伺服端2運作品質,使有效避免期貨證券商之委託資料出現錯誤處理而產生金融糾紛等問題的發生,達利益產業經濟發展之效益。And, in step S26, after the abnormality counting module 1112 calculates the response time in real time and obtains an abnormal signal, it analyzes the abnormal signal and obtains an abnormal frequency, so that the rate adjustment module 1111 adjusts the data output mode according to the abnormal frequency. The rate at which the group 113 reads data from the data buffer module 110 . In this way, even if the server 2 is affected by its system operation characteristics and the instantaneous working rate drops intermittently, the rate adjustment module 1111 can still adjust the read rate in real time and affect the transmission rate to ensure the operation quality of the server 2 , so as to effectively avoid the occurrence of financial disputes and other problems caused by the wrong processing of the entrusted data of the futures securities firm, and achieve the benefits of the economic development of the beneficial industry.

於本實施例中,該流量控制系統11適用於單一用戶端1對單一伺服端2、多用戶端1對單一伺服端2及多用戶端1對多伺服端2之通訊架構中,而當該用戶端1為複數使用型態時,各該資料輸出模組113可分別設有一權重值,且該伺服端2依據該權重值接收各該用戶端1不同數量之該使用者請求資料1100,如此,該伺服端2單次將對具較高權重值之該用戶端1接收及處理較多資料量。另一方面,當該伺服端2為複數使用型態時,該速率調節模組1111可比對並排序各該伺服端2之回應速率,以依據該等回應速率之先後排序使該資料輸出模組113傳送該使用者請求資料1100,如此,該用戶端1將優先請求具較高回應速率之該伺服端2處理資料。In this embodiment, the flow control system 11 is applicable to the communication structure of single client 1 to single server 2, multiple clients 1 to single server 2, and multiple clients 1 to multiple servers 2, and when the When the client 1 is in the plural usage type, each of the data output modules 113 may be respectively set with a weight value, and the server 2 receives the user request data 1100 of different quantities of the client 1 according to the weight value, and so on , the server 2 will receive and process a larger amount of data from the client 1 with a higher weight value at a time. On the other hand, when the server 2 is in a plural use type, the rate adjustment module 1111 can compare and sort the response rates of the servers 2, so as to make the data output module according to the order of the response rates. 113 sends the user request data 1100, so that the client 1 will preferentially request the server 2 with a higher response rate to process the data.

惟,以上所述者,僅為本發明之較佳實施例而已,並非用以限定本發明實施之範圍;故在不脫離本發明之精神與範圍下所作之均等變化與修飾,皆應涵蓋於本發明之專利範圍內。However, the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention; therefore, equivalent changes and modifications made without departing from the spirit and scope of the present invention should be included in the within the scope of the patent of the present invention.

1:用戶端 10:使用者應用程式 11:通訊中介程序 110:資料緩衝模組 1100:使用者請求資料 111:流量控制系統 1110:速率計數模組 1111:速率調節模組 1112:異常計數模組 112:資料接收模組 113:資料輸出模組 2:伺服端 S10~S25:步驟1: Client 10: User Apps 11: Communication Intermediary Program 110:Data buffer module 1100: User requests data 111: Flow Control System 1110: Rate counting module 1111: Rate adjustment module 1112: Abnormal counting module 112: Data receiving module 113: Data output module 2: Servo side S10~S25: Steps

第1圖,為本發明一較佳實施例之系統架構圖。 第2圖,為本發明一較佳實施例之方法流程圖。 第3圖,為本發明二較佳實施例之系統架構圖。 第4圖,為本發明二較佳實施例之方法流程圖。 FIG. 1 is a system architecture diagram of a preferred embodiment of the present invention. FIG. 2 is a flow chart of a method according to a preferred embodiment of the present invention. FIG. 3 is a system architecture diagram of two preferred embodiments of the present invention. FIG. 4 is a flow chart of the method of the second preferred embodiment of the present invention.

S10~S13:步驟 S10~S13: Steps

Claims (10)

一種降低伺服端運作壓力並提升回應時間之流量控制方法,係設於期貨證券產業中一用戶端之通訊中介程序中,供以控制至少一該用戶端與至少一伺服端間之資料傳輸率,且該通訊中介程序設有一資料緩衝模組及一資料輸出模組,該資料輸出模組電訊連接該伺服端,而其流量控制方法係包含下列步驟: 讀取該伺服端處理資料之回應時間; 即時計算該回應時間而獲知該伺服端之回應速率;及 判斷該回應速率並於該回應速率不符一預設值時,調節自該資料緩衝模組讀取內存之至少一使用者請求資料之速率而調節傳送該使用者請求資料至該伺服端之速率。 A flow control method for reducing operating pressure of a server and improving response time, which is set in a communication intermediary program of a client in the futures and securities industry to control the data transmission rate between at least one client and at least one server, And the communication intermediary program is provided with a data buffer module and a data output module, the data output module is telecommunicationly connected to the server, and the flow control method includes the following steps: The response time of reading the data processed by the server; Calculate the response time in real time to know the response rate of the server; and Determine the response rate and adjust the rate of at least one user request data read from the data buffer module to adjust the rate of transmitting the user request data to the server when the response rate does not meet a preset value. 如請求項1所述之流量控制方法,其中該用戶端係設有一使用者應用程式,其電訊連接該通訊中介程序,且該使用者應用程式傳送至少一該使用者請求資料至該資料緩衝模組。The flow control method as described in claim 1, wherein the client is provided with a user application, which is telecommunicationly connected to the communication intermediary program, and the user application transmits at least one user request data to the data buffer Group. 如請求項2所述之流量控制方法,其中,當該用戶端為複數使用型態時,各該用戶端係分別設有一權重值,且該伺服端依據該權重值接收各該用戶端不同數量之該使用者請求資料。The flow control method according to claim 2, wherein when the clients are in a plural usage type, each of the clients is respectively set with a weight value, and the server receives different numbers of the clients according to the weight value the user requests data. 如請求項3所述之流量控制方法,其中,當該伺服端為複數使用型態時,該用戶端比對並排序各該伺服端之回應速率,以依據該等回應速率之先後排序傳送該使用者請求資料。The flow control method according to claim 3, wherein when the server is in a plural usage type, the client compares and ranks the response rates of the servers, and transmits the response rate according to the order of the response rates. User requests data. 如請求項4所述之流量控制方法,係更包含下列步驟: 即時計算該回應時間而獲知一異常訊號;及 解析該異常訊號獲知一異常頻率後,依據該異常頻率調節自該資料緩衝模組讀取資料之速率。 The flow control method described in claim 4 further includes the following steps: The response time is calculated immediately to obtain an abnormal signal; and After analyzing the abnormal signal to know an abnormal frequency, the speed of reading data from the data buffer module is adjusted according to the abnormal frequency. 一種降低伺服端運作壓力並提升反應時間之流量控制系統,係設於期貨證券產業中一用戶端之通訊中介程序中,供以控制至少一該用戶端與至少一伺服端間之資料傳輸率,且該通訊中介程序設有一資料緩衝模組及一資料輸出模組,該資料輸出模組電訊連接該伺服端,其特徵在於: 該流量控制系統係設有一速率計數模組及一速率調節模組,該速率計數模組電訊連接該伺服端及該速率調節模組,該速率調節模組電訊連接該資料輸出模組;該速率計數模組讀取該伺服端處理資料之回應時間並即時計算獲知該伺服端之回應速率,且該速率調節模組判斷該回應速率,並於該回應速率不符內設之一預設值時輸出一調節訊號予該資料輸出模組,使該資料輸出模組調節自該資料緩衝模組讀取內存之至少一使用者請求資料之速率而調節傳送該使用者請求資料至該伺服端之速率。 A flow control system for reducing the operating pressure of the server and improving the response time, is set in a communication intermediary program of a client in the futures and securities industry, and is used to control the data transmission rate between at least one client and at least one server, And the communication intermediary program is provided with a data buffer module and a data output module, the data output module is telecommunicationly connected to the server, and is characterized in that: The flow control system is provided with a rate counting module and a rate adjusting module, the rate counting module is telecommunicationly connected to the server terminal and the rate adjusting module, and the rate adjusting module is telecommunicationly connected to the data output module; the rate The counting module reads the response time of the data processed by the server and immediately calculates the response rate of the server, and the rate adjustment module judges the response rate and outputs when the response rate does not match a preset value. An adjustment signal is sent to the data output module, so that the data output module adjusts the rate of reading at least one user request data from the data buffer module and adjusts the rate of transmitting the user request data to the server. 如請求項6所述之流量控制系統,其中該用戶端係設有一使用者應用程式,其電訊連接該通訊中介程序,且該使用者應用程式傳送至少一該使用者請求資料至該資料緩衝模組。The flow control system as described in claim 6, wherein the client is provided with a user application, the communication intermediary program is telecommunicationly connected to, and the user application transmits at least one of the user request data to the data buffer Group. 如請求項7所述之流量控制系統,其中,當該用戶端為複數使用型態時,各該用戶端係分別設有一權重值,且該伺服端依據該權重值自各該用戶端接收不同數量之該使用者請求資料。The flow control system according to claim 7, wherein when the clients are in a plural usage type, each of the clients is respectively set with a weight value, and the server receives different quantities from each of the clients according to the weight value the user requests data. 如請求項8所述之流量控制系統,其中,當該伺服端為複數使用型態時,該用戶端比對並排序各該伺服端之該回應速率,以依據該回應速率之先後排序傳送該使用者請求資料。The flow control system according to claim 8, wherein when the server is in a plural usage type, the client compares and sorts the response rates of the servers, and transmits the response rate according to the order of the response rates. User requests data. 如請求項9所述之流量控制系統,係更包含一異常計數模組,其電訊連接該速率計數模組及該速率調節模組,該異常計數模組即時計算該回應時間而獲知一異常訊號後,該速率調節模組解析該異常訊號並獲知一異常頻率,以依據該異常頻率調節該資料輸出模組自該資料緩衝模組讀取資料之速率。The flow control system as claimed in claim 9 further comprises an abnormal counting module, which is telecommunicationly connected to the rate counting module and the rate adjusting module, and the abnormal counting module calculates the response time in real time to obtain an abnormal signal Afterwards, the rate adjustment module analyzes the abnormal signal and obtains an abnormal frequency, so as to adjust the rate of reading data from the data buffer module by the data output module according to the abnormal frequency.
TW110111111A 2021-03-26 2021-03-26 Flow control method and system for reducing server operating pressure and improving response time TWI760160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110111111A TWI760160B (en) 2021-03-26 2021-03-26 Flow control method and system for reducing server operating pressure and improving response time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110111111A TWI760160B (en) 2021-03-26 2021-03-26 Flow control method and system for reducing server operating pressure and improving response time

Publications (2)

Publication Number Publication Date
TWI760160B true TWI760160B (en) 2022-04-01
TW202239177A TW202239177A (en) 2022-10-01

Family

ID=82198722

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110111111A TWI760160B (en) 2021-03-26 2021-03-26 Flow control method and system for reducing server operating pressure and improving response time

Country Status (1)

Country Link
TW (1) TWI760160B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381088A1 (en) * 2003-04-28 2016-12-29 Akamai Technologies, Inc. Forward request queuing in a distributed edge processing environment
US20170332343A1 (en) * 2015-03-03 2017-11-16 Facebook, Inc. Techniques to manage client location detection
US20190068752A1 (en) * 2017-08-25 2019-02-28 International Business Machines Corporation Server request management
WO2019139947A1 (en) * 2018-01-09 2019-07-18 Convida Wireless, Llc Mechanisms for the adaptive control of service layer operations
TWI718033B (en) * 2020-03-18 2021-02-01 中華電信股份有限公司 System and method for online certificate status query responder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381088A1 (en) * 2003-04-28 2016-12-29 Akamai Technologies, Inc. Forward request queuing in a distributed edge processing environment
US20170332343A1 (en) * 2015-03-03 2017-11-16 Facebook, Inc. Techniques to manage client location detection
US20190068752A1 (en) * 2017-08-25 2019-02-28 International Business Machines Corporation Server request management
WO2019139947A1 (en) * 2018-01-09 2019-07-18 Convida Wireless, Llc Mechanisms for the adaptive control of service layer operations
TWI718033B (en) * 2020-03-18 2021-02-01 中華電信股份有限公司 System and method for online certificate status query responder

Also Published As

Publication number Publication date
TW202239177A (en) 2022-10-01

Similar Documents

Publication Publication Date Title
US7065598B2 (en) Method, system, and article of manufacture for adjusting interrupt levels
CN106528266B (en) Method and device for dynamically adjusting resources in cloud computing system
US11888744B2 (en) Spin-leaf network congestion control method, node, system, and storage medium
US11784931B2 (en) Network burst load evacuation method for edge servers
CN112162863B (en) Edge unloading decision method, terminal and readable storage medium
US20060277317A1 (en) Providing flow control and moderation in a distributed message processing system
CN116996419A (en) Method and system for monitoring lightweight transmission delay jitter in data center network
TWI760160B (en) Flow control method and system for reducing server operating pressure and improving response time
CN115277877A (en) Protocol session distribution method compatible with multiple network communications
CN109688065B (en) Parameter processing method and device and storage medium
US9298652B2 (en) Moderated completion signaling
CN110311933A (en) A kind of method, apparatus, equipment and the storage medium of equilibrium service traffics
CN111913780A (en) Resource prediction and scheduling method in cloud computing
CN115150892B (en) VM-PM repair strategy method in MEC wireless system with bursty traffic
CN116225198A (en) CPU load control method and system
CN114691374B (en) Request distribution method of virtual channel and related device
CN111064768A (en) Printer data transmission control method, device, equipment and storage medium
CN115129486A (en) Flow control method and system for reducing operation pressure of servo end
CN115495202A (en) Real-time elastic scheduling method for big data task under heterogeneous cluster
CN115567597A (en) Message request forwarding method and device of payment settlement system
CN109508433B (en) Load fluctuation coping method and system based on performance adjustment of matching algorithm
WO2011054224A1 (en) Client terminal interface machine, service terminal interface machine, and message processing method and system thereof
CN110460632B (en) Order optimization method and system
CN113779145B (en) Block chain throughput improving system and method
CN114390006B (en) Data packet transmission method, device, equipment and storage medium