TWI672023B - Network packet processing method and device thereof - Google Patents

Network packet processing method and device thereof Download PDF

Info

Publication number
TWI672023B
TWI672023B TW107147860A TW107147860A TWI672023B TW I672023 B TWI672023 B TW I672023B TW 107147860 A TW107147860 A TW 107147860A TW 107147860 A TW107147860 A TW 107147860A TW I672023 B TWI672023 B TW I672023B
Authority
TW
Taiwan
Prior art keywords
network packet
belonging
bytes
receiving
category
Prior art date
Application number
TW107147860A
Other languages
Chinese (zh)
Other versions
TW202027468A (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 TW107147860A priority Critical patent/TWI672023B/en
Application granted granted Critical
Publication of TWI672023B publication Critical patent/TWI672023B/en
Publication of TW202027468A publication Critical patent/TW202027468A/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一種網路封包處理方法,其中網路封包包含複數個位元組,位元組的類別包含檔頭類別、應用類別、以及檢查類別,網路封包處理方法,包含:接收屬於檔頭類別的全部位元組;以及根據設定資訊接收並解析屬於應用類別的部分位元組直到接收到屬於應用類別的指定位元組為止。 A network packet processing method, wherein a network packet includes a plurality of bytes, a byte type includes a header type, an application type, and a check type, and a network packet processing method includes: receiving all of the files belonging to the header type Bytes; and receiving and parsing partial bytes belonging to the application category according to the setting information until receiving a specified byte belonging to the application category.

Description

網路封包處理方法及其裝置 Network packet processing method and device

本揭示文件有關一種網路封包處理方法及其裝置,尤指一種針對網路封包進行即時處理的網路封包處理方法及其裝置。 The present disclosure relates to a network packet processing method and device, and more particularly to a network packet processing method and device for real-time processing of network packets.

在網路通訊協定中普遍採用分層的結構,因此需要對網路封包進行一層層的拆解才能得到網路封包中的資料。在一般情況下,通常是等到整筆網路封包接收完,並且確認接收到的網路封包為有效網路封包之後,才會對網路封包中的資料進行解析,以進一步使用經過解析的資料。 A layered structure is commonly used in network communication protocols. Therefore, network packets need to be disassembled layer by layer to obtain the data in the network packets. Under normal circumstances, it is usually after the entire network packet is received and the received network packet is confirmed to be a valid network packet before the data in the network packet is parsed to further use the parsed data .

為了更清楚說明前述概念,要先說明網路封包的結構。請參考第1圖,其為網路封包NP的示意圖。網路封包NP包含複數個位元組0~9,位元組0~9的類別包含檔頭類別HT、應用類別AT、以及檢查類別TT,其中位元組0及位元組1的類別屬於檔頭類別HT、位元組2~7的類別屬於應用類別AT、以及位元組8~9的類別屬於檢查類別TT。應注意的是,第1圖所示之網路封包NP結構僅為例示,並非用來作為限制。 In order to explain the foregoing concepts more clearly, we must first explain the structure of network packets. Please refer to FIG. 1, which is a schematic diagram of a network packet NP. The network packet NP includes a plurality of bytes 0-9, and the categories of bytes 0-9 include a header type HT, an application type AT, and a check type TT. The categories of byte 0 and byte 1 belong to The header category HT, the bytes 2 to 7 belong to the application category AT, and the bytes 8 to 9 belong to the inspection category TT. It should be noted that the network packet NP structure shown in Figure 1 is only an example and is not intended to be a limitation.

當要解析網路封包NP中屬於應用類別AT的位元組2~7之資料時,通常等到整筆網路封包NP接收完,即依序接收屬於檔頭類別HT的位元組0及位元組1、屬於應用類別AT的位元組2~7、以及屬於檢查類別TT的位元組8及位元組9後,並透過一校驗和(Checksum)機制來判斷網路封包NP的完整性為完整後才能開始進行。 When parsing the data of bytes 2 to 7 belonging to the application category AT in the network packet NP, usually wait until the entire network packet NP is received, that is, to sequentially receive the bytes 0 and bits belonging to the header category HT. After byte 1, bytes 2 to 7 belonging to the application category AT, and bytes 8 and 9 belonging to the inspection category TT, the network packet NP is determined by a checksum mechanism. Integrity cannot begin until complete.

然而,拆解網路封包將會花費大量的處理時間,在特定情況下(例如,需要在極短時間解析資料的情況),將會延遲到後續對網路封包資料的處理,造成處理時間延遲等問題。 However, disassembling network packets will take a lot of processing time. In certain cases (for example, when data needs to be parsed in a very short time), it will be delayed until subsequent processing of network packet data, resulting in processing time delay And other issues.

本案之第一態樣是在提供一種網路封包處理方法,其中網路封包包含複數個位元組,位元組的類別包含檔頭類別、應用類別、以及檢查類別,網路封包處理方法,包含:接收屬於檔頭類別的全部位元組;以及根據設定資訊接收並解析屬於應用類別的部分位元組直到接收到屬於應用類別的指定位元組為止。 The first aspect of this case is to provide a network packet processing method, in which a network packet includes a plurality of bytes, and a byte type includes a header type, an application type, and an inspection type, and a network packet processing method. Including: receiving all bytes belonging to the file header category; and receiving and parsing some bytes belonging to the application category according to the setting information until a specified byte belonging to the application category is received.

本案之第二態樣是在提供一種網路封包處理裝置,與伺服器電性連接,其中網路封包包含複數個位元組,位元組的類別包含檔頭類別、應用類別、以及檢查類別,網路封包處理裝置,包含:接收單元以及解析單元。接收單元用以接收網路封包;以及解析單元與接收單元電性連接,用以透過接收單元接收屬於檔頭類別的全部位元組, 並根據設定資訊接收並解析屬於該應用類別的部分位元組直到接收到屬於應用類別的指定位元組為止。 The second aspect of the case is to provide a network packet processing device electrically connected to the server, wherein the network packet includes a plurality of bytes, and the type of the bytes includes a header type, an application type, and an inspection type. , A network packet processing device, including: a receiving unit and a parsing unit. The receiving unit is used to receive network packets; and the parsing unit is electrically connected to the receiving unit to receive all the bytes belonging to the header category through the receiving unit. And receiving and parsing partial bytes belonging to the application category according to the setting information until receiving a specified byte belonging to the application category.

本揭露之網路封包處理方法及其裝置主要是利用嵌入式系統的硬體架構,可以在接收封包的同時對封包進行拆解,以取得封包中的資料,達到預先解析封包以降低解析時間的功效。 The network packet processing method and device disclosed in this disclosure mainly use the hardware architecture of the embedded system, which can disassemble the packet while receiving the packet, to obtain the data in the packet, and to pre-parse the packet to reduce the analysis time. efficacy.

1‧‧‧金融交易系統 1‧‧‧Financial transaction system

200‧‧‧網路封包處理裝置 200‧‧‧ network packet processing device

300‧‧‧交易所 300‧‧‧ Exchange

310‧‧‧行情伺服器 310‧‧‧Quote Server

320‧‧‧交易伺服器 320‧‧‧Transaction Server

110、210‧‧‧接收單元 110, 210‧‧‧ receiving unit

130、230‧‧‧解析單元 130, 230‧‧‧ Resolution Unit

250‧‧‧傳送單元 250‧‧‧ Transmission Unit

HT‧‧‧檔頭類別 HT‧‧‧ Stall Category

AT‧‧‧應用類別 AT‧‧‧Application Category

TT‧‧‧檢查類別 TT‧‧‧Inspection category

NP‧‧‧網路封包 NP‧‧‧Network Packet

DB‧‧‧指定位元組 DB‧‧‧designated byte

OD‧‧‧委託單 OD‧‧‧Order

S110~S130、S210~S270‧‧‧步驟 S110 ~ S130, S210 ~ S270‧‧‧step

為讓揭示文件之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖為網路封包的示意圖;第2圖為根據本揭示文件一實施例的網路封包處理裝置的示意圖;第3圖為根據本揭示文件一實施例的網路封包處理方法的流程圖;第4圖為根據本揭示文件一實施例的金融交易系統的示意圖;第5圖為根據本揭示文件一實施例的應用於金融交易的網路封包處理裝置的示意圖;以及第6圖為根據本揭示文件一實施例的應用於金融交易的網路封包處理方法的流程圖。 In order to make the above and other purposes, features, advantages, and embodiments of the disclosure document more comprehensible, the description of the attached drawings is as follows: FIG. 1 is a schematic diagram of a network packet; FIG. 3 is a flowchart of a network packet processing method according to an embodiment of the present disclosure; FIG. 4 is a schematic diagram of a financial transaction system according to an embodiment of the present disclosure; 5 is a schematic diagram of a network packet processing device applied to financial transactions according to an embodiment of the present disclosure; and FIG. 6 is a flowchart of a network packet processing method applied to financial transactions according to an embodiment of the present disclosure. .

以下將配合相關圖式來說明本發明的實施例。 在圖式中,相同的標號表示相同或類似的元件或方法流程。 Hereinafter, embodiments of the present invention will be described with reference to related drawings. In the drawings, the same reference numerals represent the same or similar elements or method flows.

請參閱第1至3圖。第2圖為根據本揭示文件一實施例的網路封包處理裝置的示意圖,第3圖為根據本揭示文件一實施例的網路封包處理方法的流程圖。於本實施例中,第2圖所示之網路封包處理裝置100可用以根據第3圖所示之網路封包處理方法所描述之步驟,即時對第1圖所示之網路封包NP進行拆解。 See Figures 1 to 3. FIG. 2 is a schematic diagram of a network packet processing apparatus according to an embodiment of the present disclosure, and FIG. 3 is a flowchart of a network packet processing method according to an embodiment of the present disclosure. In this embodiment, the network packet processing device 100 shown in FIG. 2 can be used to perform real-time processing on the network packet NP shown in FIG. 1 according to the steps described in the network packet processing method shown in FIG. 3. Disassembly.

首先,說明網路封包處理裝置100的結構。如第2圖所示,網路封包處理裝置100包含接收單元110以及解析單元130。接收單元110與解析單元130電性連接,接收單元110用以接收網路封包NP,解析單元130用以透過接收單元110接收並解析網路封包NP中的位元組0~9。於本發明各實施例中,網路封包處理裝置100可以利用現場可程式化邏輯閘陣列(Field Programmable Gate Array,FPGA)來實施,或是利用其他形式的嵌入式系統板。 First, the configuration of the network packet processing apparatus 100 will be described. As shown in FIG. 2, the network packet processing device 100 includes a receiving unit 110 and an analysis unit 130. The receiving unit 110 is electrically connected to the parsing unit 130. The receiving unit 110 is used to receive the network packet NP. The parsing unit 130 is used to receive and parse the bytes 0-9 in the network packet NP through the receiving unit 110. In various embodiments of the present invention, the network packet processing device 100 may be implemented using a Field Programmable Gate Array (FPGA), or other forms of embedded system boards.

接著,說明第3圖所示之網路封包處理方法應用於網路封包處理裝置100以對第1圖所示之網路封包NP進行拆解的例子。 Next, an example in which the network packet processing method shown in FIG. 3 is applied to the network packet processing device 100 to disassemble the network packet NP shown in FIG. 1 will be described.

如第3圖所示,網路封包處理方法包含步驟S110以及步驟S130。 As shown in FIG. 3, the network packet processing method includes steps S110 and S130.

在步驟S110中,接收屬於檔頭類別的全部位元組。 In step S110, all bytes belonging to the header category are received.

於一實施例中,解析單元130用以透過接收單元110接收屬於檔頭類別HT的全部位元組,即接收位元組0 及位元組1。 In an embodiment, the parsing unit 130 is configured to receive all the bytes belonging to the file header type HT through the receiving unit 110, that is, the received byte 0 And byte 1.

在步驟S130中,根據設定資訊接收並解析屬於應用類別的部分位元組直到接收到屬於應用類別的指定位元組為止。 In step S130, the partial bytes belonging to the application category are received and analyzed according to the setting information until a specified byte belonging to the application category is received.

於一實施例中,先假設指定位元組DB已根據設定資訊被選定為屬於應用類別AT的位元組5。其中,設定資訊為當指定位元組DB的位置符合預設計數值時,例如已知屬於應用類別AT的位元組5之位置為五個計數值,因此為了將位元組5選定為指定位元組DB,即可將預設計數值設定為五,藉以達成目的;另外,指定位元組DB的選擇依據係根據需求來決定,例如使用者關心的資料係位於位元組5中。在指定位元組DB被選定為屬於應用類別AT的位元組5之後,解析單元130將根據設定資訊透過接收單元110接收並解析屬於應用類HT的位元組2、位元組3、位元組4及位元組5。 In one embodiment, it is assumed that the specified byte DB has been selected as the byte 5 belonging to the application category AT according to the setting information. Wherein, the setting information is that when the position of the designated byte DB conforms to a pre-designed value, for example, the position of byte 5 which is known to belong to the application category AT is five count values, so in order to select byte 5 as the designated bit For the tuple DB, the pre-designed value can be set to five to achieve the purpose. In addition, the selection basis of the designated byte DB is determined according to requirements. For example, the data that the user cares about is located in the byte 5. After the specified byte DB is selected as the byte 5 belonging to the application category AT, the parsing unit 130 will receive and parse the byte 2, byte 3, and bit belonging to the application HT through the receiving unit 110 according to the setting information. Tuple 4 and Bit 5.

應注意的是,上述「接收並解析」指的是解析單元130在透過接收單元110接收位元組時,將同時解析所接收的位元組。舉例來說,解析單元130透過接收單元110接收位元組2時,將同時解析位元組2;解析單元130透過接收單元110接收位元組3時,將同時解析位元組3;其餘以此類推。藉此,可無需將整筆網路封包接收完,即可預先解析屬於應用類別AT的位元組之資料。 It should be noted that the “receiving and parsing” mentioned above means that when the parsing unit 130 receives a byte through the receiving unit 110, it will parse the received byte at the same time. For example, when parsing unit 130 receives byte 2 through receiving unit 110, it will parse byte 2 at the same time; when parsing unit 130 receives byte 3 through receiving unit 110, it will parse byte 3 at the same time; And so on. Therefore, the data of the bytes belonging to the application type AT can be parsed in advance without receiving the entire network packet.

接下來,進一步說明將與前述網路封包處理裝置100類似的網路封包處理裝置200以及網路封包處理方法 應用到金融交易的例子。 Next, a network packet processing apparatus 200 and a network packet processing method that are similar to the aforementioned network packet processing apparatus 100 will be further described. Example applied to financial transactions.

請參閱第1圖、第4至第6圖。第4圖為根據本揭示文件一實施例的金融交易系統的示意圖,第5圖為根據本揭示文件一實施例的應用於金融交易的網路封包處理裝置的示意圖,第6圖為根據本揭示文件一實施例的應用於金融交易的網路封包處理方法的流程圖。 Please refer to Figure 1, Figure 4 to Figure 6. FIG. 4 is a schematic diagram of a financial transaction system according to an embodiment of the present disclosure. FIG. 5 is a schematic diagram of a network packet processing device applied to financial transactions according to an embodiment of the present disclosure. FIG. A flowchart of a network packet processing method applied to financial transactions according to an embodiment of the document.

首先,說明金融交易系統1與網路封包處理裝置200的結構。如第4圖所示,金融交易系統1包含網路封包處理裝置200、以及設置於交易所300中的行情伺服器310與交易伺服器320,且網路封包處理裝置200係與行情伺服器310及交易伺服器320電性連接。 First, the configurations of the financial transaction system 1 and the network packet processing device 200 will be described. As shown in FIG. 4, the financial transaction system 1 includes a network packet processing device 200, a market server 310 and a transaction server 320 provided in the exchange 300, and the network packet processing device 200 and the market server 310 And the transaction server 320 is electrically connected.

如第5圖所示,網路封包處理裝置200包含接收單元210、解析單元230以及傳送單元250。接收單元210、解析單元230以及傳送單元250依序電性連接,接收單元210用以接收網路封包NP,解析單元230用以透過接收單元210接收並解析網路封包NP中的位元組0~9,傳送單元250用以根據封包判斷訊號DS來傳送委託單OD。於本發明各實施例中,網路封包處理裝置200可以利用現場可程式化邏輯閘陣列(Field Programmable Gate Array,FPGA)來實施,或是利用其他形式的嵌入式系統板。 As shown in FIG. 5, the network packet processing device 200 includes a receiving unit 210, a parsing unit 230, and a transmitting unit 250. The receiving unit 210, the parsing unit 230, and the transmitting unit 250 are electrically connected in sequence. The receiving unit 210 is used to receive the network packet NP, and the parsing unit 230 is used to receive and parse the byte 0 in the network packet NP through the receiving unit 210. ~ 9. The transmitting unit 250 is configured to transmit the order OD according to the packet determination signal DS. In various embodiments of the present invention, the network packet processing device 200 may be implemented using a Field Programmable Gate Array (FPGA), or other forms of embedded system boards.

接著,說明第6圖所示之網路封包處理方法應用於金融交易系統1以進行金融交易的例子。 Next, an example in which the network packet processing method shown in FIG. 6 is applied to the financial transaction system 1 to perform financial transactions will be described.

如第6圖所示,網路封包處理方法包含步驟S210、步驟S230、步驟S250、步驟S260以及步驟S270, 其中由於步驟S210及步驟S230分別與第3圖之步驟S110及步驟S130類似,故不另贅述。 As shown in FIG. 6, the network packet processing method includes steps S210, S230, S250, S260, and S270. Since steps S210 and S230 are similar to steps S110 and S130 in FIG. 3, respectively, they are not described in detail.

在步驟S230之後將進入到步驟S250及步驟S260,亦即步驟S250及步驟S260可同步進行。 After step S230, steps S250 and S260 will be entered, that is, steps S250 and S260 may be performed simultaneously.

在步驟S250中,根據解析所接收到屬於應用類別的部分位元組與指定位元組中之至少一部分資料,產生委託單。 In step S250, an order is generated based on parsing the received at least part of the data belonging to the application class and the specified byte.

於一實施例中,先假設使用者關心的資料(例如最佳五檔或成交價)分別位於位元組2、位元組3以及位元組5(其指定位元組DB),其中使用者關心的資料之位置係可被事先得知的。在使用者關心的資料之位置被得知之後,解析單元230將根據位元組2、位元組3以及位元組5之資料,產生委託單,其中委託單的內容可為高於成交價時買一張。應注意的是,前述使用者關心的資料與委託單的內容僅為例示,並非用來作為限制。 In an embodiment, it is assumed that the data that the user cares about (for example, the best fifth gear or the transaction price) is respectively located in byte 2, byte 3, and byte 5 (the designated byte DB), where The location of the information that the person cares about can be known in advance. After the position of the data the user cares about is known, the parsing unit 230 will generate an order based on the data of byte 2, byte 3, and byte 5, where the content of the order may be higher than the transaction price Buy one at a time. It should be noted that the content of the aforementioned user and the order form are for illustration only and are not intended as a limitation.

於此同時,在步驟S260中,接收屬於應用類別的剩餘位元組與屬於檢查類別的全部位元組。 At the same time, in step S260, the remaining bytes belonging to the application category and all the bytes belonging to the inspection category are received.

於一實施例中,解析單元230透過接收單元210接收屬於應用類別AT的位元組6及位元組7、以及屬於檢查類別的位元組8及位元組9。換言之,在步驟中,網路封包NP已被完整接收。 In one embodiment, the parsing unit 230 receives the bytes 6 and 7 belonging to the application category AT, and the bytes 8 and 9 belonging to the inspection category through the receiving unit 210. In other words, in step, the network packet NP has been completely received.

在步驟S260後進入步驟S270。在步驟S270中,利用一校驗和(Checksum)機制判斷網路封包的完整性為完整後,產生封包判斷訊號。 After step S260, the process proceeds to step S270. In step S270, after using a checksum mechanism to determine that the integrity of the network packet is complete, a packet determination signal is generated.

於一實施例中,解析單元230透過校驗和機制判斷網路封包NP的完整性為完整後,將在步驟S250中所獲得的委託單OD傳送至交易伺服器320以進行下單,其中校驗和機制為所屬技術領域中具有通常知識者之通常知識,故不另贅述。 In one embodiment, after the parsing unit 230 determines that the integrity of the network packet NP is complete through the checksum mechanism, it transmits the order OD obtained in step S250 to the transaction server 320 for order placement, where the school verifies the order. The checksum mechanism is the general knowledge of those with ordinary knowledge in the technical field to which it belongs, so it will not be repeated here.

在將網路封包處理裝置200以及網路封包處理方法應用到金融交易的例子中可以了解到,由於步驟S250與步驟S260可同步進行,因此可縮短金融交易的時間,對於分秒必爭的金融交易而言是相當重要的。 In the case where the network packet processing device 200 and the network packet processing method are applied to financial transactions, it can be understood that, since steps S250 and S260 can be performed simultaneously, the time of financial transactions can be shortened. Is quite important.

綜上所述,本揭露之網路封包處理方法及其裝置主要是利用嵌入式系統的硬體架構,可以在接收網路封包的同時對封包進行拆解,以取得網路封包中的資料,在確定接收到的網路封包內容正確後,便會將網路封包內傳送至交易伺服器,達到預先解析網路封包以降低解析時間的功效。 In summary, the network packet processing method and device disclosed in this disclosure mainly use the hardware architecture of the embedded system, which can disassemble the packet while receiving the network packet to obtain the data in the network packet. After confirming that the content of the received network packet is correct, the network packet will be transmitted to the transaction server to achieve the effect of pre-analyzing the network packet to reduce the parsing time.

在說明書及申請專利範圍中使用了某些詞彙來指稱特定的元件。然而,所屬技術領域中具有通常知識者應可理解,同樣的元件可能會用不同的名詞來稱呼。說明書及申請專利範圍並不以名稱的差異做為區分元件的方式,而是以元件在功能上的差異來做為區分的基準。在說明書及申請專利範圍所提及的「包含」為開放式的用語,故應解釋成「包含但不限定於」。 Certain terms are used in the description and the scope of patent applications to refer to specific elements. However, it should be understood by those with ordinary knowledge in the technical field that the same elements may be referred to by different names. The scope of the specification and patent application does not take the difference in names as a way to distinguish components, but rather uses the difference in functions of components as a basis for distinguishing. "Inclusion" mentioned in the specification and the scope of patent application is an open-ended term, so it should be interpreted as "including but not limited to".

另外,除非說明書中特別指明,否則任何單數格的用語都同時包含複數格的涵義。 In addition, unless otherwise specified in the description, the terms of any singular number also include the meaning of the plural number.

以上僅為本發明的較佳實施例,凡依本發明請求項所做的均等變化與修飾,皆應屬本發明的涵蓋範圍。 The above are only preferred embodiments of the present invention, and any equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (8)

一種網路封包處理方法,其中一網路封包包含複數個位元組,該些位元組的類別包含一檔頭類別、一應用類別、以及一檢查類別,該網路封包處理方法包含:接收屬於該檔頭類別的全部位元組;以及根據一設定資訊接收並解析屬於該應用類別的部分位元組直到接收到屬於該應用類別的一指定位元組為止。A network packet processing method, wherein a network packet includes a plurality of bytes, and the types of the bytes include a header type, an application type, and a check type. The network packet processing method includes: receiving All bytes belonging to the profile category; and receiving and parsing partial bytes belonging to the application category according to a set of information until a specified byte belonging to the application category is received. 如請求項1所述的網路封包處理方法,係用於一金融交易,且該網路封包係由一行情伺服器提供,其中在根據該設定資訊接收並解析屬於該應用類別的部分位元組直到接收到屬於該應用類別的該指定位元組為止的步驟之後更包含:根據解析所接收到屬於應用類別的部分位元組與該指定位元組中之至少一部分資料,產生一委託單。The network packet processing method according to claim 1, which is used for a financial transaction, and the network packet is provided by a quote server, in which some bits belonging to the application category are received and parsed according to the setting information. After the group receives the specified byte belonging to the application category, the method further includes: generating an order based on parsing the received part of the byte belonging to the application category and at least a part of the specified byte data. . 如請求項2所述的網路封包處理方法,其中在根據該設定資訊接收屬於該應用類別的部分位元組直到收到屬於該應用類別的該指定位元組為止的步驟之後更包含:接收屬於該應用類別的剩餘位元組與屬於該檢查類別的全部位元組;以及利用一校驗和(Checksum)機制判斷該網路封包的完整性為完整後,將該委託單傳送至一交易伺服器以進行下單。The network packet processing method according to claim 2, wherein after the step of receiving a partial byte belonging to the application category according to the setting information until receiving the specified byte belonging to the application category, the method further includes: receiving After the remaining bytes belonging to the application category and all the bytes belonging to the checking category; and using a checksum mechanism to determine the integrity of the network packet, the order is transmitted to a transaction Server to place an order. 如請求項1所述的網路封包處理方法,其中,該設定資訊為當該指定位元組的一位置符合一預設計數值時。The method for processing a network packet according to claim 1, wherein the setting information is when a position of the designated byte matches a pre-designed value. 一種網路封包處理裝置,其中一網路封包包含複數個位元組,該些位元組的類別包含一檔頭類別、一應用類別、以及一檢查類別,該網路封包處理裝置,包含:一接收單元,用以接收該網路封包;以及一解析單元,與該接收單元電性連接,用以透過該接收單元接收屬於該檔頭類別的全部位元組,並根據一設定資訊接收並解析屬於該應用類別的部分位元組直到接收到屬於該應用類別的一指定位元組為止。A network packet processing device, wherein a network packet includes a plurality of bytes, and the types of the bytes include a header type, an application type, and an inspection type. The network packet processing device includes: A receiving unit for receiving the network packet; and a parsing unit electrically connected to the receiving unit for receiving all the bytes belonging to the profile category through the receiving unit, and receiving and Parse partial bytes belonging to the application category until a specified byte belonging to the application category is received. 如請求項5所述的網路封包處理裝置,係用於一金融交易,且該接收單元係與提供該網路封包的一行情伺服器電性連接,其中該解析單元根據所接收到屬於應用類別的部分位元組與該指定位元組中之至少一部分資料,產生一委託單。The network packet processing device according to claim 5, which is used for a financial transaction, and the receiving unit is electrically connected to a server providing the network packet, wherein the parsing unit belongs to the application according to the received An order is generated from the partial bytes of the category and at least a portion of the data in the specified byte. 如請求項6所述的網路封包處理裝置,更包含:一傳送單元,與該解析單元電性連接,用以在該解析單元在根據該設定資訊接收屬於該應用類別的部分位元組直到收到屬於該應用類別的該指定位元組為止的步驟之後,接收屬於該應用類別的剩餘位元組與屬於該檢查類別的全部位元組,並在利用一校驗和(Checksum)機制判斷該網路封包的完整性為完整後,將該委託單傳送至一交易伺服器以進行下單。The network packet processing device according to claim 6, further comprising: a transmitting unit electrically connected to the parsing unit, for receiving a partial byte belonging to the application category at the parsing unit according to the setting information until After receiving the steps up to the specified byte belonging to the application category, the remaining bytes belonging to the application category and all the bytes belonging to the inspection category are received, and a checksum mechanism is used to determine After the integrity of the network packet is complete, the order is transmitted to a transaction server for order placement. 如請求項5所述的網路封包處理裝置,其中,該設定資訊為當該指定位元組的一位置符合一預設計數值時。The network packet processing device according to claim 5, wherein the setting information is when a position of the designated byte matches a pre-designed value.
TW107147860A 2018-12-28 2018-12-28 Network packet processing method and device thereof TWI672023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107147860A TWI672023B (en) 2018-12-28 2018-12-28 Network packet processing method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107147860A TWI672023B (en) 2018-12-28 2018-12-28 Network packet processing method and device thereof

Publications (2)

Publication Number Publication Date
TWI672023B true TWI672023B (en) 2019-09-11
TW202027468A TW202027468A (en) 2020-07-16

Family

ID=68618994

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107147860A TWI672023B (en) 2018-12-28 2018-12-28 Network packet processing method and device thereof

Country Status (1)

Country Link
TW (1) TWI672023B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200926800A (en) * 2007-08-08 2009-06-16 Maxlinear Inc TS packet grooming
CN103166855A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Method and system for recognizing and transforming address information in network message
WO2014117688A1 (en) * 2013-01-30 2014-08-07 华为技术有限公司 Data transmission method and related apparatus
US20150195387A1 (en) * 2014-01-08 2015-07-09 Cavium, Inc. Methods and systems for flexible packet classification
US20180240099A1 (en) * 2015-05-11 2018-08-23 George Ernest Bester Method and a system for authenticating and identifying the location of a communication device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200926800A (en) * 2007-08-08 2009-06-16 Maxlinear Inc TS packet grooming
CN103166855A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Method and system for recognizing and transforming address information in network message
WO2014117688A1 (en) * 2013-01-30 2014-08-07 华为技术有限公司 Data transmission method and related apparatus
US20150195387A1 (en) * 2014-01-08 2015-07-09 Cavium, Inc. Methods and systems for flexible packet classification
US20180240099A1 (en) * 2015-05-11 2018-08-23 George Ernest Bester Method and a system for authenticating and identifying the location of a communication device

Also Published As

Publication number Publication date
TW202027468A (en) 2020-07-16

Similar Documents

Publication Publication Date Title
WO2021114406A1 (en) Blockchain-based vaccine information monitoring method and apparatus, and computer device
JP5670341B2 (en) Improved automated trading system
US20210297331A1 (en) Systems and methods for configuration verification across secured network boundaries
US11057502B2 (en) Cloud assisted behavioral automated testing
US9552269B2 (en) Test logic for a serial interconnect
US20080301647A1 (en) Delivering Malformed Data for Fuzz Testing to Software Applications
CN103238308B (en) The method and system of propagating source identification information
RU2631769C2 (en) Method and device for determining objective of information processing
US20130318107A1 (en) Generating data feed specific parser circuits
CN102752216B (en) A kind of method identifying behavioral characteristics application traffic
TWI672023B (en) Network packet processing method and device thereof
CN111064725A (en) Code zero intrusion interface verification method and device
US20140164205A1 (en) Market access system and method
CN111324567B (en) Method for realizing serial port communication and single chip microcomputer system
US20140236974A1 (en) Transactional Message Format Data Conversion
CN103984633B (en) A kind of bank main passes down the automatization test system of operation
US20140379553A1 (en) Method and a system for sending an electronic message
US10657120B2 (en) Cross-platform digital data movement control utility and method of use thereof
US10853359B1 (en) Data log stream processing using probabilistic data structures
US20230262032A1 (en) Obfuscation of input data values into observable data values using symbology-based encodings
CN111385257B (en) Network packet processing method and device
DE112017001706T5 (en) TIME-DELAY VALIDATION OF COMPONENTS WITH INDEPENDENT SILICON CLOCKS
CN106063190A (en) File repair method, and related apparatus and system
WO2022012429A1 (en) Method for implementing terminal verification, apparatus, system, device, and storage medium
WO2021103607A1 (en) External data format checking method, device, computer apparatus, and storage medium