TW201828669A - Message processing method and apparatus reducing the processing load of the backend server for a HC request - Google Patents

Message processing method and apparatus reducing the processing load of the backend server for a HC request Download PDF

Info

Publication number
TW201828669A
TW201828669A TW106102246A TW106102246A TW201828669A TW 201828669 A TW201828669 A TW 201828669A TW 106102246 A TW106102246 A TW 106102246A TW 106102246 A TW106102246 A TW 106102246A TW 201828669 A TW201828669 A TW 201828669A
Authority
TW
Taiwan
Prior art keywords
result
message
server
request
stored
Prior art date
Application number
TW106102246A
Other languages
Chinese (zh)
Other versions
TWI720113B (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 TW106102246A priority Critical patent/TWI720113B/en
Publication of TW201828669A publication Critical patent/TW201828669A/en
Application granted granted Critical
Publication of TWI720113B publication Critical patent/TWI720113B/en

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

An embodiment of this application provides a message processing method and apparatus. The message processing method comprises the following steps: receiving a first message sent by a sender; when the first message is a message of a specified type, searching whether there is a first result matching the first message in a pre-stored result; and if yes, sending the first result to the sender. According to the embodiment of this application, when detecting that the received message is the message of the specified type, it is not to directly transparently transmit the message to a backend server, but to search for a result matching the message in the locally pre-stored result, if a matching result is found, the result is directly fed back to the sender, and the message is not transparently transmitted to the backend server any more, so that the processing capacity of the backend server for the type of message is reduced and the message processing load of the backend server is reduced. When the method is applied to a HC scenario of the backend server, the processing load of the backend server for a HC request can be reduced.

Description

一種電文處理方法和裝置  Electronic message processing method and device  

本申請涉及通訊技術領域,特別是涉及一種電文處理方法和一種電文處理裝置。 The present application relates to the field of communication technologies, and in particular, to a message processing method and a message processing device.

為了快速、準確的識別遠端服務的可用性,本地應用需要頻繁地對遠端服務發起健康檢查(Health Check,HC)請求,用以判斷遠端服務是否可用。 In order to quickly and accurately identify the availability of the remote service, the local application needs to frequently initiate a Health Check (HC) request to the remote service to determine whether the remote service is available.

在雲端計算的大規模負載均衡的場景下,用戶透過伺服器負載平衡器(Server Load Balancer,SLB)創建的VIP會被配置在多個Linux虛擬伺服器(Linux Virtual Server,LVS)上,為了保證盡可能準確的知道後端伺服器是否可用,每個LVS上都會啟動一個健康檢查進程去對後端伺服器進行檢查。 In the scenario of large-scale load balancing in the cloud computing, the VIP created by the server load balancer (SLB) will be configured on multiple Linux virtual servers (LinuxS), in order to ensure Know as accurately as possible whether the backend server is available. A health check process is initiated on each LVS to check the backend server.

假設有m個LVS,配置成每n秒對後端伺服器進行一次健康檢查,那麼後端伺服器每秒都要承受m/n個健康檢查請求。從m/n可以看出,用戶後端伺服器承受的健康檢查請求的頻率與LVS的台數成正比,與健康檢查的間隔時間成反比。 Assuming that there are m LVSs configured to perform a health check on the backend server every n seconds, the backend server is subject to m/n health check requests per second. As can be seen from m/n, the frequency of the health check request that the user's backend server is subjected to is proportional to the number of LVS and inversely proportional to the interval between health checks.

在雲端產品環境中,LVS的數量會隨著用戶數和存取量增長而增長,也就是m始終在增長,而用戶又希望當後端伺服器出現問題時能儘快的停止LVS對其轉發請求,那就需要縮短健康檢查的間隔時間,即縮小n。也就是m/n這個值會越來越大,以至於導致健康檢查的請求對後端伺服器產生較大的壓力,極端情況下,甚至會因為健康檢查的請求過多,導致後端伺服器不可用。 In the cloud product environment, the number of LVS increases with the number of users and access, that is, m is always growing, and users hope to stop LVS forwarding requests as soon as possible when there is a problem with the backend server. , then you need to shorten the interval between health checks, that is, reduce n. That is to say, the value of m/n will become larger and larger, so that the request for health check will exert greater pressure on the backend server. In extreme cases, even the request for health check will be too much, resulting in the backend server not being available. use.

然而,在雲端環境中,透過控制m或n的方式來控制HC請求數量會導致服務的規模和靈活性受限,其中,控制最大的m會導致LVS集群的規模受限,控制n的方式會導致HC不敏感,後端服務出現問題時,無法及時的感知到。 However, in the cloud environment, controlling the number of HC requests by controlling m or n will result in limited service size and flexibility. Among them, controlling the largest m will result in limited size of the LVS cluster, and the way to control n will be The HC is not sensitive, and when the backend service has problems, it cannot be perceived in time.

本申請實施例的發明目的在於提供一種電文處理方法,能夠減小後端伺服器對HC請求的處理壓力。 The invention of the embodiments of the present application aims to provide a message processing method capable of reducing the processing pressure of a backend server for an HC request.

相應的,本申請實施例還提供了一種電文處理裝置,用以保證上述方法的實現及應用。 Correspondingly, the embodiment of the present application further provides a message processing device for ensuring implementation and application of the foregoing method.

為了解決上述問題,本申請公開了一種電文處理方法,包括:接收發送方發送的第一電文;當所述第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與所述第一電文匹配的第一結果;若是,則向所述發送方發送所述第一結果。 In order to solve the above problem, the present application discloses a message processing method, including: receiving a first message sent by a sender; and when the first message is a message of a specified type, searching for a presence or absence in the pre-stored result The first result of the first message match; if yes, the first result is sent to the sender.

進一步,所述方法還包括:當所述預儲存的結果中不存在所述第一結果時,將所述第一電文發送至伺服器;接收所述伺服器反饋的第二結果;向所述發送方發送所述第二結果。 Further, the method further includes: when the first result is not present in the pre-stored result, sending the first message to a server; receiving a second result of the server feedback; The sender sends the second result.

進一步,所述方法還包括:在所述預儲存的結果中添加所述第二結果。 Further, the method further includes adding the second result to the pre-stored result.

進一步,所述在預儲存的結果中查找是否存在與所述第一電文匹配的第一結果,包括:獲取所述第一電文中包含的請求資訊及有效期;在預儲存的結果中查找是否存在與所述請求資訊對應的結果;若存在,則判斷所述結果是否滿足所述有效期;若是,則確認所述結果為與所述第一電文匹配的第一結果,若否,則確認不存在所述第一結果。 Further, the searching for the first result that matches the first message in the pre-stored result includes: acquiring the request information and the validity period included in the first message; and searching for the presence in the pre-stored result a result corresponding to the request information; if yes, determining whether the result satisfies the validity period; if yes, confirming that the result is a first result that matches the first message, and if not, confirming that there is no The first result.

進一步,所述方法還包括:基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定所述伺服器在當前週期內的服務可用性;依據所述當前週期內的服務可用性生成檢測的結果,對所述結果進行儲存。 Further, the method further comprises: determining a service availability of the server in a current period based on a health check performed by a specified port or a service program of the server; generating a detection according to service availability in the current period. As a result, the results are stored.

進一步,所述請求資訊包括請求類型、目的地IP地址和目的地埠口。 Further, the request information includes a request type, a destination IP address, and a destination port.

進一步,所述指定類型的電文為健康檢查HC請求電文。 Further, the specified type of message is a health check HC request message.

本申請還公開了一種電文處理裝置,包括:電文接收單元,被配置為接收發送方發送的第一電文;結果查找單元,被配置為當所述第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與所述第一電文匹配的第一結果;結果反饋單元,被配置為當所述查找單元查找到與所述第一電文匹配的第一結果是,向所述發送方發送所述第一結果。 The present application also discloses a message processing apparatus, comprising: a message receiving unit configured to receive a first message sent by a sender; and a result finding unit configured to: when the first message is a specified type of message, Determining, in the stored result, whether there is a first result matching the first message; the result feedback unit is configured to: when the searching unit finds that the first result matching the first message is, send the The party sends the first result.

進一步,所述裝置還包括:發送單元,被配置為當所述預儲存的結果中不存在所述第一結果時,將所述第一電文發送至伺服器;結果接收單元,被配置為接收所述伺服器反饋的第二結果;結果發送單元,被配置為向所述發送方發送所述第二結果。 Further, the apparatus further includes: a sending unit configured to: when the first result is not included in the pre-stored result, send the first message to a server; and the result receiving unit is configured to receive a second result fed back by the server; a result sending unit configured to send the second result to the sender.

進一步,所述裝置還包括:增加單元,被配置為在所述預儲存的結果中添加所述第二結果。 Further, the apparatus further includes an adding unit configured to add the second result to the pre-stored result.

進一步,所述結果查找單元包括:提取子單元,被配置為獲取所述第一電文中包含的請求資訊及有效期;查找子單元,被配置為在預儲存的結果中查找是否存在與所述請求資訊對應的結果; 判定子單元,被配置為在預儲存的結果中查找到與所述請求資訊對應的結果時,判斷所述結果是否滿足所述有效期;若是,則確認所述結果為與所述第一電文匹配的第一結果,若否,則確認不存在所述第一結果。 Further, the result finding unit includes: an extracting subunit configured to acquire request information and an expiration date included in the first telegram; and a searching subunit configured to search for a presence and a request in the pre-stored result a result of the information correspondence; the determining subunit configured to: when the result corresponding to the request information is found in the pre-stored result, determine whether the result satisfies the validity period; if yes, confirm the result is The first result of the first message matching, if not, confirms that the first result does not exist.

進一步,所述裝置還包括:服務檢測單元,被配置為基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定所述伺服器在當前週期內的服務可用性;結果儲存單元,被配置為依據所述當前週期內的服務可用性生成檢測的結果,對所述結果進行儲存。 Further, the apparatus further includes: a service detecting unit configured to determine a service availability of the server in a current period based on a health check performed by a specified port or a service program of the server; the result storage unit is The method is configured to generate a result of the detection according to the service availability in the current period, and store the result.

進一步,所述請求資訊包括請求類型、目的地IP地址和目的地埠口。 Further, the request information includes a request type, a destination IP address, and a destination port.

進一步,所述指定類型的電文為健康檢查HC請求電文。 Further, the specified type of message is a health check HC request message.

與現有技術相比,本申請實施例包括以下優點:本申請實施例透過在檢測接收到的電文為指定類型的電文時,不直接將電文透明化傳輸給後端伺服器,而是先在本地預儲存的結果中查找與該電文匹配的結果,如果查找到匹配的結果則直接將該結果反饋至發送方,而不再將該電文透明化傳輸給後端伺服器,從而減小了後端伺服器對該類電文的處理量,減小了後端伺服器的電文處理壓力。當該方法應用於對後端伺服器的HC場景中時,可以減小後端伺服器對HC請求的處理壓力。 Compared with the prior art, the embodiment of the present application includes the following advantages: when detecting the received message as a specified type of message, the embodiment of the present application does not directly transmit the message to the backend server, but is locally localized. Find the result matching the message in the pre-stored result. If the matching result is found, the result is directly fed back to the sender, and the message is no longer transparently transmitted to the back-end server, thereby reducing the back end. The amount of processing of the message by the server reduces the message processing pressure of the backend server. When the method is applied to the HC scenario of the backend server, the processing pressure of the backend server for the HC request can be reduced.

501‧‧‧電文接收單元 501‧‧‧Message Receiving Unit

502‧‧‧結果查找單元 502‧‧‧Result search unit

503‧‧‧結果反饋單元 503‧‧‧Results feedback unit

601‧‧‧發送單元 601‧‧‧Send unit

602‧‧‧結果接收單元 602‧‧‧Result receiving unit

603‧‧‧結果發送單元 603‧‧‧Result sending unit

604‧‧‧增加單元 604‧‧‧Add unit

701‧‧‧提取子單元 701‧‧‧Extract subunit

702‧‧‧查找子單元 702‧‧‧Find subunit

703‧‧‧判定子單元 703‧‧‧Decision subunit

801‧‧‧服務檢測單元 801‧‧‧Service Detection Unit

802‧‧‧結果儲存單元 802‧‧‧Results storage unit

圖1是本申請的一種電文處理方法實施例的步驟流程圖;圖2是本申請的另一種電文處理方法實施例的步驟流程圖;圖3是本申請中在預儲存的結果中查找是否存在與第一電文匹配的第一結果的方法實施例的步驟流程圖;圖4是本申請中兩個伺服器對後端伺服器發起HC請求示意圖;圖5是本申請的一種電文處理裝置實施例的結構方塊圖;圖6是本申請的另一種電文處理裝置實施例的結構方塊圖;圖7是本申請中一種結果查找單元的實施例的結構方塊圖;圖8是本申請的一種電文處理裝置優選實施例的結構方塊圖。 1 is a flow chart of steps of an embodiment of a message processing method of the present application; FIG. 2 is a flow chart of steps of another embodiment of a message processing method of the present application; FIG. 3 is a search for presence in a pre-stored result in the present application. A flow chart of the method embodiment of the first result matching the first message; FIG. 4 is a schematic diagram of the two servers requesting the HC server to the backend server in the present application; FIG. 5 is a text message processing device embodiment of the present application. Figure 6 is a block diagram showing the structure of another embodiment of the message processing apparatus of the present application; Figure 7 is a block diagram showing an embodiment of a result finding unit in the present application; and Figure 8 is a block diagram of the present application. A block diagram of the structure of a preferred embodiment of the apparatus.

為使本申請的上述目的、特徵和優點能夠更加明顯易懂,下面結合附圖和具體實施方式對本申請作進一步詳細的說明。 The above described objects, features and advantages of the present application will become more apparent and understood.

參照圖1,示出了本申請的一種電文處理方法實施例的步驟流程圖,具體可以包括如下步驟: Referring to FIG. 1 , a flow chart of steps of an embodiment of a message processing method of the present application is shown, which may specifically include the following steps:

步驟101,接收發送方發送的第一電文。 Step 101: Receive a first message sent by a sender.

本申請實施例中,用於進行電文處理的裝置(以下簡稱該裝置)可以是用於響應該電文的伺服器本身,或者設置在該伺服器內部的一模組,或者設置在該伺服器前端的獨立裝置且可以與伺服器進行互動。例如,在雲端計算的大規模負載均衡的場景中,各LVS伺服器和Proxy伺服器分別對後端伺服器發起HC的情況下,該裝置可以是後端伺服器本身或內置的一模組,也可以是設置在後端伺服器前的獨立裝置,例如健康檢查代理器(Health Check Proxy,HCP)。 In the embodiment of the present application, the device for performing the message processing (hereinafter referred to as the device) may be a server itself for responding to the message, or a module disposed inside the server, or disposed at the front end of the server. Independent device and can interact with the server. For example, in a scenario of large-scale load balancing in cloud computing, where each LVS server and Proxy server respectively initiates HC to the backend server, the device may be the backend server itself or a built-in module. It can also be a standalone device set in front of the backend server, such as the Health Check Proxy (HCP).

該裝置在本步驟中接收由發送方如LVS伺服器或Proxy伺服器等發送的第一電文,該第一電文可能是HC請求電文。 The device receives the first message sent by the sender, such as an LVS server or a proxy server, in this step, and the first message may be an HC request message.

步驟102,當第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與第一電文匹配的第一結果。 Step 102: When the first message is a specified type of message, look for a first result matching the first message in the pre-stored result.

該裝置在接收到第一電文後,首先根據第一電文中包含的電文類型資訊確定該電文是否為指定類型的電文,如果是,則在預儲存的結果中查找是否存在與第一電文匹配的第一結果,如果不是,則可以根據電文類型資訊進行其它對應處理,或者將電文透明化傳輸給後端伺服器進行處理。 After receiving the first message, the device first determines whether the message is a specified type of message according to the message type information included in the first message, and if yes, searches for a match with the first message in the pre-stored result. The first result, if not, can perform other corresponding processing according to the message type information, or transparently transmit the message to the backend server for processing.

其中,該指定類型的電文具體可以是HC請求電文。在其它應用場景,該指定類型的電文也可以是該裝置需要減少後端伺服器對該電文處理數量的電文。 The specified type of message may specifically be an HC request message. In other application scenarios, the specified type of message may also be a message that the device needs to reduce the amount of processing of the message by the backend server.

該裝置預先儲存有與指定類型的電文相關聯的結果。其中,該結果的儲存步驟包括:基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定所述伺服器在當前週期內的服務可用性;依據所述當前週期內的服務可用性生成檢測的結果,對所述結果進行儲存。 The device is pre-stored with results associated with a specified type of message. The storing step of the result includes: determining a service availability of the server in a current period based on a health check performed by a specified port or a service program of the server; generating a detection according to the service availability in the current period. As a result, the results are stored.

即該裝置可以定時對後端伺服器的指定埠口或服務做一次HC,來檢測伺服器在當前的定時週期內的服務是否可用,對應基於檢測得到的後端伺服器在這個週期內的服務可用性生成檢測結果進行儲存。或者後端伺服器基於該裝置的觸發定時進行自檢等,以確定自身在當前的定時週期內是否能夠提供服務,從而透過檢測得到的HC結果即後端伺服器在這個週期內的服務可用性,HC結果發送給該裝置進行儲存。透過上述裝置控制後端伺服器在一個週期內僅透過一次檢測確定該週期內的可用性即HC結果,在該週期內的各個HC請求均可使用該HC結果,而無需重複檢查,減小後端伺服器對HC請求的處理壓力。其中,所述服務指的是運行在伺服器上對外提供服務的服務程式。當接收到的第一電文為HC請求電文時,即可在該預先儲存的HC結果中查找是否存在與該第一電文相匹配的HC結果。具體請參見後續實施例的描述。 That is, the device can periodically perform an HC on the designated port or service of the backend server to detect whether the service of the server is available in the current timing period, and correspondingly the service based on the detected backend server in the period. Availability generates test results for storage. Or the backend server performs a self-test or the like based on the trigger timing of the device to determine whether it can provide a service within the current timing period, thereby obtaining the HC result through the detection, that is, the service availability of the backend server in the period. The HC results are sent to the device for storage. The above-mentioned device controls the back-end server to determine the availability of the cycle, that is, the HC result, through one detection in one cycle, and the HC result can be used for each HC request in the cycle without repeating the check and reducing the back end. The processing pressure of the server on the HC request. The service refers to a service program running on a server to provide external services. When the received first message is an HC request message, it can be found in the pre-stored HC result whether there is an HC result matching the first message. For details, please refer to the description of the subsequent embodiments.

若查找到與第一電文匹配的第一結果則執行步驟103。 If the first result matching the first message is found, step 103 is performed.

步驟103,向發送方發送該第一結果。 Step 103: Send the first result to the sender.

該方法不僅可以應用於對後端伺服器的HC場景中, 還可以應用於其它需要減小後端伺服器對發送方週期性發送的同類型電文的處理場景中。 The method can be applied not only to the HC scenario of the backend server, but also to other processing scenarios that need to reduce the same type of message periodically sent by the backend server to the sender.

本申請實施例透過在檢測接收到的電文為指定類型的電文時,不直接將電文透明化傳輸給後端伺服器,而是先在本地預儲存的結果中查找與該電文匹配的結果,如果查找到匹配的結果則直接將該結果反饋至發送方,而不再將該電文透明化傳輸給後端伺服器,從而減小了後端伺服器對該類電文的處理量,減小了後端伺服器的電文處理壓力。當該方法應用於對後端伺服器的HC場景中時,可以減小後端伺服器對HC請求的處理壓力。 When detecting the received message as a specified type of message, the embodiment of the present application does not directly transmit the message to the backend server, but first finds the result matching the message in the locally pre-stored result. If the matching result is found, the result is directly fed back to the sender, and the message is no longer transparently transmitted to the backend server, thereby reducing the processing amount of the message by the backend server, and reducing the amount of processing. The server's message processing pressure. When the method is applied to the HC scenario of the backend server, the processing pressure of the backend server for the HC request can be reduced.

在本申請的另一實施例中,當在預儲存的結果中不存在與第一電文匹配的第一結果時,如圖2所示,該方法還可以包括: In another embodiment of the present application, when there is no first result matching the first message in the pre-stored result, as shown in FIG. 2, the method may further include:

步驟201,當預儲存的結果中不存在第一結果時,將第一電文發送至伺服器。 Step 201: When the first result does not exist in the pre-stored result, the first message is sent to the server.

雖然會定時檢測後端伺服器來獲取HC結果,但是難免出現一些情況,使得在請求時無法查找到匹配的結果,此情況下為了及時獲取匹配的結果,該裝置在執行步驟102時,當查找的結果是預儲存的結果中不存在與第一電文匹配的第一結果時,此時該裝置無法直接向發送方反饋結果,而需要將第一電文透明化傳輸至(後端)伺服器,由(後端)伺服器進行處理。 Although the backend server is periodically detected to obtain the HC result, it is inevitable that some cases may occur so that the matching result cannot be found at the time of the request. In this case, in order to obtain the matching result in time, the device performs the search when performing step 102. The result is that when there is no first result matching the first message in the pre-stored result, the device cannot directly feed back the result to the sender, but needs to transparently transmit the first message to the (back-end) server. Processed by the (backend) server.

步驟202,接收伺服器反饋的第二結果。 Step 202: Receive a second result of the server feedback.

(後端)伺服器按照現有方式對該第一電文進行處理, 並向該裝置返回處理獲得的第二結果。 The (back end) server processes the first message in an existing manner and returns a second result obtained by the process to the device.

步驟203,向發送方發送第二結果。 In step 203, the second result is sent to the sender.

該裝置在接收到第二結果後,向發送方反饋該第二結果。 After receiving the second result, the device feeds back the second result to the sender.

該裝置在執行步驟203的同時,也還可以進一步執行步驟204。 The device may further perform step 204 while performing step 203.

步驟204,在預儲存的結果中添加第二結果。 Step 204, adding a second result to the pre-stored result.

該裝置可以將該第二結果及其關聯資訊,例如結果獲取時間等增加至上述預儲存的結果中,或更新上述預儲存的結果,以便於後續可以利用該第二結果反饋發送方,而無需(後端)伺服器重複進行電文處理。 The device may add the second result and its associated information, such as the result acquisition time, to the pre-stored result, or update the pre-stored result, so that the second result can be used to feed the sender later without The (back end) server repeats the message processing.

在本申請的另一實施例中,當第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與第一電文匹配的第一結果的過程,如圖3所示,可以包括: In another embodiment of the present application, when the first message is a specified type of message, a process of finding whether there is a first result matching the first message in the pre-stored result, as shown in FIG. 3, may include :

步驟301,獲取第一電文中包含的請求資訊及有效期。 Step 301: Obtain the request information and the validity period included in the first message.

本實施例中,該請求資訊可以包括請求類型、目的地IP地址和目的地埠口。 In this embodiment, the request information may include a request type, a destination IP address, and a destination port.

以第一電文為HC請求電文為例,本實施例中可以在HC請求電文中增加表明HC請求電文類型的字節,例如,在HC請求的SYN(synchronous)電文中的TCP(Transmission Control Protocol,傳輸控制協議)Option中增加HC類型的字節:198-tcp,199-http,200-udp,除HC請求電文類型之外,還有有效期即interval資訊,表 明可以複用多長時間內的HC結果。 Taking the first message as the HC request message as an example, in this embodiment, a byte indicating the HC request message type may be added to the HC request message, for example, TCP (Transmission Control Protocol) in the SYN (synchronous) message requested by the HC. The transmission control protocol) Option adds the HC type byte: 198-tcp, 199-http, 200-udp. In addition to the HC request message type, there is also a validity period, that is, interval information, indicating how long the HC can be reused. result.

該裝置在接收到該第一電文後,即獲取該第一電文中的HC請求電文類型的字節,interval資訊,以及第一電文的RSIP(Real Server IP Address,目的地IP地址)和RSport(Real Server port,目的地埠口)。 After receiving the first message, the device acquires the byte of the HC request message type in the first message, the interval information, and the RSIP (Real Server IP Address) and the RSport of the first message. Real Server port, destination port).

步驟302,在預儲存的結果中查找是否存在與請求資訊對應的結果。 Step 302: Find, in the pre-stored result, whether there is a result corresponding to the requested information.

該裝置中可以預先儲存有session表,該表中key為type-RSIP-RSport,value為更新時的結果和更新時間。 The device may pre-store a session table in which the key is type-RSIP-RSport, and the value is the result of the update and the update time.

本步驟首先根據上步驟獲得的HC請求電文類型的字節(type),以及RSIP和RSport,在session表中查找對應的value,如果查找到,則執行步驟303,如果沒有查找到則確認預儲存的結果中不存在與第一電文匹配的第一結果,繼而執行前述步驟201。 This step firstly searches for the corresponding value in the session table according to the byte type of the HC request message type obtained in the previous step, and RSIP and RSport. If found, step 303 is performed, and if not found, the pre-store is confirmed. There is no first result matching the first message in the result, and then the foregoing step 201 is performed.

步驟303,判斷該結果是否滿足有效期。 In step 303, it is determined whether the result meets the validity period.

在查找到對應的結果後,查看該結果的更新時間以及步驟301中獲得的有效期,例如interval是5s,則查看該結果的更新時間是否在5s以內,如果是,則確定該結果為與第一電文匹配的第一結果,然後執行前述步驟103;如果否,則該結果失效,確認預儲存的結果中不存在與第一電文匹配的第一結果,繼而執行前述步驟201。 After the corresponding result is found, the update time of the result and the validity period obtained in step 301 are checked. For example, if the interval is 5 s, the update time of the result is checked within 5 s. If yes, the result is determined to be the first. The first result of the message matching is then performed in the foregoing step 103; if not, the result is invalid, and it is confirmed that there is no first result matching the first message in the pre-stored result, and then the foregoing step 201 is performed.

下面以伺服器A、B分別對後端伺服器發起HC請求的情況為例進行說明。該裝置為HCP。 In the following, the case where the server A and the B respectively initiate an HC request to the backend server will be described as an example. The device is an HCP.

如圖4所示,伺服器A、B分別發起HC請求,伺服 器A發起的HC請求中包含標識資訊及有效期資訊,具體為TCP OPT:type(199)interval(5)Src:192.168.0.1 DST:192.168.100.1:80。伺服器B發起的HC請求中包含標識資訊及有效期資訊,具體為TCP OPT:type(199)interval(5)Src:192.168.0.2 DST:192.168.100.1:80。HCP在接收到兩個HC請求後,分別在session表中查找對應的value,HCP查找到與伺服器B發送的HC請求匹配的結果,HCP直接將該結果返回至伺服器B,而不會將其HC請求發送給後端伺服器。HCP沒有查找到與伺服器A發送的HC請求匹配的結果,則將該HC請求發送至後端伺服器,後端伺服器進行處理後返回結果,HCP將該結果再反饋至伺服器A,並且HCP將該結果更新至其維護的session表中。 As shown in FIG. 4, the servers A and B respectively initiate an HC request, and the HC request initiated by the server A includes the identification information and the validity period information, specifically TCP OPT: type (199) interval (5) Src: 192.168.0.1 DST :192.168.100.1:80. The HC request initiated by the server B includes the identification information and the validity period information, specifically TCP OPT: type (199) interval (5) Src: 192.168.0.2 DST: 192.168.100.1: 80. After receiving two HC requests, the HCP searches for the corresponding value in the session table, and the HCP finds the result matching the HC request sent by the server B, and the HCP directly returns the result to the server B, instead of Its HC request is sent to the backend server. If the HCP does not find a result matching the HC request sent by the server A, the HC request is sent to the backend server, and the backend server processes the result, and the HCP returns the result to the server A again, and The HCP updates the result to its maintained session table.

該方法可以定時對後端伺服器的指定埠口或服務做一次HC,HC的結果作為後端伺服器在這個週期內的服務可用性,其他的HC請求方也都使用這個週期的檢查結果,不做重複檢查。本實施例透過在HC請求發起方和後端服務之間建立HCP的方式,做到在一個HC週期內,只允許一個HC請求到達後端伺服器,其他HC請求複用這個HC請求結果的方式,來到達減少後端伺服器對HC請求的處理量的目的。 The method can periodically make a HC, HC result to the designated port or service of the backend server as the service availability of the backend server in this cycle, and other HC requesters also use the check result of this cycle, Do a duplicate check. In this embodiment, by establishing an HCP between the HC request initiator and the backend service, only one HC request is allowed to reach the backend server in one HC cycle, and other HC requests to multiplex the result of the HC request. To achieve the purpose of reducing the amount of processing of the HC request by the backend server.

需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本申請實施例並不受所描述的動作順序的限制, 因為依據本申請實施例,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作並不一定是本申請實施例所必須的。 It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.

參照圖5,示出了本申請一種電文處理裝置實施例的結構方塊圖,具體可以包括如下單元: Referring to FIG. 5, a block diagram of a structure of an embodiment of a message processing apparatus of the present application is shown, which may specifically include the following units:

電文接收單元501,被配置為接收發送方發送的第一電文。 The message receiving unit 501 is configured to receive the first message sent by the sender.

結果查找單元502,被配置為當所述第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與所述第一電文匹配的第一結果。 The result finding unit 502 is configured to: when the first message is a specified type of message, look in the pre-stored result whether there is a first result matching the first message.

結果反饋單元503,被配置為當所述查找單元查找到與所述第一電文匹配的第一結果是,向所述發送方發送所述第一結果。 The result feedback unit 503 is configured to, when the search unit finds a first result that matches the first message, send the first result to the sender.

本申請實施例中該裝置透過上述單元在檢測接收到的電文為指定類型的電文時,不直接將電文透明化傳輸給後端伺服器,而是先在本地預儲存的結果中查找與該電文匹配的結果,如果查找到匹配的結果則直接將該結果反饋至發送方,而不再將該電文透明化傳輸給後端伺服器,從而減小了後端伺服器對該類電文的處理量,減小了後端伺服器的電文處理壓力。當該裝置應用於對後端伺服器的HC場景中時,可以減小後端伺服器對HC請求的處理壓力。 In the embodiment of the present application, when the device detects that the received message is a specified type of message, the device does not directly transmit the message to the backend server, but first searches for the message in the locally pre-stored result. The result of the matching, if the matching result is found, the result is directly fed back to the sender, and the message is no longer transparently transmitted to the backend server, thereby reducing the processing amount of the message by the backend server. , reducing the text processing pressure of the backend server. When the device is applied to the HC scenario of the backend server, the processing pressure of the backend server for the HC request can be reduced.

在另一實施例中,如圖6所示,該裝置還可以包括: In another embodiment, as shown in FIG. 6, the device may further include:

發送單元601,被配置為當所述預儲存的結果中不存 在所述第一結果時,將所述第一電文發送至伺服器; The sending unit 601 is configured to send the first message to the server when the first result is not stored in the pre-stored result;

結果接收單元602,被配置為接收所述伺服器反饋的第二結果; a result receiving unit 602, configured to receive a second result of the server feedback;

結果發送單元603,被配置為向所述發送方發送所述第二結果。 The result transmitting unit 603 is configured to transmit the second result to the sender.

該裝置也還可以包括: The device may also include:

增加單元604,被配置為在所述預儲存的結果中添加所述第二結果。 An adding unit 604 is configured to add the second result to the pre-stored result.

在另一實施例中,如圖7所示,結果查找單元502可以進一步包括: In another embodiment, as shown in FIG. 7, the result finding unit 502 may further include:

提取子單元701,被配置為獲取所述第一電文中包含的請求資訊及有效期。 The extracting subunit 701 is configured to acquire request information and an expiration date included in the first telegram.

查找子單元702,被配置為在預儲存的結果中查找是否存在與所述請求資訊對應的結果。 The lookup subunit 702 is configured to look in the pre-stored result whether there is a result corresponding to the request information.

判定子單元703,被配置為在預儲存的結果中查找到與所述請求資訊對應的結果時,判斷所述結果是否滿足所述有效期;若是,則確認所述結果為與所述第一電文匹配的第一結果,若否,則確認不存在所述第一結果。 The determining subunit 703 is configured to: when the result corresponding to the request information is found in the pre-stored result, determine whether the result satisfies the validity period; if yes, confirm that the result is the first message The first result of the match, if not, confirms that the first result does not exist.

在另一實施例中,如圖8所示,該裝置還可以包括: In another embodiment, as shown in FIG. 8, the device may further include:

服務檢測單元801,被配置為基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定所述伺服器在當前週期內的服務可用性。 The service detecting unit 801 is configured to determine the service availability of the server during the current period based on a health check performed by the specified port or service program of the server at a timing.

結果儲存單元803,被配置為依據所述當前週期內的服務可用性生成檢測的結果,對所述結果進行儲存。 The result storage unit 803 is configured to store the result according to the service availability generation detection result in the current period.

上述請求資訊可以包括請求類型、RSIP和RSport。 The above request information may include a request type, a RSIP, and an RSport.

上述指定類型的電文可以是HC請求電文。 The above specified type of message may be an HC request message.

本申請實施例還提供了一種電子設備,包括儲存器、收發器和處理器。 The embodiment of the present application further provides an electronic device, including a storage, a transceiver, and a processor.

處理器與收發器、儲存器透過匯流排相互連接;匯流排可以是ISA匯流排、PCI匯流排或EISA匯流排等。所述匯流排可以分為地址匯流排、資料匯流排、控制匯流排等。 The processor and the transceiver and the storage are connected to each other through a bus bar; the bus bar can be an ISA bus, a PCI bus, or an EISA bus. The bus bar can be divided into an address bus, a data bus, a control bus, and the like.

其中,儲存器用於儲存一段程式,具體地,程式可以包括程式代碼,所述程式代碼包括計算機操作指令。儲存器可能包含高速RAM儲存器,也可能還包括非易失性記憶體(non-volatile memory),例如至少一個磁碟儲存器。 The storage device is configured to store a program. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may contain high speed RAM memory and may also include non-volatile memory, such as at least one disk storage.

收發器用於接收發送方發送的第一電文;向所述發送方發送第一結果。 The transceiver is configured to receive the first message sent by the sender, and send the first result to the sender.

處理器用於讀取儲存器中的程式代碼,執行以下步驟:當所述第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與所述第一電文匹配的第一結果;若是,則通知收發器向發送方發送第一結果。 The processor is configured to read the program code in the storage, and perform the following steps: when the first message is a specified type of message, searching for a first result matching the first message in the pre-stored result; If so, the transceiver is notified to send the first result to the sender.

對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

本說明書中的各個實施例均採用漸進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個 實施例之間相同相似的部分互相參見即可。 Each of the embodiments in the present specification is described in a gradual manner, and each embodiment is mainly described as being different from the other embodiments, and the same or similar portions between the respective embodiments may be referred to each other.

本領域內的技術人員應明白,本申請實施例的實施例可提供為方法、裝置、或計算機程式產品。因此,本申請實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本申請實施例可採用在一個或多個其中包含有計算機可用程式代碼的計算機可用儲存媒體(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的計算機程式產品的形式。 Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Thus, embodiments of the present application may take the form of a complete hardware embodiment, a fully software embodiment, or an embodiment combining soft and hardware aspects. Moreover, embodiments of the present application may employ computer program products embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable code therein. form.

在一個典型的配置中,所述計算機設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和內存記憶體。內存記憶體可能包括計算機可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性內存記憶體等形式,如唯讀記憶體(ROM)或快閃內存記憶體(flash RAM)。內存記憶體是計算機可讀媒體的示例。計算機可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是計算機可讀指令、資料結構、程式的模組或其他資料。計算機的儲存媒體的例子包括,但不限於相變內存記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他內存技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁碟儲存或其他磁性儲存設備或任何其他非傳 輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,計算機可讀媒體不包括非持續性的電腦可讀媒體(transitory media),如調變的資料信號和載波。 In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, a network interface, and memory. Memory memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory. Memory (flash RAM). Memory memory is an example of a computer readable medium. Computer readable media including both permanent and non-permanent, removable and non-removable media can be stored by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other materials. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM). ), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM only, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic tape cartridge, tape storage or other magnetic storage device or any other non-transportable media that can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include non-persistent computer readable media, such as modulated data signals and carrier waves.

本申請實施例是參照根據本申請實施例的方法、終端設備(系統)、和計算機程式產品的流程圖和/或方方塊圖來描述的。應理解可由計算機程式指令實現流程圖和/或方方塊圖中的每一流程和/或方塊、以及流程圖和/或方方塊圖中的流程和/或方塊的結合。可提供這些計算機程式指令到通用計算機、專用計算機、嵌入式處理機或其他可編程資料處理終端設備的處理器以產生一個機器,使得透過計算機或其他可編程資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方框或多個方框中指定的功能的裝置。 The embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. The computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing terminal device to generate a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are generated for implementing the functions specified in one or more blocks of a flow or a flow and/or a square block of a block diagram.

這些計算機程式指令也可儲存在能引導計算機或其他可編程資料處理終端設備以特定方式工作的計算機可讀儲存器中,使得儲存在該計算機可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能。 The computer program instructions can also be stored in a computer readable storage that can direct a computer or other programmable data processing terminal device to operate in a particular manner such that instructions stored in the computer readable storage produce an article of manufacture including the instruction device. The instruction means implements the functions specified in one or more blocks of a flow or a flow and/or a block diagram of the flowchart.

這些計算機程式指令也可裝載到計算機或其他可編程資料處理終端設備上,使得在計算機或其他可編程終端設備上執行一系列操作步驟以產生計算機實現的處理,從而在計算機或其他可編程終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方框 或多個方框中指定的功能的步驟。 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on a computer or other programmable terminal device to produce computer implemented processing for use in a computer or other programmable terminal device The instructions executed on the steps provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.

儘管已描述了本申請實施例的優選實施例,但本領域內的技術人員一旦得知了基本創造性概念,則可對這些實施例做出另外的變更和修改。所以,所附權利要求意欲解釋為包括優選實施例以及落入本申請實施例範圍的所有變更和修改。 While a preferred embodiment of the embodiments of the present application has been described, those skilled in the art can make further changes and modifications to the embodiments once they are aware of the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications

最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要件的過程、方法、物品或者終端設備不僅包括那些要件,而且還包括沒有明確列出的其他要件,或者是還包括為這種過程、方法、物品或者終端設備所固有的要件。在沒有更多限制的情況下,由語句“包括一個......”限定的要件,並不排除在包括所述要件的過程、方法、物品或者終端設備中還存在另外的相同要件。 Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Moreover, the terms "comprise," "comprise," or "include" or "include" or "include" or "include" or "includes" Other requirements are also included in the process, method, article or terminal equipment. In the absence of further limitations, the requirement defined by the phrase "comprising a ..." does not exclude the presence of additional equivalents in the process, method, article, or terminal device that includes the claim.

以上對本申請所提供的一種電文處理方法和一種電文處理裝置,進行了詳細介紹,本文中應用了具體個例對本申請的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本申請的方法及其核心思想;同時,對於本領域的一般技術人員,依據本申請的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書 內容不應理解為對本申請的限制。 The foregoing describes a message processing method and a message processing device provided by the present application in detail. The principles and implementation manners of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the present text. The method of application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be understood. To limit the application.

Claims (14)

一種電文處理方法,其特徵在於,包括:接收發送方發送的第一電文;當該第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與該第一電文匹配的第一結果;若是,則向該發送方發送該第一結果。  A method for processing a message, comprising: receiving a first message sent by a sender; and when the first message is a message of a specified type, searching for a first match with the first message in a pre-stored result The result; if so, the first result is sent to the sender.   根據申請專利範圍第1項所述的方法,其中,該方法還包括:當該預儲存的結果中不存在該第一結果時,將該第一電文發送至伺服器;接收該伺服器反饋的第二結果;向該發送方發送該第二結果。  The method of claim 1, wherein the method further comprises: sending the first message to the server when the first result is not present in the pre-stored result; receiving the feedback from the server a second result; the second result is sent to the sender.   根據申請專利範圍第2項所述的方法,其中,該方法還包括:在該預儲存的結果中添加該第二結果。  The method of claim 2, wherein the method further comprises: adding the second result to the pre-stored result.   根據申請專利範圍第1項所述的方法,其中,該在預儲存的結果中查找是否存在與該第一電文匹配的第一結果,包括:獲取該第一電文中包含的請求資訊及有效期;在預儲存的結果中查找是否存在與該請求資訊對應的結果;若存在,則判斷該結果是否滿足該有效期;若是,則確認該結果為與該第一電文匹配的第一結果,若否,則確認不存在該第一結果。  The method of claim 1, wherein the finding, in the pre-stored result, whether there is a first result matching the first message comprises: obtaining the request information and the validity period included in the first message; Finding whether there is a result corresponding to the requested information in the pre-stored result; if yes, determining whether the result meets the validity period; if yes, confirming that the result is the first result matching the first message, and if not, Then confirm that the first result does not exist.   根據申請專利範圍第1項所述的方法,其中,該方法還包括:基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定該伺服器在當前週期內的服務可用性;依據該當前週期內的服務可用性生成檢測的結果,對該結果進行儲存。  The method of claim 1, wherein the method further comprises: determining a service availability of the server in a current period based on a health check performed by a specified port or a service program of the server; The service availability in the current cycle generates the result of the test and stores the result.   根據申請專利範圍第4項所述的方法,其中,該請求資訊包括請求類型、目的地IP地址和目的地埠口。  The method of claim 4, wherein the request information includes a request type, a destination IP address, and a destination port.   根據申請專利範圍第1至6項中任意一項所述的方法,其中,該指定類型的電文為健康檢查HC請求電文。  The method of any one of claims 1 to 6, wherein the specified type of message is a health check HC request message.   一種電文處理裝置,其特徵在於,包括:電文接收單元,被配置為接收發送方發送的第一電文;結果查找單元,被配置為當該第一電文為指定類型的電文時,在預儲存的結果中查找是否存在與該第一電文匹配的第一結果;結果反饋單元,被配置為當該查找單元查找到與該第一電文匹配的第一結果是,向該發送方發送該第一結果。  A message processing apparatus, comprising: a message receiving unit configured to receive a first message sent by a sender; and a result finding unit configured to pre-store when the first message is a specified type of message Determining, in the result, whether there is a first result matching the first message; the result feedback unit is configured to send the first result to the sender when the search unit finds that the first result matching the first message is .   根據申請專利範圍第8項所述的裝置,其中,該裝置還包括:發送單元,被配置為當該預儲存的結果中不存在該第一結果時,將該第一電文發送至伺服器;結果接收單元,被配置為接收該伺服器反饋的第二結果; 結果發送單元,被配置為向該發送方發送該第二結果。  The device of claim 8, wherein the device further comprises: a sending unit configured to send the first message to the server when the first result does not exist in the pre-stored result; The result receiving unit is configured to receive the second result of the server feedback; and the result sending unit is configured to send the second result to the sender.   根據申請專利範圍第9項所述的裝置,其中,該裝置還包括:增加單元,被配置為在該預儲存的結果中添加該第二結果。  The device of claim 9, wherein the device further comprises: an adding unit configured to add the second result to the pre-stored result.   根據申請專利範圍第8項所述的裝置,其中,該結果查找單元包括:提取子單元,被配置為獲取該第一電文中包含的請求資訊及有效期;查找子單元,被配置為在預儲存的結果中查找是否存在與該請求資訊對應的結果;判定子單元,被配置為在預儲存的結果中查找到與該請求資訊對應的結果時,判斷該結果是否滿足該有效期;若是,則確認該結果為與該第一電文匹配的第一結果,若否,則確認不存在該第一結果。  The device according to claim 8, wherein the result finding unit comprises: an extracting subunit configured to acquire request information and an expiration date included in the first telegram; and the searching subunit configured to be pre-stored The result of the finding is whether there is a result corresponding to the request information; the determining subunit is configured to determine whether the result meets the validity period when the result corresponding to the request information is found in the pre-stored result; if yes, confirm The result is a first result that matches the first message, and if not, it is confirmed that the first result does not exist.   根據申請專利範圍第8項所述的裝置,其中,該裝置還包括:服務檢測單元,被配置為基於定時對伺服器的指定埠口或服務程式執行的健康檢查,確定該伺服器在當前週期內的服務可用性;結果儲存單元,被配置為依據該當前週期內的服務可用性生成檢測的結果,對該結果進行儲存。  The device of claim 8, wherein the device further comprises: a service detecting unit configured to determine the server in the current cycle based on a health check performed by the specified port or service program of the server at a timing The service availability within the result; the result storage unit is configured to generate a result of the detection based on the service availability in the current period, and store the result.   根據申請專利範圍第11項所述的裝置,其中,該 請求資訊包括請求類型、目的地IP地址和目的地埠口。  The device of claim 11, wherein the request information includes a request type, a destination IP address, and a destination port.   根據申請專利範圍第8至13項中任意一項所述的裝置,其中,該指定類型的電文為健康檢查HC請求電文。  The device of any one of clauses 8 to 13, wherein the specified type of message is a health check HC request message.  
TW106102246A 2017-01-20 2017-01-20 Method and device for processing telegrams TWI720113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106102246A TWI720113B (en) 2017-01-20 2017-01-20 Method and device for processing telegrams

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106102246A TWI720113B (en) 2017-01-20 2017-01-20 Method and device for processing telegrams

Publications (2)

Publication Number Publication Date
TW201828669A true TW201828669A (en) 2018-08-01
TWI720113B TWI720113B (en) 2021-03-01

Family

ID=63960372

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106102246A TWI720113B (en) 2017-01-20 2017-01-20 Method and device for processing telegrams

Country Status (1)

Country Link
TW (1) TWI720113B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103181129B (en) * 2011-10-25 2015-09-30 华为技术有限公司 Data message processing method and system, message forwarding equipment
CN102932444B (en) * 2012-10-29 2015-11-25 上海银商资讯有限公司 Load balancing module in finance real-time transaction system
CN104301184B (en) * 2014-10-31 2017-10-27 北京百度网讯科技有限公司 The health examination method and device of link

Also Published As

Publication number Publication date
TWI720113B (en) 2021-03-01

Similar Documents

Publication Publication Date Title
WO2017080386A1 (en) Method and device for processing message
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
US9667674B2 (en) Method, device, and system for connecting to a communication device
WO2017045538A1 (en) Http-based cache, request and response methods, and corresponding apparatuses
US10110538B2 (en) Method and apparatus for message transmission
JP6588477B2 (en) Remote information query method and server
CN103401946B (en) HTTP uploads accelerated method and system
TWI565258B (en) System, method and device for filtering https network packet
WO2017031460A1 (en) Device and method for establishing connection in load-balancing system
US8326920B1 (en) Connection sharing
EP3159803B1 (en) Data storage method and network interface card
WO2017218659A1 (en) Generating and transmitting back-to-source routing information
JP2017517064A5 (en)
WO2018153256A1 (en) Method and apparatus for accelerating dynamic resource access, medium, and device
CN104639555B (en) request processing method, system and device
CN110943876B (en) URL state detection method, device, equipment and system
WO2018018490A1 (en) Access distribution method, device and system
JP6074550B2 (en) Web page push method and apparatus, and terminal
US9866390B2 (en) Data transmitting method suitable to client and server, data transmitting system and data transmitting method for client suitable to transmit and receive data to and from server
TW201828669A (en) Message processing method and apparatus reducing the processing load of the backend server for a HC request
US10104530B2 (en) Information query method, device, and system
TW201644249A (en) Devices and methods for performing TCP handshakes
CN112804366A (en) Method and device for resolving domain name
TW201533593A (en) Method for processing URL and associated server and non-transitory computer readable storage medium
CN114338574A (en) Instant messaging method, management node and system