TWI813159B - System for detecting connection status of network devices and status transmission method thereof - Google Patents

System for detecting connection status of network devices and status transmission method thereof Download PDF

Info

Publication number
TWI813159B
TWI813159B TW111104009A TW111104009A TWI813159B TW I813159 B TWI813159 B TW I813159B TW 111104009 A TW111104009 A TW 111104009A TW 111104009 A TW111104009 A TW 111104009A TW I813159 B TWI813159 B TW I813159B
Authority
TW
Taiwan
Prior art keywords
network
module
transmission
conversion module
status
Prior art date
Application number
TW111104009A
Other languages
Chinese (zh)
Other versions
TW202332300A (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 TW111104009A priority Critical patent/TWI813159B/en
Publication of TW202332300A publication Critical patent/TW202332300A/en
Application granted granted Critical
Publication of TWI813159B publication Critical patent/TWI813159B/en

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is to provide a system for detecting connection status of network devices and status transmission method thereof, which is the status data corresponded to the connection status corresponded to a network conversion device or a network bridge module to be filled into a reserved block or an optional block of a network packet. Hereby, the invention is to provide a host to detect the connection status between network devices on transmission paths of a remote module according to corresponded status data.

Description

網路裝置連線狀態之偵測系統及其方法Network device connection status detection system and method thereof

本發明係有關一種偵測系統及其方法,尤其是一種網路裝置連線狀態之偵測系統及其方法。 The present invention relates to a detection system and a method thereof, in particular to a detection system and method for the connection status of a network device.

一般來說,網路上各端點上的網路裝置藉由鏈(Link)、節點(Node)或網路交換器(Switch)互相連接。隨著網路裝置相互連接而形成大大小小的網路通路分布即為網路拓樸。常見的網路拓樸有網狀(Mesh)、星狀(Star)、環狀(Ring)、樹狀(Tree)及匯流排(Bus)等。而,隨著網路蓬勃發展至今,各項遠端模組之應用造成需要部屬人員進行傳統的網路管理,即網管人員透過網路管理系統或網路管理軟體對大規模電腦網路和電信網路進行的維護和管理,因此網管人員需要同時監控並管理許多來自於不同網路端點之狀態資訊,如,網路裝置之運作狀態、端點與端點之間的網路裝置之實際連接情況,甚至是各個端點上之網路裝置對應的連接埠號資訊等等。 Generally speaking, network devices on each endpoint on the network are connected to each other through links, nodes or switches. As network devices are connected to each other, the distribution of large and small network paths is called network topology. Common network topologies include Mesh, Star, Ring, Tree and Bus. However, with the rapid development of the Internet, the application of various remote modules requires subordinate personnel to perform traditional network management, that is, network management personnel use network management systems or network management software to manage large-scale computer networks and telecommunications. Network maintenance and management, so network administrators need to monitor and manage a lot of status information from different network endpoints at the same time, such as the operating status of network devices and the actual status of network devices between endpoints. The connection status, and even the connection port number information corresponding to the network device on each endpoint, etc.

物聯網(Internet of Things,IoT)是一種計算機裝置透過網路傳輸協定而與機械裝置或數位裝置相互串聯,其中機械裝置或數位裝置,每一個物聯網裝置具備通用唯一辨識碼(UID)並具有通過網路傳輸數據的能力,因此物聯網裝置可即時提供偵測資料至控制中心,亦可依據控制中心所提供之控制訊號或資料而驅動對應之遠端模組執行對應之動作,因而將現實世界中的所有機械操作或觀察資料轉為數位化資料,導致現今被廣泛應用,例如:物流管理、路燈控制。因此,物聯網對於網路之故障排除與維修非常看重。 The Internet of Things (IoT) is a computer device that is connected in series with a mechanical device or digital device through a network transmission protocol. Among the mechanical devices or digital devices, each IoT device has a universal unique identifier (UID) and has With the ability to transmit data through the network, the IoT device can provide detection data to the control center in real time, and can also drive the corresponding remote module to perform corresponding actions based on the control signals or data provided by the control center, thus bringing reality All mechanical operation or observation data in the world have been converted into digital data, which has led to widespread applications today, such as logistics management and street light control. Therefore, the Internet of Things attaches great importance to network troubleshooting and maintenance.

雖然,現有遠端模組可藉由使用故障轉移功能(link fault pass through)傳遞網路故障狀態至具網路管理功能之網路橋接模組,接續由主機透過網路管理系統取得該網路故障狀態,以得知網路橋接模組至遠端模組之網路區段發生網路故障,例如:連線失敗或網速異常。 Although, the existing remote module can pass the network fault status to the network bridge module with network management function by using the failover function (link fault pass through), and then the host can obtain the network through the network management system. Fault status to know that there is a network fault in the network section from the network bridge module to the remote module, such as connection failure or abnormal network speed.

然而,遠端模組至網路橋接模組之間經至少一網路模組連接時,網路橋結模組為能藉由故障轉移功能提供精確之網路故障狀態,也就是,未能提供遠端模組至網路橋接模組之間哪一個傳輸路徑連線失敗,需要網管人員一一排查故障原因,因而造成網管人員維修困難。 However, when the remote module is connected to the network bridge module through at least one network module, the network bridge module cannot provide accurate network fault status through the failover function, that is, it cannot provide Which transmission path connection fails between the remote module and the network bridge module requires network management personnel to troubleshoot the cause of the failure one by one, thus making maintenance difficult for network management personnel.

基於上述之問題,本發明提供一種網路裝置連線狀態之偵測系統及其方法,其藉由資料封包中的未使用區塊寫入對應之狀態參數,因而用以偵測遠端模組至網路橋接模組之間的連線狀態,藉此,判斷遠端模組至網路橋接模組之間哪一個傳輸路徑斷線,以讓網管人員方便於管理並修繕連線失敗之傳輸路徑。 Based on the above problems, the present invention provides a system and method for detecting the connection status of a network device, which writes corresponding status parameters through unused blocks in data packets, thereby detecting remote modules. The connection status between the remote module and the network bridge module can be used to determine which transmission path between the remote module and the network bridge module is disconnected, so that network administrators can easily manage and repair failed transmissions. path.

本發明之一目的,提供一種網路裝置連線狀態之偵測系統及其方法,其藉由遠端模組至網路橋接模組之間的連線狀態填入對應之狀態參數於資料封包之未使用區塊中,用以提供一遠端模組之傳輸路徑的連線狀態之偵測。 One object of the present invention is to provide a system and method for detecting the connection status of a network device, which fills in the corresponding status parameters in the data packet through the connection status between the remote module and the network bridge module. The unused block is used to detect the connection status of the transmission path of a remote module.

為達上述之目的,本發明揭示了一種網路裝置連線狀態之偵測方法,其先由一網路轉換模組偵測該網路轉換模組之一第一連接埠經一第一傳輸路徑連接一遠端模組的連線狀態,並對應產生一第一狀態參數,接續由該網路轉換模組將該第一狀態參數填入一第一資料封包之一未使用區塊,接著將該第一資料封包經一第二傳輸埠傳送至一網路橋接模組;然後,該網路橋接模組存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經一第二傳輸路徑連接該網路轉換模組的連線狀態,並對應產生一第二狀態參數,並將該第二狀態參數填入一第二資料封包之一未使用區塊;當該第一狀態參數為否或不明時,該第二資料封包對應於該第一傳輸路徑斷線;當該第二狀態參數為否或不明時,該第二資 料封包對應於該第一傳輸路徑與該第二傳輸路徑斷線。如此本發明既可自動化偵測網路模組之間的傳輸路徑是否斷線,更無須將該網路轉換模組設置為網管型裝置,以降低成本。 In order to achieve the above purpose, the present invention discloses a method for detecting the connection status of a network device, which first uses a network conversion module to detect a first connection port of the network conversion module through a first transmission The path connects the connection status of a remote module and generates a first status parameter correspondingly. The network conversion module then fills the first status parameter into an unused block of a first data packet, and then The first data packet is transmitted to a network bridge module through a second transmission port; then, the network bridge module accesses the first status parameter and detects a third transmission of the network bridge module The port is connected to the connection status of the network conversion module via a second transmission path, and a second status parameter is generated correspondingly, and the second status parameter is filled in an unused block of a second data packet; when When the first status parameter is No or unknown, the second data packet corresponds to the disconnection of the first transmission path; when the second status parameter is No or unknown, the second data packet corresponds to the disconnection of the first transmission path. The material packet corresponds to the disconnection of the first transmission path and the second transmission path. In this way, the present invention can automatically detect whether the transmission path between network modules is disconnected, and there is no need to set the network conversion module as a network management device to reduce costs.

本發明提供一實施例,其中於該網路橋接模組將該第二傳輸封包之一第二狀態參數填入至該資料封包之該未使用區塊之步驟後,更包含該網路橋接模組經一第四傳輸埠傳輸該第二資料封包至一主機;該主機依據該第二資料封包讀取該第一狀態參數與該第二狀態參數,其係用以判斷該第一傳輸路徑與該第二傳輸路徑是否斷線。 The present invention provides an embodiment, wherein after the step of the network bridging module filling the second status parameter of the second transmission packet into the unused block of the data packet, the network bridging module further includes The group transmits the second data packet to a host through a fourth transmission port; the host reads the first status parameter and the second status parameter according to the second data packet, which is used to determine the first transmission path and the second status parameter. Whether the second transmission path is disconnected.

本發明提供一實施例,其中該第一資料封包與該第二資料封包對應於一鏈路層發現協定或一傳輸控制協定,該網路橋接模組與該網路轉換模組支援一乙太網路協定。 The present invention provides an embodiment, wherein the first data packet and the second data packet correspond to a link layer discovery protocol or a transmission control protocol, and the network bridging module and the network conversion module support an Ethernet Internet Protocol.

本發明提供一實施例,其中於一網路轉換模組偵測該網路轉換模組之一第一連接埠經一第一傳輸路徑連接一遠端模組的連線狀態之步驟中,該網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組傳送該第一傳輸封包至該網路轉換模組或偵測該第一傳輸路徑對應之該網路轉換模組之該第一傳輸埠的一第一連接訊號狀態,其係用以偵測該第一連接埠經一第一傳輸路徑連接該遠端模組的連線狀態並對應產生該第一狀態參數。 The present invention provides an embodiment, wherein in the step of a network conversion module detecting the connection status of a first connection port of the network conversion module connected to a remote module through a first transmission path, the The network conversion module receives a first transmission packet of the remote module through the first transmission path, or sends a first detection packet to the remote module, so that the remote module transmits the first transmission Packet to the network conversion module or detect a first connection signal status of the first transmission port of the network conversion module corresponding to the first transmission path, which is used to detect the first connection port A first transmission path connects the connection status of the remote module and generates the first status parameter accordingly.

本發明提供一實施例,其中於該網路橋接模組存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經一第二傳輸路徑連接該網路轉換模組的連線狀態之步驟中,該網路橋接模組為經該第二傳輸路徑接收該網路轉換模組之一第二傳輸封包,或該網路橋接模組更發送一第二探測封包至該網路轉換模組,使該網路轉換模組傳送該第二傳輸封包至該網路橋接模組,或該網路橋接模組偵測該第二傳輸路徑對應之該第三傳輸埠的一第二連接訊號狀態,其係用以偵測該第三傳輸埠經該第二傳輸路徑連接該網路轉換模組的連線狀態並對應產生該第二狀態參數。 The present invention provides an embodiment, wherein the network bridging module accesses the first status parameter and detects that a third transmission port of the network bridging module is connected to the network conversion module through a second transmission path. In the step of connecting state, the network bridging module receives a second transmission packet of the network conversion module through the second transmission path, or the network bridging module further sends a second detection packet to The network conversion module causes the network conversion module to transmit the second transmission packet to the network bridging module, or the network bridging module detects the third transmission port corresponding to the second transmission path. A second connection signal state is used to detect the connection state of the third transmission port to the network conversion module through the second transmission path and generate the second state parameter accordingly.

本發明提供一實施例,其中該第一狀態參數為該遠端模組對應一鏈路層發現協定之一第一裝置狀態或對應一傳輸控制協定之一第一傳輸狀態,該第二狀態參數為該網路轉換模組對應該鏈路層發現協定之一第二裝置狀態或對應該傳輸控制協定之一第二傳輸狀態。 The present invention provides an embodiment, wherein the first status parameter of the remote module corresponds to a first device status of a link layer discovery protocol or a first transmission status of a transmission control protocol, and the second status parameter The network conversion module is a second device state corresponding to the link layer discovery protocol or a second transmission state corresponding to the transmission control protocol.

本發明更揭示了一種網路裝置連線狀態之偵測方法,其先由一第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經一第一傳輸路徑連接一遠端模組的連線狀態,並對應產生一第一狀態參數,接續由該第一網路轉換模組將該第一狀態參數填入一第一資料封包之一未使用區塊,接著將包含該第一狀態參數之該第一資料封包經一第二傳輸埠傳輸至一第二網路轉換模組;之後,由該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經一第二傳輸路徑連接該第一網路轉換模組的連線狀態,對應產生一第二狀態參數,而接續將該第一狀態參數與該第二狀態參數填入一第二資料封包之一未使用區塊,接著將包含該第一狀態參數與該第二狀態參數之該第二資料封包傳送至該網路橋接模組;爾後,由該網路橋接模組存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經一第三傳輸路徑連接該第二網路轉換模組的連線狀態,對應產生一第三狀態參數,並將該第一狀態參數、該第二狀態參數與該第三狀態參數填入該第三資料封包之該未使用區塊;當該第一狀態參數為否或不明時,該資料封包對應於該第一傳輸路徑斷線;當該第二狀態參數為否或不明時,該第三資料封包對應於該第一傳輸路徑與該第二傳輸路徑斷線;當該第三狀態參數為否或不明時,該資料封包對應於該第一傳輸路徑、該第二傳輸路徑與該第三傳輸路徑斷線。如此本發明既可自動化偵測網路模組之間的傳輸路徑是否斷線,更無須將該第一網路轉換模組與該第二網路轉換模組設置為網管型裝置,以降低成本。 The present invention further discloses a method for detecting the connection status of a network device. The method first uses a first network conversion module to detect a first transmission port of the first network conversion module through a first transmission path. Connect the connection status of a remote module and generate a first status parameter correspondingly, and then the first network conversion module fills the first status parameter into an unused block of a first data packet, Then, the first data packet including the first status parameter is transmitted to a second network conversion module through a second transmission port; then, the second network conversion module accesses the first status parameter and Detect the connection status of a third transmission port of the second network conversion module connected to the first network conversion module through a second transmission path, generate a second status parameter correspondingly, and continue to connect the first network conversion module The status parameter and the second status parameter are filled in an unused block of a second data packet, and then the second data packet including the first status parameter and the second status parameter is sent to the network bridge module. ; Thereafter, the network bridging module accesses the first status parameter and the second status parameter and detects that a fifth transmission port of the network bridging module is connected to the second network through a third transmission path Convert the connection status of the module, correspondingly generate a third status parameter, and fill the first status parameter, the second status parameter and the third status parameter into the unused block of the third data packet; when When the first status parameter is No or unknown, the data packet corresponds to the disconnection of the first transmission path; when the second status parameter is No or unknown, the third data packet corresponds to the connection between the first transmission path and the The second transmission path is disconnected; when the third status parameter is No or unknown, the data packet corresponds to the first transmission path, the second transmission path and the third transmission path being disconnected. In this way, the present invention can automatically detect whether the transmission path between network modules is disconnected, and there is no need to set the first network conversion module and the second network conversion module as network management devices to reduce costs. .

本發明提供另一實施例,其中於該網路橋接模組將該第三傳輸封包之一第三狀態資料填入至該資料封包之該未使用區塊之步驟後,更包含該網路橋接模組經一第六傳輸埠傳輸該第三資料封包至一主機;該主機依據該第三 資料封包讀取該第一狀態參數、該第二狀態參數與該第三狀態資料,其係用以判斷該第一傳輸路徑、該第二傳輸路徑與該第三傳輸路徑是否斷線。 The present invention provides another embodiment, wherein after the step of the network bridging module filling the third status data of the third transmission packet into the unused block of the data packet, the network bridging module further includes: The module transmits the third data packet to a host through a sixth transmission port; the host The data packet reads the first status parameter, the second status parameter and the third status data, which is used to determine whether the first transmission path, the second transmission path and the third transmission path are disconnected.

本發明提供另一實施例,其中該第一資料封包、該第二資料封包與該第三資料封包對應於一鏈路層發現協定或一傳輸控制協定,該第一網路轉換模組、該第二網路轉換模組與該網路橋接模組支援一乙太網路協定。 The present invention provides another embodiment, wherein the first data packet, the second data packet and the third data packet correspond to a link layer discovery protocol or a transmission control protocol, the first network conversion module, the The second network conversion module and the network bridge module support an Ethernet protocol.

本發明提供另一實施例,其中於一第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經一第一傳輸路徑連接一遠端模組的連線狀態之步驟中,該第一網路轉換模組該第一網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組傳送該第一傳輸封包至該第一網路轉換模組,或偵測該第一傳輸埠之一第一連接訊號狀態,其係用以偵測該第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生該第一狀態參數。 The present invention provides another embodiment, in which a first network conversion module detects the connection status of a first transmission port of the first network conversion module connected to a remote module through a first transmission path. In the step, the first network conversion module receives a first transmission packet of the remote module through the first transmission path, or sends a first detection packet to the remote module. The end module causes the remote module to transmit the first transmission packet to the first network conversion module, or detect the first connection signal status of the first transmission port, which is used to detect the third A transmission port connects the connection status of the remote module through the first transmission path and generates the first status parameter accordingly.

本發明提供另一實施例,其中於該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經一第二傳輸路徑連接該第一網路轉換模組的連線狀態之步驟中,該第二網路轉換模組經一第二傳輸路徑接收該第一網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該第一網路轉換模組,使該第一網路轉換模組傳送該第二傳輸封包至該第二網路轉換模組,或偵測該第三轉換傳輸埠的一第二連接訊號狀態,其係用以產生該第二狀態訊號。 The present invention provides another embodiment, wherein the second network conversion module accesses the first status parameter and detects that a third transmission port of the second network conversion module is connected to the second transmission path through a second transmission path. In the connection status step of the first network conversion module, the second network conversion module receives a second transmission packet of the first network conversion module through a second transmission path, or sends a first Two detection packets are sent to the first network conversion module, so that the first network conversion module sends the second transmission packet to the second network conversion module, or detects a first transmission packet of the third conversion transmission port. Two connection signal states, which are used to generate the second state signal.

本發明提供另一實施例,其中於存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經一第三傳輸路徑連接該第二網路轉換模組的連線狀態之步驟中,該網路橋接模組經該第三傳輸路徑接收該第二網路轉換模組之一第三傳輸封包,或更發送一第三探測封包至該第二網路轉換模組,使該第二網路轉換模組傳送該第三傳輸封包至該網路橋接模組,或偵測該第五傳輸埠之一第三連接訊號狀態,其係用以偵測該第五傳輸埠經該第三傳輸路徑連接該第二網路轉換模組的連線狀態並對應產生該第三狀態訊號。 The present invention provides another embodiment, in which a fifth transmission port of the network bridge module is connected to the second network through a third transmission path after accessing the first status parameter and the second status parameter and detecting the network bridge module. In the step of converting the connection status of the module, the network bridge module receives a third transmission packet of the second network conversion module through the third transmission path, or sends a third detection packet to the second network conversion module. Two network conversion modules, causing the second network conversion module to transmit the third transmission packet to the network bridge module, or detect the third connection signal status of the fifth transmission port, which is used to Detect the connection status of the fifth transmission port connected to the second network conversion module through the third transmission path and generate the third status signal accordingly.

本發明再提供一種網路裝置連線狀態之偵測系統,其係應用於偵測一遠端模組之傳輸路徑的連線狀態;該偵測系統包含一遠端模組、一網路轉換模組與一網路橋接模組;該網路轉換模組經一第一傳輸路徑連接該遠端模組;該網路橋接模組經一第二傳輸路徑連接該網路轉換模組;其中該網路轉換模組偵測該網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生一第一狀態參數,該網路轉換模組將該第一狀態參數填入一第一資料封包並經一第二傳輸埠轉送至該網路橋接模組,該網路橋接模組存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經該第二傳輸路徑連接該網路轉換模組的連線狀態而對應產生一第二狀態參數,該網路橋接模組將該第一狀態參數與該第二狀態參數填入至一第二資料封包,當該第一狀態參數為否或不明時,該第二資料封包對應於該第一傳輸路徑斷線,當該第二狀態參數為否或不明時,該第二資料封包對應於該第二傳輸路徑斷線。如此本發明既可自動化偵測網路模組之間的傳輸路徑是否斷線,更無須將該網路轉換模組設置為網管型裝置,以降低成本。 The present invention further provides a detection system for the connection status of a network device, which is used to detect the connection status of a transmission path of a remote module; the detection system includes a remote module, a network switch The module and a network bridging module; the network conversion module is connected to the remote module through a first transmission path; the network bridging module is connected to the network conversion module through a second transmission path; wherein The network conversion module detects the connection status of a first transmission port of the network conversion module connected to the remote module through the first transmission path and generates a first status parameter accordingly. The network conversion module The group fills the first status parameter into a first data packet and forwards it to the network bridge module through a second transmission port. The network bridge module accesses the first status parameter and detects the network bridge connection. A third transmission port of the module is connected to the connection status of the network conversion module through the second transmission path to generate a second status parameter correspondingly. The network bridge module combines the first status parameter with the second status parameter. The status parameter is filled in a second data packet. When the first status parameter is No or unknown, the second data packet corresponds to the disconnection of the first transmission path. When the second status parameter is No or unknown, The second data packet corresponds to the disconnection of the second transmission path. In this way, the present invention can automatically detect whether the transmission path between network modules is disconnected, and there is no need to set the network conversion module as a network management device to reduce costs.

本發明提供再一實施例,其更包含一主機,其連接該網路橋接模組,其中該網路橋接模組將包含該第一狀態參數與該第二狀態參數之該第二資料封包經一第四傳輸埠轉送至該主機,該主機依據該第一狀態參數為否或不明而判斷該第一傳輸路徑斷線,該主機依據該第二狀態參數為否或不明而判斷該第一傳輸路徑與該第二傳輸路徑斷線。 The present invention provides yet another embodiment, which further includes a host connected to the network bridging module, wherein the network bridging module processes the second data packet including the first status parameter and the second status parameter. A fourth transmission port is forwarded to the host. The host determines that the first transmission path is disconnected based on whether the first status parameter is negative or unknown. The host determines that the first transmission is disconnected based on whether the second status parameter is negative or unclear. The path is disconnected from the second transmission path.

本發明提供再一實施例,其中該網路轉換模組經一第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組發送該第一傳輸封包至該網路轉換模組,或偵測該第一傳輸埠之一第一連接訊號狀態,其係用以偵測該第一傳輸路徑之連線狀態並對應產生該第一狀態參數;該網路橋接模組經一第二傳輸路徑接收該網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該網路轉換模組,使該網路轉換模組發送該第二傳輸封包至該網路橋接模組,或偵測該第三傳輸埠之一第二連接訊號狀態,其係用以偵測該第二傳輸路徑之連線狀態並對應產生該第二狀態參數。 The present invention provides yet another embodiment, in which the network conversion module receives a first transmission packet of the remote module through a first transmission path, or sends a first detection packet to the remote module, so that The remote module sends the first transmission packet to the network conversion module, or detects a first connection signal status of the first transmission port, which is used to detect the connection status of the first transmission path And correspondingly generate the first status parameter; the network bridging module receives a second transmission packet of the network conversion module through a second transmission path, or sends a second detection packet to the network conversion module , causing the network conversion module to send the second transmission packet to the network bridging module, or detect the second connection signal status of the third transmission port, which is used to detect the second transmission path The connection state and correspondingly generate the second state parameter.

本發明提供再一實施例,其中,該第二傳輸路徑之傳輸介面不同於該第一傳輸路徑之傳輸介面,該第一資料封包與該第二資料封包對應於一鏈路層發現協定或一傳輸控制協定,該網路橋接模組與該網路轉換模組支援一乙太網路協定。 The present invention provides yet another embodiment, wherein the transmission interface of the second transmission path is different from the transmission interface of the first transmission path, and the first data packet and the second data packet correspond to a link layer discovery protocol or a Transmission Control Protocol, the network bridge module and the network conversion module support an Ethernet protocol.

本發明又提供一種網路裝置連線狀態之偵測系統,其係應用於該第一資料封包與該第二資料封包;該偵測系統包含一第一網路轉換模組、一第二網路轉換模組與一網路橋接模組;該第一網路轉換模組經一第一傳輸路徑連接該遠端模組;該第二網路轉換模組經一第二傳輸路徑連接該第一網路轉換模組;該網路橋接模組經一第三傳輸路徑連接該第二網路轉換模組;其中該第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生一第一狀態參數,該第一網路轉換模組將該第一狀態參數填入一第一資料封包並經一第二傳輸埠轉送至該第二網路轉換模組,該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經該第二傳輸路徑連接該第一網路轉換模組的連線狀態而對應產生一第二狀態參數,該第二網路轉換模組將該第一狀態參數與該第二狀態參數填入一第二資料封包並經一第四傳輸埠轉送至該網路橋接模組,該網路橋接模組存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經該第三傳輸路徑連接該第二網路轉換模組的連線狀態,而對應產生一第三狀態參數,該網路橋接模組將該第一狀態參數、該第二狀態參數與該第三狀態參數填入一第三資料封包,當該第一狀態參數為否或不明時,該第三資料封包對應於該第一傳輸路徑斷線,當該第二狀態參數為否或不明時,該第三資料封包對應於該第二傳輸路徑斷線,當該第三狀態參數為否或不明時,該第三資料封包對應於該第三傳輸路徑斷線。如此本發明既可自動化偵測網路模組之間的傳輸路徑是否斷線,更無須將該網路轉換模組設置為網管型裝置,以降低成本。 The present invention also provides a detection system for the connection status of a network device, which is applied to the first data packet and the second data packet; the detection system includes a first network conversion module, a second network A channel conversion module and a network bridge module; the first network conversion module is connected to the remote module through a first transmission path; the second network conversion module is connected to the third through a second transmission path A network conversion module; the network bridging module is connected to the second network conversion module through a third transmission path; wherein the first network conversion module detects one of the first network conversion modules The first transmission port connects the connection status of the remote module through the first transmission path and generates a first status parameter accordingly. The first network conversion module fills the first status parameter into a first data packet. And forwarded to the second network conversion module through a second transmission port, the second network conversion module accesses the first status parameter and detects a third transmission port of the second network conversion module The connection status of the first network conversion module via the second transmission path generates a second status parameter correspondingly, and the second network conversion module fills in the first status parameter and the second status parameter. A second data packet is forwarded to the network bridging module through a fourth transmission port. The network bridging module accesses the first status parameter and the second status parameter and detects the network bridging module. A fifth transmission port is connected to the connection status of the second network conversion module through the third transmission path, and a third status parameter is correspondingly generated. The network bridge module converts the first status parameter, the second The status parameter and the third status parameter are filled in a third data packet. When the first status parameter is No or unknown, the third data packet corresponds to the disconnection of the first transmission path. When the second status parameter is When no or unknown, the third data packet corresponds to the disconnection of the second transmission path. When the third status parameter is no or unknown, the third data packet corresponds to the disconnection of the third transmission path. In this way, the present invention can automatically detect whether the transmission path between network modules is disconnected, and there is no need to set the network conversion module as a network management device to reduce costs.

本發明提供又一實施例,其更包含一主機,其連接該網路橋接模組,其中該網路橋接模組將包含該第一狀態參數、該第二狀態參數與該第三狀態資料之該第三資料封包經一第六傳輸埠轉送至該主機,該主機依據該第一狀態 參數為否或不明而判斷該第一傳輸路徑斷線,該主機依據第二狀態參數為否或不明而判斷該第二傳輸路徑斷線,該主機依據該第三狀態參數為否或不明而判斷該該第三傳輸路徑斷線。 The present invention provides another embodiment, which further includes a host connected to the network bridging module, wherein the network bridging module will include the first status parameter, the second status parameter and the third status data. The third data packet is forwarded to the host via a sixth transmission port, and the host The parameter is no or unknown and the first transmission path is disconnected. The host determines that the second transmission path is disconnected based on the second status parameter being no or unknown. The host determines that the third status parameter is no or unknown. The third transmission path is disconnected.

本發明提供又一實施例,其中,該第二傳輸路徑之傳輸介面不同於該第一傳輸路徑與該第三傳輸路徑之傳輸介面,該第一資料封包、該第二資料封包與該第三資料封包對應於一鏈路層發現協定或一傳輸控制協定,該第一網路轉換模組、該第二網路轉換模組與該網路橋接模組支援一乙太網路協定。 The present invention provides yet another embodiment, wherein the transmission interface of the second transmission path is different from the transmission interfaces of the first transmission path and the third transmission path, and the first data packet, the second data packet and the third The data packet corresponds to a link layer discovery protocol or a transmission control protocol, and the first network conversion module, the second network conversion module and the network bridging module support an Ethernet protocol.

本發明提供又一實施例,其中該第一網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組發送該第一傳輸封包至該第一網路轉換模組,或偵測該第一傳輸埠之一第一連接訊號狀態,其係用以偵測該第一網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態;該第二網路轉換模組經該第二傳輸路徑接收該第一網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該第一網路轉換模組,使該第一網路轉換模組發送該第二傳輸封包至該第二網路轉換模組,或偵測該第三傳輸埠之一第二連接訊號狀態,其係用以偵測該第二網路轉換模組之一第三傳輸埠經該第二傳輸路徑連接該第一網路轉換模組的連線狀態,並對應產生該第二狀態參數;該網路橋接模組經該第三傳輸路徑接收該第二網路轉換模組之一第三傳輸封包,或更發送一第三探測封包至該第二網路轉換模組,使該第二網路轉換模組發送該第三傳輸封包至該網路橋接模組,或偵測該第五傳輸埠之一第三連接訊號狀態,其係用以偵測該網路橋接模組經該第三傳輸路徑連接該第二網路轉換模組的連線狀態,並對應產生該第三狀態參數。 The present invention provides another embodiment, wherein the first network conversion module receives a first transmission packet of the remote module through the first transmission path, or sends a first detection packet to the remote module. , causing the remote module to send the first transmission packet to the first network conversion module, or detect the first connection signal status of the first transmission port, which is used to detect the first network A first transmission port of the conversion module is connected to the connection status of the remote module through the first transmission path; the second network conversion module receives the connection status of the first network conversion module through the second transmission path. A second transmission packet, or a second detection packet sent to the first network conversion module, so that the first network conversion module sends the second transmission packet to the second network conversion module, or Detecting a second connection signal state of the third transmission port is used to detect that a third transmission port of the second network conversion module is connected to the first network conversion module through the second transmission path connection status, and correspondingly generates the second status parameter; the network bridging module receives a third transmission packet of the second network conversion module through the third transmission path, or sends a third detection packet to the second network conversion module, causing the second network conversion module to send the third transmission packet to the network bridging module, or detect the third connection signal status of the fifth transmission port, and It is used to detect the connection status of the network bridge module connected to the second network conversion module through the third transmission path, and generate the third status parameter accordingly.

1:偵測系統 1:Detection system

2:偵測系統 2:Detection system

10:主機 10:Host

12:處理單元 12: Processing unit

14:記憶體 14:Memory

16:儲存單元 16:Storage unit

102:主機傳輸埠 102: Host transmission port

20:遠端模組 20:Remote module

202:控制處理單元 202: Control processing unit

204:遠端傳輸埠 204:Remote transmission port

22:網路轉換模組 22:Network conversion module

222:控制處理單元 222:Control processing unit

224:第一傳輸埠 224: First transmission port

226:第二傳輸埠 226: Second transmission port

24:網路橋接模組 24:Network bridging module

242:控制處理單元 242:Control processing unit

244:第三傳輸埠 244:Third transmission port

246:第四傳輸埠 246: Fourth transmission port

30:主機 30:Host

32:處理單元 32: Processing unit

302:主機傳輸埠 302: Host transmission port

40:遠端模組 40:Remote module

402:控制處理單元 402: Control processing unit

404:遠端傳輸埠 404:Remote transmission port

42:第一網路轉換模組 42:The first network conversion module

422:控制處理單元 422: Control processing unit

424:第一傳輸埠 424: First transmission port

426:第二傳輸埠 426: Second transmission port

44:第二網路轉換模組 44: Second network conversion module

442:控制處理單元 442: Control processing unit

444:第三傳輸埠 444: Third transmission port

446:第四傳輸埠 446: Fourth transmission port

46:網路橋接模組 46:Network bridging module

462:控制處理單元 462:Control processing unit

464:第五傳輸埠 464: Fifth transmission port

466:第六傳輸埠 466:Sixth transmission port

DPACK1:第一資料封包 DPACK1: First data packet

DPACK2:第二資料封包 DPACK2: Second data packet

DPACK11:第一資料封包 DPACK11: First data packet

DPACK12:第二資料封包 DPACK12: Second data packet

DPACK13:第三資料封包 DPACK13: Third data packet

DU1:第一傳送封包 DU1: First transmission packet

DU2:第二傳送封包 DU2: Second transmission packet

DU11:第一傳送封包 DU11: First transmission packet

DU12:第二傳送封包 DU12: Second transmission packet

DU13:第三傳送封包 DU13: The third transmission packet

FIN1:第一探測封包 FIN1: First detection packet

FIN2:第二探測封包 FIN2: Second detection packet

FIN11:第一探測封包 FIN11: First detection packet

FIN12:第二探測封包 FIN12: Second detection packet

FIN13:第三探測封包 FIN13: The third detection packet

LINK:資料鏈路層 LINK: data link layer

P1:第一傳輸路徑 P1: first transmission path

P2:第二傳輸路徑 P2: Second transmission path

P3:第三傳輸路徑 P3: Third transmission path

P11:第一傳輸路徑 P11: First transmission path

P12:第二傳輸路徑 P12: Second transmission path

P13:第三傳輸路徑 P13: Third transmission path

P14:第四傳輸路徑 P14: The fourth transmission path

PK1:使用區塊 PK1: Use blocks

PK2:未使用區塊 PK2: Unused block

S1:第一狀態參數 S1: first status parameter

S2:第二狀態參數 S2: Second state parameter

S11:第一狀態參數 S11: First status parameter

S12:第二狀態參數 S12: Second status parameter

S13:第三狀態參數 S13: The third status parameter

S10至S18:步驟 S10 to S18: Steps

S100至S220:步驟 S100 to S220: Steps

第一圖:其為本發明之一實施例之偵測連線狀態之流程圖;第二A圖至第二C圖:其為本發明之一實施例之部分步驟示意圖; 第三A圖至第三C圖:其為本發明之另一實施例之部分步驟示意圖;第四圖:其為本發明之再一實施例之偵測連線狀態之流程圖;第五A圖至第五D圖:其為本發明之再一實施例之部分步驟示意圖;以及第六A圖至第六D圖:其為本發明之又一實施例之部分步驟示意圖。 Figure 1: It is a flow chart of detecting connection status according to an embodiment of the present invention; Figures 2A to 2C: It is a schematic diagram of some steps of an embodiment of the present invention; Figure 3A to Figure 3C: This is a schematic diagram of some steps of another embodiment of the present invention; Figure 4: It is a flow chart of detecting the connection status of yet another embodiment of the present invention; Figure 5A Figures 1 to 5D are partial step schematic diagrams of yet another embodiment of the present invention; and Figures 6A to 6D are partial step schematic diagrams of yet another embodiment of the present invention.

為使 貴審查委員對本發明之特徵及所達成之功效有更進一步之瞭解與認識,謹佐以實施例及配合說明,說明如後:有鑑於習知技術中,網路管理系統對遠端裝置管理上操作複雜所導致之人工操作未能精確定址或者不容易辨識連線失敗之網段,因而造成維修困難,據此,本發明遂提出一種網路裝置連線狀態之偵測系統及其方法,以解決習知網路管理技術所造成之維修困難之問題。 In order to enable the review committee to have a further understanding and understanding of the characteristics and effects of the present invention, examples and accompanying descriptions are provided as follows: In view of the fact that in the conventional technology, the network management system controls the remote device Manual operations due to complex management operations cannot accurately determine the address or cannot easily identify the network segment where the connection failed, thus causing maintenance difficulties. Accordingly, the present invention proposes a detection system and method for the connection status of network devices. , to solve the maintenance difficulties caused by conventional network management technology.

以下,將進一步說明本發明揭示一種網路裝置連線狀態之偵測系統及其方法所提供之特性、所搭配之系統:首先,請參閱第一圖,其為本發明之一實施例之偵測連線狀態之流程圖。如圖所示,本發明之網路裝置連線狀態之偵測方法,其執行以下步驟:步驟S10:網路轉換模組偵測本身與遠端模組之間的第一傳輸路徑並對應產生第一狀態參數;步驟S12:網路轉換模組將第一狀態參數填入第一資料封包之未使用區塊,並傳送第一資料封包至網路橋接模組;步驟S14:網路橋接模組偵測本身與網路轉換模組之間的第二傳輸路徑並對應產生第二狀態參數;步驟S16:網路橋接模組將第二狀態參數填入至第二資料封包之未使用區塊,並傳送第二資料封包至主機;以及步驟S18:主機讀取第一狀態參數與第二狀態參數,其係用以判斷第一傳輸路徑與第二傳輸路徑是否斷線。 In the following, the present invention will further describe the characteristics provided by a system and method for detecting the connection status of a network device and the matching system: First, please refer to the first figure, which is a detection system according to an embodiment of the present invention. Flow chart for testing connection status. As shown in the figure, the method for detecting the connection status of a network device of the present invention performs the following steps: Step S10: The network conversion module detects the first transmission path between itself and the remote module and generates a corresponding The first status parameter; Step S12: The network conversion module fills the first status parameter into the unused block of the first data packet, and sends the first data packet to the network bridging module; Step S14: The network bridging module The group detects the second transmission path between itself and the network conversion module and generates the second status parameter accordingly; step S16: the network bridge module fills the second status parameter into the unused block of the second data packet , and transmit the second data packet to the host; and step S18: the host reads the first status parameter and the second status parameter, which are used to determine whether the first transmission path and the second transmission path are disconnected.

請一併參閱第二A圖至第二C圖,其為本發明之網路裝置連線狀態之偵測方法所搭配之偵測系統1,其應用於偵測一主機10與一遠端模組20之間的傳輸路徑是否斷線,該偵測系統1包含一網路轉換模組22與一網路橋接模組24,本實施例之主機10為具有一處理單元12之電腦主機作為舉例,但並非僅限於此,更可為伺服器、筆記型電腦、平板電腦或具備資料讀取能力與邏輯運算能力基礎之電子裝置皆為本發明所指之主機10。該遠端模組20連接該網路轉換模組22,該網路轉換模組22連接該網路橋接模組24,該主機10連接該網路橋接模組24,本實施例中,該遠端模組20與該網路轉換模組22之間經一第一傳輸路徑P1相互連接,該網路轉換模組22與該網路橋接模組24之間經一第二傳輸路徑P2相互連接,該網路橋接模組24與該主機10之間經由一第三傳輸路徑P3相接(例如:該網路橋接模組24與該主機10之間透過網路線連接)。 Please refer to Figures 2A to 2C together, which illustrate the detection system 1 used in conjunction with the method for detecting the connection status of a network device of the present invention, which is used to detect a host 10 and a remote module. Whether the transmission path between the groups 20 is disconnected, the detection system 1 includes a network conversion module 22 and a network bridge module 24. The host 10 in this embodiment is a computer host with a processing unit 12 as an example. , but is not limited to this. It can also be a server, a notebook computer, a tablet computer, or an electronic device with basic data reading capabilities and logical computing capabilities, all of which are the host 10 referred to in the present invention. The remote module 20 is connected to the network conversion module 22, the network conversion module 22 is connected to the network bridging module 24, and the host 10 is connected to the network bridging module 24. In this embodiment, the remote The terminal module 20 and the network conversion module 22 are connected to each other through a first transmission path P1, and the network conversion module 22 and the network bridging module 24 are connected to each other through a second transmission path P2. , the network bridging module 24 and the host 10 are connected through a third transmission path P3 (for example: the network bridging module 24 and the host 10 are connected through a network cable).

進一步,本實施例中,該網路轉換模組22依據一資料鏈路層(Data link layer)LINK經該網路橋接模組24傳送一資料封包(Data Packet)DPACK至該主機10。其中該資料鏈路層LINK為開放式系統互聯模型(Open System Interconnection Model,OSI)中介於實體層(Physical Layer)與網路層(Network Layer),該資料鏈路層LINK之用途為用於網路尋址、錯誤偵測和改錯,一般網路裝置會加註於資料封包中之表頭(Header)與表尾(END),本實施例之該資料封包為對應於一鏈路層發現協定(Link Layer Discovery Protocol,LLDP),其為該資料鏈路層LINK之其中一網路協定,一般網路裝置為依據該LLDP經由自身所連接之網路通告其他網路裝置自身之狀態。 Furthermore, in this embodiment, the network conversion module 22 transmits a data packet (Data Packet) DPACK to the host 10 through the network bridge module 24 according to a data link layer (Data link layer) LINK. The data link layer LINK is between the physical layer (Physical Layer) and the network layer (Network Layer) in the Open System Interconnection Model (OSI). The purpose of the data link layer LINK is for network For path addressing, error detection and error correction, general network devices will add the header (Header) and the end (END) in the data packet. The data packet in this embodiment corresponds to a link layer discovery Protocol (Link Layer Discovery Protocol, LLDP), which is one of the network protocols of the data link layer LINK. Generally, network devices use this LLDP to notify other network devices of their own status through the network they are connected to.

本實施例之遠端模組20設有一控制處理單元222與一遠端傳輸埠204,網路轉換模組22設有一控制處理單元222、一第一傳輸埠224與一第二傳輸埠226,網路橋接模組24設有一控制處理單元242、一第三傳輸埠244與一第四傳輸埠246,主機10更設有一主機傳輸埠102,第一傳輸路徑P1為遠端模組20之遠端傳輸埠204連接網路轉換模組22之第一傳輸埠224,第二傳輸路徑P2為網路轉換模組22之第二傳輸埠226連接網路橋接模組24之第三傳輸埠244,第三傳輸路徑P3為網路橋接模組24之第四傳輸埠246連接主機10之主機傳輸埠102。 The remote module 20 of this embodiment is provided with a control processing unit 222 and a remote transmission port 204. The network conversion module 22 is provided with a control processing unit 222, a first transmission port 224 and a second transmission port 226. The network bridge module 24 is provided with a control processing unit 242, a third transmission port 244 and a fourth transmission port 246. The host 10 is further provided with a host transmission port 102. The first transmission path P1 is far away from the remote module 20 The end transmission port 204 is connected to the first transmission port 224 of the network conversion module 22, and the second transmission path P2 is the second transmission port 226 of the network conversion module 22 connected to the third transmission port 244 of the network bridge module 24. The third transmission path P3 is the fourth transmission port 246 of the network bridge module 24 connected to the host transmission port 102 of the host 10 .

接續上述,本實施例之該網路轉換模組22與該網路橋接模組24,甚至是遠端模組20與主機10皆為透過該LLDP對應之鏈路層發現協定資料單元(Link Layer Discovery Protocol Data Unit,LLDPDU),使網路中的所有裝置皆可互相通告而互相發現。其中對應於該資料鏈路層LINK之第一資料封包DPACK1與第二資料封包DPACK2中分別包含一使用區塊PK1與一未使用區塊PK2,例如:LLDP之LLDPDU中包含必填區塊與可選區塊,即TLV,其為type,length,value的縮寫,TLV中包含必須區塊、可選區塊與保留區塊,其中TLV之資料格式如下表一:

Figure 111104009-A0305-02-0012-2
Continuing from the above, the network conversion module 22 and the network bridging module 24 of this embodiment, and even the remote module 20 and the host 10 discover the protocol data unit (Link Layer) through the link layer corresponding to the LLDP. Discovery Protocol Data Unit (LLDPDU), which enables all devices on the network to advertise and discover each other. The first data packet DPACK1 and the second data packet DPACK2 corresponding to the data link layer LINK respectively contain a used block PK1 and an unused block PK2. For example: the LLDP LLDPDU contains required blocks and optional blocks. The selected block, that is, TLV, is the abbreviation of type, length, and value. TLV includes required blocks, optional blocks, and reserved blocks. The data format of TLV is as follows: Table 1:
Figure 111104009-A0305-02-0012-2

因此,基於TLV之資料格式定義如下表二:

Figure 111104009-A0305-02-0012-3
Figure 111104009-A0305-02-0013-6
Therefore, the data format definition based on TLV is as follows in Table 2:
Figure 111104009-A0305-02-0012-3
Figure 111104009-A0305-02-0013-6

其中,TLV之第1至第3類別為必須區塊,TLV之第4至第8類別以及第127類別為可選區塊,TLV之第9至第126類別為保留區塊,本實施例中,TLV之第1至第3類別(TLV1-TLV3)為填入第一資料封包DPACK1與第二資料封包DPACK2之使用區塊PK1,而TLV之第127類別(TLV127)為可選區塊一般未被系統所使用,因而在本實施例中被設為第一資料封包DPACK1與第二資料封包DPACK2之未使用區塊PK2。但本發明不侷限於此,更可利用TLV之保留區塊或其他可選區塊被設為第一資料封包DPACK1與第二資料封包DPACK2之未使用區塊PK2。 Among them, the 1st to 3rd categories of TLV are required blocks, the 4th to 8th categories and 127th category of TLV are optional blocks, and the 9th to 126th categories of TLV are reserved blocks. In this embodiment, The 1st to 3rd types of TLV (TLV1-TLV3) are used blocks PK1 to fill in the first data packet DPACK1 and the second data packet DPACK2, while the 127th type of TLV (TLV127) is an optional block and is generally not used by the system. The unused block PK2 is used and is therefore set as the unused block PK2 of the first data packet DPACK1 and the second data packet DPACK2 in this embodiment. However, the present invention is not limited thereto, and the reserved block or other optional block of the TLV can be used to be set as the unused block PK2 of the first data packet DPACK1 and the second data packet DPACK2.

於步驟S10中,如第二A圖所示,該網路轉換模組22偵測本身與該遠端模組20之間的連接狀態,本實施例之舉例為該遠端模組20會依據該LLDP發送一第一傳輸封包DU1至該網路轉換模組22,該網路轉換模組22藉由是否接收到該遠端模組20之該第一傳送封包DU1,用以偵測該網路轉換模組22與該遠端 模組20之間的連接狀態,亦即偵測該網路轉換模組22與該遠端模組20之間的該第一傳輸路徑P1是否斷線。 In step S10, as shown in Figure 2A, the network conversion module 22 detects the connection status between itself and the remote module 20. In this embodiment, the remote module 20 will The LLDP sends a first transmission packet DU1 to the network conversion module 22. The network conversion module 22 detects the network by whether it receives the first transmission packet DU1 of the remote module 20. channel conversion module 22 and the remote The connection status between the modules 20 is to detect whether the first transmission path P1 between the network conversion module 22 and the remote module 20 is disconnected.

其中,基於LLDP,一旦對應之傳輸埠的網路連線狀態轉變時,會經由對應之傳輸埠發送一傳輸封包至相鄰之網路裝置,本實施例係以遠端模組20發送第一傳輸封包DU1至網路轉換模組22作為舉例,由遠端模組20之一控制處理單元222偵測到一遠端傳輸埠204連接網路轉換模組22之第一傳輸埠224,因而經遠端傳輸埠204傳送該第一傳輸封包DU1至網路轉換模組22之第一傳輸埠224,因而讓網路轉換模組22接收到該第一傳輸封包DU1並對應產生一第一狀態參數S1;接續於步驟S12中,該網路轉換模組22之控制處理單元222將該第一狀態參數S1填入該第一資料封包DPACK1之該未使用區塊PK2(例如:TLV TYPE127)中,並由該網路轉換模組22將該第一資料封包DPACK1經第二傳輸埠226發送至該網路橋接模組24之該第三傳輸埠244。 Among them, based on LLDP, once the network connection status of the corresponding transmission port changes, a transmission packet will be sent to the adjacent network device via the corresponding transmission port. In this embodiment, the remote module 20 sends the first transmission packet. For example, when transmitting the packet DU1 to the network conversion module 22, a control processing unit 222 of the remote module 20 detects that a remote transmission port 204 is connected to the first transmission port 224 of the network conversion module 22. The remote transmission port 204 transmits the first transmission packet DU1 to the first transmission port 224 of the network conversion module 22, so that the network conversion module 22 receives the first transmission packet DU1 and generates a first status parameter accordingly. S1; Following step S12, the control processing unit 222 of the network conversion module 22 fills the first status parameter S1 into the unused block PK2 (for example: TLV TYPE127) of the first data packet DPACK1, And the network conversion module 22 sends the first data packet DPACK1 to the third transmission port 244 of the network bridging module 24 through the second transmission port 226.

於步驟S14中,如第二B圖所示,該網路橋接模組24偵測本身與該網路轉換模組22之間的連接狀態,本實施例為該網路橋接模組24接收該網路轉換模組22所發送之一第二傳送封包DU2,該網路橋接模組24藉由是否接收到該網路轉換模組22之該第二傳送封包DU2,用以偵測該網路轉換模組22與該網路橋接模組24之間的連接狀態,亦即偵測該網路轉換模組22與該網路橋接模組24之間該第二傳輸路徑P2是否斷線。 In step S14, as shown in Figure B, the network bridging module 24 detects the connection status between itself and the network conversion module 22. In this embodiment, the network bridging module 24 receives the A second transmission packet DU2 is sent by the network conversion module 22. The network bridging module 24 detects the network by whether it receives the second transmission packet DU2 from the network conversion module 22. The connection status between the conversion module 22 and the network bridge module 24 is to detect whether the second transmission path P2 between the network conversion module 22 and the network bridge module 24 is disconnected.

其中,基於LLDP,同理,本實施例係以網路轉換模組22發送第二傳輸封包DU2至網路橋接模組24作為舉例,由該網路轉換模組22之控制處理單元222偵測到該網路轉換模組22之第二傳輸埠226連接該網路橋接模組24之第三傳輸埠244,因而經該網路轉換模組22之第一傳輸埠224傳送該第二傳輸封包DU2至該網路橋接模組24之第三傳輸埠244,因而讓該網路橋接模組24對應產生一第二狀態參數S2。 Among them, based on LLDP, similarly, this embodiment uses the network conversion module 22 to send the second transmission packet DU2 to the network bridging module 24 as an example, and the control processing unit 222 of the network conversion module 22 detects The second transmission port 226 of the network conversion module 22 is connected to the third transmission port 244 of the network bridge module 24, so that the second transmission packet is transmitted through the first transmission port 224 of the network conversion module 22 DU2 is connected to the third transmission port 244 of the network bridge module 24, thereby allowing the network bridge module 24 to correspondingly generate a second status parameter S2.

進一步,接續於步驟S16中,該網路橋接模組24將該第二狀態參數S2填入該第二資料封包DPACK2之該未使用區塊PK2中,並由該網路橋接模組24 將該第二資料封包DPACK2經一第四傳輸埠246與一第三傳輸路徑P3發送至該主機10。 Further, continuing in step S16, the network bridging module 24 fills the second status parameter S2 into the unused block PK2 of the second data packet DPACK2, and the network bridging module 24 The second data packet DPACK2 is sent to the host 10 via a fourth transmission port 246 and a third transmission path P3.

於步驟S18中,如第二C圖所示,本實施例之該主機10自該第三傳輸路徑P3連接至該網路橋接模組24,並由該主機10經該第三傳輸路徑P3接收該資料封包DPACK,因而接收來自於該網路橋接模組24所傳輸之該資料封包DPACK,該主機10藉此讀取該資料封包DPACK中的該第一狀態參數S1與該第二狀態參數S2,其係用以依據該第一狀態參數S1與該第二狀態參數S2判斷該第一傳輸路徑P1與該第二傳輸路徑P2哪一者發生斷線的情況,當該第一狀態參數S1為無時,該主機10判斷該第一傳輸路徑P1斷線,當該第二狀態參數S2為無時,該主機10判斷該第一傳輸路徑P1與該第二傳輸路徑P2斷線。 In step S18, as shown in Figure 2C, the host 10 in this embodiment is connected to the network bridge module 24 from the third transmission path P3, and is received by the host 10 through the third transmission path P3. The data packet DPACK is received, thereby receiving the data packet DPACK transmitted from the network bridge module 24, whereby the host 10 reads the first status parameter S1 and the second status parameter S2 in the data packet DPACK. , which is used to determine which of the first transmission path P1 and the second transmission path P2 is disconnected based on the first state parameter S1 and the second state parameter S2. When the first state parameter S1 is When none, the host 10 determines that the first transmission path P1 is disconnected. When the second status parameter S2 is none, the host 10 determines that the first transmission path P1 and the second transmission path P2 are disconnected.

本實施例係以該主機10作為該第二資料封包DPACK2之判斷,但本發明不限於此,當該第一狀態參數S1為否或不明時,該第二資料封包DPACK2對應於該第一傳輸路徑P1斷線,當該第二狀態參數S2為否或不明時,該第二資料封包DPACK2對應於該第一傳輸路徑P1與該第二傳輸路徑P2斷線,因此,當一電子裝置可判斷該第一狀態參數S1與該第二狀態參數S2為否或不明時,即可取代該主機10,甚至是該網路橋接模組24整合此一邏輯判斷功能,而藉由其控制處理單元242自行判斷。其中,該未使用區塊PK2為複數個參數值,其對應於該些個傳輸路徑之連線狀態,例如:參數A至參數F,參數A、B為對應於本地端裝置之第一傳輸埠與第二傳輸埠之系統狀態,參數C、D為本地端裝置之前第一相鄰裝置之第一傳輸埠與第二傳輸埠之系統狀態,參數D、F為本地端裝置之前第二相鄰裝置(即前第一相鄰裝置之前一相鄰裝置)之第一傳輸埠與第二傳輸埠之系統狀態,且參數A至參數F之參數內容為X、Y與N,分別代表離線、上線與不明之系統狀態,因而讓該網路橋接模組24取得相鄰之網路模組的連線狀態,本實施例之第一傳輸路徑P1與該第二傳輸路徑P2之連線狀態分別為對應於參數D與參數B之參數內容。 In this embodiment, the host 10 is used to determine the second data packet DPACK2, but the invention is not limited thereto. When the first status parameter S1 is negative or unknown, the second data packet DPACK2 corresponds to the first transmission The path P1 is disconnected. When the second status parameter S2 is negative or unknown, the second data packet DPACK2 corresponds to the first transmission path P1 and the second transmission path P2 being disconnected. Therefore, when an electronic device can determine When the first status parameter S1 and the second status parameter S2 are negative or unknown, the host 10 can be replaced, or even the network bridge module 24 integrates this logical judgment function, and controls the processing unit 242 through its Use your own judgment. Among them, the unused block PK2 is a plurality of parameter values, which correspond to the connection status of the transmission paths, for example: parameter A to parameter F, and parameters A and B correspond to the first transmission port of the local device. and the system status of the second transmission port. Parameters C and D are the system status of the first transmission port and the second transmission port of the first neighboring device before the local device. Parameters D and F are the second neighboring device before the local device. The system status of the first transmission port and the second transmission port of the device (that is, the first adjacent device before the first adjacent device), and the parameter contents of parameter A to parameter F are X, Y, and N, which represent offline and online respectively. and unknown system status, thus allowing the network bridge module 24 to obtain the connection status of the adjacent network module. The connection statuses of the first transmission path P1 and the second transmission path P2 in this embodiment are respectively Corresponds to the parameter content of parameter D and parameter B.

上述之實施例為主機10支援LLDP的情況下,執行步驟S16與步驟S18,除此之外,更可為其他支援LLDP之網管型終端裝置接收該資料封包 DPACK並判斷該第一狀態參數S1與該第二狀態參數S2,例如:網管型交換器、網管型路由器。 In the above embodiment, when the host 10 supports LLDP, step S16 and step S18 are executed. In addition, the data packet can also be received for other network managed terminal devices that support LLDP. DPACK and determine the first status parameter S1 and the second status parameter S2, such as a network-managed switch or a network-managed router.

上述之實施例中,該網路橋接模組24之功能為相當於一交換集線器(Switch HUB)或一集線器(HUB),該網路轉換模組22之功能相當於一光電轉換器,特別是該網路轉換模組22與該網路橋接模組24為支援乙太網路(Ethernet),因此,該第一傳輸路徑P1為光纖網路,該第二傳輸路徑P2為纜線網路或雙絞線網路,亦即該第一傳輸路徑P1與該第二傳輸路徑P2為不同傳輸介面。 In the above embodiment, the network bridging module 24 functions as a switching hub (Switch HUB) or a hub (HUB), and the network conversion module 22 functions as a photoelectric converter, especially The network conversion module 22 and the network bridge module 24 support Ethernet. Therefore, the first transmission path P1 is an optical fiber network, and the second transmission path P2 is a cable network or In the twisted pair network, that is, the first transmission path P1 and the second transmission path P2 are different transmission interfaces.

如第三A圖至第三C圖所示,其與第二A圖至第二C圖之差異在於第三A圖至第三C圖之該網路轉換模組22發送一第一探測封包FIN1至該遠端模組20,該網路橋接模組24發送一第二探測封包FIN2至該網路轉換模組22。因此,本實施例係以該遠端模組20至該網路橋接模組24之間係以傳輸控制協定(TCP)作為據理。復參閱第一圖,於步驟S10中,該網路轉換模組22發送該第一探測封包FIN1至該遠端模組20,使該遠端模組20以該第一傳輸封包DU1作為確認封包並傳送至該網路轉換模組22,其係用以偵測第一傳輸路徑P1之連線狀態;於步驟S14中,該網路橋接模組24發送該第二探測封包FIN2至該網路轉換模組22,使該網路轉換模組22以該第二傳輸封包DU2作為確認封包並傳送至該網路橋接模組24,其係用以偵測第二傳輸路徑P2之連線狀態;其餘步驟同於上一實施例,因此不再贅述。 As shown in the third Figure A to the third Figure C, the difference from the second Figure A to the second Figure C is that the network conversion module 22 in the third Figure A to the third Figure C sends a first detection packet. FIN1 to the remote module 20, and the network bridge module 24 sends a second detection packet FIN2 to the network conversion module 22. Therefore, this embodiment is based on the assumption that the transmission control protocol (TCP) is used between the remote module 20 and the network bridge module 24 . Referring back to the first figure, in step S10, the network conversion module 22 sends the first detection packet FIN1 to the remote module 20, so that the remote module 20 uses the first transmission packet DU1 as a confirmation packet. and sent to the network conversion module 22, which is used to detect the connection status of the first transmission path P1; in step S14, the network bridge module 24 sends the second detection packet FIN2 to the network The conversion module 22 causes the network conversion module 22 to use the second transmission packet DU2 as a confirmation packet and transmit it to the network bridge module 24, which is used to detect the connection status of the second transmission path P2; The remaining steps are the same as in the previous embodiment and will not be described again.

本發明之該網路橋接模組24除了經由單一網路轉換模組22連接至該遠端模組20之外,更可進一步在該網路橋接模組24與該遠端模組20之間進一步增設另一網路轉換模組,也就是該網路橋接模組24與該遠端模組20之間新增一傳輸路徑,並再次轉換傳輸介面,以下進一步說明。 In addition to being connected to the remote module 20 through a single network conversion module 22, the network bridging module 24 of the present invention can further be connected between the network bridging module 24 and the remote module 20. Another network conversion module is further added, that is, a transmission path is added between the network bridge module 24 and the remote module 20 , and the transmission interface is converted again, as further described below.

請參閱第四圖,其為本發明之另一實施例之偵測連線狀態之流程圖。如圖所示,本發明之網路裝置連線狀態之偵測方法,其執行以下步驟:步驟S100:第一網路轉換模組偵測本身與遠端模組之間的第一傳輸路徑並對應產生第一狀態參數; 步驟S120:第一網路轉換模組將第一狀態參數填入第一資料封包之未使用區塊,並傳送資料封包至第二網路轉換模組;步驟S140:第二網路轉換模組偵測本身與第一網路轉換模組之間的第二傳輸路徑並對應產生第二狀態參數;步驟S160:第二網路轉換模組將第二狀態參數填入第二資料封包之未使用區塊,並傳送第二資料封包至網路橋接模組;步驟S180:網路橋接模組偵測本身與第二網路轉換模組之間的第三傳輸路徑並對應產生第三狀態參數;步驟S200:網路橋接模組將第三狀態參數填入至第三資料封包之未使用區塊,並傳送第三資料封包至主機;以及步驟S220:主機讀取第一狀態參數、第二狀態參數與第三狀態參數,其係用以判斷第一傳輸路徑、第二傳輸路徑與第三傳輸路徑是否斷線。 Please refer to Figure 4, which is a flow chart of detecting connection status according to another embodiment of the present invention. As shown in the figure, the method for detecting the connection status of a network device of the present invention performs the following steps: Step S100: The first network conversion module detects the first transmission path between itself and the remote module and Correspondingly generate the first state parameter; Step S120: The first network conversion module fills the first status parameter into the unused block of the first data packet, and sends the data packet to the second network conversion module; Step S140: The second network conversion module Detect the second transmission path between itself and the first network conversion module and generate the second status parameter accordingly; Step S160: The second network conversion module fills the second status parameter into the unused part of the second data packet block, and transmits the second data packet to the network bridging module; Step S180: The network bridging module detects the third transmission path between itself and the second network conversion module and generates a third status parameter accordingly; Step S200: The network bridging module fills the third status parameter into the unused block of the third data packet, and sends the third data packet to the host; and Step S220: The host reads the first status parameter and the second status The parameter and the third status parameter are used to determine whether the first transmission path, the second transmission path and the third transmission path are disconnected.

請一併參閱第五A圖至第五D圖,其為本發明之網路裝置連線狀態之偵測方法所搭配之偵測系統2,其系應用於偵測一主機30與一遠端模組40之間的傳輸路徑是否斷線,該偵測系統2包含一第一網路轉換模組42、一第二網路轉換模組44與一網路橋接模組46,本實施例之主機30同於上述實施例之主機10亦是具有一處理單元32之電腦主機作為舉例,但並非僅限於此,更可為伺服器、筆記型電腦、平板電腦或具備資料讀取能力與邏輯運算能力基礎之電子裝置皆為本發明所指之主機30。本實施例之該遠端模組40、該第一網路轉換模組42、該第二網路轉換模組44與該網路橋接模組46,本實施例中,該遠端模組40與該第一網路轉換模組42之間經一第一傳輸路徑P11相互連接,該第一網路轉換模組42與該第二網路轉換模組44之間經一第二傳輸路徑P12相互連接,該第二網路轉換模組44與該網路橋接模組46之間經一第三傳輸路徑P13相互連接,該網路橋接模組46與該主機30之間經由一第四傳輸路徑P14相接,該第一網路轉換模組42依據一資料鏈路層LINK經該網路橋接模組46傳送一資料封包(Data Packet)DPACK至該主機20。 Please refer to Figures 5A to 5D together, which are the detection system 2 used in conjunction with the method for detecting the connection status of a network device of the present invention, which is used to detect a host 30 and a remote end. Whether the transmission path between the modules 40 is disconnected, the detection system 2 includes a first network conversion module 42, a second network conversion module 44 and a network bridging module 46. In this embodiment The host 30 is a computer host with a processing unit 32 as an example, but it is not limited to this. It can also be a server, a notebook computer, a tablet computer, or a computer host with data reading capabilities and logical operations. The capability-based electronic devices are all the host 30 referred to in the present invention. In this embodiment, the remote module 40, the first network conversion module 42, the second network conversion module 44 and the network bridging module 46. In this embodiment, the remote module 40 The first network conversion module 42 is connected to each other through a first transmission path P11, and the first network conversion module 42 and the second network conversion module 44 are connected to each other through a second transmission path P12. The second network conversion module 44 and the network bridging module 46 are connected to each other through a third transmission path P13, and the network bridging module 46 and the host 30 are connected through a fourth transmission path P13. The path P14 is connected, and the first network conversion module 42 transmits a data packet (Data Packet) DPACK to the host 20 through the network bridge module 46 according to a data link layer LINK.

本實施例之該遠端模組40設有一控制處理單元402與一遠端傳輸埠404,該第一網路轉換模組42設有一控制處理單元422、一第一傳輸埠424與一第二傳輸埠426,該第二網路轉換模組44設有一控制處理單元442、一第三傳輸埠444與一第四傳輸埠446,該網路橋接模組46設有一控制處理單元462、一第五傳輸埠464與一第六傳輸埠466,該主機30更設有一主機傳輸埠302,第一傳輸路徑P11為該遠端模組40之遠端傳輸埠404連接該第一網路轉換模組42之第一傳輸埠424,該第二傳輸路徑P12為該第一網路轉換模組42之第二傳輸埠426連接該第二網路轉換模組44之第三傳輸埠444,該第三傳輸路徑P13為該第二網路轉換模組44之第四傳輸埠446連接網路橋接模組46之第五傳輸埠464,該第四傳輸路徑P14為網路橋接模組46之第六傳輸埠466連接該主機30之主機傳輸埠302。 The remote module 40 of this embodiment is provided with a control processing unit 402 and a remote transmission port 404. The first network conversion module 42 is provided with a control processing unit 422, a first transmission port 424 and a second Transmission port 426. The second network conversion module 44 is provided with a control processing unit 442, a third transmission port 444 and a fourth transmission port 446. The network bridge module 46 is provided with a control processing unit 462, a third transmission port 446. There are five transmission ports 464 and a sixth transmission port 466. The host 30 is further provided with a host transmission port 302. The first transmission path P11 is the remote transmission port 404 of the remote module 40 connected to the first network conversion module. The first transmission port 424 of 42, the second transmission path P12 is the second transmission port 426 of the first network conversion module 42 connected to the third transmission port 444 of the second network conversion module 44, the third The transmission path P13 is the fourth transmission port 446 of the second network conversion module 44 connected to the fifth transmission port 464 of the network bridge module 46 , and the fourth transmission path P14 is the sixth transmission of the network bridge module 46 Port 466 is connected to the host transmission port 302 of the host 30 .

於步驟S100中,如第五A圖所示,該第一網路轉換模組42偵測本身與該遠端模組40之間的連接狀態,本實施例之舉例為該第一網路轉換模組42接收該遠端模組40所發送之一第一傳送封包DU11,該第一網路轉換模組42藉由是否接收到該遠端模組40之該第一傳送封包DU11,用以偵測該第一網路轉換模組42與該遠端模組40之間的連接狀態,亦即偵測該第一網路轉換模組42與該遠端模組40之間的該第一傳輸路徑P11是否斷線,其中基於LLDP,該遠端模組40發送第一傳輸封包DU11至該第一網路轉換模組42作為舉例,由該遠端模組40之控制處理單元402偵測到該遠端模組40之遠端傳輸埠404連接該第一網路轉換模組42之第一傳輸埠424,因而經該遠端模組40之遠端傳輸埠404傳送該第一傳輸封包DU11至該第一網路轉換模組42之第一傳輸埠424,因而讓該第一網路轉換模組42對應產生一第一狀態參數S11。 In step S100, as shown in Figure 5A, the first network conversion module 42 detects the connection status between itself and the remote module 40. In this embodiment, the first network conversion module 42 detects the connection status between itself and the remote module 40. The module 42 receives a first transmission packet DU11 sent by the remote module 40. The first network conversion module 42 determines whether the first transmission packet DU11 of the remote module 40 is received. Detecting the connection status between the first network conversion module 42 and the remote module 40 , that is, detecting the first connection status between the first network conversion module 42 and the remote module 40 Whether the transmission path P11 is disconnected. Based on LLDP, the remote module 40 sends the first transmission packet DU11 to the first network conversion module 42 as an example, which is detected by the control processing unit 402 of the remote module 40 The remote transmission port 404 of the remote module 40 is connected to the first transmission port 424 of the first network conversion module 42, so that the first transmission packet is transmitted through the remote transmission port 404 of the remote module 40 DU11 is connected to the first transmission port 424 of the first network conversion module 42, so that the first network conversion module 42 correspondingly generates a first status parameter S11.

接續於步驟S120中,該第一網路轉換模組42將該第一傳輸路徑P11之連線狀態對應之該第一狀態參數S11填入一第一資料封包DPACK11中之該未使用區塊PK2,並由該第一網路轉換模組42將包含該第一狀態參數S11之該第一資料封包DPACK11經第二傳輸埠426發送至該第二網路轉換模組44。 Continuing in step S120, the first network conversion module 42 fills the first status parameter S11 corresponding to the connection status of the first transmission path P11 into the unused block PK2 in a first data packet DPACK11. , and the first network conversion module 42 sends the first data packet DPACK11 including the first status parameter S11 to the second network conversion module 44 through the second transmission port 426.

於步驟S140中,如第五B圖所示,該第二網路轉換模組44偵測本身與該第一網路轉換模組42之間的連接狀態,本實施例之舉例為該第二網路轉 換模組44接收該第一網路轉換模組42所發送之一第二傳送封包DU12,該第二網路轉換模組44藉由是否接收到該第一網路轉換模組42之該第二傳送封包DU12,用以偵測該第一網路轉換模組42與該第二網路轉換模組44之間的連接狀態,亦即偵測該第一網路轉換模組42與該第二網路轉換模組44之間的該第二傳輸路徑P12是否斷線。 In step S140, as shown in Figure 5B, the second network conversion module 44 detects the connection status between itself and the first network conversion module 42. In this embodiment, the second network conversion module 44 detects the connection status between itself and the first network conversion module 42. Internet transfer The module switching module 44 receives a second transmission packet DU12 sent by the first network switching module 42. The second network switching module 44 determines whether it has received the second transmission packet DU12 from the first network switching module 42. The second transmission packet DU12 is used to detect the connection status between the first network conversion module 42 and the second network conversion module 44, that is, to detect the connection status between the first network conversion module 42 and the third network conversion module 42. Whether the second transmission path P12 between the two network conversion modules 44 is disconnected.

接續上述,其中基於LLDP,同理,本實施例係以該第一網路轉換模組42發送該第二傳輸封包DU12至該第二網路轉換模組44作為舉例,由該第一網路轉換模組42之控制處理單元422偵測到該第一網路轉換模組42之第二傳輸埠426連接該第二網路轉換模組44之第三傳輸埠444,因而經該第一網路轉換模組42之第二傳輸埠426傳送該第二傳輸封包DU12至該第二網路轉換模組44之第三傳輸埠444,因而讓該第二網路轉換模組44對應產生一第二狀態參數S12,且進一步讀取該第一資料封包DPACK11之第一狀態參數S11;接續於步驟S160中,該第二網路轉換模組44將該第一狀態參數S11以及該第二傳輸路徑P12是否斷線的情況對應之該第二狀態參數S12填入一第二資料封包DPACK12中之該未使用區塊PK2,並由該第二網路轉換模組44將包含該第一狀態參數S11與該第二狀態參數S12之該第二資料封包DPACK12經第四傳輸埠446發送至該網路橋接模組46。 Continuing the above, based on LLDP, similarly, this embodiment takes the first network conversion module 42 to send the second transmission packet DU12 to the second network conversion module 44 as an example. The control processing unit 422 of the conversion module 42 detects that the second transmission port 426 of the first network conversion module 42 is connected to the third transmission port 444 of the second network conversion module 44, and therefore passes the first network The second transmission port 426 of the channel conversion module 42 transmits the second transmission packet DU12 to the third transmission port 444 of the second network conversion module 44, thereby allowing the second network conversion module 44 to generate a corresponding Two status parameters S12, and further read the first status parameter S11 of the first data packet DPACK11; continuing in step S160, the second network conversion module 44 converts the first status parameter S11 and the second transmission path The second status parameter S12 corresponding to whether P12 is disconnected is filled in the unused block PK2 in a second data packet DPACK12, and the second network conversion module 44 will include the first status parameter S11 The second data packet DPACK12 and the second status parameter S12 are sent to the network bridge module 46 through the fourth transmission port 446.

於步驟S180中,如第五C圖所示,該網路橋接模組46偵測本身與該第二網路轉換模組44之間的連接狀態,也就是該網路橋接模組46接收該第二網路轉換模組44所發送之一第三傳送封包DU13,該網路橋接模組24藉由是否接收到該第二網路轉換模組44之該第三傳送封包DU13,用以偵測該第二網路轉換模組44與該網路橋接模組46之間的連接狀態,亦即偵測該第二網路轉換模組44與該網路橋接模組46之間該第三傳輸路徑P13是否斷線,其中基於LLDP,同理,本實施例係以該第二網路轉換模組44發送該第三傳輸封包DU13至該網路橋接模組46作為舉例,由該第二網路轉換模組44之控制處理單元442偵測到該第二網路轉換模組44之第四傳輸埠446連接該網路橋接模組46之第五傳輸埠464,因而經到該第二網路轉換模組44之第四傳輸埠446傳送該第三傳輸封包DU13至該網 路橋接模組46之第五傳輸埠464,因而讓該網路橋接模組46對應產生一第二狀態參數S13。 In step S180, as shown in Figure 5C, the network bridging module 46 detects the connection status between itself and the second network conversion module 44, that is, the network bridging module 46 receives the A third transmission packet DU13 is sent by the second network conversion module 44. The network bridging module 24 detects whether it receives the third transmission packet DU13 of the second network conversion module 44. Detect the connection status between the second network conversion module 44 and the network bridging module 46, that is, detect the third connection state between the second network conversion module 44 and the network bridging module 46. Whether the transmission path P13 is disconnected, which is based on LLDP. Similarly, in this embodiment, the second network conversion module 44 sends the third transmission packet DU13 to the network bridging module 46 as an example. The control processing unit 442 of the network conversion module 44 detects that the fourth transmission port 446 of the second network conversion module 44 is connected to the fifth transmission port 464 of the network bridge module 46, and therefore passes the second The fourth transmission port 446 of the network conversion module 44 transmits the third transmission packet DU13 to the network. The fifth transmission port 464 of the road bridge module 46 is configured to allow the network bridge module 46 to correspondingly generate a second status parameter S13.

接續於步驟S200中,該網路橋接模組46將該第一狀態參數S11、該第二狀態參數S12以及該第三傳輸路徑P13是否斷線對應之一第三狀態參數S13填入一第三資料封包DPACK13中之該未使用區塊PK2,並由該網路橋接模組46將包含該第一狀態參數S11、該第二狀態參數S12與該第三狀態參數S13之該第三資料封包DPACK13經第六傳輸埠466發送至該主機30。 Continuing in step S200, the network bridging module 46 fills the first status parameter S11, the second status parameter S12 and a third status parameter S13 corresponding to whether the third transmission path P13 is disconnected into a third The unused block PK2 in the data packet DPACK13, and the network bridging module 46 will include the first status parameter S11, the second status parameter S12 and the third status parameter S13 of the third data packet DPACK13 Sent to the host 30 via the sixth transmission port 466.

於步驟S220中,如第五D圖所示,本實施例之該主機30經該第四傳輸路徑P14連接至該網路橋接模組46,因而接收來自於該網路橋接模組46之該資料封包DPACK13,該主機30藉此讀取該資料封包DPACK13中的該第一狀態參數S11、該第二狀態參數S12與該第三狀態參數S13,其係用以依據該第一狀態參數S11、該第二狀態參數S12與該第三狀態參數S13判斷該第一傳輸路徑P11、該第二傳輸路徑P12與該第三傳輸路徑P13哪一者發生斷線的情況,當該第一狀態參數為否或不明時,該主機30判斷該第一傳輸路徑P11斷線,當該第二狀態參數為否或不明時,該主機30判斷該第二傳輸路徑P12斷線,當該第三狀態參數為否或不明時,該主機30判斷該第三傳輸路徑P13斷線。 In step S220, as shown in Figure 5D, the host 30 in this embodiment is connected to the network bridge module 46 through the fourth transmission path P14, and thus receives the network bridge module 46 from the network bridge module 46. Data packet DPACK13, the host 30 thereby reads the first status parameter S11, the second status parameter S12 and the third status parameter S13 in the data packet DPACK13, which is used according to the first status parameter S11, The second state parameter S12 and the third state parameter S13 determine which one of the first transmission path P11, the second transmission path P12, and the third transmission path P13 is disconnected. When the first state parameter is When No or unknown, the host 30 determines that the first transmission path P11 is disconnected. When the second status parameter is No or unknown, the host 30 determines that the second transmission path P12 is disconnected. When the third status parameter is If no or unknown, the host 30 determines that the third transmission path P13 is disconnected.

接續上述,其中,該未使用區塊PK2為複數個參數值,其對應於該些個傳輸路徑之連線狀態,例如:參數A至參數F,參數A、B為對應於本地端裝置之第一傳輸埠與第二傳輸埠之系統狀態,參數C、D為本地端裝置之前第一相鄰裝置之第一傳輸埠與第二傳輸埠之系統狀態,參數D、F為本地端裝置之前第二相鄰裝置(即前第一相鄰裝置之前一相鄰裝置)之第一傳輸埠與第二傳輸埠之系統狀態,且參數A至參數F之參數內容為X、Y與N,分別代表離線、上線與不明之系統狀態,因而讓該網路橋接模組46取得相鄰之網路模組的連線狀態,本實施例之該第一傳輸路徑P11、該第二傳輸路徑P12該第三傳輸路徑P13之連線狀態分別對應於參數F、參數D與參數B之參數內容。 Continuing from the above, the unused block PK2 is a plurality of parameter values, which correspond to the connection status of the transmission paths, for example: parameter A to parameter F, and parameters A and B are corresponding to the third parameter of the local device. The system status of a transmission port and a second transmission port. The parameters C and D are the system status of the first transmission port and the second transmission port of the first neighboring device before the local device. The parameters D and F are the system status of the first neighboring device before the local device. The system status of the first transmission port and the second transmission port of two adjacent devices (that is, the first adjacent device before the first adjacent device), and the parameter contents of parameter A to parameter F are X, Y, and N, respectively representing Offline, online and unknown system status, thus allowing the network bridge module 46 to obtain the connection status of the adjacent network module. In this embodiment, the first transmission path P11 and the second transmission path P12 are The connection status of the three transmission paths P13 corresponds to the parameter contents of parameter F, parameter D and parameter B respectively.

上述之實施例中,該網路橋接模組46之功能為相當於一交換集線器(Switch HUB)或一集線器(HUB),該第一網路轉換模組42與該第二網路轉換模 組44之功能相當於一光電轉換器,特別是該第一網路轉換模組42、該第二網路轉換模組44與該網路橋接模組46為支援乙太網路(Ethernet),因此,該第二傳輸路徑P12為光纖網路,第一傳輸路徑P11與該第三傳輸路徑P13為纜線網路或雙絞線網路,亦即該第二傳輸路徑P12之傳輸協定不同於該第一傳輸路徑P11與該第三傳輸路徑P13之傳輸協定,也就是該第二傳輸路徑P12之傳輸介面不同於該第一傳輸路徑P11與該第三傳輸路徑P13之傳輸介面。 In the above embodiment, the network bridging module 46 functions as a switching hub (Switch HUB) or a hub (HUB). The first network conversion module 42 and the second network conversion module are connected to each other. The function of the group 44 is equivalent to a photoelectric converter. In particular, the first network conversion module 42, the second network conversion module 44 and the network bridge module 46 support Ethernet. Therefore, the second transmission path P12 is an optical fiber network, and the first transmission path P11 and the third transmission path P13 are a cable network or a twisted pair network, that is, the transmission protocol of the second transmission path P12 is different from The transmission protocol of the first transmission path P11 and the third transmission path P13 means that the transmission interface of the second transmission path P12 is different from the transmission interface of the first transmission path P11 and the third transmission path P13.

如第六A圖至第六D圖所示,其與第五A圖至第五D圖之差異在於第六A圖至第六D圖之該網路轉換模組22發送一第一探測封包FIN11至該遠端模組20,該網路橋接模組24發送一第二探測封包FIN12至該網路轉換模組22。因此,本實施例係以該遠端模組20至該網路橋接模組24之間係以傳輸控制協定(TCP)作為據理。復參閱第一圖,於步驟S100中,該第一網路轉換模組42發送該第一探測封包FIN11至該遠端模組40,使該遠端模組40以該第一傳輸封包DU11作為確認封包並傳送至該第一網路轉換模組42,其係用以偵測第一傳輸路徑P11之連線狀態;於步驟S140中,該第二網路轉換模組44發送該第二探測封包FIN12至該第一網路轉換模組42,使該第一網路轉換模組42以該第二傳輸封包DU12作為確認封包並傳送至該第二網路轉換模組44;於步驟S180中,該網路橋接模組46發送該第三探測封包FIN13至該第二網路轉換模組44,使該第二網路轉換模組44以該第三傳輸封包DU13作為確認封包並傳送至該網路橋接模組46;其餘步驟同於上一實施例,因此不再贅述。 As shown in Figures 6A to 6D, the difference from Figures 5A to 5D is that the network conversion module 22 in Figures 6A to 6D sends a first detection packet. FIN11 to the remote module 20, and the network bridge module 24 sends a second detection packet FIN12 to the network conversion module 22. Therefore, this embodiment is based on the assumption that the transmission control protocol (TCP) is used between the remote module 20 and the network bridge module 24 . Referring back to the first figure, in step S100, the first network conversion module 42 sends the first detection packet FIN11 to the remote module 40, so that the remote module 40 uses the first transmission packet DU11 as The confirmation packet is sent to the first network conversion module 42, which is used to detect the connection status of the first transmission path P11; in step S140, the second network conversion module 44 sends the second detection The packet FIN12 is sent to the first network conversion module 42, so that the first network conversion module 42 uses the second transmission packet DU12 as a confirmation packet and sends it to the second network conversion module 44; in step S180 , the network bridging module 46 sends the third detection packet FIN13 to the second network conversion module 44, so that the second network conversion module 44 uses the third transmission packet DU13 as a confirmation packet and transmits it to the Network bridging module 46; the remaining steps are the same as in the previous embodiment, so they will not be described again.

上述之實施例為利用探測封包而偵測是否有回覆之傳輸封包做為偵測連線狀態之偵測方式,更有另一實施例為直接偵測對應之傳輸埠的連接訊號狀態,例如:該第一網路轉換模組42偵測其第一傳輸埠424之一第一連接訊號狀態即可偵測對應之第一傳輸路徑P11之連線狀態,同理,該第二網路轉換模組44與該網路橋接模組46即可藉由偵測對應之第三傳輸埠444與第五傳輸埠464之連接訊號狀態,即可偵測對應之第二傳輸路徑P12與第三傳輸路徑P13之連線狀態,因而對應產生第二狀態參數S12與第三狀態參數S13。 The above-mentioned embodiment uses detection packets to detect whether there is a reply transmission packet as a detection method for detecting the connection status. Another embodiment is to directly detect the connection signal status of the corresponding transmission port, for example: The first network conversion module 42 detects a first connection signal state of its first transmission port 424 to detect the connection state of the corresponding first transmission path P11. Similarly, the second network conversion module The group 44 and the network bridge module 46 can detect the corresponding second transmission path P12 and the third transmission path by detecting the connection signal status of the corresponding third transmission port 444 and the fifth transmission port 464. The connection status of P13 therefore corresponds to the second status parameter S12 and the third status parameter S13.

以上所述之實施例為利用單一TLV127區塊儲存為該資料封包DPACK之該未使用區塊PK2,但是本發明不侷限於此,更可由複數個TLV127區塊儲存為該資料封包DPACK之該未使用區塊PK2。 The above-described embodiment uses a single TLV127 block to store the unused block PK2 of the data packet DPACK. However, the present invention is not limited to this. It can also use multiple TLV127 blocks to store the unused block PK2 of the data packet DPACK. Use block PK2.

綜上所述,本發明之網路裝置連線狀態之偵測系統及其方法,其藉由資料封包中設置之未使用區塊中填入對應之狀態參數,以提供資料封包藉由未使用區塊對應於傳輸路徑之連線狀態,因而讓主機判斷出斷線之傳輸路徑,因而讓提供較為精確之網路故障狀態。 In summary, the system and method for detecting the connection status of a network device of the present invention fills in the corresponding status parameters in the unused blocks set in the data packet, so as to provide the data packet with unused information. The block corresponds to the connection status of the transmission path, thus allowing the host to determine the disconnected transmission path, thereby providing a more accurate network fault status.

故本發明實為一具有新穎性、進步性及可供產業上利用者,應符合我國專利法專利申請要件無疑,爰依法提出發明專利申請,祈 鈞局早日賜准專利,至感為禱。 Therefore, this invention is indeed novel, progressive and can be used industrially. It should undoubtedly comply with the patent application requirements of my country’s Patent Law. I file an invention patent application in accordance with the law and pray that the Office will grant the patent as soon as possible. I am deeply grateful.

惟以上所述者,僅為本發明之較佳實施例而已,並非用來限定本發明實施之範圍,舉凡依本發明申請專利範圍所述之形狀、構造、特徵及精神所為之均等變化與修飾,均應包括於本發明之申請專利範圍內。 However, the above are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. All changes and modifications can be made equally in accordance with the shape, structure, characteristics and spirit described in the patent scope of the present invention. , should be included in the patent scope of the present invention.

S10至S18    步驟Steps S10 to S18

Claims (17)

一種網路裝置連線狀態之偵測方法,其步驟包含:一網路轉換模組偵測該網路轉換模組之一第一連接埠經一第一傳輸路徑連接一遠端模組的連線狀態,並對應產生一第一狀態參數;該網路轉換模組將該第一狀態參數填入一第一資料封包之一未使用區塊,並經一第二傳輸埠傳送該第一資料封包至一網路橋接模組;該網路橋接模組存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經一第二傳輸路徑連接該網路轉換模組的連線狀態,並對應產生一第二狀態參數;以及該網路橋接模組將該第一狀態參數與該第二狀態參數填入至一第二資料封包之一未使用區塊;其中,當該第一狀態參數為否或不明時,該第一資料封包對應於該第一傳輸路徑斷線;當該第二狀態參數為否或不明時,該第二資料封包對應於該第二傳輸路徑斷線;該第一資料封包與該第二資料封包對應於一鏈路層發現協定。 A method for detecting the connection status of a network device. The steps include: a network conversion module detects a connection of a first connection port of the network conversion module to a remote module through a first transmission path. line status, and correspondingly generates a first status parameter; the network conversion module fills the first status parameter into an unused block of a first data packet, and transmits the first data through a second transmission port The packet is sent to a network bridge module; the network bridge module accesses the first status parameter and detects that a third transmission port of the network bridge module is connected to the network conversion module through a second transmission path connection status, and correspondingly generates a second status parameter; and the network bridging module fills the first status parameter and the second status parameter into an unused block of a second data packet; wherein, When the first status parameter is No or unknown, the first data packet corresponds to the disconnection of the first transmission path; when the second status parameter is No or unknown, the second data packet corresponds to the second transmission The path is disconnected; the first data packet and the second data packet correspond to a link layer discovery protocol. 如請求項1所述之網路裝置連線狀態之偵測方法,其中於該網路橋接模組將該第二傳輸封包之一第二狀態參數填入至該資料封包之該未使用區塊之步驟後,更包含:該網路橋接模組經一第四傳輸埠傳輸該第二資料封包至一主機;以及該主機依據該第二資料封包讀取該第一狀態參數與該第二狀態參數,其係用以判斷該第一傳輸路徑與該第二傳輸路徑是否斷線。 The method for detecting the connection status of a network device as described in claim 1, wherein the network bridge module fills a second status parameter of the second transmission packet into the unused block of the data packet After the steps, it further includes: the network bridge module transmits the second data packet to a host through a fourth transmission port; and the host reads the first status parameter and the second status according to the second data packet. Parameter used to determine whether the first transmission path and the second transmission path are disconnected. 如請求項1所述之網路裝置連線狀態之偵測方法,其中於一網路轉換模組偵測該網路轉換模組之一第一連接埠經一第一傳輸路徑連 接一遠端模組的連線狀態之步驟中,該網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組傳送該第一傳輸封包至該網路轉換模組或偵測該第一傳輸路徑對應之該網路轉換模組之該第一傳輸埠的一第一連接訊號狀態,其係用以偵測該第一連接埠經一第一傳輸路徑連接該遠端模組的連線狀態並對應產生該第一狀態參數。 The method for detecting the connection status of a network device as described in claim 1, wherein a network conversion module detects that a first connection port of the network conversion module is connected through a first transmission path. In the step of receiving the connection status of a remote module, the network conversion module receives a first transmission packet of the remote module through the first transmission path, or sends a first detection packet to the remote module. The end module enables the remote module to transmit the first transmission packet to the network conversion module or detect a first connection of the first transmission port of the network conversion module corresponding to the first transmission path. The signal status is used to detect the connection status of the first connection port to the remote module via a first transmission path and generate the first status parameter accordingly. 如請求項1所述之網路裝置連線狀態之偵測方法,其中於該網路橋接模組存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經一第二傳輸路徑連接該網路轉換模組的連線狀態之步驟中,該網路橋接模組為經該第二傳輸路徑接收該網路轉換模組之一第二傳輸封包,或該網路橋接模組更發送一第二探測封包至該網路轉換模組,使該網路轉換模組傳送該第二傳輸封包至該網路橋接模組,或該網路橋接模組偵測該第二傳輸路徑對應之該第三傳輸埠的一第二連接訊號狀態,其係用以偵測該第三傳輸埠經該第二傳輸路徑連接該網路轉換模組的連線狀態並對應產生該第二狀態參數。 The method for detecting the connection status of a network device as described in claim 1, wherein the first status parameter is accessed in the network bridge module and a third transmission port of the network bridge module is detected via a In the step of connecting the second transmission path to the connection status of the network conversion module, the network bridging module receives a second transmission packet of the network conversion module through the second transmission path, or the network The bridge module further sends a second detection packet to the network conversion module, causing the network conversion module to send the second transmission packet to the network bridge module, or the network bridge module detects the third A second connection signal state of the third transmission port corresponding to the two transmission paths is used to detect the connection state of the third transmission port to the network conversion module through the second transmission path and generate the corresponding Second status parameter. 一種網路裝置連線狀態之偵測方法,其步驟包含:一第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經一第一傳輸路徑連接一遠端模組的連線狀態,並對應產生一第一狀態參數;該第一網路轉換模組將該第一狀態參數填入該第一資料封包之一未使用區塊,並經一第二傳輸埠傳送該第一資料封包至一第二網路轉換模組;該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經一第二傳輸路徑連接該第一網路轉換模組的連線狀態,對應產生一第二狀態參數; 該第二網路轉換模組將該第一狀態參數與該第二狀態參數填入一第二資料封包之一未使用區塊,並經一第四傳輸埠傳送該第二資料封包至一網路橋接模組;該網路橋接模組存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經一第三傳輸路徑連接該第二網路轉換模組的連線狀態,對應產生一第三狀態參數;以及該網路橋接模組將該第一狀態參數、該第二狀態參數與該第三狀態參數填入至一第三資料封包之一未使用區塊;其中,當該第一狀態參數為否或不明時,該第三資料封包對應於該第一傳輸路徑斷線;當該第二狀態參數為否或不明時,該第三資料封包對應於該第二傳輸路徑斷線;當該第三狀態參數為否或不明時,該第三資料封包對應於該第三傳輸路徑斷線;該第一資料封包、該第二資料封包與該第三資料封包對應於一鏈路層發現協定。 A method for detecting the connection status of a network device, the steps include: a first network conversion module detects that a first transmission port of the first network conversion module is connected to a remote end through a first transmission path The connection status of the module, and correspondingly generates a first status parameter; the first network conversion module fills the first status parameter into an unused block of the first data packet, and transmits it through a second The port transmits the first data packet to a second network conversion module; the second network conversion module accesses the first status parameter and detects a third transmission port of the second network conversion module A second transmission path is connected to the connection status of the first network conversion module, correspondingly generating a second status parameter; The second network conversion module fills the first status parameter and the second status parameter into an unused block of a second data packet, and transmits the second data packet to a network through a fourth transmission port. A road bridge module; the network bridge module accesses the first status parameter and the second status parameter and detects that a fifth transmission port of the network bridge module is connected to the second network through a third transmission path The connection status of the channel conversion module correspondingly generates a third status parameter; and the network bridging module fills the first status parameter, the second status parameter and the third status parameter into a third data packet. An unused block; wherein, when the first status parameter is No or unknown, the third data packet corresponds to the disconnection of the first transmission path; when the second status parameter is No or unknown, the third data packet The third data packet corresponds to the disconnection of the second transmission path; when the third status parameter is No or unknown, the third data packet corresponds to the disconnection of the third transmission path; the first data packet, the second data The packet and the third data packet correspond to a link layer discovery protocol. 如請求項5所述之網路裝置連線狀態之偵測方法,其中於該網路橋接模組將該第一狀態參數、該第二狀態參數與該第三狀態參數填入至一第三資料封包之一未使用區塊之步驟後,更包含:該網路橋接模組傳輸該第三資料封包至一主機;以及該主機依據該資料封包讀取該第一狀態參數、該第二狀態參數與該第三狀態參數,其係用以判斷該第一傳輸路徑至該第三傳輸路徑之間是否有至少一者斷線。 The method for detecting the connection status of a network device as described in claim 5, wherein the first status parameter, the second status parameter and the third status parameter are filled in a third status parameter in the network bridge module. After the step of one unused block of the data packet, it further includes: the network bridge module transmits the third data packet to a host; and the host reads the first status parameter and the second status according to the data packet. The parameter and the third status parameter are used to determine whether at least one of the first transmission path to the third transmission path is disconnected. 如請求項5所述之網路裝置連線狀態之偵測方法,其中於一第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經一第一傳輸路徑連接一遠端模組的連線狀態之步驟中,該第一網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組傳送該第一傳輸封包至該第一網路轉換模組,或偵測該第一傳輸埠之一第一連接 訊號狀態,其係用以偵測該第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生該第一狀態參數。 The method for detecting the connection status of a network device as described in claim 5, wherein a first network conversion module detects a first transmission port of the first network conversion module through a first transmission path In the step of connecting the connection status of a remote module, the first network conversion module receives a first transmission packet of the remote module through the first transmission path, or sends a first detection packet to The remote module causes the remote module to transmit the first transmission packet to the first network conversion module, or detect a first connection of the first transmission port The signal status is used to detect the connection status of the first transmission port to the remote module through the first transmission path and generate the first status parameter accordingly. 如請求項5所述之網路裝置連線狀態之偵測方法,其中於該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經一第二傳輸路徑連接該第一網路轉換模組的連線狀態之步驟中,該第二網路轉換模組經一第二傳輸路徑接收該第一網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該第一網路轉換模組,使該第一網路轉換模組傳送該第二傳輸封包至該第二網路轉換模組,或偵測該第三轉換傳輸埠的一第二連接訊號狀態,其係用以產生該第二狀態訊號。 The method for detecting the connection status of a network device as described in claim 5, wherein the second network conversion module accesses the first status parameter and detects a third of the second network conversion module In the step of connecting the transmission port to the connection status of the first network conversion module through a second transmission path, the second network conversion module receives one of the first network conversion modules through a second transmission path. the second transmission packet, or a second detection packet is sent to the first network conversion module, so that the first network conversion module transmits the second transmission packet to the second network conversion module, or detects A second connection signal status of the third conversion transmission port is detected, which is used to generate the second status signal. 如請求項5所述之網路裝置連線狀態之偵測方法,其中於存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經一第三傳輸路徑連接該第二網路轉換模組的連線狀態之步驟中,該網路橋接模組經該第三傳輸路徑接收該第二網路轉換模組之一第三傳輸封包,或更發送一第三探測封包至該第二網路轉換模組,使該第二網路轉換模組傳送該第三傳輸封包至該網路橋接模組,或偵測該第五傳輸埠之一第三連接訊號狀態,其係用以偵測該第五傳輸埠經該第三傳輸路徑連接該第二網路轉換模組的連線狀態並對應產生該第三狀態訊號。 The method for detecting the connection status of a network device as described in claim 5, wherein the first status parameter and the second status parameter are accessed and the fifth transmission port of the network bridge module is detected via a In the step of connecting the third transmission path to the connection status of the second network conversion module, the network bridging module receives a third transmission packet of the second network conversion module through the third transmission path, or A third detection packet is further sent to the second network conversion module, so that the second network conversion module sends the third transmission packet to the network bridge module, or detects one of the fifth transmission ports. The third connection signal state is used to detect the connection state of the fifth transmission port to the second network conversion module through the third transmission path and generate the third state signal accordingly. 一種網路裝置連線狀態之偵測系統,其係應用於偵測一遠端模組之傳輸路徑的連線狀態,該偵測系統包含:一網路轉換模組,經一第一傳輸路徑連接該遠端模組;以及一網路橋接模組,經一第二傳輸路徑連接該網路轉換模組;其中該網路轉換模組偵測該網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生一第一狀態參數,該網路轉換模組將該第一狀態參數填入一第一資料封包並經一第二傳輸埠轉送至該網路橋接模組,該網路橋接模組 存取該第一狀態參數並偵測該網路橋接模組之一第三傳輸埠經該第二傳輸路徑連接該網路轉換模組的連線狀態而對應產生一第二狀態參數,該網路橋接模組將該第一狀態參數與該第二狀態參數填入至一第二資料封包,當該第一狀態參數為否或不明時,該第二資料封包對應於該第一傳輸路徑斷線,當該第二狀態參數為否或不明時,該第二資料封包對應於該第二傳輸路徑斷線;該第一資料封包與該第二資料封包對應於一鏈路層發現協定。 A detection system for the connection status of a network device, which is used to detect the connection status of a transmission path of a remote module. The detection system includes: a network conversion module, through a first transmission path Connect the remote module; and a network bridge module connects to the network conversion module through a second transmission path; wherein the network conversion module detects a first transmission port of the network conversion module The connection status of the remote module is connected through the first transmission path and a first status parameter is generated correspondingly. The network conversion module fills the first status parameter into a first data packet and transmits it through a second port forwarded to the network bridge module, the network bridge module Access the first status parameter and detect the connection status of a third transmission port of the network bridge module connected to the network conversion module through the second transmission path and correspondingly generate a second status parameter. The road bridge module fills the first status parameter and the second status parameter into a second data packet. When the first status parameter is negative or unknown, the second data packet corresponds to the first transmission path interruption. line, when the second status parameter is negative or unknown, the second data packet corresponds to the disconnection of the second transmission path; the first data packet and the second data packet correspond to a link layer discovery protocol. 如請求項10所述之網路裝置連線狀態之偵測系統,更包含:一主機,連接該網路橋接模組;其中,該網路橋接模組將包含該第一狀態參數與該第二狀態參數之該第二資料封包轉送至該主機,該主機依據該第一狀態參數為否或不明而判斷該第一傳輸路徑斷線,該主機依據該第二狀態參數為否或不明而判斷該第一傳輸路徑與該第二傳輸路徑斷線。 The system for detecting the connection status of a network device as described in claim 10 further includes: a host connected to the network bridge module; wherein the network bridge module will include the first status parameter and the third The second data packet with two status parameters is forwarded to the host. The host determines that the first transmission path is disconnected based on whether the first status parameter is negative or unknown. The host determines based on whether the second status parameter is negative or unclear. The first transmission path and the second transmission path are disconnected. 如請求項10所述之網路裝置連線狀態之偵測系統,其中該網路轉換模組經一第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組發送該第一傳輸封包至該網路轉換模組,或偵測該第一傳輸埠之一第一連接訊號狀態,其係用以偵測該第一傳輸路徑之連線狀態並對應產生該第一狀態參數;該網路橋接模組經一第二傳輸路徑接收該網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該網路轉換模組,使該網路轉換模組發送該第二傳輸封包至該網路橋接模組,或偵測該第三傳輸埠之一第二連接訊號狀態,其係用以偵測該第二傳輸路徑之連線狀態並對應產生該第二狀態參數。 The system for detecting the connection status of a network device as described in claim 10, wherein the network conversion module receives a first transmission packet of the remote module through a first transmission path, or sends a first transmission packet to the remote module via a first transmission path. Detect the packet to the remote module, causing the remote module to send the first transmission packet to the network conversion module, or detect the first connection signal status of the first transmission port, which is used to detect Detect the connection status of the first transmission path and generate the first status parameter accordingly; the network bridging module receives a second transmission packet of the network conversion module through a second transmission path, or sends a first The second detection packet is sent to the network conversion module, so that the network conversion module sends the second transmission packet to the network bridging module, or detects the second connection signal status of the third transmission port, which is Used to detect the connection status of the second transmission path and generate the second status parameter accordingly. 如請求項10所述之網路裝置連線狀態之偵測系統,其中該第一傳輸路徑與該第二傳輸路徑為不同傳輸介面,該網路橋接模組與該網路轉換模組支援一乙太網路。 The system for detecting the connection status of a network device as described in claim 10, wherein the first transmission path and the second transmission path are different transmission interfaces, and the network bridging module and the network conversion module support a Ethernet. 一種網路裝置連線狀態之偵測系統,其係應用於偵測一遠端模組之傳輸路徑的連線狀態,該偵測系統包含:一第一網路轉換模組,經一第一傳輸路徑連接該遠端模組;一第二網路轉換模組,經一第二傳輸路徑連接該第一網路轉換模組;以及一網路橋接模組,經一第三傳輸路徑連接該第二網路轉換模組;其中該第一網路轉換模組偵測該第一網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態並對應產生一第一狀態參數,該第一網路轉換模組將該第一狀態參數填入一第一資料封包並經一第二傳輸埠轉送至該第二網路轉換模組,該第二網路轉換模組存取該第一狀態參數並偵測該第二網路轉換模組之一第三傳輸埠經該第二傳輸路徑連接該第一網路轉換模組的連線狀態而對應產生一第二狀態參數,該第二網路轉換模組將該第一狀態參數與該第二狀態參數填入一第二資料封包並經一第四傳輸埠轉送至該網路橋接模組,該網路橋接模組存取該第一狀態參數與該第二狀態參數並偵測該網路橋接模組之一第五傳輸埠經該第三傳輸路徑連接該第二網路轉換模組的連線狀態,而對應產生一第三狀態參數,該網路橋接模組將該第一狀態參數、該第二狀態參數與該第三狀態參數填入一第三資料封包,當該第一狀態參數為否或不明時,該第三資料封包對應於該第一傳輸路徑斷線,當該第二狀態參數為否或不明時,該第三資料封包對應於該第二傳輸路徑斷線,當該第三狀態參數為否或不明時,該第三資料封包對應於該第三 傳輸路徑斷線;該第一資料封包、該第二資料封包與該第三資料封包對應於一鏈路層發現協定。 A detection system for the connection status of a network device, which is used to detect the connection status of a transmission path of a remote module. The detection system includes: a first network conversion module, through a first The transmission path is connected to the remote module; a second network conversion module is connected to the first network conversion module through a second transmission path; and a network bridge module is connected to the first network conversion module through a third transmission path. a second network conversion module; wherein the first network conversion module detects the connection status of a first transmission port of the first network conversion module connected to the remote module through the first transmission path and Correspondingly, a first status parameter is generated. The first network conversion module fills the first status parameter into a first data packet and forwards it to the second network conversion module through a second transmission port. The second network conversion module The network conversion module accesses the first status parameter and detects the connection status of a third transmission port of the second network conversion module connected to the first network conversion module through the second transmission path and responds accordingly Generating a second status parameter, the second network conversion module fills the first status parameter and the second status parameter into a second data packet and forwards it to the network bridging module through a fourth transmission port, The network bridge module accesses the first status parameter and the second status parameter and detects that a fifth transmission port of the network bridge module is connected to the second network conversion module through the third transmission path. connection state, and correspondingly generates a third state parameter. The network bridging module fills the first state parameter, the second state parameter and the third state parameter into a third data packet. When the first state When the parameter is No or unknown, the third data packet corresponds to the disconnection of the first transmission path. When the second status parameter is No or unknown, the third data packet corresponds to the disconnection of the second transmission path. When When the third status parameter is no or unknown, the third data packet corresponds to the third The transmission path is disconnected; the first data packet, the second data packet and the third data packet correspond to a link layer discovery protocol. 如請求項14所述之網路裝置連線狀態之偵測系統,更包含:一主機,連接該網路橋接模組;其中,該網路橋接模組經一第六傳輸埠將包含該第一狀態參數、該第二狀態參數與該第三狀態參數之該第三資料封包轉送至該主機,該主機依據該第一狀態參數為否或不明而判斷該第一傳輸路徑斷線,該主機依據第二狀態參數為否或不明而判斷該第二傳輸路徑斷線,該主機依據該第三狀態參數為否或不明而判斷該該第三傳輸路徑斷線。 The system for detecting the connection status of a network device as described in claim 14 further includes: a host connected to the network bridging module; wherein the network bridging module includes the third transmission port via a sixth transmission port The third data packet of a status parameter, the second status parameter and the third status parameter is forwarded to the host. The host determines that the first transmission path is disconnected based on whether the first status parameter is negative or unknown. The host The host determines that the second transmission path is disconnected based on whether the second status parameter is negative or unknown, and the host determines that the third transmission path is disconnected based on whether the third status parameter is negative or unknown. 如請求項14所述之網路裝置連線狀態之偵測系統,其中該第一網路轉換模組經該第一傳輸路徑接收該遠端模組之一第一傳輸封包,或更發送一第一探測封包至該遠端模組,使該遠端模組發送該第一傳輸封包至該第一網路轉換模組,或偵測該第一傳輸埠之一第一連接訊號狀態,其係用以偵測該第一網路轉換模組之一第一傳輸埠經該第一傳輸路徑連接該遠端模組的連線狀態;該第二網路轉換模組經該第二傳輸路徑接收該第一網路轉換模組之一第二傳輸封包,或更發送一第二探測封包至該第一網路轉換模組,使該第一網路轉換模組發送該第二傳輸封包至該第二網路轉換模組,或偵測該第三傳輸埠之一第二連接訊號狀態,其係用以偵測該第二網路轉換模組之一第三傳輸埠經該第二傳輸路徑連接該第一網路轉換模組的連線狀態,並對應產生該第二狀態參數;該網路橋接模組經該第三傳輸路徑接收該第二網路轉換模組之一第三傳輸封包,或更發送一第三探測封包至該第二網路轉換模組,使該第二網路轉換模組發送該第三傳輸封包至該網路橋接模組,或偵測該第五傳輸埠之一第三連接訊號狀態,其係用以偵測該網路橋接模組 經該第三傳輸路徑連接該第二網路轉換模組的連線狀態,並對應產生該第三狀態參數。 The system for detecting the connection status of a network device as described in claim 14, wherein the first network conversion module receives a first transmission packet from the remote module through the first transmission path, or sends a first transmission packet to the remote module via the first transmission path. The first detection packet is sent to the remote module, causing the remote module to send the first transmission packet to the first network conversion module, or to detect the first connection signal status of the first transmission port, which It is used to detect the connection status of a first transmission port of the first network conversion module connected to the remote module through the first transmission path; the second network conversion module passes through the second transmission path Receive a second transmission packet from the first network conversion module, or send a second detection packet to the first network conversion module, so that the first network conversion module sends the second transmission packet to The second network conversion module may detect the second connection signal status of the third transmission port, which is used to detect the third transmission port of the second network conversion module through the second transmission The path connects the connection status of the first network conversion module and generates the second status parameter correspondingly; the network bridge module receives a third transmission of the second network conversion module through the third transmission path packet, or send a third detection packet to the second network conversion module, so that the second network conversion module sends the third transmission packet to the network bridge module, or detects the fifth transmission The third connection signal status of the port is used to detect the network bridge module The connection status of the second network conversion module is connected through the third transmission path, and the third status parameter is generated accordingly. 如請求項14所述之網路裝置連線狀態之偵測系統,其中,該第二傳輸路徑之傳輸介面不同於該第一傳輸路徑與該第三傳輸路徑之傳輸介面,該第一網路轉換模組、該第二網路轉換模組與該網路橋接模組支援一乙太網路。 The system for detecting the connection status of a network device as described in claim 14, wherein the transmission interface of the second transmission path is different from the transmission interfaces of the first transmission path and the third transmission path, and the first network The conversion module, the second network conversion module and the network bridge module support an Ethernet network.
TW111104009A 2022-01-28 2022-01-28 System for detecting connection status of network devices and status transmission method thereof TWI813159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111104009A TWI813159B (en) 2022-01-28 2022-01-28 System for detecting connection status of network devices and status transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111104009A TWI813159B (en) 2022-01-28 2022-01-28 System for detecting connection status of network devices and status transmission method thereof

Publications (2)

Publication Number Publication Date
TW202332300A TW202332300A (en) 2023-08-01
TWI813159B true TWI813159B (en) 2023-08-21

Family

ID=88559055

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111104009A TWI813159B (en) 2022-01-28 2022-01-28 System for detecting connection status of network devices and status transmission method thereof

Country Status (1)

Country Link
TW (1) TWI813159B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201939923A (en) * 2018-03-09 2019-10-01 和碩聯合科技股份有限公司 Network inspection method and network device
CN113179189A (en) * 2021-05-26 2021-07-27 锐捷网络股份有限公司 Method and device for detecting fault of segmented route, first segmented route and destination route

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201939923A (en) * 2018-03-09 2019-10-01 和碩聯合科技股份有限公司 Network inspection method and network device
CN113179189A (en) * 2021-05-26 2021-07-27 锐捷网络股份有限公司 Method and device for detecting fault of segmented route, first segmented route and destination route

Also Published As

Publication number Publication date
TW202332300A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
EP1892929B1 (en) A method, an apparatus and a system for message transmission
JP3511875B2 (en) Communication control system
US8270306B2 (en) Fault management apparatus and method for identifying cause of fault in communication network
CN107919947B (en) Coding method for long message transmission of CAN bus
CN102474464B (en) Apparatus, system, and method for establishing point to point connections in FCOE
CN107508640B (en) Double-ring redundant self-healing optical fiber network construction method based on optical fiber channel technology
US20030097470A1 (en) System, device, and method for improving communication network reliability using trunk splitting
US20130223204A1 (en) Communication Device for a Redundantly Operable Industrial Communication Network and Method for Operating the Communication Device
JP4884184B2 (en) Communication device and program for link aggregation
EP1773008A1 (en) Method and system for implementing virtual router redundancy protocol on a resilient packet ring
WO2002056524A9 (en) Fibre channel port adapter
JP2008160227A (en) Network apparatus and communication system
CN104618207A (en) Heterogeneous FC-AE-1553 network system and exchange method
US20080298258A1 (en) Information transfer capability discovery apparatus and techniques
JP4559512B2 (en) Packet transfer system and packet transfer method
CN102904759A (en) Reinforced EOC (Ethernet over Coax) terminal management system and method for broadcast television network
CN116760911A (en) Heterogeneous protocol conversion system and method
US6115361A (en) Link incident reporting extended link service for networks
CN112737867B (en) Cluster RIO network management method
TWI813159B (en) System for detecting connection status of network devices and status transmission method thereof
WO2023011047A1 (en) Processing method and apparatus
TWM629436U (en) System for detecting connection status of network devices
CA3031594A1 (en) Method for managing network nodes and communication control method thereof
CN105049239A (en) Interface connection relation identification method and system
CN114124852A (en) Data switch based on industrial manufacturing