經濟部智慧財壬A-員工.消f合作社印製Printed by the Ministry of Economic Affairs, Smart Assets A-Employees, Consumer Cooperatives
L A 7 . _______B7_ 五、發明説明(i ) [發明領域] 本發明係關於資料包之傳送路徑,且尤甚者係關於用 於決定傳送路徑之改良方法與系統,特別是用於將網際網 路資料包傳送至與另一個國家相關之目的地。 [發明背景] 可在位於不同地點之使用者之間利用不同型式之傳輸 網路傳送資訊。傳送的資訊基本上包含有位址訊息,用於 標示將轉接資訊的位置。此位址訊息使得網路可將資訊傳 送至預定的接收者。 傳送資訊之傳輸網路包含有複數個互相連接之網點。 網點為網路中如資料包流等輸入資訊可流向複數個路徑之 一的地點。網點具有足夠的決策能力可依據位址訊息和網 路中遗的通訊協定良定何選棵其f之一的路徑β因 此’網點可決定資訊之傳送路徑《可將資訊傳送至下一個 網點、穿越傳輸網路、以便抵達目的地。 k 此種傳輸網路的其中之一為傳統的公用交換電話網 ("PSTN")。在傳統的PSTN中,網點為傳統的電話交換機3 由網點所做的路徑決策係用於來電之設定β決策所依據的 位址訊息包含有被呼叫者之電話號碼。通常被呼叫者之電 話號瑪有10位數字。以美國為剑,這1〇位數字包含有三 位區域碼,及三位交換碼。在傳統的PSTN中,電話號碼 和地理位置之間有很密切的關係β舉例而言,在1 〇位數 字之電話號碼中’其區域碼指示特定的地理區。交換碼則 # f $ &此地理之部份的交換機。目的地,也就暑祐唓叫 本紙張尺度適用中國國家標準(CNS ) A4規格< 210x197公釐"5 ~------ 91540 ----------裝 訂 線 (请先閱讀背面之注意事項再填寫本頁) 4 35 29 A7 B7 五、發明説明(2 ) (請先聞讀背面之注意事項存填寫本莧> 者之電話號碼,是在地理區之此部份令β通常,當為電話 號碼指定更多位數時,將可更快決定用於鳴響被呼叫者電 話號碼之電話交換機的地理位置。因此,傳統PST1ST中之 網點利用被呼叫者之電話號碼將呼叫直接傳送至與收訊者 之實際位置最靠近之地理區。傳統的電話傳輸交換機可確 保不會採用最長且無效之路徑將呼叫傳送至收訊者。 利用電腦之傳輸網路為網際網路(Internet)。可經由 網際網路在兩個位置間,一個為發訊端一個為目的地,傳 送資料包。可將網際網路視為可與網際網路通訊協定(“IP” 相容之系統的匯集。不像如PSTN等傳統傳輸網路,網際 網路可用於多種的服務中。網際網路具有更大的錯誤容忍 度’且可用於比PSTN更大範圍之速度和傳輸媒體。 嬝 經濟部智慧財凌局員工消費合作钍印製 經由網際網路傳送之各資料包均包含有位址訊息。資 料包中之位址訊息包含有資料包接收端之目的地位址。目 的地位址包含有目的地之IP位址〇 IP位址包含有4個整 數,每個整數間是以句點隔開。每個整個可以是從〇至255 的整數β舉例而言,IP位址也就是目的地位址可以是 202.123.123.6。 通常是將IP位址指定給在網際網路中之自治系統 (“AS”)。自治系統為在單一 ¥理域下所有ip位址和具ip 之裝置及通訊連結之匯集。指定有IP位址之自治系統可 以是網際網路服務提供者(ISP)。可為特殊的AS指定一範 圍内之IP位址,舉例而言’一個AS可能具有的IP位址 是從202.123.4.0至202.123.7.255。為了確保可將資訊傳 私紙張尺度適用t國國家標準< CNS ) A4規格< 210X297公釐) 2 91540 經濟部智慧財1·局員工消費合作社印製 A7 ~~~— —…… ___ B7 五、發明説明(3 ) 送至正確的目的地’每個AS均必須能夠決定如何抵達具 有目的地位址之自治系統。因此,網際網路之AS互相告 訴對方如何在網際網路中找尋各範圍之IP位址。每個AS 對整個網際網路公佈其範圍,宣告,,假如你具有用於這些 IP位址其中之一的通訊量範圍(traffic b〇und),將其傳送 給我。其他的AS則利用此資訊來確認資料包抵達指定 有目的地位址之AS’也就是目的地。 I 資料包可用於穿越網際網路之路徑有很多條。路徑包 含有數個資料包為抵達目的地而須經過之AS»基本上, 路由器是做為^網點用,經由此資料包可存取多重的路徑而 抵達目的地》利用IP資料包的目的地位址,位於網際網 路内之路由器決定如何將資料包傳送至指定有目的地位址 之AS’也就是目的地。資料包在抵達目的地之前可能須 經過一連串的路由器^某些傳統的路由器所選擇的路徑為 其在抵達目的地之前須經過的AS數目是最少的。 k 雖然網際網路能夠將資料包從發訊端傳輸至目的地, 但是此路徑可能很慢或可能導致資料包遺失。因為在目的 地位址和指定有目的地位址之AS的實際位置間並沒有地 理上的關聯。因為可能將某一範圍之IP位址指定給相同 的AS’所有IP位址可能成群地輸入。舉例而言,指定給 在日本之AS的IP位址範圍可能202.123.4.0至 202.123.7.255。然而,沒有協定指出在某一特定範圍内之 所有IP位址是屬於某特定國家或與某地理區域有關之 AS。因此’相同的目的地位址可能對應於在地理上分開 本紙張尺度通用中國國家標準(CMS ) A4規格(210X297公釐) : — 3 91540 ----------装------,tr------^ (替先閱讀背面之注意事項再填寫本頁) 4^6023 A7 B7______ 五、發明説明(4 ) 很遠之目的地。目的地位址中並沒有指示目的地之地理位 置或指定有目的地IP位址之AS的地理位置。 {請先閲讀背面之注意事項再填寫本頁) 部份因為目的地位址並未連結至地理區,所以路由器 無法做出最佳化的路徑選擇》未最佳化之路徑可能減慢終 端至終端的網際網路通訊流或將通訊量傳送經過擁塞之連 結。如上所討論的,路电器利用目的地位址以便決定資料 包之路徑。但是,目的地位址卻表包含_與目的地之地理區 域、目的地用之AS之地理區域、或位於發訊者和目的地 — — 之間的路由器之地理區域有關之資訊。因此,路由器選擇 之路徑可能使得資料包在地理上必須傳輸經過非常遠的距 離。舉例而言’為了抵達具有的IP位址指定給位於英國 之第一 AS之目的地’位於美國之第二AS所產生之資料 包可能須傳遞至位於亞洲之第三AS,然後再傳送至位於 英國之第一 AS ^因為這個路徑具有最少的as。但是因為 資料包傳遞經過這麼長的距離,所以可能使資料包之傳輪 減慢》除此之外’資料包可能須跨經若干個國際性連結, 經濟部智慧財產局員工消費合作社印製 其通常具有非常高的連結使用率。因此,可能遺失資料包 或減慢資料包之傳輸。 因此,所需要的是可用於更有效地傳送資料包之系統 和方法。本發明則提供此項需求β [發明概念] 本發明提供用於為從發訊端至目的地至少傳輪經過一 個以上之系統的資料包決定傳送路徑之方法和系統。第一 訊端而笔二地i區後^應_^ _ 民張尺度適用中國國家揉準(cns)A4^721jt^;d--的地。目| 91540 4 A7 B7 五、發明説明(5 ) 的地亦具有並未對應於第二地理區之位址》在此概念中, 此方法和系統包含有使目的地用之位址與第二地理區相關 聯以便可依據第二地理區為資料包選擇傳送路徑。 在第·一概念中’此方法和系統包含有提供具有通訊量 可控制之婁接_連結及當將資料包傳送至目的地時至少選擇 此直接連結做為值送路徑之一部份。 在另一個概念中,此方法和系統可在網際網路環境中 完成任務。在此概念中’發訊端具有指定給第一自治系統 之第一網際網路協定(“IP”)位址,而目的地端具有指定給― 第二自治系統之第二IP位址。第一自治系統具有第一地 理區’而第二自治系統具有第二地理區。在此概念中,方 法和系統包含有取得用於第二自治系統之第二地理區、將 第二地理區對應至第二自治系統所以可依據第二地理區選 擇路徑、和選擇連接至具有第二地理區之第三自治區的直 接連結做為路徑的一部份。此方法和系統同時亦協助選擇 用於資料包之路徑。在此概念中,此方法和系統包含有取 得與自治系統相關之訊息。此自治系統具有地理區。此訊 息包含有地理區。此方法和系統亦包含有使自治系統與地 理區相關聯以便可依據地理區選擇路徑β 依據在此所揭露之系統與方法,本發明可更快速且在 傳送期間以較低的資料遺失率將資料包傳送至目的地。 [圖式之簡要說明] 第1圖係顯示可使用本發明之網際網路的部份方塊 圖β 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公董) 91540 請 先 閱 背 if 之 $ 事 項 再 寫 本 頁 .裝 訂 經 濟 部 智 慧. 財 產- 局. 工' 消 費 合 社 印 製 5 4 35 0 2 9、, A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明説明(6 ) 第2圖係顯示為從發訊端傳遞至目的地之資料包選擇 傳送路徑之傳统方法的流程圖。 第3圖所描述的是依據本發明以地理區為根據而用於 選擇傳送路徑之方法之實施例的流程圖》 第4圈係顯示依據本發明之用於為資料包選擇路徑之 方法之實施例的更詳細流程圖。 第5A圖係用於說明依據本發明之用於選擇路徑之方 法之實施例的流程圖。 第5B圖係顯示依據本發明之用於選擇路徑之方法之 實施例的更詳細流程圖。 第6圖係用於說明依據本發明以地理區為根據而用於 選擇傳送路徑之方法之最佳實施例的流程圖。 第7圖所描述的是依據本發明以地理區為根據而用於 選擇傳送路徑之方法之最佳實施例的詳細流程圖。 第8圖所描述的是當自治系統並未與目的地所在國家 之自治系統直接連接時’依據本發明以地理區為根據而用 於選擇傳送路徑之方法之實施例。 第9圖係顯示依據本發明而用於使地理區與位址相關 聯之方法之實施例的流程圖。 第1 0 A圖係顯示依據本發明而利用外部資料庫使地 理區與位址相關聯之一般方法之實施例的流程圖。 第10B圖係顯示依據本發明而利用第一外部資料庫 使地理區與位址相關聯之方法之最佳實施例的流程圖。 第10C圖係顯示依據本發明而利用第二外部資料庫 請 先 閲 讀 背 ii 之 注 意 事 項 再 填 % 本 t 订 逡 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 6 91540 五、發明説明(7 使地理區與位址相關聯之方法之最佳實施例的流程圖。 第10D圖係顯示依據本發明而利用第三外部資料庫 使地理區與位址相關聯之方法之最佳實施例的流程圖。 [符號之簡單說明] 經濟部智慧財I局肖i消費合作社印製 10 11 12 14 15 24 34 [發明之詳細說明】 本發明係有關於將資料包傳送經過網際網路之改良, 其特别是針對那些將傳送至位於另一個國家之目的地的資 料包。提出下列說明是為了使任何具有此方面技藝者能夠 使用本發明’且是就專利應用及其需求之觀點說明之。雖 然將以特殊實施例為例描述本發明,但是可對此最佳實施 例進行各種修正對具此方面技藝者而言將是顯而易見的, 且在此所提出的一般規則將可應用在其他實施例中。因 此’本發明將不是僅限於所顯示之實施例’而是使此處所 描述之原則和特性能與其最廣泛之目的相吻合。 第1圖係顯示可在如發訊端Η和目的地34等不同地 點間用於轉移資料包(未顯示)之網際網路1〇之部份簡化 方塊圖。網際網路1 〇包含有複數個自治系統(“AS”)12、 20 33 16 29 22 、 26 、 28 、 32 、 36 17 30 23 31 25、35 網際網路 發訊端 自治系統 路由器 連結 網路存取點 目的地 ---------批衣------iT------0 (請先閲讀背面之注意事項再填寫本頁) 表紙浪尺度適用中國國家標準(CNS > A4規格(210X297公廣) 7 91540 435〇29,, A7 ___— B7 *·、發明説明(8 ) ' ~ '— 2〇、22、26、28 和 32。如囷所示可將 AS 12、2〇、22、26、 28和32互相連接以便形成部份的網際網路ι〇β八兮12、 2〇、22、26、28或32可與特定的地點連接。舉例而言, AS 12和AS 32係分別連接至發訊端η和目的地34<>As u 分別經由連結15、16和17而連接至AS 20、AS 22和As 28。As 12可以說是直接連接至AS 2〇因為在AS 12和μ 2〇之間的路徑上並未通過任何其他的AS 22、26、28和 32。可用於將資料包從發訊端傳送至目的地之路徑稱為邏 輯路徑。AS 22分別經由網路存取點(ΝΑρ)24、連結23、 及連結25和35而分別連接至as 26和AS 20。AS 28經 由NAP 30和連結29和31而連接至as 32。將在下文中 更詳細地描述NAP 24和30〇AS26分別經由連結21和27 而連接至AS 20和AS 32 » AS 12、20、22、26、28或32通常包含有一個或多 個事業單位’如大學、公司、或其他的組織。然而,AS 1 2、 20、22、26' 28或32每一個均亦包含有多個地理上分散 且不相關之組織。亦可為AS 12 ' 20、22、26、28或32 指定一個或多個網際網路協定之位址範圍(IP)。舉例而 言’指定給AS 12的是發訊端π之ιρ位址。指定給as 32 的是目的地34之IP位址。AS 12、20、22、26、28或32 亦可考慮包含有至少一個在單一管理域下之路由器。舉例 而言,將AS 12和AS 32描述為分別具有路由器μ和33» 雖然未顯示’其他的路由器亦可存在於AS 12、20' 22、 26 ' 28和32之中。除此之外,特殊的AS 12、20、22、 本紙張尺度適财關家標準了&师)A4規格(21GX297公釐) - - 91540 (請先閲讀背面之注意事項再填寫本頁) -訂 經濟部智慧財產局尋工消費合作钍印製 8 . 五、發明説明(9 26 m2出現於其他具有單—連貫内部傳送路徑規劃 之八312、20'22、26、28或32。特殊^122〇22、 26、28或32呈現經由此八$可抵達如目的地34或發訊端 11等位置之一致現象β AS 12、20、22、26、28和32之每一個均具有與其 相關之特4 AS &瑪。AS代瑪是由三個有登記的組織指 疋的,其為美國網際網路代碼登記處(American Registry for Internal NumbersKARIN)、歐洲 IP 登記處(Reseaux ιρLA 7. _______B7_ V. Description of the Invention (i) [Field of Invention] The present invention relates to the transmission path of data packets, and more particularly to improved methods and systems for determining transmission paths, especially for the Internet The packet is sent to a destination related to another country. [Background of the Invention] Different types of transmission networks can be used to transfer information between users located in different locations. The information sent basically contains an address message that indicates where the information will be forwarded. This address information enables the network to send information to the intended recipient. The transmission network for transmitting information includes a plurality of interconnected nodes. An outlet is a place on the network where input information such as packet flow can flow to one of multiple paths. The branch has sufficient decision-making ability to determine the path β of one of f according to the address information and the communication protocol left on the network. Therefore, the branch can determine the transmission path of the information `` can send information to the next branch, Traversing a transmission network to reach its destination. k One such transmission network is the traditional public switched telephone network (" PSTN "). In the traditional PSTN, the branch is a traditional telephone exchange. The routing decision made by the branch is used for the setting of the incoming call. The address information on which the decision is based contains the telephone number of the callee. The telephone number of the callee usually has 10 digits. Using the United States as a sword, the 10-digit number includes a three-digit area code and a three-digit exchange code. In the traditional PSTN, there is a close relationship between a telephone number and a geographic location. For example, in a 10-digit telephone number, its area code indicates a specific geographic area. The exchange code is # f $ & this part of the geographic switch. The destination is also the name of the paper, which is called the Chinese standard (CNS) A4 specification < 210x197 mm " 5 ~ ------ 91540 ---------- binding line ( Please read the notes on the back before filling in this page) 4 35 29 A7 B7 V. Description of the invention (2) (Please read the notes on the back and fill in the phone number of this person > Partial order β Generally, when more digits are assigned to a telephone number, the geographic location of the telephone exchange used to ring the callee's telephone number can be determined faster. Therefore, the outlets in the traditional PST1ST use the callee's Phone numbers route calls directly to the geographic area closest to the receiver's physical location. Traditional telephone transmission switches ensure that the longest and ineffective route is not used to route calls to the receiver. The transmission network using a computer is The Internet. The Internet can be used to send data packets between two locations, one for the sender and the other as the destination. The Internet can be considered as a protocol that can communicate with the Internet ("IP" A collection of compatible systems. Unlike P Traditional transmission networks such as STN, the Internet can be used for a variety of services. The Internet has a greater tolerance for errors' and can be used for a wider range of speeds and transmission media than the PSTN. Consumption cooperation: Each packet transmitted through the Internet contains an address message. The address message in the packet contains the destination address of the receiving end of the packet. The destination address contains the destination IP address 〇IP address contains 4 integers, each integer is separated by a period. Each whole can be an integer β from 0 to 255. For example, the IP address and destination address can be 202.123.123.6. The IP address is usually assigned to an autonomous system ("AS") in the Internet. An autonomous system is a collection of all IP addresses and devices and communication links with IP in a single domain. IP addresses are assigned The autonomous system of the address can be an Internet service provider (ISP). It can specify a range of IP addresses for a particular AS, for example, 'an AS may have IP addresses from 202.123.4.0 to 202.123. 7.255. For Bao Ke applies the standard of paper for information transmission to the national standard of the country < CNS) A4 specification < 210X297 mm) 2 91540 Printed by the Consumers ’Cooperative of the Bureau of Intellectual Property 1. Bureau of the Ministry of Economic Affairs A7 ~~~ — — ___ B7 5 3. Description of invention (3) Send to the correct destination 'Each AS must be able to decide how to reach the autonomous system with the destination address. Therefore, the ASs on the Internet tell each other how to find IP addresses in various ranges on the Internet. Each AS publishes its range to the entire Internet, announcing, if you have a traffic range for one of these IP addresses, send it to me. Other AS use this information to confirm that the data packet arrives at the AS 'designated destination address, which is the destination. There are many ways that I packets can be used to traverse the Internet. The path contains several packets that AS must pass to reach the destination »Basically, the router is used as a ^ network point, and multiple paths can be accessed via this packet to reach the destination" using the destination address of the IP packet , The router located in the Internet decides how to send the packet to the AS ', which is the destination. A packet may have to go through a series of routers before reaching its destination ^ Some traditional routers choose the path that has the least number of ASs that they must pass before reaching their destination. k Although the Internet can transfer packets from the sender to the destination, this path may be slow or may cause packet loss. Because there is no geographical relationship between the destination address and the actual location of the AS that specifies the destination address. Because it is possible to assign a range of IP addresses to the same AS ', all IP addresses may be entered in groups. For example, the IP address range assigned to AS in Japan may be 202.123.4.0 to 202.123.7.255. However, there is no agreement that all IP addresses in a specific range belong to a specific country or AS associated with a geographical area. So 'the same destination address may correspond to the geographically separated paper standard of the General Chinese National Standard (CMS) A4 specification (210X297 mm): — 3 91540 ---------- installation ---- -, tr ------ ^ (read the notes on the back first and then fill out this page) 4 ^ 6023 A7 B7______ 5. Description of Invention (4) A far destination. The destination address does not indicate the geographic location of the destination or the geographic location of the AS that specifies the destination IP address. {Please read the notes on the back before filling this page) Partly because the destination address is not connected to the geographic area, the router cannot make the optimal path selection. The unoptimized path may slow the end-to-end Of Internet traffic or sending traffic over congested links. As discussed above, the router uses the destination address to determine the path of the packet. However, the destination address table contains information about the geographic area of the destination, the geographic area of the AS used by the destination, or the geographic area of the router between the sender and the destination. Therefore, the route chosen by the router may make it necessary for the packets to be transmitted geographically over very long distances. For example, 'in order to reach a destination with an IP address assigned to the first AS in the UK', a packet generated by a second AS in the US may have to be passed to a third AS in Asia and then to a third AS in Asia The UK's first AS ^ because this path has the least as. However, because the data packet is transmitted over such a long distance, it may slow down the transmission of the data packet. In addition, the data packet may have to cross several international links. Usually has very high link usage. As a result, packets may be lost or transmission may be slowed. What is needed, therefore, are systems and methods that can be used to more efficiently transmit data packets. The present invention provides this requirement β [Inventive Concept] The present invention provides a method and system for determining a transmission path for a data packet that passes at least one system from a transmitting end to a destination. After i while writing for the end zone first hearing should _ ^ ^ _ Scale applicable Chinese national Zhang Min rub quasi (cns) A4 ^ 721jt ^; d-- land. Head | 91540 4 A7 B7 V. The description of the invention (5) also has an address that does not correspond to the second geographical area "In this concept, this method and system includes the use of the destination address and the second The geographic regions are associated so that a transmission path can be selected for the packet based on the second geographic region. In the first concept, the method and system include providing a controllable communication link and selecting at least this direct link as a part of the sending path when transmitting the data packet to the destination. In another concept, this method and system can accomplish tasks in an Internet environment. In this concept, the 'sender has a first Internet Protocol ("IP") address assigned to the first autonomous system, and the destination has a second IP address assigned to-the second autonomous system. The first autonomous system has a first geographical area 'and the second autonomous system has a second geographical area. In this concept, the method and system include obtaining a second geographic area for the second autonomous system, mapping the second geographic area to the second autonomous system, so that a path can be selected according to the second geographic area, and selecting to connect to The direct connection of the third autonomous region of the two geographic regions is part of the path. This method and system also assist in choosing the path for the data package. In this concept, the method and system involve obtaining information related to the autonomous system. This autonomous system has a geographic area. This information includes geographic areas. The method and system also include associating an autonomous system with a geographic area so that a route can be selected based on the geographic area. According to the system and method disclosed herein, the present invention can more quickly and at a lower rate of data loss during transmission The packet is transmitted to the destination. [Brief description of the drawings] Figure 1 shows a partial block diagram of the Internet that can use the present invention. Β This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297). 91540 $ Matters rewrite this page. Binding of the Ministry of Economy Wisdom. Property-Bureau. Industry 'printed by the Consumer Cooperative 5 4 35 0 2 9, A7 B7 Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs 5. Description of Invention (6) FIG. 2 is a flowchart showing a conventional method for selecting a transmission path from a packet transmitted from a sender to a destination. Figure 3 depicts a flowchart of an embodiment of a method for selecting a transmission path based on a geographical area according to the present invention. The fourth circle shows the implementation of the method for selecting a path for a data packet according to the present invention. A more detailed flowchart of the example. Fig. 5A is a flowchart for explaining an embodiment of a method for selecting a route according to the present invention. Fig. 5B is a more detailed flowchart showing an embodiment of the method for selecting a path according to the present invention. Fig. 6 is a flowchart for explaining a preferred embodiment of a method for selecting a transmission path based on a geographical area according to the present invention. FIG. 7 is a detailed flowchart of a preferred embodiment of a method for selecting a transmission path based on a geographical area according to the present invention. FIG. 8 illustrates an embodiment of a method for selecting a transmission path based on a geographical area according to the present invention when the autonomous system is not directly connected to the autonomous system of the country where the destination is located. Figure 9 is a flowchart showing an embodiment of a method for associating a geographic area with an address in accordance with the present invention. Figure 10A is a flowchart showing an embodiment of a general method for associating a geographical area with an address using an external database according to the present invention. FIG. 10B is a flowchart showing a preferred embodiment of a method for associating a geographic area with an address using a first external database according to the present invention. Figure 10C shows the use of the second external database in accordance with the present invention. Please read the precautions in ii and then fill in%. This is a tally. This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm). 6 91540 5 Description of the Invention (7) A flowchart of a preferred embodiment of a method for associating geographic areas with addresses. Figure 10D shows a method for associating geographic areas with addresses using a third external database in accordance with the present invention. Flowchart of the preferred embodiment. [Simplified description of symbols] Printed by Xiao i Consumer Cooperative, Bureau of Intelligent Finance, Ministry of Economic Affairs 10 11 12 14 15 24 34 [Detailed description of the invention] The present invention relates to the transmission of data packets through the Internet. The improvement of the Internet, especially for those packets that will be delivered to destinations located in another country. The following description is provided to enable anyone skilled in the art to use the invention 'and to apply patents and their needs The point of view. Although the present invention will be described by taking a specific embodiment as an example, various modifications to this preferred embodiment will be made to those skilled in the art. It is easy to see, and the general rules set forth herein will be applicable to other embodiments. Therefore, the present invention will not be limited to the embodiments shown, but will make the principles and features described here the broadest. The purpose is consistent. Figure 1 shows a simplified block diagram of a portion of the Internet 10 that can be used to transfer packets (not shown) between different locations such as the originator and destination 34. Internet 1 〇 Contains a number of autonomous systems ("AS") 12, 20 33 16 29 22, 26, 28, 32, 36 17 30 23 31 25, 35 Internet sender autonomous system router connection network access point Destination --------- Approval ------ iT ------ 0 (Please read the precautions on the back before filling in this page) The paper scale is applicable to Chinese national standards (CNS > A4 specifications (210X297 public broadcasting) 7 91540 435〇29 ,, A7 ___— B7 *, invention description (8) '~' — 20, 22, 26, 28, and 32. AS 12 can be changed as shown in 囷, 20, 22, 26, 28, and 32 are connected to each other to form part of the Internet. Β, 12, 20, 22, 26, 28, or 32 can be combined with special For example, AS 12 and AS 32 are connected to originator n and destination 34 < > As u, respectively, to AS 20, AS 22 and As 28 via links 15, 16 and 17. As 12 can be said to be directly connected to AS 2 0 because the path between AS 12 and μ 2 0 did not pass through any other AS 22, 26, 28 and 32. The path that can be used to send a packet from the sender to the destination is called a logical path. AS 22 is connected to AS 26 and AS 20 via a network access point (NAP) 24, link 23, and links 25 and 35, respectively. AS 28 is connected to as 32 via NAP 30 and links 29 and 31. NAP 24 and 30 will be described in more detail below. AS26 connects to AS 20 and AS 32 via links 21 and 27 respectively. »AS 12, 20, 22, 26, 28, or 32 usually contains one or more business units. ' Such as a university, company, or other organization. However, each of AS 1, 2, 20, 22, 26 '28, or 32 also includes multiple geographically dispersed and unrelated organizations. You can also specify one or more Internet Protocol address ranges (IPs) for AS 12 '20, 22, 26, 28, or 32. For example, 'assigned to AS 12 is the address of the originator π. Assigned to as 32 is the IP address of destination 34. AS 12, 20, 22, 26, 28 or 32 can also be considered to include at least one router under a single management domain. For example, AS 12 and AS 32 are described as having routers μ and 33 respectively, although not shown ' Other routers may also exist in AS 12, 20 '22, 26' 28, and 32. In addition, the special AS 12, 20, 22, this paper size is suitable for financial and family standards & division) A4 size (21GX297 mm)--91540 (Please read the precautions on the back before filling this page) -Ordered by the Intellectual Property Bureau of the Ministry of Economic Affairs for work-sale and consumption cooperation printing 8. V. Invention Description (9 26 m2 appears in other 312, 20'22, 26, 28, or 32 with single-coherent internal transmission path planning. Special ^ 122〇22, 26, 28, or 32 presents a consistent phenomenon that can reach locations such as destination 34 or originator 11 through this $. Each of β AS 12, 20, 22, 26, 28, and 32 has its own Related special 4 AS & AS. AS Daima is directed by three registered organizations, which are the American Registry for Internal Numbers KARIN, the European IP Registry (Reseaux ιρ
Eur〇Peans)(RIPE)、和亞洲_太平洋網路資源中心(八仏·Eur〇Peans) (RIPE), and Asia_Pacific Internet Resource Center (Hachiman ·
Pacific Network Information Center)(APNIC)。因此,不 管AS 12、20、22、26、28和32是位於地球的那裡,其 均具有一個AS代碼。指定AS代碼是因為其為使用邊界 通路協定第 4 版(Border Gateway Pr〇t〇c〇l)(BGP4)之必要 條件。BGP4為目前在網際網路1Q中所使用之正式的且 ,一的AS内部傳送協定。因此,可將as 12、20、22、26、 28或32視為如路由器14或33等網際網路路由器之匯集, 其全部使用相同AS代碼以便連接至網際網路之其他 部份。在第1圖所顯示之網際網路1〇的此部份中,用於 各AS 12、20、22、26、28或32之AS代碼為第1圖中 跟隨在破折號之後的數字。舉例而言,AS 12之AS代碼 為一,AS20之AS代碼為二。 為了決定如何將資料包傳送至如目的地34等之目的 地,AS 12、20、22、26、2S或32與可能直接連接或不 是直接連接之AS 12、20、22、26' 28或32通訊。舉, 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公ϋ 91540 ^------1Τ------^ (請先閱讀背面之注意事項再填寫本頁) 經濟部43慧財i:局員工消費合作社印製 9 435029, A7 ________B7_ 五、發明説明(W ) 而言’ AS 12是經由高速遠程通信連結15而直接連接至 AS 20。同樣地’ AS 20貝J經由連結21而連接至AS 26。 然而,AS 12不直接連接到AS26。假如在AS 12之路由器 14是與在AS 32之路由器33或在AS 20之路由器(未顯 示)通訊’則一定有方法可以用於通知AS 12如何抵達另 一個AS 20、22、26、28或32 » BGP4為允許傳輸此種可 達性訊息之協定。 利用由各 AS 12 20、22、26、28 和 32 經由 BGP4 而傳送可達性訊息和資料包中之位址訊息,AS 12、20、 22、26、28和32可在發訊端11和目的地34間通訊和轉 送資料包。AS 12、20、22、26、28和32每一個均傳送 描述所指定IP位址範圍之可達性訊息。其他的AS 20、22、 26和28取得和轉達此可達性訊息》舉例而言,AS 12和 AS 32將傳送分別描述指定給AS 12和AS 32之IP位址 範圍之BGP訊息。AS 12和AS 32藉此廣播其可達性訊 息。AS 26接收用於AS 32之可達性訊息且將此訊息轉達 至AS 20。AS 20從AS 26接收用於AS 32之可達性訊息β AS 20通知AS 12經由AS 20可抵達AS 32 ’也就是指定 給AS 32之IP位址。同樣地,AS 20從AS 12接收可達 性訊息且將此訊息轉達給AS 26 » AS 26接收用於AS i 2 之可達性訊息且通知AS 32經由AS 26可抵達AS 12 ’也 就是指定給AS 12之IP位址。AS 12和AS 32公佈它們1P 網路或公佈它們的路徑11藉由將AS 20和AS 26當做AS 1 2 和AS 32間之網路開關,可為AS 12和AS 32提供傳 {請先閱讀背面之注意事項再填寫本頁) 打 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS ) A4規格(2IOX297公釐) 10 91540 經濟部智慧財1'局員玉消资合作社印踅 A7 _______ 五、發明説明(u) 服務。因此’ AS 20和AS 26可允許資料包分別傳輸經過 AS 20和AS 26。因此,可在發訊端11和目的地34之間 分別利用發訊端11和目的地34之IP位址做為目的地位 址傳送資料包。 就上述訊息交換之觀點而言,AS 12和AS 20可以說 是互神同等因為其可經由BGP4而互相直接交換可遠性訊 息。同樣地’ AS 20和AS 26亦是互相同等。雖然在上述 範例中所描述之路徑允許AS 12和AS 32可經由AS 22和 AS 26而通訊’此通訊亦可發生於經過AS 22和AS 26之 路徑,經過AS 28之路徑,或經過AS 22、AS 20和AS 26 之路徑。因此’ AS 12亦與AS 22和AS 28同等。同樣地, AS36亦與AS22同等《AS32亦與AS28同等。而AS20: 亦與AS 22同等。 有些AS 22、26、28或32藉由使用NAP,譬*如NAP 24 和NAP 30建立BGP 4同等。NAP 24和30為一共用實髅 位置,在此許多AS可以除了高速區域網路技術以外之方 式互相連接。因此’ NAP 24使AS 22、AS 20和AS 26 互相連接。同樣地’ NAP 30使AS 28和AS 32連接。其 他的AS(未顯示)亦可連接至NAP 24和NAP 30。 網際網路10杳不同地—點之間具有多重的路徑β舉例 而言’在發訊端11和目的地34之間有多重的路徑。其令 一路徑為經由AS 20和AS 26。另一個路徑為經由22 和AS 26。在此路徑上’資料包將亦通過NAP 24。第三 條路徑為經由28。在此路徑上’資料包將亦通過nap 本紙張尺度適用中國國家標準(CNS ) 規格(210X 297公釐) -- 11 91540 I---------疼------ΪΤ------^ (請先閱讀背面之注意寧項再填寫本頁) 4 3 5 0 2 9 A7 B7 五、發明説明(12 ) {請先閱讀背面之注意事項再填寫本頁) 30。第四條路徑為經由AS 22、AS 20、和AS 26。此路 徑則跨經NAP 24。具有多重路徑是所希望之特性因為多 餘的路徑使得資料包在喪失任何一條路徑時可使用替代路 徑。然而’當有多重路徑可抵達目的地時,由路由器14 決定選擇那一條路徑將資料包送至目的地34 ^決定要選 擇那一條路徑是很重要的’因為資料包橫越網際網路 時所使用的路徑將決定多快可將資料包送達目的地及路徑 中因為連結擁塞而導致資料遺失之機率。 在AS 12、20、22、26、28或32 t之路由器為資料 包選擇當其橫越網際網路10時所使用的路徑。舉例而言, 路由器14和33為資料包選擇在發訊端u和目的地34間 移動之路徑。來自發訊端11之資料包包含有指示目的地 34之目的地位址。目的地位址通常包含有目的地34之ip 位址。利用目的地位址和BGP4,路由器14選擇將資料 包傳送至AS-6 32,因此至目的地34之路徑。 經濟部智慧財產局員工涓費合作社印製 當發訊端Π傳送訊息,如資料包,至目的地34,在 AS 12之中的路由器14決定要選擇那一條路徑《尤甚者, 由路由器14決定AS 20、22或28的那一個是下一個要 傳送資料包之AS。因此,路由器14決定要將資料包送至 連結15、16和17中的那一個》路由器14使用可達性訊 息以便決定路徑》AS 12經由BGP4從AS 20、AS 22、和 AS 28接收有關AS 32之可達性訊息依據此訊息,在AS 12中之路由器14決定要將資料包傳送至與AS 12直接連 結之AS 20、22、和28的那一個。這個決定稱為選擇,’下 本紙張疋度適用中國國家標準(CNS ) A4规格(2丨〇 X297公釐) 12 91540 經濟部智荖財!局員工消旁合作钍印製 13 A7 B7 _ 一 . - 一._ .......... 五、發明説明(n) 一個跳躍”因為通常將資料包視為從一個路由器’’跳躍”至 另一個。在選擇下一個跳躍之後,可將資料包傳送至下一 個AS 20、22或28。然後資料包經過下一個AS 20、22 或28中之路由器(未顯示)。在下一個AS 20、22或28之 邊界的路由器其中之一決定資料包下一個要跳躍的AS。 因此,這些路由器(未顯示)將選擇連結21、24和29的其 中之一。 第2圈係顯示用於選擇路徑之傳統方法5〇〇將以由 路由器1 4所執行之路徑選擇為例描述傳統方法50。傳統 方法50為下一個跳躍方法,其選擇資料包將跳躍的下一 個AS 20、22或28»雖然用於選擇路徑之完整傳統方法 包含有更多的步驟,在此僅顯示必要的步騍β首先,在 步驟52令’為每條路徑設定局部優先權。局部優先權為 指疋給特殊路徑之加權。優先權愈高,資料包愈可能傳 迤經過使用此連結之路徑。假如未特別設定局部優先權, 貝g在步驟52甲給予每一路徑相同的預設優先權。假如路 徑具有較高之匈部優先權,則將經由步驟54選擇此路徑。 因此,在步驟54中決定資料包將穿越與具有最高局部優 先權之路徑相關的連結15、16或17。因為在步驟Η中 通常將預設優先權用於所有的路徑,所以步驟以將不選 擇路徑°假如所有的局部優先權都相@,則在步驟5以 將選擇具有最少AS 12、20、22、26、28和32之路徑。 步称56已知為從所有^路徑中選擇具有最短長度之路 為其一般是使用預設 91540 ---------裝------,玎------il {請先閎讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 【4 4 350 29 ·. A7 B7 五、發明説明(l4) 優先權°因此,在步驟56中’決定資料包穿越之路徑為 具有最短AS路徑之連結15、16或17。 AS路徑通常定嚷為AS代碼之有序序列,如由從發 訊端至目的地之徑上的AS代碼排列成之有序序列。再 回去參考第1圖,經由AS 22和AS 20之路徑的AS代碼 為4、2、3、6»在此AS路徑中有4個AS代碼。因此, 此AS路徑具有的長度為4。經過AS 22而從AS 12至AS 32之AS路把為4、3、6»在此AS路徑中有3個AS代 瑪’所以其AS路徑長度為3。以此類推,經由as2.8至 AS 32之AS路徑為5、6,其具有的AS路徑長度為2。 最後’經由AS 20從AS 12至AS 32的AS路徑為2、3、 6且其長度為3。因此’利用傳統方法50,路由器14通 常會選擇經由連結17將資料包傳送至AS 28。 雖然傳統方法50選擇可以將資料包傳送經過網際網 路10之路徑’具有Λ方面技藝者可了解所選擇路徑可能 會通過超載之區段,此將延遲封包之傳送或導致封包之丨 遺失。此將導致不良的系統性能《雖然方法5〇可將資料 包需經過的AS 12、20、22、26' 28和32的數目減少, 但是AS代碼、目的地位址、和AS路徑並沒有指示AS12、 20、22、26、28或32、發sfl端11或目的地34之地理位 置。除此之外’在具有最短AS路徑之路徑上的如AS 28 和AS 32等AS在地理上可能距離很遠。因此,需花費 很長的時間將資料包從AS 28傳送至AS 32,所以增加等 待時間。 本紙張尺度通用中國國家標準(CNS ) A4規格(210 X 297公釐) 91540 I,--1-----|一 ------訂------線、- (請先閱讀背面之注意事項再填寫本頁) A7 B7 五、發明説明(l5) 除此之外,AS代碼、目的地位址、和AS路徑並沒 有指示AS 、連結或NAP上之通訊量。因此,利用傳統 方法50所選擇之路徑可能包含有超載之AS 12、20、22、 26、28或32’或者超載之NAP 24或30。舉例而言,假 設AS 28超栽。同樣地,亦可假設NAP 30超載。方法50 將導致資料包傳送經過連結17就算另一條路徑會更有 效。因此,資料包將傳輸經過AS 28和NAP 30,而在此 這二者均超載。因此,資料包將可能遺失或延遲。 當AS 20和指定有目的地34位址之AS 32與發訊端 11並不是在同一個國家中時,此問題將更加惡化。因為 資料包是傳遞於國際間,所以可能包括很大的地理距離。 因此,因資料包傳輸經過很大的地理距離所引起之等待 時間將增加。舉例而言,假設AS 20、AS 26和AS 32是 在英國,而至少AS 12是在美國。另外假設AS 28是在 壶洲。利用傳統方法50,此資料包將從美國傳送至亞洲’ 然後在到英國。因為資料包傳遞於三個大陸之間’比起 傳送經過具有較多AS之路徑,此資料包將需花更多時 間才能抵達目的地34。 同樣地,因包括有國際性連結的事實將更進一步影 響資料包之傳輸。舉例而言,假設AS 20、AS 26和AS 32 是在英國,而AS 12、AS 22和AS 28是在美國。因此’ 連結1 5、25和3 1是介於英國和美國間之國際性連結。 國際性連結通常是易高度地超載。然而’假設連結15可 提供更快速的路徑至目的地34。傳統方法50仍會決疋經 (請先閱讀背面之注意事項再填寫本頁) iPacific Network Information Center) (APNIC). Therefore, regardless of where AS 12, 20, 22, 26, 28, and 32 are located on the earth, they all have an AS code. The AS code is specified because it is a necessary condition for using Border Gateway Protocol Version 4 (BGP4). BGP4 is a formal and internal AS transfer protocol currently used in Internet 1Q. Therefore, as 12, 20, 22, 26, 28, or 32 can be considered as a collection of Internet routers such as routers 14 or 33, all of which use the same AS code to connect to other parts of the Internet. In this part of Internet 10 shown in Figure 1, the AS codes for each AS 12, 20, 22, 26, 28, or 32 are the numbers following the dash in Figure 1. For example, AS 12 has an AS code of one and AS 20 has an AS code of two. In order to decide how to send a packet to a destination such as destination 34, AS 12, 20, 22, 26, 2S or 32 and AS 12, 20, 22, 26 '28 or 32 which may or may not be directly connected communication. For example, this paper size is applicable to China National Standard (CNS) A4 specifications (210X297 public ϋ 91540 ^ ------ 1T ------ ^ (Please read the precautions on the back before filling this page) Ministry of Economy 43 Huicai i: Printed by the Bureau ’s Consumer Cooperatives 9 435029, A7 ________B7_ 5. In the description of the invention (W), 'AS 12 is directly connected to AS 20 via high-speed telecommunications link 15. Similarly,' AS 20 BJ via link 21 and connect to AS 26. However, AS 12 is not directly connected to AS 26. If router 14 in AS 12 is communicating with router 33 in AS 32 or router (not shown) in AS 20, then there must be a way to use Informing AS 12 of how to reach another AS 20, 22, 26, 28 or 32 »BGP4 is an agreement that allows such reachability messages to be transmitted. Use AS 12 20, 22, 26, 28 and 32 to transmit via BGP4 Address information in reachability messages and packets. AS 12, 20, 22, 26, 28 and 32 can communicate and forward packets between sender 11 and destination 34. AS 12, 20, 22, 26 , 28 and 32 each send a reachability message describing the specified IP address range. The other AS 20, 22, 26, and 28 Get and Reach this Reachability Message "For example, AS 12 and AS 32 will send BGP messages describing the IP address ranges assigned to AS 12 and AS 32, respectively. AS 12 and AS 32 use this Broadcast its reachability message. AS 26 receives the reachability message for AS 32 and forwards this message to AS 20. AS 20 receives the reachability message for AS 32 from AS 26 β AS 20 notifies AS 12 via AS 20 can reach AS 32 'that is, the IP address assigned to AS 32. Similarly, AS 20 receives a reachability message from AS 12 and forwards this message to AS 26 »AS 26 receives the availability for AS i 2 And inform AS 32 that AS 12 is reachable via AS 26 'that is, the IP address assigned to AS 12. AS 12 and AS 32 advertise their 1P network or advertise their path 11 by connecting AS 20 and AS 26 As a network switch between AS 1 2 and AS 32, it can provide transmission for AS 12 and AS 32 (Please read the precautions on the back before filling this page) Printed by the Consumers ’Cooperative of Intellectual Property Bureau of the Ministry of Economic Affairs China National Standard (CNS) A4 specification (2IOX297 mm) 10 91540 Yucai Cooperative, member of the 1 'Bureau of the Ministry of Economic Affairs印 7 A7 _______ 5. Description of invention (u) Services. So ‘AS 20 and AS 26 allow data packets to pass through AS 20 and AS 26, respectively. Therefore, data packets can be transmitted between the sender 11 and the destination 34 using the IP addresses of the sender 11 and the destination 34 as the destination addresses, respectively. From the perspective of the above message exchange, AS 12 and AS 20 can be said to be mutually equal, because they can directly exchange remote information with each other via BGP4. Similarly, AS 20 and AS 26 are equal to each other. Although the path described in the above example allows AS 12 and AS 32 to communicate via AS 22 and AS 26 'This communication can also occur on paths via AS 22 and AS 26, via AS 28, or via AS 22 , AS 20, and AS 26. So 'AS 12 is also equivalent to AS 22 and AS 28. Similarly, AS36 is equivalent to AS22, and AS32 is also equivalent to AS28. And AS20: Same as AS 22. Some AS 22, 26, 28, or 32 establish BGP 4 peers by using NAP, such as * NAP 24 and NAP 30. NAPs 24 and 30 are shared real-world locations, where many ASs can be connected to each other by means other than high-speed LAN technology. So 'NAP 24 connects AS 22, AS 20 and AS 26 to each other. Similarly, 'NAP 30 connects AS 28 and AS 32. Other ASs (not shown) can also be connected to NAP 24 and NAP 30. The Internet 10 has multiple paths between different locations-points. For example, there are multiple paths between the originator 11 and the destination 34. It makes one path via AS 20 and AS 26. The other route is via 22 and AS 26. On this path 'packets will also pass NAP 24. The third path is via 28. On this path, the data package will also pass the nap paper size applicable to the Chinese National Standard (CNS) specifications (210X 297 mm)-11 91540 I --------- ache ------ ΪΤ ------ ^ (Please read the note on the back before filling this page) 4 3 5 0 2 9 A7 B7 V. Description of the invention (12) {Please read the notes on the back before filling this page) 30 . The fourth path is via AS 22, AS 20, and AS 26. This path crosses NAP 24. Having multiple paths is a desirable feature because the redundant paths allow the packet to use an alternative path if any one path is lost. However, 'when there are multiple paths to reach the destination, router 14 decides which path to choose to send the packet to the destination 34 ^ It is important to decide which path to choose' because packets cross the Internet The path used determines how fast the packet can be delivered to the destination and the chance of data loss due to congestion in the path. The router at AS 12, 20, 22, 26, 28, or 32 t chooses the path for the packet as it traverses Internet 10. For example, routers 14 and 33 select the path for the packet to move between the sender u and the destination 34. The data packet from the sender 11 contains a destination address indicating the destination 34. The destination address usually contains the IP address of destination 34. Using the destination address and BGP4, router 14 chooses to send the packet to AS-6 32, and thus the path to destination 34. The staff of the Intellectual Property Bureau of the Ministry of Economic Affairs printed the cooperative to send messages, such as data packets, to the destination 34. The router 14 in AS 12 decided which path to use, especially, by router 14. Decide which AS 20, 22, or 28 is the next AS to send the packet. Therefore, router 14 decides to send the packet to the one of links 15, 16, and 17. "Router 14 uses reachability messages to determine the path." AS 12 receives the relevant AS from AS 20, AS 22, and AS 28 via BGP 4. 32 reachability message Based on this message, router 14 in AS 12 decides to send the packet to the one of AS 20, 22, and 28 which is directly connected to AS 12. This decision is called choice, and the paper is compliant with the Chinese National Standard (CNS) A4 specification (2 丨 〇 X297 mm). Bureau employees cooperated and printed 13 A7 B7 _ I.-I._ .......... V. Description of invention (n) One hop "because the data packet is usually regarded as coming from a router" "Jump" to another. After selecting the next hop, the packet can be transferred to the next AS 20, 22 or 28. The packet then passes through the router in the next AS 20, 22 or 28 (not shown). One of the routers at the border of the next AS 20, 22, or 28 determines the next AS to which the packet will hop. Therefore, these routers (not shown) will choose one of the links 21, 24, and 29. The second circle shows the conventional method 50 for selecting a path. The conventional method 50 will be described using the path selection performed by the router 14 as an example. Traditional method 50 is the next hopping method, which selects the next AS 20, 22, or 28 that the packet will skip. Although the complete traditional method for selecting a path contains more steps, only the necessary steps are shown here. Β First, in step 52, the local priority is set for each path. Local priority refers to the weight given to special paths. The higher the priority, the more likely a packet will pass through the path using this link. If no local priority is specifically set, Beg gives the same preset priority to each path in step 52A. If the path has a higher Hungarian priority, this path will be selected via step 54. Therefore, it is determined in step 54 that the packet will traverse links 15, 16, or 17 associated with the path with the highest local priority. Because the preset priority is usually used for all the paths in step Η, the step will not select the path. If all the local priorities are equal to @, then in step 5 the selection will have the least AS 12, 20, 22 , 26, 28, and 32. Step 56 is known to select the path with the shortest length from all ^ paths. Generally, it uses the preset 91540 --------- install ------, 玎 ------ il {Please read the notes on the back before filling this page) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs [4 4 350 29 ·. A7 B7 V. Invention Description (l4) Priority ° Therefore, in step 56 ' Determine the path that the packet traverses is the link 15, 16 or 17 with the shortest AS path. The AS path is usually defined as an ordered sequence of AS codes, such as an ordered sequence arranged by AS codes on the path from the sender to the destination. Referring back to Figure 1, the AS codes for the paths through AS 22 and AS 20 are 4, 2, 3, 6. There are 4 AS codes in this AS path. Therefore, this AS path has a length of 4. The AS handlebars from AS 12 to AS 32 passing through AS 22 are 4, 3, and 6 »In this AS path, there are 3 AS coders' so the AS path length is 3. By analogy, the AS path through AS2.8 to AS 32 is 5, 6 and it has an AS path length of 2. Finally, the AS path from AS 12 to AS 32 via AS 20 is 2, 3, 6 and its length is 3. So, using the traditional method 50, the router 14 will usually choose to send the packet to the AS 28 via the link 17. Although the traditional method 50 selects the path that can transmit the data packet through the Internet 10, the artist can understand that the selected path may pass the overloaded section, which will delay the transmission of the packet or cause the packet to be lost. This will result in poor system performance. "Although Method 50 can reduce the number of AS 12, 20, 22, 26 '28, and 32 packets need to pass through, AS codes, destination addresses, and AS paths do not indicate AS12. , 20, 22, 26, 28, or 32, sender 11 or destination 34. In addition, the ASs such as AS 28 and AS 32 on the path with the shortest AS path may be geographically far away. Therefore, it takes a long time to transfer the packets from AS 28 to AS 32, so the waiting time is increased. The size of this paper is in accordance with the Chinese National Standard (CNS) A4 specification (210 X 297 mm) 91540 I, ----------------------------- line,-(please (Please read the notes on the back before filling this page) A7 B7 V. Description of the Invention (l5) In addition, the AS code, destination address, and AS path do not indicate the traffic on the AS, link, or NAP. Therefore, the path selected using the traditional method 50 may include overloaded AS 12, 20, 22, 26, 28, or 32 'or overloaded NAP 24 or 30. For example, suppose AS 28 is overrun. Similarly, it is also assumed that the NAP 30 is overloaded. Method 50 will cause packets to be transmitted over link 17 even if another path is more efficient. As a result, packets will be transmitted through AS 28 and NAP 30, both of which are overloaded. As a result, data packages may be lost or delayed. This problem will be exacerbated when AS 20 and AS 32 with destination 34 address and sender 11 are not in the same country. Because the package is delivered internationally, it may include a large geographic distance. As a result, latency caused by packet transmissions over large geographic distances will increase. For example, suppose AS 20, AS 26, and AS 32 are in the United Kingdom and at least AS 12 is in the United States. It is also assumed that AS 28 is in Huzhou. Using the traditional method 50, this packet will be transmitted from the US to Asia ’and then to the UK. Because a packet is passed between the three continents', it will take more time to reach the destination 34 than a packet with more AS paths. Similarly, the fact that international links are included will further affect the transmission of data packets. For example, suppose AS 20, AS 26, and AS 32 are in the United Kingdom, while AS 12, AS 22, and AS 28 are in the United States. So ‘links 15, 25, and 31 are international links between the United Kingdom and the United States. International links are usually highly overloaded. However 'suppose link 15 can provide a faster path to destination 34. The traditional method 50 will still determine the scriptures (please read the notes on the back before filling this page) i
T 經濟部智慧財£局員上渭費合作.社印製 本紙張尺度適用中國國家標隼(CNS ) A4規格(210X 297公釐) 15 91540 435029 A7 B7 經 濟 部 智 慧 財 L 局 消 費 合 社 印 製 五、發明説明(16 ) 由連結17將資料包傳送至as 28,因為此為最短的AS路 °因此’將導致資料包之傳輸延遲或資料包遺失β因 為連結17為一很可能超載之國際性連結,所以將會提高 延遲或資料包遺失之可能性β因此,在發訊端U或目的 地34之使用者很可能無法收到重要的資料包或可能無法 即時收到資料包。 本發明提供用於為從發訊端至目的地間至少經過一 個以上系統之封包決定路徑之方法和系統a第一地理區 係對應於發訊端而第二地理區則對應於目的地。此目的 地所具有的位址並未指示對應於目的地之第二地理區。 在此概念中’此方法和系統包含有使目的地用之位址與 第二地理區相關聯以允許依據第二地理區為資料包之路 徑選擇’並依據第二地理區選擇路徑。 在第二概念中’此方法和系統包含有提供具有可控制 通訊量之直接連結及當將資料包傳送至目的地時至少選擇 此直接連結做為傳送路徑之一部份。 在另一個概念中,此方法和系統可在網際網路環境 中完成任務。在此概念中,發訊端具有指定給第一自治 系統之第一網際網路協定(“IP”)位址,而目的地端具有指 毛給第二自治系統之第二IP位址β第一自治系統具有第 —地理區’而第二自治系統具有第二地理區。在此概念 t ’方法和系統包含有取得用於第二自治系統之第二地 理區、將第二地理區對應至第二自治系统所以可依據第 二地理區選擇路徑、和選擇連接至具有第二从搜庶夕笛 本紙张尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) 16 91540 (請先閲讀背面之注意事項再填寫本頁> 訂 达 Α7 Β7 經濟部智慧財表—肖工消費合作钍印製 五、發明説明(17) 三自治區的直接連結做為路徑的至少一部份<» 此方法和系統同時亦協助選擇用於資料包之路徑。 在此概念中’此方法和系統包含有取得與自治系統相關 之訊息。此自治系統具有地理區。此訊息包含有地理區α 在此概念中’此方法和系統亦包含有使自治系統與地理 區相關聯以便可依據地理區選擇路徑。 因為將目的地之地理區加以考慮,所以可選繹發訊 端和目的地間較有效之路徑。因為在其中一概念中使J 具有可控制敗訊暈之直接連結,所以可選擇有钕之 路徑》因此’可降低傳輸延遲。除此之外,亦可將傳輪 期間資料包之遺失率降低。因此,可改善系統的性能^ 將從傳送資料包至特殊國家、特殊資料發射端、特 定的通訊協定、和使用特定運算法則以便決定封包傳送 路徑之特殊路由器的角度說明本發明β然而,任何具有 此方面技藝者很容易即可認同此方法和系統可用於有效 地操作其他型式之封包、其他目的地、其他資料發訊端、 其他的通訊協定、和使用其他特定運算法則以便決定傳 送路徑之路由器。再者,沒有任何事可阻止將此方法和 系統用於單一國家中。亦將就為產生資料包之as進行路 徑選擇之觀點說明本發明。然而,任何具此方面技藝者 將了解可將本發明應用在沒有產生資料包之另一個AS。 亦將就為從特殊發訊端傳送至特殊目的地之資料包選擇 路徑之觀點說明本發明β然而’沒有任何事可阻止將此 _^法和系統用於連接不同的發訊端或目的地。 本紙張认適用中國國“準規格(2ΗΓΧ297公釐)---—- (請先閲讀背面之注意事項再填寫本頁j .裝 、-=a 線 17 91540 ^35029- A7 ----_B7___ 五、發明説明(18)T Wisdom of the Ministry of Economic Affairs and Bureau of the Ministry of Economic Affairs and Cooperation. Printed on the paper standard for the Chinese National Standard (CNS) A4 (210X 297 mm) 15 91540 435029 A7 B7 V. Description of the invention (16) The data packet is transmitted to AS 28 by link 17, because this is the shortest AS path °, so 'will cause a delay in the transmission of the data packet or the loss of the data packet β because link 17 is an international that is likely to be overloaded Sexual connection, so it will increase the possibility of delay or packet loss β. Therefore, the user at the sender U or the destination 34 may not receive important packets or may not receive the packets in real time. The present invention provides a method and system for determining a path for a packet passing from at least one system to a destination via at least one system. The first geographic area corresponds to the originating side and the second geographic area corresponds to the destination. The destination has an address that does not indicate a second geographic area corresponding to the destination. In this concept, 'the method and system includes associating an address for a destination with a second geographic area to allow path selection of a packet based on the second geographic area' and selecting a route based on the second geographic area. In the second concept, the method and system include providing a direct link with controllable traffic and selecting at least this direct link as part of a transmission path when transmitting a packet to a destination. In another concept, the method and system perform tasks in an Internet environment. In this concept, the originating end has a first Internet Protocol ("IP") address assigned to the first autonomous system, and the destination end has a second IP address referring to the second autonomous system. One autonomous system has a first geographical area and the second autonomous system has a second geographical area. Here, the concept t 'method and system include obtaining a second geographic area for the second autonomous system, mapping the second geographic area to the second autonomous system, so the route can be selected according to the second geographic area, and the connection to the Second, the paper size of Sou Xi Xi Di applies to Chinese National Standards (CNS) A4 specifications (210X 297 mm) 16 91540 (Please read the precautions on the back before filling out this page> Order A7 Β7 Ministry of Economy Smart Financial Statement — Printed by Xiao Gong's Consumer Cooperation. V. Invention Description (17) Direct connection of the three autonomous regions as at least part of the path < »This method and system also assist in selecting the path for the data package. In this concept ' This method and system includes obtaining information related to an autonomous system. This autonomous system has a geographic area. This message contains a geographic area α In the concept 'the method and system also includes associating an autonomous system with a geographic area so that it can be Choose a route based on geographic area. Because the geographic area of the destination is considered, a more effective route between the sender and the destination can be selected. Because in one of the concepts Make J have a direct connection that can control the loss of halo, so you can choose the path with neodymium. Therefore, you can reduce the transmission delay. In addition, you can reduce the packet loss rate during the transfer. Therefore, the system can be improved The performance of the present invention will be described from the perspective of transmitting data packets to special countries, special data transmitters, specific communication protocols, and special routers that use specific algorithms to determine the packet transmission path. However, any person with this skill is very It is easy to agree that this method and system can be used to effectively operate other types of packets, other destinations, other data senders, other communication protocols, and routers that use other specific algorithms to determine the transmission path. Furthermore, there is no Nothing prevents this method and system from being used in a single country. The invention will also be explained in terms of the path selection for generating the packet. However, any person skilled in the art will understand that the invention can be applied in the absence of The other AS that generated the packet will also be sent from the special sender to the special destination. The point of view of the package selection path illustrates the present invention β. However, there is nothing that can prevent this method and system from being used to connect different originators or destinations. This paper is approved for China's "quasi-spec (2ΗΓ297mm) ------ (Please read the notes on the back before filling in this page j. Installation,-= a line 17 91540 ^ 35029- A7 ----_ B7___ V. Description of the invention (18)
(請先閱讀背面之注意事項再填寫本頁W 為了更詳細說明依據本發明之方法和系統,參考第3 圏’其描述依據本發明用於以地理區j依據選擇路徑< 方法100的實施例。在此以將資料包從發訊端11至目的 地34為例討論方法1〇〇 目的地34具有位址β在最佳實 施例中’此位址為目的地34之IP位址》對應於目的地34 之地理區。在某些實施例中,對應於目的地34之地理區 為用於指定有目的地34之IP位址之AS 32的地理區。在 最佳實施例中,對應於目的地34之地理區為用於指定有 目的地34之IP位址之AS 32的一個或多個國家。然而, 在另一個實施例中,此地理區可以是另一個區域,如AS32 所在之特殊地區或目的地34所在之地理區。注意目的地 34所在之地理區可以不同於指定有目的地34之IP位址 之AS 32的地理區。 經濟部智慧財產局員工消費合作社印製 經過步驟102使此位址與對應於目的地34之地理區 相關聯。然後在步驟104中依據對應於目的地34之地理 區選擇資料包用之路徑。在某些實施例中,此資料包具 有目的地位址,其最好是目的地34之IP位址。在此實施 例中’利用資料包之目的地位址和在步驟102中所產生 之位址和地理區之間的關連而執行步驟104。同時在最佳 實施例中*步驟104包含有選擇由私人所擁有之直接連 結,其連接至與指定有目的地34之IP位址之AS 32處於 相同國家之AS。在此實施例中,AS 32之國家最好是以 國際標準組織之國家代碼(“國家碼”)來表示。在另一個實 施例中,步驟104包含有選擇與AS 32所在位置靠近國 本紙伕尺度適用中國國家標準(CNS ) A4規格(210X297公釐) ~~ 18 91540 經濟部智慧財產'局員玉消費合作社印製 19 A 7 B7 五、發明説明(19) 家之AS連接之私人擁有之直接連結。 第4圈係顯示依據本發明用於選擇路徑之方法110 之最佳實施例的詳細流程圖。在討論方法11 〇時,假設 是由在AS 12中之路由器14執行方法11〇。藉由步驟112 取得指定有目的地34之IP位址之AS 32之國家碼和AS代 碼β因此,在此實施例中*對應於目的地之地理區為指 定有目的地之IP位址之AS12用的一個或多個國家。同 時在最佳實施例中,以AS代碼表示AS。每個國家最好 是以其國家碼來表示。然後在步驟114中將用於AS 32 之國家轉換成AS 32之AS代碼。因此,指定給AS 32之 IP位址亦可與用於AS 32用之國家碼相關聯。然德經由 步驟116將與AS代碼相關聯之國家對應至直接至此國家 的特殊接連β因此,在步驟Π6中可將與AS 32相關聯 之國家對應至直接連結I5。在最佳實施例中,此直接連 結最好是位於如A S 12等特殊A S和在第二個國家中之a S 間之私人所有的連結。同時在最佳實施例中,诵過亩炷 連結之通訊量是可控制的’舉例而言,可確定此直接連 結並沒有招載。然後在藉由步驟Η8選擇此連結來將資 料包傳送至此國家β 為了更詳細地描述方法100和110之優點,再度參 考第1圖。假設AS 12 ' AS 22、和AS 28是在第一國家 中,如美國〇亦假設AS20、AS26和AS32是位於第二 國家中,如英國。連結15為第二國家中在AS 12和AS 20 間直接由私人維護之國際性連结。而連結2 5和3 1則是 本紙張尺度適用中國國家樣率(CNS〉Μ規格(210X297公釐) 91540 坤水 n 1 訂 n n ^ (請先閱讀背面之注意事項再填寫本頁) 4 35 ο 2 9 Α7 Β7 經濟部智慧財產局員工消費合作社印製 五、發明説明(2〇 ) 位於第一國家和第二國家間之傳統的國際性連結,因此 可月b會超載。由AS 12中之路由器14教行方法1〇〇或no, 指定有目的地34之IP位址的AS 32是與第二國家有 關。在步驟112中取得AS 32之AS代碼和第二國家,寒 國’之辨識碼。在步驟114將第二國家對應至as 32之A: 代碼。因此’可將步驟114視為使As 32之地理區與目 的地34之IP位址相關聯’因為其將第二國家對應至指笼 有目的地34之IP位址的AS 32之AS代碼。在步驟116 中,將介於第二國家和在AS 12中之路由器14間的連結 15對應至此國家。因此,在步驟118令,選擇此路徑所 以在下一次跳躍時資料包可經由連結15而傳送至AS2〇c 因為下一次跳躍是經過連結1 5 ’所以可改善資料包 之傳送速度和遣失機率β連結15是直接位於八312和A丨 32之國家間。因此’來自發訊端n之資料包將從asi2 傳送至位於第二國家之AS 20。然後,資料包在國内從乂 2〇傳送至AS 26和AS 32。因此’將可縮短資料包傳送 至目的地34所經過之距離。因此,可改善傳送時間且降 低因擁塞而遺失資料包之機率。 亦可將依據本發明之方法和系統視為是依據連結而 選擇路徑’其中此連結是辑合至為資料包決定路徑之路 由器。第5A圖係描述依據本發明之用於選擇路徑之方去 200之實施例。第5A圖將與在第i圖中將資料包從發訊 端11傳送至目的地34 —同討論。森叶m , 。了。發訊端11係對應於第 -二地且與第—AS 的地34對應於帛_ 本紙浪尺度制家制M CNS ) Α4規格< 210X29^i~i—' --边~ — 20 91540 (請先閲讀背面之注意事項再填寫本頁) ,ιτ 波! 經濟部智慧財_產局員x-涓費合作社印製 A7 B7 五、發明説明(2l) 地理區且與第一 AS 32相關聯》雖然在此說明中方法200 疋由在第一 AS 12中之路由器14執行,但是方法2〇〇亦 可由在另一個AS中的另一個路由器執行。舉例而言,方 法200可由具有第二地理區之第三as(未顯示)中之第三 路由器(未顯示)執行。(Please read the notes on the back before filling out this page. W For a more detailed description of the method and system according to the present invention, refer to Section 3), which describes its use for selecting a route based on geographic area j according to the present invention < implementation of method 100 For example, here is a method of discussing the data packet from the sender 11 to the destination 34 as an example. The destination 34 has an address β. In the preferred embodiment, 'this address is the IP address of the destination 34.' The geographic area corresponding to destination 34. In some embodiments, the geographic area corresponding to destination 34 is the geographic area of AS 32 used to specify the IP address of destination 34. In the preferred embodiment, The geographic area corresponding to destination 34 is one or more countries of AS 32 that are used to specify the IP address of destination 34. However, in another embodiment, this geographic area may be another area, such as AS32 The special area where you are located or the geographical area where destination 34 is located. Note that the geographical area where destination 34 is located may be different from the geographical area of AS 32 which specifies the IP address of destination 34. Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Go through step 102 to make this address match Associated with a geographic area at destination 34. Then, in step 104, the path for the packet is selected based on the geographic area corresponding to destination 34. In some embodiments, the packet has a destination address, which is preferably The IP address of the destination 34. In this embodiment, step 104 is performed using the association between the destination address of the data packet and the address generated in step 102 and the geographic area. At the same time, in the preferred embodiment * Step 104 includes a direct link that is selected to be privately owned and connected to an AS in the same country as the AS 32 that specifies the IP address of the destination 34. In this embodiment, the country of the AS 32 is preferably The country code ("country code") of the International Standards Organization. In another embodiment, step 104 includes selecting a location close to the AS 32 where the AS 32 is located. The Chinese national standard (CNS) A4 specification (210X297 mm) ) ~~ 18 91540 Printed by the Intellectual Property of the Ministry of Economic Affairs, Bureau of Jade Consumer Cooperatives 19 A 7 B7 V. Description of Invention (19) Privately-owned direct link of home AS connection. The fourth circle shows the use of this invention to select Detailed flowchart of the preferred embodiment of the path selection method 110. In discussing the method 11, it is assumed that the method 14 is performed by the router 14 in the AS 12. In step 112, the designated IP address of the destination 34 is obtained. The country code and AS code β of the AS 32 of the address. Therefore, in this embodiment * the geographical area corresponding to the destination is one or more countries for AS 12 that specifies the destination IP address. At the same time, it is best implemented In the example, AS is represented by an AS code. Each country is preferably represented by its country code. Then in step 114, the country used for AS 32 is converted into the AS code of AS 32. Therefore, the IP address assigned to AS 32 can also be associated with the country code used for AS 32. Naturally, the country associated with the AS code is mapped to the special connection β directly to this country via step 116. Therefore, the country associated with AS 32 may be mapped to the direct link I5 in step II6. In the preferred embodiment, this direct connection is preferably a privately owned connection between a special A S such as A S 12 and a S in a second country. At the same time, in the preferred embodiment, the communication volume of the mu link is controllable. For example, it can be determined that the direct link is not advertised. Then select the link to transfer the packet to this country by step Η8. To describe the advantages of methods 100 and 110 in more detail, refer to Figure 1 again. Assume AS 12 'AS 22, and AS 28 are in the first country, such as the United States. Also assume that AS 20, AS 26, and AS 32 are in the second country, such as the United Kingdom. Link 15 is an international link directly maintained by private persons between AS 12 and AS 20 in a second country. The links 2 5 and 3 1 are applicable to the national sample rate of this paper (CNS> M size (210X297 mm) 91540 Kunshui n 1 Order nn ^ (Please read the precautions on the back before filling this page) 4 35 ο 2 9 Α7 Β7 Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs V. Invention Description (2) The traditional international connection between the first country and the second country, so month b will be overloaded. AS 12 Router 14 teaches the method 100 or no. AS 32, which specifies the IP address of destination 34, is related to the second country. In step 112, the AS code of AS 32 and the second country, the cold country, are obtained. Identification code. The second country corresponds to the A: code of as 32 in step 114. Therefore, 'step 114 can be considered as associating the geographic area of As 32 with the IP address of destination 34' because it associates the second country The AS code corresponding to AS 32 which refers to the IP address of destination 34. In step 116, the connection 15 between the second country and the router 14 in AS 12 is mapped to this country. Therefore, in step Order 118, choose this path so that the next time you jump, the packet can go through link 15 And the transmission to AS2〇c because the next hop is through the link 1 5 ', so it can improve the transmission speed and the probability of loss of the data packet β link 15 is directly between the countries of eight 312 and A 丨 32. Therefore,' from the sender The data packet of n will be transferred from asi2 to AS 20 located in the second country. Then, the data packet will be transferred domestically from 乂 20 to AS 26 and AS 32. Therefore, the process of transmitting the shortened data packet to destination 34 will be Therefore, the transmission time can be improved and the probability of losing packets due to congestion can be reduced. The method and system according to the present invention can also be regarded as choosing paths based on links, where the link is compiled to determine for the packet Route Router. Figure 5A depicts an embodiment for selecting a route to 200 in accordance with the present invention. Figure 5A will be the same as transmitting the packet from sender 11 to destination 34 in Figure i. Discussion. Moriba m, .. The sender 11 corresponds to the second-second place and the -34 of the -AS corresponds to 帛 _ paper paper scale manufacturer M CNS) A4 specifications < 210X29 ^ i ~ i — '--Edge ~ — 20 91540 (Please read the notes on the back first Fill out this page again), ιτ wave! Wisdom Wealth of the Ministry of Economic Affairs_Industry Bureau x-Juan Fei Cooperative printed A7 B7 V. Description of the invention (2l) Geographical area and associated with the first AS 32 "Although the method 200 in this description is based on the first AS 12 Router 14 executes, but method 2000 may also be performed by another router in another AS. For example, method 200 may be performed by a third router (not shown) in a third as (not shown) having a second geographic area.
藉由步驟202提供如連結15等具有可控制通訊量之 直接連結 '直接連結是位於傳送資料包之AS12和特殊AS 20之間。AS 20具有相關聯之地理區且最好在地理位置 上?鄰近第一 AS 32。然後在步驟204中當傳送資料包至 目的地34時將使用此直接連結。因此,資料包將經由直 接連結1 5傳送至AS 20’然後再經由As 26至第二AS 在最佳實施例中,直接連結15是由私人控制的。因 此’可避免或降低直接連結15之超載。同時在最佳實施 例中,第一地理區和第二地理區包含有分別用於第一 AS 1 2和第二AS 32之地理區。然而,在另一個實施例中, 此地理區可以是其他的區域。舉例而言,第一或第二地 理區可能包含有座落有第一或第二AS之特殊區域,或可 能包含有座落有發訊端11或目的地34之地理區。同時 在最佳實施例中,第二地理區與用於AS2〇之地理區相 同。因此,直接連結是連接至與第二AS32具有相同地 理區之AS 20。此可幫助其縮短資料包須經過之地理距 離。因而可降低傳送時間和封包遺失率。 第5B圖係顯示依據本發明之用於選擇路徑之方法 ° hi更清楚,將與第1圖一起討論 I I I I J1I n 裝— I ^ I I n 線 (請先閲讀背面之注意.V項再填寫本頁) r r i \ - - ' sj ( > - 21 91540 29 ί Α7 Β7 經 濟 部 智 慧 財 產 局 消 費 合 作 社 印 製 五、發明説明(22) 第53圖。因此,方法210假設是由耦合至發訊端Η之 AS 12中之路由器14執行。然而,方法210亦可由其他 的路由器執行是顯而易見的。方法210使用對應於目的 地34之地理區和具有可控制通訊量之直接連結15。 在步驟212中使位址至少與一個地理區相關聯。最 好,是藉由使此位址與指定有此位址之AS的地理區相關 聯而完成此步驟。同時在最佳實施例中,AS是由其AS ^ 碼表示而地理區則由國家碼表示》然後在步驟214甲將 此地理區與具有可控制通訊量之直接連結1 5相關聯。在 最佳實施例中’是藉由使直接連結1 5與耦合至直接連結 之AS 20和AS 12之國家碼相關聯而完成步驟214。然後 在步驟216中為所有感興趣之位址重覆步驟212和214。 然後在步驟218中為其目的地位址是在步輝212至216 中之位址之一的資料包選擇直接連結15。 當藉由方法200或210選擇經過直接連結之路徑時, 可將資料包更有效率地傳送經過網際網路1〇。最好連結 15是由私人維護的,可避免直接連結15之超載a當路由 器14利用方法200或210傳送資料包時,路由器14將 選擇經由直接連結15傳送資料包》在方法21〇中,是因 為與AS 20相關聯之地理區與AS 32相同。所以可將資 料包傳送經過具有可控制通訊量之私人連結而抵達在地 理上靠近AS 32之AS 20。因此’可改善傳送時間和資料 包遺失率。 _此處的直接連結15為國際性連結,所以其性能上4 本紙張尺度適用中國國家標準< CNS ) A4規格 (210X297^^4 ) 22 91540 (請先閣讀背面之注意事項再填寫本頁) ,1Τ 成丨 B7 五、發明説明(23 ) ~~- 改善更為明顯。目的地34所對應之國家可能不同於發訊 端11所對應之國家。最好’對應於目的地34之國家與八§ {請先閱讀背面之注意事項再填寫本頁) 所關連的國家相同β連結25和31可以是國際性連結 且高度銷售過多α 經過連結25或31之傳輸,其可能是在由傳統方法5〇 所選擇之路徑上,可能極端地無效率的。因為AS22、 28、ΝΑί» 24和NAP 30可能位於與As 32不同之國家中, 所以其與AS 32之距離可能很遠。反之,經過連結15之 傳輸將相當地有效率,因為連結15不可能銷售過多且因 為與連結15連接之AS 20距離as 32不是很遠。因此, 可明顯降低傳送時間和資料包遺失率。 經濟部智慧財產_局員玉消費合作社印製 第6圖係說明依據本發明選擇傳送路徑之方法22〇之 最佳實施例的流程圖。在討論第6圖時,係假設方法22〇 是由AS 12執行。藉由步驟222,其判斷那些國家是經由 具有可控制通訊量之連結而直接連接至AS 12。最好,這 些國豕疋由私人維護之連結,如連結15,且與as 12直 接連接。在步驟2 24中,當在此國家或鄰近的國家中傳送 資料包至AS 20、22、26、28或28時,其決定使用這些 直接連結15»因此’在步驟224中所決定的準則可確保 資料包盡可能從AS 12經過直接連結15而穿越網際網路 1 〇 °然後在步驟226中其決定此路徑跨經最少的NAp 24 或30。然後在步輝228中選擇最符合此準則之路徑。 在步驟224中希望選擇由私人維護之直接連結,因為 在此種連結15上之通訊量是可控制的,且因為直接連社 本紙張尺度適用中國國家標準(CMS ) A4規格(210X 297公釐) 23 91540 A7 B7 五、發明説明(24) 請 先 閲 讀 背 面 意 事 項 再 填 本 頁 15是連接至與as 32相當靠近之As 20。因此’就算連 結15為國際性連結’連結〖5亦不應該超載。除此之外, 不須要將資料包傳送至與指定有目的地34之卩位址之As 32分開很遠之AS β其希望能跨經最少的nap 24或30, 因為NAP 24或30通常具有很大的通訊量β因此,在步 雜22 8中將選擇具有比較少通訊量之路徑。所以可降低傳 送時間和資料包遺失率。 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準({:1^)^4規格(21(^297公|) 第7圓係描述依據本發明之方法230之最佳實施例的 詳細流程圖《在討論方法23〇時,其假設方法23〇是由As 12中之路由器14執行。在最佳實施例中,路由器14使 用參考第2圓所討論之下一次跳躍方法。參考第7圖,藉 由步释23 2’選擇路由器14直接連接的國家。因此,在 步驟232令選擇連結15連接路由器14之國家。連結最好 是私人擁有或維護且具有可控制的通訊量β換句話說,可 避免連結超載。然後藉由步驟234,產生在此國家中用於 AS 20、26、和32之AS代碼串。經由步驟236,設定局 部優先權所以當路由器14接收具有目的地34之目的地位 址的資料包時’連結15是最佳選擇,其令此目的地34所 具有之IP位址是指定給在此國家之AS,如AS 32。在最 佳實施例中’當目的地34與如AS 32等在此國家中之AS 相關聯時,藉由將局部優先權設定為任何大於預設值之值 而執行步驟236。然後經由步驟238為每個與AS 12直接 連接之國家(未顯示)重覆步驟232至236。經由步驟240 依據在步驟236中所設定之優先權選擇用於資料包之下一 24 91540 經 濟 部 智. 慧 財 產 局' 員 工 消 费 合 ί 社 印 本紙張尺度適用中國國家橾準(CNS ) A4規格(210X297公慶> 25 A7 B7 五、發明説明(25 ) 個跳躍。 固此,再回去參考第1圖,當使用依據本發明之方法 200、210、220或230時,路由器14將選擇經由連結15 之路徑。當將目的地34之ΙΡ位址指定給AS 32時,經由 連結15之路徑為在相同國家中唯一直接連接至AS2〇之 路役β再者,經由連結1 5之路徑並沒有跨經NAp 2 4或 NAP 30。因此,將經由連結15之路徑的局部優先權設定 為較高,且在下一個跳躍中將資料包傳送經過連結15' 將選擇連結15,就算經由連結15之路徑的AS路徑長度 為3而經由連結17之八3路徑長度為因此,資料包 將穿越較無超載之路徑。所以資料包在傳送期間將具有較 低之傳送時間和資料包遺失率β 第8圖係描述依據本發明之方法25〇,其已延伸至鄰 近的國豕it些鄰近的國豕是以不超載之方式與直接連接 之國家邏輯連接。在討論此方法25〇時,其假設方法25〇 是由在AS 12中之路由器14執行。因此,鄰近國家是靠 近具有連接至AS 12之直接連結15之國家β將鄰近國家 視為與AS 12直接連接之國家的一部份β因此藉由步驟252 產生一串在鄰近國家中的AS(未顯示)。然後藉由步驟 254,將用於這些AS之AS代碼與直接連接至as 12之 國家相關聯。然後經由步驟256將與AS 12直並^^逢之 國家的局部優先權提供給在鄰近國家十的每一個As。因 為是如此設定這些優先權,所以在步驟258中可選擇經由 連結之路徑。因此’可經由通訊量相當低之路徑傳送 91540 裝------tr------^ (請先閲讀背面之注意事項再填寫本頁) 4 35 0 29 7 A7 B7 五、發明説明(26) 資料包’就算AS 12並未直接連接至具有指定有目的地(未 顯示)之IP位址之AS (未顯示)的國家。 (请先閲讀背面之注意事項再填寫本頁) 第9圖係描述用於使目的地位址與對應於目的地之地 理區相關聯之方法3 00之實施例。經由步驟302取得與感 興趣AS相關之訊息。為感興趣AS指定IP位址,如目的 地位址。此訊息包含有用於感興趣AS之地理區。在某一 實施例中,此訊息亦包含有國家碼或AS之國家。在某一 實施例中’可利用感興趣AS之AS代碼取得此訊息。然 .後使AS之地理區與位址相關,所以可在步驟3 04中依據 地理區選擇路徑•在最佳實施例中,其包含有使AS代碼 與國豕碼相關聯。在最佳實施例中,步称304亦包含產生 或增加當如路由器14等之路由器選擇路徑時可使用之資 料庫。之後經由步驟3 06為所有感興趣之所有AS重覆步 驟 302 和 304 » 經濟部智慧財產局員工消费合作社印«i 第10A至10D圖係描述當與AS相關之訊息是位於 可存取資料庫中時,使一個或多個地理區與AS相關聯之 方法300之實施例。將以由位於AS 12中之路由器14選 擇路徑為例討論第10A至10〇圖°如先前所討論的,as 代碼是由ARIN、RIPE、和APNIC指定的。這些組織的 每一個均擁有一個各AS代碼分配之公眾可存取資料庫, 包含有郵政地址和用於各AS代碼委托者之其他連絡訊 息。這三個公用資料庫是設計成人類可閲讀之獨特格式而 非機器可讀取之格式。方法300從資料庫取得適當的訊息 且將此訊息轉換成傳送資料包時可使用之格式。因此,方 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) 26 91540 A7 五、發明説明 法300最好在其已經破中ΒΚ _ 〇齓確疋那一個資料庫具有關於AS 12、 20 22 26 28或32令有興趣之As的訊息後才開始。 第 目係描述利用一般外部資料庫使位址與相對 裝 應地理區相關聯之—般方法31Q之實施例。藉由步驟312 決疋AS 12接故到可達性訊息之As 2〇、η、26、和3〕。 經由步雜314為AS2〇、22、26、28或32其中之一之存 取適當的外部資料庠3 &資料庫包含有與特定的as2〇、 22、26、28或32相關之訊息α此訊息包含有在此資料庫 中具有訊息之AS 20、22、26、28或32之設定和AS 20、 22、26、28和32之地理區。 訂 線 經 濟 部 t, .¾ 財 產 局— 8 X 消 費 合 社 印 製 在某一實施例中’ AS 20、22、26、28和32之設定 為其AS代碼。在一實施例中,as 20、22、26、28和32 之地理區疋由國家碼標示》值得注意者在As 2〇、22、26、 28或32中較特殊的那一個可能具有超過一個以上之國家 碼。經由步驟316可發現與特殊AS,如μ 20 ' 22、26 ' 28或32,相關之訊息》在某一實施例争,可藉由使用特 殊AS 20、22、26、28或32之AS代碼而找到感興趣之 AS的訊息《然後在步驟318中解析此用於特殊as 20、22、 26'28或32之訊息以便獲得其地理區。在另一實施例中, 可在步驟318中找到用於AS 20、22、26、28或32之國 家碼。 假如有超過一個以上之國家碼指定给AS20、22、26、 28或32,則在步驟3 18中可找到超過一個的國家碼。之 後藉由步驟320使地理區與AS 12、20、22、26、28或32 本紙張尺度適用中國國家梯準(CNS ) Λ4規格(210X 297公釐) 27 91540 435029 Α7 Β7 五、發明説明(28 ) 之設定相關聯。在最佳實施例中,步驟320包含有產生使 AS 20、22、26、28或32之國家碼與其AS代碼相關之資 * 料庠。假如AS 20、22、26、28或32具有超過一個以上 之國家碼,則步驟320包含有產生使AS 20、22、26、28 或32之所有國家碼與其AS代碼相關之資料庫。 在某一實施例中,在步驊320中所產生之資料庫是機 器可讀取的且由路由器14用於選擇路徑。在另一實施例 中,此資料庫為所選擇路徑上之AS和在相同國家中或鄰 近國家中之AS使AS 12、20、22、26 ' 28或32之國家 碼和AS代碼對應至感興趣之AS 20、22、26、28或32。 舉例而言,當在AS 12中執行方法310時,資料庫 會將AS代碼轉換成AS 12所在之國家的國家碼。然後, 經由步驟322,為剩下的AS 20、22、26、28或32的每 一個重覆步驟312至320。因此,在某一實施例中,方法 310提供不同的、私人維護的資料庫,其可以非常高之準 確度精確地找到AS 12、20、22 ' 26、28和32每一個所 處的國家》 第10B圖係描述方法330之最佳實施例的更詳細流 程圖,其利用由ARIN所維護之資料庫使AS與地理區相 關聯。藉由步驟332可決定AS 12接收到可達性訊息之aS 20、22、26、28和32。然後藉由步驟334在由ARIN所 維護之資料庫中查詢關於AS 20、22、26、28和32其中 之一訊息。在某一實施例中’步驟3 3 4包含有查詢名字伺 服器whois.arin.net以便獲得目前感興趣之AS 20、22、26、 本紙法尺度適用中國國家標準(CNS ) A4規格(2ίΟ'Χ 297公釐) 91540 (請先閱讀背面之注Λ.$項再填寫本頁) S言 經濟部智慧財產局員工消費合作社印製 28 87 五、發明説明(29 ) {請先閱讀背面之注意事項再填寫本頁) 28或32之AS代碼的登錄記錄。經由步驟336掃瞄登錄 記錄之前面幾行以便尋找用於AS 20、22、26、28或32 之位址訊息。假如郵政地址包含有國家名稱,則在步驟33; 中利用國家的郵遞區號使AS代碼與國家碼相關聯。假如 郵政地址包含有國家碼,則在步驟338中利用國家碼使a; 代碼與國家碼相關聯在某一實施例中,步驟338包含有 產生或增加使AS代碼與國家碼相關聯之資料庫。經由步 驟3 40決定用於感興趣之AS 20、22、26、28或32的路 徑通告。路徑通告至少包含有與目前感興趣之AS 20、22、 26、28或32有關之網路(未顯示經由步驟34丨在資料 庫中查詢有關路徑通告之訊息。經由步驟342,為目前感 興趣之路徑通告掃描感興趣之記錄β 經濟部智慧財產局員卫消費合作钍印製 在某一實施例中,步驟341和342包含有為路徑通告 中的每一個網路在ARIN所維護之資料庫中搜尋一串的物 件。假如發現網路’則經由步驟344為所發現的每一個網 路將其國家碼與目前感興趣之AS 20、22、26、28或32 的AS代碼相關聯β因此,在步驟344中,超過一個以上 之國家碼可與特殊AS代碼相關聯β在某一實施例中,步 驟344包含有產生或增加使AS代碼與國家碼相關聯之資 料庫。其後,為每個路徑通告重覆步驟341-344。然後, 經由步驟346為所剩下AS20、22、26、28或32的每一 個重復步驟334至345。 第i〇c圖係描述方法350之最佳實施例的更詳細流 B .1-^利用由RIPE所維護之資料座你Ας淑α S張尺度適家標準^區相 29 91540 435029 A7 五、發明説明(30 ) 關聯。藉由步驟3 52可決定AS 12接收到可達性訊•之as 20、22、26、28和32。然後藉由步驟354在由RlpE所 維護之資料庫中查詢關於AS 20、22、26、28和32其中 之一訊息。在某一實施例中,步驟354包含有為感興趣之 AS 20、22、26、28或32之AS代碼查詢RIPE自動編號 物件。經由步驟3 56找尋記錄說明檔之最後一行且將其八 析以便找到感興趣之AS 20、22、26、28或32的國家名 稱或國家碼。經由步驟358,在whois.ripe.net令找尋字 串 ’’ASxxxx”,其中 xxxx 為感興趣之 AS 20、22、26、28 或32之AS代碼。於此實施例中,步驟358亦包含有為 具有一個或多個位址欄位之特定記錄找尋傳回的文。步驟 3 58亦包含分析最後吟位址攔位以便找尋國家名稱或國家 碼。假如地址包含有國家名稱,則在步驟360中利用國家 的郵遞區號使AS代碼與國家碼相關聯β假如地址包含有 國家碼’則在步驟360中利用國家碼使AS代碼與國家碼 相關聯。在某一實施例中,步驟360包含有產生使aS代 碼與國家碼相關聯之資料庫。經由步驟3(52決定用於感興 趣之AS20、22、26、28或32的路徑通告。經由步驟346 為在路徑通告中的每個網路查詢RIPE資料庫。在某一實 施例中,步称364包含有為在路徑通告中的每個網路在 RIPE維護之資料庫中搜尋一串的具編號之物件。假如發 現網路,則經由步驟366發現與所發現網路相關之國家碼 且使其與目前感興趣之AS 20、22、26、28或32的AS 代碼相關聯。在某一實施例中,步驟366包含有產生或增 本紙張尺度適用中國國家橾準(CNS ) Μ規格(21〇Χ^97公釐) ' ~~ 91540 請 先 閲 讀 背 之 注A direct link with controllable traffic, such as link 15, is provided by step 202. 'Direct link is located between AS12 and special AS20 which transmits the packet. AS 20 has an associated geographical area and preferably geographically? Near the first AS 32. This direct link will then be used when sending the packet to destination 34 in step 204. Therefore, the data packet will be transmitted to AS 20 'via the direct link 15 and then to the second AS via As 26. In the preferred embodiment, the direct link 15 is privately controlled. Therefore, the overload of the direct link 15 can be avoided or reduced. Also in the preferred embodiment, the first geographic area and the second geographic area include geographic areas for the first AS 12 and the second AS 32, respectively. However, in another embodiment, this geographic area may be another area. For example, the first or second geographical area may include a special area where the first or second AS is located, or may include a geographical area where the originator 11 or destination 34 is located. Also in the preferred embodiment, the second geographic area is the same as the geographic area used for AS20. Therefore, the direct link is connected to AS 20 which has the same geographical area as the second AS32. This can help them shorten the geographic distance that the packet must travel through. Therefore, transmission time and packet loss rate can be reduced. Figure 5B shows the method for selecting a path according to the present invention. ° hi is more clear. The IIII J1I n package — I ^ II n line will be discussed together with Figure 1. (Please read the note on the back first. Please fill in this item. Page) rri \--'sj (>-21 91540 29 ί Α7 Β7 Printed by Consumer Cooperatives, Bureau of Intellectual Property, Ministry of Economic Affairs, 5. Description of Invention (22) Figure 53. Therefore, method 210 is assumed to be coupled to the sender The router 14 in the AS 12 is executed. However, it is obvious that the method 210 can also be executed by other routers. The method 210 uses a geographical area corresponding to the destination 34 and a direct connection 15 with controllable traffic. In step 212 Associate the address with at least one geographic area. Preferably, this step is accomplished by associating this address with the geographic area of the AS that specifies the address. In the preferred embodiment, the AS is composed of Its AS ^ code is represented and the geographic area is represented by the country code. "Then in step 214A this geographic area is associated with a direct link 15 with controllable traffic. In the preferred embodiment, 'is by direct link 1 5 and coupled to Associate the country codes of AS 20 and AS 12 to complete step 214. Then repeat steps 212 and 214 for all the addresses of interest in step 216. Then, in step 218, the destination address is in step 218. The data packet at one of the addresses in 212 to 216 selects direct link 15. When the path through the direct link is selected by method 200 or 210, the data packet can be more efficiently transmitted through the Internet 10. Most The good link 15 is maintained by a private person to avoid overload of the direct link 15a. When the router 14 transmits the data packet using the method 200 or 210, the router 14 will choose to transmit the data packet via the direct link 15 "in method 21〇 The geographic area associated with AS 20 is the same as AS 32. So packets can be sent via private links with controllable traffic to AS 20 geographically close to AS 32. Therefore 'improved transmission time and lost packets _ Direct link here 15 is an international link, so its performance is 4 paper standards applicable to Chinese national standards < CNS) A4 specifications (210X297 ^^ 4) 22 91540 (Please read the note on the back first Item and then fill in this page), 1Τ to Shu B7 V. invention is described in (23) ~ - improved more significantly. The country corresponding to destination 34 may be different from the country corresponding to sender 11. Best 'country corresponding to destination 34 and eight § (Please read the notes on the back before filling out this page) The countries concerned are the same β links 25 and 31 can be international links and are highly oversold α Via link 25 or The transmission of 31, which may be on the path selected by the traditional method 50, may be extremely inefficient. Because AS22, 28, ΝΑί »24 and NAP 30 may be located in a different country from As 32, they may be far away from AS 32. Conversely, the transmission through link 15 will be quite efficient, because link 15 cannot be oversold and the AS 20 connected to link 15 is not far from as 32. Therefore, the transmission time and the packet loss rate can be significantly reduced. Printed by Intellectual Property of the Ministry of Economic Affairs_Bureau's Jade Consumer Cooperative. Figure 6 is a flowchart illustrating a preferred embodiment of the method 22 for selecting a transmission path according to the present invention. In discussing Figure 6, it is assumed that method 22o is performed by AS 12. With step 222, it is determined which countries are directly connected to AS 12 via a link with controllable traffic. Preferably, these countries are privately maintained links, such as link 15, and directly connected to as 12. In step 2 24, when transmitting a packet to AS 20, 22, 26, 28, or 28 in this country or in a neighboring country, it decides to use these direct links 15 »So 'the criteria determined in step 224 may be Make sure that the packet crosses the Internet 10 ° as far as possible from AS 12 via direct link 15 and then in step 226 it decides that this path spans a minimum of NAp 24 or 30. Then choose the path that best meets this criterion in Buhui 228. In step 224, it is desired to choose a direct link maintained by a private person, because the communication volume on such a link 15 is controllable, and because the paper size of the direct link company applies the Chinese National Standard (CMS) A4 specification (210X 297 mm) ) 23 91540 A7 B7 V. Description of the invention (24) Please read the notice on the back before filling in this page. 15 is connected to As 20 which is quite close to as 32. Therefore, even if connection 15 is an international connection, connection 5 should not be overloaded. In addition, it is not necessary to send the packet to AS β which is far away from As 32 which specifies the address of destination 34. It hopes to span the least nap 24 or 30 because NAP 24 or 30 usually has A large amount of communication β Therefore, in step 228, a path with a relatively small amount of communication will be selected. This reduces transmission time and packet loss. The paper size printed by the Employees' Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs applies the Chinese national standard ({: 1 ^) ^ 4 specifications (21 (^ 297) |) The seventh circle describes the best embodiment of the method 230 according to the present invention The detailed flowchart "When discussing method 23, it is assumed that method 23 is performed by router 14 in As 12. In the preferred embodiment, router 14 uses the next hop method discussed with reference to circle 2. Reference In FIG. 7, the country to which the router 14 is directly connected is selected by step 23 2 ′. Therefore, in step 232, the country where the link 15 is connected to the router 14 is selected. The link is preferably privately owned or maintained and has a controllable communication volume β. In other words, link overload can be avoided. Then, in step 234, AS code strings for AS 20, 26, and 32 in this country are generated. Through step 236, local priority is set so that when router 14 receives a destination The destination address 34 packet is the best choice, so that the destination 34 has an IP address assigned to the AS in this country, such as AS 32. In the preferred embodiment, when Destination 34 with e.g. AS When waiting for AS in this country to be associated, step 236 is performed by setting the local priority to any value greater than the preset value. Then, step 238 is performed for each country directly connected to AS 12 (not shown) Repeat steps 232 to 236. Via step 240, select the data package for use under the priority set in step 236-24 91540 Ministry of Economics, Intellectual Property Bureau 'Employee Consumption Co-printed Paper Size Applicable to Chinese Countries 橾Standard (CNS) A4 specification (210X297 public holidays> 25 A7 B7 5. Invention description (25) jumps. For that, go back to Figure 1 when using the method 200, 210, 220 or 230 according to the invention Router 14 will choose the path through link 15. When the IP address of destination 34 is assigned to AS 32, the path through link 15 is the only road link β directly connected to AS 2 0 in the same country. The path of link 1 5 does not cross NAp 2 4 or NAP 30. Therefore, the local priority of the path via link 15 is set to high, and the packet is transmitted through link 15 'in the next hop. The link is selected 15, even if the AS path length via the link 15 is 3 and the path length via link 8-8 is 3, therefore, the data packet will traverse the less overloaded path. Therefore, the data packet will have a lower transmission time and Packet loss rate β Figure 8 depicts the method 25 in accordance with the present invention, which has been extended to neighboring countries. Some neighboring countries are logically connected to directly connected countries in a non-overloaded manner. This method is discussed here. At 25 o'clock, its assumption method 25 o is performed by the router 14 in the AS 12. Therefore, the neighboring country is close to the country with the direct link 15 connected to AS 12. The neighboring country is regarded as a part of the country directly connected to AS 12. Therefore, a series of ASs in the neighboring countries is generated by step 252 ( Not shown). Then, through step 254, the AS codes for these ASes are associated with the countries directly connected to AS 12. Then, via step 256, the local priority of the country that is parallel to AS 12 is provided to each As in the neighboring country. Since these priorities are so set, the route via the link can be selected in step 258. Therefore, '91540 can be transmitted via a path with a relatively low communication volume. ------ tr ------ ^ (Please read the precautions on the back before filling this page) 4 35 0 29 7 A7 B7 V. Invention Explanation (26) Data packet 'Even if AS 12 is not directly connected to a country with AS (not shown) with a designated (not shown) IP address. (Please read the notes on the back before filling out this page.) Figure 9 illustrates an embodiment of method 3 00 for associating a destination address with a geographical area corresponding to the destination. Information related to the AS of interest is obtained via step 302. Specify the IP address for the AS of interest, such as the destination address. This message contains the geographic area for the AS of interest. In one embodiment, this message also includes the country of the country code or AS. In one embodiment, this information can be obtained using the AS code of the AS of interest. Then, the geographic area of the AS is associated with the address, so the route can be selected based on the geographic area in step 304. In the preferred embodiment, it includes associating the AS code with the country code. In the preferred embodiment, step number 304 also contains a database that generates or adds to a router that can be used when a router such as router 14 selects a path. Repeat steps 302 and 304 for all ASs that are of interest via step 3 06 »Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs« i Figures 10A to 10D are described when AS-related information is located in an accessible database An embodiment of a method 300 of associating one or more geographic regions with an AS. Figures 10A to 10 will be discussed using the path selected by router 14 in AS 12 as an example. As previously discussed, the as codes are specified by ARIN, RIPE, and APNIC. Each of these organizations has a publicly accessible database of AS codes assigned to them, containing postal addresses and other contact information for clients of each AS code. These three public databases are designed to be unique to human-readable formats rather than machine-readable formats. Method 300 obtains an appropriate message from a database and converts this message into a format that can be used when transmitting a data packet. Therefore, the size of the paper is applicable to the Chinese National Standard (CNS) A4 (210X 297 mm) 26 91540 A7 V. The invention description method 300 is best to be broken in the database ΒΚ _〇 齓 Make sure that one database has information about AS 12, 20 22 26 28 or 32 to start the message of interested As. The first item describes an embodiment of a general method 31Q using a general external database to associate an address with a corresponding geographic area. In step 312, AS 12 receives As 2 0, η, 26, and 3 of the reachability message. Access appropriate external data for one of AS20, 22, 26, 28, or 32 via step 314. 3 & database contains information related to a specific as2O, 22, 26, 28, or 32 α This message contains the settings of AS 20, 22, 26, 28 or 32 and the geographic areas of AS 20, 22, 26, 28 and 32 with messages in this database. Printed by the Ministry of Economic Affairs t, .¾ Property Bureau — 8 X Consumer News Agency. In one embodiment, the setting of AS 20, 22, 26, 28, and 32 is its AS code. In one embodiment, the geographical areas of as 20, 22, 26, 28, and 32 are marked by country codes. Note that the more specific one in As 2 0, 22, 26, 28, or 32 may have more than one. The country code above. Through step 316, it can be found that the information related to a special AS, such as μ 20 '22, 26' 28, or 32. In a certain embodiment, the AS code of the special AS 20, 22, 26, 28, or 32 can be used. And find the message of the AS of interest, and then parse this message for special as 20, 22, 26 '28 or 32 in step 318 to obtain its geographic area. In another embodiment, the country code for AS 20, 22, 26, 28, or 32 can be found in step 318. If more than one country code is assigned to AS20, 22, 26, 28, or 32, you can find more than one country code in step 3-18. After that, the geographic area and AS 12, 20, 22, 26, 28, or 32 are used in step 320 to apply the Chinese National Standard (CNS) Λ4 specification (210X 297 mm) 27 91540 435029 Α7 Β7 V. Description of the invention ( 28). In the preferred embodiment, step 320 includes generating data * data associated with the country code of AS 20, 22, 26, 28, or 32 and its AS code. If AS 20, 22, 26, 28, or 32 has more than one country code, step 320 includes generating a database that correlates all country codes of AS 20, 22, 26, 28, or 32 with their AS codes. In one embodiment, the database generated in step 320 is machine readable and used by router 14 to select a path. In another embodiment, this database maps AS 12, 20, 22, 26 '28, or 32 country codes and AS codes to ASs on the selected path and ASs in the same country or neighboring countries. AS 20, 22, 26, 28 or 32 of interest. For example, when performing method 310 in AS 12, the database will convert the AS code to the country code of the country where AS 12 is located. Then, through step 322, repeat steps 312 to 320 for each of the remaining AS 20, 22, 26, 28, or 32. Therefore, in one embodiment, the method 310 provides a different, privately maintained database that can accurately find each country in which AS 12, 20, 22 '26, 28, and 32 are located with very high accuracy. " FIG. 10B is a more detailed flowchart depicting a preferred embodiment of method 330, which utilizes a database maintained by ARIN to associate AS with a geographic area. Steps 332 determine the aS 20, 22, 26, 28, and 32 for which the AS 12 receives the reachability message. Then, in step 334, the database maintained by ARIN searches for information about one of AS 20, 22, 26, 28, and 32. In an embodiment, 'step 3 3 4 includes querying the name server whois.arin.net in order to obtain the AS 20, 22, 26, and paper standards currently applicable to the Chinese National Standard (CNS) A4 specification (2ίΟ' Χ 297mm) 91540 (Please read the note Λ. $ On the back before filling out this page) S. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economy 28 87 V. Description of Invention (29) {Please read the note on the back first Please fill in this page again for details.) 28 or 32 AS code registration records. Scan the previous lines of the login record via step 336 to find the address information for AS 20, 22, 26, 28 or 32. If the postal address contains a country name, the AS code is associated with the country code in step 33; using the country's postal code. If the postal address contains a country code, the country code is used in step 338 to associate a; the code is associated with the country code. In one embodiment, step 338 includes generating or adding a database that associates the AS code with the country code. . Via step 3 40 the route announcement for AS 20, 22, 26, 28 or 32 of interest is decided. The route announcement contains at least the network related to AS 20, 22, 26, 28, or 32 that is currently interested (not shown in step 34 丨 query information about the route announcement in the database. After step 342, it is currently interested Route notification scans the records of interest β Printed by a member of the Intellectual Property Bureau of the Ministry of Economic Affairs and Consumer Co-operation. In one embodiment, steps 341 and 342 include a database maintained by ARIN for each network in the route notification. Search for a list of objects. If a network is found, then through step 344, for each network found, associate its country code with the AS code of AS 20, 22, 26, 28, or 32 of the current interest β. Therefore, In step 344, more than one country code may be associated with a special AS code. In an embodiment, step 344 includes generating or adding a database that associates AS codes with country codes. Thereafter, for each Each path announcement repeats steps 341-344. Then, steps 334 to 345 are repeated for each of the remaining AS20, 22, 26, 28, or 32 via step 346. Figure ioc describes the best implementation of method 350. More detailed examples Stream B.1- ^ Using the data maintained by RIPE to hold your Ας 淑 α S-scale family standard ^ Zone phase 29 91540 435029 A7 V. Description of the invention (30) Association. By step 3 52 you can decide the AS 12 receiving Go to the reachability information as of 20, 22, 26, 28, and 32. Then, in step 354, look up the information about AS 20, 22, 26, 28, and 32 in the database maintained by RlpE. In In an embodiment, step 354 includes querying the RIPE auto-numbering object for the AS code of AS 20, 22, 26, 28, or 32 of interest. Find the last line of the record description file through step 3 56 and analyze it in order to Find the country name or country code of the AS 20, 22, 26, 28 or 32 of interest. Step 358, find the string "ASxxxx" at whois.ripe.net, where xxxx is the AS 20, 22 of interest , 26, 28, or 32. In this embodiment, step 358 also includes finding the returned text for a particular record with one or more address fields. Steps 3 58 also include analyzing the last chanted address Stop to find the country name or country code. If the address contains the country name, Associate the AS code with the country code using the postal code of the country in 360. If the address contains a country code, then use the country code to associate the AS code with the country code in step 360. In one embodiment, step 360 includes A database is generated to associate the aS code with the country code. Via step 3 (52, a decision is made for the path announcement for AS 20, 22, 26, 28 or 32 of interest. The RIPE database is queried via step 346 for each network in the route advertisement. In one embodiment, step number 364 includes searching a series of numbered objects in a database maintained by RIPE for each network in the route advertisement. If a network is found, the country code associated with the discovered network is found via step 366 and associated with the AS code of AS 20, 22, 26, 28, or 32 that is currently of interest. In an embodiment, step 366 includes generating or increasing the paper size applicable to the Chinese National Standard (CNS) M specification (21〇 × ^ 97 mm) '~~ 91540 Please read the note at the back
項 再 填 寫 本 I 經濟部智慧財產局員工消资合作社印敗 30 經濟部智慧財產局a®工消費合作社印製 31 A7 ___B7_ 五、發明説明(31 ) 加使AS代碼與國家碼相關聯之資料庫。因此,在步称366 中’ 一個或多個國家碼可與特殊AS代碼相關聯。其後, 為每個路徑通告重覆步驟364-366。然後,經由步驟368 為所剩下AS 20、22、26、28或32的每一個重覆步驟364 至 366 〇 第10D圖係描述方法370之最佳實施例的更詳細流 程圖’其利用由APNIC所維護之資料庫使AS與地理區 相關聯β藉由步称372可決定AS 12接收到可達性訊息 之AS 20、22、26、28和32。然後藉由步驟374在由APNIC 所維護之資料庫t査詢關於AS 20、22、26、28和32其 中之一之訊息。在某一實施例中,步驟374包含有為感興 趣之AS 20、22、26、28或32之AS代碼查詢APNIC自 動編號物件且分析此物件以便發現國家名稱或國家碼。然 後在步驟376中解析此自動編號(AUT-NUM)物件之管理 聯繫襴位以便判斷是否NIC標示值是ΧΧΧ·ΥΥ的形式, k 在此ΥΥ為國家碼。之後在步驟378中解析自動編號 (AUT-NUM)物件之技術聯繫攔位以便判斷是否NIC標示 值是XXX-YY的形式,在此YY為國家碼。然後經由步 驟380使在步驟374、376、或378中所找到的國家碼和 在步驟374中所發現之用於該國家之地區碼與AS 20、22、 26、28或32之AS代碼相關連。在某一實施例中,步称 380包含有產生使AS代碼與國家碼相關聯之資料庫。經 由步驟382決定用於感興趣之AS 20、22、26、28或32 _^路徑通告。經由步驟384為在路徑通告中之每個網路查 本紙伕尺度適用中國國家標準(CNS ) A4規格(210X:297公釐) 91540 ----------¢------1T------^ (請先閱讀背面之注意事項再填寫本頁) 35 0 2 9 A7 B7 五、發明説明(32) (請先閱讀背面之注意寧項再填寫本頁) 詢RIPE資料庫》假如發現網路,則經由步驟386發現與 所發現網路相關之國家碼且使其與目前感興趣之AS2〇、 22、26、28或32的AS代碼相關聯。在某一實施例令, 步驟386包含有產生或增加使AS代碼與國家碼相關聯之 資料庫。因此,在步驟3 86中,超過一個國家碼可與特殊 AS代碼相關聯·>其後,為每個路徑通告重覆步驟3 84至 3 87 »然後’經由步驟388為所剩下AS 20、22、26、28 或32的每一個重覆步驟384至387。 方法300、310、330、350、和370使地理區與目的 地位址相關聯所以可利用對應於目的地位址之地理區來選 擇路徑。最好經由資料庫而提供此關聯,在此將指定有目 的地之IP位址之AS的地理區對應至AS之AS代峰,且 因此可對應至目的地之IP位址。因此可選擇更有效的路 徑’因而可降低傳送時間和資料包遺失率。 雖然已就AS 12、20、22、26、28和32進行討論, 但本發明可延伸至IP網路(未顯示)層。在此延伸中,其 經濟部智慧財產局員工消費合作社印製 可以將每個已知的IP網路轉換成對應於目的地之國家碼 或其他地理區之標識值。然後將依據對應網路之路徑的地 理區為每條路徑加權。此處理方法具有以增加複雜性和大 大增加路由器配置線數量之成本來增加網域(granu〖arit幻 之優點。 已經揭露用於改善由路由器為資料包選擇路徑之方法 和系統。雖然已依據所顯示之實施例描述本發明,但是任 面技藝者均施例可能會有變動 私紙張尺度賴㈣®家標準(值)八4規格(210><297公赛]--— - 32 91540 A7 B7 五、發明説明(33) 且這些變動均是在本發明之中心範圍内。因此,可由任何 具有此方面技藝者進行多方面的修改且不會偏離所附申請 的 § 和 神 精 之 圍 範 利 專 (請先閱讀背面之注意事項再填寫本頁) 裝 訂 線 經濟部智慧財產局員4消費合作社印製 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐} 33 91540Please fill in this item again. I Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, printed by the Consumers Cooperatives. 30 Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, printed by A® Industrial and Consumer Cooperatives. 31 A7 ___B7_ V. Description of the Invention (31) Add the information that associates AS code with country code Library. Therefore, one or more country codes may be associated with special AS codes in step 366. Thereafter, repeat steps 364-366 for each path announcement. Then, repeat steps 364 to 366 for each of the remaining AS 20, 22, 26, 28, or 32 via step 368. Figure 10D is a more detailed flowchart depicting the preferred embodiment of method 370. The database maintained by APNIC allows the AS to be associated with the geographic area. By step 372, it can determine AS 20, 22, 26, 28, and 32 that AS 12 received the reachability message. Then, in step 374, information on one of AS 20, 22, 26, 28, and 32 is queried in the database t maintained by APNIC. In one embodiment, step 374 includes querying the APNIC automatic numbering object for the AS code of AS 20, 22, 26, 28, or 32 of interest and analyzing the object to find the country name or country code. Then, in step 376, the management contact number of the AUT-NUM object is analyzed to determine whether the NIC label value is in the form of XYX, where k is the country code. Then in step 378, the technical contact block of the AUT-NUM object is parsed to determine whether the NIC label value is in the form of XXX-YY, where YY is the country code. The country code found in step 374, 376, or 378 and the country code found in step 374 for that country are then associated with the AS code of AS 20, 22, 26, 28, or 32 via step 380 . In one embodiment, step number 380 includes a database that generates associations between AS codes and country codes. It is determined in step 382 for the AS 20, 22, 26, 28 or 32 _ ^ path announcement of interest. Step 384 applies the Chinese National Standard (CNS) A4 specification (210X: 297 mm) for each network check paper in the route announcement. 91540 ---------- ¢ ----- -1T ------ ^ (Please read the notes on the back before filling this page) 35 0 2 9 A7 B7 V. Description of the invention (32) (Please read the notes on the back before filling this page) Inquiry If the network is found, the country code associated with the discovered network is found through step 386 and associated with the AS code of AS20, 22, 26, 28, or 32 that is currently of interest. In an embodiment, step 386 includes generating or adding a database that associates AS codes with country codes. Therefore, in step 3 86, more than one country code may be associated with a special AS code. ≫ Thereafter, repeat steps 3 84 to 3 87 for each path announcement »then 'for step AS 388 for the remaining AS 20 Repeat steps 384 to 387 for each of 22, 26, 28, or 32. The methods 300, 310, 330, 350, and 370 associate a geographic area with a destination location so that a geographic area corresponding to a destination address can be used to select a route. It is best to provide this association via a database, where the geographic area of the AS that specifies the IP address of the destination is mapped to the AS peak of the AS, and therefore can be mapped to the IP address of the destination. Therefore, a more effective path can be selected, thereby reducing the transmission time and the packet loss rate. Although AS 12, 20, 22, 26, 28, and 32 have been discussed, the present invention can be extended to the IP network (not shown) layer. In this extension, printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs, each known IP network can be converted into a country code corresponding to the destination or an identification value in another geographic area. Each path is then weighted according to the geographic area of the corresponding network path. This processing method has the advantage of increasing network domains by increasing the cost of complexity and greatly increasing the number of router configuration lines. The method and system for improving the path selection for data packets by routers has been disclosed. The examples shown describe the present invention, but any face artist may change the size of the paper. The private paper size is based on the family standard (value) 8 4 specifications (210 > < 297 public race) ----32 91540 A7 B7 V. Description of the invention (33) and these changes are within the scope of the present invention. Therefore, any person skilled in this field can make various modifications without departing from the § of the attached application and the scope of Shenjing. Li Zhuan (Please read the notes on the back before filling this page) Gutter Line Intellectual Property Bureau of the Ministry of Economic Affairs 4 Consumption cooperatives Print this paper The size of the paper is applicable to China National Standard (CNS) A4 (210X297 mm) 33 91540