TWI493921B - Router, network re-establish system and method - Google Patents
Router, network re-establish system and method Download PDFInfo
- Publication number
- TWI493921B TWI493921B TW101138145A TW101138145A TWI493921B TW I493921 B TWI493921 B TW I493921B TW 101138145 A TW101138145 A TW 101138145A TW 101138145 A TW101138145 A TW 101138145A TW I493921 B TWI493921 B TW I493921B
- Authority
- TW
- Taiwan
- Prior art keywords
- network
- remote device
- network connection
- port
- data packet
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- 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/28—Routing or path finding of packets in data switching networks using route fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
本發明涉及網路連接恢復,特別涉及一種能夠進行網路連接恢復的路由器、網路連接恢復系統及網路連接恢復方法。 The present invention relates to network connection recovery, and in particular, to a router capable of network connection recovery, a network connection recovery system, and a network connection recovery method.
傳統的路由器在埠的網路斷開連接後,對於正在傳輸資料的網路連接是不能進行恢復的,用戶只能重新建立新的連接來繼續傳輸資料,從而給資料傳輸帶來不便。 After a traditional router disconnects from the network, the network connection that is transmitting data cannot be recovered. The user can only re-establish a new connection to continue to transmit data, thereby causing inconvenience to data transmission.
為解決上述問題,本發明提供一種路由器、網路連接恢復系統及網路連接恢復方法,能夠在一埠的網路連接斷開後自動恢復網路連接。 To solve the above problems, the present invention provides a router, a network connection recovery system, and a network connection recovery method, which can automatically restore a network connection after a network connection is disconnected.
一種路由器,用於經由網路連接至遠端設備並與該遠端設備進行相互間的資料傳輸,該路由器包括:一第一網路連接埠,對應一第一網路位址和第一端口號;一第二網路連接埠,對應一第二網路位址和第二埠號;發送/接收模組,用於通過該第一網路連接埠經由網路向該遠端設備發送資料包並接收來自該遠端設備的資料包,其中,每個資料包中均包括源網路位址、源網路埠、目標網路位址以及目標網路埠;偵測模組,用於偵測該路由器的一第一網路連接埠與該遠端設備之間的網路連接是否斷開;以及變更模組,用於在該偵測模組偵測到該路由器的第一網路連接埠與遠 端設備之間的網路連接斷開時,生成一變更資訊資料包,其中,該變更資訊資料包中包括有網路斷開前與該遠端設備通信的第一網路連接埠對應的第一網路位址以及第一端口號,以及變更後需要與該遠端設備進行通信的第二網路連接埠對應的第二網路位址以及第二埠號;該發送/接收模組還用於將該變更資訊包通過第二網路連接埠發送至該遠端設備,使得該遠端設備可以根據該變更資訊資料包更改為與該第二網路連接埠進行相互間的資料傳輸。 A router is configured to connect to and transmit data to and from a remote device via a network, the router comprising: a first network port corresponding to a first network address and a first port a second network port corresponding to a second network address and a second port; a transmitting/receiving module configured to send a data packet to the remote device via the network through the first network port And receiving data packets from the remote device, wherein each data packet includes a source network address, a source network port, a target network address, and a target network port; the detection module is configured to detect Detecting whether a network connection between the first network connection and the remote device of the router is disconnected; and changing a module for detecting the first network connection of the router in the detection module埠和远 When the network connection between the end devices is disconnected, a change information package is generated, wherein the change information package includes a first network connection corresponding to the remote device before the network disconnects. a network address and a first port number, and a second network address and a second nickname corresponding to the second network connection that needs to communicate with the remote device after the change; the transmitting/receiving module further And sending the change information packet to the remote device by using the second network connection, so that the remote device can change to the second network connection to perform data transmission with each other according to the change information package.
一種網路連接恢復系統,該網路連接恢復系統應用於一路由器上,其中,該路由器包括一第一網路連接埠和一第二網路連接埠,該第一網路連接埠對應第一網路位址和第一端口號,該第二網路連接埠對應第二網路位址和第二埠號,該網路連接恢復系統包括:發送/接收模組,用於通過該第一網路連接埠經由網路向該遠端設備發送資料包並接收來自該遠端設備的資料包,其中,每個資料包中均包括源網路位址、源網路埠、目標網路位址以及目標網路埠;偵測模組,用於偵測該路由器的一第一網路連接埠與該遠端設備之間的網路連接是否斷開;以及變更模組,用於在該偵測模組偵測到該路由器的第一網路連接埠與遠端設備之間的網路連接斷開時,生成一變更資訊資料包,其中,該變更資訊資料包中包括有網路斷開前與該遠端設備通信的第一網路連接埠對應的第一網路位址以及第一端口號,以及變更後需要與該遠端設備進行通信的第二網路連接埠對應的第二網路位址以及第二埠號;該發送/接收模組還用於將該變更資訊包通過第二網路埠發送至該遠端設備,使得該遠端設備可以根據該變更資訊資料包更改為與該第二網路埠進行相互間的資料傳輸。 A network connection recovery system, the network connection recovery system is applied to a router, wherein the router includes a first network connection port and a second network port, the first network port corresponding to the first a network address and a first port number, the second network port corresponding to the second network address and the second port, the network connection recovery system comprising: a sending/receiving module, configured to pass the first The network connection sends a data packet to the remote device via the network and receives a data packet from the remote device, where each data packet includes a source network address, a source network port, and a target network address. And a target network, the detection module, configured to detect whether a network connection between the first network connection and the remote device of the router is disconnected; and a change module for detecting The test module detects that the first network connection of the router is disconnected from the remote device, and generates a change information package, wherein the change information package includes a network disconnection. First network connection pair communicating with the remote device a first network address and a first port number, and a second network address and a second nickname corresponding to the second network connection that needs to communicate with the remote device after the change; the sending/receiving The module is further configured to send the change information packet to the remote device by using the second network, so that the remote device can be changed to perform data transmission with the second network port according to the change information package. .
一種網路連接恢復方法,應用於一路由器上,該網路連接恢復方法包括步驟:通過第一網路連接埠經由網路向一遠端設備發送資料包並接收來自該遠端設備的資料包,其中,每個資料包中均包括需要傳輸的資料資訊以及源網路位址、源網路埠和目標網路位址以及目標網路埠;偵測該第一網路連接埠與該遠端設備之間的網路連接是否斷開;當偵測到該第一網路連接埠與該遠端設備之間的網路連接已經斷開時,生成一變更資訊資料包,其中該變更資訊資料包中包括有網路斷開前與該遠端設備通信的第一網路連接埠對應的第一網路位址以及第一端口號,以及變更後需要與該遠端設備進行通信的第二網路連接埠對應的第二網路位址以及第二埠號;將該變更資訊資料包通過該第二網路連接埠發送至該遠端設備,使得該遠端設備可以根據該變更資訊資料包更改為與該第二網路埠進行相互間的資料傳輸。 A network connection recovery method is applied to a router. The network connection recovery method includes the steps of: sending a data packet to a remote device via a network and receiving a data packet from the remote device through a first network connection, Each of the data packets includes data information to be transmitted, a source network address, a source network port and a target network address, and a target network port; detecting the first network port and the remote end Whether the network connection between the devices is disconnected; when it is detected that the network connection between the first network connection and the remote device has been disconnected, generating a change information package, wherein the change information material The packet includes a first network address corresponding to the first network connection that communicates with the remote device before the network is disconnected, and a first port number, and a second communication that needs to communicate with the remote device after the change. a second network address and a second nickname corresponding to the network connection; the change information package is sent to the remote device through the second network connection, so that the remote device can change the information according to the information Package change Conduct data transmission between each other and the second network port.
本發明在路由器的第一網路連接埠與遠端設備之間的網路連接斷開時,能夠自動通過第二網路連接埠續傳該第一網路連接埠傳輸的資料,從而及時、自動地恢復斷開的網路連接。 The invention can automatically transmit the data transmitted by the first network connection through the second network connection when the network connection between the first network connection and the remote device of the router is disconnected, thereby timely, Automatically restore a disconnected network connection.
10‧‧‧路由器 10‧‧‧ router
100‧‧‧網路連接恢復系統 100‧‧‧Network Connection Recovery System
101‧‧‧發送/接收模組 101‧‧‧Send/receive module
102‧‧‧偵測模組 102‧‧‧Detection module
103‧‧‧變更模組 103‧‧‧Change module
200‧‧‧記憶體 200‧‧‧ memory
300‧‧‧處理器 300‧‧‧ processor
400‧‧‧第一網路連接埠 400‧‧‧First network connection埠
500‧‧‧第二網路連接埠 500‧‧‧Second Internet Connection埠
20‧‧‧遠端設備 20‧‧‧ Remote equipment
30‧‧‧網路 30‧‧‧Network
圖1係本發明一實施方式中網路連接架構示意圖。 FIG. 1 is a schematic diagram of a network connection architecture in an embodiment of the present invention.
圖2係本發明一實施方式中遠端設備與該路由器通過網路進行資料傳輸的網路示意圖。 FIG. 2 is a schematic diagram of a network in which a remote device and a router transmit data through a network according to an embodiment of the present invention.
圖3係本發明一實施方式中網路連接恢復方法流程圖。 FIG. 3 is a flowchart of a method for restoring a network connection according to an embodiment of the present invention.
下面結合附圖,對本發明中的路由器、網路連接恢復系統及網路連接恢復方法作進一步的詳細描述。 The router, the network connection recovery system and the network connection recovery method in the present invention are further described in detail below with reference to the accompanying drawings.
請參考圖1和圖2,在本發明一較佳實施方式中,一網路連接恢復系統100應用於一多口路由器10中。該多口路由器10包括至少兩個物理的網路連接埠,該路由器10通過該網路連接埠經由網路30與至少一個遠端設備20連接並進行相互間的資料傳輸。 Referring to FIG. 1 and FIG. 2, in a preferred embodiment of the present invention, a network connection recovery system 100 is applied to a multi-port router 10. The multi-port router 10 includes at least two physical network ports through which the router 10 is connected to at least one remote device 20 via the network 30 and performs data transmission between each other.
在本實施方式中,該網路30為廣域網WAN(wide area network)。該多口路由器10包括一記憶體200,一處理器300以及兩個物理上的廣域網連接埠,該兩個連接埠分別為第一網路連接埠400和第二網路連接埠500。該第一網路連接埠400對應一第一端口號以及第一網路位址,該第二網路連接埠500對應一第二埠號以及第二網路位址。該遠端設備20包括一第三埠201,該第三埠201對應一第三埠號以及第三網路位址。該多口路由器10通過該第一網路連接埠400或該第二網路連接埠500經網路30與該遠端設備20連接。 In this embodiment, the network 30 is a wide area network (WAN). The multi-port router 10 includes a memory 200, a processor 300, and two physical wide area network ports, which are a first network port 400 and a second network port 500, respectively. The first network port 400 corresponds to a first port number and a first network address, and the second network port 500 corresponds to a second port and a second network address. The remote device 20 includes a third port 201 corresponding to a third port and a third network address. The multi-port router 10 is connected to the remote device 20 via the network 30 via the first network port 400 or the second network port 500.
該網路連接恢復系統100包括一發送/接收模組101,一偵測模組102,以及一變更模組103。本發明中所稱的模組是指一種能夠被路由器10的處理器300所執行並且能夠完成特定功能的一系列電腦程式塊,其存儲於該多口路由器10中的記憶體200中。 The network connection recovery system 100 includes a transmission/reception module 101, a detection module 102, and a change module 103. The module referred to in the present invention refers to a series of computer blocks that can be executed by the processor 300 of the router 10 and that can perform a specific function, and are stored in the memory 200 in the multi-port router 10.
該發送/接收模組101用於通過該路由器10的第一網路連接埠400或第二網路連接埠500經由網路30向該遠端設備20發送資料包並接收來自該遠端設備20的資料包,其中,每個資料包中均包括需要傳輸的資料資訊、源網路位址、源網路埠和目標網路位址以及目標網路埠,該源網路位址及源網路埠用於標示發送方發送該資料包的埠,該目標網路位址及目標網路埠用於標示接收方接收該資料包的埠。在本實施方式中,該發送/接收模組101首先僅通過 該第一網路連接埠400與該遠端設備20進行通信。該第一網路連接埠400向該遠端設備20發送第一資料包,其中該第一資料包中的源網路位址為第一網路連接埠400對應的第一網路位址,源網路埠為該第一網路連接埠400,目標網路位址為該遠端設備20對應的第三網路位址,目標網路埠為該遠端設備20對應的第三埠。當該遠端設備20接收到來自該第一網路連接埠400的該第一資料包後,獲取該第一資料包中的源網路位址及源網路埠,然後根據該第一資料包生成一第二資料包,並將該第二資料包通過該網路30發送至該第一網路連接埠400,其中該第二資料包中源網路位址為該遠端設備20中第三埠201對應的第三網路位址,源網路埠為該第三埠,目標網路位址為該第一網路連接埠400對應的第一網路位址,目標網路埠為該第一網路連接埠400對應的第一端口號。該發送/接收模組101通過該第一網路連接埠400接收該第二資料包,如此,該第一網路連接埠400與該遠端設備20實現了相互間的資料傳輸。 The sending/receiving module 101 is configured to send a data packet to the remote device 20 via the network 30 through the first network port 400 or the second network port 500 of the router 10 and receive the remote device 20 from the remote device 20 Packets, wherein each packet includes information about the data to be transmitted, the source network address, the source network and the destination network address, and the target network, the source network address and the source network. The route is used to indicate the sender of the packet, and the target network address and the target network are used to indicate the recipient's receipt of the packet. In this embodiment, the transmitting/receiving module 101 first passes only The first network port 400 communicates with the remote device 20. The first network port 400 sends a first data packet to the remote device 20, where the source network address in the first data packet is a first network address corresponding to the first network port 400. The source network port is the first network port 400, the target network address is the third network address corresponding to the remote device 20, and the target network port is the third port corresponding to the remote device 20. After the remote device 20 receives the first data packet from the first network port 400, acquiring the source network address and the source network in the first data packet, and then according to the first data The packet generates a second data packet, and the second data packet is sent to the first network port 400 through the network 30, where the source network address in the second data packet is in the remote device 20 The third network address corresponding to the third port 201, the source network port is the third port, and the target network address is the first network address corresponding to the first network port 400, and the target network is The first port number corresponding to the first network connection port 400. The sending/receiving module 101 receives the second data packet through the first network port 400, so that the first network port 400 and the remote device 20 implement mutual data transmission.
該偵測模組102用於偵測該第一網路連接埠400與該遠端設備20的第三埠201之間的網路連接是否斷開。在本實施方式中,該偵測模組102通過互聯網控制報文協議ICMP(Internet Control Message Protocol)來偵測該第一網路連接埠400與該遠端設備20的網路連接是否斷開。在另一實施方式中,該偵測模組102還可以通過其他網路傳輸協定來偵測該第一網路連接埠400與該遠端設備20的網路連接是否斷開,例如該偵測模組102每間隔一預定時間(例如1分鐘)通過ping指令偵測該第一網路連接埠400與該遠端設備20的網路連接是否斷開。可以理解的是,該偵測模組102還可以根據互聯網中其他的錯誤返回方式判斷來判斷該第一 網路連接埠400與該遠端設備20的網路連接是否斷開。當該偵測模組102偵測到該第一網路連接埠與遠端設備20之間的網路連接沒有斷開時,該發送/接收模組101繼續通過該第一網路連接埠400與該遠端設備以上述方式進行資料傳輸。 The detection module 102 is configured to detect whether the network connection between the first network port 400 and the third port 201 of the remote device 20 is disconnected. In this embodiment, the detection module 102 detects whether the network connection between the first network port 400 and the remote device 20 is disconnected through an Internet Control Message Protocol (ICMP). In another embodiment, the detection module 102 can detect, by other network transmission protocols, whether the network connection between the first network port 400 and the remote device 20 is disconnected, for example, the detection. The module 102 detects whether the network connection between the first network port 400 and the remote device 20 is disconnected by a ping command every predetermined time interval (for example, 1 minute). It can be understood that the detection module 102 can also determine the first according to other error return manners in the Internet. Whether the network connection 400 and the remote device 20's network connection are disconnected. When the detecting module 102 detects that the network connection between the first network port and the remote device 20 is not disconnected, the sending/receiving module 101 continues to pass through the first network port 400. Data transmission with the remote device in the above manner.
當該偵測模組102偵測到第一網路連接埠400與該遠端設備20之間的網路連接斷開時,該變更模組103獲取該第一網路連接埠400在網路連接斷開時最後一次收、發的資料包,並生成一變更資訊資料包,用於通知該遠端設備20將該第一網路連接埠400傳送的資料資訊通過該第二網路連接埠500繼續傳送,其中,該變更資訊資料包中的源網路位址為該第二網路連接埠500對應的第二網路位址,該源網路埠為該第二埠號,目標網路位址為該遠端設備的第三埠201對應的第三網路位址,目標網路埠為該遠端設備20的第三埠號。該變更資訊資料包中還包括有網路斷開前與該遠端設備20通信的第一網路連接埠400對應的網路位址以及埠號(即變更前的網路位址及網路埠號)以及變更後與該遠端設備20進行通信的第二網路連接埠500對應的網路位址以及埠號。 When the detecting module 102 detects that the network connection between the first network port 400 and the remote device 20 is disconnected, the change module 103 acquires the first network port 400 in the network. The last time the data packet is received and sent when the connection is disconnected, and a change information package is generated for notifying the remote device 20 to connect the data information transmitted by the first network port 400 to the second network port. The 500 continues to transmit, wherein the source network address in the change information package is the second network address corresponding to the second network connection 埠500, and the source network is the second nickname, the target network The path address is the third network address corresponding to the third port 201 of the remote device, and the target network port is the third port number of the remote device 20. The change information package further includes a network address and a nickname corresponding to the first network connection 埠400 that communicates with the remote device 20 before the network is disconnected (ie, the network address and network before the change) The nickname) and the network address and nickname corresponding to the second network port 500 communicating with the remote device 20 after the change.
該發送/接收模組101將該變更資訊資料包通過該第二網路連接埠500發送至該遠端設備20。該遠端設備20接收到該變更資訊資料包後,讀取該變更資訊資料包中變更前的網路位址及埠號、網路斷開前第一網路連接埠400最後一次收、發的資料包對應的序號以及變更後的網路埠對應的網路位址及埠號,然後根據上述讀取到的資訊將與第一網路連接埠400的資料通信變更為與第二網路連接埠500的資料通信。生成一第三資料包並將該第三資料包發送至該第二網路連接埠500,其中在本實施方式中,該遠端設備 20與該路由器10進行資料傳輸時,每個資料包中均包含一唯一的序號,當該偵測模組102偵測到該遠端設備20與該第一網路連接埠400之間的網路連接斷開時,該變更模組103獲取該第一網路連接埠400在網路連接斷開前最後一次收、發的資料包資訊,並根據該網路連接斷開之前該第一網路連接埠400最後一次收、發的資料包資訊生成該變更資訊資料包,其中該變更資訊資料包中還包括該第一網路連接埠400與遠端設備20的網路連接斷開時最後一次收、發資料包對應的序號,當該遠端設備20更改為與該第二網路連接埠500進行資料傳輸時,該遠端設備20發送至該第二網路連接埠500的資料包為接續該第一網路連接埠400斷開連接之前最後一次接收的資料包,具體地,該遠端設備20接收到該變更資訊資料包後,生成一第三資料包,該第三資料包中的源網路位址為該遠端設備20的第三埠201對應的網路位址,源網路埠為該第三埠號,目標網路位址為該第二網路連接埠500對應的網路位址,目標網路埠為該第二網路連接埠500的埠號,該第三數據包中的資料資訊為接續該第一網路連接埠400斷開前最後一次接收到的資料包中的資料資訊。從而,該發送/接收模組101通過該第二網路連接埠500替代該斷開的第一網路連接埠400繼續發送/接收資料,使得第一網路連接埠400的資料傳輸斷開時可以即時地、自動地切換至第二網路連接埠500,不影響到用戶的使用。 The transmitting/receiving module 101 sends the change information package to the remote device 20 through the second network port 500. After receiving the change information package, the remote device 20 reads the network address and nickname before the change in the change information package, and the first network connection 埠400 before the network disconnects. The serial number corresponding to the data package and the network address and nickname corresponding to the changed network ,, and then changing the data communication with the first network connection 埠400 to the second network according to the information read above. Data communication connected to 埠500. Generating a third data packet and sending the third data packet to the second network port 500, wherein in the embodiment, the remote device When the data transmission is performed with the router 10, each data packet includes a unique serial number. When the detection module 102 detects the network between the remote device 20 and the first network connection 400 When the road connection is disconnected, the change module 103 obtains the last packet information received and sent by the first network port 400 before the network connection is disconnected, and the first network is disconnected according to the network connection. The last information received and sent by the road connection 400 generates the change information package, wherein the change information package further includes the last connection between the first network port 400 and the remote device 20. The serial number corresponding to the data packet sent and sent by the remote device 20 to the data packet of the second network port 500 when the remote device 20 changes to perform data transmission with the second network port 500 To receive the last received data packet before the first network connection 埠400 disconnects, specifically, after receiving the change information data package, the remote device 20 generates a third data package, the third data package. The source network address in the remote device 20 The network address corresponding to the third port 201, the source network port is the third port number, and the target network address is the network address corresponding to the second network port 500, and the target network port is the The second network is connected to the nickname of the 埠500, and the data information in the third data packet is the data information in the last received data packet before the disconnection of the first network connection 埠400. Therefore, the transmitting/receiving module 101 continues to transmit/receive data through the second network port 500 instead of the disconnected first network port 400, so that the data transmission of the first network port 400 is disconnected. It is possible to switch to the second network port 500 immediately and automatically without affecting the user's use.
圖3為本發明一實施方式中網路連接恢復方法流程圖。 FIG. 3 is a flowchart of a method for restoring a network connection according to an embodiment of the present invention.
步驟S301:該發送/接收模組101用於通過第一網路連接埠400經由該網路30向該遠端設備20發送資料包並接收來自該遠端設備20的資料包,其中,每個資料包中均包括需要傳輸的資料資訊、源 網路位址、源網路埠和目標網路位址以及目標網路埠,該源網路位址及源網路埠用於標示發送方發送該資料包的埠,該目標網路位址及目標網路埠用於標示接收方接收該資料包的埠。在本實施方式中,每個資料包均對應一唯一的序號。 Step S301: The sending/receiving module 101 is configured to send a data packet to the remote device 20 via the network 30 through the first network port 400 and receive a data packet from the remote device 20, where each The data package includes the information and source of the data to be transmitted. The network address, the source network port and the target network address, and the target network port, the source network address and the source network port are used to indicate the sender sending the data packet, the target network address And the target network is used to indicate the recipient's receipt of the packet. In this embodiment, each data packet corresponds to a unique serial number.
步驟S302:該偵測模組102偵測該第一網路連接埠400與該遠端設備20的第三埠201之間的網路連接是否斷開,若否,則返回步驟S301,若是,則執行步驟S303。 Step S302: The detecting module 102 detects whether the network connection between the first network port 400 and the third port 201 of the remote device 20 is disconnected. If not, the process returns to step S301, and if so, Then step S303 is performed.
步驟S303,該變更模組103生成一變更資訊資料包,用於通知該遠端設備20將該第一網路連接埠400傳送的資料資訊通過該第二網路連接埠500繼續傳送,其中,該變更資訊資料包中包括有網路斷開前與該遠端設備20通信的第一網路連接埠400對應的網路位址以及埠號(即變更前的網路位址及網路埠號)和變更後與該遠端設備20進行通信的第二網路連接埠500對應的網路位址以及埠號。在本實施方式中,該變更模組103在生成變更資訊資料包之前,先獲取該第一網路連接埠的網路連接斷開之前最後一次收、發的資料包,再根據該獲取到的資料包的資訊生成該變更資訊資料包,其中,該變更資料包中還包括該第一該第一網路連接埠的網路連接斷開之前最後一次收、發的資料包對應的序號。 In step S303, the change module 103 generates a change information package for informing the remote device 20 to continue to transmit the data information transmitted by the first network port 400 through the second network port 500. The change information package includes a network address and a nickname corresponding to the first network port 埠400 that communicates with the remote device 20 before the network is disconnected (ie, the network address and network before the change). No.) and a network address and an nickname corresponding to the second network port 500 communicating with the remote device 20 after the change. In the present embodiment, before the change of the information package is generated, the change module 103 acquires the last received and sent data packet before the network connection of the first network connection is disconnected, and according to the obtained The information of the data packet generates the change information package, wherein the change package further includes a sequence number corresponding to the last received and sent data packet before the network connection of the first first network port is disconnected.
步驟S304,該發送/接收模組101將該變更資訊資料包通過該第二網路連接埠500發送至該遠端設備20,使得該遠端設備20可以根據該變更資訊資料包更改為與該第二網路連接埠500進行相互間的資料傳輸。 Step S304, the sending/receiving module 101 sends the change information data package to the remote device 20 through the second network port 500, so that the remote device 20 can change to the same according to the change information package. The second network port 500 performs data transmission between each other.
步驟S305:該發送/接收模組101通過該第二網路連接埠500經由該網路30向該遠端設備20發送資料包並接收來自該遠端設備20的 資料包。從而,該發送/接收模組101通過該第二網路連接埠500替代以及斷開的第一網路連接埠400繼續發送/接收資料,使得第一網路連接埠400的資料傳輸斷開時可以即時地、自動地切換至第二網路連接埠,不會影響到用戶。在本實施方式中,當該遠端設備20更改為與第二網路連接埠500進行相互間的資料傳輸時,該遠端設備20發送至該第二網路連接埠500的資料包序號接續第一網路連接埠400斷開連接前的最後一次接收到的資料包序號,即該遠端設備20向第二網路連接埠500發送的資料資訊為接續該第一網路連接埠400斷開前最後一次接收到的資料包中的資料資訊。 Step S305: The sending/receiving module 101 sends a data packet to the remote device 20 via the network 30 through the second network port 500 and receives the data packet from the remote device 20. Information package. Therefore, the transmitting/receiving module 101 continues to transmit/receive data through the second network port 500 instead of and disconnected from the first network port 400, so that the data transmission of the first network port 400 is disconnected. You can switch to the second network connection instantly and automatically without affecting the user. In this embodiment, when the remote device 20 is changed to perform data transmission with the second network port 500, the data packet number sent by the remote device 20 to the second network port 500 is continued. The first network packet 埠400 disconnects the last received packet sequence number, that is, the data information sent by the remote device 20 to the second network port 500 is connected to the first network port. The information in the last received packet.
10‧‧‧路由器 10‧‧‧ router
400‧‧‧第一網路連接埠 400‧‧‧First network connection埠
500‧‧‧第二網路連接埠 500‧‧‧Second Internet Connection埠
20‧‧‧遠端設備 20‧‧‧ Remote equipment
30‧‧‧網路 30‧‧‧Network
Claims (6)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210351792.8A CN103685043A (en) | 2012-09-19 | 2012-09-19 | Router, network connection recovery system and network connection recovery method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201415833A TW201415833A (en) | 2014-04-16 |
TWI493921B true TWI493921B (en) | 2015-07-21 |
Family
ID=50274356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101138145A TWI493921B (en) | 2012-09-19 | 2012-10-16 | Router, network re-establish system and method |
Country Status (3)
Country | Link |
---|---|
US (1) | US20140078893A1 (en) |
CN (1) | CN103685043A (en) |
TW (1) | TWI493921B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099928B (en) * | 2014-05-23 | 2019-01-25 | 国基电子(上海)有限公司 | Dual-stacker router and its method for realizing bandwidth sharing |
CN106294791B (en) * | 2016-08-15 | 2019-09-13 | 上海新炬网络技术有限公司 | A kind of database port change method of transparence |
CN115550419A (en) * | 2022-09-05 | 2022-12-30 | Oppo广东移动通信有限公司 | Information transmission method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848769A (en) * | 2005-04-12 | 2006-10-18 | 富士通株式会社 | Distribution-tuning mechanism for link aggregation group management |
CN101621819A (en) * | 2009-07-24 | 2010-01-06 | 中兴通讯股份有限公司 | Information synchronization detection method for active-standby switching interface module, network element system and link |
CN101692652A (en) * | 2009-09-15 | 2010-04-07 | 杭州华三通信技术有限公司 | Method for preventing interrupt of traffics in aggregation link |
CN101277209B (en) * | 2008-05-14 | 2010-07-14 | 山东大学 | Reconnection technique for network flow medium transmission disconnection |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7486611B1 (en) * | 2002-05-20 | 2009-02-03 | Cisco Technology, Inc. | Standby router protocol using optimal route metric |
US7639614B2 (en) * | 2005-04-12 | 2009-12-29 | Fujitsu Limited | Distribution-tuning mechanism for link aggregation group management |
CN101022451B (en) * | 2006-02-14 | 2014-07-23 | 杭州华三通信技术有限公司 | Connection state synchronizing method in data communication and applied communication node thereof |
CN102196055B (en) * | 2010-03-12 | 2014-02-05 | 正文科技股份有限公司 | Network interface selection method and network device |
US9313092B2 (en) * | 2012-03-02 | 2016-04-12 | Pismo Labs Technology Limited | Method and apparatus for managing identifiers of a multiple WANS network device |
-
2012
- 2012-09-19 CN CN201210351792.8A patent/CN103685043A/en active Pending
- 2012-10-16 TW TW101138145A patent/TWI493921B/en active
-
2013
- 2013-04-16 US US13/863,395 patent/US20140078893A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848769A (en) * | 2005-04-12 | 2006-10-18 | 富士通株式会社 | Distribution-tuning mechanism for link aggregation group management |
CN101277209B (en) * | 2008-05-14 | 2010-07-14 | 山东大学 | Reconnection technique for network flow medium transmission disconnection |
CN101621819A (en) * | 2009-07-24 | 2010-01-06 | 中兴通讯股份有限公司 | Information synchronization detection method for active-standby switching interface module, network element system and link |
CN101692652A (en) * | 2009-09-15 | 2010-04-07 | 杭州华三通信技术有限公司 | Method for preventing interrupt of traffics in aggregation link |
Also Published As
Publication number | Publication date |
---|---|
US20140078893A1 (en) | 2014-03-20 |
TW201415833A (en) | 2014-04-16 |
CN103685043A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103401726B (en) | Network path detection method and device, system | |
US20140254600A1 (en) | Transmission system, transmission apparatus, and transmission method | |
US20150188814A1 (en) | System, method and apparatus providing bi-directional forwarding detection support to unnumbered ip interfaces | |
WO2016106743A1 (en) | Method, device and system for performing bidirectional forwarding detection on aggregated link | |
EP2696542A1 (en) | Method, ToR switch, and system for implementing protection switchover based on TRILL network | |
CN103475655A (en) | Method for achieving IPSecVPN main link and backup link dynamic switching | |
CN113411260A (en) | Method and device for sending data message in IPv6 network | |
WO2016086890A1 (en) | Method and device for detecting connectivity | |
TWI493921B (en) | Router, network re-establish system and method | |
WO2016037443A1 (en) | Temporary channel establishment method, device, system and computer storage medium | |
JP2012227636A5 (en) | ||
CN103368844B (en) | Message processing method and LSR in MPLS network | |
WO2015172745A1 (en) | Bidirectional forwarding detection | |
WO2013189414A2 (en) | Automatic network topology acquisition method and system, and network query and management system | |
CN107786386A (en) | To for verifying that the two-way converting of multicast connection detects(BFD)The selectivity transmission of message | |
JP6222367B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
CN104580346A (en) | Data transmission method and device | |
US7626937B2 (en) | System and method for network connection detection | |
JP5558436B2 (en) | Network system and network failure avoidance method | |
CN105703967A (en) | Method and apparatus for detecting label switching path connectivity | |
WO2016057038A1 (en) | A transmitter that does not resend a packet despite receipt of a message to resend the packet | |
KR20180100935A (en) | A method for switching communication line in ring network | |
JP5999461B2 (en) | Method, apparatus, and system for obtaining an internet protocol address | |
WO2016086693A1 (en) | Message transmission method, backbone switch and access switch | |
CN104683023B (en) | Method, equipment and the system of fast quick-recovery after a kind of FCoE network packet loss |