[go: up one dir, main page]

TWI473467B - Network management device and conflict prevention method - Google Patents

Network management device and conflict prevention method Download PDF

Info

Publication number
TWI473467B
TWI473467B TW101121689A TW101121689A TWI473467B TW I473467 B TWI473467 B TW I473467B TW 101121689 A TW101121689 A TW 101121689A TW 101121689 A TW101121689 A TW 101121689A TW I473467 B TWI473467 B TW I473467B
Authority
TW
Taiwan
Prior art keywords
request packet
network management
electronic device
network
predetermined time
Prior art date
Application number
TW101121689A
Other languages
Chinese (zh)
Other versions
TW201401809A (en
Inventor
Chingchuan Huang
An Chien Chien
Original Assignee
Wistron Neweb Corp
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 Wistron Neweb Corp filed Critical Wistron Neweb Corp
Priority to TW101121689A priority Critical patent/TWI473467B/en
Publication of TW201401809A publication Critical patent/TW201401809A/en
Application granted granted Critical
Publication of TWI473467B publication Critical patent/TWI473467B/en

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

網路管理裝置以及防止衝突方法Network management device and method for preventing conflict

本揭露係有關於網路管理裝置,特別係有關於一種可防止衝突之網路管理裝置。The disclosure relates to a network management device, and more particularly to a network management device that can prevent conflicts.

近年來,隨著電腦與資訊產業的蓬勃發展,各種新的周邊設備可輕易的連結上個人電腦與筆記型電腦等等,其中周邊設備可能包含具有網路管理功能之裝置。目前許多網路管理功能僅能允許一個主控端,當網路中出現兩個以上之主控端,系統將會癱瘓。舉例而言,當使用者將具有網路管理功能之周邊設備連接至原本就存在網路管理功能之網路中時,連接於網路中之電子裝置的IP位址將會錯亂,導致系統無法正常工作。因此,亟需一種網路管理裝置與防止衝突方法使得周邊零件與主機可以避免衝突發生,增加周邊零件使用上的便利性。In recent years, with the rapid development of the computer and information industry, various new peripheral devices can be easily connected to personal computers and notebook computers, etc., and peripheral devices may include devices with network management functions. At present, many network management functions can only allow one master. When more than two masters appear in the network, the system will be paralyzed. For example, when a user connects a peripheral device having a network management function to a network that originally has a network management function, the IP address of the electronic device connected to the network may be disordered, resulting in the system being unable to normal work. Therefore, there is a need for a network management device and a method for preventing collisions so that peripheral components and the host can avoid collisions and increase the convenience of use of peripheral components.

本發明所提供之電子系統以及防止衝突方法,可藉由預先的判斷機制,預防兩個主控端的衝突發生,以維持系統作業之安全以及效率。The electronic system and the method for preventing conflicts provided by the present invention can prevent conflicts between two master terminals by a prior judgment mechanism to maintain the safety and efficiency of the system operation.

本發明提供一種網路管理裝置包括一伺服器、一資訊處理單元以及一伺服器管理模組。伺服器用以執行一網路管理功能。資訊處理單元用以將至少一第一請求封包傳送至至少一第一電子裝置,以及接收用以回覆第一請求封包之至少一第二請求封包。伺服器管理模組,用以當資訊處 理單元超過一第一既定時間未接收到來自第一電子裝置之第二請求封包時,致使伺服器開始執行網路管理功能,其中伺服器管理模組更包括一通訊槽介面。通訊槽介面用以當網路管理裝置連接至第一電子裝置時,產生第一請求封包,其中第一請求封包包括一第一選擇欄位,並且第一選擇欄位具有一第一辨識資訊,其中上述第一辨識資訊代表上述第一請求封包係用以偵測上述網路中是否具有與上述網路管理裝置相同之網路管理功能之上述第一電子裝置。The invention provides a network management device comprising a server, an information processing unit and a server management module. The server is used to perform a network management function. The information processing unit is configured to transmit the at least one first request packet to the at least one first electronic device, and receive the at least one second request packet to reply to the first request packet. Server management module for use as information When the processing unit fails to receive the second request packet from the first electronic device for a predetermined time, the server starts to perform the network management function, wherein the server management module further includes a communication slot interface. The communication slot interface is configured to generate a first request packet when the network management device is connected to the first electronic device, where the first request packet includes a first selection field, and the first selection field has a first identification information, The first identification information represents that the first request packet is used to detect whether the first electronic device in the network has the same network management function as the network management device.

本發明另提供一種防止衝突方法,適用於具有一網路管理功能之一網路管理裝置。防止衝突方法包括當網路管理裝置連接至至少一第一電子裝置時,傳送至少一第一請求封包至第一電子裝置,其中第一請求封包包括一第一選擇欄位,並且第一選擇欄位具有一第一辨識資訊,其中第一辨識資訊表示偵測行為;判斷是否在一第一既定時間內接收到用以回覆第一請求封包之至少一第二請求封包;以及當未在第一既定時間內接收到二請求封包時,致使網路管理功能開始執行。The invention further provides a method for preventing conflicts, which is suitable for a network management device having a network management function. The method for preventing conflict includes transmitting at least one first request packet to the first electronic device when the network management device is connected to the at least one first electronic device, wherein the first request packet includes a first selection field, and the first selection field The bit has a first identification information, wherein the first identification information indicates a detection behavior; determining whether a second request packet for replying to the first request packet is received within a first predetermined time; and when not in the first When the two request packets are received within a predetermined time, the network management function is started.

以下將詳細討論本發明各種實施例之裝置及使用方法。然而值得注意的是,本發明所提供之許多可行的發明概念可實施在各種特定範圍中。這些特定實施例僅用於舉例說明本發明之裝置及使用方法,但非用於限定本發明之範圍。The apparatus and method of use of various embodiments of the present invention are discussed in detail below. However, it is to be noted that many of the possible inventive concepts provided by the present invention can be implemented in various specific ranges. These specific examples are only intended to illustrate the apparatus and methods of use of the present invention, but are not intended to limit the scope of the invention.

第1圖為本發明所提供之電子系統之方塊圖。電子系 統1000包括一網路管理裝置100以及至少一電子裝置300-30N。網路管理裝置100,用以透過網路200與至少一電子裝置300-30N進行連接。網路200係為一IP網路。電子裝置300-30N可為具有與網路管理裝置100相同之網路管理功能的電子裝置及/或不具有與網路管理裝置100相同之網路管理功能的電子裝置。舉例而言,電子裝置300-30N可為一網路分享器等,本發明在此不加以限制。Figure 1 is a block diagram of an electronic system provided by the present invention. Electronic department The system 1000 includes a network management device 100 and at least one electronic device 300-30N. The network management device 100 is configured to connect to at least one electronic device 300-30N through the network 200. The network 200 is an IP network. The electronic devices 300-30N may be electronic devices having the same network management functions as the network management device 100 and/or electronic devices that do not have the same network management functions as the network management device 100. For example, the electronic device 300-30N can be a network sharer or the like, and the invention is not limited herein.

網路管理裝置100包括一伺服器120、一資訊處理單元140以及一伺服器管理模組160。伺服器120用以執行一網路管理功能,例如分配網際協議地址(IP位址)至所連接之電子裝置300-30N。在本發明之一實施例中,網路管理功能係經由動態主機設定協定(Dynamic Host Configuration Protocol;DHCP),分配網際協議地址給所連接之裝置,但本發明不限於此。任何無法允許兩個以上之主控端同時動作的網路管理功能皆在本發明之範疇。資訊處理單元140用以將至少一第一請求封包P1傳送至每一所連接之電子裝置300-30N,以及自所連接之電子裝置300-30N接收用以回覆第一請求封包P1之至少一第二請求封包P2及/或至少一第三請求封包P3。值得注意的是,資訊處理單元140可用以執行一作業系統以及一網路介面驅動程式,並且藉由網路協定將伺服器管理模組160所產生之封包傳送至網路200,以及自網路200接收來自電子裝置300-30N之封包。舉例而言,資訊處理單元140可藉由傳輸控制協定/網路協定(Transmission Control Protocol and Internet Protocol;TCP/IP)與伺服器管理模組160進行通訊,並將 伺服器管理模組160所產生之封包藉由傳輸控制協定/網路協定傳送至網路200,以及自網路200接收來自電子裝置300-30N之封包(例如,第二請求封包P2及/或第三請求封包P3)。伺服器管理模組160用以控制伺服器120之操作,並且在適當的環境下開啟伺服器120。另外,伺服器管理模組160更包括一通訊槽介面162(socket)。通訊槽介面162用以當網路管理裝置100藉由網路200連接至電子裝置300-30N時,產生第一請求封包P1,其中第一請求封包P1包括一第一選擇欄位(option),並且第一選擇欄位具有一第一辨識資訊。在本發明之一實施例中,第一辨識資訊代表第一請求封包P1係用以偵測網路200中是否具有與網路管理裝置100相同之網路管理功能之電子裝置。舉例而言,第一請求封包P1係用以偵測網路200是否有其它伺服器存在,第一辨識資訊係為”DHCP伺服器偵測”(DHCP sever detect),但本發明並不加以限制其字串之形式。The network management device 100 includes a server 120, an information processing unit 140, and a server management module 160. The server 120 is configured to perform a network management function, such as assigning an internet protocol address (IP address) to the connected electronic devices 300-30N. In an embodiment of the present invention, the network management function assigns an internet protocol address to the connected device via a Dynamic Host Configuration Protocol (DHCP), but the present invention is not limited thereto. Any network management function that does not allow more than two masters to operate simultaneously is within the scope of the present invention. The information processing unit 140 is configured to transmit at least one first request packet P1 to each connected electronic device 300-30N, and receive at least one of the first request packet P1 from the connected electronic device 300-30N. Two request packets P2 and/or at least one third request packet P3. It should be noted that the information processing unit 140 can be used to execute an operating system and a network interface driver, and transmit the packets generated by the server management module 160 to the network 200 through a network protocol, and from the network. 200 receives packets from the electronic devices 300-30N. For example, the information processing unit 140 can communicate with the server management module 160 by using Transmission Control Protocol and Internet Protocol (TCP/IP), and The packets generated by the server management module 160 are transmitted to the network 200 by the transmission control protocol/network protocol, and the packets from the electronic devices 300-30N are received from the network 200 (eg, the second request packet P2 and/or The third request packet P3). The server management module 160 is used to control the operation of the server 120 and to turn on the server 120 in an appropriate environment. In addition, the server management module 160 further includes a communication slot interface 162 (socket). The communication slot interface 162 is configured to generate a first request packet P1 when the network management device 100 is connected to the electronic device 300-30N by using the network 200, where the first request packet P1 includes a first selection field (option). And the first selection field has a first identification information. In an embodiment of the present invention, the first identification information represents that the first request packet P1 is used to detect whether the network 200 has the same network management function as the network management device 100. For example, the first request packet P1 is used to detect whether the network 200 has other servers, and the first identification information is "DHCP sever detect", but the invention is not limited. The form of its string.

在本發明之一實施例中,當網路管理裝置100藉由網路200連接至至少一電子裝置300-30N時,伺服器管理模組160之通訊槽介面162,產生至少一第一請求封包P1。資訊處理單元140將第一請求封包P1藉由網路200傳送至所連接之電子裝置300-30N。接著,伺服器管理模組160判斷是否在一第一既定時間內,自所連接之電子裝置300-30N收到用以回覆第一請求封包P1之第二請求封包P2。In an embodiment of the present invention, when the network management device 100 is connected to the at least one electronic device 300-30N by the network 200, the communication slot interface 162 of the server management module 160 generates at least one first request packet. P1. The information processing unit 140 transmits the first request packet P1 to the connected electronic devices 300-30N via the network 200. Next, the server management module 160 determines whether a second request packet P2 for replying to the first request packet P1 is received from the connected electronic device 300-30N within a first predetermined time.

當網路管理裝置100在第一既定時間後未接收到第二請求封包P2時,致使伺服器120開始執行網路管理功能。 舉例而言,當網路管理裝置100所連接之電子裝置300-30N皆不具有與網路管理裝置100相同之網路管理功能時,電子裝置300-30N則無法判讀來自伺服器管理模組160之第一請求封包P1,並且不會根據第一請求封包P1回覆一第二請求封包P2至網路管理裝置100。When the network management device 100 does not receive the second request packet P2 after the first predetermined time, the server 120 is caused to start executing the network management function. For example, when the electronic devices 300-30N to which the network management device 100 is connected do not have the same network management function as the network management device 100, the electronic devices 300-30N cannot be interpreted from the server management module 160. The first request packet P1, and does not reply a second request packet P2 to the network management device 100 according to the first request packet P1.

另外,當網路管理裝置100在第一既定時間內接收到第二請求封包P2時,伺服器管理模組160更用以判斷第二請求封包P2是否包括一第二選擇欄位(option)。舉例而言,當網路管理裝置100所連接之電子裝置300-30N中至少一電子裝置具有與網路管理裝置100相同之網路管理功能時,具有網路管理功能之電子裝置則可以判讀來自伺服器管理模組160之第一請求封包P1,並且根據第一請求封包P1回覆一第二請求封包P2至網路管理裝置100。在本發明之一實施例中,第二請求封包P2可包括一第二選擇欄位,其中第二選擇欄位包括一第二辨識資訊。在本發明之另一實施例中,第二請求封包P2亦可不包括第二選擇欄位。In addition, when the network management device 100 receives the second request packet P2 in the first predetermined time, the server management module 160 is further configured to determine whether the second request packet P2 includes a second selection field. For example, when at least one of the electronic devices 300-30N connected to the network management device 100 has the same network management function as the network management device 100, the electronic device having the network management function can be interpreted from The first request packet P1 of the server management module 160 is replied to the second request packet P2 to the network management device 100 according to the first request packet P1. In an embodiment of the present invention, the second request packet P2 may include a second selection field, wherein the second selection field includes a second identification information. In another embodiment of the present invention, the second request packet P2 may also not include the second selection field.

當網路管理裝置100所接收之第二請求封包P2未包括第二選擇欄位時,通訊槽介面162在一第二既定時間後重新藉由資訊處理單元140傳送第一請求封包P1至目前所連接之電子裝置300-30N。值得注意的是,目前所連接之電子裝置300-30N之數目以及種類可能與網路管理裝置100剛開始連接至網路時不相同。When the second request packet P2 received by the network management device 100 does not include the second selection field, the communication slot interface 162 retransmits the first request packet P1 to the current location by the information processing unit 140 after a second predetermined time. Connected electronic devices 300-30N. It is worth noting that the number and type of currently connected electronic devices 300-30N may not be the same as when the network management device 100 is initially connected to the network.

當網路管理裝置100所接收之第二請求封包P2包括第二選擇欄位時,伺服器管理模組160產生一事件日誌(log),並將事件日誌傳送至一管理端(未圖示)。值得注意 的是,管理端可為遠端或者連接於伺服器管理模組160之裝置,用以管理伺服器管理模組160及其所連接之電子裝置的裝置,本發明在此不加以限制。When the second request packet P2 received by the network management device 100 includes the second selection field, the server management module 160 generates an event log (log) and transmits the event log to a management terminal (not shown). . Noteworthy The management terminal may be a remote device or a device connected to the server management module 160 for managing the server management module 160 and the device connected thereto. The invention is not limited herein.

在本發明之另一實施例中,當伺服器120之網路管理功能開始執行時後,伺服器管理模組160更用以開啟一偵測機制。在偵測機制中,通訊槽介面162在一第三既定時間後,重新產生至少一第一請求封包P1,並藉由資訊處理單元140將第一請求封包P1傳送至目前所連接之電子裝置。接著,伺服器管理模組160判斷是否在一第四既定時間內,自所連接之電子裝置收到用以回覆重新產生之第一請求封包P1的第三請求封包P3。當網路管理裝置100在第四既定時間後未接收到第三請求封包P3時,伺服器管理模組160繼續在第三既定時間後,致使通訊槽介面162重新產生至少一第一請求封包P1。舉例而言,當網路管理裝置100目前所連接之電子裝置皆不具有與網路管理裝置100相同之網路管理功能時,電子裝置則無法判讀來自伺服器管理模組160之第一請求封包P1,並且不會根據第一請求封包P1回覆一第三請求封包P3至網路管理裝置100。當網路管理裝置100接收到用以回覆第一請求封包P1之至少一第三請求封包P3時,伺服器管理模組160產生一事件日誌,並將事件日誌傳送至管理端。舉例而言,當網路管理裝置100所連接之電子裝置中至少一電子裝置具有與網路管理裝置100相同之網路管理功能時,具有網路管理功能之電子裝置則可以判讀來自伺服器管理模組160之第一請求封包P1,並且根據第一請求封包P1回覆一 第三請求封包P3至網路管理裝置100。在本發明之一實施例中,第三請求封包P3可包括一第三選擇欄位,其中第三選擇欄位包括一第三辨識資訊。在本發明之另一實施例中,第三請求封包P3亦可不包括第三選擇欄位。在本發明之一實施例中,第二辨識資訊以及第三辨識資訊可為”DHCP伺服器存在”(DHCP sever existed),但本發明並不加以限制其字串之形式。In another embodiment of the present invention, the server management module 160 is further configured to enable a detection mechanism when the network management function of the server 120 is started. In the detection mechanism, the communication slot interface 162 regenerates at least one first request packet P1 after a third predetermined time, and transmits the first request packet P1 to the currently connected electronic device by the information processing unit 140. Next, the server management module 160 determines whether a third request packet P3 for replying to the regenerated first request packet P1 is received from the connected electronic device within a fourth predetermined time. When the network management device 100 does not receive the third request packet P3 after the fourth predetermined time, the server management module 160 continues to cause the communication slot interface 162 to regenerate at least one first request packet P1 after the third predetermined time. . For example, when the electronic device currently connected to the network management device 100 does not have the same network management function as the network management device 100, the electronic device cannot interpret the first request packet from the server management module 160. P1, and does not reply a third request packet P3 to the network management device 100 according to the first request packet P1. When the network management device 100 receives the at least one third request packet P3 for replying to the first request packet P1, the server management module 160 generates an event log and transmits the event log to the management terminal. For example, when at least one of the electronic devices connected to the network management device 100 has the same network management function as the network management device 100, the electronic device with the network management function can be interpreted from the server management. The first request packet P1 of the module 160, and replying to the first request packet P1 The third request packet P3 is sent to the network management device 100. In an embodiment of the present invention, the third request packet P3 may include a third selection field, wherein the third selection field includes a third identification information. In another embodiment of the present invention, the third request packet P3 may not include the third selection field. In an embodiment of the present invention, the second identification information and the third identification information may be "DHCP sever existed", but the invention does not limit the form of the string.

在本發明之一實施例中,伺服器管理模組160將事件日誌傳送至管理端後,管理端可藉由傳送警告或者信件,警告使用者將具有與網路管理裝置100相同之網路管理功能之電子裝置拔除。在本發明之另一實施例中,伺服器管理模組160將事件日誌傳送至管理端後,管理端可藉由實施於電力系統之電源管理裝置,強制將具有與網路管理裝置100相同之網路管理功能之電子裝置的電源切斷。In an embodiment of the present invention, after the server management module 160 transmits the event log to the management terminal, the management terminal can notify the user that the network management is the same as that of the network management device 100 by transmitting a warning or a letter. The function of the electronic device is removed. In another embodiment of the present invention, after the server management module 160 transmits the event log to the management terminal, the management terminal can be forced to have the same configuration as the network management device 100 by the power management device implemented in the power system. The power of the electronic device of the network management function is cut off.

除此之外,熟習此技藝人士也可將本發明所揭露之網路管理裝置100實施於其他電腦系統樣態(configuration)上,例如,手持式設備(hand-held devices)、個人數位助理(personal digital assistant,PDA)多處理器系統、以微處理器為基礎或可程式化之消費性電子產品(microprocessor-based or programmable consumer electronics)、網路電腦、迷你電腦、大型主機以及類似之設備。資訊處理單元140可包含一單一中央處理單元(central-processing unit;CPU)或者是關連於平行運算環境(parallel processing environment)之複數平行處理單元。網路管理裝置100亦可包括一記憶體(未圖示)及儲存裝置(未 圖示)。記憶體可包含唯讀記憶體(read only memory;ROM)、快閃記憶體(flash ROM)以及/或動態存取記憶體(random access memory;RAM),用以儲存可供資訊處理單元140執行之程式模組,例如作業系統以及網路介面驅動程式。一般而言,程式模組包含常序(routines)、程式(program)、物件(object)、元件(component)等,用以執行訊息壓縮功能。本發明亦可以實施於分散式運算環境,其運算工作被一連結於通訊網路之遠端處理設備所執行。在分散式環境中,嵌入式裝置之執行追蹤功能之執行也許由本地以及多部遠端電腦系統共同完成。儲存裝置可包含硬碟裝置、軟碟裝置、光碟裝置或隨身碟裝置。In addition, those skilled in the art can also implement the network management device 100 disclosed in the present invention on other computer system configurations, for example, hand-held devices, personal digital assistants ( Personal digital assistant, PDA) Multiprocessor systems, microprocessor-based or programmable consumer electronics, network computers, minicomputers, mainframes, and the like. The information processing unit 140 may include a single central processing unit (CPU) or a plurality of parallel processing units associated with a parallel processing environment. The network management device 100 can also include a memory (not shown) and a storage device (not Graphic). The memory may include a read only memory (ROM), a flash ROM, and/or a random access memory (RAM) for storage by the information processing unit 140. Program modules, such as operating systems and network interface drivers. Generally, a program module includes a routine, a program, an object, a component, etc., for performing a message compression function. The present invention can also be implemented in a distributed computing environment, the computing of which is performed by a remote processing device coupled to the communications network. In a decentralized environment, the execution of the embedded device's execution tracking function may be performed by both local and multiple remote computer systems. The storage device may comprise a hard disk device, a floppy disk device, a compact disk device or a flash drive device.

第2圖為本發明所提供之防止衝突方法的流程圖。防止衝突方法適用於具有網路管理功能之網路管理裝置100,其中網路管理功能係經由動態主機設定協定(Dynamic Host Configuration Protocol;DHCP),分配網際協議地址(IP地址)給所連接之裝置。當網路管理裝置100藉由網路200連接至至少一電子裝置300-30N時,流程開始於步驟S500。Figure 2 is a flow chart of the method for preventing conflicts provided by the present invention. The conflict prevention method is applicable to a network management device 100 having a network management function, wherein the network management function assigns an internet protocol address (IP address) to the connected device via a Dynamic Host Configuration Protocol (DHCP). . When the network management device 100 is connected to the at least one electronic device 300-30N via the network 200, the flow begins in step S500.

在步驟S500中,伺服器管理模組160之通訊槽介面162,產生至少一第一請求封包P1,並且資訊處理單元140將第一請求封包P1藉由網路200傳送至所連接之電子裝置300-30N,其中第一請求封包P1包括一第一選擇欄位,並且第一選擇欄位具有一第一辨識資訊。在本發明之一實施例中,第一辨識資訊可為”DHCP伺服器偵測”(DHCP sever detect),但本發明並不加以限制其字串之形式。In step S500, the communication slot interface 162 of the server management module 160 generates at least one first request packet P1, and the information processing unit 140 transmits the first request packet P1 to the connected electronic device 300 through the network 200. -30N, wherein the first request packet P1 includes a first selection field, and the first selection field has a first identification information. In an embodiment of the present invention, the first identification information may be "DHCP sever detect", but the invention does not limit the form of the string.

接著,在步驟S502中,伺服器管理模組160判斷是否 在一第一既定時間內,自所連接之電子裝置300-30N收到用以回覆第一請求封包P1之至少一第二請求封包P2。當網路管理裝置100未在第一既定時間內接收到第二請求封包P2時,流程進行至步驟S504。當網路管理裝置100在第一既定時間內接收到第二請求封包P2時,流程進行至步驟S508。舉例而言,當網路管理裝置100所連接之電子裝置300-30N皆不具有與網路管理裝置100相同之網路管理功能時,電子裝置300-30N則無法判讀來自伺服器管理模組160之第一請求封包P1,並且不會根據第一請求封包P1回覆一第二請求封包P2至網路管理裝置100。另外,當網路管理裝置100所連接之電子裝置300-30N中至少一電子裝置具有與網路管理裝置100相同之網路管理功能時,具有網路管理功能之電子裝置則可以判讀來自伺服器管理模組160之第一請求封包P1,並且根據第一請求封包P1回覆一第二請求封包P2至網路管理裝置100。在本發明之一實施例中,第二請求封包P2可包括一第二選擇欄位(option),其中第二選擇欄位包括一第二辨識資訊。在本發明之另一實施例中,第二請求封包P2亦可不包括第二選擇欄位。在本發明之一實施例中,第二辨識資訊可為”DHCP伺服器存在”(DHCP sever existed),用以表示傳送第二請求封包P2之電子裝置具有與網路管理裝置100相同之網路管理功能,但本發明並不加以限制其字串之形式。Next, in step S502, the server management module 160 determines whether At least one second request packet P2 for replying to the first request packet P1 is received from the connected electronic device 300-30N within a first predetermined time. When the network management device 100 does not receive the second request packet P2 within the first predetermined time, the flow proceeds to step S504. When the network management device 100 receives the second request packet P2 within the first predetermined time, the flow proceeds to step S508. For example, when the electronic devices 300-30N to which the network management device 100 is connected do not have the same network management function as the network management device 100, the electronic devices 300-30N cannot be interpreted from the server management module 160. The first request packet P1, and does not reply a second request packet P2 to the network management device 100 according to the first request packet P1. In addition, when at least one of the electronic devices 300-30N connected to the network management device 100 has the same network management function as the network management device 100, the electronic device having the network management function can interpret the server from the server. The first request packet P1 of the management module 160 is replied to the second request packet P2 to the network management device 100 according to the first request packet P1. In an embodiment of the present invention, the second request packet P2 may include a second selection field, wherein the second selection field includes a second identification information. In another embodiment of the present invention, the second request packet P2 may also not include the second selection field. In an embodiment of the present invention, the second identification information may be "DHCP sever existed" to indicate that the electronic device transmitting the second request packet P2 has the same network as the network management device 100. Management functions, but the invention does not limit the form of its strings.

在步驟S504中,伺服器管理模組160致使伺服器120之網路管理功能開始執行。接著,流程進行至步驟S506。在步驟S506中,伺服器管理模組160開啟一偵測機制,其 中偵測機制之說明請參考第3圖。流程結束於步驟S506。In step S504, the server management module 160 causes the network management function of the server 120 to begin execution. Next, the flow proceeds to step S506. In step S506, the server management module 160 starts a detection mechanism, which Please refer to Figure 3 for a description of the detection mechanism. The flow ends in step S506.

在步驟S508中,伺服器管理模組160更用以判斷第二請求封包P2是否包括第二選擇欄位。當第二請求封包P2未包括第二選擇欄位時,流程進行至步驟S510。當第二請求封包P2包括第二選擇欄位時,流程進行至步驟S512。In step S508, the server management module 160 is further configured to determine whether the second request packet P2 includes the second selection field. When the second request packet P2 does not include the second selection field, the flow proceeds to step S510. When the second request packet P2 includes the second selection field, the flow proceeds to step S512.

在步驟S510中,伺服器管理模組160判斷是否超過一第二既定時間。當超過第二既定時間時,流程回到步驟S500;否則,伺服器管理模組160繼續判斷是否超過第二既定時間。In step S510, the server management module 160 determines whether it exceeds a second predetermined time. When the second predetermined time is exceeded, the flow returns to step S500; otherwise, the server management module 160 continues to determine whether the second predetermined time is exceeded.

在步驟S512中,伺服器管理模組160產生一事件日誌(log),並將事件日誌傳送至管理端。值得注意的是,管理端可為遠端或者連接於伺服器管理模組160之裝置,用以管理伺服器管理模組160及其所連接之電子裝置的裝置,本發明在此不加以限制。流程結束於步驟S512。In step S512, the server management module 160 generates an event log (log) and transmits the event log to the management terminal. It should be noted that the management terminal may be a remote device or a device connected to the server management module 160 for managing the server management module 160 and the device connected thereto. The invention is not limited herein. The flow ends in step S512.

第3圖為本發明所提供之偵測機制的流程圖。偵測機制適用於具有網路管理功能之網路管理裝置100,其中網路管理功能係經由動態主機設定協定(Dynamic Host Configuration Protocol;DHCP),分配網際協議地址(IP地址)給所連接之裝置。流程開始於步驟S600。Figure 3 is a flow chart of the detection mechanism provided by the present invention. The detection mechanism is applicable to the network management device 100 having the network management function, wherein the network management function assigns an internet protocol address (IP address) to the connected device via a Dynamic Host Configuration Protocol (DHCP). . The flow begins in step S600.

在步驟S600中,伺服器管理模組160判斷是否超過一第三既定時間。當超過第三既定時間時,流程進行至步驟S602;否則,伺服器管理模組160繼續判斷是否超過第三既定時間。In step S600, the server management module 160 determines whether a third predetermined time has elapsed. When the third predetermined time is exceeded, the flow proceeds to step S602; otherwise, the server management module 160 continues to determine whether the third predetermined time is exceeded.

在步驟S602中,通訊槽介面162重新產生至少一第一請求封包P1,並藉由資訊處理單元140將第一請求封包P1 傳送至目前所連接之電子裝置。In step S602, the communication slot interface 162 regenerates at least one first request packet P1, and encapsulates the first request packet P1 by the information processing unit 140. Transfer to the currently connected electronic device.

接著,在步驟S604中,伺服器管理模組160判斷是否在一第四既定時間內,自所連接之電子裝置收到用以回覆重新產生之第一請求封包P1的第三請求封包P3。當網路管理裝置100在第四既定時間內,接收到第三請求封包P3時,流程進行至步驟S606;否則,流程回到步驟600。舉例而言,當網路管理裝置100目前所連接之電子裝置皆不具有與網路管理裝置100相同之網路管理功能時,電子裝置則無法判讀來自伺服器管理模組160之第一請求封包P1,並且不會根據第一請求封包P1回覆一第三請求封包P3至網路管理裝置100。另外,當網路管理裝置100所連接之電子裝置中至少一電子裝置具有與網路管理裝置100相同之網路管理功能時,具有網路管理功能之電子裝置則可以判讀來自伺服器管理模組160之第一請求封包P1,並且根據第一請求封包P1回覆一第三請求封包P3至網路管理裝置100。在本發明之一實施例中,第三請求封包P3可包括一第三選擇欄位,其中第三選擇欄位包括一第三辨識資訊。在本發明之另一實施例中,第三請求封包P2亦可不包括第三選擇欄位。在本發明之一實施例中,第三辨識資訊可為”DHCP伺服器存在”(DHCP sever existed),但本發明並不加以限制其字串之形式。Next, in step S604, the server management module 160 determines whether a third request packet P3 for replying to the regenerated first request packet P1 is received from the connected electronic device within a fourth predetermined time. When the network management device 100 receives the third request packet P3 within the fourth predetermined time, the flow proceeds to step S606; otherwise, the flow returns to step 600. For example, when the electronic device currently connected to the network management device 100 does not have the same network management function as the network management device 100, the electronic device cannot interpret the first request packet from the server management module 160. P1, and does not reply a third request packet P3 to the network management device 100 according to the first request packet P1. In addition, when at least one of the electronic devices connected to the network management device 100 has the same network management function as the network management device 100, the electronic device having the network management function can be interpreted from the server management module. The first request packet P1 is 160, and a third request packet P3 is replied to the network management device 100 according to the first request packet P1. In an embodiment of the present invention, the third request packet P3 may include a third selection field, wherein the third selection field includes a third identification information. In another embodiment of the present invention, the third request packet P2 may also not include the third selection field. In an embodiment of the present invention, the third identification information may be "DHCP sever existed", but the invention does not limit the form of the string.

在步驟S606中,當所接收到第三請求封包P3時,產生一事件日誌,並將事件日誌傳送至一管理端。值得注意的是,管理端可為遠端或者連接於伺服器管理模組160之裝置,用以管理伺服器管理模組160及其所連接之電子裝 置的裝置,本發明在此不加以限制。In step S606, when the third request packet P3 is received, an event log is generated, and the event log is transmitted to a management terminal. It should be noted that the management terminal may be a remote device or a device connected to the server management module 160 for managing the server management module 160 and the electronic device connected thereto. The present invention is not limited herein.

值得注意的是,本發明所述之第一既定時間、第二既定時間、第三既定時間以及第四既定時間可由使用者自行設計,其中第二以及第三既定時間亦可為隨機的亂數時間,用以確認網路200中是否存在具有與網路管理裝置100相同之網路管理功能之電子裝置,第一以及第四既定時間係用以等待連接於網路200中之電子裝置回覆請求封包之時間。舉例而言,第二以及第三既定時間可為五分鐘或者三十分鐘,第一以及第四既定時間可為3秒或者5秒。另外,第二既定時間可不同於第三既定時間,第三既定時間可不同於第四既定時間。It should be noted that the first predetermined time, the second predetermined time, the third predetermined time, and the fourth predetermined time are designed by the user, and the second and third predetermined times may also be random random numbers. Time for confirming whether there is an electronic device having the same network management function as the network management device 100 in the network 200, and the first and fourth predetermined times are used to wait for an electronic device reply request connected to the network 200. The time of the packet. For example, the second and third predetermined times may be five minutes or thirty minutes, and the first and fourth predetermined times may be three or five seconds. In addition, the second predetermined time may be different from the third predetermined time, and the third predetermined time may be different from the fourth predetermined time.

本發明所提供之電子系統100以及防止衝突方法,可藉由預先的判斷機制,預防兩個主控端的衝突發生,以維持系統作業之安全以及效率。The electronic system 100 and the method for preventing conflicts provided by the present invention can prevent conflicts between two master terminals by a prior judgment mechanism to maintain the safety and efficiency of the system operation.

本發明之方法,或特定型態或其部份,可以以程式碼的型態存在。程式碼可儲存於實體媒體,如軟碟、光碟片、硬碟、或是任何其他機器可讀取(如電腦可讀取)儲存媒體,亦或不限於外在形式之電腦程式產品,其中,當程式碼被機器,如電腦載入且執行時,此機器變成用以參與本發明之裝置。程式碼也可透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸型態進行傳送,其中,當程式碼被機器,如電腦接收、載入且執行時,此機器變成用以參與本發明之裝置。當在一般用途處理單元實作時,程式碼結合處理單元提供一操作類似於應用特定邏輯電路之獨特裝置。The method of the invention, or a particular type or portion thereof, may exist in the form of a code. The code can be stored in a physical medium such as a floppy disk, a CD, a hard disk, or any other machine readable (such as computer readable) storage medium, or is not limited to an external form of computer program product, wherein When the code is loaded and executed by a machine, such as a computer, the machine becomes a device for participating in the present invention. The code can also be transmitted via some transmission medium, such as a wire or cable, fiber optics, or any transmission type, where the machine becomes part of the program when it is received, loaded, and executed by a machine, such as a computer. Invented device. When implemented in a general purpose processing unit, the code combination processing unit provides a unique means of operation similar to application specific logic.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。另外本發明的任一實施例或申請專利範圍不須達成本發明所揭露之全部目的或優點或特點。此外,摘要部分和標題僅是用來輔助專利文件搜尋之用,並非用來限制本發明之權利範圍。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. In addition, any of the objects or advantages or features of the present invention are not required to be achieved by any embodiment or application of the invention. In addition, the abstract sections and headings are only used to assist in the search of patent documents and are not intended to limit the scope of the invention.

1000‧‧‧電子系統1000‧‧‧Electronic system

100‧‧‧網路管理裝置100‧‧‧Network management device

120‧‧‧伺服器120‧‧‧Server

140‧‧‧資訊處理單元140‧‧‧Information Processing Unit

160‧‧‧伺服器管理模組160‧‧‧Server Management Module

162‧‧‧通訊槽介面162‧‧‧Communication slot interface

200‧‧‧網路200‧‧‧Network

300-30N‧‧‧電子裝置300-30N‧‧‧Electronic device

P1、P2、P3‧‧‧請求封包P1, P2, P3‧‧‧ request packets

第1圖為本發明所提供之網路管理裝置之方塊圖;第2圖為本發明所提供之防止衝突方法的流程圖;第3圖為本發明所提供之偵測機制的流程圖;。1 is a block diagram of a network management apparatus provided by the present invention; FIG. 2 is a flowchart of a method for preventing conflicts provided by the present invention; and FIG. 3 is a flowchart of a detection mechanism provided by the present invention;

1000‧‧‧電子系統1000‧‧‧Electronic system

100‧‧‧網路管理裝置100‧‧‧Network management device

120‧‧‧伺服器120‧‧‧Server

140‧‧‧資訊處理單元140‧‧‧Information Processing Unit

160‧‧‧伺服器管理模組160‧‧‧Server Management Module

162‧‧‧通訊槽介面162‧‧‧Communication slot interface

200‧‧‧網路200‧‧‧Network

300-30N‧‧‧電子裝置300-30N‧‧‧Electronic device

P1、P2、P3‧‧‧請求封包P1, P2, P3‧‧‧ request packets

Claims (8)

一種網路管理裝置,包括:一伺服器,用以執行一網路管理功能;一資訊處理單元,用以將至少一第一請求封包藉由一網路傳送至至少一第一電子裝置,以及接收用以回覆上述第一請求封包之至少一第二請求封包;以及一伺服器管理模組,用以當上述資訊處理單元超過一第一既定時間未接收到來自上述第一電子裝置之上述第二請求封包時,致使上述伺服器開始執行上述網路管理功能,並且上述伺服器管理模組更包括:一通訊槽介面,用以當上述網路管理裝置連接至上述第一電子裝置時,產生上述第一請求封包,其中上述第一請求封包包括一第一選擇欄位,並且上述第一選擇欄位具有一第一辨識資訊,其中上述第一辨識資訊代表上述第一請求封包係用以偵測上述網路中是否具有與上述網路管理裝置相同之網路管理功能之上述第一電子裝置,其中上述伺服器管理模組,更用以當接收到上述第二請求封包時,判斷上述第二請求封包是否包括一第二選擇欄位,並且當所接收之上述第二請求封包未包括上述第二選擇欄位時,上述通訊槽介面在一第二既定時間後重新藉由上述資訊處理單元傳送上述第一請求封包至所連接之上述第一電子裝置及/或至少一第二電子裝置。 A network management device includes: a server for performing a network management function; an information processing unit configured to transmit at least one first request packet to the at least one first electronic device by using a network, and Receiving at least one second request packet for replying to the first request packet; and a server management module, configured to: when the information processing unit does not receive the first electronic device from the first electronic device When the packet is requested, the server is configured to perform the network management function, and the server management module further includes: a communication slot interface, configured to generate when the network management device is connected to the first electronic device The first request packet, wherein the first request packet includes a first selection field, and the first selection field has a first identification information, wherein the first identification information represents the first request packet is used for detecting Detecting whether the above-mentioned first electronic device having the same network management function as the network management device in the above network, wherein the above The server management module is further configured to: when receiving the second request packet, determine whether the second request packet includes a second selection field, and when the received second request packet does not include the second selection In the field, the communication slot interface retransmits the first request packet to the connected first electronic device and/or the at least one second electronic device by the information processing unit after a second predetermined time. 如申請專利範圍第1項所述之網路管理裝置,其中 上述伺服器管理模組,更用以當所接收之上述第二請求封包包括上述第二選擇欄位時,產生一事件日誌,並將上述事件日誌傳送至一管理端,其中上述第二辨識資訊表示傳送上述第二請求封包之上述第一電子裝置具有與上述網路管理裝置相同之網路管理功能。 The network management device according to claim 1, wherein The server management module is further configured to generate an event log when the received second request packet includes the second selection field, and send the event log to a management terminal, where the second identification information is The first electronic device indicating that the second request packet is transmitted has the same network management function as the network management device. 如申請專利範圍第1項所述之網路管理裝置,其中上述伺服器管理模組更用以當上述網路管理功能開始執行後,開啟一偵測機制,其中上述偵測機制包括上述通訊槽介面在一第三既定時間後,重新藉由上述資訊處理單元傳送上述第一請求封包至所連接之上述第一電子裝置及/或至少一第二電子裝置,並且當接收到用以回覆上述第一請求封包之至少一第三請求封包時,產生一事件日誌,並將上述事件日誌傳送至一管理端。 The network management device of claim 1, wherein the server management module is further configured to: when the network management function starts to be executed, to enable a detection mechanism, wherein the detection mechanism comprises the communication slot After the third predetermined time, the interface retransmits the first request packet to the connected first electronic device and/or the at least one second electronic device by using the information processing unit, and receives the reply to the first electronic device When at least one third request packet of the request packet is generated, an event log is generated, and the event log is transmitted to a management terminal. 如申請專利範圍第1項所述之網路管理裝置,其中上述網路管理功能係經由動態主機設定協定,分配網際協議地址給所連接之裝置。 The network management device of claim 1, wherein the network management function assigns an internet protocol address to the connected device via a dynamic host setting protocol. 一種防止衝突方法,適用於具有一網路管理功能之一網路管理裝置,其中上述防止衝突方法包括:當上述網路管理裝置連接至至少一第一電子裝置時,傳送至少一第一請求封包至上述第一電子裝置,其中上述第一請求封包包括一第一選擇欄位,並且上述第一選擇欄位具有一第一辨識資訊,其中上述第一辨識資訊代表上述第一請求封包係用以偵測上述網路中是否具有與上述網路管理裝置相同之網路管理功能之上述第一電子裝置;判斷是否在一第一既定時間內接收到用以回覆上述第 一請求封包之至少一第二請求封包;當未在上述第一既定時間內接收到上述二請求封包時,致使上述網路管理功能開始執行;當接收到上述第二請求封包時,判斷上述第二請求封包是否包括一第二選擇欄位,其中上述第二選擇欄位具有一第二辨識資訊,其中上述第二辨識資訊表示傳送上述第二請求封包之上述第一電子裝置具有與上述網路管理裝置相同之網路管理功能;當所接收之上述第二請求封包未包括上述第二選擇欄位時,判斷是否超過一第二既定時間;以及當超過上述第二既定時間時,重新傳送上述第一請求封包至所連接之上述第一電子裝置及/或至少一第二電子裝置。 A method for preventing conflicts is applicable to a network management device having a network management function, wherein the method for preventing collision includes: transmitting at least one first request packet when the network management device is connected to at least one first electronic device The first electronic device, wherein the first request packet includes a first selection field, and the first selection field has a first identification information, wherein the first identification information represents the first request packet is used to Detecting whether the first electronic device having the same network management function as the network management device in the network is determined; determining whether to receive the first message in a first predetermined time At least one second request packet of the request packet; when the second request packet is not received within the first predetermined time, causing the network management function to start executing; when receiving the second request packet, determining the foregoing Whether the second request field includes a second selection field, wherein the second selection field has a second identification information, wherein the second identification information indicates that the first electronic device that transmits the second request packet has the network The same network management function of the management device; when the received second request packet does not include the second selection field, determining whether the second predetermined time is exceeded; and when the second predetermined time is exceeded, retransmitting the foregoing The first request is packetized to the connected first electronic device and/or at least one second electronic device. 如申請專利範圍第5項所述之防止衝突方法,更包括當所接收之上述第二請求封包包括上述第二選擇欄位時,產生一事件日誌,並將上述事件日誌傳送至一管理端。 The method for preventing conflicts according to claim 5, further comprising: generating an event log when the received second request packet includes the second selection field, and transmitting the event log to a management terminal. 如申請專利範圍第5項所述之防止衝突方法,更包括當致使上述網路管理功能開始執行時後,開啟一偵測機制,其中上述偵測機制包括:判斷是否超過一第三既定時間;當超過上述第三既定時間時,重新傳送上述第一請求封包至所連接之上述第一電子裝置及/或至少一第二電子裝置;判斷是否在一第四既定時間內接收到用以回覆上述第一請求封包之至少一第三請求封包;以及 當在上述第四既定時間內接收到上述第三請求封包時,產生一事件日誌,並將上述事件日誌傳送至一管理端。 The method for preventing conflicts as described in claim 5, further comprising: after causing the network management function to start executing, starting a detection mechanism, wherein the detecting mechanism comprises: determining whether a third predetermined time is exceeded; Retrieving the first request packet to the connected first electronic device and/or the at least one second electronic device when the third predetermined time is exceeded; determining whether to receive the reply in a fourth predetermined time At least one third request packet of the first request packet; When the third request packet is received in the fourth predetermined time, an event log is generated, and the event log is transmitted to a management terminal. 如申請專利範圍第5項所述之防止衝突方法,其中上述網路管理功能係經由動態主機設定協定,分配網際協議地址給所連接之裝置。 The method of preventing conflicts according to claim 5, wherein the network management function assigns an internet protocol address to the connected device via a dynamic host setting protocol.
TW101121689A 2012-06-18 2012-06-18 Network management device and conflict prevention method TWI473467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101121689A TWI473467B (en) 2012-06-18 2012-06-18 Network management device and conflict prevention method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101121689A TWI473467B (en) 2012-06-18 2012-06-18 Network management device and conflict prevention method

Publications (2)

Publication Number Publication Date
TW201401809A TW201401809A (en) 2014-01-01
TWI473467B true TWI473467B (en) 2015-02-11

Family

ID=50345238

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101121689A TWI473467B (en) 2012-06-18 2012-06-18 Network management device and conflict prevention method

Country Status (1)

Country Link
TW (1) TWI473467B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200719631A (en) * 2005-11-15 2007-05-16 Inventec Corp System and method for searching target device in a same network segment
TW200822622A (en) * 2006-11-13 2008-05-16 Alpha Networks Inc Method of setting and managing a plurality of network devices
TW200952390A (en) * 2008-06-11 2009-12-16 Asustek Comp Inc Management method of local area network and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200719631A (en) * 2005-11-15 2007-05-16 Inventec Corp System and method for searching target device in a same network segment
TW200822622A (en) * 2006-11-13 2008-05-16 Alpha Networks Inc Method of setting and managing a plurality of network devices
TW200952390A (en) * 2008-06-11 2009-12-16 Asustek Comp Inc Management method of local area network and device thereof

Also Published As

Publication number Publication date
TW201401809A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
US8473585B1 (en) Multi-threaded optimization for data upload
JP2006054895A5 (en)
CN103902427B (en) A kind of method with outer acquisition disk state
CN109660639B (en) A data uploading method, device, system and medium
JP2013226037A5 (en)
CN104202212A (en) System and method for obtaining distributed cluster system alarm
WO2019090997A1 (en) Data acquisition method and device, computer device and storage medium
US20120207155A1 (en) System and method for scalable, efficient, and robust system management communications via vendor defined extensions
CN112532704A (en) Data transmission method and device, electronic equipment and storage medium
CN112231408A (en) Data integration method and device, electronic equipment and storage medium
CN102984138B (en) A kind of methods, devices and systems obtaining object
US20170192922A1 (en) Method of extending range of usb transmission for isochronous transfer
JP6475852B2 (en) Method, apparatus and system for processing service data
EP3346671B1 (en) Service processing method and equipment
TWI473467B (en) Network management device and conflict prevention method
CN105374228B (en) A kind of parking space information processing method, mobile terminal, application server and system
US9596131B2 (en) Method for transiting operation mode of routing processor
JP6034368B2 (en) Authentication information processing
CN102638403B (en) Method and device for processing messages
CN117061072B (en) Message transmission method, device, equipment and storage medium
JP5162686B2 (en) Method for retrieving object from DM client and device management system related thereto
CN110166575A (en) A kind of http Proxy Method, system, device and computer media
CN111240867B (en) Information communication system and method
JP2015041951A5 (en)
CN115776475A (en) Message processing method and device, electronic equipment and computer storage medium