TWI684342B - Path routing method for hexagonal optical switching network - Google Patents

Path routing method for hexagonal optical switching network Download PDF

Info

Publication number
TWI684342B
TWI684342B TW108111260A TW108111260A TWI684342B TW I684342 B TWI684342 B TW I684342B TW 108111260 A TW108111260 A TW 108111260A TW 108111260 A TW108111260 A TW 108111260A TW I684342 B TWI684342 B TW I684342B
Authority
TW
Taiwan
Prior art keywords
path
point
optical
cost function
routing method
Prior art date
Application number
TW108111260A
Other languages
Chinese (zh)
Other versions
TW202037134A (en
Inventor
鄭玉鉅
蕭毅
陳伯濤
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW108111260A priority Critical patent/TWI684342B/en
Application granted granted Critical
Publication of TWI684342B publication Critical patent/TWI684342B/en
Publication of TW202037134A publication Critical patent/TW202037134A/en

Links

Images

Abstract

This invention relates to a path routing method for hexagonal optical switching network, which is a high-speed optical switching network used in the Internet data center and uses a hexagonal optical switch as the switching core component. By conversion of the polar coordinates of each node configured in the hexagonal structure of the optical switch group, the cost function is used to calculate the minimum value of the path from starting point of the path, through the three adjacent nodes, to the end of the path in order to find the shortest optical path route between the starting point of the path and the end point of the path of the optical switch, and achieve the purpose of fast searching and obtaining the optical path transmission route.

Description

用於六角形光交換網路之路徑路由方法 Path routing method for hexagonal optical switching network

本發明係關於一種六角形光交換網路配置方法,特別是一種關於用於六角形光交換網路之路徑路由方法。 The invention relates to a configuration method of a hexagonal optical switching network, in particular to a path routing method for a hexagonal optical switching network.

既有的光交換器路由配置之技術,如中華民國發明專利第I552536號,係光資料中心網路系統以及光交換器,其所用之光交換器係由商用化的光選擇交換器(Wavelength Selective Switch,WSS)所構成,並將光資料中心的網路系統分三層架構來實現,其包括多個第一層光交換器、多個第二層光交換器以及多個第三層光交換器;其中,透過帶狀光纖(ribbon fiber)互相連接多個第一層光交換器以形成一群組(pod);透過帶狀光纖互相連接多個第二層光交換器以形成一巨群組(macro pod),且各第二層光交換器與該所屬群組中的所有第一層光交換器連接,並透過帶狀光纖互相連接多個第三層光交換器,各第三層光交換器與所屬巨群組中的所有第二層光交換器連接。 Existing optical switch routing technology, such as Republic of China Invention Patent No. I552536, is an optical data center network system and optical switch. The optical switch used is a commercial optical length switch (Wavelength Selective) Switch, WSS), and divide the network system of the optical data center into a three-layer architecture, which includes multiple first-layer optical switches, multiple second-layer optical switches, and multiple third-layer optical switches In which, a plurality of first-layer optical switches are connected to each other through a ribbon fiber to form a group; a plurality of second-layer optical switches are connected to each other through a ribbon fiber to form a giant group Group (macro pod), and each second-layer optical switch is connected to all the first-layer optical switches in the group, and multiple third-layer optical switches are connected to each other through a ribbon fiber, each third layer The optical switch is connected to all the second layer optical switches in the giant group to which it belongs.

另,美國發明公開案第2013/0070617A1號之SHORTEST PATH ROUTING SYSTEMS AND METHODS FOR NETWORKS WITH NON-FULLY MESHED VERTICES提出在non-fully meshed網路中,藉由兩個節點最短路徑路由,並採用修正版Dijkstra's演算法來實現,係屬於貪進法(Greedy Method)的技術。 In addition, SHORTEST PATH ROUTING SYSTEMS AND METHODS FOR NETWORKS WITH NON-FULLY of US Patent Publication No. 2013/0070617A1 MESHED VERTICES proposed that in a non-fully meshed network, the shortest path routing of two nodes, and the use of modified Dijkstra's algorithm to achieve, is a Greedy Method (Greedy Method) technology.

既有的光交換器路由配置方法,往往計算最佳路由的速度不如預期,且無法快速搜尋最短路徑,或是必須在遍歷所有既存路徑後才能找到最佳或最短路徑,無法達成光路傳輸路由之快速搜尋與取得之目的。 Existing optical switch routing configuration methods often calculate the optimal route at a speed that is not as expected, and cannot quickly search for the shortest path, or it is necessary to traverse all existing paths to find the best or shortest path, and the optical transmission route cannot be reached. The purpose of quick search and acquisition.

鑑於前述系統和方法之不足之處,乃亟思創新發明,經長時間苦心孤詣並潛心研究後,終於成功研發完成本發明之具有彈性容錯之六角形交換網路之最短路徑路由方法。 In view of the shortcomings of the aforementioned systems and methods, we are eager to innovate and invent. After a long period of painstaking and painstaking research, we finally successfully developed the shortest path routing method of the flexible fault-tolerant hexagonal switching network of the invention.

本發明提出運用於六角形光交換交換網路之最短路徑路由方法,係用於網際網路資料中心之高速光交換網路,採用六角形光交換機為交換核心元件,運用本發明最短路徑路由的方法找出光交換機兩個節點間最適合的光路路由,以達成光路傳輸路由快速搜尋與取得之目的。 The invention proposes the shortest path routing method applied to the hexagonal optical switching switching network, which is used for the high-speed optical switching network of the Internet data center, uses the hexagonal optical switch as the switching core component, and uses the shortest path routing of the present invention Method to find the most suitable optical path between two nodes of the optical switch to achieve the purpose of rapid search and acquisition of optical path transmission routes.

據此,本發明係提供一種用於六角形光交換網路之路徑路由方法,該六角形光交換網路係包括呈蜂巢狀配置的多個具有六角形架構之光交換機組,其中,該方法係包括:令該多個光交換機組中的一組光交換機組作為起始機組,並令該起始機組為第一層;令圍繞該起始機組為中心的該多個光交換機組為第二至N層,以計算該第一至N層的最大半徑;令該起始機組的該六角形架構中第一方向延伸線上的該光交換機為起始點並沿該第一至N層的之第二方向上的該光交換機依序進行編號;分別取得路徑起點與路徑終點之對應編號及對應最大半徑,以計算該路徑起點及該路徑終點的極座標值;以及輸入該路徑起點與該路徑終點的該極座標值於代價函數(cost function)中,以計算從該路徑起 點至該路徑終點之最短路徑。該代價函數係分別計算由該路徑起點經過相鄰三個節點以及由該相鄰三個節點至該路徑終點之最小代價值。 Accordingly, the present invention provides a path routing method for a hexagonal optical switching network. The hexagonal optical switching network includes a plurality of optical switch groups with a hexagonal configuration in a honeycomb configuration, wherein the method The system includes: let a group of optical switch groups in the plurality of optical switch groups be the starting unit, and make the starting unit the first layer; let the plurality of optical switch groups centering around the starting unit be the first Two to N layers to calculate the maximum radius of the first to N layers; let the optical switch on the first direction extension line of the hexagonal structure of the starting unit be the starting point and along the first to N layers The optical switches in the second direction are numbered sequentially; the corresponding numbers and corresponding maximum radii of the path start point and the path end point are respectively obtained to calculate the polar coordinates of the path start point and the path end point; and the path start point and the path are input The polar coordinates of the end point are in the cost function to calculate starting from the path Point to the shortest path of the end of the path. The cost function calculates the minimum cost value from the starting point of the path through the adjacent three nodes and from the adjacent three nodes to the end of the path, respectively.

如前述之路徑路由方法中,該代價函數係根據該路徑起點與該相鄰三個節點之間具有充足光路頻寬資源、剩餘部份光路頻寬資源、及耗盡所有光路頻寬資源以計算數值。 As in the aforementioned path routing method, the cost function is calculated based on the sufficient optical path bandwidth resources, the remaining part of the optical path bandwidth resources, and the exhaustion of all optical path bandwidth resources between the path start point and the three adjacent nodes Value.

如前述之路徑路由方法中,該代價函數係分別計算該相鄰三個節點與該路徑終點之間的歐幾里得距離或漢米爾敦距離。 As in the aforementioned path routing method, the cost function calculates the Euclidean distance or the Hamilton distance between the adjacent three nodes and the end of the path, respectively.

如前述之路徑路由方法中,進一步包括檢查終止條件以結束該代價函數。該檢查終止條件之步驟係檢查該相鄰三個節點中可用的節點是否為該路徑終點;若是,則結束該代價函數,反之,則繼續計算該代價函數。 As in the aforementioned path routing method, it further includes checking the termination condition to end the cost function. The step of checking the termination condition is to check whether the available nodes in the three adjacent nodes are the end of the path; if so, the cost function is ended, otherwise, the cost function continues to be calculated.

如前述之路徑路由方法中,進一步包括檢查終止條件以結束該代價函數。該檢查終止條件之步驟係檢查該相鄰三個節點過程中得到該可用的節點為堵塞(blocking)狀態且回溯(backtrace)至上一個路徑是否該路徑起點;若是,則結束該代價函數,反之,則繼續計算該代價函數。 As in the aforementioned path routing method, it further includes checking the termination condition to end the cost function. The step of checking the termination condition is to check whether the available nodes are blocked in the process of the adjacent three nodes and backtrace to the previous path whether the path is the starting point; if so, end the cost function, otherwise Then continue to calculate the cost function.

如前述之路徑路由方法中,進一步包括檢查終止條件以結束該代價函數。該檢查終止條件之步驟係檢查前一次節點是否為路徑起點、或是現在的節點即為路徑起點;若是,則輸出相應訊息,將該路徑終點暫存(buffer)至該路徑起點的等待佇列(waiting queue)中,並結束該代價函數,反之,則回溯(Backtrace)至前一個節點,並再次執行該代價函數。 As in the aforementioned path routing method, it further includes checking the termination condition to end the cost function. The step of checking the termination condition is to check whether the previous node is the starting point of the path, or the current node is the starting point of the path; if so, output a corresponding message and temporarily buffer the end of the path to the waiting queue of the beginning of the path (waiting queue), and end the cost function, otherwise, backtrace (Backtrace) to the previous node, and execute the cost function again.

如前述之路徑路由方法中,該計算該第一至N層的最大半徑之步 驟中,用以計算該最大半徑之方程式為:

Figure 108111260-A0101-12-0003-1
,其中,該第N層的該最大半徑設為RN,第N層設為N,且N為大於或等於1的整數。 As in the aforementioned path routing method, in the step of calculating the maximum radius of the first to N layers, the equation for calculating the maximum radius is:
Figure 108111260-A0101-12-0003-1
, Where the maximum radius of the Nth layer is set to R N and the Nth layer is set to N, and N is an integer greater than or equal to 1.

如前述之路徑路由方法中,該第一方向為該起始機組的該六角形架構之九點鐘方向,且該第二方向為該第N層的該六角形架構之組合外緣的順時鐘方向。 As in the aforementioned path routing method, the first direction is the nine o'clock direction of the hexagonal structure of the initiating unit, and the second direction is the clockwise outer edge of the combination of the hexagonal structure of the Nth layer direction.

如前述之路徑路由方法中,該計算該路徑起點及該路徑終點的極座標值之步驟中,用以計算出該極座標值之方程式為:

Figure 108111260-A0101-12-0004-2
Figure 108111260-A0101-12-0004-3
,其中,該第N層的該最大半徑設為RN,該第N層設為N,由該起始機組中該第一方向之延伸線上的該起始點為第零個點起算且沿著該第N層的該六角形架構之組合外緣之第二方向上的該光交換機依序編號的第M+1個點設為M。 As in the aforementioned path routing method, in the step of calculating the polar coordinate values of the start point and the end point of the path, the equation used to calculate the polar coordinate values is:
Figure 108111260-A0101-12-0004-2
,
Figure 108111260-A0101-12-0004-3
, Where the maximum radius of the Nth layer is set to R N and the Nth layer is set to N, starting from the zeroth point and starting from the zeroth point on the extension line of the first direction in the starting unit The M+1th point of the sequentially numbered optical switches in the second direction of the combined outer edge of the hexagonal structure of the Nth layer is set as M.

本發明是在全光交換技術領域研究中,透過六角形光交換網路實現快速且實作簡單的最短路徑路由,且本發明藉由找出網路上兩個光交換機節點間最適合的光路路由,達成光路傳輸路由快速搜尋與取得之目的。 The present invention is in the field of all-optical switching technology research, through the hexagonal optical switching network to achieve the fastest and simplest shortest path routing, and the present invention by finding the most suitable optical path between two optical switch nodes on the network , To achieve the purpose of rapid search and acquisition of optical transmission routes.

運用本發明之最短路徑路由方法找出光交換機兩個節點間最適合的光路路由,其屬於AI的啟發式演算法(Heuristic Algorithm),具有快速搜尋的能力,最佳情形時間複雜度為O(log n)、最差情形時間複雜度為O(n×log n)、且一般情況時間複雜度為O(log n)~O(n×log n),使得平均時間複雜度為O(n)。 The shortest path routing method of the present invention is used to find the most suitable optical path between two nodes of the optical switch. It belongs to the Heuristic Algorithm of AI, which has the ability to quickly search, and the best case time complexity is O( log n ), the worst case time complexity is O(n×log n ), and the general case time complexity is O(log n )~O(n×log n ), making the average time complexity O(n) .

本發明所應用的六角形光交換機網路設計與資料中心傳統的三層式交換架構或是Spine-Leaf的二層式交換架構不同,而本發明以目前光交換機為交換核心,利用六角形的二維佈建方式來擴建整個全光交換網路,藉由上述的最短路徑路由方法提出最短路徑路由的方法找出光交換機兩個節點間最適合的光路路由。 The design of the hexagonal optical switch network used in the present invention is different from the traditional three-layer switching architecture of the data center or the Spine-Leaf two-layer switching architecture. The present invention uses the current optical switch as the switching core and uses the hexagonal The two-dimensional deployment method is used to expand the entire all-optical switching network. The shortest path routing method is proposed by the shortest path routing method described above to find the most suitable optical path routing between two nodes of the optical switch.

10‧‧‧光交換機組 10‧‧‧ Optical switch group

11‧‧‧起始機組 11‧‧‧ Starting unit

12‧‧‧路徑起點 12‧‧‧ Starting point

13‧‧‧路徑終點 13‧‧‧End of route

L1‧‧‧第一層 L1‧‧‧First floor

L2‧‧‧第二層 L2‧‧‧Second floor

L3‧‧‧第三層 L3‧‧‧The third floor

L4‧‧‧第四層 L4‧‧‧Fourth floor

S01~S07‧‧‧步驟 S01~S07‧‧‧Step

第1圖係本發明之用於六角形光交換網路之路徑路由方法的步驟流程圖。 FIG. 1 is a flow chart of the steps of the path routing method for a hexagonal optical switching network of the present invention.

第2圖係本發明之光交換機組之六角形架構的配置示意圖。 Figure 2 is a schematic diagram of the configuration of the hexagonal structure of the optical switchboard of the present invention.

第3圖係在七層光交換機組的實施例中實現本發明之路徑路由方法的示意圖。 FIG. 3 is a schematic diagram of implementing the path routing method of the present invention in an embodiment of a seven-layer optical switch group.

本發明係關於一種用於六角形光交換網路之路徑路由方法,係用於網際網路資料中心之六角形高速光交換網路,如第2、3圖所示,本發明係採用光交換機為交換核心元件,將六個光交換機配置為六角形架構的光交換機組10,並以蜂巢狀延伸配置各光交換機組10。 The present invention relates to a path routing method for a hexagonal optical switching network, which is a hexagonal high-speed optical switching network for an Internet data center. As shown in Figures 2 and 3, the present invention uses an optical switch To exchange core components, six optical switches are configured as hexagonal optical switch groups 10, and each optical switch group 10 is arranged in a honeycomb shape.

以下將搭配第2、3圖,說明第1圖之用於六角形光交換網路之路徑路由方法的步驟流程圖。 In the following, with reference to Figures 2 and 3, a flowchart of the steps of the path routing method for the hexagonal optical switching network in Figure 1 will be described.

於步驟S01中,選擇該多個光交換機組10中的一組光交換機組作為起始機組11,並令該起始機組11為第一層L1,即作為該起始機組11中的該六角形架構各端點上的該光交換機是位在第一層L1上。 In step S01, a group of optical switch groups in the plurality of optical switch groups 10 is selected as the starting unit 11, and the starting unit 11 is the first layer L1, that is, the six of the starting unit 11 The optical switch on each end of the angular architecture is located on the first layer L1.

於步驟S02中,以該起始機組11為中心,令圍繞該起始機組11的該多個光交換機組10依序為第二層L2至第N層;即直接連接於該第一層L1的該起始機組11的該多個光交換機組10(共六組)為第二層L2、直接連接於該第二層L2的該多個光交換機組10(共十二組)為第三層L3、並以此類推至第N層(第2圖中示例為第七層L7,但不以此為限)。 In step S02, with the initial unit 11 as the center, the plurality of optical switch groups 10 surrounding the initial unit 11 are sequentially from the second layer L2 to the Nth layer; that is, directly connected to the first layer L1 The plurality of optical switch groups 10 (a total of six groups) of the starting unit 11 is the second layer L2, and the plurality of optical switch groups 10 (a total of twelve groups) directly connected to the second layer L2 is the third Layer L3, and so on to the Nth layer (the seventh layer L7 in the example in Figure 2, but not limited to this).

於步驟S03中,計算該第一至N層的最大半徑,其中,計算該最大半徑之方程式為:

Figure 108111260-A0101-12-0006-5
,其中,RN為該第N層的該最大半徑,N為第N層,且N為大於或等於1的整數。 In step S03, the maximum radius of the first to N layers is calculated, where the equation for calculating the maximum radius is:
Figure 108111260-A0101-12-0006-5
, Where R N is the maximum radius of the Nth layer, N is the Nth layer, and N is an integer greater than or equal to 1.

以第一層L1為例,第一層L1之最大半徑R1為1。 Taking the first layer L1 as an example, the maximum radius R 1 of the first layer L1 is 1.

以第二層L2為例,第二層L2之最大半徑R2

Figure 108111260-A0101-12-0006-6
Figure 108111260-A0101-12-0006-7
。 Taking the second layer L2 as an example, the maximum radius R 2 of the second layer L2 is
Figure 108111260-A0101-12-0006-6
Figure 108111260-A0101-12-0006-7
.

以第三層L3為例,第三層L3之最大半徑R3

Figure 108111260-A0101-12-0006-8
Figure 108111260-A0101-12-0006-9
。 Taking the third layer L3 as an example, the maximum radius R 3 of the third layer L3 is
Figure 108111260-A0101-12-0006-8
Figure 108111260-A0101-12-0006-9
.

以第四層L4為例,第四層L4之最大半徑R4

Figure 108111260-A0101-12-0006-10
Figure 108111260-A0101-12-0006-11
。 Taking the fourth layer L4 as an example, the maximum radius R 4 of the fourth layer L4 is
Figure 108111260-A0101-12-0006-10
Figure 108111260-A0101-12-0006-11
.

於步驟S04中,令該起始機組11的該六角形架構中第一方向延伸線上的該光交換機作為起始點(即節點(1,0))並沿該第N層之第二方向上的該光交換機依序進行編號。該第一方向為該起始機組11的該六角形架構之九點鐘方向,且該第二方向為該第N層的該六角形架構之組合外緣的順時鐘方向。在該起始機組11的該六角形架構之該九點鐘方向延伸線上各層(共N層)的起始點都設為第零點(N,0),沿著該第N層的該六角形架構外緣的順時鐘方向依序進行編號第1、2、3、4....M點(即編號為(N,1)、(N,2)、(N,3)、(N,4)...(N,M))。 In step S04, the optical switch on the extension line in the first direction of the hexagonal structure of the starting unit 11 is used as the starting point (ie, node (1,0)) and along the second direction of the Nth layer The optical switches are numbered sequentially. The first direction is the nine o'clock direction of the hexagonal structure of the starting unit 11, and the second direction is the clockwise direction of the combined outer edge of the hexagonal structure of the Nth layer. The starting point of each layer (a total of N layers) on the extension line of the hexagonal structure of the starting unit 11 is set to the zeroth point (N, 0), and the six along the Nth layer The outer edge of the angular structure is numbered sequentially in the clockwise direction, points 1, 2, 3, 4....M points (that is, numbered (N, 1), (N, 2), (N, 3), (N ,4)...(N,M)).

請一併參閱第2、3圖,在該起始機組11(第一層L1)的第一個節點編號為(1,0);節點(4,2)即是從該起始機組11的該九點鐘方向延伸線上的第四層L4之光交換機作為第零點,沿著第四層L4外緣的順時鐘方向起算的第二點(亦即,包括第零點的第三個點);以此類推,節點(3,14)即是從該起始機組11的該 九點鐘方向延伸線上的第三層L3之光交換機作為起算點的第零點,沿著第三層L3外緣的順時鐘方向起算的第十四點(亦即,包括第零點的第十五個點)。 Please refer to Figures 2 and 3 at the same time. The first node number of the starting unit 11 (first layer L1) is (1,0); the node (4, 2) is from the starting unit 11 The optical switch of the fourth layer L4 on the extension line of the nine o'clock direction is regarded as the zero point, and the second point in the clockwise direction along the outer edge of the fourth layer L4 (that is, the third point including the zero point ); and so on, the node (3,14) is the The optical switch of the third layer L3 on the extension line at the nine o'clock direction serves as the zeroth point of the starting point, and the fourteenth point in the clockwise direction along the outer edge of the third layer L3 (that is, including the zeroth point Fifteen points).

於步驟S05中,分別取得路徑起點12(Source Node)及路徑終點13(Destination Node)之對應編號及對應最大半徑,以計算該路徑起點12及該路徑終點13的極座標值。 In step S05, the corresponding numbers and corresponding maximum radii of the path start point 12 (Source Node) and the path end point 13 (Destination Node) are respectively obtained to calculate the polar coordinates of the path start point 12 and the path end point 13.

極座標的表示法為(X,Y),X=R cos(θ),Y=R sin(θ),θ=

Figure 108111260-A0101-12-0007-12
,其中,R為半徑,N為該第N層,M為編號。 The representation of polar coordinates is (X,Y), X = R cos( θ ), Y = R sin( θ ), θ =
Figure 108111260-A0101-12-0007-12
, Where R is the radius, N is the Nth layer, and M is the number.

因此,該極座標值可合併表示為:

Figure 108111260-A0101-12-0007-13
Figure 108111260-A0101-12-0007-14
其中,RN為該第N層的該最大半徑,N為該第N層,M為編號。 Therefore, the polar coordinate value can be combined and expressed as:
Figure 108111260-A0101-12-0007-13
,
Figure 108111260-A0101-12-0007-14
, Where R N is the maximum radius of the Nth layer, N is the Nth layer, and M is the number.

若以前述的節點(1,0)為,其極座標值(XS,YS)為(0,0)。 If the aforementioned node (1,0) is used, its polar coordinate value (X S , Y S ) is (0, 0).

若以節點(4,2)為例作為路徑起點12,則該路徑起點12之極座標值(XS,YS)為(

Figure 108111260-A0101-12-0007-16
,
Figure 108111260-A0101-12-0007-15
,
Figure 108111260-A0101-12-0007-17
)。 If the node (4, 2) is taken as the starting point of the path 12, the polar coordinate value (X S , Y S ) of the starting point 12 of the path is (
Figure 108111260-A0101-12-0007-16
,
Figure 108111260-A0101-12-0007-15
,
Figure 108111260-A0101-12-0007-17
).

若以節點(3,14)為例作為路徑終點13,則該路徑終點13的極座標 值(Xd,Yd)為(

Figure 108111260-A0101-12-0007-21
,
Figure 108111260-A0101-12-0007-18
,
Figure 108111260-A0101-12-0007-20
)。 If the node (3, 14) is taken as the end point 13 of the path, the polar coordinates (X d , Y d ) of the end point 13 of the path are (
Figure 108111260-A0101-12-0007-21
,
Figure 108111260-A0101-12-0007-18
,
Figure 108111260-A0101-12-0007-20
).

接著,進行步驟S06,輸入該路徑起點12與該路徑終點13的該極座標值於代價函數(cost function)中,以計算並紀錄從該路徑起點12至該路徑終點13之最短路徑;其中,該代價函數係分別計算由該路徑起點12經過相鄰三個節點以及該相鄰三個節點至該路徑終點13之最小代價值。 Next, proceed to step S06, input the polar coordinates of the path start point 12 and the path end point 13 in a cost function to calculate and record the shortest path from the path start point 12 to the path end point 13; wherein, the The cost function calculates the minimum cost value from the starting point 12 of the path through the adjacent three nodes and the adjacent three nodes to the end point 13 of the path.

該代價函數示例如下,於六角形光交換網路中選取路徑起點12(Source Node),以路徑起點(N,M)為例,再六角形光交換網路中選取路徑終點13(Destination Node),以路徑終點(T,U)為例,由路徑起點(N,M)出發,選出最佳路 由路徑的下一點Ni,其中Ni是路徑起點12(N,M)相鄰的1至3個光交換機節點,其將分別計算為:cost(路徑起點(N,M),下一節點N1)+cost(N1,路徑終點(T,U));cost(路徑起點(N,M),下一節點N2)+cost(N2,路徑終點(T,U));以及cost(路徑起點(N,M),下一點N3)+cost(N3,路徑終點(T,U))。 An example of the cost function is as follows. Select the path start point 12 (Source Node) in the hexagonal optical switching network, take the path start point (N, M) as an example, and select the path end point 13 (Destination Node) in the hexagonal optical switching network. Taking the end point of the path (T, U) as an example, starting from the start point of the path (N, M), the next point N i of the best routing path is selected, where N i is the adjacent 1 to the starting point 12 (N, M) of the path Three optical switch nodes, which will be calculated as: cost (start of path (N, M), next node N 1 ) + cost (N 1 , end of path (T, U)); cost (start of path (N, M), the next node N 2 )+cost(N 2 , path end (T,U)); and cost(path start (N,M), next point N 3 )+cost(N 3 , path end (T ,U)).

由上述代價函數找出最小代價值,其可寫成:代價函數cost(路徑起點,路徑終點)=min{cost(路徑起點,Ni)+cost(Ni,路徑終點)},i=1~3。 Find the minimum cost value by the cost function, which can be written as: cost function cost (the starting point of the path, the path end point) = min {cost (the starting point of the path, N i) + cost (Ni , end of the path)}, i = 1 ~ 3 .

代價函數cost(路徑起點,路徑終點)的值,是從路徑起點12分別經過相鄰3節點N1、N2、N3到路徑終點13的值,取其最小值作為代價函數cost(路徑起點,路徑終點)之最小代價值,並記錄相關的選取與光路佔用情形。 The value of the cost function cost (start point of the path, end point of the path) is the value from the start point 12 of the path through the adjacent 3 nodes N 1 , N 2 , and N 3 to the end point 13 of the path, and the minimum value is taken as the cost function cost (start point of the path) , The end of the path), and record the relevant selection and optical path occupation.

cost(路徑起點,Ni)之定義值如下:若路徑起點12至下一點Ni之間具有充足資源的光路頻寬,則cost(路徑起點,Ni)=1;若路徑起點12至下一點Ni之間剩餘部分資源的光路頻寬,則cost(路徑起點,Ni)=10~100;以及若路徑起點12至下一點Ni之間已耗盡所有資源的光路頻寬,則cost(路徑起點,Ni)=∞。 cost (the starting point of the path, N i) of the values defined as follows: If the light path with sufficient bandwidth resource path between the starting point 12 to the point N i, the cost (the starting point of the path, Ni) = 1; if the path 12 to the lower starting point The bandwidth of the optical path of the remaining resources between N i , then cost(start of path, Ni) = 10~100; and if the bandwidth of the optical path has exhausted all resources between the path starting point 12 and the next point N i , then cost( Starting point of the path, Ni)=∞.

cost(Ni,路徑終點)等於歐幾里得距離(Ni,路徑終點)、或漢米爾敦距離(Ni,路徑終點),歐幾里得距離係用極座標值算出兩點間的直線距離,而漢米爾敦距離係沿著節點的邊長計算所需使用的邊長總數,可用於循環節點的網路拓樸上。 cost(N i , the end of the path) is equal to the Euclidean distance (N i , the end of the path), or the Hamilton distance (N i , the end of the path). The Euclidean distance is a straight line between two points calculated using polar coordinates The distance, and the Hamilton distance is the total number of side lengths required to be calculated along the side length of the node, which can be used in the network topology of cyclic nodes.

如第3圖所示,節點(4,2)至節點(3,14)的漢米爾敦距離為11;如上述,節點(4,2)的R4

Figure 108111260-A0101-12-0009-22
,節點(4,2)的X座標為
Figure 108111260-A0101-12-0009-23
,Y 座標為
Figure 108111260-A0101-12-0009-26
;節點(3,14)的R3
Figure 108111260-A0101-12-0009-25
,節點(3,14)的X座標為
Figure 108111260-A0101-12-0009-28
,Y座標為
Figure 108111260-A0101-12-0009-29
,由前述的節點(4,2)及節點(3,14)的X、Y座標即可算出兩者之間的歐幾里得距離。 As shown in Figure 3, the distance from node (4,2) to node (3,14) is 11; as mentioned above, R 4 of node (4,2) is
Figure 108111260-A0101-12-0009-22
, The X coordinate of node (4,2) is
Figure 108111260-A0101-12-0009-23
, The Y coordinate is
Figure 108111260-A0101-12-0009-26
; R 3 of node (3,14) is
Figure 108111260-A0101-12-0009-25
, The X coordinate of node (3,14) is
Figure 108111260-A0101-12-0009-28
, The Y coordinate is
Figure 108111260-A0101-12-0009-29
, The Euclidean distance between the two nodes (4, 2) and the nodes (3, 14) can be calculated from the X and Y coordinates.

然後,進行步驟S07,檢查終止條件以結束(Exit)該代價函數。 Then, proceed to step S07, and check the termination condition to exit the cost function.

檢查該代價函數的最小代價值的下一個節點Ni是否等於該路徑終點13,若為是,則輸出找到最短路徑路由之相應訊息、輸出由路徑起點12到路徑終點13的各個節點與光路使用狀態之紀錄,並結束該代價函數;若為否,則繼續下列檢查步驟。 Check whether the next node N i of the minimum cost value of the cost function is equal to the end of the path 13, if it is, then output the corresponding message to find the shortest path route, output each node and light path from the path start 12 to the path end 13 Record the status and end the cost function; if not, continue the following inspection steps.

檢查該路徑起點12至相鄰三個節點Ni之間是否為堵塞(blocking)狀態,若為是,則輸出此節點走不通之相應訊息、紀錄此節點的選取狀態為被選過且為堵塞狀態、並回溯(Backtrace)以返回至路徑的前一個節點以從可能的次短路徑或第三路徑繼續尋找。 Check whether the path starting point 12 to the adjacent three nodes N i is blocked (blocking) state, if it is, then output the corresponding message that this node can not pass, record the selected state of this node as selected and blocked Status, and backtrace (Backtrace) to return to the previous node of the path to continue searching from the possible second shortest path or the third path.

接著,檢查前一次(previous)節點是否為路徑起點12、或是現在的節點即為路徑起點12,若為是,則輸出找不出最佳路徑之相應訊息,並將此路徑終點13暫存(buffer)至路徑起點12的等待佇列(waiting queue)中,以等待下一次有空閒光路釋出且光路狀態改變後,再行處理,接著紀錄光路使用狀態,並結束代價函數;若為否,則回溯(Backtrace)以返回至路徑的前一個節點,並再次執行代價函數,即執行代價函數cost(前一次路徑起點,路徑終點)。 Next, check whether the previous node is the path start point 12, or the current node is the path start point 12, if it is, the corresponding message that the best path cannot be found is output, and the path end point 13 is temporarily stored (buffer) to the waiting queue at the starting point of the path 12 to wait for the next free optical path to be released and the optical path state changes before processing, then record the optical path usage status, and end the cost function; if not , Then backtrack to return to the previous node of the path, and execute the cost function again, that is, execute the cost function cost (previous path start point, path end point).

若皆非上述狀況,則往前移動一節點,繼續尋找,並紀錄最短路徑路由選取狀態,則路徑起點12至節點Ni被選擇;然後再次執行代價函數cost(Ni,路徑終點),直到最後終止條件成立,就結束代價函數。 If none of the above conditions, move forward a node, continue to find, and record the shortest path routing state, then the path starting point 12 to node Ni is selected; then execute the cost function cost (Ni, path end point) again, until the end If the condition is true, the cost function is ended.

本發明之用於六角形光交換網路之最短路徑路由方法,其用於找出光交換機兩個節點間最適合的光路路由,以達成光路傳輸路由快速搜尋與取得之目的,本發明相較於其他習用技術更具備下列優點: The shortest path routing method for hexagonal optical switching network of the present invention is used to find the most suitable optical path between two nodes of an optical switch to achieve the purpose of fast search and acquisition of optical path transmission routes. It has the following advantages in other conventional technologies:

本發明之最短路徑路由方法具有快速搜尋的能力,若在最佳情形,即為整條光路皆有空閒時,可從三個相鄰節點沿光路找出最短直線離(航空距離)而到達路徑終點13,假設n為節點數,在二維的六角形光交換網路中,可看成一個正圓形網路,任二點之間的距離小於或等於此圓的直徑,故最佳情形是一路找到終點,行走最佳路徑的節點數將小於或等於此圓的直徑的節點數,故時間複雜度為O(log n),此為最佳且最快的搜尋速度。若在最差情形,行走至終點的前一個節點遇到堵塞(blocking)狀態,而退回尋找其他路徑並且一路上的節點皆遇到堵塞(blocking)狀態直到退回路徑起點12,所以最差的狀況可能是找過n個節點,故時間複雜度為O(n×log n)。 The shortest path routing method of the present invention has the ability to quickly search, if in the best case, that is, when the entire optical path is free, the shortest straight line distance (air distance) can be found from three adjacent nodes along the optical path to reach the path End point 13, assuming that n is the number of nodes, in a two-dimensional hexagonal optical switching network, it can be regarded as a perfect circular network, the distance between any two points is less than or equal to the diameter of this circle, so the best case It is to find the end point all the way, the number of nodes walking the best path will be less than or equal to the number of nodes of the diameter of this circle, so the time complexity is O(log n ), which is the best and fastest search speed. If in the worst case, the node that walked to the end encounters the blocking state, and then retreats to find other paths and all the nodes along the way encounter the blocking state until it returns to the beginning of the path 12, so the worst situation It may be that n nodes have been found, so the time complexity is O(n×log n ).

因此,本發明之最短路徑路由的方法在「部分前進,部分退回再前進」的一般情況下,其時間複雜度為O(log n)~O(n×log n),其平均時間複雜度為O(n),意即在一般情況下,本發明具備較快速的搜尋能力。 Therefore, the shortest path routing method of the present invention generally has a time complexity of O(log n )~O(n×log n ) under the general condition of “partially advancing, partly retreating and then advancing”, and its average time complexity is O(n) means that in general, the present invention has a faster search capability.

在cost(Ni,路徑終點)的代價函數上,本發明採用歐幾里得距離或漢米爾敦距離來進行實作,歐幾里得距離用極座標算出兩點間的直線航空距離;而漢米爾敦距離是沿著節點的邊長來計算走過的邊長總數,在循環節點的網路拓樸中更適合實際使用。 On the cost function of cost (Ni, the end of the path), the present invention uses Euclidean distance or Hammillun distance for implementation. Euclidean distance uses polar coordinates to calculate the straight-line aviation distance between two points; The distance is calculated along the side length of the node to calculate the total number of side lengths traversed. It is more suitable for practical use in the network topology of cyclic nodes.

上列詳細說明乃針對本發明之一可行實施例進行具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The above detailed description is a specific description of a feasible embodiment of the present invention, but this embodiment is not intended to limit the patent scope of the present invention, and any equivalent implementation or change without departing from the technical spirit of the present invention should be included in The patent scope of this case.

綜上所述,本案不僅於技術思想上確屬創新,並具備習用之傳統方法所不及之上述多項功效,已充分符合新穎性及進步性之法定發明專利要 件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。 To sum up, this case is not only innovative in terms of technical ideas, but also possesses the above-mentioned multiple functions that are not achievable by traditional methods, and has fully met the novelty and progressive legal invention patent requirements File, you file an application in accordance with the law, and urge your office to approve this application for a patent for invention to encourage the invention and reach a sense of virtue.

10‧‧‧光交換機組 10‧‧‧ Optical switch group

11‧‧‧起始機組 11‧‧‧ Starting unit

12‧‧‧路徑起點 12‧‧‧ Starting point

13‧‧‧路徑終點 13‧‧‧End of route

L1‧‧‧第一層 L1‧‧‧First floor

L2‧‧‧第二層 L2‧‧‧Second floor

L3‧‧‧第三層 L3‧‧‧The third floor

L4‧‧‧第四層 L4‧‧‧Fourth floor

Claims (9)

一種用於六角形光交換網路之路徑路由方法,其中,該六角形光交換網路係包括呈蜂巢狀配置的多個具有六角形架構之光交換機組,該方法係包括:令該多個光交換機組中的一組光交換機組作為起始機組,並令該起始機組為第一層;令圍繞該起始機組為中心的該多個光交換機組為第二至N層,以計算該第一至N層的最大半徑;令該起始機組的該六角形架構中位於一第一方向延伸線上的該光交換機為起始點,以沿該第一至N層的之第二方向上的該光交換機依序進行編號;分別取得路徑起點與路徑終點之對應編號及對應最大半徑,以計算該路徑起點及該路徑終點的極座標值;以及輸入該路徑起點與該路徑終點的該極座標值於代價函數中,以計算從該路徑起點至該路徑終點之最短路徑;其中,該代價函數係分別計算由該路徑起點經過相鄰三個節點以及由該相鄰三個節點至該路徑終點之最小代價值。 A path routing method for a hexagonal optical switching network, wherein the hexagonal optical switching network includes a plurality of optical switch groups with a hexagonal configuration in a honeycomb configuration, and the method includes: making the multiple A group of optical switch groups in the optical switch group is used as the initial unit, and the initial unit is the first layer; the multiple optical switch groups around the initial unit are the second to N layers to calculate The maximum radius of the first to N layers; let the optical switch on a line extending in a first direction in the hexagonal structure of the starting unit be the starting point, along the second direction of the first to N layers The optical switches on the system are numbered sequentially; the corresponding numbers and corresponding maximum radii of the path start point and the path end point are respectively obtained to calculate the polar coordinates of the path start point and the path end point; and the polar coordinates of the path start point and the path end point are input The value is in the cost function to calculate the shortest path from the start of the path to the end of the path; where the cost function calculates the path from the start of the path through the adjacent three nodes and from the adjacent nodes to the end of the path The minimum generation value. 如申請專利範圍第1項所述之路徑路由方法,其中,該代價函數係根據該路徑起點與該相鄰三個節點之間具有充足光路頻寬資源、剩餘部份光路頻寬資源、及耗盡所有光路頻寬資源以計算數值。 The path routing method as described in item 1 of the patent application scope, wherein the cost function is based on the sufficient optical path bandwidth resources, the remaining part of the optical path bandwidth resources, and the consumption between the path start point and the three adjacent nodes Use all optical bandwidth resources to calculate the value. 如申請專利範圍第1項所述之路徑路由方法,其中,該代價函數係分別計算該相鄰三個節點與該路徑終點之間的歐幾里得距離或漢米爾敦距離。 The path routing method as described in item 1 of the patent application scope, wherein the cost function calculates the Euclidean distance or the Hamilton distance between the adjacent three nodes and the end of the path, respectively. 如申請專利範圍第1項所述之路徑路由方法,進一步包括: 檢查終止條件以結束該代價函數;其中,該檢查終止條件之步驟係檢查該相鄰三個節點中可用的節點是否為該路徑終點;若是,則結束該代價函數,反之,則繼續計算該代價函數。 The route routing method as described in item 1 of the patent application scope further includes: Check the termination condition to end the cost function; wherein, the step of checking the termination condition is to check whether the available nodes in the adjacent three nodes are the end of the path; if it is, then end the cost function, otherwise, continue to calculate the cost function. 如申請專利範圍第1項所述之路徑路由方法,進一步包括:檢查終止條件以結束該代價函數;其中,該檢查終止條件之步驟係檢查該相鄰三個節點過程中得到該可用的節點為堵塞狀態且回溯至上一個路徑是否該路徑起點;若是,則結束該代價函數,反之,則繼續計算該代價函數。 The path routing method as described in item 1 of the patent application scope further includes: checking the termination condition to end the cost function; wherein, the step of checking the termination condition is to obtain the available node during the process of checking the adjacent three nodes as In the congested state and back to the previous path is the starting point of the path; if it is, the cost function is ended, otherwise, the cost function continues to be calculated. 如申請專利範圍第1項所述之路徑路由方法,進一步包括:檢查終止條件以結束該代價函數;其中,該檢查終止條件之步驟係檢查前一次節點是否為該路徑起點、或是現在的節點為該路徑起點;若是,則輸出相應訊息,將該路徑終點暫存至該路徑起點的等待佇列中,並結束該代價函數,反之,則回溯至前一個節點,並再次執行該代價函數。 The path routing method as described in item 1 of the patent application scope further includes: checking the termination condition to end the cost function; wherein, the step of checking the termination condition is to check whether the previous node is the starting point of the path or the current node Is the starting point of the path; if it is, it outputs a corresponding message, temporarily stores the end point of the path in the waiting queue of the starting point of the path, and ends the cost function, otherwise, it goes back to the previous node and executes the cost function again. 如申請專利範圍第1項所述之路徑路由方法,其中,該計算該第N層的最大半徑之步驟中,用以計算該最大半徑之方程式為:
Figure 108111260-A0101-13-0002-30
,其中,該第N層的該最大半徑設為RN,第N層設為N,且N為大於或等於1的整數。
The path routing method as described in item 1 of the patent application scope, wherein in the step of calculating the maximum radius of the Nth layer, the equation for calculating the maximum radius is:
Figure 108111260-A0101-13-0002-30
, Where the maximum radius of the Nth layer is set to R N and the Nth layer is set to N, and N is an integer greater than or equal to 1.
如申請專利範圍第1項所述之路徑路由方法,其中,該第一方向為該起始機組的該六角形架構之九點鐘方向,且該第二方向為該第N層的該六角形架構之組合外緣的順時鐘方向。 The path routing method as described in item 1 of the patent scope, wherein the first direction is the nine o'clock direction of the hexagonal structure of the starting unit, and the second direction is the hexagonal shape of the Nth layer The clockwise direction of the outer edge of the combined structure. 如申請專利範圍第1項所述之路徑路由方法,其中,該計算該路徑起點及該路徑終點的極座標值之步驟中,用以計算該極座標值之方程式為:
Figure 108111260-A0101-13-0003-31
Figure 108111260-A0101-13-0003-32
,其中,該第N層的該最大半徑設為RN,該第N層設為N,由該起始機組中該第一方向之延伸線上的該起始點為第零個點起算且沿著該第N層的該六角形架構之組合外緣之第二方向上的該光交換機依序編號的第M+1個點設為M。
The path routing method as described in item 1 of the patent application scope, wherein, in the step of calculating the polar coordinate values of the start point and the end point of the path, the equation for calculating the polar coordinate values is:
Figure 108111260-A0101-13-0003-31
,
Figure 108111260-A0101-13-0003-32
, Where the maximum radius of the Nth layer is set to R N and the Nth layer is set to N, starting from the zeroth point and starting from the zeroth point on the extension line of the first direction in the starting unit The M+1th point of the sequentially numbered optical switches in the second direction of the combined outer edge of the hexagonal structure of the Nth layer is set as M.
TW108111260A 2019-03-29 2019-03-29 Path routing method for hexagonal optical switching network TWI684342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108111260A TWI684342B (en) 2019-03-29 2019-03-29 Path routing method for hexagonal optical switching network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108111260A TWI684342B (en) 2019-03-29 2019-03-29 Path routing method for hexagonal optical switching network

Publications (2)

Publication Number Publication Date
TWI684342B true TWI684342B (en) 2020-02-01
TW202037134A TW202037134A (en) 2020-10-01

Family

ID=70413247

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108111260A TWI684342B (en) 2019-03-29 2019-03-29 Path routing method for hexagonal optical switching network

Country Status (1)

Country Link
TW (1) TWI684342B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200637302A (en) * 2005-04-14 2006-10-16 Ind Tech Res Inst Method for a variable-length communications system
US20130070617A1 (en) * 2011-09-15 2013-03-21 Ciena Corporation Shortest path routing systems and methods for networks with non-fully meshed vertices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200637302A (en) * 2005-04-14 2006-10-16 Ind Tech Res Inst Method for a variable-length communications system
TWI291823B (en) * 2005-04-14 2007-12-21 Ind Tech Res Inst Variable-length communications system and method thereof
US20130070617A1 (en) * 2011-09-15 2013-03-21 Ciena Corporation Shortest path routing systems and methods for networks with non-fully meshed vertices

Also Published As

Publication number Publication date
TW202037134A (en) 2020-10-01

Similar Documents

Publication Publication Date Title
US7809006B2 (en) Routing with virtual channels
US20060002291A1 (en) Methods of network routing having improved resistance to faults affecting groups of links subject to common risks
JP6060316B2 (en) Method and system for configuring NoC and computer-readable storage medium
EP2896165B1 (en) Hierarchal label distribution and route installation in a loop-free routing topology using routing arcs at multiple hierarchal levels for ring topologies
EP3198467B1 (en) System, method and apparatus for improving the performance of collective operations in high performance computing
US20040073702A1 (en) Shortest path search method "Midway"
US10404576B2 (en) Constrained shortest path determination in a network
Lin et al. Time-shifted multilayer graph: A routing framework for bulk data transfer in optical circuit-switched networks with assistive storage
TW201547239A (en) Switchless network topology system for parallel computation and method thereof
CN108463976A (en) Reduce the flooding of link in network shape variation
KR20150030644A (en) Tie-breaking in shortest path determination
WO2010127527A1 (en) Method and apparatus for implementing k-shortest paths algorithm in the case of existing multiple edges between adjacent nodes
TWI684342B (en) Path routing method for hexagonal optical switching network
Herlihy et al. Competitive concurrent distributed queuing
Gandhi et al. Catalyst: Unlocking the power of choice to speed up network updates
CN117135059B (en) Network topology structure, construction method, routing algorithm, equipment and medium
US9166888B1 (en) Configuration data
CN101267398B (en) Non deal lock self-adapted routing method in 2-D torus network
Ahmed et al. Contention-free routing for hybrid photonic mesh-based network-on-chip systems
CN109711633B (en) Public transport travel path planning and indexing method based on MapReduce
Abali A deadlock avoidance method for computer networks
WO2012103852A2 (en) Method and device for wavelength-division multiplexing network planning
Stidsen et al. Optimal routing with failure‐independent path protection
JP6874563B2 (en) Information processing system and information processing method
US8995827B2 (en) System and method for finding partially disjoint paths for spare capacity allocation in shared backup path protection for dual fiber cuts