TW201904250A - High efficient message transmission method - Google Patents

High efficient message transmission method Download PDF

Info

Publication number
TW201904250A
TW201904250A TW106117849A TW106117849A TW201904250A TW 201904250 A TW201904250 A TW 201904250A TW 106117849 A TW106117849 A TW 106117849A TW 106117849 A TW106117849 A TW 106117849A TW 201904250 A TW201904250 A TW 201904250A
Authority
TW
Taiwan
Prior art keywords
message
file
receiving end
transmission
transmission method
Prior art date
Application number
TW106117849A
Other languages
Chinese (zh)
Other versions
TWI634773B (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 TW106117849A priority Critical patent/TWI634773B/en
Application granted granted Critical
Publication of TWI634773B publication Critical patent/TWI634773B/en
Publication of TW201904250A publication Critical patent/TW201904250A/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a high efficient message transmission method, the method including: packaging the file for transmission using a package format by the transmission end to generate a message package file; transmitting the message package file to a receiving end by a first transmission protocol; transmitting a notifying message to the receiving end using a second transmission protocol after the message package file is transmitted; obtaining the storage position of the message package file according to the notifying message by the receiving end and downloading the message package file for inspection, and transmitting a response message to the transmission end by the receiving end, thereby using two types of communication protocols in combination with a data package method to satisfy the need for high efficiency and massive data transmission.

Description

高效能訊息傳輸方法  High performance message transmission method  

本發明係關於一種訊息傳輸技術,詳而言之,係關於一種具備完整性和高效能之訊息傳輸方法。 The present invention relates to a message transmission technique, and more particularly to a message transmission method with integrity and high performance.

目前在全球網際網上的資料交換協定,各有其先天限制,有些傳輸協定具有「資料完整性」以及「訊息來源之不可否認性」之特定,有些傳輸協定則可滿足大檔案傳輸,然若要兼顧「資料完整性」及「訊息來源之不可否認性」,同時又要滿足「大量傳輸」及「大檔案傳輸」時,則會有效能問題。 At present, the data exchange agreements on the global Internet have their own innate restrictions. Some transmission agreements have the specificity of "data integrity" and "non-repudiation of the source of information". Some transmission agreements can satisfy the transmission of large files. It is effective to have both "data integrity" and "non-repudiation of the source of information" while satisfying "mass transmission" and "large file transmission".

現行針對「資料完整性」以及「訊息來源之不可否認性」之需求,可仰賴PKI技術進行資料的簽章處理,之後再進行資料傳輸,且若同時有多個檔案,則可進行壓縮或打包再進行簽章作業,但在此方式下,若接收端接收檔案後,僅要針對當中的某個檔案處理,則仍需對整份已包裝好的檔案進行處理,使得處理過程會有額外耗能的情況。 The current demand for "data integrity" and "non-repudiation of the source of information" can rely on PKI technology for signature processing of data, followed by data transmission, and if there are multiple files at the same time, it can be compressed or packaged. Then the signing operation is carried out, but in this mode, if the receiving end receives the file and only needs to process one of the files, the entire packaged file still needs to be processed, so that the processing will have additional consumption. The situation.

舉例來說,ebMS(ebXML Message Service)交易協定可提供全球電子商業用戶在網際網路上一種透通、安全且一致性的電子商業資訊交換環境,使得各產業間於電子貿易 文件在水平交換時,能夠使用安全且一致性的標準所訂定之規格。惟,ebMS2.0協定在訊息交換時,有無法傳輸大檔案的先天限制,亦即在考量安全、一致性下,卻無法有大檔案傳輸的效能。此外,採用此協定時,若訊息經由中介節點,則無法進行端對端(end-to-end)之認證,故缺乏確認訊息來源之不可否認性的功能。 For example, the ebMS (ebXML Message Service) transaction agreement provides a transparent, secure and consistent electronic business information exchange environment for electronic business users worldwide on the Internet, enabling industries to exchange electronic trade documents horizontally. Ability to use specifications set by safe and consistent standards. However, in the exchange of information, the ebMS2.0 protocol has innate limitations on the inability to transfer large files, that is, in consideration of security and consistency, it cannot have the effect of large file transmission. In addition, when this protocol is used, if the message passes through the intermediate node, end-to-end authentication cannot be performed, so there is no function of confirming the non-repudiation of the source of the message.

另外,現在資料在傳輸完成時,除非接收端自行開發程式進行處理,也就是,在接收到最後一個封包時立即進行處理,否則一般是以輪詢(Polling)方式,每隔一段時間檢查資料夾,若確定檔案傳輸完成時才會進行後續作業,惟輪詢方式缺乏效率,輪詢的時間區間過小,會耗費不必要的CPU資源,但若時間區間過大,則有不夠即時的缺陷。 In addition, when the data is completed, the data is processed by the receiving end itself, that is, it is processed immediately when the last packet is received. Otherwise, the polling method is generally used to check the folder at intervals. If it is determined that the file transfer is completed, the subsequent operation will be performed. However, the polling method is inefficient, and the polling time interval is too small, which will consume unnecessary CPU resources. However, if the time interval is too large, there is a defect that is not immediate.

由上可知,如何找出一種訊息傳輸技術,期盼可具備資料完整性及訊息來源之不可否認性等需求外,又同時可兼顧大量傳輸及大檔案傳輸等效能,藉以提供一種安全、高效能的傳輸機制,此實為目前本技術領域人員急迫解決之技術問題。 From the above, how to find a message transmission technology, looking forward to the need for data integrity and non-repudiation of the source of information, while at the same time taking into account the large number of transmission and large file transmission equivalent energy, in order to provide a safe and efficient The transmission mechanism, which is a technical problem urgently solved by those skilled in the art.

鑒於上述習知技術之缺點,本發明之目的係提出一種資料傳輸方法,透過兩種傳輸協定以及資料封裝,藉此符合「資料完整性」、「訊息來源之不可否認性」、「大量傳輸」以及「大檔案傳輸」之傳輸需求。 In view of the above disadvantages of the prior art, the object of the present invention is to provide a data transmission method that conforms to "data integrity", "non-repudiation of message source", "mass transmission" through two transmission protocols and data encapsulation. And the transmission needs of "large file transfer".

為達成前述目的及其他目的,本發明係提出一種高效能訊息傳輸方法,該方法包括:令傳送端將欲傳送檔案以 封裝格式封裝,進而產生訊息封裝檔;令該訊息封裝檔透過第一傳輸協定傳送至接收端;於該訊息封裝檔傳送至該接收端後,令該傳送端透過第二傳輸協定發送一通知訊息至該接收端;以及該接收端藉由該通知訊息取得該訊息封裝檔之儲存位置後,令該接收端下載該訊息封裝檔以進行檢核,再由該接收端傳送回覆訊息至該傳送端。 To achieve the foregoing and other objects, the present invention provides a high-performance message transmission method, the method comprising: causing a transmitting end to encapsulate a file to be transmitted in a package format, thereby generating a message package file; and causing the message package file to transmit through the first transmission The protocol is transmitted to the receiving end; after the message encapsulation file is transmitted to the receiving end, the transmitting end sends a notification message to the receiving end through the second transmission protocol; and the receiving end obtains the message encapsulation file by using the notification message After the storage location, the receiving end downloads the message package file for checking, and then the receiving end transmits a reply message to the transmitting end.

於一實施例中,該第一傳輸協定為大檔傳輸協定,該第二傳輸協定為雙向認證之交換協定。 In an embodiment, the first transmission agreement is a large-scale transmission agreement, and the second transmission agreement is an exchange agreement of mutual authentication.

於另一實施例中,該接收端無法由該通知訊息取得該訊息封裝檔時,令該接收端傳送包含該接收端之簽章值以及檔案不存在之訊息封包。 In another embodiment, when the receiving end cannot obtain the message encapsulation file by the notification message, the receiving end transmits the message packet including the signature value of the receiving end and the file not existing.

於又一實施例中,該通知訊息包括該傳送端之簽章值以及該訊息封裝檔之中介資料,且其中,該中介資料包括指紋資料、時戳及/或識別碼。 In still another embodiment, the notification message includes a signature value of the transmitting end and an intermediary data of the message encapsulation file, and wherein the intermediary information includes a fingerprint data, a time stamp, and/or an identification code.

於再一實施例中,該檢核之進行係包括計算該訊息封裝檔中各附檔之雜湊值,以與該通知訊息中該指紋資料進行比對。另外,該檢核之進行係還包括比對該傳送端之簽章值以及該訊息封裝檔內對應之簽章值。 In still another embodiment, the checking is performed by calculating a hash value of each of the attachments in the message package to compare the fingerprint data in the notification message. In addition, the checking process further includes a signature value corresponding to the transmitting end and a corresponding signature value in the message package file.

於又一實施例中,該欲傳送檔案分為主訊息和附檔,且其中,該附檔係透過雜湊演算法以得到該附檔之雜湊數,且於該雜湊數置入該主訊息後進行數位簽章。 In still another embodiment, the file to be transmitted is divided into a main message and an attached file, and wherein the attached file is obtained by a hash algorithm to obtain a hash number of the attached file, and after the hash number is placed in the main message Make a digital signature.

於另一實施例中,該訊息封裝檔包括該主訊息之原文、使用該原文簽章計算但不含該原文之數位簽章及/或該附檔,且該封裝格式為多用途互聯網郵件擴展 (Multipurpose Internet Mail Extensions,MIME)。 In another embodiment, the message package includes the original text of the main message, the digital signature calculated using the original signature but not including the original text, and/or the attachment, and the package format is a multi-purpose Internet mail extension. (Multipurpose Internet Mail Extensions, MIME).

相較於習知技術,本發明提出之高效能訊息傳輸方法,同時利用兩種通訊協定,藉此達到大量傳輸、大檔案傳輸以及高效能等需求,具體來說,為了滿足大量傳輸、大檔案傳輸之特性,可透過例如FTP、FTPS或SFTP,先行將已封裝檔案傳送至接收端,接著透過例如ebMS通訊協定來通知接收端取得封裝檔案並進行處理,因為採用ebMS通訊協定可符合傳輸安全性和一致性等需求,故運用兩種通訊協定,藉此達到本發明所述之高效率訊息傳輸。 Compared with the prior art, the high-efficiency message transmission method proposed by the present invention utilizes two communication protocols at the same time, thereby achieving a large number of transmissions, large file transmission, and high-performance requirements, specifically, in order to satisfy a large number of transmissions and large files. The transmission feature can transmit the encapsulated file to the receiving end through, for example, FTP, FTPS or SFTP, and then notify the receiving end to obtain the package file and process it through, for example, the ebMS protocol, because the ebMS protocol can be used to meet the transmission security. And the need for consistency, etc., so two communication protocols are used to achieve the efficient message transmission described in the present invention.

21‧‧‧範圍 21‧‧‧Scope

31‧‧‧主訊息 31‧‧‧Main message

S11~S14‧‧‧步驟 S11~S14‧‧‧Steps

S41~S48‧‧‧流程 S41~S48‧‧‧ Process

S51~S562‧‧‧流程 S51~S562‧‧‧Process

第1圖係本發明之高效能訊息傳輸方法的步驟圖;第2圖係本發明之高效能訊息傳輸方法有關MIME訊息結構的關係示意圖;第3圖係本發明之高效能訊息傳輸方法有關MIME訊息中主訊息與附檔的關係示意圖;第4圖係本發明之高效能訊息傳輸方法中傳送端與接收端有關檔案傳送與訊息傳遞的處理流程圖;以及第5圖係本發明之高效能訊息傳輸方法中傳送端與接收端有關檢核與驗證的處理流程圖。 1 is a step diagram of a high-performance message transmission method of the present invention; FIG. 2 is a schematic diagram showing a relationship of a MIME message structure of the high-performance message transmission method of the present invention; and FIG. 3 is a high-performance message transmission method of the present invention relating to MIME A schematic diagram of the relationship between the main message and the attached file in the message; FIG. 4 is a flowchart of processing for transmitting and transmitting the file between the transmitting end and the receiving end in the high-performance message transmitting method of the present invention; and FIG. 5 is a high performance of the present invention A processing flow chart for checking and verifying between the transmitting end and the receiving end in the message transmission method.

以下藉由特定的具體實施形態說明本發明之技術內容,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之優點與功效。然本發明亦可藉由其他不同的具體實施形態加以施行或應用。 The technical contents of the present invention are described below by way of specific embodiments, and those skilled in the art can easily understand the advantages and effects of the present invention from the contents disclosed in the present specification. The invention may be embodied or applied by other different embodiments.

現行企業為了提升效率,公司內外部須進行訊息交換。本發明所述之訊息可以檔案型式存放,而訊息的類別可依其關係,定義為「主訊息」及與其「附檔」。為了同時滿足「大量傳輸」、「大檔案傳輸」、「完整性」、「不可否認性」、「保證傳輸」、「高效能」等特性,本發明提出一種訊息傳輸方法,主要包含兩個部份:傳送訊息的格式以及傳送訊息的方式。 In order to improve efficiency, existing companies must exchange information inside and outside the company. The message of the present invention can be stored in an archive format, and the type of the message can be defined as "main message" and "attached" according to its relationship. In order to satisfy the characteristics of "mass transmission", "large file transmission", "integrity", "non-repudiation", "guaranteed transmission", "high performance", etc., the present invention provides a message transmission method, which mainly comprises two parts. Share: The format of the message to be sent and the way the message is sent.

傳送訊息的格式係指檔案如何簽章與封裝,藉此滿足資料完整性和不可否認性。本發明之訊息係以檔案型式存放,訊息依其關係為主訊息及/或其附檔,附檔的資訊,利用雜湊演算法,取出附檔之雜湊值,之後放入主訊息中進行封裝,而主訊息的簽章是利用PKI技術進行處理,儲存成Detached特性的簽章格式,最後,可將主訊息、主訊息之簽章值(不含主訊息原文)及附檔利用MIME(Multipurpose Internet Mail Extensions)的資料交換標準進行封裝。 The format of the transmitted message refers to how the file is signed and packaged, thereby satisfying the integrity and non-repudiation of the data. The message of the present invention is stored in a file format, and the message is based on its relationship as the main message and/or its attached file, and the attached information is obtained by using a hash algorithm, and the hash value of the attached file is taken out, and then placed in the main message for encapsulation. The signature of the main message is processed by PKI technology and stored in the signature format of the Detached feature. Finally, the signature of the main message, the main message (without the main message) and the attached file can be used for MIME (Multipurpose Internet). Mail Extensions) is encapsulated by the data exchange standard.

傳送訊息係指檔案如何執行傳輸,藉此滿足保證傳輸、大量傳輸以及大檔案傳輸。本案提出將兩種類型通訊協定結合,選擇具大檔傳輸以及雙向交換認證等特性的傳輸協定,滿足傳輸大檔案,並配合即時通知處理,通知接收端立即訊息處理。 Transmitting a message refers to how a file performs a transfer, thereby ensuring guaranteed transmission, mass transfer, and large file transfer. This case proposes to combine two types of communication protocols, select transmission protocols with large-scale transmission and two-way exchange authentication, satisfy the transmission of large files, and cooperate with the instant notification processing to notify the receiving end of immediate message processing.

請參照第1圖,係為本發明之高效能訊息傳輸方法的步驟圖,主要說明傳送端與接收端兩者間如何有效率地傳送大檔案,且可確保傳輸安全性和一致性等需求。 Please refer to FIG. 1 , which is a step diagram of the high-performance message transmission method of the present invention, which mainly explains how to efficiently transfer large files between the transmitting end and the receiving end, and ensures the security and consistency of transmission.

於步驟S11中,令傳送端將欲傳送檔案以封裝格式封 裝以產生訊息封裝檔。首先,欲傳送將先進行封裝以產生一訊息封裝檔,檔案的封裝格式與方式,是配合傳輸協定,同時考量資料完整性以及訊息傳送之不可否認性。 In step S11, the transmitting end causes the transmitting end to package the file to be packaged in an encapsulation format to generate a message encapsulation file. First, the transmission is to be encapsulated first to generate a message package file. The package format and mode of the file is in conjunction with the transmission protocol, while considering the integrity of the data and the non-repudiation of the message transmission.

具體來說,欲傳送檔案可被分為主訊息和附檔,其中,附檔透過雜湊演算法可得到附檔之雜湊數,接著,此雜湊數被置入主訊息後進行數位簽章,即透過PKI技術進行數位簽章。 Specifically, the file to be transmitted can be divided into a main message and an attached file, wherein the attached file can obtain the number of the attached files through the hash algorithm, and then the hash number is placed in the main message and the digital signature is performed, that is, Digital signature through PKI technology.

接著,利用用途互聯網郵件擴展(Multipurpose Internet Mail Extensions,MIME)之封裝格式來封裝相關訊息,因而訊息封裝檔將包括主訊息之原文、使用該原文簽章計算但不含該原文之數位簽章及/或附檔,其中,主訊息之原文會與其簽章值分離,也就是說,使用原文完成簽章計算後,並不會將原文包含在簽章訊息中。 Then, the related information is encapsulated by the package format of the Multipurpose Internet Mail Extensions (MIME), and thus the message package file will include the original text of the main message, the digital signature calculated using the original signature but not including the original text. / or attached file, where the original text of the main message will be separated from its signature value, that is, after the signature calculation is completed using the original text, the original text is not included in the signature message.

於步驟S12中,該訊息封裝檔透過第一傳輸協定傳送至接收端。於本步驟中,傳送端會透過第一傳輸協定,將訊息封裝檔傳送至接收端,於此所述之第一傳輸協定將是利於大檔案或大量傳輸的傳輸協定,例如檔案傳輸協定(File Transfer Protocol,FTP)、FTPS(FTP over SSL)或SFTP(SSH FTP)。 In step S12, the message encapsulation file is transmitted to the receiving end through the first transmission protocol. In this step, the transmitting end transmits the message encapsulation file to the receiving end through the first transmission protocol, and the first transmission protocol described herein is a transmission protocol conducive to large files or a large number of transmissions, such as a file transfer protocol (File Transfer Protocol, FTP), FTPS (FTP over SSL) or SFTP (SSH FTP).

於步驟S13中,於該訊息封裝檔傳送至該接收端後,該傳送端透過第二傳輸協定發送一通知訊息至該接收端。於本步驟中,待訊息封裝檔傳送至接收端後,傳送端會發送一通知訊息至接收端,此通知訊息用於告知接收端可進行檔案存取及處理,亦即通知接收端檔案已送達,接收端 可存取檔案並確認正確與否。 In step S13, after the message encapsulation file is transmitted to the receiving end, the transmitting end sends a notification message to the receiving end through the second transmission protocol. In this step, after the message encapsulation file is transmitted to the receiving end, the transmitting end sends a notification message to the receiving end, and the notification message is used to inform the receiving end that the file access and processing can be performed, that is, the receiving end file is delivered. The receiving end can access the file and confirm whether it is correct or not.

傳送通知訊息時,此時非採用可用於傳輸大檔案的第一傳輸協定,而是採用可確保雙向交換認證之傳輸協定,即此處所述之第二傳輸協定,舉例來說,第二傳輸協定可為ebMS(ebXML Message Service)通訊協定。 When the notification message is transmitted, the first transmission protocol that can be used to transmit the large file is not used at this time, but a transmission protocol that ensures two-way exchange authentication, that is, the second transmission protocol described herein, for example, the second transmission The agreement can be an ebMS (ebXML Message Service) protocol.

具體來說,通知訊息可包括傳送端之簽章值以及訊息封裝檔之中介資料,傳送端之簽章值可供接收端進行簽章認證,而訊息封裝檔之中介資料可供接收端進行檔案正確與否的檢核,其中,中介資料可包括指紋資料、時戳及/或識別碼。接收端可利用中介資料之指紋資料,驗證訊息封裝檔中的指紋是否相同,藉此確保資料完整性,而判斷時戳是否過長以及識別碼是否重覆,可確保大檔案資料與通知訊息可相互對應,此有利於避免中間人攻擊或重覆處理訊息。 Specifically, the notification message may include the signature value of the transmitting end and the intermediary information of the message encapsulation file, and the signature value of the transmitting end may be used for signature authentication by the receiving end, and the mediation information of the message encapsulation file may be used by the receiving end to perform the file. Correction of the correctness, wherein the intermediary information may include fingerprint data, time stamps and/or identification codes. The receiving end can use the fingerprint data of the intermediary data to verify whether the fingerprints in the message package file are the same, thereby ensuring the integrity of the data, and determining whether the time stamp is too long and the identification code is repeated, thereby ensuring that the large file data and the notification message can be Corresponding to each other, this helps to avoid man-in-the-middle attacks or repeated processing of messages.

於步驟S14中,該接收端藉由該通知訊息取得該訊息封裝檔之儲存位置後,令該接收端下載該訊息封裝檔以進行檢核,再由該接收端傳送回覆訊息至該傳送端。於此所述的檢核,包括接收端是否有收到訊息封裝檔、附檔資料正確與否以及訊息簽章比對。 In step S14, after receiving the storage location of the message package file by the notification message, the receiving end downloads the message package file for checking, and then the receiving end transmits a reply message to the transmitting end. The checksum described herein includes whether the receiving end receives the message package file, whether the attached file data is correct or not, and the message signature comparison.

接收端是否有收到訊息封裝檔之檢核,係指接收端應由通知訊息取得訊息封裝檔,倘若接收端無法由通知訊息取得訊息封裝檔時,則接收端可傳送包含接收端之簽章值以及檔案不存在之訊息封包至傳送端,藉以要求傳送端再進行訊息封裝檔之傳送。 Whether the receiving end receives the check of the message package, the receiving end should obtain the message encapsulation file from the notification message. If the receiving end cannot obtain the message encapsulation file from the notification message, the receiving end can transmit the signature including the receiving end. The value and the message that the file does not exist are encapsulated to the transmitting end, so that the transmitting end requests the transmission of the message encapsulation file.

附檔資料正確與否之檢核,目的是要確認檔案內容不被竄改。檢核時,接收端會計算訊息封裝檔中各附檔之雜湊值,接著與收到之通知訊息中指紋資料進行比對,指紋資料如前所述,為利用雜湊演算法由附檔所取得之雜湊值者,接收端透過雜湊值與指紋資料之比對,確認檔案內容正確性。 The verification of the correctness of the attached documents is to confirm that the contents of the files have not been tampered with. During the check, the receiving end calculates the hash value of each attached file in the message encapsulation file, and then compares it with the fingerprint data in the received notification message. The fingerprint data is as described above for the use of the hash algorithm. For the hash value, the receiving end compares the hash value with the fingerprint data to confirm the correctness of the file content.

訊息簽章比對之檢核,目的是作為雙方傳輸認證之用,亦即,接收端會比對傳送端之簽章值以及訊息封裝檔內對應之簽章值,若兩者相同,則表示所收到訊息未遭竄改。 The message signature check is used for the purpose of transmitting authentication for both parties. That is, the receiving end compares the signature value of the transmitting end with the corresponding signature value in the message encapsulation file. If the two are the same, it means The message received has not been tampered with.

本發明所提出之高效能訊息傳輸方法,結合新的封裝方式以及同時利用兩種通訊協定,以同時滿足大量傳輸、大檔案傳輸、完整性、不可否認性、保證傳輸、高效能等特性。 The high-efficiency message transmission method proposed by the invention combines a new packaging method and simultaneously utilizes two communication protocols to simultaneously satisfy the characteristics of mass transmission, large file transmission, integrity, non-repudiation, guaranteed transmission, high performance and the like.

大量傳輸是指傳遞大量多筆訊息,訊息可以檔案型式存放,例如同時傳送超過100個檔案的數量。大檔案傳輸是指所傳遞的訊息,檔案所佔之位元組數相當多,舉例來說,例如傳送超過100MB的檔案。 A large number of transmissions means that a large number of messages are transmitted, and the messages can be stored in an archive format, for example, the number of files transmitted over 100 files at the same time. Large file transfer refers to the message that is transmitted. The file occupies a considerable number of bytes. For example, for example, a file with more than 100MB is transmitted.

資料完整性是指確保在檔案傳輸過程中,檔案內的資料不會被竄改。不可否認性是指訊息傳送與訊息接收之不可否認性,也就是說,確保傳送端無法否認檔案確實由其傳送,以及確保接收端無法否認其已接收檔案。保證傳輸是指傳送端能確定接收端已接收。 Data integrity means that the data in the file will not be tampered with during the file transfer process. Non-repudiation refers to the non-repudiation of message transmission and message reception, that is, to ensure that the sender cannot deny that the file is actually transmitted by it, and that the receiver cannot deny that it has received the file. Guaranteed transmission means that the transmitting end can determine that the receiving end has received.

為了達成上述特性,在檔案傳輸的各階段(例如前、中、後階段)所額外產生的記憶體、CPU、頻寬等耗用可最 小化,再者,檔案在傳輸完成時,接收端無需以輪詢的方式確保檔案傳輸完成,如此傳輸機制下,更凸顯出其屬高效能之傳輸模式。 In order to achieve the above characteristics, the memory, CPU, bandwidth, and the like which are additionally generated in each stage of the file transmission (for example, before, during, and after) can be minimized. Further, when the file is completed, the receiving end does not need to be used. In the polling way to ensure the completion of the file transfer, this transmission mechanism highlights its high-performance transmission mode.

如前所述,本發明之高效能訊息傳輸方法透過新的封裝方式,可滿足資料完整性和訊息傳送之不可否認性,下面將說明本發明所提出的封裝方法。 As described above, the high-performance message transmission method of the present invention can satisfy the non-repudiation of data integrity and message transmission through a new encapsulation method. The encapsulation method proposed by the present invention will be described below.

為滿足資料完整性以及訊息傳送之不可否認性,本發明所用之資料封裝方法是以PKI技術對訊息進行簽章作業。具體來說,可藉由雜湊演算法串接「主訊息」與其「附檔」之間的關聯性,並且對「主訊息」進行簽章作業,最後,可將「主訊息」、「簽章值」與其「附檔」,利用MIME的資料交換標準進行封裝。 In order to satisfy the data integrity and the non-repudiation of message transmission, the data encapsulation method used in the present invention is a PKI technology for signing a message. Specifically, the association between the "main message" and its "attachment" can be concatenated by the hash algorithm, and the "main message" can be signed. Finally, the "main message" and "signature" can be The value and its "attachment" are encapsulated using the MIME data exchange standard.

為提升效率,傳送端僅會將「主訊息」進行簽章作業,「附檔」則不進行簽章作業,其中,「附檔」利用雜湊演算法取得該附檔之雜湊值,以作為其指紋資料,此指紋資料放進「主訊息」中,成為主訊息內容的一部分,另外,僅針對「主訊息」利用PKI技術進行數位簽章之處理,即傳送端以其私鑰進行簽章,接收端以傳送端的公鑰進行驗章。 In order to improve efficiency, the transmitter will only perform the signature operation for the "main message", and the "attachment" will not perform the signature operation. The "attachment" uses the hash algorithm to obtain the hash value of the attachment as its Fingerprint data, which is placed in the "main message" and becomes part of the main message content. In addition, the PKI technology is only used for the "main message" to process the digital signature, that is, the transmitting end is signed with its private key. The receiving end performs the verification by the public key of the transmitting end.

當「主訊息」利用PKI技術進行簽章時,儲存成Detached特性的簽章格式,例如PKCS1、PKCS7或XML等簽章格式。之後,利用MIME封裝相關訊息,也就是說,將「主訊息」之原文與其簽章值分離,於使用「主訊息」之原文完成簽章計算後,原文不會被包含在簽章訊息內。接著將原文與不含原文之簽章訊息,利用MIME的資料交 換標準將「主訊息」之原文、使用原文簽章計算但不含原文之簽章訊息以及「附檔」依序進行封裝。 When the "master message" is signed with PKI technology, it is stored in the signature format of the Detached feature, such as the signature format of PKCS1, PKCS7 or XML. After that, the MIME is used to encapsulate the related information, that is, the original text of the "main message" is separated from the signature value. After the signature calculation is completed using the original text of the "main message", the original text is not included in the signature message. Then, the original text and the signature message without the original text, using the MIME data exchange standard, the original text of the "main message", the original signature signature but not the original signature message and the "attachment" are sequentially packaged.

另外,也可利用MIME來封裝多筆訊息,亦即若有多個檔案,可使用相同方式進行處理,藉此提升I/O效能。另外,將「主訊息」之原文、使用原文簽章計算但不含原文之簽章訊息以及「附檔」依序進行封裝,在接收端接收訊息時,可依據MIME的資料標準,只取出所需資料進行處理,故可提升效能。 In addition, MIME can also be used to encapsulate multiple messages, that is, if there are multiple files, they can be processed in the same way, thereby improving I/O performance. In addition, the original text of the "main message", the signature message calculated using the original signature but not containing the original text, and the "attachment" are sequentially encapsulated. When receiving the message at the receiving end, only the MIME data standard can be taken out. Data needs to be processed to improve performance.

請參照第2圖,係為本發明之高效能訊息傳輸方法有關MIME訊息結構的關係示意圖。如圖所示,在MIME訊息(MIME message)中,包括多個部分(multi-part),如圖中範圍21所示,三個Body Part是一組的,第一個Body Part是Payload訊息,第二個Body Part是針對第一個Body Part的PKCS#7 Detached簽章值,第二個Body Part是包括附檔(Attached File)的擴充,可夾多個檔案,每一個附檔都是一個Body Part。因此,整個MIME訊息中可包含多組如上述之多個Body Part組成的訊息結構。 Please refer to FIG. 2, which is a schematic diagram of the relationship between the MIME message structure of the high-performance message transmission method of the present invention. As shown in the figure, in a MIME message, a multi-part is included, as shown in the range 21 in the figure, three Body Parts are a group, and the first Body Part is a Payload message. The second Body Part is the PKCS#7 Detached signature value for the first Body Part. The second Body Part is an extension that includes the Attached File. It can hold multiple files, and each attachment is a Body Part. Therefore, the entire MIME message may include a plurality of message structures composed of a plurality of Body Parts as described above.

請參照第3圖,係為本發明之高效能訊息傳輸方法有關MIME訊息中主訊息與附檔的關係示意圖。如圖所示,以一組多個Body Part組成的訊息結構為例,第一Body Part為主訊息,第二個Body Part為簽章值,其餘為附檔,如圖中Attached File(1)、Attached File(2)、Attached File(3)所示。 Please refer to FIG. 3, which is a schematic diagram of the relationship between the main message and the attached file in the MIME message according to the high-performance message transmission method of the present invention. As shown in the figure, a message structure composed of a plurality of Body Parts is taken as an example. The first Body Part is the main message, the second Body Part is the signature value, and the rest is the attached file, as shown in the figure, Attached File(1) , Attached File (2), Attached File (3).

如前所述,「附檔」會利用雜湊演算法取得該附檔之雜湊值,以作為其指紋資料,此指紋資料放進「主訊息」 中,成為主訊息內容的一部分。因此,可由圖中各附檔取得雜湊值(Hash value(1)、Hash value(2)、Hash value(3)),上述雜湊值會被置入主訊息,如圖中已置入雜湊值的主訊息31所示。 As mentioned above, the "attachment" will use the hash algorithm to obtain the hash value of the attachment as its fingerprint data, which is placed in the "main message" and becomes part of the main message content. Therefore, the hash value (Hash value (1), Hash value (2), Hash value (3)) can be obtained from each attachment in the figure, and the above hash value will be placed in the main message, as shown in the figure. The main message 31 is shown.

另外,本發明所使用之資料傳輸方法是結合兩種類型通訊協定,即包括「大檔傳輸協定」及「雙向認證之交換協定」。大檔傳輸協定是指適合用來傳輸大檔的通訊協定,例如FTP(File Transfer Protocol,FTP)、SFTP(SSH FTP)或FTPS(FTP over SSL),而本發明提出之資料封裝方式,將大量檔案與其簽章值封裝成大檔。雙向認證之交換協定是指在傳送端傳送訊息給接收端後,接收端在接收或處理後回覆Ack的通訊協定,且訊息之資料內容及Ack內容皆需包含利用PKI技術進行簽章之簽章值,以利於雙方驗證。目前具此特性的交換協定,例如ebMS協定。 In addition, the data transmission method used in the present invention is a combination of two types of communication protocols, namely, "large-speed transmission agreement" and "two-way authentication exchange agreement". The large-capacity transmission protocol refers to a communication protocol suitable for transmitting a large file, such as FTP (File Transfer Protocol, FTP), SFTP (SSH FTP), or FTPS (FTP over SSL), and the data encapsulation method proposed by the present invention will be large. The file and its signature value are packaged into a large file. The two-way authentication exchange agreement refers to the communication protocol that the receiving end responds to the Ack after receiving or processing the message on the transmitting end, and the information content and Ack content of the message need to include the signature of the signature using PKI technology. Value to facilitate verification by both parties. Exchange agreements with this feature, such as the ebMS protocol.

同時利用上述兩種協定,傳送端在利用「大檔傳輸協定」傳送訊息封裝檔完成後,立即將與此大檔有關的中介資料(metadata),使用「雙向認證之交換協定」將中介資料作為訊息傳送,並在接收端接收後,以相同協定回覆Ack。更具體來說,傳送端在利用大檔傳輸協定傳送完成後,立即將與此大檔有關的中介資料以及傳送端自身的簽章值傳送至接收端,接收端在處理後會回覆含接收端自身的簽章值的Ack,如此可滿足「訊息接收之不可否認性」之需求。 At the same time, by using the above two agreements, the transmitting end immediately uses the "two-way authentication exchange agreement" to use the intermediary information as the intermediate information related to the big file after the message transmission file is completed by the "big file transfer protocol". After the message is transmitted and received at the receiving end, the Ack is replied with the same agreement. More specifically, the transmitting end transmits the mediation data related to the large file and the signature value of the transmitting end itself to the receiving end after the transmission is completed by using the large-size transmission protocol, and the receiving end replies with the receiving end after processing. The Ack of its own signature value can meet the demand for "non-repudiation of message reception".

傳送端在利用大檔傳輸協定傳送完成後,立即將與此大檔有關的中介資料,即包含與此大檔有關的指紋資料、 時戳及識別碼,使用此協定以通知訊息(event)的型式傳送,接收端可驗證通知訊息內之指紋資料與訊息封裝檔之指紋資料是否相同,另外確認時戳是否過長以及識別碼是否重覆,藉此確保大檔資料與通知訊息可相互對應,並避免中間人攻擊或重覆處理訊息。 After the transmission end is completed by the transmission of the large-size transmission agreement, the intermediate information related to the large file, that is, the fingerprint data, the time stamp and the identification code related to the large file, are used to notify the event. Type transmission, the receiving end can verify whether the fingerprint data in the notification message is the same as the fingerprint data of the message package file, and whether the time stamp is too long and the identification code is repeated, thereby ensuring that the large file and the notification message can correspond to each other. And avoid man-in-the-middle attacks or repeated processing of messages.

傳送端在接收到Ack後,也可確保資料已正確傳輸,如此可滿足「保證傳輸」特性。接收端可選擇是否將處理結果放入Ack中,若有放入Ack中,傳送端也可得知訊息否正常處理,若資料未正常處理,可根據Ack內容進行相對應之作業。傳送的通知訊息,可包含與此訊息封裝檔有關的中介資料,中介資料的資料位元組數量可能遠小於原始檔案的位元組大小,雖有上述作業,但小量的檔案在此傳輸作業上仍能滿足「高效率」之特性。 After receiving the Ack, the transmitting end can also ensure that the data has been correctly transmitted, thus satisfying the "guaranteed transmission" feature. The receiving end can choose whether to put the processing result into the Ack. If it is placed in the Ack, the transmitting end can also know whether the message is processed normally. If the data is not processed normally, the corresponding operation can be performed according to the Ack content. The transmitted notification message may include the intermediary information related to the package of the message. The number of data bytes of the intermediary data may be much smaller than the size of the original file. Although the above operation is performed, a small number of files are transferred here. It still meets the "high efficiency" characteristics.

傳送端在檔案傳輸完成後,利用通知訊息通知接收端,接收端無需自行開發程式,檢核協定封包是否為最後一個封包,也無需以輪詢方式確認封包是否傳送完畢,故可有效減少不必要的效能耗費,即時回覆的Ack也可讓傳送端確保資料已接收/處理完成,此可提升自動化程度。 After the file transmission is completed, the transmitting end notifies the receiving end by using the notification message, and the receiving end does not need to develop the program by itself, check whether the protocol packet is the last packet, and does not need to confirm whether the packet is transmitted by polling, thereby effectively reducing unnecessary The energy consumption fee, the instant reply Ack also allows the transmitter to ensure that the data has been received/processed, which can increase the degree of automation.

請參照第4和5圖,分別說明本發明之高效能訊息傳輸方法中傳送端與接收端有關檔案傳送與訊息傳遞的處理流程圖,以及本發明之高效能訊息傳輸方法中傳送端與接收端有關檢核與驗證的處理流程圖。對於本發明所提出之通訊協定對談機制,接下來將透過實例說明,有關「大檔傳輸協定」係選用SFTP,而「雙向認證之交換協定」則選 用ebMS,透過下面流程圖,來說明傳送端與接收端有關檔案傳送與訊息傳遞以及檢核與驗證等流程。 Referring to FIG. 4 and FIG. 5, respectively, FIG. 4 is a flow chart showing the processing of file transmission and message transmission between the transmitting end and the receiving end in the high-performance message transmitting method of the present invention, and the transmitting end and the receiving end in the high-performance information transmitting method of the present invention. Process flow diagram for verification and verification. For the communication protocol negotiation mechanism proposed by the present invention, an example will be described below, and the "large-speed transmission agreement" is selected as SFTP, and the "two-way authentication exchange agreement" is selected as ebMS, and the following flow chart is used to illustrate the transmission. The process of file transfer and message transfer, check and verification, etc. between the terminal and the receiver.

如第4圖所示,係說明傳送端與接收端有關檔案傳送與訊息傳遞的處理流程圖,其中,接收端還可分為前端處理和後端處理,接收端前端處理係指與傳送端之間的通訊處理,接收端後端處理則指接收端內部的資料處理。 As shown in FIG. 4, it is a processing flow chart for the file transfer and message transfer between the transmitting end and the receiving end. The receiving end can also be divided into front end processing and back end processing, and the receiving end front end processing refers to the transmitting end. Inter-communication processing, receiving end-end processing refers to data processing inside the receiving end.

於流程S41中,傳送端封裝欲傳輸之檔案。傳送端將欲傳送的訊息以訊息封裝格式封裝成一個訊息封裝檔,封裝方式可採用前述先將主訊息以PKI進行簽章作業,並利用MIME的資料交換標準進行封裝。 In the process S41, the transmitting end encapsulates the file to be transmitted. The transmitting end encapsulates the message to be transmitted into a message encapsulation file in a message encapsulation format, and the encapsulation method may adopt the foregoing method of first signing the main message in PKI and encapsulating it by using the MIME data exchange standard.

於流程S42中,傳送端運用SFTP上傳封裝檔(訊息封裝檔)。為了具備大檔傳輸特性,於此採用SFTP傳輸協定來傳送封裝檔。 In the process S42, the transmitting end uses SFTP to upload the package file (message package file). In order to have a large-scale transmission characteristic, the SFTP transmission protocol is used to transmit the package file.

於流程S43中,接收端接收上傳之封裝檔。因為是採用SFTP傳輸協定,故傳送端可有效率地傳送封裝檔至接收端。 In the process S43, the receiving end receives the uploaded package file. Because the SFTP transmission protocol is adopted, the transmitting end can efficiently transmit the package file to the receiving end.

於流程S44中,接收端完成接收上傳封裝檔,此時接收端會回覆訊息至傳送端,通知已完成接收。 In the process S44, the receiving end finishes receiving and uploading the package file, and the receiving end will reply the message to the transmitting end to notify that the receiving has been completed.

於流程S45中,傳送端發出訊息抵達之事件通知。於封裝檔成功上傳後,傳送端可透過ebMS協定發出一個訊息,訊息內容包含傳送端的簽章值以及封裝檔的中介資料。這裡所述事件通知即是前述之通知訊息,其目的用於告知接收端封裝檔已傳送完成,接收端可接著進行處理。 In the process S45, the transmitting end sends an event notification that the message arrives. After the package file is successfully uploaded, the transmitting end can send a message through the ebMS protocol, and the message content includes the signing value of the transmitting end and the mediation data of the package file. The event notification described herein is the foregoing notification message, and the purpose thereof is to inform the receiving end that the package file has been transmitted, and the receiving end can proceed with the processing.

於流程S46中,接收端接收訊息抵達之事件通知。此 流程即接收端收到通知訊息。 In the process S46, the receiving end receives the event notification that the message arrives. In this process, the receiving end receives the notification message.

於流程S47中,接收端產生事件驅動後端處理。到本流程之前,接收端所執行流程皆為前端處理,即與傳送端之間的訊息溝通,於本流程中,接收端在知悉收到通知訊息,將驅動接收端執行後端處理。 In the process S47, the receiving end generates event-driven backend processing. Before the process, the process executed by the receiving end is the front-end processing, that is, the communication with the transmitting end. In this process, the receiving end knows that the notification message is received, and the receiving end performs the back-end processing.

於流程S48中,接收端後端執行訊息處理。亦即,接收端接收到透過ebMS協定之通知訊息後,接收端會進行後續處理,具體來說,接收端由通知訊息取得檔案路徑,利用檔案路徑自檔案系統(file system)擷取對應的封裝檔,以執行訊息處理作業。 In the process S48, the receiving end backend performs message processing. That is, after receiving the notification message through the ebMS protocol, the receiving end performs subsequent processing. Specifically, the receiving end obtains the file path by the notification message, and uses the file path to retrieve the corresponding package from the file system. File to perform message processing jobs.

本實施例主要說明透過兩種不同通訊協定,先將封裝好的大檔傳送至接收端,並通知接收端有關大檔的資訊(例如中介資料),使得接收端取得大檔並進行處理,此時在不考量突發狀況下,接收端順利取得來自傳送端之檔案,接收端可將處理情況回應給傳送端。 This embodiment mainly describes that the packaged big file is first transmitted to the receiving end through two different communication protocols, and the information about the big file (for example, the intermediary data) is notified to the receiving end, so that the receiving end obtains the big file and processes it. When the receiver does not consider the emergency, the receiving end can successfully obtain the file from the transmitting end, and the receiving end can respond to the transmitting end.

若考量有其他突發問題下,接收端後端可進行例如檔案健全或簽章檢核等程序,如第5圖所示,係說明傳送端與接收端有關檢核與驗證的處理流程圖,其中,此部分檢核主要在接收端後端進行。 If there are other unexpected problems, the receiving end can perform procedures such as file sounding or signature checking, as shown in Figure 5, which is a processing flow chart for checking and verifying between the transmitting end and the receiving end. Among them, this part of the check is mainly carried out at the back end of the receiving end.

於流程S51中,接收端後端判斷是否存在檔案。此流程是接續第4圖中流程S48,由於接收端可透過通知訊息取得檔案路徑,因而此步驟是判斷封裝檔是否存在。若是檔案不存在,則可透過ebMS協定回應一個檔案不存在的Ack給傳送端,Ack值包含接收端簽章值及哪一個檔案不 存在之資訊。傳送端接收到查無檔案之通知後,可執行訊息重發的處理流程。 In the process S51, the receiving end backend determines whether there is an archive. This process is followed by the process S48 in FIG. 4. Since the receiving end can obtain the file path through the notification message, this step is to determine whether the package file exists. If the file does not exist, the acknowledgment of an Ack that does not exist in the file can be sent to the transmitting end through the ebMS protocol. The Ack value contains the receiving sign value and which file does not exist. After receiving the notification of no file, the transmitting end can perform the process of resending the message.

如圖所示,若存在,則前進流程S52,若不存在,則透過接收端前端發出查無檔案之回應訊息,另外傳送端可接收查無檔案之回應訊息,如圖中流程S511和S512所示。 As shown in the figure, if yes, proceed to process S52. If it does not exist, the front end of the receiving end sends a response message indicating no file, and the transmitting end can receive a response message without a file, as shown in processes S511 and S512. Show.

於流程S52中,接收端後端判斷是否有附檔。在前一流程中,若是檔案存在,接收端讀取對應的訊息封裝檔案,並進一步判斷是否有附檔。若有,則前進流程S53,需再驗證附檔是否有問題,若無,則直接前進流程S55。 In the process S52, the receiving end backend determines whether there is an attached file. In the previous process, if the file exists, the receiving end reads the corresponding message package file and further determines whether there is an attached file. If yes, proceed to the process S53, and it is necessary to verify whether there is a problem with the attached file. If not, proceed directly to the process S55.

於流程S53中,接收端後端計算附檔之指紋資料。本流程即在有附檔下,先針對每一個附檔計算雜湊值,也就是於此所述之指紋資料。 In the process S53, the receiving end backend calculates the fingerprint data of the attached file. In this process, under the attached file, the hash value is calculated for each attached file, that is, the fingerprint data described herein.

於流程S54中,接收端後端將前一流程中附檔之指紋資料與訊息本文(通知訊息)內指紋資料進行比對,也就是將附檔與通知訊息兩者中取得指紋資料進行比對,經比對後(流程S541),若不相符,則前進流程S542,產生附檔指紋不符訊息,即回應一個附件指紋不符的Ack至傳送端,若比對相符,則前進流程S55。 In the process S54, the receiving end back-end compares the fingerprint data of the attached file in the previous process with the fingerprint data in the message (notification message), that is, compares the fingerprint data obtained in the attached file and the notification message. After the comparison (flow S541), if not, proceed to flow S542 to generate an attached fingerprint inconsistency message, that is, respond to an Ack with an attachment fingerprint inconsistency to the transmitting end, and if the comparison matches, proceed to flow S55.

於流程S55中,接收端後端計算訊息本文簽章值。本流程主要判斷通知訊息是否無誤,針對通知訊息之原文計算簽章值,並與封裝檔內對應的簽章值比對(流程S551),如不符,則前進流程S552,產生驗章不符訊息,若比對相符,則可回覆訊息接收成功的Ack給傳送端。 In the process S55, the receiving end backend calculates the signature value of the message. The process mainly determines whether the notification message is correct, calculates the signature value for the original text of the notification message, and compares it with the corresponding signature value in the package file (flow S551). If not, proceed to process S552 to generate a verification inconsistency message. If the comparison matches, the reply can receive the successful Ack to the transmitting end.

於流程S56中,接收端後端執行應用系統處理,並回 覆傳送端,如於流程S561所示之接收端回覆訊息已接收之回應訊息,以及於流程S562中,接收端接收訊息已接收之回應訊息。 In the process S56, the receiving end performs the processing of the application system, and replies to the transmitting end. The receiving end replies with the response message that the message has been received, as shown in the process S561, and in the process S562, the receiving end receives the response that the message has been received. message.

綜上所述,本發明之高效能訊息傳輸方法,透過利用兩種通訊協定,藉此達到大量傳輸、大檔案傳輸以及高效能等需求。為了滿足大量傳輸、大檔案傳輸之特性,可選擇如FTP、FTPS或SFTP等協定,將已封裝檔案先傳送至接收端,接著透過如ebMS通訊協定來通知接收端取得封裝檔案並進行處理,因採用ebMS通訊協定可符合傳輸安全性和一致性等需求,故運用兩種通訊協定,再搭配本發明所述之封裝方式,將可使發明之訊息傳輸方式具備大量傳輸、大檔傳輸、完整性、不可否認性、保證傳輸、高效能等特性。 In summary, the high-performance message transmission method of the present invention achieves a large number of transmissions, large file transmissions, and high-performance requirements by utilizing two communication protocols. In order to meet the characteristics of mass transmission and large file transmission, protocols such as FTP, FTPS or SFTP can be selected to transmit the encapsulated file to the receiving end first, and then notify the receiving end to obtain the package file and process it through the ebMS protocol. The ebMS protocol can meet the requirements of transmission security and consistency. Therefore, using two communication protocols and the encapsulation method described in the present invention will enable the invention to transmit a large amount of transmission, large-scale transmission, and integrity. , non-repudiation, guaranteed transmission, high performance and other characteristics.

上述實施形態僅例示性說明本發明之原理及其功效,而非用於限制本發明。任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。因此,本發明之權利保護範圍,應如後述之申請專利範圍所列。 The above embodiments are merely illustrative of the principles and effects of the invention and are not intended to limit the invention. Modifications and variations of the above-described embodiments can be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention should be as set forth in the scope of the claims described below.

Claims (10)

一種高效能訊息傳輸方法,該方法包括:令傳送端將欲傳送檔案以封裝格式封裝,進而產生訊息封裝檔;令該訊息封裝檔透過第一傳輸協定傳送至接收端;於該訊息封裝檔傳送至該接收端後,令該傳送端透過第二傳輸協定發送一通知訊息至該接收端;以及該接收端藉由該通知訊息取得該訊息封裝檔之儲存位置後,令該接收端下載該訊息封裝檔以進行檢核,再由該接收端傳送回覆訊息至該傳送端。  A high-performance message transmission method, the method comprising: causing a transmitting end to encapsulate a file to be transmitted in an encapsulation format, thereby generating a message encapsulation file; and causing the message encapsulation file to be transmitted to the receiving end through the first transmission protocol; After the receiving end, the transmitting end sends a notification message to the receiving end through the second transmission protocol; and the receiving end obtains the storage location of the message package file by using the notification message, and then the receiving end downloads the message The package file is checked for verification, and then the receiving end transmits a reply message to the transmitting end.   如申請專利範圍第1項所述之高效能訊息傳輸方法,其中,該第一傳輸協定為大檔傳輸協定,該第二傳輸協定為雙向認證之交換協定。  The high-performance message transmission method according to claim 1, wherein the first transmission agreement is a large-transmission agreement, and the second transmission agreement is an exchange protocol for mutual authentication.   如申請專利範圍第1項所述之高效能訊息傳輸方法,其中,令該接收端無法由該通知訊息取得該訊息封裝檔時,該接收端傳送包含該接收端之簽章值以及檔案不存在之訊息封包。  The high-performance message transmission method according to claim 1, wherein when the receiving end cannot obtain the message encapsulation file from the notification message, the receiving end transmits the signature value including the receiving end and the file does not exist. Message packet.   如申請專利範圍第1項所述之高效能訊息傳輸方法,其中,該通知訊息包括該傳送端之簽章值以及該訊息封裝檔之中介資料。  The high-performance message transmission method of claim 1, wherein the notification message includes a signature value of the transmitting end and an intermediary information of the message package file.   如申請專利範圍第4項所述之高效能訊息傳輸方法,其中,該中介資料包括指紋資料、時戳或識別碼。  The high-performance message transmission method according to claim 4, wherein the intermediary data includes fingerprint data, a time stamp or an identification code.   如申請專利範圍第5項所述之高效能訊息傳輸方法,其 中,該檢核之進行係包括計算該訊息封裝檔中各附檔之雜湊值,以與該通知訊息中該指紋資料進行比對。  The high-performance message transmission method of claim 5, wherein the checking comprises performing a hash value of each attachment in the message package to compare with the fingerprint data in the notification message. .   如申請專利範圍第1項所述之高效能訊息傳輸方法,其中,該檢核之進行係包括比對該傳送端之簽章值以及該訊息封裝檔內對應之簽章值。  The high-performance message transmission method of claim 1, wherein the checking comprises performing a signature value corresponding to the transmitting end and a corresponding signature value in the message package.   如申請專利範圍第1項所述之高效能訊息傳輸方法,其中,該欲傳送檔案分為主訊息和附檔,且其中,該附檔係透過雜湊演算法以得到該附檔之雜湊數,且於該雜湊數置入該主訊息後進行數位簽章。  The high-performance message transmission method according to claim 1, wherein the file to be transmitted is divided into a main message and an attached file, and wherein the attached file is obtained by a hash algorithm to obtain a hash number of the attached file. And the digital signature is performed after the main message is placed in the hash number.   如申請專利範圍第8項所述之高效能訊息傳輸方法,其中,該訊息封裝檔包括該主訊息之原文、使用該原文簽章計算但不含該原文之數位簽章或該附檔。  The high-performance message transmission method of claim 8, wherein the message package includes an original text of the main message, a digital signature calculated using the original signature but not including the original text or the attached file.   如申請專利範圍第9項所述之高效能訊息傳輸方法,其中,該封裝格式為多用途互聯網郵件擴展(Multipurpose Internet Mail Extensions,MIME)。  The high-performance message transmission method according to claim 9, wherein the package format is Multipurpose Internet Mail Extensions (MIME).  
TW106117849A 2017-05-31 2017-05-31 High efficient message transmission method TWI634773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106117849A TWI634773B (en) 2017-05-31 2017-05-31 High efficient message transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106117849A TWI634773B (en) 2017-05-31 2017-05-31 High efficient message transmission method

Publications (2)

Publication Number Publication Date
TWI634773B TWI634773B (en) 2018-09-01
TW201904250A true TW201904250A (en) 2019-01-16

Family

ID=64452647

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106117849A TWI634773B (en) 2017-05-31 2017-05-31 High efficient message transmission method

Country Status (1)

Country Link
TW (1) TWI634773B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346929B1 (en) * 2003-08-18 2013-01-01 Oracle America, Inc. System and method for generating secure Web service architectures using a Web Services security assessment methodology
US7698398B1 (en) * 2003-08-18 2010-04-13 Sun Microsystems, Inc. System and method for generating Web Service architectures using a Web Services structured methodology
US7831693B2 (en) * 2003-08-18 2010-11-09 Oracle America, Inc. Structured methodology and design patterns for web services
US8799221B2 (en) * 2010-04-23 2014-08-05 John Canessa Shared archives in interconnected content-addressable storage systems
TWI455058B (en) * 2010-10-25 2014-10-01 Trade Van Information Services Co Trade electronic document processing system
WO2012078898A2 (en) * 2010-12-10 2012-06-14 Datcard Systems, Inc. Secure portable medical information access systems and methods related thereto

Also Published As

Publication number Publication date
TWI634773B (en) 2018-09-01

Similar Documents

Publication Publication Date Title
US20190171849A1 (en) Computer-Implemented Method And System Of Tamper-Evident Recording Of A Plurality Of Service Data Items
CN110597839B (en) Transaction data processing method, device, equipment and storage medium
CN108965484A (en) A kind of transmission method of internet of things data, system and terminal
JP2018528679A (en) Device and method for establishing a connection in a load balancing system
JP6148459B2 (en) How to transport data from a source node to a destination node
CN113409047B (en) Data processing method, device and equipment based on block chain and readable storage medium
WO2014019386A1 (en) Message sending and receiving method, device and system
US20170004168A1 (en) Methods and Devices For Handling Hash-Tree Based Data Signatures
CN104025550B (en) The method and device of information is obtained from data item
WO2019242496A1 (en) Method and device for data transmission
EP3459002B1 (en) Methods and devices for handling hash-tree based data signatures
WO2017101426A1 (en) Method for use in file synchronization, recipient device, and system
WO2017148419A1 (en) Data transmission method and server
CN114513418B (en) Data processing method and related equipment
CN104539578A (en) Active synchronizing method and system for RPKI (Resource Public Key Infrastructure) data
CN101167331B (en) Method, system and device for transferring network event log protocol message
CN113194057B (en) AS 2-based data receiving, transmitting and interacting method and client
CN113905012A (en) Communication method, device, equipment and medium
TWI634773B (en) High efficient message transmission method
CN115361455B (en) Data transmission storage method and device and computer equipment
WO2018137218A1 (en) Data transmission method, data receiving device, and data sending device
EP1838038A1 (en) Method for transfering network event protocol messages
CN115514799A (en) TCP connection method, system, network device and storage medium
CN112104635A (en) Communication method, system and network equipment
CN112104629A (en) Real-time data transmission method of remote monitoring system