TWI731237B - Transparent bridging over mesh network - Google Patents
Transparent bridging over mesh network Download PDFInfo
- Publication number
- TWI731237B TWI731237B TW107114272A TW107114272A TWI731237B TW I731237 B TWI731237 B TW I731237B TW 107114272 A TW107114272 A TW 107114272A TW 107114272 A TW107114272 A TW 107114272A TW I731237 B TWI731237 B TW I731237B
- Authority
- TW
- Taiwan
- Prior art keywords
- mesh
- node
- external
- packet
- mesh node
- Prior art date
Links
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000012546 transfer Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 description 26
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000005641 tunneling Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本發明關於一種應用於網狀網路之透通橋接方法,尤其關於一種使外部節點能夠進行通訊的應用於網狀網路之透通橋接方法。 The present invention relates to a transparent bridging method applied to a mesh network, and more particularly to a transparent bridging method applied to a mesh network that enables external nodes to communicate.
網狀網路可以使用群播或路由技術來傳遞資料給任一節點。但是,當要進行網狀網路的外部節點間的資料傳送時,由於網狀網路內部和外部各節點的地址域,各自獨立且互相不同,而無法利用路由技術來進行傳送。於習知技術中,可以採用群播方式來進行資料傳送。 Mesh networks can use multicast or routing technology to deliver data to any node. However, when data transmission between external nodes of the mesh network is to be carried out, since the address domains of the internal and external nodes of the mesh network are independent and different from each other, routing technology cannot be used for transmission. In the conventional technology, a group broadcast method can be used for data transmission.
圖1顯示利用群播方式來傳送封包的示意圖。於圖1中,網狀網路Mesh的內部包含有多數的網狀節點a1~a6,並且網狀網路Mesh的外部節點b1~b3不屬於網狀網路Mesh。網狀節點a1~a6為隨機組成之網狀網路Mesh,其路由表僅記錄網狀網路Mesh之內部網狀節點a1~a6的地址域a;以及兩節點間的傳送路徑,例如網狀節點a6的路由表會記錄目的地網狀節點a2的下一跳(Next Hop)為網狀節點a4。 Figure 1 shows a schematic diagram of using multicast to transmit packets. In Figure 1, the inside of the mesh network Mesh contains most of the mesh nodes a1~a6, and the external nodes b1~b3 of the mesh network Mesh do not belong to the mesh network Mesh. The mesh nodes a1~a6 are randomly composed of the mesh network Mesh, and its routing table only records the address domain a of the internal mesh nodes a1~a6 of the mesh network Mesh; and the transmission path between the two nodes, such as mesh The routing table of node a6 records the next hop (Next Hop) of the destination mesh node a2 as mesh node a4.
當外部節點b1~b3透過網狀網路Mesh內部的網狀節點a1~a6來傳遞資 料時,由外部節點b3發出一目的地為外部節點b1的封包T給網狀節點a6,網狀節點a6收到後查找本身的路由表確不能找到關於外部節點之地址域b的資訊,這就是因為地址域的不同而無法轉送封包T。要解決前述問題,可以採用群播的方式進行。 When the external nodes b1~b3 transmit data through the mesh nodes a1~a6 inside the mesh, the external node b3 sends a packet T destined for the external node b1 to the mesh node a6 and the mesh node a6 After receiving it, looking up its own routing table does not find the information about the address field b of the external node. This is because the packet T cannot be forwarded because of the difference in the address field. To solve the aforementioned problems, you can use group broadcasting.
當外部節點b3要透過網狀網路Mesh傳送封包T至外部節點b1時,外部節點b3先傳送資料點網狀節點a6(步驟S01),由於網狀節點a6不知道外部節點b1在網狀節點a2的後面,因此網狀節點a6透過群播方式將封包T傳送給Mesh的內部中的所有網狀節點a1~a6,該些網狀節點a1~a6再往其後方傳送封包T(步驟S02),網狀節點a1及a5往其後方傳送封包T,但網狀節點a1及a5後方無節點,因此沒有裝置接收。網狀節點a3收到封包T後可以在不知道有外部節點b3的情況下,直接往其後方傳送封包T,外部節點b3接收來自網狀節點a3的封包T,進行解碼後得知封包T的目的地不是外部節點b3而忽略此封包T(步驟S03)。網狀節點a2收到封包T後可以在不知道有外部節點b1的情況下,直接往其後方傳送封包T,外部節點b1接收來自網狀節點a2的封包T,進行解碼後得知封包T的目的地是外部節點b1而正確接收封包T(步驟S04)。 When the external node b3 wants to transmit the packet T to the external node b1 through the mesh network, the external node b3 first transmits the data point mesh node a6 (step S01), because the mesh node a6 does not know that the external node b1 is in the mesh node After a2, the mesh node a6 sends the packet T to all the mesh nodes a1~a6 in the Mesh through the multicast method, and these mesh nodes a1~a6 then send the packet T to the back (step S02) , The mesh nodes a1 and a5 send the packet T behind them, but there are no nodes behind the mesh nodes a1 and a5, so there is no device to receive them. After the mesh node a3 receives the packet T, it can directly transmit the packet T to the back of it without knowing that there is an external node b3. The external node b3 receives the packet T from the mesh node a3, and decodes it to know the value of the packet T. The destination is not the external node b3 and the packet T is ignored (step S03). After the mesh node a2 receives the packet T, it can directly transmit the packet T to the back of it without knowing that there is an external node b1. The external node b1 receives the packet T from the mesh node a2, and after decoding it, it knows that the packet T is The destination is the external node b1 and the packet T is correctly received (step S04).
此氾濫群播的做法可以不用任何的對應表來記錄不同地址域的關連,但每一個封包都如此傳遞,確會造成很多的無效傳輸、過多流量進而降地網路的傳輸效能,而且有安全上的疑慮。另一個做法是仰賴網路管理員手動設定內部和外部的地址對應表,但當節點數量變多或是節點移動 時,都會增加管理上的負擔。 This method of flooding multicasting can record the connection of different address domains without any correspondence table, but each packet is transmitted in this way, it will indeed cause a lot of invalid transmission, excessive traffic, and reduce the transmission efficiency of the ground network, and it is safe. Doubts. Another approach is to rely on the network administrator to manually set the internal and external address mapping table, but when the number of nodes increases or the nodes move, it will increase the management burden.
美國專利US8908670,揭示一種用於在無線網路中定位源節點和目的地節點之間的路由的方法,由源節點利用延伸路由請求(extended route request,eRREQ)消息來對該無線網路進行泛洪(flooding)式廣播,辨識連接源節點(connection source node)是否在網狀網路Mesh內,當連接源節點在網狀網路Mesh內時,延伸路由請求消息包含(a)網狀源節點(mesh source node)的源地址和(b)連接源節點的源地址。藉以,更新節點中的路由表。 US Patent US8908670 discloses a method for locating a route between a source node and a destination node in a wireless network. The source node uses an extended route request (eRREQ) message to expand the wireless network. Flooding (flooding) broadcast to identify whether the connection source node is in the mesh network. When the connection source node is in the mesh network, the extended route request message contains (a) the mesh source node The source address of (mesh source node) and (b) the source address of the connection source node. In this way, the routing table in the node is updated.
然而,延伸路由請求(eRREQ)的技術,只適合用於回應式路由(reactive routing),因為它可以發出路由請求(RREQ),可以將路由請求改變成延伸路由請求,並透過延伸路由請求和路由回應(route reply,RREP)來攜帶外部路徑的位址。但是它不適合用在前置式路由(proactive routing)的技術。此外,前述延伸路由請求(eRREQ)的技術,必須預先將外部節點b3記錄於網狀節點a6中,網狀節點a6才能夠代替外部節點b3回覆路由回應(RREP),因此在操作前需要額外的註冊動作(registration)以將外部節點b3記錄於網狀節點a6中。 However, the extended routing request (eRREQ) technology is only suitable for reactive routing, because it can issue a routing request (RREQ), change the routing request into an extended routing request, and extend the routing request and routing Respond (route reply, RREP) to carry the address of the external route. But it is not suitable for use in proactive routing technology. In addition, the aforementioned extended route request (eRREQ) technology must record the external node b3 in the mesh node a6 in advance, so that the mesh node a6 can replace the external node b3 Responsive Route Response (RREP), so additional operations are required before the operation A registration action (registration) to record the external node b3 in the mesh node a6.
依據本發明一實施例,提供一種應用於一網狀網路之透通橋接方法, 用以使多個外部節點利用網狀網路進行通訊,網狀網路包含分別儲存有一轉送表的一第一網狀節點(a6)及一第二網狀節點(a2)。該方法包含以下步驟。利用第一網狀節點(a6)接收來自網狀網路外部的一第一封包,第一封包含有一外部目的地址(b1)及一外部源地址(b3)。利用第一網狀節點(a6)查詢第一網狀節點(a6)的轉送表,當第一網狀節點(a6)的轉送表不包含外部目的地址(b1)的轉送資料時,將第一網狀節點的網狀源位址(a6)裝入第一封包,並且使第一網狀節點(a6)以群播方式傳送第一封包至第二網狀節點(a2)。利用第二網狀節點(a2),將外部源位址(b3)與第一網狀節點的網狀源位址(a6),記錄於第二網狀節點(a2)的轉送表中。 According to an embodiment of the present invention, a transparent bridging method applied to a mesh network is provided to enable a plurality of external nodes to communicate through the mesh network. The mesh network includes a first forwarding table respectively stored therein. A mesh node (a6) and a second mesh node (a2). The method includes the following steps. The first mesh node (a6) is used to receive a first packet from outside the mesh network. The first packet includes an external destination address (b1) and an external source address (b3). Use the first mesh node (a6) to query the forwarding table of the first mesh node (a6). When the forwarding table of the first mesh node (a6) does not include the forwarding data of the external destination address (b1), the first The mesh source address (a6) of the mesh node is loaded into the first packet, and the first mesh node (a6) transmits the first packet to the second mesh node (a2) in a multicast manner. Using the second mesh node (a2), the external source address (b3) and the mesh source address of the first mesh node (a6) are recorded in the transfer table of the second mesh node (a2).
於一實施例中,第二網狀節點(a2),以外部源位址(b3)作為一外部目的地(b3);以第一網狀節點的網狀源位址(a6)作為一隧道(a6),並將包含外部目的地(b3)及隧道(a6)的轉送資訊記錄於第二網狀節點(a2)的轉送表中。 In one embodiment, the second mesh node (a2) uses the external source address (b3) as an external destination (b3); the mesh source address (a6) of the first mesh node is used as a tunnel (a6), and record the forwarding information including the external destination (b3) and the tunnel (a6) in the forwarding table of the second mesh node (a2).
於一實施例中,該方法更包含以下步驟。利用第一網狀節點(a6)接收來自網狀網路內部的一第二封包,第二封包含有一外部目的地址(b3)及一外部源地址(b1);以及網狀目的地址(a6)及網狀源地址(a2)。利用第一網狀節點(a6),將外部源地址(b1)及第二網狀節點的網狀源地址(a2),記錄於第一網狀節點(a6)的轉送表中。 In one embodiment, the method further includes the following steps. Use the first mesh node (a6) to receive a second packet from inside the mesh network. The second packet contains an external destination address (b3) and an external source address (b1); and the mesh destination address (a6) And the mesh source address (a2). Using the first mesh node (a6), the external source address (b1) and the mesh source address (a2) of the second mesh node are recorded in the forwarding table of the first mesh node (a6).
於一實施例中,網狀網路更包含一第三網狀節點(a1),且該應用於一網狀網路之透通橋接方法更包含:偵測該些外部節點的一第一外部節點 (b1),耦接到第三網狀節點(a1);及利用第三網狀節點(a1)傳送一位址更新訊息至第一網狀節點(a6)。於一實施例中,較佳地,更包含:第一網狀節點(a6)依據該位址更新訊息,更新第一網狀節點(a6)的轉送表。 In one embodiment, the mesh network further includes a third mesh node (a1), and the transparent bridging method applied to a mesh network further includes: detecting a first external of the external nodes The node (b1) is coupled to the third mesh node (a1); and the third mesh node (a1) is used to send an address update message to the first mesh node (a6). In an embodiment, preferably, it further includes: the first mesh node (a6) updates the forwarding table of the first mesh node (a6) according to the address update message.
於一實施例中,該應用於一網狀網路之透通橋接方法更包含:以一計時器進行計時,當超過一預定時間後,更新第二網狀節點(a2)的轉送表。 In one embodiment, the transparent bridging method applied to a mesh network further includes: counting with a timer, and updating the forwarding table of the second mesh node (a2) after a predetermined time has elapsed.
依據本發明一實施例之應用於網狀網路之透通橋接方法,其隧道的建立是根據封包地址的學習,能夠省去了手動設定的麻煩。於一實施例中,可以不需要額外發出路由請求(RREQ)的程序,可以不改變原本網狀路由(mesh routing)的格式和行為,因此可以適用於回應式路由(reactive)或前置式路由(proactive routing)。 According to the transparent bridging method applied to the mesh network according to an embodiment of the present invention, the establishment of the tunnel is based on the learning of the packet address, which can save the trouble of manual setting. In one embodiment, there may be no need to send additional routing request (RREQ) procedures, and the format and behavior of the original mesh routing may not be changed. Therefore, it may be applicable to reactive routing (reactive) or pre-type routing. (proactive routing).
300‧‧‧網路裝置 300‧‧‧Network Device
310‧‧‧接收電路 310‧‧‧Receiving circuit
320‧‧‧封包處理電路 320‧‧‧Packet processing circuit
330‧‧‧判斷電路 330‧‧‧Judging circuit
340‧‧‧記憶單元 340‧‧‧Memory Unit
350‧‧‧傳送電路 350‧‧‧Transmission circuit
360‧‧‧計時器 360‧‧‧Timer
a1~a6‧‧‧網狀節點 a1~a6‧‧‧Mesh Node
b1~b3‧‧‧外部節點 b1~b3‧‧‧External node
Mesh‧‧‧網狀網路 Mesh‧‧‧Mesh Network
圖1顯示習知利用群播方式來傳送封包的示意圖。 Fig. 1 shows a schematic diagram of conventional multicast transmission of packets.
圖2A顯示依據本發明一實施例之應用於網狀網路之透通橋接方法來傳送封包的示意圖。 2A shows a schematic diagram of transmitting packets according to a transparent bridging method applied to a mesh network according to an embodiment of the present invention.
圖2B顯示依據本發明一實施例之應用於網狀網路之透通橋接方法的流程圖。 2B shows a flowchart of a transparent bridging method applied to a mesh network according to an embodiment of the present invention.
圖3A顯示依據本發明一實施例之應用於網狀網路之透通橋接之傳送流程的流程圖。 FIG. 3A shows a flow chart of a transmission process for transparent bridging applied to a mesh network according to an embodiment of the present invention.
圖3B顯示依據本發明一實施例之應用於網狀網路之透通橋接之傳送流程的流程圖。 FIG. 3B shows a flow chart of a transmission process for transparent bridging applied to a mesh network according to an embodiment of the present invention.
圖4顯示本發明一實施例之網路裝置的功能方塊圖。 FIG. 4 shows a functional block diagram of a network device according to an embodiment of the invention.
圖5顯示依據本發明一實施例之應用於網狀網路之透通橋接方法來傳送封包的示意圖。 FIG. 5 shows a schematic diagram of transmitting packets according to a transparent bridging method applied to a mesh network according to an embodiment of the present invention.
以下說明中“裝置”和“節點”的用語以等同的方式使用。此外,群播是指單一裝置傳送訊息給多個裝置的通訊方式,其可以包含廣播等。網狀路徑(mesh path)是指網狀網路Mesh內的路徑。 The terms "device" and "node" in the following description are used in an equivalent manner. In addition, group broadcasting refers to a communication method in which a single device sends messages to multiple devices, and it can include broadcasting and the like. Mesh path (mesh path) refers to the path in the mesh network Mesh.
圖2A顯示依據本發明一實施例之應用於網狀網路之透通橋接方法來傳送封包的示意圖。圖2B顯示依據本發明一實施例之應用於網狀網路之透通橋接方法的流程圖。如圖2A及2B所示,網狀網路Mesh包含多個網狀節點a1~a6,該些節點分別包含有一轉送表(Forwarding Table)。外部節點b1~b3透過網狀網路Mesh進行通訊。以下將說明網狀節點a2及a6透過學習來建立地址域a及b的轉送表。於本實施例中,應用於網狀網路之透通橋接方法包含以下步驟。步驟S20:外部節點b3向網狀網路Mesh傳送封包T其包含外部目的地址b1及外部源地址b3。 2A shows a schematic diagram of transmitting packets according to a transparent bridging method applied to a mesh network according to an embodiment of the present invention. 2B shows a flowchart of a transparent bridging method applied to a mesh network according to an embodiment of the present invention. As shown in FIGS. 2A and 2B, the mesh network Mesh includes a plurality of mesh nodes a1 to a6, and each of these nodes includes a forwarding table (Forwarding Table). The external nodes b1~b3 communicate through the Mesh network. In the following, it will be explained that the mesh nodes a2 and a6 establish the forwarding tables of the address domains a and b through learning. In this embodiment, the transparent bridging method applied to the mesh network includes the following steps. Step S20: The external node b3 sends a packet T to the mesh network Mesh, which includes the external destination address b1 and the external source address b3.
步驟S22:當網狀節點a6第一次收到來自外部節點b3的封包T時,網狀 節點a6查詢其轉送表得知其轉送表沒有外部目的地址b1的轉送資訊,網狀節點a6將網狀源位址a6及群播資訊封裝於封包T後,使封包T進入隧道,並將其群播(Multicast)至網狀網路Mesh的每個網狀節點a1~a5,封裝後資料如下表1所示。 Step S22: When the mesh node a6 receives the packet T from the external node b3 for the first time, the mesh node a6 queries its forwarding table and knows that its forwarding table does not have the forwarding information of the external destination address b1, and the mesh node a6 will After the source address a6 and the multicast information are encapsulated in the packet T, the packet T enters the tunnel and multicasts it to each mesh node a1~a5 of the mesh network. The encapsulated data is as follows 1 shown.
依據一實施例,於步驟S22中,網狀節點a6亦可以僅將網狀源位址a6封裝於封包T,使封包T進入隧道,並將其群播(Multicast)至網狀網路Mesh的每個網狀節點a1~a5。於本實施例中,封包T不包含有網狀目的地址的資訊。 According to an embodiment, in step S22, the mesh node a6 can also only encapsulate the mesh source address a6 in the packet T, so that the packet T enters the tunnel, and multicasts it to the mesh network. Each mesh node a1~a5. In this embodiment, the packet T does not contain the information of the mesh destination address.
步驟S24:當網狀節點a1~a5收到來自網狀節點a6所群播的封包T後,將封包T往其後方傳送,並且網狀節點a1~a5解開封包T,再將外部源位址b3與網狀網路Mesh的網狀源位址a6間的關聯資訊,記錄在本身的轉送表中,例如轉送資訊:{外部目的地b3,隧道a6}。 Step S24: After the mesh nodes a1~a5 receive the packet T broadcasted by the mesh node a6, the packet T is transmitted to the rear, and the mesh nodes a1~a5 unpack the packet T, and then transfer the external source The associated information between the address b3 and the mesh source address a6 of the mesh network is recorded in its own forwarding table, for example, forwarding information: {external destination b3, tunnel a6}.
步驟S26:外部節點b1若要響應外部節點b3時,則外部節點b1產生另一封包P其包含源地址為b1,目的地址為b3,並發送至網狀節點a2。網狀節點a2收到來自外部節點b1的封包P後,網狀節點a2得知封包P其目的地為b3,網狀節點a2會查詢本身的轉送表,由於本身的轉送表已有{外部目的地 b3,隧道a6}的轉送資訊,因此網狀節點a2將網狀源位址a2及網狀目的地址a6封裝於封包P,使其進隧道a6後,依路由表的網狀路徑(mesh path)單播至網狀節點a6,封裝後資料如下表2所示。 Step S26: If the external node b1 wants to respond to the external node b3, the external node b1 generates another packet P containing the source address b1 and the destination address b3, and sends it to the mesh node a2. After the mesh node a2 receives the packet P from the external node b1, the mesh node a2 knows that the destination of the packet P is b3, and the mesh node a2 will query its own forwarding table, because its own forwarding table already has {external destination B3, tunnel a6} forwarding information, so the mesh node a2 encapsulates the mesh source address a2 and mesh destination address a6 in the packet P, so that after entering the tunnel a6, it follows the mesh path of the routing table (mesh path ) Unicast to mesh node a6, and the encapsulated data is shown in Table 2 below.
步驟S28:當網狀節點a6收到來自網狀節點a2所單播的封包P,將其解封裝後,將外部源位址b1與網狀網路Mesh的網狀源位址a2間的關聯資訊記錄在本身的轉送表中,例如轉送資訊:{外部目的地b1,隧道a2},並且網狀節點a6將封包P傳遞至外部節點b1。如此,網狀節點a2和a6都已建立了地址域b的轉送資訊。 Step S28: When the mesh node a6 receives the unicast packet P from the mesh node a2, decapsulates it, and associates the external source address b1 with the mesh source address a2 of the mesh network Mesh The information is recorded in its own forwarding table, such as forwarding information: {external destination b1, tunnel a2}, and the mesh node a6 transmits the packet P to the external node b1. In this way, both the mesh nodes a2 and a6 have established the forwarding information of the address domain b.
步驟S30:當網狀節點a6第二次或以上收到來自外部節點b3的封包T時,網狀節點a6查詢其轉送表時得知包含{外部目的地b1,隧道a2}的傳送資訊,網狀節點a6將此封包T封裝,並使其進入隧道a2後,以單播方式將封包T傳送至網狀節點a2。 Step S30: When the mesh node a6 receives the packet T from the external node b3 for the second time or more, the mesh node a6 queries its forwarding table and learns that the transmission information contains {external destination b1, tunnel a2}. The state node a6 encapsulates the packet T and makes it enter the tunnel a2, and then transmits the packet T to the mesh node a2 in a unicast manner.
於一實施例中,該應用於網狀網路之透通橋接方法,更包含以下步 驟。步驟32:偵測外部節點b1耦接到網狀節點a1。 In one embodiment, the transparent bridging method applied to a mesh network further includes the following steps. Step 32: Detect that the external node b1 is coupled to the mesh node a1.
步驟34:利用網狀節點a1傳送一位址更新訊息至網狀節點a6。 Step 34: Use the mesh node a1 to send an address update message to the mesh node a6.
步驟34:網狀節點a6依據該位址更新訊息,更新網狀節點a6的轉送表。 Step 34: The mesh node a6 updates the forwarding table of the mesh node a6 according to the address update message.
於一實施例中,該些網狀節點a1~a6皆具有一計時器360。而該應用於網狀網路之透通橋接方法,更包含步驟36:當超過一預定時間後,該些網狀節點a1~a6更新該些網狀節點a1~a6的轉送表。更具體而言,該些網狀節點a1~a6會刪除它們的轉送表中的超過預定時間的轉送資料,藉以避免因外部節點的耦接位置改變,而錯誤地傳送訊息的問題發生。 In one embodiment, each of the mesh nodes a1 to a6 has a
圖3A顯示依據本發明一實施例之應用於網狀網路之透通橋接之傳送流程的流程圖。如圖2A及3A所示,於一本實施例中,於網狀網路之透通橋接的傳送流程包含以下步驟。傳送流程開始於網狀節點a6收到網狀網路Mesh外部的封包T(步驟S40),網狀節點a6先查詢其轉送表是否有外部目的地的相關資訊(步驟S42)。若無,則將群播方式封裝於封包T中(步驟S44)後,再將封包T傳入網狀網路Mesh中,更具體而言進入群播隧道後傳給網狀網路Mesh所有網狀節點a1~a5(步驟S48)。若有,將轉送表中所記錄的隧道地址封裝於封包T中(步驟S46)後,再將封包T傳入網狀網路Mesh中,更具體而言,進入該隧道後傳送至該隧道地址(步驟S50)。 FIG. 3A shows a flow chart of a transmission process for transparent bridging applied to a mesh network according to an embodiment of the present invention. As shown in FIGS. 2A and 3A, in one embodiment, the transmission process of transparent bridging in the mesh network includes the following steps. The transmission process starts when the mesh node a6 receives a packet T from the outside of the mesh network Mesh (step S40), and the mesh node a6 first queries its forwarding table for information about external destinations (step S42). If not, encapsulate the multicast method in packet T (step S44), and then transfer the packet T into the mesh network Mesh, more specifically, after entering the multicast tunnel, send it to all the mesh networks of the mesh network. Shape nodes a1 to a5 (step S48). If so, encapsulate the tunnel address recorded in the forwarding table in the packet T (step S46), and then transfer the packet T into the mesh network Mesh, more specifically, send it to the tunnel address after entering the tunnel (Step S50).
圖4顯示本發明一實施例之網路裝置的功能方塊圖。如圖4所示,網路裝置300包含一接收電路310、一封包處理電路320、一判斷電路330、一記 憶單元340及一傳送電路350。接收電路310接收到來自網狀網路Mesh外部的封包T。封包處理電路320解封該封包T,以取得封包T中的一外部目的地的資訊。記憶單元340儲存有一資料表,該資料表包含網狀網路Mesh內部之多數節點的路由表;以及網狀網路Mesh外部之多數節點的轉送表。判斷電路330先查詢其記憶單元340中的轉送表是否有外部目的地的資訊。若無,則封包處理電路320將網狀源位址封裝於封包T中。傳送電路350使封包T進入群播隧道,並傳給網狀網路Mesh的所有節點。若有,封包處理電路320將轉送表中所記錄的隧道地址封裝於封包T中。傳送電路350使封包T進入該隧道後將封包T以單播方式傳送至該隧道地址。 FIG. 4 shows a functional block diagram of a network device according to an embodiment of the invention. As shown in FIG. 4, the
圖3B顯示依據本發明一實施例之應用於網狀網路之透通橋接之傳送流程的流程圖。如圖2A及3B所示,於本實施例中,該於網狀網路之透通橋接的傳送流程包含以下步驟。傳送流程起始於網狀節點a2收到來自網狀網路Mesh內部的封包T(步驟S60),如果是經過隧道封裝過的封包T則解封裝,並判斷內層標頭的來源地址是否記錄於傳送表中(步驟S62)。若無,則新增一筆{內層標頭的來源地址,外層隧道標頭的來源地址}的轉送資料,再記錄於傳送表中(步驟S64)。於一實施例中,更啟動一計時器360開始計時(步驟S66)。於一實施例中,若有,重置計時器360的計時功能(步驟S68)。最後,將封包T解封裝(步驟S70),再將解封裝後的封包T送至網狀網路外部(步驟S72)。 FIG. 3B shows a flow chart of a transmission process for transparent bridging applied to a mesh network according to an embodiment of the present invention. As shown in FIGS. 2A and 3B, in this embodiment, the transmission process of the transparent bridging in the mesh network includes the following steps. The transmission process starts when the mesh node a2 receives the packet T from the mesh network Mesh (step S60), if it is the packet T encapsulated by the tunnel, it is decapsulated, and it is judged whether the source address of the inner header is recorded In the transfer table (step S62). If not, add a transfer data of {the source address of the inner header, the source address of the outer tunnel header}, and then record it in the transfer table (step S64). In one embodiment, a
接收電路310接收到來自網狀網路Mesh內部的封包T。封包處理電路 320則解封裝封包T。如果封包T是經過隧道封裝過的封包,判斷電路330判斷內層標頭的來源地址是否記錄於記憶單元340的傳送表中。若無,則判斷電路330新增一筆{內層標頭的來源地址,外層隧道標頭的來源地址}的轉送資料,並將其記錄於記憶單元340的傳送表中。最後,傳送電路350將解封裝後的封包T送至網狀網路外部。 The receiving
於一實施例中,考慮網狀網路Mesh外部節點移動或是消失的可能性,選擇性地或較佳地,網路裝置300可以包含一計時器360,計時器360經到一預定時間後表示轉送表中的資訊已經過期,而將此筆過期的記錄刪除。在接收流程時,若轉送表中已有目的地的記錄,則重置此計時器360的計時功能。 In one embodiment, considering the possibility that the external nodes of the mesh network may move or disappear, optionally or preferably, the
雖然計時器360可以在網狀網路Mesh外部節點移動的時候更新轉送表,但因為需要等候計時到期,因此沒辦法及時更新。如果節點移動頻繁或是因應應用層需要必須及時更新,則網狀網路Mesh的節點必須有偵測後端裝置的能力,不限於在傳送流程時主動地學習網狀網路Mesh外部資料的來源地址,或是透過額外的被動溝通機制來偵測後端裝置已連接上網狀網路Mesh內部的節點。當此事件發生,如圖5所示,則網狀網路Mesh內部節點可發出位址更新訊息通知其轉送表中的所有的隧道裝置節點,更新轉送表。舉例而言,當外部節點b1移動至網狀節點a1後方,網狀節點a1偵測到此事件發生,則通知其轉送表中的網狀節點a6,網狀節點a6據此更新b1資訊。 Although the
依據本發明一實施例,能夠應用於智能電表中。更具體而言,智能電表系統中,集中器透過網狀網路傳遞DLT645封包給電表,為了解決網狀網路外部地址(電表地址Meter ID)和網狀網路內部地址(Mesh Address)不一致的問題,採用一對一的對應方法將Meter ID當成網狀網路節點的EUI64使用。 According to an embodiment of the present invention, it can be applied to a smart meter. More specifically, in the smart meter system, the concentrator transmits DLT645 packets to the meter through the mesh network, in order to resolve the inconsistency between the external address of the mesh network (meter ID) and the internal address of the mesh network (Mesh Address) The problem is to use a one-to-one correspondence method to use the Meter ID as the EUI64 of the mesh network node.
本發明一實施例之應用於網狀網路之透通橋接方法具有以下優點至少其中之一。 The transparent bridging method applied to a mesh network according to an embodiment of the present invention has at least one of the following advantages.
1、於網狀網路Mesh中使用隧道技術因此可兼容任何使用者網路。 1. The tunnel technology is used in the Mesh network, so it can be compatible with any user network.
2、以群播的方式傳遞轉送表中還不存在的資料時,可以將網狀網路Mesh中的節點區分成不同的群播群組,建立更彈性的網路配置。 2. When transferring data that does not exist in the forwarding table by group broadcasting, the nodes in the mesh network can be divided into different group broadcasting groups to establish a more flexible network configuration.
3、隧道的建立是根據封包地址的學習,省去了手動設定的麻煩。較佳地,地址學習可以兼容各種協定,例如IPv4、IPv6、Ethernet、Modbus、或DLT645等協定。 3. The establishment of the tunnel is based on the learning of the packet address, eliminating the trouble of manual setting. Preferably, address learning can be compatible with various protocols, such as protocols such as IPv4, IPv6, Ethernet, Modbus, or DLT645.
4、依據本發明一實施例之應用於網狀網路(Mesh Network)之透通橋接(Transparent Bridging)方法,其能夠根據封包裡目地端的地址(例如,MAC)來決定由傳送的路徑。而且,利用地址學習和自動無狀態隧道技術來轉送外部數據。無須額外的配置,且可以自動且簡單地部署節點中的轉送表來取代現有的網路。 4. According to an embodiment of the present invention, a transparent bridging method applied to a mesh network can determine the transmission path according to the destination address (for example, MAC) in the packet. Moreover, the use of address learning and automatic stateless tunneling technology to transfer external data. No additional configuration is required, and the forwarding table in the node can be deployed automatically and simply to replace the existing network.
5、不改變原本網狀路由(mesh routing)的格式和行為,因此可以適用於回應式路由(reactive)或前置式路由(proactive routing)。 5. The format and behavior of the original mesh routing are not changed, so it can be applied to reactive routing (reactive) or proactive routing (proactive routing).
6、透通橋接(Transparent Bridging)是根據封包裡目地端的地址(MAC)來決定由傳送的路徑。於一實施例中,透通橋接(Transparent Bridging)不 需要經過系統內的路由決定傳送的路徑。 6. Transparent bridging (Transparent Bridging) is based on the destination address (MAC) in the packet to determine the route of transmission. In one embodiment, transparent bridging does not need to determine the transmission path through a route in the system.
a1~a6‧‧‧網狀節點 a1~a6‧‧‧Mesh Node
b1~b3‧‧‧外部節點 b1~b3‧‧‧External node
Mesh‧‧‧網狀網路 Mesh‧‧‧Mesh Network
Claims (6)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107114272A TWI731237B (en) | 2018-04-26 | 2018-04-26 | Transparent bridging over mesh network |
| CN201810658650.3A CN110417659A (en) | 2018-04-26 | 2018-06-25 | Transparent bridging method applied to mesh network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107114272A TWI731237B (en) | 2018-04-26 | 2018-04-26 | Transparent bridging over mesh network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201946421A TW201946421A (en) | 2019-12-01 |
| TWI731237B true TWI731237B (en) | 2021-06-21 |
Family
ID=68358005
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW107114272A TWI731237B (en) | 2018-04-26 | 2018-04-26 | Transparent bridging over mesh network |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110417659A (en) |
| TW (1) | TWI731237B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115314463A (en) * | 2021-11-15 | 2022-11-08 | 杭州联芯通半导体有限公司 | Data transmission method of hierarchical 6LoWPAN mesh network |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100303082A1 (en) * | 2006-04-06 | 2010-12-02 | Wood Samuel F | Self-Routed Layer 4 Packet Network System and Method |
| US20130100872A1 (en) * | 2011-10-25 | 2013-04-25 | Xu Zou | Method and System for Preventing Loops in Mesh Networks |
| US8730809B2 (en) * | 2011-01-19 | 2014-05-20 | Hewlett-Packard Development Company, L.P. | Methods for packet forwarding through a communication link of a distributed link aggregation group using mesh tagging |
| US20170034760A1 (en) * | 2014-04-16 | 2017-02-02 | Philips Lighting Holding B.V. | Method and apparatus for reducing the length of a packet storm in a wireless mesh network |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1282342C (en) * | 2004-03-10 | 2006-10-25 | 中兴通讯股份有限公司 | Method for implementing transparent bridging of radio local network bridging |
| ES2485307T3 (en) * | 2005-10-05 | 2014-08-13 | Nortel Networks Limited | Formation of state bridges of supplier links |
| US20070091871A1 (en) * | 2005-10-26 | 2007-04-26 | Intel Corporation | Mesh network portal node and method for bridging in mesh networks |
| CN101616082B (en) * | 2009-07-29 | 2011-09-07 | 杭州华三通信技术有限公司 | Method for message processing in VPLS service network and device |
| CN105471729B (en) * | 2010-06-08 | 2019-05-10 | 安华高科技股份有限公司 | Method and apparatus for processing and/or forwarding packets |
| CN104022936B (en) * | 2014-06-20 | 2018-02-06 | 新华三技术有限公司 | A kind of tunnel establishing method and device |
| US9906430B2 (en) * | 2015-02-25 | 2018-02-27 | Futurewei Technologies, Inc. | Intermediate-system-to-intermediate-system topology-transparent-zone |
| CN105591927B (en) * | 2015-12-25 | 2019-04-30 | 迈普通信技术股份有限公司 | A kind of message forwarding method and routing bridge based on TRILL network |
-
2018
- 2018-04-26 TW TW107114272A patent/TWI731237B/en active
- 2018-06-25 CN CN201810658650.3A patent/CN110417659A/en not_active Withdrawn
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100303082A1 (en) * | 2006-04-06 | 2010-12-02 | Wood Samuel F | Self-Routed Layer 4 Packet Network System and Method |
| US8730809B2 (en) * | 2011-01-19 | 2014-05-20 | Hewlett-Packard Development Company, L.P. | Methods for packet forwarding through a communication link of a distributed link aggregation group using mesh tagging |
| US20130100872A1 (en) * | 2011-10-25 | 2013-04-25 | Xu Zou | Method and System for Preventing Loops in Mesh Networks |
| US20170034760A1 (en) * | 2014-04-16 | 2017-02-02 | Philips Lighting Holding B.V. | Method and apparatus for reducing the length of a packet storm in a wireless mesh network |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201946421A (en) | 2019-12-01 |
| CN110417659A (en) | 2019-11-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Shelby et al. | Neighbor discovery optimization for IPv6 over low-power wireless personal area networks (6LoWPANs) | |
| KR101543448B1 (en) | Topology discovery in a hybrid network | |
| JP3593121B2 (en) | Packet transmission method for mobile Internet | |
| CN105871565B (en) | Method and device for multicast forwarding | |
| JP3667586B2 (en) | Multicast packet transfer device, multicast packet transfer system, and storage medium | |
| JP4971500B2 (en) | Method of operating a mesh-type wireless data network having a plurality of network nodes | |
| Johnson et al. | RFC 4728: The dynamic source routing protocol (DSR) for mobile ad hoc networks for IPv4 | |
| US7310761B2 (en) | Apparatus and method for retransmitting data packets in mobile ad hoc network environment | |
| WO2008109312A2 (en) | Multicast support by mobile routers in a mobile ad hoc network | |
| JPH10243010A (en) | Mobile Host Multicast Communication Method | |
| WO2010139115A1 (en) | Method and device for multiple rendezvous points processing multicast services of mobile multicast source jointly | |
| US7224695B2 (en) | Router and communication network system | |
| WO2018127059A1 (en) | Network bridge between different network communication protocols | |
| CN102143164B (en) | Message relaying method, message relaying device and base station | |
| US20140204728A1 (en) | Node equipment and method for communication | |
| US7733807B2 (en) | Systems and methods for accelerated learning in ring networks | |
| CN102118826B (en) | Multi-hop communication method for nodes of network | |
| TWI731237B (en) | Transparent bridging over mesh network | |
| CN115955431A (en) | A data transmission method, device and storage medium | |
| JP4937270B2 (en) | Communication path optimization method and communication path optimization control apparatus | |
| JP7592899B2 (en) | Method and apparatus for multicast forwarding between autonomous systems | |
| JPH05327720A (en) | LAN node and LAN system | |
| CN116566899A (en) | Routing processing method and device | |
| CN113132222B (en) | Message forwarding method, message forwarding equipment and computer readable storage medium | |
| JP2009077285A (en) | Packet ring network system and method for managing forwarding database |


